@wildo-ai/saas-specifications 1.1.1 → 1.1.3

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 (633) hide show
  1. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
  2. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  3. package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
  4. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  5. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
  6. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  7. package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
  8. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  9. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
  10. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  11. package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
  12. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  13. package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
  14. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
  15. package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
  16. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
  17. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
  19. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
  21. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
  23. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
  25. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
  26. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
  27. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
  28. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
  30. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  31. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
  32. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  33. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  34. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
  35. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
  36. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
  37. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
  38. package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
  39. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  40. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  41. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
  42. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  43. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
  44. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  45. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +178 -2
  46. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +115 -9
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
  50. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
  51. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
  52. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
  53. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  54. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
  55. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  56. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
  57. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
  58. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
  59. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
  60. package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
  61. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  62. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  63. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
  64. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
  65. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
  66. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
  67. package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
  68. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  69. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  70. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
  71. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
  73. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  74. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
  75. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
  76. package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
  77. package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
  78. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
  79. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
  81. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  82. package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
  83. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
  84. package/dist/esm/_core/family-aspects.registry.js +60 -0
  85. package/dist/esm/_core/family-aspects.registry.js.map +1 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
  87. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
  88. package/dist/esm/_core/family-aspects.schemas.js +15 -0
  89. package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
  91. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
  92. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
  93. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
  94. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
  95. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
  97. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
  98. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
  99. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
  103. package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
  104. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
  105. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  106. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  107. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
  108. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  109. package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
  110. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  111. package/dist/esm/_core/index.d.ts +3 -0
  112. package/dist/esm/_core/index.d.ts.map +1 -1
  113. package/dist/esm/_core/index.js +3 -0
  114. package/dist/esm/_core/index.js.map +1 -1
  115. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
  116. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  117. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
  118. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  119. package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
  120. package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
  121. package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
  122. package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
  123. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
  124. package/dist/esm/_core/market/market.family-aspects.js +227 -0
  125. package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
  126. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
  127. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  128. package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
  129. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  130. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
  132. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  133. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
  134. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  135. package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
  136. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  137. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
  138. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
  139. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
  140. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
  141. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
  142. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  143. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
  144. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  145. package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
  146. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
  147. package/dist/esm/_core/provider-specification.schemas.js +144 -0
  148. package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
  149. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  150. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
  151. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  152. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
  153. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  154. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  155. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
  156. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
  157. package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
  158. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
  159. package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
  160. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  162. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  163. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
  164. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  165. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
  166. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  167. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  168. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
  169. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
  170. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
  171. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
  172. package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
  173. package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
  174. package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
  175. package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
  176. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
  178. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  179. package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
  180. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
  181. package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
  182. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
  183. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
  184. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
  185. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +193 -38
  186. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  187. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +157 -57
  188. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  189. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
  190. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
  191. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
  193. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  194. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
  195. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  196. package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
  197. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
  198. package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
  199. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
  200. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
  201. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
  202. package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
  203. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
  204. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
  205. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  206. package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
  207. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  208. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +101 -85
  209. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  210. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +171 -86
  211. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  212. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
  213. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  214. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  215. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  216. package/dist/esm/application-creation.exports.d.ts +11 -0
  217. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  218. package/dist/esm/application-creation.exports.js +11 -0
  219. package/dist/esm/application-creation.exports.js.map +1 -1
  220. package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
  221. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
  223. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +999 -2
  225. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  226. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2127 -61
  227. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  228. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +26 -0
  229. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  230. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  231. package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
  232. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  233. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
  234. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  235. package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
  236. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  237. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
  238. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
  239. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
  240. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
  241. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
  242. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
  243. package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
  244. package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
  245. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
  246. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  247. package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
  248. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  249. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +78 -1
  250. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  251. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +562 -5
  252. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  253. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +148 -0
  254. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
  255. package/dist/esm/assurance/assurance-program-generation.schemas.js +385 -0
  256. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
  257. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
  258. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
  259. package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
  260. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
  261. package/dist/esm/assurance/assurance-program.schemas.d.ts +474 -14
  262. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  263. package/dist/esm/assurance/assurance-program.schemas.js +319 -8
  264. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  265. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
  266. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  267. package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
  268. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  269. package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
  270. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  271. package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
  272. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  273. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
  274. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
  275. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
  276. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
  277. package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
  278. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
  279. package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
  280. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
  281. package/dist/esm/assurance.exports.d.ts +2 -0
  282. package/dist/esm/assurance.exports.d.ts.map +1 -1
  283. package/dist/esm/assurance.exports.js +2 -0
  284. package/dist/esm/assurance.exports.js.map +1 -1
  285. package/dist/esm/companion-exports.d.ts +26 -8
  286. package/dist/esm/companion-exports.d.ts.map +1 -1
  287. package/dist/esm/companion-exports.js.map +1 -1
  288. package/dist/esm/engine/_bootstrap.js +3 -1
  289. package/dist/esm/engine/_bootstrap.js.map +1 -1
  290. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +15 -1
  292. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +4 -2
  295. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
  297. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +17 -3
  299. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +12 -10
  302. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -2
  305. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
  307. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
  308. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
  309. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
  310. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
  311. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  312. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +3 -1
  313. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  314. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +15 -1
  316. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
  318. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  319. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +17 -3
  320. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  321. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
  322. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
  323. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
  324. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
  325. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
  326. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  327. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +6 -4
  328. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  329. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  330. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +4 -2
  331. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  332. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +8 -6
  334. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +11 -9
  337. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  339. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +8 -6
  340. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  341. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
  342. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  343. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +106 -10
  344. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  345. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
  346. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  347. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
  348. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  349. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
  350. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
  351. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
  352. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
  353. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
  354. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +6 -3
  356. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  357. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
  358. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  359. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +4 -2
  360. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  361. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
  362. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  363. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -3
  364. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  365. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  366. package/dist/esm/engine/billing/resources/prices.resource.specification.js +10 -8
  367. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  368. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  369. package/dist/esm/engine/billing/resources/products.resource.specification.js +10 -8
  370. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  371. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +16 -12
  373. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  374. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  375. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +10 -8
  376. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  377. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
  378. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  379. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +8 -3
  380. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +13 -9
  382. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  383. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +30 -11
  384. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  385. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +10 -8
  387. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
  389. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  390. package/dist/esm/engine/engine-resource-specifications.registry.js +11 -2
  391. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  392. package/dist/esm/engine/engine-resource-sub-domain.d.ts +83 -0
  393. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
  394. package/dist/esm/engine/engine-resource-sub-domain.js +153 -0
  395. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
  396. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  397. package/dist/esm/engine/errors/error-messages.specification.js +44 -1
  398. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  399. package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
  400. package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
  401. package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
  402. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  403. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  404. package/dist/esm/engine/features/resources/application-features.resource.specification.js +5 -3
  405. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  406. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +5 -3
  408. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/features/resources/user-features.resource.specification.js +5 -3
  412. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  414. package/dist/esm/engine/files/resources/files.resource.specification.js +12 -10
  415. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  416. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
  417. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  418. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +22 -10
  419. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  420. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
  421. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  422. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -4
  423. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  424. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
  425. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +4 -2
  427. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  428. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  429. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  430. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
  431. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
  433. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
  434. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
  435. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
  436. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
  437. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
  438. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
  439. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
  440. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  441. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
  442. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
  444. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
  445. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
  446. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
  447. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
  448. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
  449. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
  450. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
  451. package/dist/esm/engine/frontend-components/index.d.ts +0 -2
  452. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  453. package/dist/esm/engine/frontend-components/index.js +4 -6
  454. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  455. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
  456. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  457. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +15 -12
  458. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  459. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
  460. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +12 -9
  462. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +9 -1
  464. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  465. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +9 -6
  466. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/index.d.ts +2 -0
  468. package/dist/esm/engine/index.d.ts.map +1 -1
  469. package/dist/esm/engine/index.js +2 -0
  470. package/dist/esm/engine/index.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +19 -17
  473. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  474. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  475. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -7
  476. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  477. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  478. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +10 -8
  479. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  480. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
  481. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  482. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +12 -5
  483. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  484. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -15
  486. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  488. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  489. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +14 -10
  490. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  491. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  492. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +31 -6
  493. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  494. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  495. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  496. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +11 -9
  497. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  498. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  499. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -3
  500. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  501. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  502. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +6 -4
  503. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  504. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  505. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -2
  506. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  507. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  508. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +3 -1
  509. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  510. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  511. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
  512. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  514. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +9 -7
  515. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  516. package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
  517. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
  518. package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
  519. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
  520. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
  521. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
  522. package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
  523. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
  524. package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
  525. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
  527. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
  528. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
  529. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
  531. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
  532. package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
  533. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/providers/github.provider.specification.js +30 -0
  535. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
  536. package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
  537. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/providers/google.provider.specification.js +34 -0
  539. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
  540. package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
  541. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
  542. package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
  543. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
  544. package/dist/esm/engine/providers/index.d.ts +23 -0
  545. package/dist/esm/engine/providers/index.d.ts.map +1 -0
  546. package/dist/esm/engine/providers/index.js +37 -0
  547. package/dist/esm/engine/providers/index.js.map +1 -0
  548. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
  549. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
  550. package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
  551. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
  552. package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
  553. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
  554. package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
  555. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
  556. package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
  557. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
  558. package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
  559. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
  560. package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
  561. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
  562. package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
  563. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
  564. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
  565. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
  566. package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
  567. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
  568. package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
  569. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
  570. package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
  571. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
  572. package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
  573. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
  574. package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
  575. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
  576. package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
  577. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
  578. package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
  579. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
  580. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +9 -7
  582. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
  584. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +11 -9
  586. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  587. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
  588. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +4 -2
  590. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  591. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  592. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +10 -8
  594. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  595. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
  596. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +6 -4
  598. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  599. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
  600. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +4 -2
  602. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  603. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +5 -5
  604. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +15 -11
  606. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  607. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
  608. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +3 -1
  610. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  612. package/dist/esm/engine/users/resources/user-self.resource.specification.js +11 -9
  613. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  614. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  615. package/dist/esm/engine/users/resources/users.resource.specification.js +95 -0
  616. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  617. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
  618. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  619. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +451 -25
  620. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  621. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
  622. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  623. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +37 -1
  624. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  625. package/dist/tsconfig.build.tsbuildinfo +1 -0
  626. package/package.json +8 -8
  627. package/dist/esm/.builder.pid +0 -9
  628. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
  629. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
  630. package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
  631. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
  632. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
  633. package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
@@ -0,0 +1,227 @@
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
2
+ import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
+ import { MarketCategoryConfigSchema } from './market-category.schemas.js';
4
+ import { MarketICPConfigSchema } from './market-icp.schemas.js';
5
+ import { MarketPersonaConfigSchema } from './market-persona.schemas.js';
6
+ import { MarketJobConfigSchema } from './market-job.schemas.js';
7
+ import { MarketPainConfigSchema } from './market-pain.schemas.js';
8
+ import { MarketGainConfigSchema } from './market-gain.schemas.js';
9
+ import { ToneOfVoiceConfigSchema } from './market-tone-of-voice.schemas.js';
10
+ import { FeatureBenefitConfigSchema } from './feature-benefit.schemas.js';
11
+ import { MarketPositioningConfigSchema } from './market-positioning.schemas.js';
12
+ import { MarketChannelConfigSchema } from './market-channel.schemas.js';
13
+ import { MarketAlternativeConfigSchema } from './market-alternative.schemas.js';
14
+ import { MarketTriggerConfigSchema } from './market-trigger.schemas.js';
15
+ import { MarketBuyingJourneyConfigSchema } from './market-buying-journey.schemas.js';
16
+ import { MarketProofConfigSchema } from './market-proof.schemas.js';
17
+ import { MarketObjectionConfigSchema } from './market-objection.schemas.js';
18
+ import { MarketMessageTemplateConfigSchema } from './market-message-template.schemas.js';
19
+ /**
20
+ * The market family's aspects — the largest declaration, and the graph's hub: most cross-family
21
+ * edges land HERE (requirements serve ICPs and jobs, plans target ICPs, positionings speak to
22
+ * ICPs in a tone). Edge fields below are TRANSCRIBED from the entry schemas, not remembered —
23
+ * the drift pin in `__tests__/family-aspects.registry.test.ts` holds them to that.
24
+ */
25
+ export const MARKET_FAMILY_ASPECTS = {
26
+ schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.MARKET_SNAPSHOT,
27
+ aspects: [
28
+ {
29
+ key: 'market.category',
30
+ snapshotPath: 'category',
31
+ kind: FamilyAspectKind.SINGLETON,
32
+ itemSchema: MarketCategoryConfigSchema,
33
+ headlineField: 'name',
34
+ edges: [],
35
+ nonEdgeRefFields: { ref: 'the category names itself; nothing references it by key yet' },
36
+ },
37
+ {
38
+ key: 'market.icp',
39
+ snapshotPath: 'icps',
40
+ kind: FamilyAspectKind.COLLECTION,
41
+ itemSchema: MarketICPConfigSchema,
42
+ businessKey: 'ref',
43
+ headlineField: 'name',
44
+ edges: [
45
+ { field: 'buyingGroup', throughField: 'personaRef', targetAspects: ['market.persona'] },
46
+ { field: 'jobs', throughField: 'jobRef', targetAspects: ['market.job'] },
47
+ { field: 'pains', throughField: 'painRef', targetAspects: ['market.pain'] },
48
+ { field: 'gains', throughField: 'gainRef', targetAspects: ['market.gain'] },
49
+ { field: 'channelRefs', targetAspects: ['market.channel'] },
50
+ { field: 'triggerRefs', targetAspects: ['market.trigger'] },
51
+ { field: 'alternativeRefs', targetAspects: ['market.alternative'] },
52
+ { field: 'proofRefs', targetAspects: ['market.proof'] },
53
+ { field: 'objectionRefs', targetAspects: ['market.objection'] },
54
+ { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },
55
+ ],
56
+ nonEdgeRefFields: {
57
+ recommendedProductRefs: 'ProductSpecification refs — the runtime product catalog, not a family aspect; becomes an edge when products join the registry',
58
+ upsellPathProductRefs: 'ProductSpecification refs, same catalog and same future as recommendedProductRefs',
59
+ },
60
+ },
61
+ {
62
+ key: 'market.persona',
63
+ snapshotPath: 'personas',
64
+ kind: FamilyAspectKind.COLLECTION,
65
+ itemSchema: MarketPersonaConfigSchema,
66
+ businessKey: 'ref',
67
+ headlineField: 'name',
68
+ edges: [
69
+ { field: 'belongsToIcpRefs', targetAspects: ['market.icp'] },
70
+ { field: 'jobs', throughField: 'jobRef', targetAspects: ['market.job'] },
71
+ { field: 'pains', throughField: 'painRef', targetAspects: ['market.pain'] },
72
+ { field: 'gains', throughField: 'gainRef', targetAspects: ['market.gain'] },
73
+ { field: 'channelRefs', targetAspects: ['market.channel'] },
74
+ { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },
75
+ ],
76
+ },
77
+ {
78
+ key: 'market.job',
79
+ snapshotPath: 'jobs',
80
+ kind: FamilyAspectKind.COLLECTION,
81
+ itemSchema: MarketJobConfigSchema,
82
+ businessKey: 'ref',
83
+ headlineField: 'statement',
84
+ edges: [],
85
+ nonEdgeRefFields: {
86
+ successCriteria: 'prose criteria of the job itself, not vision success-criterion keys',
87
+ },
88
+ },
89
+ {
90
+ key: 'market.pain',
91
+ snapshotPath: 'pains',
92
+ kind: FamilyAspectKind.COLLECTION,
93
+ itemSchema: MarketPainConfigSchema,
94
+ businessKey: 'ref',
95
+ headlineField: 'statement',
96
+ edges: [],
97
+ },
98
+ {
99
+ key: 'market.gain',
100
+ snapshotPath: 'gains',
101
+ kind: FamilyAspectKind.COLLECTION,
102
+ itemSchema: MarketGainConfigSchema,
103
+ businessKey: 'ref',
104
+ headlineField: 'statement',
105
+ edges: [],
106
+ },
107
+ {
108
+ key: 'market.tone-of-voice',
109
+ snapshotPath: 'tonesOfVoice',
110
+ kind: FamilyAspectKind.COLLECTION,
111
+ itemSchema: ToneOfVoiceConfigSchema,
112
+ businessKey: 'ref',
113
+ headlineField: 'name',
114
+ edges: [],
115
+ },
116
+ {
117
+ key: 'market.benefit',
118
+ snapshotPath: 'benefits',
119
+ kind: FamilyAspectKind.COLLECTION,
120
+ itemSchema: FeatureBenefitConfigSchema,
121
+ businessKey: 'ref',
122
+ headlineField: 'claim',
123
+ edges: [
124
+ { field: 'deliveredByFeatureRefs', targetAspects: ['feature-drafts.draft'] },
125
+ { field: 'relieves', throughField: 'painRef', targetAspects: ['market.pain'] },
126
+ { field: 'creates', throughField: 'gainRef', targetAspects: ['market.gain'] },
127
+ { field: 'advances', throughField: 'jobRef', targetAspects: ['market.job'] },
128
+ { field: 'importanceByICP', throughField: 'icpRef', targetAspects: ['market.icp'] },
129
+ { field: 'proofRefs', targetAspects: ['market.proof'] },
130
+ { field: 'addressesObjectionRefs', targetAspects: ['market.objection'] },
131
+ ],
132
+ },
133
+ {
134
+ key: 'market.positioning',
135
+ snapshotPath: 'positionings',
136
+ kind: FamilyAspectKind.COLLECTION,
137
+ itemSchema: MarketPositioningConfigSchema,
138
+ businessKey: 'ref',
139
+ headlineField: 'oneSentence',
140
+ edges: [
141
+ { field: 'icpRef', targetAspects: ['market.icp'] },
142
+ { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },
143
+ { field: 'valuePillars', throughField: 'backedByBenefitRefs', targetAspects: ['market.benefit'] },
144
+ { field: 'alternativesContrasted', throughField: 'alternativeRef', targetAspects: ['market.alternative'] },
145
+ ],
146
+ },
147
+ {
148
+ key: 'market.channel',
149
+ snapshotPath: 'channels',
150
+ kind: FamilyAspectKind.COLLECTION,
151
+ itemSchema: MarketChannelConfigSchema,
152
+ businessKey: 'ref',
153
+ headlineField: 'name',
154
+ edges: [],
155
+ },
156
+ {
157
+ key: 'market.alternative',
158
+ snapshotPath: 'alternatives',
159
+ kind: FamilyAspectKind.COLLECTION,
160
+ itemSchema: MarketAlternativeConfigSchema,
161
+ businessKey: 'ref',
162
+ headlineField: 'name',
163
+ edges: [],
164
+ },
165
+ {
166
+ key: 'market.trigger',
167
+ snapshotPath: 'triggers',
168
+ kind: FamilyAspectKind.COLLECTION,
169
+ itemSchema: MarketTriggerConfigSchema,
170
+ businessKey: 'ref',
171
+ headlineField: 'name',
172
+ edges: [
173
+ { field: 'affectedIcpRefs', targetAspects: ['market.icp'] },
174
+ { field: 'recommendedChannelRefs', targetAspects: ['market.channel'] },
175
+ ],
176
+ },
177
+ {
178
+ key: 'market.buying-journey',
179
+ snapshotPath: 'buyingJourneys',
180
+ kind: FamilyAspectKind.COLLECTION,
181
+ itemSchema: MarketBuyingJourneyConfigSchema,
182
+ businessKey: 'ref',
183
+ headlineField: 'ref',
184
+ edges: [
185
+ { field: 'icpRef', targetAspects: ['market.icp'] },
186
+ ],
187
+ },
188
+ {
189
+ key: 'market.proof',
190
+ snapshotPath: 'proofs',
191
+ kind: FamilyAspectKind.COLLECTION,
192
+ itemSchema: MarketProofConfigSchema,
193
+ businessKey: 'ref',
194
+ headlineField: 'statement',
195
+ edges: [
196
+ { field: 'supportsBenefitRefs', targetAspects: ['market.benefit'] },
197
+ { field: 'supportsIcpRefs', targetAspects: ['market.icp'] },
198
+ ],
199
+ },
200
+ {
201
+ key: 'market.objection',
202
+ snapshotPath: 'objections',
203
+ kind: FamilyAspectKind.COLLECTION,
204
+ itemSchema: MarketObjectionConfigSchema,
205
+ businessKey: 'ref',
206
+ headlineField: 'statement',
207
+ edges: [
208
+ { field: 'raisedByIcpRefs', targetAspects: ['market.icp'] },
209
+ { field: 'raisedByPersonaRefs', targetAspects: ['market.persona'] },
210
+ { field: 'proofRefs', targetAspects: ['market.proof'] },
211
+ { field: 'relatedBenefitRefs', targetAspects: ['market.benefit'] },
212
+ ],
213
+ },
214
+ {
215
+ key: 'market.message-template',
216
+ snapshotPath: 'messageTemplates',
217
+ kind: FamilyAspectKind.COLLECTION,
218
+ itemSchema: MarketMessageTemplateConfigSchema,
219
+ businessKey: 'ref',
220
+ headlineField: 'name',
221
+ edges: [
222
+ { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },
223
+ ],
224
+ },
225
+ ],
226
+ };
227
+ //# sourceMappingURL=market.family-aspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/market/market.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,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,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AK,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC,YAAY,CAAC,EAAE;aAC5D;SACF;QACD;YACE,GAAG,EAAE,kBAAkB;YACvB,YAAY,EAAE,YAAY;YAC1B,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,2BAA2B;YACvC,WAAW,EAAE,KAAK;YAClB,aAAa,EAAE,WAAW;YAC1B,KAAK,EAAE;gBACL,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC,YAAY,CAAC,EAAE;gBAC3D,EAAE,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,CAAC,gBAAgB,CAAC,EAAE;gBACnE,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,cAAc,CAAC,EAAE;gBACvD,EAAE,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,CAAC,gBAAgB,CAAC,EAAE;aACnE;SACF;QACD;YACE,GAAG,EAAE,yBAAyB;YAC9B,YAAY,EAAE,kBAAkB;YAChC,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,iCAAiC;YAC7C,WAAW,EAAE,KAAK;YAClB,aAAa,EAAE,MAAM;YACrB,KAAK,EAAE;gBACL,EAAE,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,CAAC,sBAAsB,CAAC,EAAE;aACxE;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 { MarketCategoryConfigSchema } from './market-category.schemas';\nimport { MarketICPConfigSchema } from './market-icp.schemas';\nimport { MarketPersonaConfigSchema } from './market-persona.schemas';\nimport { MarketJobConfigSchema } from './market-job.schemas';\nimport { MarketPainConfigSchema } from './market-pain.schemas';\nimport { MarketGainConfigSchema } from './market-gain.schemas';\nimport { ToneOfVoiceConfigSchema } from './market-tone-of-voice.schemas';\nimport { FeatureBenefitConfigSchema } from './feature-benefit.schemas';\nimport { MarketPositioningConfigSchema } from './market-positioning.schemas';\nimport { MarketChannelConfigSchema } from './market-channel.schemas';\nimport { MarketAlternativeConfigSchema } from './market-alternative.schemas';\nimport { MarketTriggerConfigSchema } from './market-trigger.schemas';\nimport { MarketBuyingJourneyConfigSchema } from './market-buying-journey.schemas';\nimport { MarketProofConfigSchema } from './market-proof.schemas';\nimport { MarketObjectionConfigSchema } from './market-objection.schemas';\nimport { MarketMessageTemplateConfigSchema } from './market-message-template.schemas';\n\n/**\n * The market family's aspects — the largest declaration, and the graph's hub: most cross-family\n * edges land HERE (requirements serve ICPs and jobs, plans target ICPs, positionings speak to\n * ICPs in a tone). Edge fields below are TRANSCRIBED from the entry schemas, not remembered —\n * the drift pin in `__tests__/family-aspects.registry.test.ts` holds them to that.\n */\nexport const MARKET_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.MARKET_SNAPSHOT,\n aspects: [\n {\n key: 'market.category',\n snapshotPath: 'category',\n kind: FamilyAspectKind.SINGLETON,\n itemSchema: MarketCategoryConfigSchema,\n headlineField: 'name',\n edges: [],\n nonEdgeRefFields: { ref: 'the category names itself; nothing references it by key yet' },\n },\n {\n key: 'market.icp',\n snapshotPath: 'icps',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketICPConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [\n { field: 'buyingGroup', throughField: 'personaRef', targetAspects: ['market.persona'] },\n { field: 'jobs', throughField: 'jobRef', targetAspects: ['market.job'] },\n { field: 'pains', throughField: 'painRef', targetAspects: ['market.pain'] },\n { field: 'gains', throughField: 'gainRef', targetAspects: ['market.gain'] },\n { field: 'channelRefs', targetAspects: ['market.channel'] },\n { field: 'triggerRefs', targetAspects: ['market.trigger'] },\n { field: 'alternativeRefs', targetAspects: ['market.alternative'] },\n { field: 'proofRefs', targetAspects: ['market.proof'] },\n { field: 'objectionRefs', targetAspects: ['market.objection'] },\n { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },\n ],\n nonEdgeRefFields: {\n recommendedProductRefs:\n 'ProductSpecification refs — the runtime product catalog, not a family aspect; becomes an edge when products join the registry',\n upsellPathProductRefs:\n 'ProductSpecification refs, same catalog and same future as recommendedProductRefs',\n },\n },\n {\n key: 'market.persona',\n snapshotPath: 'personas',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketPersonaConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [\n { field: 'belongsToIcpRefs', targetAspects: ['market.icp'] },\n { field: 'jobs', throughField: 'jobRef', targetAspects: ['market.job'] },\n { field: 'pains', throughField: 'painRef', targetAspects: ['market.pain'] },\n { field: 'gains', throughField: 'gainRef', targetAspects: ['market.gain'] },\n { field: 'channelRefs', targetAspects: ['market.channel'] },\n { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },\n ],\n },\n {\n key: 'market.job',\n snapshotPath: 'jobs',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketJobConfigSchema,\n businessKey: 'ref',\n headlineField: 'statement',\n edges: [],\n nonEdgeRefFields: {\n successCriteria: 'prose criteria of the job itself, not vision success-criterion keys',\n },\n },\n {\n key: 'market.pain',\n snapshotPath: 'pains',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketPainConfigSchema,\n businessKey: 'ref',\n headlineField: 'statement',\n edges: [],\n },\n {\n key: 'market.gain',\n snapshotPath: 'gains',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketGainConfigSchema,\n businessKey: 'ref',\n headlineField: 'statement',\n edges: [],\n },\n {\n key: 'market.tone-of-voice',\n snapshotPath: 'tonesOfVoice',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: ToneOfVoiceConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [],\n },\n {\n key: 'market.benefit',\n snapshotPath: 'benefits',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: FeatureBenefitConfigSchema,\n businessKey: 'ref',\n headlineField: 'claim',\n edges: [\n { field: 'deliveredByFeatureRefs', targetAspects: ['feature-drafts.draft'] },\n { field: 'relieves', throughField: 'painRef', targetAspects: ['market.pain'] },\n { field: 'creates', throughField: 'gainRef', targetAspects: ['market.gain'] },\n { field: 'advances', throughField: 'jobRef', targetAspects: ['market.job'] },\n { field: 'importanceByICP', throughField: 'icpRef', targetAspects: ['market.icp'] },\n { field: 'proofRefs', targetAspects: ['market.proof'] },\n { field: 'addressesObjectionRefs', targetAspects: ['market.objection'] },\n ],\n },\n {\n key: 'market.positioning',\n snapshotPath: 'positionings',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketPositioningConfigSchema,\n businessKey: 'ref',\n headlineField: 'oneSentence',\n edges: [\n { field: 'icpRef', targetAspects: ['market.icp'] },\n { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },\n { field: 'valuePillars', throughField: 'backedByBenefitRefs', targetAspects: ['market.benefit'] },\n { field: 'alternativesContrasted', throughField: 'alternativeRef', targetAspects: ['market.alternative'] },\n ],\n },\n {\n key: 'market.channel',\n snapshotPath: 'channels',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketChannelConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [],\n },\n {\n key: 'market.alternative',\n snapshotPath: 'alternatives',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketAlternativeConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [],\n },\n {\n key: 'market.trigger',\n snapshotPath: 'triggers',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketTriggerConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [\n { field: 'affectedIcpRefs', targetAspects: ['market.icp'] },\n { field: 'recommendedChannelRefs', targetAspects: ['market.channel'] },\n ],\n },\n {\n key: 'market.buying-journey',\n snapshotPath: 'buyingJourneys',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketBuyingJourneyConfigSchema,\n businessKey: 'ref',\n headlineField: 'ref',\n edges: [\n { field: 'icpRef', targetAspects: ['market.icp'] },\n ],\n },\n {\n key: 'market.proof',\n snapshotPath: 'proofs',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketProofConfigSchema,\n businessKey: 'ref',\n headlineField: 'statement',\n edges: [\n { field: 'supportsBenefitRefs', targetAspects: ['market.benefit'] },\n { field: 'supportsIcpRefs', targetAspects: ['market.icp'] },\n ],\n },\n {\n key: 'market.objection',\n snapshotPath: 'objections',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketObjectionConfigSchema,\n businessKey: 'ref',\n headlineField: 'statement',\n edges: [\n { field: 'raisedByIcpRefs', targetAspects: ['market.icp'] },\n { field: 'raisedByPersonaRefs', targetAspects: ['market.persona'] },\n { field: 'proofRefs', targetAspects: ['market.proof'] },\n { field: 'relatedBenefitRefs', targetAspects: ['market.benefit'] },\n ],\n },\n {\n key: 'market.message-template',\n snapshotPath: 'messageTemplates',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: MarketMessageTemplateConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [\n { field: 'preferredVoiceRef', targetAspects: ['market.tone-of-voice'] },\n ],\n },\n ],\n};\n"]}
@@ -5,7 +5,18 @@ import type { TranslationSlotSpecificationMap } from './translation-slot-specifi
5
5
  interface PublicCodeSymbolRef {
6
6
  packageName: string;
7
7
  exportName: string;
8
+ /**
9
+ * PUBLIC SUBPATH only — a subpath the owning package declares in
10
+ * `package.json#exports`, so `${packageName}/${importPath}` resolves. For a module
11
+ * that has no public door, author `filePathHint` instead (issue #150).
12
+ */
8
13
  importPath?: string;
14
+ /**
15
+ * MODULE LOCATION inside the owning package — a navigation aid, never concatenated
16
+ * onto `packageName`. See `CodeSymbolRef` in `@wildo-ai/zod-decorators` for the
17
+ * canonical contract this narrows.
18
+ */
19
+ filePathHint?: string;
9
20
  }
10
21
  /**
11
22
  * Per-element semantic overlay for one onboarding element (modal, banner, …).
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-view-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/onboarding-view-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAIhF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,KAAK,EAEV,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAElD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,kCAAkC;IACjD,sEAAsE;IACtE,GAAG,EAAE,MAAM,CAAC;IACZ,qEAAqE;IACrE,WAAW,EAAE,qBAAqB,CAAC;IACnC,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,+BAA+B,CAAC;IAC5C,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,uCAAuC;IACtD;;;;;;;;;OASG;IACH,eAAe,EAAE,qBAAqB,CAAC;IACvC,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC3C,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;IACxC,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;IACxC,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,M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CAC9E,CAAC;AAEF,qDAAqD;AACrD,MAAM,MAAM,gCAAgC,GAAG,IAAI,CACjD,iCAAiC,EACjC,KAAK,CACN,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,8CAA8C,CAC5D,GAAG,EAAE,MAAM,GACV,MAAM,CAER;AAED;;;;GAIG;AACH,wBAAgB,2CAA2C,CACzD,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,MAAM,GACV,MAAM,CAER;AAED;;;;GAIG;AACH,wBAAgB,oDAAoD,CAClE,cAAc,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAC/B,YAAY,EAAE,MAAM,gCAAgC,GACnD,iCAAiC,CAYnC;AAED;;;GAGG;AACH,wBAAgB,iDAAiD,CAC/D,cAAc,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,EACrD,YAAY,EAAE,MAAM,gCAAgC,GACnD,yCAAyC,CAgB3C;AAED;;;;;GAKG;AACH,wBAAgB,mCAAmC,CACjD,GAAG,cAAc,EAAE,KAAK,CACtB,iCAAiC,GAAG,yCAAyC,CAC9E,GACA,2BAA2B,CAoB7B"}
1
+ {"version":3,"file":"onboarding-view-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/onboarding-view-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAIhF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,KAAK,EAEV,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAElD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;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AE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,EACrD,YAAY,EAAE,MAAM,gCAAgC,GACnD,yCAAyC,CAgB3C;AAED;;;;;GAKG;AACH,wBAAgB,mCAAmC,CACjD,GAAG,cAAc,EAAE,KAAK,CACtB,iCAAiC,GAAG,yCAAyC,CAC9E,GACA,2BAA2B,CAoB7B"}
@@ -353,5 +353,19 @@ function assertOptionalCodeSymbolRef(errorPrefix, fullPath, symbolRef) {
353
353
  throw new Error(`${errorPrefix} ${fullPath}.importPath must be a non-empty trimmed string when authored.`);
354
354
  }
355
355
  }
356
+ /*
357
+ * `filePathHint` is validated to the same shape as `importPath` and NOT merged with it:
358
+ * the two carry different senses (a public import specifier vs a module location) and
359
+ * issue #150 records what happens when they are conflated — a source path authored in
360
+ * `importPath` is rendered to a coding agent as the address to import from, and cannot
361
+ * resolve. Shape-only here, deliberately: whether a subpath is genuinely declared in the
362
+ * owning package's `package.json#exports` is not answerable from inside this validator,
363
+ * so the distinction is carried by the contract and the renderer rather than guessed at.
364
+ */
365
+ if (symbolRef.filePathHint !== undefined) {
366
+ if (typeof symbolRef.filePathHint !== 'string' || !symbolRef.filePathHint.trim()) {
367
+ throw new Error(`${errorPrefix} ${fullPath}.filePathHint must be a non-empty trimmed string when authored.`);
368
+ }
369
+ }
356
370
  }
357
371
  //# sourceMappingURL=onboarding-view-specification.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/onboarding-view-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EACL,2CAA2C,GAC5C,MAAM,2CAA2C,CAAC;AA+MnD;;;;;;;;;;;;;;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,SAAS,KAAK,QAAQ,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,GAAG,WAAW,IAAI,QAAQ,mCAAmC,CAAC,CAAC;IACjF,CAAC;IACD,IAAI,OAAO,SAAS,CAAC,WAAW,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC;QAC/E,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,IAAI,QAAQ,kDAAkD,CAC7E,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,SAAS,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QAC7E,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,IAAI,QAAQ,iDAAiD,CAC5E,CAAC;IACJ,CAAC;IACD,IAAI,SAAS,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QACvC,IAAI,OAAO,SAAS,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;YAC7E,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,IAAI,QAAQ,+DAA+D,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import {\n GUIDANCE_ELEMENT_FIELDS,\n OnboardingElementType,\n OnboardingTriggerType,\n} from '@wildo-ai/saas-models';\n\nimport { assertRoleRefsResolveToRegistry } from './cross-registry-assertions';\nimport { SpecificationOwnerKind } from './definition-specification.schemas';\nimport type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport {\n assertOptionalRequiredFeaturesSpecification,\n} from './required-features-specification.schemas';\nimport type { RequiredFeaturesSpecification } from './required-features-specification.schemas';\nimport type {\n TranslationSlotSpecification,\n TranslationSlotSpecificationMap,\n} from './translation-slot-specification.schemas';\n\ninterface PublicCodeSymbolRef {\n packageName: string;\n exportName: string;\n importPath?: string;\n}\n\n/**\n * Per-element semantic overlay for one onboarding element (modal, banner, …).\n *\n * `elementType` mirrors the runtime `OnboardingElement.type` so\n * companion renderers can label / group elements by kind without\n * re-deriving the union from the runtime payload.\n */\nexport interface OnboardingViewElementSpecification {\n /** Stable runtime element ref local to the owning onboarding view. */\n ref: string;\n /** Runtime element kind — used for renderer grouping / labelling. */\n elementType: OnboardingElementType;\n /** Why this element exists in the onboarding flow. */\n purpose: string;\n /** Meaning of the per-element translatable slots (label, description, …). */\n textSlots?: TranslationSlotSpecificationMap;\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\n/**\n * Import-oriented coding/transposition metadata for an onboarding view.\n *\n * `triggerTypeSymbol` / `elementTypeSymbol` use the `Symbol` suffix\n * (not `Enum`) because the underlying runtime declarations\n * (`OnboardingTriggerType`, `OnboardingElementType` in\n * `engine/saas-models/src/config/frontend/onboarding.shared.schemas.ts`)\n * are `const` objects rather than TS `enum`s — the field name\n * documents that distinction faithfully.\n */\nexport interface OnboardingViewSpecificationCodeHandling {\n /**\n * Module/application owner that authored the onboarding view.\n *\n * Required because the engine + Wonder Todos parity audit\n * (Step 7 deferred follow-up #3) confirmed every authored\n * `OnboardingViewSpecification` populates this slot — onboarding\n * views are always wired through a separate definition collection\n * (no inline-at-resource declarations exist), so the owner is never\n * meaningfully absent.\n */\n definitionOwner: SpecificationOwnerRef;\n /** Public declarations where the onboarding view is wired into runtime registries. */\n declarationSymbols?: PublicCodeSymbolRef[];\n /** Public symbol exposing the runtime trigger type vocabulary. */\n triggerTypeSymbol?: PublicCodeSymbolRef;\n /** Public symbol exposing the runtime element type vocabulary. */\n elementTypeSymbol?: PublicCodeSymbolRef;\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\n/**\n * Authored semantic contract for one onboarding view.\n *\n * Bi-scoped at the runtime layer (an onboarding view is either\n * application-scope or resource-scope, see `OnboardingViewDefinition`)\n * so the spec layer ships two factories\n * (`applicationOnboardingViewSpecificationFromDefinition`,\n * `resourceOnboardingViewSpecificationFromDefinition`) that both\n * produce this same config shape — `scope` and `resourceType` are\n * NOT authored here; they're propagated by the factory from the\n * runtime `viewDefinition` arg, mirroring the chart spec precedent\n * (`chart-view-specification.schemas.ts:94-107`). This keeps a\n * single source of truth for scope (the runtime).\n *\n * Onboarding's audience axes are intentionally split between\n * flow-level `requiredFeatures` and per-trigger\n * `trigger.conditions` (roles, newUsersOnly, triggerOnce): the\n * runtime models them under different parents\n * (`OnboardingViewDefinition.requiredFeatures` vs\n * `OnboardingTrigger.conditions`), and the spec mirrors that\n * asymmetry rather than collapsing them into a unified `audience`\n * block (Pattern A discipline). Guidance flows DO have a unified\n * audience block at runtime — see\n * `guidance-flow-specification.schemas.ts`.\n */\nexport interface OnboardingViewSpecificationConfig {\n /** Stable runtime view ref (matches `OnboardingViewDefinition.ref`). */\n ref: string;\n /** Why this onboarding view exists from a product/workflow perspective. */\n purpose: string;\n /** What \"successful\" completion of this onboarding looks like. */\n successCriteria: string;\n /** Interaction role this onboarding plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this onboarding view is the right destination. */\n useWhen?: string;\n /** Situations where another surface (e.g. guidance flow) is preferred. */\n avoidWhen?: string;\n /**\n * Meaning of the view-level translatable slots.\n *\n * **Open vocabulary**: unlike the per-element `textSlots` (which\n * fail-close against `GUIDANCE_ELEMENT_FIELDS[elementType]`), the\n * flow-level slots accept any author-chosen key. Rationale: there\n * is no runtime label generator for flow-level slots to drift\n * against — they exist purely to ground companion prompts. The\n * validator only requires `'title'` and `'description'` to be\n * declared so generated overlay labels stay semantically grounded.\n * Tracked: F-9 in\n * `non-view-specification-coverage-step4-phase4-5-audit.md`.\n */\n textSlots?: TranslationSlotSpecificationMap;\n /** Per-element semantic overlay (one entry per runtime element). */\n elements: OnboardingViewElementSpecification[];\n /** Mirrors runtime `OnboardingViewDefinition.requiredFeatures` (flow-level gating). */\n requiredFeatures?: RequiredFeaturesSpecification;\n /**\n * Mirrors the full runtime `OnboardingTrigger`\n * (`OnboardingTriggerSchema` in\n * `engine/saas-models/src/config/frontend/onboarding.shared.schemas.ts`)\n * including the per-trigger-type scaffolding fields. Authored at\n * the spec layer because the trigger TYPE (`FIRST_VISIT` vs\n * `EVENT` vs `ROUTE_MATCH` vs `DELAYED` vs `MANUAL`) is the\n * dominant audience axis — losing it strands companion prompts\n * with no answer to \"WHEN does this onboarding fire?\".\n *\n * Optional at the spec layer (mirrors runtime `.optional()`):\n * `OnboardingViewDefinitionSchema.trigger` is `OnboardingTriggerSchema.optional()`,\n * so when an onboarding view omits the `trigger` block entirely the runtime\n * leaves `trigger` as `undefined` — there is NO `FIRST_VISIT` default applied\n * at this layer. The `OnboardingTriggerType.FIRST_VISIT` default declared on\n * `OnboardingTriggerSchema.type` only kicks in when an author writes a\n * `trigger: { ... }` object that omits the inner `type` field; once the outer\n * `trigger` object itself is missing, no parse occurs and no default is\n * synthesised. Companion prompts that need a \"WHEN does this fire?\" answer\n * for trigger-less onboarding views must therefore document the absence\n * explicitly rather than implying a default trigger type.\n *\n * Spec-side renames vs the runtime:\n * - `conditions.roleRefs` ← runtime `requiredRoles`. The `Refs`\n * suffix is the spec convention for string identifiers that\n * point to typed references in another spec family (mirrors\n * `featureRefs`, `excludeIfCompletedFlowRefs`).\n * - All other fields (`type`, `routePattern`, `eventName`,\n * `delayMs`, `conditions.newUsersOnly`, `conditions.triggerOnce`)\n * carry through verbatim.\n *\n * Per-type field semantics (validator enforces these):\n * - `type=ROUTE_MATCH` requires `routePattern`.\n * - `type=EVENT` requires `eventName`.\n * - `type=DELAYED` requires `delayMs > 0`.\n * - `routePattern` / `eventName` / `delayMs` are otherwise optional\n * (the runtime ignores them for non-matching trigger types).\n */\n trigger?: {\n type: OnboardingTriggerType;\n routePattern?: string;\n eventName?: string;\n delayMs?: number;\n conditions?: {\n roleRefs?: string[];\n newUsersOnly?: boolean;\n triggerOnce?: boolean;\n };\n };\n /** Additional domain constraints that matter beyond raw runtime structure. */\n businessConstraints?: string[];\n /** Author-facing notes that don't fit a structured field. */\n notes?: string[];\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: OnboardingViewSpecificationCodeHandling;\n}\n\n/**\n * Resource-scope variant — same shape as\n * `OnboardingViewSpecificationConfig` plus the owning resource type.\n */\nexport interface ResourceOnboardingViewSpecificationConfig\n extends OnboardingViewSpecificationConfig {\n /** Stable resource type that owns this onboarding view. */\n resourceType: string;\n}\n\n/**\n * Keyed by either `buildApplicationOnboardingViewSpecificationKey(ref)`\n * (`app.<ref>`) or\n * `buildResourceOnboardingViewSpecificationKey(resourceType, ref)`\n * (`resources.<resourceType>.<ref>`). The same map carries both\n * scopes — keys are globally unique because the namespaces are\n * disjoint (`app.*` vs `resources.*`).\n */\nexport type OnboardingViewSpecification = Record<\n string,\n OnboardingViewSpecificationConfig | ResourceOnboardingViewSpecificationConfig\n>;\n\n/** Author-supplied draft (factory injects `ref`). */\nexport type OnboardingViewSpecificationDraft = Omit<\n OnboardingViewSpecificationConfig,\n 'ref'\n>;\n\n/**\n * Application-scope key builder. Delegates to the shared\n * `buildApplicationViewTranslationRef` to keep `app.<ref>` as one\n * source of truth across all view families (see Phase 3 of the\n * step-4-onboarding plan and the H4 plan-review finding).\n *\n * Implementation note: we re-implement the 1-line template literal\n * here rather than depending on `@wildo-ai/saas-frontend-lib` so the\n * spec layer doesn't pull in the React-bearing frontend package.\n * The shared builder lives in `views-frontend.schemas.ts`; this is\n * an intentional duplication of the template (`app.${ref}`) only —\n * if the namespace ever changes, both sites flip together. Future\n * refactor: extract the template to a shared `@wildo-ai/saas-models`\n * constant once the namespace shape is genuinely shared by spec +\n * runtime + companion.\n */\nexport function buildApplicationOnboardingViewSpecificationKey(\n ref: string,\n): string {\n return `app.${ref}`;\n}\n\n/**\n * Resource-scope key builder. Per the step-4 plan, no shared\n * resource-scope builder is extracted: each spec family ships its\n * own family-named version so error messages name the family.\n */\nexport function buildResourceOnboardingViewSpecificationKey(\n resourceType: string,\n ref: string,\n): string {\n return `resources.${resourceType}.${ref}`;\n}\n\n/**\n * Factory for application-scope onboarding views. Mirrors the\n * chart spec precedent: scope is propagated from the\n * `viewDefinition` argument, not authored in the draft.\n */\nexport function applicationOnboardingViewSpecificationFromDefinition(\n viewDefinition: { ref: string },\n draftFactory: () => OnboardingViewSpecificationDraft,\n): OnboardingViewSpecificationConfig {\n const specification: OnboardingViewSpecificationConfig = {\n ...draftFactory(),\n ref: viewDefinition.ref,\n };\n\n validateOnboardingViewSpecification(\n buildApplicationOnboardingViewSpecificationKey(specification.ref),\n specification,\n );\n\n return specification;\n}\n\n/**\n * Factory for resource-scope onboarding views. Carries\n * `resourceType` through to the produced config.\n */\nexport function resourceOnboardingViewSpecificationFromDefinition(\n viewDefinition: { ref: string; resourceType: string },\n draftFactory: () => OnboardingViewSpecificationDraft,\n): ResourceOnboardingViewSpecificationConfig {\n const specification: ResourceOnboardingViewSpecificationConfig = {\n ...draftFactory(),\n ref: viewDefinition.ref,\n resourceType: viewDefinition.resourceType,\n };\n\n validateOnboardingViewSpecification(\n buildResourceOnboardingViewSpecificationKey(\n viewDefinition.resourceType,\n viewDefinition.ref,\n ),\n specification,\n );\n\n return specification;\n}\n\n/**\n * Build the keyed `OnboardingViewSpecification` map from a list of\n * specs (any mix of application + resource scope). Fails closed on\n * duplicate keys — same convention as every other view-family\n * `build*SpecificationMap` helper in `_core`.\n */\nexport function buildOnboardingViewSpecificationMap(\n ...specifications: Array<\n OnboardingViewSpecificationConfig | ResourceOnboardingViewSpecificationConfig\n >\n): OnboardingViewSpecification {\n const result: OnboardingViewSpecification = {};\n\n for (const specification of specifications) {\n const key = isResourceOnboardingViewSpecification(specification)\n ? buildResourceOnboardingViewSpecificationKey(\n specification.resourceType,\n specification.ref,\n )\n : buildApplicationOnboardingViewSpecificationKey(specification.ref);\n\n if (result[key]) {\n throw new Error(\n `buildOnboardingViewSpecificationMap(): duplicate onboarding specification key \"${key}\".`,\n );\n }\n result[key] = specification;\n }\n\n return result;\n}\n\nfunction isResourceOnboardingViewSpecification(\n specification:\n | OnboardingViewSpecificationConfig\n | ResourceOnboardingViewSpecificationConfig,\n): specification is ResourceOnboardingViewSpecificationConfig {\n return 'resourceType' in specification\n && typeof (specification as ResourceOnboardingViewSpecificationConfig).resourceType === 'string';\n}\n\nconst ONBOARDING_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'] as const;\n\n/**\n * Phase 4 fail-closed validator. Mirrors the chart / system-email /\n * resource-spec precedents (`_core/system-email-template-specification.schemas.ts`\n * `validateSystemEmailTemplateSpecification` is the closest sibling)\n * with onboarding-specific cross-links:\n *\n * - **Per-element textSlot key cross-link**: every authored\n * `elements[i].textSlots[key]` must be a member of\n * `GUIDANCE_ELEMENT_FIELDS[elementType]` so spec ↔ runtime\n * labelling stays in lockstep. Mismatches are the most common\n * class of authoring bug for ref-based label generation\n * (the dev-companion guidance-keys collector at\n * `i18n-labelling/utils/guidance-keys.utils.ts` walks the runtime\n * side; the spec-side fail-closed catches drift at module load).\n *\n * - **Structural `requiredFeatures` axes**: validates `featureRefs`\n * shape, `mode` literal membership, and `limitChecks` element\n * shape. Pattern A discipline — silently skipping these checks\n * would leak a runtime failure that the spec layer should catch.\n *\n * Helpers below are intentionally local to this file (not exported,\n * not shared with `guidance-flow-specification.schemas.ts`) to\n * mirror the existing `_core/` precedent: every view-family\n * validator owns its own copy of the small assertion helpers\n * (`assertOptionalNonEmptyStringList`, `assertOptionalNonEmptyProseSlot`,\n * etc.) so each file stays grep-able as a self-contained unit. A\n * future workstream can lift them to a shared\n * `_core/internal-validators.ts` once a third spec family wants\n * the same primitives.\n */\nfunction validateOnboardingViewSpecification(\n specificationKey: string,\n specification: OnboardingViewSpecificationConfig,\n): void {\n const errorPrefix = `onboardingViewSpecificationFromDefinition(): onboarding \"${specificationKey}\"`;\n\n for (const textSlotKey of ONBOARDING_VIEW_REQUIRED_TEXT_SLOTS) {\n if (!specification.textSlots || !(textSlotKey in specification.textSlots)) {\n throw new Error(\n `${errorPrefix} must document text slot \"${textSlotKey}\" so generated overlay labels stay semantically grounded.`,\n );\n }\n }\n assertEveryAuthoredTextSlotHasPurpose(errorPrefix, specification.textSlots);\n\n assertNonEmptyTrimmedString(errorPrefix, 'purpose', specification.purpose);\n assertNonEmptyTrimmedString(\n errorPrefix,\n 'successCriteria',\n specification.successCriteria,\n );\n assertNonEmptyTrimmedString(errorPrefix, 'uiRole', specification.uiRole);\n assertOptionalNonEmptyProseSlot(errorPrefix, 'useWhen', specification.useWhen);\n assertOptionalNonEmptyProseSlot(errorPrefix, 'avoidWhen', specification.avoidWhen);\n\n if (specification.elements.length === 0) {\n throw new Error(\n `${errorPrefix} must declare at least one element so the per-element companion overlay has authored content to render.`,\n );\n }\n\n const seenElementRefs = new Set<string>();\n for (const [index, element] of specification.elements.entries()) {\n const elementErrorPrefix = `${errorPrefix} elements[${index}]`;\n assertOnboardingElementSpecification(elementErrorPrefix, element);\n\n if (seenElementRefs.has(element.ref)) {\n throw new Error(\n `${errorPrefix} declares element \"${element.ref}\" more than once — element refs must be unique within the flow so per-element companion blocks stay addressable.`,\n );\n }\n seenElementRefs.add(element.ref);\n }\n\n assertOptionalTriggerSpecification(\n `${errorPrefix} trigger`,\n specification.trigger,\n );\n\n assertOptionalRequiredFeaturesSpecification(\n `${errorPrefix} requiredFeatures`,\n specification.requiredFeatures,\n );\n\n assertOptionalNonEmptyStringList(\n errorPrefix,\n 'businessConstraints',\n specification.businessConstraints,\n );\n assertOptionalNonEmptyStringList(errorPrefix, 'notes', specification.notes);\n\n assertOptionalCodeHandling(errorPrefix, specification.codeHandling);\n}\n\n// ---------------------------------------------------------------------------\n// Per-element validator\n// ---------------------------------------------------------------------------\n\n/**\n * Element-level validator covering ref + purpose + textSlot\n * cross-link to runtime `GUIDANCE_ELEMENT_FIELDS`. Used for both\n * onboarding views and (via duplication) guidance flows because\n * the underlying runtime element shape is shared\n * (`OnboardingElementSchema`).\n */\nfunction assertOnboardingElementSpecification(\n errorPrefix: string,\n element: OnboardingViewElementSpecification,\n): void {\n if (typeof element.ref !== 'string' || !element.ref.trim()) {\n throw new Error(\n `${errorPrefix}.ref must be a non-empty trimmed string so per-element companion blocks stay addressable.`,\n );\n }\n\n const allowedSlotKeys = GUIDANCE_ELEMENT_FIELDS[element.elementType];\n if (!Array.isArray(allowedSlotKeys)) {\n throw new Error(\n `${errorPrefix}.elementType \"${String(element.elementType)}\" is not a member of OnboardingElementType — authored value must come from the runtime enum so spec ↔ runtime labelling stays in lockstep.`,\n );\n }\n\n assertNonEmptyTrimmedString(errorPrefix, 'purpose', element.purpose);\n\n if (element.textSlots) {\n for (const slotKey of Object.keys(element.textSlots)) {\n if (!allowedSlotKeys.includes(slotKey)) {\n throw new Error(\n `${errorPrefix} (\"${element.ref}\", elementType=${element.elementType}) declares text slot \"${slotKey}\" but GUIDANCE_ELEMENT_FIELDS[${element.elementType}] only lists [${allowedSlotKeys.map((key) => `\"${key}\"`).join(', ')}]. Authoring slots that the runtime label generator does not know about silently strands them at companion time.`,\n );\n }\n }\n assertEveryAuthoredTextSlotHasPurpose(errorPrefix, element.textSlots);\n }\n\n assertOptionalNonEmptyStringList(errorPrefix, 'notes', element.notes);\n}\n\n// ---------------------------------------------------------------------------\n// Local assertion helpers (duplicated per `_core/` convention; see top-of-\n// validator JSDoc for rationale).\n// ---------------------------------------------------------------------------\n\nfunction assertNonEmptyTrimmedString(\n errorPrefix: string,\n fullPath: string,\n value: string,\n): void {\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath} must be a non-empty trimmed string so companion prompts have a grounded value.`,\n );\n }\n}\n\nfunction assertOptionalNonEmptyProseSlot(\n errorPrefix: string,\n fullPath: string,\n value: string | undefined,\n): void {\n if (value === undefined) {\n return;\n }\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath} must be a non-empty trimmed prose slot when authored (omit the field entirely instead of declaring an empty value).`,\n );\n }\n}\n\nfunction assertOptionalNonEmptyStringList(\n errorPrefix: string,\n fullPath: string,\n values: string[] | undefined,\n): void {\n if (!values) {\n return;\n }\n if (!Array.isArray(values)) {\n throw new Error(\n `${errorPrefix} ${fullPath} must be an array when authored.`,\n );\n }\n for (const [index, value] of values.entries()) {\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}[${index}] must be a non-empty trimmed string.`,\n );\n }\n }\n assertNoDuplicateStringRefs(errorPrefix, fullPath, values);\n}\n\n/**\n * Spec-side fail-closed deduplication for ref lists. The runtime is\n * tolerant of duplicate refs (set-like membership semantics), but\n * the spec lives by \"fail closed at module load\" so a duplicate\n * almost always signals a copy-paste authoring bug. Tracked: F-10\n * in `non-view-specification-coverage-step4-phase4-5-audit.md`.\n */\nfunction assertNoDuplicateStringRefs(\n errorPrefix: string,\n fullPath: string,\n values: string[],\n): void {\n const seen = new Set<string>();\n for (const [index, value] of values.entries()) {\n if (seen.has(value)) {\n throw new Error(\n `${errorPrefix} ${fullPath}[${index}] is a duplicate of an earlier entry (\"${value}\") — ref lists must be unique so spec authoring stays unambiguous.`,\n );\n }\n seen.add(value);\n }\n}\n\nfunction assertOptionalBoolean(\n errorPrefix: string,\n fullPath: string,\n value: boolean | undefined,\n): void {\n if (value === undefined) {\n return;\n }\n if (typeof value !== 'boolean') {\n throw new Error(\n `${errorPrefix} ${fullPath} must be a boolean when authored.`,\n );\n }\n}\n\nfunction assertEveryAuthoredTextSlotHasPurpose(\n errorPrefix: string,\n textSlots: TranslationSlotSpecificationMap | undefined,\n): void {\n if (!textSlots) {\n return;\n }\n for (const [slotKey, slot] of Object.entries(textSlots)) {\n assertTextSlotShape(errorPrefix, slotKey, slot);\n }\n}\n\nfunction assertTextSlotShape(\n errorPrefix: string,\n slotKey: string,\n slot: TranslationSlotSpecification,\n): void {\n if (!slot || typeof slot !== 'object' || Array.isArray(slot)) {\n throw new Error(\n `${errorPrefix} textSlots[\"${slotKey}\"] must be an object with at least a \"purpose\" string.`,\n );\n }\n if (typeof slot.purpose !== 'string' || !slot.purpose.trim()) {\n throw new Error(\n `${errorPrefix} textSlots[\"${slotKey}\"].purpose must be a non-empty trimmed string so translators have a grounded target.`,\n );\n }\n assertOptionalNonEmptyProseSlot(\n errorPrefix,\n `textSlots[\"${slotKey}\"].whenToUse`,\n slot.whenToUse,\n );\n assertOptionalNonEmptyStringList(\n errorPrefix,\n `textSlots[\"${slotKey}\"].notes`,\n slot.notes,\n );\n}\n\nconst ALLOWED_ONBOARDING_TRIGGER_TYPES = Object.values(OnboardingTriggerType) as readonly string[];\n\n/**\n * Per-trigger-type structural validator. Mirrors\n * `OnboardingTriggerSchema` field semantics:\n * - `ROUTE_MATCH` requires `routePattern`\n * - `EVENT` requires `eventName`\n * - `DELAYED` requires positive `delayMs`\n *\n * Optional at the spec layer (matches runtime `.optional()`) — when\n * authored, every nested field is fail-close validated.\n */\nfunction assertOptionalTriggerSpecification(\n errorPrefix: string,\n trigger: OnboardingViewSpecificationConfig['trigger'] | undefined,\n): void {\n if (!trigger) {\n return;\n }\n if (typeof trigger !== 'object' || Array.isArray(trigger)) {\n throw new Error(\n `${errorPrefix} must be an object when authored.`,\n );\n }\n if (typeof trigger.type !== 'string' || !ALLOWED_ONBOARDING_TRIGGER_TYPES.includes(trigger.type)) {\n throw new Error(\n `${errorPrefix}.type must be one of [${ALLOWED_ONBOARDING_TRIGGER_TYPES.map((value) => `\"${value}\"`).join(', ')}] (got \"${String(trigger.type)}\").`,\n );\n }\n\n assertOptionalNonEmptyProseSlot(errorPrefix, 'routePattern', trigger.routePattern);\n assertOptionalNonEmptyProseSlot(errorPrefix, 'eventName', trigger.eventName);\n\n if (trigger.delayMs !== undefined) {\n if (typeof trigger.delayMs !== 'number' || !Number.isFinite(trigger.delayMs) || trigger.delayMs <= 0) {\n throw new Error(\n `${errorPrefix}.delayMs must be a positive finite number (matches runtime z.number().positive(); got ${String(trigger.delayMs)}).`,\n );\n }\n }\n\n if (trigger.type === OnboardingTriggerType.ROUTE_MATCH && !trigger.routePattern) {\n throw new Error(\n `${errorPrefix} type=\"${OnboardingTriggerType.ROUTE_MATCH}\" requires routePattern (matches runtime intent).`,\n );\n }\n if (trigger.type === OnboardingTriggerType.EVENT && !trigger.eventName) {\n throw new Error(\n `${errorPrefix} type=\"${OnboardingTriggerType.EVENT}\" requires eventName (matches runtime intent).`,\n );\n }\n if (trigger.type === OnboardingTriggerType.DELAYED && trigger.delayMs === undefined) {\n throw new Error(\n `${errorPrefix} type=\"${OnboardingTriggerType.DELAYED}\" requires delayMs (matches runtime intent).`,\n );\n }\n\n if (trigger.conditions !== undefined) {\n const conditionsPrefix = `${errorPrefix}.conditions`;\n if (typeof trigger.conditions !== 'object' || Array.isArray(trigger.conditions)) {\n throw new Error(`${conditionsPrefix} must be an object when authored.`);\n }\n assertOptionalNonEmptyStringList(conditionsPrefix, 'roleRefs', trigger.conditions.roleRefs);\n assertRoleRefsResolveToRegistry(conditionsPrefix, 'roleRefs', trigger.conditions.roleRefs);\n assertOptionalBoolean(conditionsPrefix, 'newUsersOnly', trigger.conditions.newUsersOnly);\n assertOptionalBoolean(conditionsPrefix, 'triggerOnce', trigger.conditions.triggerOnce);\n }\n}\n\nfunction assertOptionalCodeHandling(\n errorPrefix: string,\n codeHandling: OnboardingViewSpecificationCodeHandling | undefined,\n): void {\n if (!codeHandling) {\n return;\n }\n if (!codeHandling.definitionOwner) {\n throw new Error(\n `${errorPrefix} codeHandling.definitionOwner is required — every authored OnboardingViewSpecification populates it (engine + Wonder Todos parity audit, Step 7 deferred follow-up #3).`,\n );\n }\n assertOptionalSpecificationOwnerRef(errorPrefix, 'codeHandling.definitionOwner', codeHandling.definitionOwner);\n assertOptionalCodeSymbolRef(errorPrefix, 'codeHandling.triggerTypeSymbol', codeHandling.triggerTypeSymbol);\n assertOptionalCodeSymbolRef(errorPrefix, 'codeHandling.elementTypeSymbol', codeHandling.elementTypeSymbol);\n if (codeHandling.declarationSymbols !== undefined) {\n if (!Array.isArray(codeHandling.declarationSymbols)) {\n throw new Error(\n `${errorPrefix} codeHandling.declarationSymbols must be an array when authored.`,\n );\n }\n for (const [index, symbolRef] of codeHandling.declarationSymbols.entries()) {\n assertOptionalCodeSymbolRef(\n errorPrefix,\n `codeHandling.declarationSymbols[${index}]`,\n symbolRef,\n );\n }\n }\n assertOptionalNonEmptyStringList(errorPrefix, 'codeHandling.notes', codeHandling.notes);\n}\n\nconst ALLOWED_OWNER_KINDS = Object.values(SpecificationOwnerKind) as readonly string[];\n\n/**\n * Structural validator for `SpecificationOwnerRef` references\n * authored on `codeHandling.definitionOwner`. Without this guard\n * an author can pass `definitionOwner: 'string'` or\n * `{ ownerId: '' }` and the validator silently passes, which the\n * companion's `formatOwnerRef` later turns into a confusing\n * \"Owner: \\`undefined\\`\" line. Tracked: F-5 in\n * `non-view-specification-coverage-step4-phase4-5-audit.md`.\n */\nfunction assertOptionalSpecificationOwnerRef(\n errorPrefix: string,\n fullPath: string,\n ownerRef: SpecificationOwnerRef | undefined,\n): void {\n if (!ownerRef) {\n return;\n }\n if (typeof ownerRef !== 'object' || Array.isArray(ownerRef)) {\n throw new Error(`${errorPrefix} ${fullPath} must be an object when authored.`);\n }\n if (typeof ownerRef.ownerId !== 'string' || !ownerRef.ownerId.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.ownerId must be a non-empty trimmed string.`,\n );\n }\n if (typeof ownerRef.ownerKind !== 'string' || !ALLOWED_OWNER_KINDS.includes(ownerRef.ownerKind)) {\n throw new Error(\n `${errorPrefix} ${fullPath}.ownerKind must be one of [${ALLOWED_OWNER_KINDS.map((value) => `\"${value}\"`).join(', ')}] (got \"${String(ownerRef.ownerKind)}\").`,\n );\n }\n assertOptionalNonEmptyStringList(errorPrefix, `${fullPath}.notes`, ownerRef.notes);\n}\n\nfunction assertOptionalCodeSymbolRef(\n errorPrefix: string,\n fullPath: string,\n symbolRef: PublicCodeSymbolRef | undefined,\n): void {\n if (!symbolRef) {\n return;\n }\n if (typeof symbolRef !== 'object') {\n throw new Error(`${errorPrefix} ${fullPath} must be an object when authored.`);\n }\n if (typeof symbolRef.packageName !== 'string' || !symbolRef.packageName.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.packageName must be a non-empty trimmed string.`,\n );\n }\n if (typeof symbolRef.exportName !== 'string' || !symbolRef.exportName.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.exportName must be a non-empty trimmed string.`,\n );\n }\n if (symbolRef.importPath !== undefined) {\n if (typeof symbolRef.importPath !== 'string' || !symbolRef.importPath.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.importPath must be a non-empty trimmed string when authored.`,\n );\n }\n }\n}\n\n"]}
1
+ {"version":3,"file":"onboarding-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/onboarding-view-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EACL,2CAA2C,GAC5C,MAAM,2CAA2C,CAAC;AA0NnD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,8CAA8C,CAC5D,GAAW;IAEX,OAAO,OAAO,GAAG,EAAE,CAAC;AACtB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,2CAA2C,CACzD,YAAoB,EACpB,GAAW;IAEX,OAAO,aAAa,YAAY,IAAI,GAAG,EAAE,CAAC;AAC5C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oDAAoD,CAClE,cAA+B,EAC/B,YAAoD;IAEpD,MAAM,aAAa,GAAsC;QACvD,GAAG,YAAY,EAAE;QACjB,GAAG,EAAE,cAAc,CAAC,GAAG;KACxB,CAAC;IAEF,mCAAmC,CACjC,8CAA8C,CAAC,aAAa,CAAC,GAAG,CAAC,EACjE,aAAa,CACd,CAAC;IAEF,OAAO,aAAa,CAAC;AACvB,CAAC;AA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,CAAC;IACD,IAAI,SAAS,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QACvC,IAAI,OAAO,SAAS,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;YAC7E,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,IAAI,QAAQ,+DAA+D,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IACD;;;;;;;;OAQG;IACH,IAAI,SAAS,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QACzC,IAAI,OAAO,SAAS,CAAC,YAAY,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC;YACjF,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,IAAI,QAAQ,iEAAiE,CAC5F,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import {\n GUIDANCE_ELEMENT_FIELDS,\n OnboardingElementType,\n OnboardingTriggerType,\n} from '@wildo-ai/saas-models';\n\nimport { assertRoleRefsResolveToRegistry } from './cross-registry-assertions';\nimport { SpecificationOwnerKind } from './definition-specification.schemas';\nimport type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport {\n assertOptionalRequiredFeaturesSpecification,\n} from './required-features-specification.schemas';\nimport type { RequiredFeaturesSpecification } from './required-features-specification.schemas';\nimport type {\n TranslationSlotSpecification,\n TranslationSlotSpecificationMap,\n} from './translation-slot-specification.schemas';\n\ninterface PublicCodeSymbolRef {\n packageName: string;\n exportName: string;\n /**\n * PUBLIC SUBPATH only — a subpath the owning package declares in\n * `package.json#exports`, so `${packageName}/${importPath}` resolves. For a module\n * that has no public door, author `filePathHint` instead (issue #150).\n */\n importPath?: string;\n /**\n * MODULE LOCATION inside the owning package — a navigation aid, never concatenated\n * onto `packageName`. See `CodeSymbolRef` in `@wildo-ai/zod-decorators` for the\n * canonical contract this narrows.\n */\n filePathHint?: string;\n}\n\n/**\n * Per-element semantic overlay for one onboarding element (modal, banner, …).\n *\n * `elementType` mirrors the runtime `OnboardingElement.type` so\n * companion renderers can label / group elements by kind without\n * re-deriving the union from the runtime payload.\n */\nexport interface OnboardingViewElementSpecification {\n /** Stable runtime element ref local to the owning onboarding view. */\n ref: string;\n /** Runtime element kind — used for renderer grouping / labelling. */\n elementType: OnboardingElementType;\n /** Why this element exists in the onboarding flow. */\n purpose: string;\n /** Meaning of the per-element translatable slots (label, description, …). */\n textSlots?: TranslationSlotSpecificationMap;\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\n/**\n * Import-oriented coding/transposition metadata for an onboarding view.\n *\n * `triggerTypeSymbol` / `elementTypeSymbol` use the `Symbol` suffix\n * (not `Enum`) because the underlying runtime declarations\n * (`OnboardingTriggerType`, `OnboardingElementType` in\n * `engine/saas-models/src/config/frontend/onboarding.shared.schemas.ts`)\n * are `const` objects rather than TS `enum`s — the field name\n * documents that distinction faithfully.\n */\nexport interface OnboardingViewSpecificationCodeHandling {\n /**\n * Module/application owner that authored the onboarding view.\n *\n * Required because the engine + Wonder Todos parity audit\n * (Step 7 deferred follow-up #3) confirmed every authored\n * `OnboardingViewSpecification` populates this slot — onboarding\n * views are always wired through a separate definition collection\n * (no inline-at-resource declarations exist), so the owner is never\n * meaningfully absent.\n */\n definitionOwner: SpecificationOwnerRef;\n /** Public declarations where the onboarding view is wired into runtime registries. */\n declarationSymbols?: PublicCodeSymbolRef[];\n /** Public symbol exposing the runtime trigger type vocabulary. */\n triggerTypeSymbol?: PublicCodeSymbolRef;\n /** Public symbol exposing the runtime element type vocabulary. */\n elementTypeSymbol?: PublicCodeSymbolRef;\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\n/**\n * Authored semantic contract for one onboarding view.\n *\n * Bi-scoped at the runtime layer (an onboarding view is either\n * application-scope or resource-scope, see `OnboardingViewDefinition`)\n * so the spec layer ships two factories\n * (`applicationOnboardingViewSpecificationFromDefinition`,\n * `resourceOnboardingViewSpecificationFromDefinition`) that both\n * produce this same config shape — `scope` and `resourceType` are\n * NOT authored here; they're propagated by the factory from the\n * runtime `viewDefinition` arg, mirroring the chart spec precedent\n * (`chart-view-specification.schemas.ts:94-107`). This keeps a\n * single source of truth for scope (the runtime).\n *\n * Onboarding's audience axes are intentionally split between\n * flow-level `requiredFeatures` and per-trigger\n * `trigger.conditions` (roles, newUsersOnly, triggerOnce): the\n * runtime models them under different parents\n * (`OnboardingViewDefinition.requiredFeatures` vs\n * `OnboardingTrigger.conditions`), and the spec mirrors that\n * asymmetry rather than collapsing them into a unified `audience`\n * block (Pattern A discipline). Guidance flows DO have a unified\n * audience block at runtime — see\n * `guidance-flow-specification.schemas.ts`.\n */\nexport interface OnboardingViewSpecificationConfig {\n /** Stable runtime view ref (matches `OnboardingViewDefinition.ref`). */\n ref: string;\n /** Why this onboarding view exists from a product/workflow perspective. */\n purpose: string;\n /** What \"successful\" completion of this onboarding looks like. */\n successCriteria: string;\n /** Interaction role this onboarding plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this onboarding view is the right destination. */\n useWhen?: string;\n /** Situations where another surface (e.g. guidance flow) is preferred. */\n avoidWhen?: string;\n /**\n * Meaning of the view-level translatable slots.\n *\n * **Open vocabulary**: unlike the per-element `textSlots` (which\n * fail-close against `GUIDANCE_ELEMENT_FIELDS[elementType]`), the\n * flow-level slots accept any author-chosen key. Rationale: there\n * is no runtime label generator for flow-level slots to drift\n * against — they exist purely to ground companion prompts. The\n * validator only requires `'title'` and `'description'` to be\n * declared so generated overlay labels stay semantically grounded.\n * Tracked: F-9 in\n * `non-view-specification-coverage-step4-phase4-5-audit.md`.\n */\n textSlots?: TranslationSlotSpecificationMap;\n /** Per-element semantic overlay (one entry per runtime element). */\n elements: OnboardingViewElementSpecification[];\n /** Mirrors runtime `OnboardingViewDefinition.requiredFeatures` (flow-level gating). */\n requiredFeatures?: RequiredFeaturesSpecification;\n /**\n * Mirrors the full runtime `OnboardingTrigger`\n * (`OnboardingTriggerSchema` in\n * `engine/saas-models/src/config/frontend/onboarding.shared.schemas.ts`)\n * including the per-trigger-type scaffolding fields. Authored at\n * the spec layer because the trigger TYPE (`FIRST_VISIT` vs\n * `EVENT` vs `ROUTE_MATCH` vs `DELAYED` vs `MANUAL`) is the\n * dominant audience axis — losing it strands companion prompts\n * with no answer to \"WHEN does this onboarding fire?\".\n *\n * Optional at the spec layer (mirrors runtime `.optional()`):\n * `OnboardingViewDefinitionSchema.trigger` is `OnboardingTriggerSchema.optional()`,\n * so when an onboarding view omits the `trigger` block entirely the runtime\n * leaves `trigger` as `undefined` — there is NO `FIRST_VISIT` default applied\n * at this layer. The `OnboardingTriggerType.FIRST_VISIT` default declared on\n * `OnboardingTriggerSchema.type` only kicks in when an author writes a\n * `trigger: { ... }` object that omits the inner `type` field; once the outer\n * `trigger` object itself is missing, no parse occurs and no default is\n * synthesised. Companion prompts that need a \"WHEN does this fire?\" answer\n * for trigger-less onboarding views must therefore document the absence\n * explicitly rather than implying a default trigger type.\n *\n * Spec-side renames vs the runtime:\n * - `conditions.roleRefs` ← runtime `requiredRoles`. The `Refs`\n * suffix is the spec convention for string identifiers that\n * point to typed references in another spec family (mirrors\n * `featureRefs`, `excludeIfCompletedFlowRefs`).\n * - All other fields (`type`, `routePattern`, `eventName`,\n * `delayMs`, `conditions.newUsersOnly`, `conditions.triggerOnce`)\n * carry through verbatim.\n *\n * Per-type field semantics (validator enforces these):\n * - `type=ROUTE_MATCH` requires `routePattern`.\n * - `type=EVENT` requires `eventName`.\n * - `type=DELAYED` requires `delayMs > 0`.\n * - `routePattern` / `eventName` / `delayMs` are otherwise optional\n * (the runtime ignores them for non-matching trigger types).\n */\n trigger?: {\n type: OnboardingTriggerType;\n routePattern?: string;\n eventName?: string;\n delayMs?: number;\n conditions?: {\n roleRefs?: string[];\n newUsersOnly?: boolean;\n triggerOnce?: boolean;\n };\n };\n /** Additional domain constraints that matter beyond raw runtime structure. */\n businessConstraints?: string[];\n /** Author-facing notes that don't fit a structured field. */\n notes?: string[];\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: OnboardingViewSpecificationCodeHandling;\n}\n\n/**\n * Resource-scope variant — same shape as\n * `OnboardingViewSpecificationConfig` plus the owning resource type.\n */\nexport interface ResourceOnboardingViewSpecificationConfig\n extends OnboardingViewSpecificationConfig {\n /** Stable resource type that owns this onboarding view. */\n resourceType: string;\n}\n\n/**\n * Keyed by either `buildApplicationOnboardingViewSpecificationKey(ref)`\n * (`app.<ref>`) or\n * `buildResourceOnboardingViewSpecificationKey(resourceType, ref)`\n * (`resources.<resourceType>.<ref>`). The same map carries both\n * scopes — keys are globally unique because the namespaces are\n * disjoint (`app.*` vs `resources.*`).\n */\nexport type OnboardingViewSpecification = Record<\n string,\n OnboardingViewSpecificationConfig | ResourceOnboardingViewSpecificationConfig\n>;\n\n/** Author-supplied draft (factory injects `ref`). */\nexport type OnboardingViewSpecificationDraft = Omit<\n OnboardingViewSpecificationConfig,\n 'ref'\n>;\n\n/**\n * Application-scope key builder. Delegates to the shared\n * `buildApplicationViewTranslationRef` to keep `app.<ref>` as one\n * source of truth across all view families (see Phase 3 of the\n * step-4-onboarding plan and the H4 plan-review finding).\n *\n * Implementation note: we re-implement the 1-line template literal\n * here rather than depending on `@wildo-ai/saas-frontend-lib` so the\n * spec layer doesn't pull in the React-bearing frontend package.\n * The shared builder lives in `views-frontend.schemas.ts`; this is\n * an intentional duplication of the template (`app.${ref}`) only —\n * if the namespace ever changes, both sites flip together. Future\n * refactor: extract the template to a shared `@wildo-ai/saas-models`\n * constant once the namespace shape is genuinely shared by spec +\n * runtime + companion.\n */\nexport function buildApplicationOnboardingViewSpecificationKey(\n ref: string,\n): string {\n return `app.${ref}`;\n}\n\n/**\n * Resource-scope key builder. Per the step-4 plan, no shared\n * resource-scope builder is extracted: each spec family ships its\n * own family-named version so error messages name the family.\n */\nexport function buildResourceOnboardingViewSpecificationKey(\n resourceType: string,\n ref: string,\n): string {\n return `resources.${resourceType}.${ref}`;\n}\n\n/**\n * Factory for application-scope onboarding views. Mirrors the\n * chart spec precedent: scope is propagated from the\n * `viewDefinition` argument, not authored in the draft.\n */\nexport function applicationOnboardingViewSpecificationFromDefinition(\n viewDefinition: { ref: string },\n draftFactory: () => OnboardingViewSpecificationDraft,\n): OnboardingViewSpecificationConfig {\n const specification: OnboardingViewSpecificationConfig = {\n ...draftFactory(),\n ref: viewDefinition.ref,\n };\n\n validateOnboardingViewSpecification(\n buildApplicationOnboardingViewSpecificationKey(specification.ref),\n specification,\n );\n\n return specification;\n}\n\n/**\n * Factory for resource-scope onboarding views. Carries\n * `resourceType` through to the produced config.\n */\nexport function resourceOnboardingViewSpecificationFromDefinition(\n viewDefinition: { ref: string; resourceType: string },\n draftFactory: () => OnboardingViewSpecificationDraft,\n): ResourceOnboardingViewSpecificationConfig {\n const specification: ResourceOnboardingViewSpecificationConfig = {\n ...draftFactory(),\n ref: viewDefinition.ref,\n resourceType: viewDefinition.resourceType,\n };\n\n validateOnboardingViewSpecification(\n buildResourceOnboardingViewSpecificationKey(\n viewDefinition.resourceType,\n viewDefinition.ref,\n ),\n specification,\n );\n\n return specification;\n}\n\n/**\n * Build the keyed `OnboardingViewSpecification` map from a list of\n * specs (any mix of application + resource scope). Fails closed on\n * duplicate keys — same convention as every other view-family\n * `build*SpecificationMap` helper in `_core`.\n */\nexport function buildOnboardingViewSpecificationMap(\n ...specifications: Array<\n OnboardingViewSpecificationConfig | ResourceOnboardingViewSpecificationConfig\n >\n): OnboardingViewSpecification {\n const result: OnboardingViewSpecification = {};\n\n for (const specification of specifications) {\n const key = isResourceOnboardingViewSpecification(specification)\n ? buildResourceOnboardingViewSpecificationKey(\n specification.resourceType,\n specification.ref,\n )\n : buildApplicationOnboardingViewSpecificationKey(specification.ref);\n\n if (result[key]) {\n throw new Error(\n `buildOnboardingViewSpecificationMap(): duplicate onboarding specification key \"${key}\".`,\n );\n }\n result[key] = specification;\n }\n\n return result;\n}\n\nfunction isResourceOnboardingViewSpecification(\n specification:\n | OnboardingViewSpecificationConfig\n | ResourceOnboardingViewSpecificationConfig,\n): specification is ResourceOnboardingViewSpecificationConfig {\n return 'resourceType' in specification\n && typeof (specification as ResourceOnboardingViewSpecificationConfig).resourceType === 'string';\n}\n\nconst ONBOARDING_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'] as const;\n\n/**\n * Phase 4 fail-closed validator. Mirrors the chart / system-email /\n * resource-spec precedents (`_core/system-email-template-specification.schemas.ts`\n * `validateSystemEmailTemplateSpecification` is the closest sibling)\n * with onboarding-specific cross-links:\n *\n * - **Per-element textSlot key cross-link**: every authored\n * `elements[i].textSlots[key]` must be a member of\n * `GUIDANCE_ELEMENT_FIELDS[elementType]` so spec ↔ runtime\n * labelling stays in lockstep. Mismatches are the most common\n * class of authoring bug for ref-based label generation\n * (the dev-companion guidance-keys collector at\n * `i18n-labelling/utils/guidance-keys.utils.ts` walks the runtime\n * side; the spec-side fail-closed catches drift at module load).\n *\n * - **Structural `requiredFeatures` axes**: validates `featureRefs`\n * shape, `mode` literal membership, and `limitChecks` element\n * shape. Pattern A discipline — silently skipping these checks\n * would leak a runtime failure that the spec layer should catch.\n *\n * Helpers below are intentionally local to this file (not exported,\n * not shared with `guidance-flow-specification.schemas.ts`) to\n * mirror the existing `_core/` precedent: every view-family\n * validator owns its own copy of the small assertion helpers\n * (`assertOptionalNonEmptyStringList`, `assertOptionalNonEmptyProseSlot`,\n * etc.) so each file stays grep-able as a self-contained unit. A\n * future workstream can lift them to a shared\n * `_core/internal-validators.ts` once a third spec family wants\n * the same primitives.\n */\nfunction validateOnboardingViewSpecification(\n specificationKey: string,\n specification: OnboardingViewSpecificationConfig,\n): void {\n const errorPrefix = `onboardingViewSpecificationFromDefinition(): onboarding \"${specificationKey}\"`;\n\n for (const textSlotKey of ONBOARDING_VIEW_REQUIRED_TEXT_SLOTS) {\n if (!specification.textSlots || !(textSlotKey in specification.textSlots)) {\n throw new Error(\n `${errorPrefix} must document text slot \"${textSlotKey}\" so generated overlay labels stay semantically grounded.`,\n );\n }\n }\n assertEveryAuthoredTextSlotHasPurpose(errorPrefix, specification.textSlots);\n\n assertNonEmptyTrimmedString(errorPrefix, 'purpose', specification.purpose);\n assertNonEmptyTrimmedString(\n errorPrefix,\n 'successCriteria',\n specification.successCriteria,\n );\n assertNonEmptyTrimmedString(errorPrefix, 'uiRole', specification.uiRole);\n assertOptionalNonEmptyProseSlot(errorPrefix, 'useWhen', specification.useWhen);\n assertOptionalNonEmptyProseSlot(errorPrefix, 'avoidWhen', specification.avoidWhen);\n\n if (specification.elements.length === 0) {\n throw new Error(\n `${errorPrefix} must declare at least one element so the per-element companion overlay has authored content to render.`,\n );\n }\n\n const seenElementRefs = new Set<string>();\n for (const [index, element] of specification.elements.entries()) {\n const elementErrorPrefix = `${errorPrefix} elements[${index}]`;\n assertOnboardingElementSpecification(elementErrorPrefix, element);\n\n if (seenElementRefs.has(element.ref)) {\n throw new Error(\n `${errorPrefix} declares element \"${element.ref}\" more than once — element refs must be unique within the flow so per-element companion blocks stay addressable.`,\n );\n }\n seenElementRefs.add(element.ref);\n }\n\n assertOptionalTriggerSpecification(\n `${errorPrefix} trigger`,\n specification.trigger,\n );\n\n assertOptionalRequiredFeaturesSpecification(\n `${errorPrefix} requiredFeatures`,\n specification.requiredFeatures,\n );\n\n assertOptionalNonEmptyStringList(\n errorPrefix,\n 'businessConstraints',\n specification.businessConstraints,\n );\n assertOptionalNonEmptyStringList(errorPrefix, 'notes', specification.notes);\n\n assertOptionalCodeHandling(errorPrefix, specification.codeHandling);\n}\n\n// ---------------------------------------------------------------------------\n// Per-element validator\n// ---------------------------------------------------------------------------\n\n/**\n * Element-level validator covering ref + purpose + textSlot\n * cross-link to runtime `GUIDANCE_ELEMENT_FIELDS`. Used for both\n * onboarding views and (via duplication) guidance flows because\n * the underlying runtime element shape is shared\n * (`OnboardingElementSchema`).\n */\nfunction assertOnboardingElementSpecification(\n errorPrefix: string,\n element: OnboardingViewElementSpecification,\n): void {\n if (typeof element.ref !== 'string' || !element.ref.trim()) {\n throw new Error(\n `${errorPrefix}.ref must be a non-empty trimmed string so per-element companion blocks stay addressable.`,\n );\n }\n\n const allowedSlotKeys = GUIDANCE_ELEMENT_FIELDS[element.elementType];\n if (!Array.isArray(allowedSlotKeys)) {\n throw new Error(\n `${errorPrefix}.elementType \"${String(element.elementType)}\" is not a member of OnboardingElementType — authored value must come from the runtime enum so spec ↔ runtime labelling stays in lockstep.`,\n );\n }\n\n assertNonEmptyTrimmedString(errorPrefix, 'purpose', element.purpose);\n\n if (element.textSlots) {\n for (const slotKey of Object.keys(element.textSlots)) {\n if (!allowedSlotKeys.includes(slotKey)) {\n throw new Error(\n `${errorPrefix} (\"${element.ref}\", elementType=${element.elementType}) declares text slot \"${slotKey}\" but GUIDANCE_ELEMENT_FIELDS[${element.elementType}] only lists [${allowedSlotKeys.map((key) => `\"${key}\"`).join(', ')}]. Authoring slots that the runtime label generator does not know about silently strands them at companion time.`,\n );\n }\n }\n assertEveryAuthoredTextSlotHasPurpose(errorPrefix, element.textSlots);\n }\n\n assertOptionalNonEmptyStringList(errorPrefix, 'notes', element.notes);\n}\n\n// ---------------------------------------------------------------------------\n// Local assertion helpers (duplicated per `_core/` convention; see top-of-\n// validator JSDoc for rationale).\n// ---------------------------------------------------------------------------\n\nfunction assertNonEmptyTrimmedString(\n errorPrefix: string,\n fullPath: string,\n value: string,\n): void {\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath} must be a non-empty trimmed string so companion prompts have a grounded value.`,\n );\n }\n}\n\nfunction assertOptionalNonEmptyProseSlot(\n errorPrefix: string,\n fullPath: string,\n value: string | undefined,\n): void {\n if (value === undefined) {\n return;\n }\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath} must be a non-empty trimmed prose slot when authored (omit the field entirely instead of declaring an empty value).`,\n );\n }\n}\n\nfunction assertOptionalNonEmptyStringList(\n errorPrefix: string,\n fullPath: string,\n values: string[] | undefined,\n): void {\n if (!values) {\n return;\n }\n if (!Array.isArray(values)) {\n throw new Error(\n `${errorPrefix} ${fullPath} must be an array when authored.`,\n );\n }\n for (const [index, value] of values.entries()) {\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}[${index}] must be a non-empty trimmed string.`,\n );\n }\n }\n assertNoDuplicateStringRefs(errorPrefix, fullPath, values);\n}\n\n/**\n * Spec-side fail-closed deduplication for ref lists. The runtime is\n * tolerant of duplicate refs (set-like membership semantics), but\n * the spec lives by \"fail closed at module load\" so a duplicate\n * almost always signals a copy-paste authoring bug. Tracked: F-10\n * in `non-view-specification-coverage-step4-phase4-5-audit.md`.\n */\nfunction assertNoDuplicateStringRefs(\n errorPrefix: string,\n fullPath: string,\n values: string[],\n): void {\n const seen = new Set<string>();\n for (const [index, value] of values.entries()) {\n if (seen.has(value)) {\n throw new Error(\n `${errorPrefix} ${fullPath}[${index}] is a duplicate of an earlier entry (\"${value}\") — ref lists must be unique so spec authoring stays unambiguous.`,\n );\n }\n seen.add(value);\n }\n}\n\nfunction assertOptionalBoolean(\n errorPrefix: string,\n fullPath: string,\n value: boolean | undefined,\n): void {\n if (value === undefined) {\n return;\n }\n if (typeof value !== 'boolean') {\n throw new Error(\n `${errorPrefix} ${fullPath} must be a boolean when authored.`,\n );\n }\n}\n\nfunction assertEveryAuthoredTextSlotHasPurpose(\n errorPrefix: string,\n textSlots: TranslationSlotSpecificationMap | undefined,\n): void {\n if (!textSlots) {\n return;\n }\n for (const [slotKey, slot] of Object.entries(textSlots)) {\n assertTextSlotShape(errorPrefix, slotKey, slot);\n }\n}\n\nfunction assertTextSlotShape(\n errorPrefix: string,\n slotKey: string,\n slot: TranslationSlotSpecification,\n): void {\n if (!slot || typeof slot !== 'object' || Array.isArray(slot)) {\n throw new Error(\n `${errorPrefix} textSlots[\"${slotKey}\"] must be an object with at least a \"purpose\" string.`,\n );\n }\n if (typeof slot.purpose !== 'string' || !slot.purpose.trim()) {\n throw new Error(\n `${errorPrefix} textSlots[\"${slotKey}\"].purpose must be a non-empty trimmed string so translators have a grounded target.`,\n );\n }\n assertOptionalNonEmptyProseSlot(\n errorPrefix,\n `textSlots[\"${slotKey}\"].whenToUse`,\n slot.whenToUse,\n );\n assertOptionalNonEmptyStringList(\n errorPrefix,\n `textSlots[\"${slotKey}\"].notes`,\n slot.notes,\n );\n}\n\nconst ALLOWED_ONBOARDING_TRIGGER_TYPES = Object.values(OnboardingTriggerType) as readonly string[];\n\n/**\n * Per-trigger-type structural validator. Mirrors\n * `OnboardingTriggerSchema` field semantics:\n * - `ROUTE_MATCH` requires `routePattern`\n * - `EVENT` requires `eventName`\n * - `DELAYED` requires positive `delayMs`\n *\n * Optional at the spec layer (matches runtime `.optional()`) — when\n * authored, every nested field is fail-close validated.\n */\nfunction assertOptionalTriggerSpecification(\n errorPrefix: string,\n trigger: OnboardingViewSpecificationConfig['trigger'] | undefined,\n): void {\n if (!trigger) {\n return;\n }\n if (typeof trigger !== 'object' || Array.isArray(trigger)) {\n throw new Error(\n `${errorPrefix} must be an object when authored.`,\n );\n }\n if (typeof trigger.type !== 'string' || !ALLOWED_ONBOARDING_TRIGGER_TYPES.includes(trigger.type)) {\n throw new Error(\n `${errorPrefix}.type must be one of [${ALLOWED_ONBOARDING_TRIGGER_TYPES.map((value) => `\"${value}\"`).join(', ')}] (got \"${String(trigger.type)}\").`,\n );\n }\n\n assertOptionalNonEmptyProseSlot(errorPrefix, 'routePattern', trigger.routePattern);\n assertOptionalNonEmptyProseSlot(errorPrefix, 'eventName', trigger.eventName);\n\n if (trigger.delayMs !== undefined) {\n if (typeof trigger.delayMs !== 'number' || !Number.isFinite(trigger.delayMs) || trigger.delayMs <= 0) {\n throw new Error(\n `${errorPrefix}.delayMs must be a positive finite number (matches runtime z.number().positive(); got ${String(trigger.delayMs)}).`,\n );\n }\n }\n\n if (trigger.type === OnboardingTriggerType.ROUTE_MATCH && !trigger.routePattern) {\n throw new Error(\n `${errorPrefix} type=\"${OnboardingTriggerType.ROUTE_MATCH}\" requires routePattern (matches runtime intent).`,\n );\n }\n if (trigger.type === OnboardingTriggerType.EVENT && !trigger.eventName) {\n throw new Error(\n `${errorPrefix} type=\"${OnboardingTriggerType.EVENT}\" requires eventName (matches runtime intent).`,\n );\n }\n if (trigger.type === OnboardingTriggerType.DELAYED && trigger.delayMs === undefined) {\n throw new Error(\n `${errorPrefix} type=\"${OnboardingTriggerType.DELAYED}\" requires delayMs (matches runtime intent).`,\n );\n }\n\n if (trigger.conditions !== undefined) {\n const conditionsPrefix = `${errorPrefix}.conditions`;\n if (typeof trigger.conditions !== 'object' || Array.isArray(trigger.conditions)) {\n throw new Error(`${conditionsPrefix} must be an object when authored.`);\n }\n assertOptionalNonEmptyStringList(conditionsPrefix, 'roleRefs', trigger.conditions.roleRefs);\n assertRoleRefsResolveToRegistry(conditionsPrefix, 'roleRefs', trigger.conditions.roleRefs);\n assertOptionalBoolean(conditionsPrefix, 'newUsersOnly', trigger.conditions.newUsersOnly);\n assertOptionalBoolean(conditionsPrefix, 'triggerOnce', trigger.conditions.triggerOnce);\n }\n}\n\nfunction assertOptionalCodeHandling(\n errorPrefix: string,\n codeHandling: OnboardingViewSpecificationCodeHandling | undefined,\n): void {\n if (!codeHandling) {\n return;\n }\n if (!codeHandling.definitionOwner) {\n throw new Error(\n `${errorPrefix} codeHandling.definitionOwner is required — every authored OnboardingViewSpecification populates it (engine + Wonder Todos parity audit, Step 7 deferred follow-up #3).`,\n );\n }\n assertOptionalSpecificationOwnerRef(errorPrefix, 'codeHandling.definitionOwner', codeHandling.definitionOwner);\n assertOptionalCodeSymbolRef(errorPrefix, 'codeHandling.triggerTypeSymbol', codeHandling.triggerTypeSymbol);\n assertOptionalCodeSymbolRef(errorPrefix, 'codeHandling.elementTypeSymbol', codeHandling.elementTypeSymbol);\n if (codeHandling.declarationSymbols !== undefined) {\n if (!Array.isArray(codeHandling.declarationSymbols)) {\n throw new Error(\n `${errorPrefix} codeHandling.declarationSymbols must be an array when authored.`,\n );\n }\n for (const [index, symbolRef] of codeHandling.declarationSymbols.entries()) {\n assertOptionalCodeSymbolRef(\n errorPrefix,\n `codeHandling.declarationSymbols[${index}]`,\n symbolRef,\n );\n }\n }\n assertOptionalNonEmptyStringList(errorPrefix, 'codeHandling.notes', codeHandling.notes);\n}\n\nconst ALLOWED_OWNER_KINDS = Object.values(SpecificationOwnerKind) as readonly string[];\n\n/**\n * Structural validator for `SpecificationOwnerRef` references\n * authored on `codeHandling.definitionOwner`. Without this guard\n * an author can pass `definitionOwner: 'string'` or\n * `{ ownerId: '' }` and the validator silently passes, which the\n * companion's `formatOwnerRef` later turns into a confusing\n * \"Owner: \\`undefined\\`\" line. Tracked: F-5 in\n * `non-view-specification-coverage-step4-phase4-5-audit.md`.\n */\nfunction assertOptionalSpecificationOwnerRef(\n errorPrefix: string,\n fullPath: string,\n ownerRef: SpecificationOwnerRef | undefined,\n): void {\n if (!ownerRef) {\n return;\n }\n if (typeof ownerRef !== 'object' || Array.isArray(ownerRef)) {\n throw new Error(`${errorPrefix} ${fullPath} must be an object when authored.`);\n }\n if (typeof ownerRef.ownerId !== 'string' || !ownerRef.ownerId.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.ownerId must be a non-empty trimmed string.`,\n );\n }\n if (typeof ownerRef.ownerKind !== 'string' || !ALLOWED_OWNER_KINDS.includes(ownerRef.ownerKind)) {\n throw new Error(\n `${errorPrefix} ${fullPath}.ownerKind must be one of [${ALLOWED_OWNER_KINDS.map((value) => `\"${value}\"`).join(', ')}] (got \"${String(ownerRef.ownerKind)}\").`,\n );\n }\n assertOptionalNonEmptyStringList(errorPrefix, `${fullPath}.notes`, ownerRef.notes);\n}\n\nfunction assertOptionalCodeSymbolRef(\n errorPrefix: string,\n fullPath: string,\n symbolRef: PublicCodeSymbolRef | undefined,\n): void {\n if (!symbolRef) {\n return;\n }\n if (typeof symbolRef !== 'object') {\n throw new Error(`${errorPrefix} ${fullPath} must be an object when authored.`);\n }\n if (typeof symbolRef.packageName !== 'string' || !symbolRef.packageName.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.packageName must be a non-empty trimmed string.`,\n );\n }\n if (typeof symbolRef.exportName !== 'string' || !symbolRef.exportName.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.exportName must be a non-empty trimmed string.`,\n );\n }\n if (symbolRef.importPath !== undefined) {\n if (typeof symbolRef.importPath !== 'string' || !symbolRef.importPath.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.importPath must be a non-empty trimmed string when authored.`,\n );\n }\n }\n /*\n * `filePathHint` is validated to the same shape as `importPath` and NOT merged with it:\n * the two carry different senses (a public import specifier vs a module location) and\n * issue #150 records what happens when they are conflated — a source path authored in\n * `importPath` is rendered to a coding agent as the address to import from, and cannot\n * resolve. Shape-only here, deliberately: whether a subpath is genuinely declared in the\n * owning package's `package.json#exports` is not answerable from inside this validator,\n * so the distinction is carried by the contract and the renderer rather than guessed at.\n */\n if (symbolRef.filePathHint !== undefined) {\n if (typeof symbolRef.filePathHint !== 'string' || !symbolRef.filePathHint.trim()) {\n throw new Error(\n `${errorPrefix} ${fullPath}.filePathHint must be a non-empty trimmed string when authored.`,\n );\n }\n }\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"placement-plan-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/placement-plan/placement-plan-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAIL,oBAAoB,EAKpB,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAKlC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAc5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,oEAAoE;AACpE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAwB1E"}
1
+ {"version":3,"file":"placement-plan-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/placement-plan/placement-plan-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAIL,oBAAoB,EAKpB,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAKlC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAc5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,oEAAoE;AACpE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgBxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAwB1E"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { applyFamilyRefPrefix } from '../utils/family-ref-stamping.js';
2
3
  import { PLACEMENT_DECISION_REF_PREFIX, PlacementDecisionOrigin, PlacementAddressSchema, PlacementDisposition, PlacementGroupSchema, PlacementPlanSchema, PlacementPlanVersion, PlacementSubjectSchema, } from './placement-plan.schemas.js';
3
4
  const SlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
4
5
  const NonEmptyStringSchema = z.string().trim().min(1);
@@ -38,12 +39,17 @@ export const PlacementPlanGenerationSchema = z.strictObject({
38
39
  groups: z.array(PlacementGroupSchema),
39
40
  decisions: z.array(PlacementDecisionGenerationSchema).min(1),
40
41
  }).superRefine((generated, context) => {
42
+ // Keyed on the STAMPED form, not on the authored slug, because `applyFamilyRefPrefix` is deliberately
43
+ // not injective: `billing` and `placement-billing` are two distinct slugs that both become
44
+ // `placement-billing`. Checking the slug would let that pair through and produce two decisions sharing
45
+ // one ref, which makes `priorDecisionRef` -- the revision lineage -- point at either of them.
41
46
  const seen = new Set();
42
47
  generated.decisions.forEach((decision, index) => {
43
- if (seen.has(decision.slug)) {
44
- context.addIssue({ code: 'custom', message: `duplicate placement decision slug "${decision.slug}"`, path: ['decisions', index, 'slug'] });
48
+ const decisionRef = applyFamilyRefPrefix(decision.slug, PLACEMENT_DECISION_REF_PREFIX);
49
+ if (seen.has(decisionRef)) {
50
+ context.addIssue({ code: 'custom', message: `duplicate placement decision slug "${decision.slug}" (normalizes to "${decisionRef}")`, path: ['decisions', index, 'slug'] });
45
51
  }
46
- seen.add(decision.slug);
52
+ seen.add(decisionRef);
47
53
  });
48
54
  });
49
55
  /**
@@ -61,7 +67,7 @@ export function parsePlacementPlanGeneration(input) {
61
67
  groups: generated.groups,
62
68
  decisions: generated.decisions.map((decision) => (decision.disposition === PlacementDisposition.PLACED
63
69
  ? {
64
- decisionRef: `${PLACEMENT_DECISION_REF_PREFIX}${decision.slug}`,
70
+ decisionRef: applyFamilyRefPrefix(decision.slug, PLACEMENT_DECISION_REF_PREFIX),
65
71
  disposition: decision.disposition,
66
72
  origin: PlacementDecisionOrigin.DELIBERATED,
67
73
  subject: decision.subject,
@@ -69,7 +75,7 @@ export function parsePlacementPlanGeneration(input) {
69
75
  rationale: decision.rationale,
70
76
  }
71
77
  : {
72
- decisionRef: `${PLACEMENT_DECISION_REF_PREFIX}${decision.slug}`,
78
+ decisionRef: applyFamilyRefPrefix(decision.slug, PLACEMENT_DECISION_REF_PREFIX),
73
79
  disposition: decision.disposition,
74
80
  origin: PlacementDecisionOrigin.DELIBERATED,
75
81
  subject: decision.subject,