@wildo-ai/saas-specifications 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (950) hide show
  1. package/dist/assurance/external-framework-mapping.json +1228 -0
  2. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +34 -0
  3. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -0
  4. package/dist/esm/_core/application-maturity/application-maturity-validation.js +66 -0
  5. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -0
  6. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts +3 -0
  7. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -0
  8. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +48 -0
  9. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -0
  10. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +201 -0
  11. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +306 -0
  13. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -0
  14. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +304 -0
  15. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -0
  16. package/dist/esm/_core/application-specification-family-identity.schemas.js +314 -0
  17. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -0
  18. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +2 -1
  19. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js +4 -1
  21. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js.map +1 -1
  22. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
  23. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +5 -4
  24. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
  25. package/dist/esm/_core/assertions/assertion-specification.schemas.js +4 -1
  26. package/dist/esm/_core/assertions/assertion-specification.schemas.js.map +1 -1
  27. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +5 -4
  28. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-asset.schemas.js +7 -4
  30. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  31. package/dist/esm/_core/brand/brand-audience.schemas.d.ts +31 -0
  32. package/dist/esm/_core/brand/brand-audience.schemas.d.ts.map +1 -0
  33. package/dist/esm/_core/brand/brand-audience.schemas.js +29 -0
  34. package/dist/esm/_core/brand/brand-audience.schemas.js.map +1 -0
  35. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +3 -2
  36. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
  37. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js +5 -2
  38. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js.map +1 -1
  39. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +4 -4
  40. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +12 -9
  41. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
  42. package/dist/esm/_core/brand/brand-logo-direction.schemas.js +12 -7
  43. package/dist/esm/_core/brand/brand-logo-direction.schemas.js.map +1 -1
  44. package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
  45. package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
  46. package/dist/esm/_core/brand/brand-snapshot-validation.js +1 -8
  47. package/dist/esm/_core/brand/brand-snapshot-validation.js.map +1 -1
  48. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -12
  49. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/brand/brand-snapshot.schemas.js +7 -0
  51. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  52. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +2 -2
  53. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
  54. package/dist/esm/_core/brand/brand.family-aspects.js +12 -1
  55. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -1
  56. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +252 -2
  57. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +19 -1
  59. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  60. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +121 -1
  61. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  62. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +215 -2
  63. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  64. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +703 -14
  65. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +536 -7
  67. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  68. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  69. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +82 -2
  70. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  71. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +3 -2
  72. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
  73. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js +5 -2
  74. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js.map +1 -1
  75. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +3 -3
  76. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +1 -1
  77. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -1
  78. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +4 -3
  79. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +4 -1
  81. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  82. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +36 -0
  83. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/business-semantics.specifications.schemas.js +52 -1
  85. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  86. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +22 -0
  87. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -0
  88. package/dist/esm/_core/capability-composition/capability-composition-validation.js +89 -0
  89. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -0
  90. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts +3 -0
  91. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts.map +1 -0
  92. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js +26 -0
  93. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js.map +1 -0
  94. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +141 -0
  95. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -0
  96. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +147 -0
  97. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -0
  98. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +160 -0
  99. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +124 -4
  101. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  102. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +95 -0
  103. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -0
  104. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js +85 -0
  105. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js.map +1 -0
  106. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +743 -14
  107. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +699 -22
  109. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  110. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +98 -6
  111. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
  112. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +197 -8
  113. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -1
  114. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +64 -0
  115. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -0
  116. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +283 -0
  117. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -0
  118. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +30 -1
  120. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +1 -1
  122. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -1
  123. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +220 -4
  124. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  125. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +149 -2
  126. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  127. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +70 -3
  128. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  129. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +75 -3
  130. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  131. package/dist/esm/_core/composite-view-specification.schemas.d.ts +14 -0
  132. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  133. package/dist/esm/_core/composite-view-specification.schemas.js +13 -0
  134. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  135. package/dist/esm/_core/cross-registry-assertions.d.ts +6 -4
  136. package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
  137. package/dist/esm/_core/cross-registry-assertions.js +7 -5
  138. package/dist/esm/_core/cross-registry-assertions.js.map +1 -1
  139. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +5 -4
  140. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +5 -2
  142. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  143. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +30 -0
  144. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  145. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +99 -6
  146. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  147. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +58 -0
  148. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -0
  149. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +71 -0
  150. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -0
  151. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +37 -0
  152. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -0
  153. package/dist/esm/_core/experience-plan/experience-plan-validation.js +83 -0
  154. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -0
  155. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts +3 -0
  156. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -0
  157. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +78 -0
  158. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -0
  159. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +285 -0
  160. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -0
  161. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +293 -0
  162. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -0
  163. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +3 -2
  164. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js +5 -2
  166. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js.map +1 -1
  167. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +9 -2
  168. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  169. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +7 -0
  170. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  171. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts +18 -0
  172. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts.map +1 -0
  173. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js +21 -0
  174. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js.map +1 -0
  175. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +19 -0
  176. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +23 -0
  178. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  179. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  180. package/dist/esm/_core/family-aspects.registry.js +22 -1
  181. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  182. package/dist/esm/_core/family-aspects.schemas.d.ts +64 -1
  183. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  184. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  185. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +27 -27
  186. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
  187. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +1 -1
  188. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
  189. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  190. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +6 -1
  191. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  192. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -15
  193. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  194. package/dist/esm/_core/guidance-flow-specification.schemas.js +12 -11
  195. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  196. package/dist/esm/_core/index.d.ts +16 -0
  197. package/dist/esm/_core/index.d.ts.map +1 -1
  198. package/dist/esm/_core/index.js +16 -0
  199. package/dist/esm/_core/index.js.map +1 -1
  200. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +52 -0
  201. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -0
  202. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +50 -0
  203. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -0
  204. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +27 -0
  205. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -0
  206. package/dist/esm/_core/integration-plan/integration-plan-validation.js +63 -0
  207. package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -0
  208. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts +3 -0
  209. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -0
  210. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +52 -0
  211. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -0
  212. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +168 -0
  213. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -0
  214. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +170 -0
  215. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -0
  216. package/dist/esm/_core/market/feature-benefit.schemas.d.ts +6 -5
  217. package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
  218. package/dist/esm/_core/market/feature-benefit.schemas.js +5 -2
  219. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  220. package/dist/esm/_core/market/market-alternative.schemas.d.ts +4 -3
  221. package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
  222. package/dist/esm/_core/market/market-alternative.schemas.js +4 -1
  223. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  224. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +11 -9
  225. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
  226. package/dist/esm/_core/market/market-authored-metadata.schemas.js +13 -10
  227. package/dist/esm/_core/market/market-authored-metadata.schemas.js.map +1 -1
  228. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +5 -4
  229. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
  230. package/dist/esm/_core/market/market-buying-journey.schemas.js +4 -1
  231. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  232. package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
  233. package/dist/esm/_core/market/market-channel.schemas.d.ts +6 -5
  234. package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
  235. package/dist/esm/_core/market/market-channel.schemas.js +6 -3
  236. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  237. package/dist/esm/_core/market/market-gain.schemas.d.ts +4 -3
  238. package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
  239. package/dist/esm/_core/market/market-gain.schemas.js +4 -1
  240. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  241. package/dist/esm/_core/market/market-icp.schemas.d.ts +12 -11
  242. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  243. package/dist/esm/_core/market/market-icp.schemas.js +12 -9
  244. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  245. package/dist/esm/_core/market/market-job.schemas.d.ts +4 -3
  246. package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
  247. package/dist/esm/_core/market/market-job.schemas.js +4 -1
  248. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  249. package/dist/esm/_core/market/market-message-template.schemas.d.ts +5 -4
  250. package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
  251. package/dist/esm/_core/market/market-message-template.schemas.js +5 -2
  252. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  253. package/dist/esm/_core/market/market-objection.schemas.d.ts +4 -3
  254. package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
  255. package/dist/esm/_core/market/market-objection.schemas.js +4 -1
  256. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  257. package/dist/esm/_core/market/market-pain.schemas.d.ts +4 -3
  258. package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
  259. package/dist/esm/_core/market/market-pain.schemas.js +4 -1
  260. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  261. package/dist/esm/_core/market/market-persona.schemas.d.ts +5 -4
  262. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  263. package/dist/esm/_core/market/market-persona.schemas.js +5 -2
  264. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  265. package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
  266. package/dist/esm/_core/market/market-proof.schemas.d.ts +4 -3
  267. package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
  268. package/dist/esm/_core/market/market-proof.schemas.js +4 -1
  269. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  270. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +54 -54
  271. package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
  272. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +4 -3
  273. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
  274. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +4 -1
  275. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  276. package/dist/esm/_core/market/market-trigger.schemas.d.ts +4 -3
  277. package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
  278. package/dist/esm/_core/market/market-trigger.schemas.js +4 -1
  279. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  280. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  281. package/dist/esm/_core/market/market.family-aspects.js +25 -1
  282. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  283. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +27 -22
  284. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  285. package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -12
  286. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  287. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +21 -21
  288. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +30 -16
  289. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  290. package/dist/esm/_core/placement-plan/placement-plan-validation.js +34 -12
  291. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  292. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  293. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +24 -1
  294. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  295. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +78 -47
  296. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  297. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +62 -24
  298. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  299. package/dist/esm/_core/provider-specification.schemas.d.ts +19 -0
  300. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
  301. package/dist/esm/_core/provider-specification.schemas.js +0 -20
  302. package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
  303. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
  304. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -2
  305. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +3 -2
  306. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
  307. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js +5 -2
  308. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js.map +1 -1
  309. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -4
  310. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  311. package/dist/esm/_core/requirements/requirements.family-aspects.js +3 -1
  312. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  313. package/dist/esm/_core/resource-specification.schemas.d.ts +8 -0
  314. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  315. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  316. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +3 -2
  317. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
  318. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js +5 -2
  319. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js.map +1 -1
  320. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +2 -2
  321. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +5 -0
  322. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  323. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js +1 -8
  324. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  325. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +2 -2
  326. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +1 -1
  327. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -1
  328. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  329. package/dist/esm/_core/utils/extract-field-specs.js +4 -2
  330. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  331. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +3 -2
  332. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
  333. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js +5 -2
  334. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js.map +1 -1
  335. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +2 -2
  336. package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
  337. package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
  338. package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
  339. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
  340. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
  341. package/dist/esm/_core/vision/vision.family-aspects.js +1 -1
  342. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -1
  343. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +45 -0
  344. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -0
  345. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +55 -0
  346. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -0
  347. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +37 -0
  348. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -0
  349. package/dist/esm/_core/website-plan/website-plan-validation.js +77 -0
  350. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -0
  351. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts +3 -0
  352. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -0
  353. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +35 -0
  354. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -0
  355. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +194 -0
  356. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -0
  357. package/dist/esm/_core/website-plan/website-plan.schemas.js +193 -0
  358. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -0
  359. package/dist/esm/_core/zod-core-nameability.d.ts +47 -0
  360. package/dist/esm/_core/zod-core-nameability.d.ts.map +1 -0
  361. package/dist/esm/_core/zod-core-nameability.js +1 -0
  362. package/dist/esm/_core/zod-core-nameability.js.map +1 -0
  363. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +86 -0
  364. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -0
  365. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +96 -0
  366. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -0
  367. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +139 -34
  368. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  369. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +182 -11
  370. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  371. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +71 -2
  372. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  373. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +88 -1
  374. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  375. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts +14 -0
  376. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts.map +1 -0
  377. package/dist/esm/application-creation/creator-inputs.family-aspects.js +17 -0
  378. package/dist/esm/application-creation/creator-inputs.family-aspects.js.map +1 -0
  379. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
  380. package/dist/esm/application-creation/document-facts.family-aspects.js +25 -1
  381. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -1
  382. package/dist/esm/application-creation/document-release-policy.family-aspects.js +1 -1
  383. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -1
  384. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +14 -48
  385. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  386. package/dist/esm/application-creation/journey.application-creation.schemas.js +52 -52
  387. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  388. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +209 -495
  389. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  390. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +257 -534
  391. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  392. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +10 -0
  393. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  394. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +10 -0
  395. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  396. package/dist/esm/application-creation.exports.d.ts +73 -8
  397. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  398. package/dist/esm/application-creation.exports.js +103 -8
  399. package/dist/esm/application-creation.exports.js.map +1 -1
  400. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +24 -0
  401. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +1 -0
  402. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +24 -0
  403. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -0
  404. package/dist/esm/assurance/application-document-publication.schemas.d.ts +49 -0
  405. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  406. package/dist/esm/assurance/application-document-publication.schemas.js +51 -0
  407. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  408. package/dist/esm/assurance/application-document-release-set.schemas.d.ts +161 -0
  409. package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -0
  410. package/dist/esm/assurance/application-document-release-set.schemas.js +138 -0
  411. package/dist/esm/assurance/application-document-release-set.schemas.js.map +1 -0
  412. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts +28 -0
  413. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts.map +1 -0
  414. package/dist/esm/assurance/application-risk-register.family-aspects.js +58 -0
  415. package/dist/esm/assurance/application-risk-register.family-aspects.js.map +1 -0
  416. package/dist/esm/assurance/application-risk-register.schemas.d.ts +172 -0
  417. package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -0
  418. package/dist/esm/assurance/application-risk-register.schemas.js +192 -0
  419. package/dist/esm/assurance/application-risk-register.schemas.js.map +1 -0
  420. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +177 -0
  421. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -0
  422. package/dist/esm/assurance/application-risk-signals.derivations.js +229 -0
  423. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -0
  424. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +257 -13
  425. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  426. package/dist/esm/assurance/assurance-authority-basis.definitions.js +836 -69
  427. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  428. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +99 -33
  429. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  430. package/dist/esm/assurance/assurance-authority-basis.schemas.js +38 -1
  431. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  432. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
  433. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  434. package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
  435. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  436. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  437. package/dist/esm/assurance/assurance-document-system.definitions.js +99 -8
  438. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  439. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +133 -41
  440. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  441. package/dist/esm/assurance/assurance-document-system.schemas.js +60 -11
  442. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  443. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +470 -0
  444. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -0
  445. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +451 -0
  446. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -0
  447. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +0 -33
  448. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  449. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +3339 -159
  450. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  451. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +21 -0
  452. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  453. package/dist/esm/assurance/assurance-foundation.schemas.js +21 -0
  454. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  455. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +32 -2
  456. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  457. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +148 -5
  458. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  459. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +257 -14
  460. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  461. package/dist/esm/assurance/assurance-program-generation.schemas.js +588 -45
  462. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  463. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +32 -8
  464. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
  465. package/dist/esm/assurance/assurance-program.family-aspects.js +288 -10
  466. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  467. package/dist/esm/assurance/assurance-program.schemas.d.ts +1182 -333
  468. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  469. package/dist/esm/assurance/assurance-program.schemas.js +460 -68
  470. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  471. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  472. package/dist/esm/assurance/assurance-source-registry.definitions.js +70 -2
  473. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  474. package/dist/esm/assurance/assurance-sources.schemas.d.ts +17 -0
  475. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  476. package/dist/esm/assurance/assurance-sources.schemas.js +17 -0
  477. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  478. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  479. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +205 -3
  480. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  481. package/dist/esm/assurance/document-publication.family-aspects.js +1 -1
  482. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -1
  483. package/dist/esm/assurance/document-release-set.family-aspects.d.ts +11 -0
  484. package/dist/esm/assurance/document-release-set.family-aspects.d.ts.map +1 -0
  485. package/dist/esm/assurance/document-release-set.family-aspects.js +36 -0
  486. package/dist/esm/assurance/document-release-set.family-aspects.js.map +1 -0
  487. package/dist/esm/assurance/governed-document-release.d.ts +211 -0
  488. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -0
  489. package/dist/esm/assurance/governed-document-release.js +314 -0
  490. package/dist/esm/assurance/governed-document-release.js.map +1 -0
  491. package/dist/esm/assurance.exports.d.ts +5 -0
  492. package/dist/esm/assurance.exports.d.ts.map +1 -1
  493. package/dist/esm/assurance.exports.js +5 -0
  494. package/dist/esm/assurance.exports.js.map +1 -1
  495. package/dist/esm/companion-exports.d.ts +135 -11
  496. package/dist/esm/companion-exports.d.ts.map +1 -1
  497. package/dist/esm/companion-exports.js.map +1 -1
  498. package/dist/esm/engine/_bootstrap.d.ts +1 -1
  499. package/dist/esm/engine/_bootstrap.js +1 -1
  500. package/dist/esm/engine/_bootstrap.js.map +1 -1
  501. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +1 -1
  502. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
  503. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  504. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +0 -23
  505. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +110 -28
  507. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts +1 -1
  509. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +1 -1
  510. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  512. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +57 -0
  514. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +412 -0
  516. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/auth/resources/index.d.ts +2 -0
  518. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  519. package/dist/esm/engine/auth/resources/index.js +2 -0
  520. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  521. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +4 -4
  522. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  523. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +57 -6
  524. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  525. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts +9 -0
  526. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js +141 -0
  528. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +4 -1
  530. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  531. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +10 -6
  532. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  533. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  534. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +5 -4
  535. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  536. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts +4 -0
  537. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js +129 -0
  539. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts +19 -7
  541. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +24 -13
  543. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +0 -40
  545. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  546. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +14 -27
  547. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  548. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +8 -2
  549. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  550. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +16 -3
  551. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  552. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +5 -2
  553. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  554. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +10 -16
  555. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  556. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +15 -5
  558. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts +9 -0
  560. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js +164 -0
  562. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts +14 -0
  564. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts.map +1 -0
  565. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +124 -0
  566. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -0
  567. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts +9 -0
  568. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts.map +1 -0
  569. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js +123 -0
  570. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js.map +1 -0
  571. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts +11 -0
  572. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts.map +1 -0
  573. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js +172 -0
  574. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js.map +1 -0
  575. package/dist/esm/engine/billing/resources/index.d.ts +4 -0
  576. package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
  577. package/dist/esm/engine/billing/resources/index.js +4 -0
  578. package/dist/esm/engine/billing/resources/index.js.map +1 -1
  579. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +3 -3
  580. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +3 -3
  581. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  582. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  584. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +92 -36
  585. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  586. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +77 -0
  587. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
  588. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +375 -0
  589. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
  590. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +1 -1
  591. package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
  592. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  593. package/dist/esm/engine/compliance/resources/index.js +2 -0
  594. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  595. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +16 -0
  596. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +183 -0
  598. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -0
  599. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  600. package/dist/esm/engine/engine-resource-specifications.registry.js +28 -0
  601. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  602. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  603. package/dist/esm/engine/errors/error-messages.specification.js +123 -19
  604. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  605. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  606. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -1
  607. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  608. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +1 -0
  610. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  612. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  613. package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -1
  614. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  615. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  616. package/dist/esm/engine/files/resources/files.resource.specification.js +15 -3
  617. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  618. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -0
  619. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  620. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +1 -1
  621. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  622. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  623. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +14 -0
  624. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -0
  625. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +184 -0
  626. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -0
  627. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js +3 -3
  628. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js.map +1 -1
  629. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
  630. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js +3 -2
  631. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js.map +1 -1
  632. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
  633. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js +18 -0
  634. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js +21 -0
  638. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js +1 -1
  640. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js.map +1 -1
  641. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts +5 -0
  642. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -0
  643. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +82 -0
  644. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -0
  645. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  646. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +6 -5
  647. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  648. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts +4 -0
  649. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts.map +1 -0
  650. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js +22 -0
  651. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js.map +1 -0
  652. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts +4 -0
  653. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts.map +1 -0
  654. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +22 -0
  655. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -0
  656. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts +5 -0
  657. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -0
  658. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +81 -0
  659. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -0
  660. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +4 -2
  662. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  663. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +4 -4
  664. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
  665. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js +3 -2
  667. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js.map +1 -1
  668. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js +4 -4
  669. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js +1 -1
  671. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js.map +1 -1
  672. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts +4 -0
  673. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts.map +1 -0
  674. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js +22 -0
  675. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js.map +1 -0
  676. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
  679. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js +4 -4
  680. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js.map +1 -1
  681. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js +1 -1
  682. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js.map +1 -1
  683. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +4 -0
  684. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +1 -0
  685. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +21 -0
  686. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +1 -0
  687. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js +1 -1
  688. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js.map +1 -1
  689. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  690. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  691. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js +1 -1
  692. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js.map +1 -1
  693. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js +1 -1
  694. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js.map +1 -1
  695. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
  696. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js +20 -2
  697. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js.map +1 -1
  698. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts +5 -0
  699. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts.map +1 -0
  700. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js +177 -0
  701. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js.map +1 -0
  702. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts +5 -0
  703. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts.map +1 -0
  704. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js +22 -0
  705. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js.map +1 -0
  706. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
  707. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js +10 -2
  708. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js.map +1 -1
  709. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts +5 -0
  710. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts.map +1 -0
  711. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js +166 -0
  712. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js.map +1 -0
  713. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts +5 -0
  714. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts.map +1 -0
  715. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js +122 -0
  716. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js.map +1 -0
  717. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts +5 -0
  718. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts.map +1 -0
  719. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js +152 -0
  720. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js.map +1 -0
  721. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
  722. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js +13 -0
  723. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js.map +1 -1
  724. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  725. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  726. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts +5 -0
  727. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts.map +1 -0
  728. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js +92 -0
  729. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js.map +1 -0
  730. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts +5 -0
  731. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -0
  732. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +29 -0
  733. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -0
  734. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js +1 -1
  735. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js.map +1 -1
  736. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js +1 -1
  737. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js.map +1 -1
  738. package/dist/esm/engine/frontend-components/index.d.ts +12 -0
  739. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  740. package/dist/esm/engine/frontend-components/index.js +40 -0
  741. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  742. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts +25 -1
  743. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
  744. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js +16 -2
  745. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js.map +1 -1
  746. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js +1 -1
  747. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js.map +1 -1
  748. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts +9 -0
  749. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
  750. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js +91 -7
  751. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js.map +1 -1
  752. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
  753. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js +9 -3
  754. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js.map +1 -1
  755. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
  756. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js +41 -1
  757. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js.map +1 -1
  758. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js +2 -2
  759. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js.map +1 -1
  760. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
  761. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js +19 -1
  762. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js.map +1 -1
  763. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js +3 -3
  764. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js.map +1 -1
  765. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +21 -1
  767. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  768. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +2 -0
  769. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  770. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -0
  771. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -0
  772. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +48 -0
  773. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -0
  774. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  775. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +3 -2
  776. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  777. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +77 -3
  778. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  779. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +11 -3
  780. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  781. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +26 -1
  782. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  783. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +17 -8
  784. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  785. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +49 -0
  786. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -0
  787. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +293 -0
  788. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -0
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +5 -5
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  791. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  792. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +6 -6
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  794. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +3 -3
  795. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  796. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  797. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
  798. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  799. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +3 -1
  800. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  801. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +27 -5
  802. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  803. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +1 -1
  804. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  805. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +31 -12
  806. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  807. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  808. package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
  809. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  810. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  811. package/dist/esm/engine/providers/apple.provider.specification.js +12 -1
  812. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  813. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
  814. package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
  815. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
  816. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/providers/github.provider.specification.js +12 -1
  818. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  819. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  820. package/dist/esm/engine/providers/google.provider.specification.js +12 -1
  821. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  822. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  823. package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
  824. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  825. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  826. package/dist/esm/engine/providers/microsoft.provider.specification.js +22 -1
  827. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  828. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
  830. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  831. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  832. package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
  833. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  834. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
  836. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
  837. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  838. package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
  839. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  840. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  841. package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
  842. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  843. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  844. package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
  845. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  846. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  847. package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
  848. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  849. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts +2 -0
  850. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts.map +1 -0
  851. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +21 -0
  852. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -0
  853. package/dist/esm/engine/roles/index.d.ts +4 -3
  854. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  855. package/dist/esm/engine/roles/index.js +6 -4
  856. package/dist/esm/engine/roles/index.js.map +1 -1
  857. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +5 -3
  858. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  860. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  861. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -1
  862. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -2
  864. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  865. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -0
  866. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  867. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -3
  868. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  869. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -2
  870. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -2
  871. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  872. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
  873. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +1 -1
  874. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  875. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
  876. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +3 -3
  877. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  878. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  879. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  880. package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
  881. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +1 -0
  883. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  884. package/dist/esm/engine/users/resources/users.resource.specification.js +2 -2
  885. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  886. package/dist/esm/index.d.ts +39 -0
  887. package/dist/esm/index.d.ts.map +1 -1
  888. package/dist/esm/index.js +39 -0
  889. package/dist/esm/index.js.map +1 -1
  890. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +134 -0
  891. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -0
  892. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +142 -0
  893. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -0
  894. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +35 -0
  895. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts.map +1 -0
  896. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js +45 -0
  897. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js.map +1 -0
  898. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts +33 -0
  899. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts.map +1 -0
  900. package/dist/esm/technical-documentation/application-documentation-plan-validation.js +77 -0
  901. package/dist/esm/technical-documentation/application-documentation-plan-validation.js.map +1 -0
  902. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts +3 -0
  903. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts.map +1 -0
  904. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js +40 -0
  905. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js.map +1 -0
  906. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +122 -0
  907. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -0
  908. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +138 -0
  909. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -0
  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 +7 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js +1 -1
  914. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js.map +1 -1
  915. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js +1 -1
  916. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js.map +1 -1
  917. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js +1 -1
  918. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js.map +1 -1
  919. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js +1 -1
  920. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js.map +1 -1
  921. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js +1 -1
  922. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js.map +1 -1
  923. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js +1 -1
  924. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js.map +1 -1
  925. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +14 -0
  926. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  927. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +16 -3
  928. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  929. package/dist/esm/technical-documentation.exports.d.ts +4 -0
  930. package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
  931. package/dist/esm/technical-documentation.exports.js +24 -0
  932. package/dist/esm/technical-documentation.exports.js.map +1 -1
  933. package/dist/tsconfig.build.tsbuildinfo +1 -1
  934. package/package.json +8 -13
  935. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -103
  936. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +0 -1
  937. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js +0 -76
  938. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js.map +0 -1
  939. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +0 -108
  940. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +0 -1
  941. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +0 -119
  942. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +0 -1
  943. package/dist/esm/application-creation-playbook-runtime.exports.d.ts +0 -3
  944. package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +0 -1
  945. package/dist/esm/application-creation-playbook-runtime.exports.js +0 -3
  946. package/dist/esm/application-creation-playbook-runtime.exports.js.map +0 -1
  947. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
  948. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
  949. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
  950. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import '@wildo-ai/zod-decorators';
2
3
  import { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas';
3
4
  /**
4
5
  * @wildo_source:part:start roadmap.authored-metadata.config facet:layer:specification facet:family:roadmap
@@ -38,8 +39,8 @@ import { AuthoredConfidence, ReviewCadence } from '../market/market-authored-met
38
39
  */
39
40
  export declare const RoadmapAuthoredMetadataSchema: z.ZodObject<{
40
41
  lastAuthoredAt: z.ZodISODateTime;
41
- confidence: z.ZodEnum<typeof AuthoredConfidence>;
42
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof ReviewCadence>>;
42
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof AuthoredConfidence>>;
43
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof ReviewCadence>>>;
43
44
  reviewer: z.ZodOptional<z.ZodString>;
44
45
  notes: z.ZodOptional<z.ZodString>;
45
46
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"roadmap-authored-metadata.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-authored-metadata.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,6BAA6B;;;;;;iBAgBxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,8DAA8D"}
1
+ {"version":3,"file":"roadmap-authored-metadata.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-authored-metadata.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,6BAA6B;;;;;;iBAgBxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,8DAA8D"}
@@ -1,4 +1,7 @@
1
1
  import { z } from 'zod';
2
+ // Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —
3
+ // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
+ import '@wildo-ai/zod-decorators';
2
5
  import { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas.js';
3
6
  import { NonEmptyStringSchema } from '../market/market-references.schemas.js';
4
7
  /**
@@ -41,14 +44,14 @@ export const RoadmapAuthoredMetadataSchema = z.object({
41
44
  /** ISO-8601 timestamp of the last meaningful authoring touch. */
42
45
  lastAuthoredAt: z.iso.datetime(),
43
46
  /** Author's self-assessed confidence in the current content. */
44
- confidence: z.enum(AuthoredConfidence),
47
+ confidence: z.enum(AuthoredConfidence).systemEnum('AuthoredConfidence'),
45
48
  /**
46
49
  * Cadence at which the entity should be re-reviewed. When set, the
47
50
  * snapshot validator emits `STALE_AUTHORED` if `lastAuthoredAt +
48
51
  * cadence < now`. When omitted, no staleness check runs (same semantics
49
52
  * as the market / vision / requirements / assertions families).
50
53
  */
51
- reviewCadence: z.enum(ReviewCadence).optional(),
54
+ reviewCadence: z.enum(ReviewCadence).systemEnum('ReviewCadence').optional(),
52
55
  /** Owner accountable for the entity's content. Free-form name/handle. */
53
56
  reviewer: NonEmptyStringSchema.optional(),
54
57
  /** Free-form authoring notes (rationale, open questions, sources). */
@@ -1 +1 @@
1
- {"version":3,"file":"roadmap-authored-metadata.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-authored-metadata.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,iEAAiE;IACjE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAChC,gEAAgE;IAChE,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;IACtC;;;;;OAKG;IACH,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IAC/C,yEAAyE;IACzE,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC,sEAAsE;IACtE,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,8DAA8D","sourcesContent":["import { z } from 'zod';\n\nimport { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\n\n/**\n * @wildo_source:part:start roadmap.authored-metadata.config facet:layer:specification facet:family:roadmap\n *\n * Optional per-entity authoring provenance attached to any roadmap entity\n * (a roadmap phase) — the roadmap family's counterpart to\n * `MarketAuthoredMetadataSchema` / `VisionAuthoredMetadataSchema` /\n * `RequirementsAuthoredMetadataSchema`.\n *\n * Design decision (mirrors the vision / requirements families): this is a\n * SIBLING schema, NOT a reshape of `market-authored-metadata.schemas.ts`.\n * Promoting a shared `_core/authored-metadata` module is a `_core` reshape\n * with the full blast-radius checklist across every market consumer —\n * explicitly deferred. The market enums are already family-agnostic in\n * name and meaning, so they are IMPORTED rather than duplicated\n * (`AuthoredConfidence`, `ReviewCadence`): re-declaring either would\n * silently drop it from the package-root barrel (ambiguous `export *`\n * names are excluded), and hand-duplicated vocabularies drift.\n *\n * Three concerns are bundled here so consumers see them in one place:\n *\n * - **Confidence** — `LOW | MEDIUM | HIGH`. Drives prompt enrichment:\n * AI surfaces emit \"confidence LOW — early plan, validate\" when\n * surfacing the entity to a model so it does not parrot a speculative\n * delivery date as a committed one. Kept OPTIONAL provenance here\n * (market / vision / requirements posture), NOT a required top-level\n * audit field (assertions posture): a roadmap is authored by a product\n * owner progressively, not audited by reconcile.\n * - **Recency** — `lastAuthoredAt` ISO datetime + optional `reviewCadence`.\n * The snapshot validator only flags `STALE_AUTHORED` when both are set\n * (no cadence ⇒ no staleness check).\n * - **Trace** — `reviewer` + `notes` carry the human accountability trail\n * without leaking internal processes into the spec.\n *\n * Entirely optional: omit the block when authoring is so fresh and trivial\n * that provenance adds noise.\n */\nexport const RoadmapAuthoredMetadataSchema = z.object({\n /** ISO-8601 timestamp of the last meaningful authoring touch. */\n lastAuthoredAt: z.iso.datetime(),\n /** Author's self-assessed confidence in the current content. */\n confidence: z.enum(AuthoredConfidence),\n /**\n * Cadence at which the entity should be re-reviewed. When set, the\n * snapshot validator emits `STALE_AUTHORED` if `lastAuthoredAt +\n * cadence < now`. When omitted, no staleness check runs (same semantics\n * as the market / vision / requirements / assertions families).\n */\n reviewCadence: z.enum(ReviewCadence).optional(),\n /** Owner accountable for the entity's content. Free-form name/handle. */\n reviewer: NonEmptyStringSchema.optional(),\n /** Free-form authoring notes (rationale, open questions, sources). */\n notes: NonEmptyStringSchema.optional(),\n});\nexport type RoadmapAuthoredMetadata = z.infer<typeof RoadmapAuthoredMetadataSchema>;\n/** @wildo_source:part:end roadmap.authored-metadata.config */\n"]}
1
+ {"version":3,"file":"roadmap-authored-metadata.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-authored-metadata.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,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,iEAAiE;IACjE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAChC,gEAAgE;IAChE,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC;IACvE;;;;;OAKG;IACH,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAC3E,yEAAyE;IACzE,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC,sEAAsE;IACtE,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,8DAA8D","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 { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\n\n/**\n * @wildo_source:part:start roadmap.authored-metadata.config facet:layer:specification facet:family:roadmap\n *\n * Optional per-entity authoring provenance attached to any roadmap entity\n * (a roadmap phase) — the roadmap family's counterpart to\n * `MarketAuthoredMetadataSchema` / `VisionAuthoredMetadataSchema` /\n * `RequirementsAuthoredMetadataSchema`.\n *\n * Design decision (mirrors the vision / requirements families): this is a\n * SIBLING schema, NOT a reshape of `market-authored-metadata.schemas.ts`.\n * Promoting a shared `_core/authored-metadata` module is a `_core` reshape\n * with the full blast-radius checklist across every market consumer —\n * explicitly deferred. The market enums are already family-agnostic in\n * name and meaning, so they are IMPORTED rather than duplicated\n * (`AuthoredConfidence`, `ReviewCadence`): re-declaring either would\n * silently drop it from the package-root barrel (ambiguous `export *`\n * names are excluded), and hand-duplicated vocabularies drift.\n *\n * Three concerns are bundled here so consumers see them in one place:\n *\n * - **Confidence** — `LOW | MEDIUM | HIGH`. Drives prompt enrichment:\n * AI surfaces emit \"confidence LOW — early plan, validate\" when\n * surfacing the entity to a model so it does not parrot a speculative\n * delivery date as a committed one. Kept OPTIONAL provenance here\n * (market / vision / requirements posture), NOT a required top-level\n * audit field (assertions posture): a roadmap is authored by a product\n * owner progressively, not audited by reconcile.\n * - **Recency** — `lastAuthoredAt` ISO datetime + optional `reviewCadence`.\n * The snapshot validator only flags `STALE_AUTHORED` when both are set\n * (no cadence ⇒ no staleness check).\n * - **Trace** — `reviewer` + `notes` carry the human accountability trail\n * without leaking internal processes into the spec.\n *\n * Entirely optional: omit the block when authoring is so fresh and trivial\n * that provenance adds noise.\n */\nexport const RoadmapAuthoredMetadataSchema = z.object({\n /** ISO-8601 timestamp of the last meaningful authoring touch. */\n lastAuthoredAt: z.iso.datetime(),\n /** Author's self-assessed confidence in the current content. */\n confidence: z.enum(AuthoredConfidence).systemEnum('AuthoredConfidence'),\n /**\n * Cadence at which the entity should be re-reviewed. When set, the\n * snapshot validator emits `STALE_AUTHORED` if `lastAuthoredAt +\n * cadence < now`. When omitted, no staleness check runs (same semantics\n * as the market / vision / requirements / assertions families).\n */\n reviewCadence: z.enum(ReviewCadence).systemEnum('ReviewCadence').optional(),\n /** Owner accountable for the entity's content. Free-form name/handle. */\n reviewer: NonEmptyStringSchema.optional(),\n /** Free-form authoring notes (rationale, open questions, sources). */\n notes: NonEmptyStringSchema.optional(),\n});\nexport type RoadmapAuthoredMetadata = z.infer<typeof RoadmapAuthoredMetadataSchema>;\n/** @wildo_source:part:end roadmap.authored-metadata.config */\n"]}
@@ -101,8 +101,8 @@ export declare const RoadmapPhaseConfigSchema: z.ZodObject<{
101
101
  deliversSuccessCriterionRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
102
102
  authored: z.ZodOptional<z.ZodObject<{
103
103
  lastAuthoredAt: z.ZodISODateTime;
104
- confidence: z.ZodEnum<typeof import("..").AuthoredConfidence>;
105
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof import("..").ReviewCadence>>;
104
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").AuthoredConfidence>>;
105
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>>;
106
106
  reviewer: z.ZodOptional<z.ZodString>;
107
107
  notes: z.ZodOptional<z.ZodString>;
108
108
  }, z.core.$strip>>;
@@ -129,6 +129,11 @@ export interface ValidateRoadmapSnapshotOptions {
129
129
  */
130
130
  availableSuccessCriterionRefs?: ReadonlySet<string>;
131
131
  }
132
+ /**
133
+ * Days-per-cadence mapping, mirrored from the market / vision /
134
+ * requirements / assertions validators (module-local there too — a shared
135
+ * promotion is part of the deferred authored-metadata generalization).
136
+ */
132
137
  export declare function validateRoadmapSnapshot(snapshot: RoadmapSnapshot, options?: ValidateRoadmapSnapshotOptions): RoadmapSnapshotValidationResult;
133
138
  /** @wildo_source:part:end roadmap.snapshot.validation */
134
139
  //# sourceMappingURL=roadmap-snapshot-validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"roadmap-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,oBAAY,wBAAwB;IAClC;;;;;OAKG;IACH,kBAAkB,uBAAuB;IACzC;;;OAGG;IACH,aAAa,kBAAkB;IAC/B;;;;OAIG;IACH,kBAAkB,uBAAuB;IACzC;;;;;;;;OAQG;IACH,mBAAmB,wBAAwB;IAC3C,6DAA6D;IAC7D,SAAS,cAAc;IACvB,yFAAyF;IACzF,cAAc,mBAAmB;IACjC;;;;;OAKG;IACH,uBAAuB,4BAA4B;IACnD;;;;OAIG;IACH,6BAA6B,kCAAkC;CAChE;AAED,oBAAY,4BAA4B;IACtC,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,4BAA4B,CAAC;CACxC;AAED,MAAM,WAAW,+BAA+B;IAC9C,gDAAgD;IAChD,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,oBAAoB,EAAE,CAAC;CAChC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,8BAA8B;IAC7C,8FAA8F;IAC9F,GAAG,CAAC,EAAE,IAAI,CAAC;IACX;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrD;AAeD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,8BAA8B,GACvC,+BAA+B,CAejC;AAoKD,yDAAyD"}
1
+ {"version":3,"file":"roadmap-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":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emas.js';
1
+ import { REVIEW_CADENCE_TO_DAYS } from '../market/market-authored-metadata.schemas.js';
2
2
  import { ROADMAP_PHASE_REF_PATTERN } from './roadmap-references.schemas.js';
3
3
  /**
4
4
  * @wildo_source:part:start roadmap.snapshot.validation facet:layer:specification facet:family:roadmap
@@ -92,13 +92,6 @@ export var RoadmapSnapshotIssueSeverity;
92
92
  * requirements / assertions validators (module-local there too — a shared
93
93
  * promotion is part of the deferred authored-metadata generalization).
94
94
  */
95
- const REVIEW_CADENCE_TO_DAYS = {
96
- [ReviewCadence.WEEKLY]: 7,
97
- [ReviewCadence.MONTHLY]: 31,
98
- [ReviewCadence.QUARTERLY]: 92,
99
- [ReviewCadence.YEARLY]: 366,
100
- [ReviewCadence.AS_NEEDED]: Number.POSITIVE_INFINITY,
101
- };
102
95
  export function validateRoadmapSnapshot(snapshot, options) {
103
96
  const issues = [];
104
97
  detectInvalidRefFormats(snapshot, issues);
@@ -1 +1 @@
1
- {"version":3,"file":"roadmap-snapshot-validation.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAN,IAAY,wBA8CX;AA9CD,WAAY,wBAAwB;IAClC;;;;;OAKG;IACH,qEAAyC,CAAA;IACzC;;;OAGG;IACH,2DAA+B,CAAA;IAC/B;;;;OAIG;IACH,qEAAyC,CAAA;IACzC;;;;;;;;OAQG;IACH,uEAA2C,CAAA;IAC3C,6DAA6D;IAC7D,mDAAuB,CAAA;IACvB,yFAAyF;IACzF,6DAAiC,CAAA;IACjC;;;;;OAKG;IACH,+EAAmD,CAAA;IACnD;;;;OAIG;IACH,2FAA+D,CAAA;AACjE,CAAC,EA9CW,wBAAwB,KAAxB,wBA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AAE,OAAO;gBAC9D,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,wBAAwB,CAAC,6BAA6B;oBAC5D,IAAI,EAAE,UAAU,KAAK,kCAAkC,QAAQ,GAAG;oBAClE,OAAO,EAAE,0BAA0B,KAAK,eAAe,KAAK,CAAC,GAAG,+DAA+D;oBAC/H,QAAQ,EAAE,4BAA4B,CAAC,KAAK;iBAC7C,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,yDAAyD","sourcesContent":["import { ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport type { RoadmapAuthoredMetadata } from './roadmap-authored-metadata.schemas';\nimport type { RoadmapPhaseConfig } from './roadmap-phase.schemas';\nimport { ROADMAP_PHASE_REF_PATTERN } from './roadmap-references.schemas';\nimport type { RoadmapSnapshot } from './roadmap-snapshot.schemas';\n\n/**\n * @wildo_source:part:start roadmap.snapshot.validation facet:layer:specification facet:family:roadmap\n *\n * Authoring-consistency validator for an assembled `RoadmapSnapshot`.\n *\n * The function is a **pure**, **typed** graph walker over the snapshot —\n * no Zod introspection, no registry access, no I/O (the `_core` validator\n * convention shared with `validateMarketSnapshot` / `validateVisionSnapshot`\n * / `validateRequirementsSnapshot` / `validateAssertionSpecificationSnapshot`).\n * Zod already enforces structural validity (ref formats at parse time);\n * this walker adds the cross-entity + completeness checks Zod cannot\n * express, the defence-in-depth ref-format check for type-asserted\n * fixtures that bypass parsing, and the fail-soft cross-family\n * requirement / success-criterion ref resolution.\n *\n * Rule table — 8 kinds (scaffold depth, Phase J1 — deeper roadmap quality\n * / timeline / dependency analysis is Phase J2):\n *\n * | Kind | Severity | Trigger |\n * |-------------------------------|----------|--------------------------------------------------------------------------------|\n * | `INVALID_REF_FORMAT` | ERROR | A phase 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 phases share a ref — the collection silently loses one entity to last-wins indexing. |\n * | `DUPLICATE_SEQUENCE` | WARN | Two phases share a `sequence` — the roadmap order between them is ambiguous. WARN (the phases are still valid; the ordering is just under-specified). |\n * | `DUPLICATE_CROSS_REF` | WARN | The same deliver-ref is listed more than once on ONE phase's deliver-list — the repeat is noise the catalog silently dedupes (or double-counts in coverage). Intra-snapshot, so it runs UNCONDITIONALLY (no external set needed) — each deliver-list is its own namespace. |\n * | `NO_PHASES` | WARN | `phases` empty — the roadmap plans no delivery. |\n * | `STALE_AUTHORED` | WARN | Any phase's `authored.lastAuthoredAt + reviewCadence < now`. No check when `reviewCadence` is undefined or `AS_NEEDED`. |\n * | `UNKNOWN_REQUIREMENT_REF` | ERROR | A `deliversRequirementRefs` entry does not resolve in `options.availableRequirementRefs`. SKIPPED (fail-soft) when no set is passed — the families are decoupled and the catalog resolves refs. |\n * | `UNKNOWN_SUCCESS_CRITERION_REF` | ERROR | A `deliversSuccessCriterionRefs` entry does not resolve in `options.availableSuccessCriterionRefs`. SKIPPED (fail-soft) when no set is passed. |\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 RoadmapSnapshotIssueKind {\n /**\n * A phase ref violates its kebab-case prefix contract. The Zod schema\n * rejects this at parse time; the detector remains as defence in depth\n * for callers that bypass parsing (tests building snapshots with\n * type-asserted fixtures). ERROR.\n */\n INVALID_REF_FORMAT = 'invalid_ref_format',\n /**\n * Two phases share a ref. The collection is addressed by ref\n * downstream, so a duplicate silently drops one phase. ERROR.\n */\n DUPLICATE_REF = 'duplicate_ref',\n /**\n * Two phases share a `sequence`. The ordering between them is ambiguous\n * (consumers sort by `sequence`), but no data is lost — WARN, not ERROR.\n * Give each phase a distinct sequence.\n */\n DUPLICATE_SEQUENCE = 'duplicate_sequence',\n /**\n * The same requirement / success-criterion ref appears more than once on\n * ONE phase's deliver-list. The repeat carries no meaning — the catalog\n * dedupes it (or double-counts it in coverage). WARN, not ERROR: the\n * phase is still valid, the authoring is just untidy. Runs\n * unconditionally (intra-snapshot, needs no external set); each\n * deliver-list is its own namespace, so the same string appearing once\n * in each of the two lists is NOT a duplicate.\n */\n DUPLICATE_CROSS_REF = 'duplicate_cross_ref',\n /** `phases` empty — the roadmap plans no delivery (WARN). */\n NO_PHASES = 'no_phases',\n /** `lastAuthoredAt + reviewCadence < now` (WARN — market/vision/requirements parity). */\n STALE_AUTHORED = 'stale_authored',\n /**\n * A `deliversRequirementRefs` entry does not resolve against the\n * supplied requirement-ref set — a dangling cross-family reference.\n * ERROR when a set is supplied; the whole check is SKIPPED (fail-soft)\n * when it is not.\n */\n UNKNOWN_REQUIREMENT_REF = 'unknown_requirement_ref',\n /**\n * A `deliversSuccessCriterionRefs` entry does not resolve against the\n * supplied success-criterion-ref set. ERROR when a set is supplied;\n * SKIPPED (fail-soft) when it is not.\n */\n UNKNOWN_SUCCESS_CRITERION_REF = 'unknown_success_criterion_ref',\n}\n\nexport enum RoadmapSnapshotIssueSeverity {\n ERROR = 'error',\n WARN = 'warn',\n}\n\nexport interface RoadmapSnapshotIssue {\n kind: RoadmapSnapshotIssueKind;\n /** Dotted path inside the snapshot (e.g. `'phases[2].ref'`). */\n path: string;\n message: string;\n severity: RoadmapSnapshotIssueSeverity;\n}\n\nexport interface RoadmapSnapshotValidationResult {\n /** `true` iff no issue has severity `ERROR`. */\n ok: boolean;\n issues: RoadmapSnapshotIssue[];\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 ValidateRoadmapSnapshotOptions {\n /** Override \"now\" for `STALE_AUTHORED` checks (test affordance). Defaults to `new Date()`. */\n now?: Date;\n /**\n * Resolvable functional-requirement refs. When supplied, every\n * `deliversRequirementRefs` entry not in the set is reported as\n * `UNKNOWN_REQUIREMENT_REF`. When omitted, the check is skipped entirely\n * (fail-soft — the roadmap family is decoupled from the requirements\n * family; the catalog owns resolution).\n */\n availableRequirementRefs?: ReadonlySet<string>;\n /**\n * Resolvable vision success-criterion refs. Same skip-when-omitted\n * semantics as `availableRequirementRefs`, reported as\n * `UNKNOWN_SUCCESS_CRITERION_REF`.\n */\n availableSuccessCriterionRefs?: ReadonlySet<string>;\n}\n\n/**\n * Days-per-cadence mapping, mirrored from the market / vision /\n * requirements / 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 validateRoadmapSnapshot(\n snapshot: RoadmapSnapshot,\n options?: ValidateRoadmapSnapshotOptions,\n): RoadmapSnapshotValidationResult {\n const issues: RoadmapSnapshotIssue[] = [];\n\n detectInvalidRefFormats(snapshot, issues);\n detectDuplicateRefs(snapshot, issues);\n detectDuplicateSequences(snapshot, issues);\n detectDuplicateCrossRefs(snapshot, issues);\n detectIncompleteness(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 !== RoadmapSnapshotIssueSeverity.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: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (ROADMAP_PHASE_REF_PATTERN.test(entry.ref)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.INVALID_REF_FORMAT,\n path: `phases[${index}].ref`,\n message: `Roadmap-phase ref \"${entry.ref}\" is not kebab-case with the \"roadmap-phase-\" prefix.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<string>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.ref)) {\n seen.add(entry.ref);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_REF,\n path: `phases[${index}].ref`,\n message: `Duplicate ref \"${entry.ref}\" in phases — refs must be unique; the collection is addressed by ref downstream.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateSequences(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<number>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.sequence)) {\n seen.add(entry.sequence);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_SEQUENCE,\n path: `phases[${index}].sequence`,\n message: `Duplicate sequence ${entry.sequence} on phase \"${entry.ref}\" — two phases share an ordering key, so the roadmap order between them is ambiguous. Give each phase a distinct sequence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n}\n\nfunction detectDuplicateCrossRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkList = (\n refs: readonly string[] | undefined,\n entry: RoadmapPhaseConfig,\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: RoadmapSnapshotIssueKind.DUPLICATE_CROSS_REF,\n path: `${path}[${refIndex}]`,\n message: `Deliver-ref \"${ref}\" is listed more than once on phase \"${entry.ref}\" (${path}). Remove the duplicate.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n };\n\n snapshot.phases.forEach((entry, index) => {\n checkList(entry.deliversRequirementRefs, entry, `phases[${index}].deliversRequirementRefs`);\n checkList(\n entry.deliversSuccessCriterionRefs,\n entry,\n `phases[${index}].deliversSuccessCriterionRefs`,\n );\n });\n}\n\nfunction detectIncompleteness(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n if (snapshot.phases.length === 0) {\n issues.push({\n kind: RoadmapSnapshotIssueKind.NO_PHASES,\n path: 'phases',\n message: 'Roadmap plans no phases — it describes no delivery of the product.',\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n }\n}\n\nfunction detectStaleAuthored(\n snapshot: RoadmapSnapshot,\n now: Date,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkOne = (authored: RoadmapAuthoredMetadata | undefined, path: string): 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: RoadmapSnapshotIssueKind.STALE_AUTHORED,\n path,\n message: `Roadmap phase at \"${path}\" is ${Math.floor(ageDays)} days old (cadence ${authored.reviewCadence} ⇒ ${days}d). Re-author or remove the cadence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n };\n\n snapshot.phases.forEach((entry, index) =>\n checkOne(entry.authored, `phases[${index}].authored`),\n );\n}\n\nfunction detectUnknownCrossRefs(\n snapshot: RoadmapSnapshot,\n options: ValidateRoadmapSnapshotOptions | undefined,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (options?.availableRequirementRefs !== undefined) {\n entry.deliversRequirementRefs?.forEach((reqRef, refIndex) => {\n if (options.availableRequirementRefs!.has(reqRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_REQUIREMENT_REF,\n path: `phases[${index}].deliversRequirementRefs[${refIndex}]`,\n message: `Requirement ref \"${reqRef}\" on phase \"${entry.ref}\" does not resolve in the supplied requirement-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n if (options?.availableSuccessCriterionRefs !== undefined) {\n entry.deliversSuccessCriterionRefs?.forEach((scRef, refIndex) => {\n if (options.availableSuccessCriterionRefs!.has(scRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_SUCCESS_CRITERION_REF,\n path: `phases[${index}].deliversSuccessCriterionRefs[${refIndex}]`,\n message: `Success-criterion ref \"${scRef}\" on phase \"${entry.ref}\" does not resolve in the supplied success-criterion-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n });\n}\n/** @wildo_source:part:end roadmap.snapshot.validation */\n"]}
1
+ {"version":3,"file":"roadmap-snapshot-validation.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap-snapshot-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAiB,MAAM,4CAA4C,CAAC;AAGnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAN,IAAY,wBA8CX;AA9CD,WAAY,wBAAwB;IAClC;;;;;OAKG;IACH,qEAAyC,CAAA;IACzC;;;OAGG;IACH,2DAA+B,CAAA;IAC/B;;;;OAIG;IACH,qEAAyC,CAAA;IACzC;;;;;;;;OA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AAI,EAAE,UAAU,KAAK,kCAAkC,QAAQ,GAAG;oBAClE,OAAO,EAAE,0BAA0B,KAAK,eAAe,KAAK,CAAC,GAAG,+DAA+D;oBAC/H,QAAQ,EAAE,4BAA4B,CAAC,KAAK;iBAC7C,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,yDAAyD","sourcesContent":["import { REVIEW_CADENCE_TO_DAYS, ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport type { RoadmapAuthoredMetadata } from './roadmap-authored-metadata.schemas';\nimport type { RoadmapPhaseConfig } from './roadmap-phase.schemas';\nimport { ROADMAP_PHASE_REF_PATTERN } from './roadmap-references.schemas';\nimport type { RoadmapSnapshot } from './roadmap-snapshot.schemas';\n\n/**\n * @wildo_source:part:start roadmap.snapshot.validation facet:layer:specification facet:family:roadmap\n *\n * Authoring-consistency validator for an assembled `RoadmapSnapshot`.\n *\n * The function is a **pure**, **typed** graph walker over the snapshot —\n * no Zod introspection, no registry access, no I/O (the `_core` validator\n * convention shared with `validateMarketSnapshot` / `validateVisionSnapshot`\n * / `validateRequirementsSnapshot` / `validateAssertionSpecificationSnapshot`).\n * Zod already enforces structural validity (ref formats at parse time);\n * this walker adds the cross-entity + completeness checks Zod cannot\n * express, the defence-in-depth ref-format check for type-asserted\n * fixtures that bypass parsing, and the fail-soft cross-family\n * requirement / success-criterion ref resolution.\n *\n * Rule table — 8 kinds (scaffold depth, Phase J1 — deeper roadmap quality\n * / timeline / dependency analysis is Phase J2):\n *\n * | Kind | Severity | Trigger |\n * |-------------------------------|----------|--------------------------------------------------------------------------------|\n * | `INVALID_REF_FORMAT` | ERROR | A phase 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 phases share a ref — the collection silently loses one entity to last-wins indexing. |\n * | `DUPLICATE_SEQUENCE` | WARN | Two phases share a `sequence` — the roadmap order between them is ambiguous. WARN (the phases are still valid; the ordering is just under-specified). |\n * | `DUPLICATE_CROSS_REF` | WARN | The same deliver-ref is listed more than once on ONE phase's deliver-list — the repeat is noise the catalog silently dedupes (or double-counts in coverage). Intra-snapshot, so it runs UNCONDITIONALLY (no external set needed) — each deliver-list is its own namespace. |\n * | `NO_PHASES` | WARN | `phases` empty — the roadmap plans no delivery. |\n * | `STALE_AUTHORED` | WARN | Any phase's `authored.lastAuthoredAt + reviewCadence < now`. No check when `reviewCadence` is undefined or `AS_NEEDED`. |\n * | `UNKNOWN_REQUIREMENT_REF` | ERROR | A `deliversRequirementRefs` entry does not resolve in `options.availableRequirementRefs`. SKIPPED (fail-soft) when no set is passed — the families are decoupled and the catalog resolves refs. |\n * | `UNKNOWN_SUCCESS_CRITERION_REF` | ERROR | A `deliversSuccessCriterionRefs` entry does not resolve in `options.availableSuccessCriterionRefs`. SKIPPED (fail-soft) when no set is passed. |\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 RoadmapSnapshotIssueKind {\n /**\n * A phase ref violates its kebab-case prefix contract. The Zod schema\n * rejects this at parse time; the detector remains as defence in depth\n * for callers that bypass parsing (tests building snapshots with\n * type-asserted fixtures). ERROR.\n */\n INVALID_REF_FORMAT = 'invalid_ref_format',\n /**\n * Two phases share a ref. The collection is addressed by ref\n * downstream, so a duplicate silently drops one phase. ERROR.\n */\n DUPLICATE_REF = 'duplicate_ref',\n /**\n * Two phases share a `sequence`. The ordering between them is ambiguous\n * (consumers sort by `sequence`), but no data is lost — WARN, not ERROR.\n * Give each phase a distinct sequence.\n */\n DUPLICATE_SEQUENCE = 'duplicate_sequence',\n /**\n * The same requirement / success-criterion ref appears more than once on\n * ONE phase's deliver-list. The repeat carries no meaning — the catalog\n * dedupes it (or double-counts it in coverage). WARN, not ERROR: the\n * phase is still valid, the authoring is just untidy. Runs\n * unconditionally (intra-snapshot, needs no external set); each\n * deliver-list is its own namespace, so the same string appearing once\n * in each of the two lists is NOT a duplicate.\n */\n DUPLICATE_CROSS_REF = 'duplicate_cross_ref',\n /** `phases` empty — the roadmap plans no delivery (WARN). */\n NO_PHASES = 'no_phases',\n /** `lastAuthoredAt + reviewCadence < now` (WARN — market/vision/requirements parity). */\n STALE_AUTHORED = 'stale_authored',\n /**\n * A `deliversRequirementRefs` entry does not resolve against the\n * supplied requirement-ref set — a dangling cross-family reference.\n * ERROR when a set is supplied; the whole check is SKIPPED (fail-soft)\n * when it is not.\n */\n UNKNOWN_REQUIREMENT_REF = 'unknown_requirement_ref',\n /**\n * A `deliversSuccessCriterionRefs` entry does not resolve against the\n * supplied success-criterion-ref set. ERROR when a set is supplied;\n * SKIPPED (fail-soft) when it is not.\n */\n UNKNOWN_SUCCESS_CRITERION_REF = 'unknown_success_criterion_ref',\n}\n\nexport enum RoadmapSnapshotIssueSeverity {\n ERROR = 'error',\n WARN = 'warn',\n}\n\nexport interface RoadmapSnapshotIssue {\n kind: RoadmapSnapshotIssueKind;\n /** Dotted path inside the snapshot (e.g. `'phases[2].ref'`). */\n path: string;\n message: string;\n severity: RoadmapSnapshotIssueSeverity;\n}\n\nexport interface RoadmapSnapshotValidationResult {\n /** `true` iff no issue has severity `ERROR`. */\n ok: boolean;\n issues: RoadmapSnapshotIssue[];\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 ValidateRoadmapSnapshotOptions {\n /** Override \"now\" for `STALE_AUTHORED` checks (test affordance). Defaults to `new Date()`. */\n now?: Date;\n /**\n * Resolvable functional-requirement refs. When supplied, every\n * `deliversRequirementRefs` entry not in the set is reported as\n * `UNKNOWN_REQUIREMENT_REF`. When omitted, the check is skipped entirely\n * (fail-soft — the roadmap family is decoupled from the requirements\n * family; the catalog owns resolution).\n */\n availableRequirementRefs?: ReadonlySet<string>;\n /**\n * Resolvable vision success-criterion refs. Same skip-when-omitted\n * semantics as `availableRequirementRefs`, reported as\n * `UNKNOWN_SUCCESS_CRITERION_REF`.\n */\n availableSuccessCriterionRefs?: ReadonlySet<string>;\n}\n\n/**\n * Days-per-cadence mapping, mirrored from the market / vision /\n * requirements / assertions validators (module-local there too — a shared\n * promotion is part of the deferred authored-metadata generalization).\n */\n\nexport function validateRoadmapSnapshot(\n snapshot: RoadmapSnapshot,\n options?: ValidateRoadmapSnapshotOptions,\n): RoadmapSnapshotValidationResult {\n const issues: RoadmapSnapshotIssue[] = [];\n\n detectInvalidRefFormats(snapshot, issues);\n detectDuplicateRefs(snapshot, issues);\n detectDuplicateSequences(snapshot, issues);\n detectDuplicateCrossRefs(snapshot, issues);\n detectIncompleteness(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 !== RoadmapSnapshotIssueSeverity.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: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (ROADMAP_PHASE_REF_PATTERN.test(entry.ref)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.INVALID_REF_FORMAT,\n path: `phases[${index}].ref`,\n message: `Roadmap-phase ref \"${entry.ref}\" is not kebab-case with the \"roadmap-phase-\" prefix.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<string>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.ref)) {\n seen.add(entry.ref);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_REF,\n path: `phases[${index}].ref`,\n message: `Duplicate ref \"${entry.ref}\" in phases — refs must be unique; the collection is addressed by ref downstream.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateSequences(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const seen = new Set<number>();\n snapshot.phases.forEach((entry, index) => {\n if (!seen.has(entry.sequence)) {\n seen.add(entry.sequence);\n return;\n }\n issues.push({\n kind: RoadmapSnapshotIssueKind.DUPLICATE_SEQUENCE,\n path: `phases[${index}].sequence`,\n message: `Duplicate sequence ${entry.sequence} on phase \"${entry.ref}\" — two phases share an ordering key, so the roadmap order between them is ambiguous. Give each phase a distinct sequence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n}\n\nfunction detectDuplicateCrossRefs(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkList = (\n refs: readonly string[] | undefined,\n entry: RoadmapPhaseConfig,\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: RoadmapSnapshotIssueKind.DUPLICATE_CROSS_REF,\n path: `${path}[${refIndex}]`,\n message: `Deliver-ref \"${ref}\" is listed more than once on phase \"${entry.ref}\" (${path}). Remove the duplicate.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n });\n };\n\n snapshot.phases.forEach((entry, index) => {\n checkList(entry.deliversRequirementRefs, entry, `phases[${index}].deliversRequirementRefs`);\n checkList(\n entry.deliversSuccessCriterionRefs,\n entry,\n `phases[${index}].deliversSuccessCriterionRefs`,\n );\n });\n}\n\nfunction detectIncompleteness(\n snapshot: RoadmapSnapshot,\n issues: RoadmapSnapshotIssue[],\n): void {\n if (snapshot.phases.length === 0) {\n issues.push({\n kind: RoadmapSnapshotIssueKind.NO_PHASES,\n path: 'phases',\n message: 'Roadmap plans no phases — it describes no delivery of the product.',\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n }\n}\n\nfunction detectStaleAuthored(\n snapshot: RoadmapSnapshot,\n now: Date,\n issues: RoadmapSnapshotIssue[],\n): void {\n const checkOne = (authored: RoadmapAuthoredMetadata | undefined, path: string): 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: RoadmapSnapshotIssueKind.STALE_AUTHORED,\n path,\n message: `Roadmap phase at \"${path}\" is ${Math.floor(ageDays)} days old (cadence ${authored.reviewCadence} ⇒ ${days}d). Re-author or remove the cadence.`,\n severity: RoadmapSnapshotIssueSeverity.WARN,\n });\n };\n\n snapshot.phases.forEach((entry, index) =>\n checkOne(entry.authored, `phases[${index}].authored`),\n );\n}\n\nfunction detectUnknownCrossRefs(\n snapshot: RoadmapSnapshot,\n options: ValidateRoadmapSnapshotOptions | undefined,\n issues: RoadmapSnapshotIssue[],\n): void {\n snapshot.phases.forEach((entry, index) => {\n if (options?.availableRequirementRefs !== undefined) {\n entry.deliversRequirementRefs?.forEach((reqRef, refIndex) => {\n if (options.availableRequirementRefs!.has(reqRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_REQUIREMENT_REF,\n path: `phases[${index}].deliversRequirementRefs[${refIndex}]`,\n message: `Requirement ref \"${reqRef}\" on phase \"${entry.ref}\" does not resolve in the supplied requirement-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n if (options?.availableSuccessCriterionRefs !== undefined) {\n entry.deliversSuccessCriterionRefs?.forEach((scRef, refIndex) => {\n if (options.availableSuccessCriterionRefs!.has(scRef)) return;\n issues.push({\n kind: RoadmapSnapshotIssueKind.UNKNOWN_SUCCESS_CRITERION_REF,\n path: `phases[${index}].deliversSuccessCriterionRefs[${refIndex}]`,\n message: `Success-criterion ref \"${scRef}\" on phase \"${entry.ref}\" does not resolve in the supplied success-criterion-ref set.`,\n severity: RoadmapSnapshotIssueSeverity.ERROR,\n });\n });\n }\n });\n}\n/** @wildo_source:part:end roadmap.snapshot.validation */\n"]}
@@ -62,8 +62,8 @@ export declare const RoadmapSnapshotSchema: z.ZodObject<{
62
62
  deliversSuccessCriterionRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
63
  authored: z.ZodOptional<z.ZodObject<{
64
64
  lastAuthoredAt: z.ZodISODateTime;
65
- confidence: z.ZodEnum<typeof import("..").AuthoredConfidence>;
66
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof import("..").ReviewCadence>>;
65
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").AuthoredConfidence>>;
66
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>>;
67
67
  reviewer: z.ZodOptional<z.ZodString>;
68
68
  notes: z.ZodOptional<z.ZodString>;
69
69
  }, z.core.$strip>>;
@@ -1,4 +1,4 @@
1
- import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from "../application-specification-family-identity.schemas.js";
2
2
  import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
3
  import { RoadmapPhaseConfigSchema } from './roadmap-phase.schemas.js';
4
4
  export const ROADMAP_FAMILY_ASPECTS = {
@@ -1 +1 @@
1
- {"version":3,"file":"roadmap.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,mGAAmG,CAAC;AAEpK,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,sBAAsB,GAA6B;IAC9D,SAAS,EAAE,+CAA+C,CAAC,gBAAgB;IAC3E,OAAO,EAAE;QACP;YACE,GAAG,EAAE,eAAe;YACpB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,wBAAwB;YACpC,WAAW,EAAE,KAAK;YAClB,aAAa,EAAE,OAAO;YACtB,KAAK,EAAE;gBACL;;;;mBAIG;gBACH,EAAE,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,CAAC,yBAAyB,EAAE,6BAA6B,CAAC,EAAE;gBAC/G,EAAE,KAAK,EAAE,8BAA8B,EAAE,aAAa,EAAE,CAAC,0BAA0B,CAAC,EAAE;aACvF;SACF;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas';\nimport type { FamilyAspectsDeclaration } from '../family-aspects.schemas';\nimport { FamilyAspectKind } from '../family-aspects.schemas';\nimport { RoadmapPhaseConfigSchema } from './roadmap-phase.schemas';\n\nexport const ROADMAP_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.ROADMAP_SNAPSHOT,\n aspects: [\n {\n key: 'roadmap.phase',\n snapshotPath: 'phases',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: RoadmapPhaseConfigSchema,\n businessKey: 'ref',\n headlineField: 'title',\n edges: [\n /*\n * One field, two admissible kinds: a phase delivers functional AND non-functional\n * requirements through the same list, told apart by their `functional-requirement-*` /\n * `nfr-*` prefixes. Membership resolution — see the contract's `targetAspects` JSDoc.\n */\n { field: 'deliversRequirementRefs', targetAspects: ['requirements.functional', 'requirements.non-functional'] },\n { field: 'deliversSuccessCriterionRefs', targetAspects: ['vision.success-criterion'] },\n ],\n },\n ],\n};\n"]}
1
+ {"version":3,"file":"roadmap.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/roadmap/roadmap.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAC;AAEvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,sBAAsB,GAA6B;IAC9D,SAAS,EAAE,+CAA+C,CAAC,gBAAgB;IAC3E,OAAO,EAAE;QACP;YACE,GAAG,EAAE,eAAe;YACpB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,wBAAwB;YACpC,WAAW,EAAE,KAAK;YAClB,aAAa,EAAE,OAAO;YACtB,KAAK,EAAE;gBACL;;;;mBAIG;gBACH,EAAE,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,CAAC,yBAAyB,EAAE,6BAA6B,CAAC,EAAE;gBAC/G,EAAE,KAAK,EAAE,8BAA8B,EAAE,aAAa,EAAE,CAAC,0BAA0B,CAAC,EAAE;aACvF;SACF;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from \"../application-specification-family-identity.schemas\";\nimport type { FamilyAspectsDeclaration } from '../family-aspects.schemas';\nimport { FamilyAspectKind } from '../family-aspects.schemas';\nimport { RoadmapPhaseConfigSchema } from './roadmap-phase.schemas';\n\nexport const ROADMAP_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.ROADMAP_SNAPSHOT,\n aspects: [\n {\n key: 'roadmap.phase',\n snapshotPath: 'phases',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: RoadmapPhaseConfigSchema,\n businessKey: 'ref',\n headlineField: 'title',\n edges: [\n /*\n * One field, two admissible kinds: a phase delivers functional AND non-functional\n * requirements through the same list, told apart by their `functional-requirement-*` /\n * `nfr-*` prefixes. Membership resolution — see the contract's `targetAspects` JSDoc.\n */\n { field: 'deliversRequirementRefs', targetAspects: ['requirements.functional', 'requirements.non-functional'] },\n { field: 'deliversSuccessCriterionRefs', targetAspects: ['vision.success-criterion'] },\n ],\n },\n ],\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"extract-field-specs.d.ts","sourceRoot":"","sources":["../../../../../src/_core/utils/extract-field-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,iDAAiD,EACjD,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EAcrB,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAyBlC;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,iFAAiF;IACjF,IAAI,EAAE,qBAAqB,CAAC;IAC5B,gDAAgD;IAChD,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,+CAA+C;IAC/C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,gDAAgD;IAChD,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;;OAIG;IACH,aAAa,CAAC,EAAE,yBAAyB,EAAE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;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,CAAC,CAAC,UAAU,EACpB,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAMtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,EACpC,MAAM,GAAE,kBAAkB,CAAC,QAAQ,CAAqB,EACxD,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAEtB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,CAAC,CAAC,UAAU,EACpB,qBAAqB,CAAC,EAAE,iDAAiD,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EAC5F,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAUtB"}
1
+ {"version":3,"file":"extract-field-specs.d.ts","sourceRoot":"","sources":["../../../../../src/_core/utils/extract-field-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,iDAAiD,EACjD,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EAerB,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAyBlC;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,iFAAiF;IACjF,IAAI,EAAE,qBAAqB,CAAC;IAC5B,gDAAgD;IAChD,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,+CAA+C;IAC/C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,gDAAgD;IAChD,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;;OAIG;IACH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C,CAAC;KACJ,CAAC;CACH;AAqQD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,CAAC,CAAC,UAAU,EACpB,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAMtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,EACpC,MAAM,GAAE,kBAAkB,CAAC,QAAQ,CAAqB,EACxD,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAEtB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,CAAC,CAAC,UAAU,EACpB,qBAAqB,CAAC,EAAE,iDAAiD,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EAC5F,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAUtB"}
@@ -1,4 +1,4 @@
1
- import { CodePrimitiveKind, CollectionElementKind, getArrayItemSchema, getCustomFieldMetadata, getZodDef, getZodObjectShape, getZodType, isCodeSchema, isDurationSchema, isFileSchema, isMoneySchema, isPhoneSchema, isZodObject, unwrapSchema, ZodDecorator, } from '@wildo-ai/zod-decorators';
1
+ import { CodePrimitiveKind, CollectionElementKind, getArrayItemSchema, getCustomFieldMetadata, getZodDef, getZodObjectShape, getZodType, isCodeSchema, isDurationSchema, isFileSchema, isMoneySchema, isPhoneSchema, isAddressSchema, isZodObject, unwrapSchema, ZodDecorator, } from '@wildo-ai/zod-decorators';
2
2
  /**
3
3
  * All `{primitive}Spec` decorator keys in `ZodDecorator`.
4
4
  * Used to scan `customFieldMetadata` for any spec entry.
@@ -44,7 +44,7 @@ function findSpecEntry(metadata) {
44
44
  */
45
45
  function classifyZodSchema(schema) {
46
46
  const unwrapped = unwrapSchema(schema);
47
- // Decorator-bearing primitive families (money/code/file/duration/phone) —
47
+ // Decorator-bearing primitive families (money/code/file/duration/phone/address) —
48
48
  // detect BEFORE generic Zod-type fallback because they often wrap a number
49
49
  // or string at the Zod layer but should surface as their semantic primitive.
50
50
  if (isMoneySchema(unwrapped))
@@ -57,6 +57,8 @@ function classifyZodSchema(schema) {
57
57
  return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DURATION };
58
58
  if (isPhoneSchema(unwrapped))
59
59
  return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.PHONE };
60
+ if (isAddressSchema(unwrapped))
61
+ return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.ADDRESS };
60
62
  const zodType = getZodType(unwrapped);
61
63
  switch (zodType) {
62
64
  case 'string':
@@ -1 +1 @@
1
- {"version":3,"file":"extract-field-specs.js","sourceRoot":"","sources":["../../../../../src/_core/utils/extract-field-specs.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,GAIb,MAAM,0BAA0B,CAAC;AAElC;;;GAGG;AACH,MAAM,mBAAmB,GAAG;IAC1B,YAAY,CAAC,WAAW;IACxB,YAAY,CAAC,WAAW;IACxB,YAAY,CAAC,YAAY;IACzB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,eAAe;IAC5B,YAAY,CAAC,gBAAgB;IAC7B,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,WAAW;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CAAC;IAED,OAAO;QACL,GAAG,cAAc;QACjB,GAAG,0BAA0B,CAAC,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,eAAe,CAAC;KAClF,CAAC;AACJ,CAAC","sourcesContent":["import type { z } from 'zod';\nimport type {\n ResourceConfiguration_InheritanceSchemaDefinition,\n ResourceRelationship,\n} from '@wildo-ai/saas-models';\nimport {\n CodePrimitiveKind,\n CollectionElementKind,\n getArrayItemSchema,\n getCustomFieldMetadata,\n getZodDef,\n getZodObjectShape,\n getZodType,\n isCodeSchema,\n isDurationSchema,\n isFileSchema,\n isMoneySchema,\n isPhoneSchema,\n isZodObject,\n unwrapSchema,\n ZodDecorator,\n type CodeEnumMemberRef,\n type CustomFieldMetadata,\n type FieldSpecBaseParams,\n} from '@wildo-ai/zod-decorators';\n\n/**\n * All `{primitive}Spec` decorator keys in `ZodDecorator`.\n * Used to scan `customFieldMetadata` for any spec entry.\n */\nconst SPEC_DECORATOR_KEYS = [\n ZodDecorator.STRING_SPEC,\n ZodDecorator.NUMBER_SPEC,\n ZodDecorator.BOOLEAN_SPEC,\n ZodDecorator.DATE_SPEC,\n ZodDecorator.DATETIME_SPEC,\n ZodDecorator.TIME_SPEC,\n ZodDecorator.ENUM_SPEC,\n ZodDecorator.MONEY_SPEC,\n ZodDecorator.CODE_SPEC,\n ZodDecorator.FILE_SPEC,\n ZodDecorator.DURATION_SPEC,\n ZodDecorator.PHONE_SPEC,\n ZodDecorator.BIGDECIMAL_SPEC,\n ZodDecorator.FOREIGN_KEY_SPEC,\n ZodDecorator.ARRAY_SPEC,\n ZodDecorator.OBJECT_SPEC,\n] as const;\n\n/**\n * Per-branch derived shape for a UNION element. Each entry mirrors the\n * scalar derivation we apply to non-union elements so downstream renderers\n * can describe a `users.appRoles = z.array(z.union([z.enum(...), z.string()]))`\n * shape without flattening the branches into an opaque `UNION` blob.\n */\nexport interface DerivedArrayElementBranch {\n /** Structural family of this branch (`PRIMITIVE` / `ENUM` / `OBJECT` / etc.). */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n}\n\n/**\n * Derived structural shape for an array element — derived purely from the\n * Zod element schema. The framework owns this surface; authors only declare\n * intent (`elementMeaning`, `enumDeclaration`, `notes`) on `arraySpec(...)`.\n */\nexport interface DerivedArrayElement {\n /** Structural family of each array element. */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n /**\n * Per-branch derivation when `kind === UNION` — preserves the structural\n * truth of unions instead of forcing authors to lie about a \"dominant\"\n * branch (B-3 decision: model UNION as a discrete kind with branches).\n */\n unionBranches?: DerivedArrayElementBranch[];\n}\n\n/**\n * Derived target of a `foreignKeySpec(...)` field — sourced from the\n * relationship registry by matching `foreignKeyField === <fieldName>` on\n * a relationship that lists the current resource on EITHER side. The FK\n * column lives on the MANY side (the child) and the target is the\n * opposite side (the parent), regardless of whether the registry author\n * declared the relationship as `(parent, child)` or `(child, parent)`.\n *\n * Populated in Phase 2B when the caller supplies an\n * `ExtractFieldSpecsRegistryContext`. When the caller does NOT supply one\n * (test fixtures, hand-built `additionalFieldSpecs`, non-resource\n * extractor entry points), this slice stays `undefined` — the\n * Phase 4 completeness validator is the single seam that requires it.\n */\nexport interface DerivedForeignKeyTarget {\n /** Resource type the FK points at (registry-derived). */\n resourceType: string;\n /** Optional code-symbol reference to the FK target's resource-type member. */\n ref?: CodeEnumMemberRef;\n}\n\n/**\n * Fail-closed signal for `foreignKeySpec` fields whose target could not\n * be resolved from the relationship registry. The Phase 4 completeness\n * validator consumes this to attribute the missing-relationship error to\n * the registry edge, not the renderer; renderers also surface the gap so\n * downstream prompts stay honest about the missing target instead of\n * silently dropping the FK line.\n *\n * Only emitted when the caller supplied an\n * `ExtractFieldSpecsRegistryContext` AND the lookup failed. When no\n * context is supplied the extractor cannot tell whether the FK is\n * unresolved or simply uninspected, so it stays `undefined`.\n */\nexport interface DerivedForeignKeyTargetUnresolved {\n /** Resource the FK lives on, as supplied by the caller. */\n fromResourceType: string;\n /** The FK field name that failed to resolve. */\n fieldName: string;\n /** Human-readable reason — used as-is in fail-closed error messages. */\n reason: string;\n}\n\n/**\n * Derived metadata that the framework extracts from the Zod schema (and,\n * in Phase 2B, the relationship registry). Authors no longer hand-author\n * structural fields the framework can derive — this object is the\n * single source of structural truth on an extracted spec.\n */\nexport interface ExtractedFieldSpecDerived {\n /** Present when the field is an `arraySpec`. */\n arrayElement?: DerivedArrayElement;\n /** Present when the field is a `foreignKeySpec` and the registry resolves the target (Phase 2B). */\n foreignKeyTarget?: DerivedForeignKeyTarget;\n /** Present when the field is a `foreignKeySpec` and the registry has no matching edge (Phase 2B). */\n foreignKeyTargetUnresolved?: DerivedForeignKeyTargetUnresolved;\n}\n\n/**\n * Caller-supplied context that lets the extractor derive registry-backed\n * facts. Currently scoped to FK target resolution; future registry-aware\n * derivations (e.g. cardinality inference for collection-shaped fields)\n * will read from the same context.\n *\n * Both fields are required for FK derivation to fire — passing\n * `relationships` without `currentResourceType` would let the matcher\n * silently resolve to a different resource's edge and is therefore\n * disallowed by the type itself.\n */\nexport interface ExtractFieldSpecsRegistryContext {\n /** Resource type that owns the schema being walked. */\n currentResourceType: string;\n /** Relationships that may concern the current resource. */\n relationships: readonly ResourceRelationship[];\n}\n\n/**\n * Extracted field specification entry — the JSON-safe representation\n * of a `{primitive}Spec()` decorator found on a schema field.\n */\nexport interface ExtractedFieldSpec {\n /** Field name in the schema. */\n fieldName: string;\n /** Which spec decorator was found (e.g., 'enumSpec', 'stringSpec'). */\n specDecorator: string;\n /** The full params object from the decorator. */\n params: FieldSpecBaseParams & Record<string, unknown>;\n /**\n * Framework-derived structural metadata. Optional because hand-authored\n * `additionalFieldSpecs` entries (companion-side overlays) and tests that\n * call the extractor without context will not carry derived data.\n */\n derived?: ExtractedFieldSpecDerived;\n /**\n * Where this field came from in the resource schema chain.\n * `main` is the root `mainSchema`; `inherited` is a variant-only or overridden\n * field coming from `inheritenceSchemaDefinition`.\n */\n origin?: {\n scope: 'main' | 'inherited';\n variantPath?: Array<{\n discriminatorField: string;\n discriminatorValue: string;\n }>;\n };\n}\n\n/**\n * Finds the first `{primitive}Spec` entry on a field's `customFieldMetadata`.\n * Returns `null` if no spec decorator is present.\n */\nfunction findSpecEntry(metadata: CustomFieldMetadata): { decorator: string; params: FieldSpecBaseParams & Record<string, unknown> } | null {\n for (const key of SPEC_DECORATOR_KEYS) {\n const value = metadata[key];\n if (value) {\n return { decorator: key, params: value as FieldSpecBaseParams & Record<string, unknown> };\n }\n }\n return null;\n}\n\n/**\n * Map a Zod type string (e.g. `'string'`, `'enum'`, `'object'`) plus the\n * decorator-bearing primitive helpers (money/code/file/...) onto our public\n * `CollectionElementKind` + `CodePrimitiveKind` axes. Centralised so that\n * scalar derivation and per-branch UNION derivation stay aligned — diverging\n * the two would mean a `users.appRoles` UNION branch could disagree with a\n * sibling field that uses the same primitive at the top level.\n */\nfunction classifyZodSchema(schema: z.ZodTypeAny): {\n kind: CollectionElementKind;\n primitiveType?: CodePrimitiveKind;\n} {\n const unwrapped = unwrapSchema(schema);\n\n // Decorator-bearing primitive families (money/code/file/duration/phone) —\n // detect BEFORE generic Zod-type fallback because they often wrap a number\n // or string at the Zod layer but should surface as their semantic primitive.\n if (isMoneySchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.MONEY };\n if (isCodeSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.CODE };\n if (isFileSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.FILE };\n if (isDurationSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DURATION };\n if (isPhoneSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.PHONE };\n\n const zodType = getZodType(unwrapped);\n switch (zodType) {\n case 'string':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n case 'number':\n case 'int':\n case 'bigint':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.NUMBER };\n case 'boolean':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.BOOLEAN };\n case 'date':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DATE };\n case 'enum':\n return { kind: CollectionElementKind.ENUM };\n case 'object':\n return { kind: CollectionElementKind.OBJECT };\n case 'array':\n // Nested arrays are unusual at the element level; mark as UNKNOWN so\n // authors notice and either flatten the schema or extend the kinds.\n return { kind: CollectionElementKind.UNKNOWN };\n case 'union':\n return { kind: CollectionElementKind.UNION };\n case 'literal':\n // A bare `z.literal(...)` collapses to a primitive — pick STRING since\n // literal arrays in this codebase have always been string discriminants.\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n default:\n return { kind: CollectionElementKind.UNKNOWN };\n }\n}\n\n/**\n * Walk a Zod array's element schema and produce the derived structural shape\n * the renderer needs. UNION elements are expanded into per-branch derivations\n * (B-3) so downstream consumers can describe a heterogeneous element type\n * without lying about a single dominant kind.\n */\nfunction deriveArrayElement(arraySchema: z.ZodTypeAny): DerivedArrayElement | undefined {\n const elementSchema = getArrayItemSchema(arraySchema);\n if (!elementSchema) {\n return undefined;\n }\n const classification = classifyZodSchema(elementSchema);\n\n if (classification.kind === CollectionElementKind.UNION) {\n const unwrapped = unwrapSchema(elementSchema);\n const def = getZodDef(unwrapped);\n const options = Array.isArray(def?.options) ? (def.options as z.ZodTypeAny[]) : [];\n const branches: DerivedArrayElementBranch[] = options.map((branch) => {\n const branchClassification = classifyZodSchema(branch);\n return {\n kind: branchClassification.kind,\n primitiveType: branchClassification.primitiveType,\n };\n });\n return {\n kind: CollectionElementKind.UNION,\n unionBranches: branches.length > 0 ? branches : undefined,\n };\n }\n\n return classification;\n}\n\n/**\n * Resolve the FK target for a `foreignKeySpec(...)` field by matching the\n * field name against `ResourceRelationship.foreignKeyField` on a\n * relationship that lists the current resource on either `resourceType1`\n * or `resourceType2`. The FK column lives on the current resource (the\n * MANY / child side) and the target is the opposite endpoint (the\n * parent), so the matcher accepts the relationship from either declared\n * direction — the registry-author convention is mixed (some edges put\n * the parent first, others put the child first) and forcing one\n * orientation would silently miss FKs.\n *\n * Returns `undefined` (no derived slice) when no registry context is\n * supplied — that signals \"uninspected\" rather than \"unresolved\", and\n * keeps test fixtures / hand-built `additionalFieldSpecs` working\n * unchanged. When a context IS supplied and the lookup fails, the helper\n * emits a `foreignKeyTargetUnresolved` signal so the Phase 4\n * completeness validator can attribute the error to the missing\n * relationship rather than the renderer.\n */\nfunction deriveForeignKeyTarget(\n fieldName: string,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): Pick<ExtractedFieldSpecDerived, 'foreignKeyTarget' | 'foreignKeyTargetUnresolved'> | undefined {\n if (!registryContext) {\n return undefined;\n }\n const { currentResourceType, relationships } = registryContext;\n const matched = relationships.find(\n (rel) =>\n rel.foreignKeyField === fieldName &&\n (rel.resourceType1 === currentResourceType || rel.resourceType2 === currentResourceType),\n );\n if (matched) {\n const targetResourceType = matched.resourceType1 === currentResourceType\n ? matched.resourceType2\n : matched.resourceType1;\n return {\n foreignKeyTarget: {\n resourceType: targetResourceType,\n },\n };\n }\n return {\n foreignKeyTargetUnresolved: {\n fromResourceType: currentResourceType,\n fieldName,\n reason: `no relationship declares foreignKeyField \"${fieldName}\" with \"${currentResourceType}\" on either side`,\n },\n };\n}\n\n/**\n * Build the `derived` slice for a single decorator hit. `arraySpec` carries\n * pure-Zod structural derivation (kind / primitive / union branches);\n * `foreignKeySpec` carries registry-backed target resolution when the\n * caller threads an `ExtractFieldSpecsRegistryContext`. Returns `undefined`\n * so callers that spread the field spec do not carry an empty\n * `derived: {}`.\n */\nfunction deriveForField(\n decorator: string,\n fieldName: string,\n fieldSchema: z.ZodTypeAny,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpecDerived | undefined {\n if (decorator === ZodDecorator.ARRAY_SPEC) {\n const arrayElement = deriveArrayElement(fieldSchema);\n return arrayElement ? { arrayElement } : undefined;\n }\n if (decorator === ZodDecorator.FOREIGN_KEY_SPEC) {\n return deriveForeignKeyTarget(fieldName, registryContext);\n }\n return undefined;\n}\n\nfunction extractFieldSpecsFromShape(\n shape: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'],\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const results: ExtractedFieldSpec[] = [];\n\n for (const [fieldName, fieldSchema] of Object.entries(shape)) {\n const metadata = getCustomFieldMetadata(fieldSchema as z.ZodTypeAny);\n const specEntry = findSpecEntry(metadata);\n if (specEntry) {\n const derived = deriveForField(\n specEntry.decorator,\n fieldName,\n fieldSchema as z.ZodTypeAny,\n registryContext,\n );\n results.push({\n fieldName,\n specDecorator: specEntry.decorator,\n params: specEntry.params,\n ...(derived ? { derived } : {}),\n origin,\n });\n }\n }\n\n return results;\n}\n\nfunction extractInheritedFieldSpecs(\n parentSchema: z.ZodTypeAny,\n inheritanceDefinition: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n variantPath: NonNullable<NonNullable<ExtractedFieldSpec['origin']>['variantPath']>,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const parentShape = getZodObjectShape(parentSchema) as Record<string, z.ZodTypeAny>;\n const results: ExtractedFieldSpec[] = [];\n\n for (const inheritedItem of inheritanceDefinition.inheritedSchemas) {\n const inheritedShape = getZodObjectShape(inheritedItem.schema) as Record<string, z.ZodTypeAny>;\n const nextVariantPath = [\n ...variantPath,\n {\n discriminatorField: inheritanceDefinition.discriminatorField,\n discriminatorValue: inheritedItem.discriminatorFieldValue,\n },\n ];\n\n const variantDeltaShape: Record<string, z.ZodTypeAny> = {};\n for (const [fieldName, fieldSchema] of Object.entries(inheritedShape)) {\n if (!(fieldName in parentShape) || parentShape[fieldName] !== fieldSchema) {\n variantDeltaShape[fieldName] = fieldSchema;\n }\n }\n\n results.push(\n ...extractFieldSpecsFromShape(\n variantDeltaShape,\n {\n scope: 'inherited',\n variantPath: nextVariantPath,\n },\n registryContext,\n ),\n );\n\n if (inheritedItem.inheritenceSchemaDefinition) {\n results.push(\n ...extractInheritedFieldSpecs(\n inheritedItem.schema,\n inheritedItem.inheritenceSchemaDefinition as ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n nextVariantPath,\n registryContext,\n ),\n );\n }\n }\n\n return results;\n}\n\n/**\n * Extract all `{primitive}Spec` metadata from a Zod object schema.\n *\n * Walks the top-level shape of the schema and collects any field that has\n * a `{primitive}Spec` decorator attached. Returns a flat array of\n * `ExtractedFieldSpec` entries, ready for serialization.\n *\n * Only inspects top-level fields (not nested object fields). Nested\n * objects with their own spec decorators would need recursive extraction\n * if required in the future.\n *\n * @param schema - A Zod object schema (typically a resource's `mainSchema`)\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. When omitted,\n * `derived.foreignKeyTarget` stays `undefined` for FK fields and the\n * Phase 4 completeness validator is responsible for surfacing missing\n * relationships independently.\n * @returns Array of extracted field specs, empty if no specs are found\n */\nexport function extractFieldSpecs(\n schema: z.ZodTypeAny,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n if (!isZodObject(schema)) {\n throw new Error('extractFieldSpecs() requires a Zod object schema.');\n }\n const shape = getZodObjectShape(schema) as Record<string, z.ZodTypeAny>;\n return extractFieldSpecsFromShape(shape, { scope: 'main' }, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a map of already-resolved field\n * schemas, such as `ResourceSpecificationConfig.fields`.\n *\n * This is the safest companion-side path when the specifications package\n * already owns the decorated field schema instances.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications path passes the resource's relationship\n * slice + `currentResourceType`; standalone test fixtures omit it.\n */\nexport function extractFieldSpecsFromFieldMap(\n fields: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'] = { scope: 'main' },\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n return extractFieldSpecsFromShape(fields, origin, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a full resource schema surface,\n * including variant-only / overridden fields declared through\n * `inheritenceSchemaDefinition`.\n *\n * The returned entries remain flat and JSON-safe, but inherited fields carry an\n * `origin.variantPath` so downstream consumers can see which discriminator path\n * introduced the field.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications handler passes\n * `{ currentResourceType, relationships: sharedRegistry.resourceRelationships }`;\n * tests and non-resource extractor entry points may omit it.\n */\nexport function extractResourceFieldSpecs(\n schema: z.ZodTypeAny,\n inheritanceDefinition?: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n const mainFieldSpecs = extractFieldSpecs(schema, registryContext);\n if (!inheritanceDefinition) {\n return mainFieldSpecs;\n }\n\n return [\n ...mainFieldSpecs,\n ...extractInheritedFieldSpecs(schema, inheritanceDefinition, [], registryContext),\n ];\n}\n"]}
1
+ {"version":3,"file":"extract-field-specs.js","sourceRoot":"","sources":["../../../../../src/_core/utils/extract-field-specs.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,GAIb,MAAM,0BAA0B,CAAC;AAElC;;;GAGG;AACH,MAAM,mBAAmB,G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E,OAAO,0BAA0B,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC;AAC/E,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAAoC,EACpC,SAAuC,EAAE,KAAK,EAAE,MAAM,EAAE,EACxD,eAAkD;IAElD,OAAO,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;AACrE,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAoB,EACpB,qBAA4F,EAC5F,eAAkD;IAElD,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAClE,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3B,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,OAAO;QACL,GAAG,cAAc;QACjB,GAAG,0BAA0B,CAAC,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,eAAe,CAAC;KAClF,CAAC;AACJ,CAAC","sourcesContent":["import type { z } from 'zod';\nimport type {\n ResourceConfiguration_InheritanceSchemaDefinition,\n ResourceRelationship,\n} from '@wildo-ai/saas-models';\nimport {\n CodePrimitiveKind,\n CollectionElementKind,\n getArrayItemSchema,\n getCustomFieldMetadata,\n getZodDef,\n getZodObjectShape,\n getZodType,\n isCodeSchema,\n isDurationSchema,\n isFileSchema,\n isMoneySchema,\n isPhoneSchema,\n isAddressSchema,\n isZodObject,\n unwrapSchema,\n ZodDecorator,\n type CodeEnumMemberRef,\n type CustomFieldMetadata,\n type FieldSpecBaseParams,\n} from '@wildo-ai/zod-decorators';\n\n/**\n * All `{primitive}Spec` decorator keys in `ZodDecorator`.\n * Used to scan `customFieldMetadata` for any spec entry.\n */\nconst SPEC_DECORATOR_KEYS = [\n ZodDecorator.STRING_SPEC,\n ZodDecorator.NUMBER_SPEC,\n ZodDecorator.BOOLEAN_SPEC,\n ZodDecorator.DATE_SPEC,\n ZodDecorator.DATETIME_SPEC,\n ZodDecorator.TIME_SPEC,\n ZodDecorator.ENUM_SPEC,\n ZodDecorator.MONEY_SPEC,\n ZodDecorator.CODE_SPEC,\n ZodDecorator.FILE_SPEC,\n ZodDecorator.DURATION_SPEC,\n ZodDecorator.PHONE_SPEC,\n ZodDecorator.BIGDECIMAL_SPEC,\n ZodDecorator.FOREIGN_KEY_SPEC,\n ZodDecorator.ARRAY_SPEC,\n ZodDecorator.OBJECT_SPEC,\n] as const;\n\n/**\n * Per-branch derived shape for a UNION element. Each entry mirrors the\n * scalar derivation we apply to non-union elements so downstream renderers\n * can describe a `users.appRoles = z.array(z.union([z.enum(...), z.string()]))`\n * shape without flattening the branches into an opaque `UNION` blob.\n */\nexport interface DerivedArrayElementBranch {\n /** Structural family of this branch (`PRIMITIVE` / `ENUM` / `OBJECT` / etc.). */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n}\n\n/**\n * Derived structural shape for an array element — derived purely from the\n * Zod element schema. The framework owns this surface; authors only declare\n * intent (`elementMeaning`, `enumDeclaration`, `notes`) on `arraySpec(...)`.\n */\nexport interface DerivedArrayElement {\n /** Structural family of each array element. */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n /**\n * Per-branch derivation when `kind === UNION` — preserves the structural\n * truth of unions instead of forcing authors to lie about a \"dominant\"\n * branch (B-3 decision: model UNION as a discrete kind with branches).\n */\n unionBranches?: DerivedArrayElementBranch[];\n}\n\n/**\n * Derived target of a `foreignKeySpec(...)` field — sourced from the\n * relationship registry by matching `foreignKeyField === <fieldName>` on\n * a relationship that lists the current resource on EITHER side. The FK\n * column lives on the MANY side (the child) and the target is the\n * opposite side (the parent), regardless of whether the registry author\n * declared the relationship as `(parent, child)` or `(child, parent)`.\n *\n * Populated in Phase 2B when the caller supplies an\n * `ExtractFieldSpecsRegistryContext`. When the caller does NOT supply one\n * (test fixtures, hand-built `additionalFieldSpecs`, non-resource\n * extractor entry points), this slice stays `undefined` — the\n * Phase 4 completeness validator is the single seam that requires it.\n */\nexport interface DerivedForeignKeyTarget {\n /** Resource type the FK points at (registry-derived). */\n resourceType: string;\n /** Optional code-symbol reference to the FK target's resource-type member. */\n ref?: CodeEnumMemberRef;\n}\n\n/**\n * Fail-closed signal for `foreignKeySpec` fields whose target could not\n * be resolved from the relationship registry. The Phase 4 completeness\n * validator consumes this to attribute the missing-relationship error to\n * the registry edge, not the renderer; renderers also surface the gap so\n * downstream prompts stay honest about the missing target instead of\n * silently dropping the FK line.\n *\n * Only emitted when the caller supplied an\n * `ExtractFieldSpecsRegistryContext` AND the lookup failed. When no\n * context is supplied the extractor cannot tell whether the FK is\n * unresolved or simply uninspected, so it stays `undefined`.\n */\nexport interface DerivedForeignKeyTargetUnresolved {\n /** Resource the FK lives on, as supplied by the caller. */\n fromResourceType: string;\n /** The FK field name that failed to resolve. */\n fieldName: string;\n /** Human-readable reason — used as-is in fail-closed error messages. */\n reason: string;\n}\n\n/**\n * Derived metadata that the framework extracts from the Zod schema (and,\n * in Phase 2B, the relationship registry). Authors no longer hand-author\n * structural fields the framework can derive — this object is the\n * single source of structural truth on an extracted spec.\n */\nexport interface ExtractedFieldSpecDerived {\n /** Present when the field is an `arraySpec`. */\n arrayElement?: DerivedArrayElement;\n /** Present when the field is a `foreignKeySpec` and the registry resolves the target (Phase 2B). */\n foreignKeyTarget?: DerivedForeignKeyTarget;\n /** Present when the field is a `foreignKeySpec` and the registry has no matching edge (Phase 2B). */\n foreignKeyTargetUnresolved?: DerivedForeignKeyTargetUnresolved;\n}\n\n/**\n * Caller-supplied context that lets the extractor derive registry-backed\n * facts. Currently scoped to FK target resolution; future registry-aware\n * derivations (e.g. cardinality inference for collection-shaped fields)\n * will read from the same context.\n *\n * Both fields are required for FK derivation to fire — passing\n * `relationships` without `currentResourceType` would let the matcher\n * silently resolve to a different resource's edge and is therefore\n * disallowed by the type itself.\n */\nexport interface ExtractFieldSpecsRegistryContext {\n /** Resource type that owns the schema being walked. */\n currentResourceType: string;\n /** Relationships that may concern the current resource. */\n relationships: readonly ResourceRelationship[];\n}\n\n/**\n * Extracted field specification entry — the JSON-safe representation\n * of a `{primitive}Spec()` decorator found on a schema field.\n */\nexport interface ExtractedFieldSpec {\n /** Field name in the schema. */\n fieldName: string;\n /** Which spec decorator was found (e.g., 'enumSpec', 'stringSpec'). */\n specDecorator: string;\n /** The full params object from the decorator. */\n params: FieldSpecBaseParams & Record<string, unknown>;\n /**\n * Framework-derived structural metadata. Optional because hand-authored\n * `additionalFieldSpecs` entries (companion-side overlays) and tests that\n * call the extractor without context will not carry derived data.\n */\n derived?: ExtractedFieldSpecDerived;\n /**\n * Where this field came from in the resource schema chain.\n * `main` is the root `mainSchema`; `inherited` is a variant-only or overridden\n * field coming from `inheritenceSchemaDefinition`.\n */\n origin?: {\n scope: 'main' | 'inherited';\n variantPath?: Array<{\n discriminatorField: string;\n discriminatorValue: string;\n }>;\n };\n}\n\n/**\n * Finds the first `{primitive}Spec` entry on a field's `customFieldMetadata`.\n * Returns `null` if no spec decorator is present.\n */\nfunction findSpecEntry(metadata: CustomFieldMetadata): { decorator: string; params: FieldSpecBaseParams & Record<string, unknown> } | null {\n for (const key of SPEC_DECORATOR_KEYS) {\n const value = metadata[key];\n if (value) {\n return { decorator: key, params: value as FieldSpecBaseParams & Record<string, unknown> };\n }\n }\n return null;\n}\n\n/**\n * Map a Zod type string (e.g. `'string'`, `'enum'`, `'object'`) plus the\n * decorator-bearing primitive helpers (money/code/file/...) onto our public\n * `CollectionElementKind` + `CodePrimitiveKind` axes. Centralised so that\n * scalar derivation and per-branch UNION derivation stay aligned — diverging\n * the two would mean a `users.appRoles` UNION branch could disagree with a\n * sibling field that uses the same primitive at the top level.\n */\nfunction classifyZodSchema(schema: z.ZodTypeAny): {\n kind: CollectionElementKind;\n primitiveType?: CodePrimitiveKind;\n} {\n const unwrapped = unwrapSchema(schema);\n\n // Decorator-bearing primitive families (money/code/file/duration/phone/address) —\n // detect BEFORE generic Zod-type fallback because they often wrap a number\n // or string at the Zod layer but should surface as their semantic primitive.\n if (isMoneySchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.MONEY };\n if (isCodeSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.CODE };\n if (isFileSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.FILE };\n if (isDurationSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DURATION };\n if (isPhoneSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.PHONE };\n if (isAddressSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.ADDRESS };\n\n const zodType = getZodType(unwrapped);\n switch (zodType) {\n case 'string':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n case 'number':\n case 'int':\n case 'bigint':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.NUMBER };\n case 'boolean':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.BOOLEAN };\n case 'date':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DATE };\n case 'enum':\n return { kind: CollectionElementKind.ENUM };\n case 'object':\n return { kind: CollectionElementKind.OBJECT };\n case 'array':\n // Nested arrays are unusual at the element level; mark as UNKNOWN so\n // authors notice and either flatten the schema or extend the kinds.\n return { kind: CollectionElementKind.UNKNOWN };\n case 'union':\n return { kind: CollectionElementKind.UNION };\n case 'literal':\n // A bare `z.literal(...)` collapses to a primitive — pick STRING since\n // literal arrays in this codebase have always been string discriminants.\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n default:\n return { kind: CollectionElementKind.UNKNOWN };\n }\n}\n\n/**\n * Walk a Zod array's element schema and produce the derived structural shape\n * the renderer needs. UNION elements are expanded into per-branch derivations\n * (B-3) so downstream consumers can describe a heterogeneous element type\n * without lying about a single dominant kind.\n */\nfunction deriveArrayElement(arraySchema: z.ZodTypeAny): DerivedArrayElement | undefined {\n const elementSchema = getArrayItemSchema(arraySchema);\n if (!elementSchema) {\n return undefined;\n }\n const classification = classifyZodSchema(elementSchema);\n\n if (classification.kind === CollectionElementKind.UNION) {\n const unwrapped = unwrapSchema(elementSchema);\n const def = getZodDef(unwrapped);\n const options = Array.isArray(def?.options) ? (def.options as z.ZodTypeAny[]) : [];\n const branches: DerivedArrayElementBranch[] = options.map((branch) => {\n const branchClassification = classifyZodSchema(branch);\n return {\n kind: branchClassification.kind,\n primitiveType: branchClassification.primitiveType,\n };\n });\n return {\n kind: CollectionElementKind.UNION,\n unionBranches: branches.length > 0 ? branches : undefined,\n };\n }\n\n return classification;\n}\n\n/**\n * Resolve the FK target for a `foreignKeySpec(...)` field by matching the\n * field name against `ResourceRelationship.foreignKeyField` on a\n * relationship that lists the current resource on either `resourceType1`\n * or `resourceType2`. The FK column lives on the current resource (the\n * MANY / child side) and the target is the opposite endpoint (the\n * parent), so the matcher accepts the relationship from either declared\n * direction — the registry-author convention is mixed (some edges put\n * the parent first, others put the child first) and forcing one\n * orientation would silently miss FKs.\n *\n * Returns `undefined` (no derived slice) when no registry context is\n * supplied — that signals \"uninspected\" rather than \"unresolved\", and\n * keeps test fixtures / hand-built `additionalFieldSpecs` working\n * unchanged. When a context IS supplied and the lookup fails, the helper\n * emits a `foreignKeyTargetUnresolved` signal so the Phase 4\n * completeness validator can attribute the error to the missing\n * relationship rather than the renderer.\n */\nfunction deriveForeignKeyTarget(\n fieldName: string,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): Pick<ExtractedFieldSpecDerived, 'foreignKeyTarget' | 'foreignKeyTargetUnresolved'> | undefined {\n if (!registryContext) {\n return undefined;\n }\n const { currentResourceType, relationships } = registryContext;\n const matched = relationships.find(\n (rel) =>\n rel.foreignKeyField === fieldName &&\n (rel.resourceType1 === currentResourceType || rel.resourceType2 === currentResourceType),\n );\n if (matched) {\n const targetResourceType = matched.resourceType1 === currentResourceType\n ? matched.resourceType2\n : matched.resourceType1;\n return {\n foreignKeyTarget: {\n resourceType: targetResourceType,\n },\n };\n }\n return {\n foreignKeyTargetUnresolved: {\n fromResourceType: currentResourceType,\n fieldName,\n reason: `no relationship declares foreignKeyField \"${fieldName}\" with \"${currentResourceType}\" on either side`,\n },\n };\n}\n\n/**\n * Build the `derived` slice for a single decorator hit. `arraySpec` carries\n * pure-Zod structural derivation (kind / primitive / union branches);\n * `foreignKeySpec` carries registry-backed target resolution when the\n * caller threads an `ExtractFieldSpecsRegistryContext`. Returns `undefined`\n * so callers that spread the field spec do not carry an empty\n * `derived: {}`.\n */\nfunction deriveForField(\n decorator: string,\n fieldName: string,\n fieldSchema: z.ZodTypeAny,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpecDerived | undefined {\n if (decorator === ZodDecorator.ARRAY_SPEC) {\n const arrayElement = deriveArrayElement(fieldSchema);\n return arrayElement ? { arrayElement } : undefined;\n }\n if (decorator === ZodDecorator.FOREIGN_KEY_SPEC) {\n return deriveForeignKeyTarget(fieldName, registryContext);\n }\n return undefined;\n}\n\nfunction extractFieldSpecsFromShape(\n shape: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'],\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const results: ExtractedFieldSpec[] = [];\n\n for (const [fieldName, fieldSchema] of Object.entries(shape)) {\n const metadata = getCustomFieldMetadata(fieldSchema as z.ZodTypeAny);\n const specEntry = findSpecEntry(metadata);\n if (specEntry) {\n const derived = deriveForField(\n specEntry.decorator,\n fieldName,\n fieldSchema as z.ZodTypeAny,\n registryContext,\n );\n results.push({\n fieldName,\n specDecorator: specEntry.decorator,\n params: specEntry.params,\n ...(derived ? { derived } : {}),\n origin,\n });\n }\n }\n\n return results;\n}\n\nfunction extractInheritedFieldSpecs(\n parentSchema: z.ZodTypeAny,\n inheritanceDefinition: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n variantPath: NonNullable<NonNullable<ExtractedFieldSpec['origin']>['variantPath']>,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const parentShape = getZodObjectShape(parentSchema) as Record<string, z.ZodTypeAny>;\n const results: ExtractedFieldSpec[] = [];\n\n for (const inheritedItem of inheritanceDefinition.inheritedSchemas) {\n const inheritedShape = getZodObjectShape(inheritedItem.schema) as Record<string, z.ZodTypeAny>;\n const nextVariantPath = [\n ...variantPath,\n {\n discriminatorField: inheritanceDefinition.discriminatorField,\n discriminatorValue: inheritedItem.discriminatorFieldValue,\n },\n ];\n\n const variantDeltaShape: Record<string, z.ZodTypeAny> = {};\n for (const [fieldName, fieldSchema] of Object.entries(inheritedShape)) {\n if (!(fieldName in parentShape) || parentShape[fieldName] !== fieldSchema) {\n variantDeltaShape[fieldName] = fieldSchema;\n }\n }\n\n results.push(\n ...extractFieldSpecsFromShape(\n variantDeltaShape,\n {\n scope: 'inherited',\n variantPath: nextVariantPath,\n },\n registryContext,\n ),\n );\n\n if (inheritedItem.inheritenceSchemaDefinition) {\n results.push(\n ...extractInheritedFieldSpecs(\n inheritedItem.schema,\n inheritedItem.inheritenceSchemaDefinition as ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n nextVariantPath,\n registryContext,\n ),\n );\n }\n }\n\n return results;\n}\n\n/**\n * Extract all `{primitive}Spec` metadata from a Zod object schema.\n *\n * Walks the top-level shape of the schema and collects any field that has\n * a `{primitive}Spec` decorator attached. Returns a flat array of\n * `ExtractedFieldSpec` entries, ready for serialization.\n *\n * Only inspects top-level fields (not nested object fields). Nested\n * objects with their own spec decorators would need recursive extraction\n * if required in the future.\n *\n * @param schema - A Zod object schema (typically a resource's `mainSchema`)\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. When omitted,\n * `derived.foreignKeyTarget` stays `undefined` for FK fields and the\n * Phase 4 completeness validator is responsible for surfacing missing\n * relationships independently.\n * @returns Array of extracted field specs, empty if no specs are found\n */\nexport function extractFieldSpecs(\n schema: z.ZodTypeAny,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n if (!isZodObject(schema)) {\n throw new Error('extractFieldSpecs() requires a Zod object schema.');\n }\n const shape = getZodObjectShape(schema) as Record<string, z.ZodTypeAny>;\n return extractFieldSpecsFromShape(shape, { scope: 'main' }, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a map of already-resolved field\n * schemas, such as `ResourceSpecificationConfig.fields`.\n *\n * This is the safest companion-side path when the specifications package\n * already owns the decorated field schema instances.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications path passes the resource's relationship\n * slice + `currentResourceType`; standalone test fixtures omit it.\n */\nexport function extractFieldSpecsFromFieldMap(\n fields: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'] = { scope: 'main' },\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n return extractFieldSpecsFromShape(fields, origin, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a full resource schema surface,\n * including variant-only / overridden fields declared through\n * `inheritenceSchemaDefinition`.\n *\n * The returned entries remain flat and JSON-safe, but inherited fields carry an\n * `origin.variantPath` so downstream consumers can see which discriminator path\n * introduced the field.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications handler passes\n * `{ currentResourceType, relationships: sharedRegistry.resourceRelationships }`;\n * tests and non-resource extractor entry points may omit it.\n */\nexport function extractResourceFieldSpecs(\n schema: z.ZodTypeAny,\n inheritanceDefinition?: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n const mainFieldSpecs = extractFieldSpecs(schema, registryContext);\n if (!inheritanceDefinition) {\n return mainFieldSpecs;\n }\n\n return [\n ...mainFieldSpecs,\n ...extractInheritedFieldSpecs(schema, inheritanceDefinition, [], registryContext),\n ];\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import '@wildo-ai/zod-decorators';
2
3
  import { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas';
3
4
  /**
4
5
  * @wildo_source:part:start vision.authored-metadata.config facet:layer:specification facet:family:vision
@@ -38,8 +39,8 @@ import { AuthoredConfidence, ReviewCadence } from '../market/market-authored-met
38
39
  */
39
40
  export declare const VisionAuthoredMetadataSchema: z.ZodObject<{
40
41
  lastAuthoredAt: z.ZodISODateTime;
41
- confidence: z.ZodEnum<typeof AuthoredConfidence>;
42
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof ReviewCadence>>;
42
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof AuthoredConfidence>>;
43
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof ReviewCadence>>>;
43
44
  reviewer: z.ZodOptional<z.ZodString>;
44
45
  notes: z.ZodOptional<z.ZodString>;
45
46
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"vision-authored-metadata.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-authored-metadata.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,4BAA4B;;;;;;iBAgBvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,6DAA6D"}
1
+ {"version":3,"file":"vision-authored-metadata.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-authored-metadata.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,4BAA4B;;;;;;iBAgBvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,6DAA6D"}
@@ -1,4 +1,7 @@
1
1
  import { z } from 'zod';
2
+ // Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —
3
+ // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
+ import '@wildo-ai/zod-decorators';
2
5
  import { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas.js';
3
6
  import { NonEmptyStringSchema } from '../market/market-references.schemas.js';
4
7
  /**
@@ -41,14 +44,14 @@ export const VisionAuthoredMetadataSchema = z.object({
41
44
  /** ISO-8601 timestamp of the last meaningful authoring touch. */
42
45
  lastAuthoredAt: z.iso.datetime(),
43
46
  /** Author's self-assessed confidence in the current content. */
44
- confidence: z.enum(AuthoredConfidence),
47
+ confidence: z.enum(AuthoredConfidence).systemEnum('AuthoredConfidence'),
45
48
  /**
46
49
  * Cadence at which the entity should be re-reviewed. When set, the
47
50
  * snapshot validator emits `STALE_AUTHORED` if `lastAuthoredAt +
48
51
  * cadence < now`. When omitted, no staleness check runs (same
49
52
  * semantics as the market + assertions families).
50
53
  */
51
- reviewCadence: z.enum(ReviewCadence).optional(),
54
+ reviewCadence: z.enum(ReviewCadence).systemEnum('ReviewCadence').optional(),
52
55
  /** Owner accountable for the entity's content. Free-form name/handle. */
53
56
  reviewer: NonEmptyStringSchema.optional(),
54
57
  /** Free-form authoring notes (rationale, open questions, sources). */
@@ -1 +1 @@
1
- {"version":3,"file":"vision-authored-metadata.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-authored-metadata.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,iEAAiE;IACjE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAChC,gEAAgE;IAChE,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;IACtC;;;;;OAKG;IACH,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IAC/C,yEAAyE;IACzE,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC,sEAAsE;IACtE,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,6DAA6D","sourcesContent":["import { z } from 'zod';\n\nimport { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\n\n/**\n * @wildo_source:part:start vision.authored-metadata.config facet:layer:specification facet:family:vision\n *\n * Optional per-entity authoring provenance attached to any vision\n * entity (idea, problem, mission, a success criterion, a constraint) —\n * the vision family's counterpart to `MarketAuthoredMetadataSchema`.\n *\n * Design decision (mirrors the assertions-family P-5 note): this is a\n * SIBLING schema, NOT a reshape of `market-authored-metadata.schemas.ts`.\n * Promoting a shared `_core/authored-metadata` module is a `_core`\n * reshape with the full blast-radius checklist across every market\n * consumer — explicitly deferred. The market enums are already\n * family-agnostic in name and meaning, so they are IMPORTED rather than\n * duplicated (`AuthoredConfidence`, `ReviewCadence`): re-declaring\n * either would silently drop it from the package-root barrel (ambiguous\n * `export *` names are excluded), and hand-duplicated vocabularies\n * drift.\n *\n * Three concerns are bundled here so consumers see them in one place:\n *\n * - **Confidence** — `LOW | MEDIUM | HIGH`. Drives prompt enrichment:\n * AI surfaces emit \"confidence LOW — early hypothesis, validate\" when\n * surfacing the entity to a model so it does not parrot speculative\n * framing as fact. Kept OPTIONAL provenance here (market posture),\n * NOT a required top-level audit field (assertions posture): a vision\n * brief is authored by a founder progressively, not audited by\n * reconcile.\n * - **Recency** — `lastAuthoredAt` ISO datetime + optional\n * `reviewCadence`. The snapshot validator only flags `STALE_AUTHORED`\n * when both are set (no cadence ⇒ no staleness check).\n * - **Trace** — `reviewer` + `notes` carry the human accountability\n * trail without leaking internal processes into the spec.\n *\n * Entirely optional: omit the block when authoring is so fresh and\n * trivial that provenance adds noise.\n */\nexport const VisionAuthoredMetadataSchema = z.object({\n /** ISO-8601 timestamp of the last meaningful authoring touch. */\n lastAuthoredAt: z.iso.datetime(),\n /** Author's self-assessed confidence in the current content. */\n confidence: z.enum(AuthoredConfidence),\n /**\n * Cadence at which the entity should be re-reviewed. When set, the\n * snapshot validator emits `STALE_AUTHORED` if `lastAuthoredAt +\n * cadence < now`. When omitted, no staleness check runs (same\n * semantics as the market + assertions families).\n */\n reviewCadence: z.enum(ReviewCadence).optional(),\n /** Owner accountable for the entity's content. Free-form name/handle. */\n reviewer: NonEmptyStringSchema.optional(),\n /** Free-form authoring notes (rationale, open questions, sources). */\n notes: NonEmptyStringSchema.optional(),\n});\nexport type VisionAuthoredMetadata = z.infer<typeof VisionAuthoredMetadataSchema>;\n/** @wildo_source:part:end vision.authored-metadata.config */\n"]}
1
+ {"version":3,"file":"vision-authored-metadata.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/vision/vision-authored-metadata.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,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,iEAAiE;IACjE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAChC,gEAAgE;IAChE,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC;IACvE;;;;;OAKG;IACH,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAC3E,yEAAyE;IACzE,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC,sEAAsE;IACtE,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,6DAA6D","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 { AuthoredConfidence, ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\n\n/**\n * @wildo_source:part:start vision.authored-metadata.config facet:layer:specification facet:family:vision\n *\n * Optional per-entity authoring provenance attached to any vision\n * entity (idea, problem, mission, a success criterion, a constraint) —\n * the vision family's counterpart to `MarketAuthoredMetadataSchema`.\n *\n * Design decision (mirrors the assertions-family P-5 note): this is a\n * SIBLING schema, NOT a reshape of `market-authored-metadata.schemas.ts`.\n * Promoting a shared `_core/authored-metadata` module is a `_core`\n * reshape with the full blast-radius checklist across every market\n * consumer — explicitly deferred. The market enums are already\n * family-agnostic in name and meaning, so they are IMPORTED rather than\n * duplicated (`AuthoredConfidence`, `ReviewCadence`): re-declaring\n * either would silently drop it from the package-root barrel (ambiguous\n * `export *` names are excluded), and hand-duplicated vocabularies\n * drift.\n *\n * Three concerns are bundled here so consumers see them in one place:\n *\n * - **Confidence** — `LOW | MEDIUM | HIGH`. Drives prompt enrichment:\n * AI surfaces emit \"confidence LOW — early hypothesis, validate\" when\n * surfacing the entity to a model so it does not parrot speculative\n * framing as fact. Kept OPTIONAL provenance here (market posture),\n * NOT a required top-level audit field (assertions posture): a vision\n * brief is authored by a founder progressively, not audited by\n * reconcile.\n * - **Recency** — `lastAuthoredAt` ISO datetime + optional\n * `reviewCadence`. The snapshot validator only flags `STALE_AUTHORED`\n * when both are set (no cadence ⇒ no staleness check).\n * - **Trace** — `reviewer` + `notes` carry the human accountability\n * trail without leaking internal processes into the spec.\n *\n * Entirely optional: omit the block when authoring is so fresh and\n * trivial that provenance adds noise.\n */\nexport const VisionAuthoredMetadataSchema = z.object({\n /** ISO-8601 timestamp of the last meaningful authoring touch. */\n lastAuthoredAt: z.iso.datetime(),\n /** Author's self-assessed confidence in the current content. */\n confidence: z.enum(AuthoredConfidence).systemEnum('AuthoredConfidence'),\n /**\n * Cadence at which the entity should be re-reviewed. When set, the\n * snapshot validator emits `STALE_AUTHORED` if `lastAuthoredAt +\n * cadence < now`. When omitted, no staleness check runs (same\n * semantics as the market + assertions families).\n */\n reviewCadence: z.enum(ReviewCadence).systemEnum('ReviewCadence').optional(),\n /** Owner accountable for the entity's content. Free-form name/handle. */\n reviewer: NonEmptyStringSchema.optional(),\n /** Free-form authoring notes (rationale, open questions, sources). */\n notes: NonEmptyStringSchema.optional(),\n});\nexport type VisionAuthoredMetadata = z.infer<typeof VisionAuthoredMetadataSchema>;\n/** @wildo_source:part:end vision.authored-metadata.config */\n"]}
@@ -47,8 +47,8 @@ export declare const VisionConstraintConfigSchema: z.ZodObject<{
47
47
  rationale: z.ZodOptional<z.ZodString>;
48
48
  authored: z.ZodOptional<z.ZodObject<{
49
49
  lastAuthoredAt: z.ZodISODateTime;
50
- confidence: z.ZodEnum<typeof import("..").AuthoredConfidence>;
51
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof import("..").ReviewCadence>>;
50
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").AuthoredConfidence>>;
51
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>>;
52
52
  reviewer: z.ZodOptional<z.ZodString>;
53
53
  notes: z.ZodOptional<z.ZodString>;
54
54
  }, z.core.$strip>>;
@@ -29,8 +29,8 @@ export declare const VisionIdeaConfigSchema: z.ZodObject<{
29
29
  notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
30
30
  authored: z.ZodOptional<z.ZodObject<{
31
31
  lastAuthoredAt: z.ZodISODateTime;
32
- confidence: z.ZodEnum<typeof import("..").AuthoredConfidence>;
33
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof import("..").ReviewCadence>>;
32
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").AuthoredConfidence>>;
33
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>>;
34
34
  reviewer: z.ZodOptional<z.ZodString>;
35
35
  notes: z.ZodOptional<z.ZodString>;
36
36
  }, z.core.$strip>>;
@@ -30,8 +30,8 @@ export declare const VisionMissionConfigSchema: z.ZodObject<{
30
30
  principles: z.ZodDefault<z.ZodArray<z.ZodString>>;
31
31
  authored: z.ZodOptional<z.ZodObject<{
32
32
  lastAuthoredAt: z.ZodISODateTime;
33
- confidence: z.ZodEnum<typeof import("..").AuthoredConfidence>;
34
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof import("..").ReviewCadence>>;
33
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").AuthoredConfidence>>;
34
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>>;
35
35
  reviewer: z.ZodOptional<z.ZodString>;
36
36
  notes: z.ZodOptional<z.ZodString>;
37
37
  }, z.core.$strip>>;
@@ -33,8 +33,8 @@ export declare const VisionProblemConfigSchema: z.ZodObject<{
33
33
  whyNow: z.ZodOptional<z.ZodString>;
34
34
  authored: z.ZodOptional<z.ZodObject<{
35
35
  lastAuthoredAt: z.ZodISODateTime;
36
- confidence: z.ZodEnum<typeof import("..").AuthoredConfidence>;
37
- reviewCadence: z.ZodOptional<z.ZodEnum<typeof import("..").ReviewCadence>>;
36
+ confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").AuthoredConfidence>>;
37
+ reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>>;
38
38
  reviewer: z.ZodOptional<z.ZodString>;
39
39
  notes: z.ZodOptional<z.ZodString>;
40
40
  }, z.core.$strip>>;