@wildo-ai/saas-specifications 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (677) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +14 -13
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
  6. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
  8. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
  10. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/index.js +34 -13
  12. package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
  14. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
  15. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
  16. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
  17. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
  18. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
  19. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
  21. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
  23. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
  25. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
  27. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
  29. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  30. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
  31. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
  33. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
  36. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  37. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
  38. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  40. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
  41. package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
  42. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
  43. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
  44. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
  46. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  51. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
  52. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  53. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
  54. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  55. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
  56. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  57. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
  58. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  59. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
  60. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
  61. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
  62. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
  63. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
  64. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
  65. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
  66. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
  67. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
  68. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
  69. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
  70. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
  71. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
  72. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
  73. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
  74. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
  75. package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
  76. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  77. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
  78. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  79. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
  80. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  81. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
  82. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
  84. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
  92. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  95. package/dist/esm/_core/index.d.ts +3 -0
  96. package/dist/esm/_core/index.d.ts.map +1 -1
  97. package/dist/esm/_core/index.js +3 -0
  98. package/dist/esm/_core/index.js.map +1 -1
  99. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
  100. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
  102. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  103. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  104. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
  105. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  106. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
  107. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
  109. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  110. package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
  111. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  112. package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
  113. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  114. package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
  115. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  116. package/dist/esm/_core/market/market-category.schemas.js +2 -2
  117. package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
  118. package/dist/esm/_core/market/market-channel.schemas.js +2 -2
  119. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  120. package/dist/esm/_core/market/market-gain.schemas.js +2 -2
  121. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  122. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-icp.schemas.js +2 -2
  124. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  125. package/dist/esm/_core/market/market-job.schemas.js +2 -2
  126. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  127. package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
  128. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  129. package/dist/esm/_core/market/market-objection.schemas.js +2 -2
  130. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  131. package/dist/esm/_core/market/market-pain.schemas.js +2 -2
  132. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  133. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-persona.schemas.js +2 -2
  135. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  136. package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
  137. package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
  138. package/dist/esm/_core/market/market-proof.schemas.js +2 -2
  139. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  140. package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
  141. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-references.schemas.js +6 -0
  143. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  144. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
  145. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
  146. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  147. package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
  148. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market.family-aspects.js +1 -1
  150. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  151. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
  153. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  154. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
  155. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
  157. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
  159. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  160. package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
  161. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/resource-specification.schemas.js +110 -24
  163. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
  165. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
  166. package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
  167. package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
  168. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
  169. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
  171. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  172. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
  173. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  174. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
  175. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  176. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
  177. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  178. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
  179. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  180. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
  181. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
  182. package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
  183. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
  184. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
  185. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
  186. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
  187. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
  188. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
  189. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  190. package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
  191. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
  193. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
  194. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
  195. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
  196. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
  197. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
  199. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  200. package/dist/esm/application-creation.exports.d.ts +7 -0
  201. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  202. package/dist/esm/application-creation.exports.js +7 -0
  203. package/dist/esm/application-creation.exports.js.map +1 -1
  204. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
  205. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
  206. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
  207. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
  208. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  209. package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
  210. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  211. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
  212. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  213. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
  214. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  215. package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
  216. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  217. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  218. package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
  219. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  220. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
  221. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
  223. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  225. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
  226. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  227. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
  228. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
  230. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  231. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
  233. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
  235. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
  237. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  238. package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
  239. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  240. package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
  241. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program.schemas.js +107 -14
  243. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  244. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  245. package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
  246. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  247. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  248. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
  249. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  250. package/dist/esm/assurance/governed-document-release.d.ts +7 -0
  251. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  252. package/dist/esm/assurance/governed-document-release.js +11 -2
  253. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  254. package/dist/esm/companion-exports.d.ts +6 -5
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
  258. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  259. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
  266. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
  269. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  271. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
  272. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  276. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
  277. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
  281. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
  283. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
  285. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
  287. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
  292. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
  295. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  297. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
  299. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
  302. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
  305. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
  308. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
  310. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  311. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
  312. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
  314. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
  316. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
  319. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
  321. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
  323. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  324. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
  325. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
  327. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
  330. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
  332. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
  334. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
  337. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
  339. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  340. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
  341. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  342. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
  343. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  344. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
  345. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  346. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
  347. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  348. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
  349. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
  351. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  352. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
  353. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  354. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
  355. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  356. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  357. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  358. package/dist/esm/engine/compliance/resources/index.js +1 -0
  359. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  360. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
  361. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
  362. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
  363. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
  364. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
  365. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
  366. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
  367. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
  368. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  369. package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
  370. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  371. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/errors/error-messages.specification.js +69 -0
  373. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  374. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
  375. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  376. package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
  377. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
  379. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
  380. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
  382. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  383. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
  386. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
  389. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
  391. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  392. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
  393. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
  394. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
  395. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
  396. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
  397. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
  399. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
  402. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
  404. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
  405. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
  406. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
  407. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
  408. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
  409. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
  410. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
  411. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
  412. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
  414. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
  419. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
  420. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
  421. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
  422. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
  423. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
  424. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
  430. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  433. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
  434. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  435. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  436. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  437. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
  438. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
  439. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
  440. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
  441. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  442. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
  444. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  445. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
  447. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
  448. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
  449. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  450. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  451. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/index.js +3 -0
  453. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  454. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
  455. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  456. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
  457. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
  458. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
  459. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
  460. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
  462. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  464. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  465. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
  467. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  468. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
  470. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  473. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
  474. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
  475. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
  476. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
  477. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
  478. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
  479. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
  480. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
  481. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
  482. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
  483. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
  484. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
  485. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
  486. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
  487. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
  488. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
  489. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
  490. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
  492. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
  494. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
  495. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
  496. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
  497. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
  499. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  500. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
  501. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
  502. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
  503. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
  504. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
  505. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
  507. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +2 -2
  509. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  510. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
  512. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
  514. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
  516. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
  518. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
  520. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
  521. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
  522. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
  523. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
  524. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
  525. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
  526. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
  528. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
  530. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  531. package/dist/esm/engine/notifications/resources/index.js +1 -0
  532. package/dist/esm/engine/notifications/resources/index.js.map +1 -1
  533. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
  534. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
  536. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  537. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
  539. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  540. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
  541. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
  543. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
  545. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
  546. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
  547. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
  548. package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
  549. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  550. package/dist/esm/engine/notifications/system-emails/index.js +4 -2
  551. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  552. package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
  553. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  554. package/dist/esm/engine/organizations/resources/index.js +2 -0
  555. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  556. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
  557. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
  559. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  560. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
  561. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  562. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
  563. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  564. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
  565. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
  567. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  568. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
  570. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
  573. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  574. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
  575. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
  577. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  578. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
  579. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
  580. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
  581. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
  582. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
  583. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
  584. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
  585. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
  586. package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
  587. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  588. package/dist/esm/engine/providers/github.provider.specification.js +1 -1
  589. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  590. package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
  591. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
  592. package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
  593. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
  594. package/dist/esm/engine/providers/google.provider.specification.js +1 -1
  595. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  596. package/dist/esm/engine/providers/index.d.ts +2 -0
  597. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  598. package/dist/esm/engine/providers/index.js +5 -1
  599. package/dist/esm/engine/providers/index.js.map +1 -1
  600. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
  602. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  603. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
  604. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
  605. package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
  606. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
  607. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
  609. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  610. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
  612. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  613. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
  614. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
  615. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
  616. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
  617. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
  618. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
  619. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
  620. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
  621. package/dist/esm/engine/roles/index.d.ts +13 -5
  622. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  623. package/dist/esm/engine/roles/index.js +19 -6
  624. package/dist/esm/engine/roles/index.js.map +1 -1
  625. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
  626. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
  628. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
  629. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
  630. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
  632. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
  633. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
  634. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
  635. package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
  636. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
  637. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  638. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  639. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  640. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  641. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
  642. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  643. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
  644. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  645. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  646. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  647. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
  648. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  649. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
  650. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  651. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
  652. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  653. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
  654. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
  656. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  657. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
  658. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  659. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
  660. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
  662. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  663. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
  664. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  665. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
  667. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  668. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
  669. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
  671. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  672. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  673. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
  674. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  675. package/dist/tsconfig.build.tsbuildinfo +1 -1
  676. package/package.json +8 -8
  677. package/dist/assurance/external-framework-mapping.json +0 -1228
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { NonEmptyStringSchema } from './market-references.schemas.js';
6
+ import { MarketEntryRefSchema, NonEmptyStringSchema } from './market-references.schemas.js';
7
7
  /**
8
8
  * @wildo_source:part:start market.buying-journey.stage facet:layer:specification facet:family:market
9
9
  *
@@ -61,7 +61,7 @@ const BuyingJourneyStageEntrySchema = z.object({
61
61
  */
62
62
  export const MarketBuyingJourneyConfigSchema = z.object({
63
63
  /** Stable kebab-case ref (e.g. `'journey-small-product-team'`). */
64
- ref: NonEmptyStringSchema,
64
+ ref: MarketEntryRefSchema,
65
65
  /** ICP this journey describes. Resolved against `snapshot.icps[]`. */
66
66
  icpRef: NonEmptyStringSchema,
67
67
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"market-buying-journey.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-buying-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,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,0DAA0D","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.buying-journey.stage facet:layer:specification facet:family:market\n *\n * The 6 buying-journey stages referenced across the market slice.\n *\n * Mirrors the AARRR funnel framing (Acquisition / Activation / Revenue\n * / Retention / Referral) collapsed to a buyer-centric vocabulary that\n * also reads cleanly for sales motions.\n *\n * Used by:\n * - `MarketChannel.buyingJourneyStages[]` — which surfaces matter at\n * which stage.\n * - `MarketBuyingJourney.stages[].stage` — per-ICP authored journey.\n * - `MarketTrigger` (indirect, via `recommendedChannelRefs[]`).\n */\nexport enum BuyingJourneyStage {\n AWARENESS = 'AWARENESS',\n CONSIDERATION = 'CONSIDERATION',\n DECISION = 'DECISION',\n ONBOARDING = 'ONBOARDING',\n EXPANSION = 'EXPANSION',\n ADVOCACY = 'ADVOCACY',\n}\n/** @wildo_source:part:end market.buying-journey.stage */\n\nconst BuyingJourneyStageEntrySchema = z.object({\n stage: z.enum(BuyingJourneyStage).systemEnum('BuyingJourneyStage'),\n /** One-paragraph description of what happens for this ICP at this stage. */\n description: NonEmptyStringSchema,\n /** Questions the buyer is asking themselves at this stage. */\n keyQuestions: z.array(NonEmptyStringSchema).default([]),\n /** Concrete content / collateral that earns this stage's attention. */\n suggestedContent: z.array(NonEmptyStringSchema).default([]),\n /** What stalls the buyer at this stage (the friction this stage carries). */\n blockers: z.array(NonEmptyStringSchema).default([]),\n});\nexport type BuyingJourneyStageEntry = z.infer<typeof BuyingJourneyStageEntrySchema>;\n\n/**\n * @wildo_source:part:start market.buying-journey.config facet:layer:specification facet:family:market\n *\n * A per-ICP buying journey: how a specific ICP travels from\n * AWARENESS through ADVOCACY.\n *\n * One journey per ICP — by design. Different ICPs experience\n * the funnel differently (a small product team's CONSIDERATION stage\n * is a 30-minute trial; a procurement-led enterprise's CONSIDERATION\n * is a 6-month RFP). Sharing one journey across ICPs collapses that\n * essential distinction.\n *\n * The validator enforces that each `stage` enum value appears at most\n * ONCE per journey (`DUPLICATE_JOURNEY_STAGE` ERROR). Authoring all 6\n * stages is recommended but not required — early authoring may cover\n * AWARENESS + CONSIDERATION + DECISION only and grow over time.\n *\n * `icpRef` is validated against `snapshot.icps[]` by `ORPHAN_REF`.\n */\nexport const MarketBuyingJourneyConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'journey-small-product-team'`). */\n ref: NonEmptyStringSchema,\n /** ICP this journey describes. Resolved against `snapshot.icps[]`. */\n icpRef: NonEmptyStringSchema,\n /**\n * Authored stages for this ICP. Each `BuyingJourneyStage` enum value\n * may appear at most once per journey (validator: ERROR).\n */\n stages: z.array(BuyingJourneyStageEntrySchema).min(1),\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketBuyingJourneyConfig = z.infer<typeof MarketBuyingJourneyConfigSchema>;\n/** @wildo_source:part:end market.buying-journey.config */\n"]}
1
+ {"version":3,"file":"market-buying-journey.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-buying-journey.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE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Q,EAAE;CAClD,CAAC,CAAC;AAEH,0DAA0D","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { MarketEntryRefSchema, NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.buying-journey.stage facet:layer:specification facet:family:market\n *\n * The 6 buying-journey stages referenced across the market slice.\n *\n * Mirrors the AARRR funnel framing (Acquisition / Activation / Revenue\n * / Retention / Referral) collapsed to a buyer-centric vocabulary that\n * also reads cleanly for sales motions.\n *\n * Used by:\n * - `MarketChannel.buyingJourneyStages[]` — which surfaces matter at\n * which stage.\n * - `MarketBuyingJourney.stages[].stage` — per-ICP authored journey.\n * - `MarketTrigger` (indirect, via `recommendedChannelRefs[]`).\n */\nexport enum BuyingJourneyStage {\n AWARENESS = 'AWARENESS',\n CONSIDERATION = 'CONSIDERATION',\n DECISION = 'DECISION',\n ONBOARDING = 'ONBOARDING',\n EXPANSION = 'EXPANSION',\n ADVOCACY = 'ADVOCACY',\n}\n/** @wildo_source:part:end market.buying-journey.stage */\n\nconst BuyingJourneyStageEntrySchema = z.object({\n stage: z.enum(BuyingJourneyStage).systemEnum('BuyingJourneyStage'),\n /** One-paragraph description of what happens for this ICP at this stage. */\n description: NonEmptyStringSchema,\n /** Questions the buyer is asking themselves at this stage. */\n keyQuestions: z.array(NonEmptyStringSchema).default([]),\n /** Concrete content / collateral that earns this stage's attention. */\n suggestedContent: z.array(NonEmptyStringSchema).default([]),\n /** What stalls the buyer at this stage (the friction this stage carries). */\n blockers: z.array(NonEmptyStringSchema).default([]),\n});\nexport type BuyingJourneyStageEntry = z.infer<typeof BuyingJourneyStageEntrySchema>;\n\n/**\n * @wildo_source:part:start market.buying-journey.config facet:layer:specification facet:family:market\n *\n * A per-ICP buying journey: how a specific ICP travels from\n * AWARENESS through ADVOCACY.\n *\n * One journey per ICP — by design. Different ICPs experience\n * the funnel differently (a small product team's CONSIDERATION stage\n * is a 30-minute trial; a procurement-led enterprise's CONSIDERATION\n * is a 6-month RFP). Sharing one journey across ICPs collapses that\n * essential distinction.\n *\n * The validator enforces that each `stage` enum value appears at most\n * ONCE per journey (`DUPLICATE_JOURNEY_STAGE` ERROR). Authoring all 6\n * stages is recommended but not required — early authoring may cover\n * AWARENESS + CONSIDERATION + DECISION only and grow over time.\n *\n * `icpRef` is validated against `snapshot.icps[]` by `ORPHAN_REF`.\n */\nexport const MarketBuyingJourneyConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'journey-small-product-team'`). */\n ref: MarketEntryRefSchema,\n /** ICP this journey describes. Resolved against `snapshot.icps[]`. */\n icpRef: NonEmptyStringSchema,\n /**\n * Authored stages for this ICP. Each `BuyingJourneyStage` enum value\n * may appear at most once per journey (validator: ERROR).\n */\n stages: z.array(BuyingJourneyStageEntrySchema).min(1),\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketBuyingJourneyConfig = z.infer<typeof MarketBuyingJourneyConfigSchema>;\n/** @wildo_source:part:end market.buying-journey.config */\n"]}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
3
- import { NonEmptyStringSchema } from './market-references.schemas.js';
3
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
4
4
  /**
5
5
  * @wildo_source:part:start market.category.config facet:layer:specification facet:family:market
6
6
  *
@@ -39,7 +39,7 @@ const DifferentiationDimensionSchema = z.object({
39
39
  });
40
40
  export const MarketCategoryConfigSchema = z.object({
41
41
  /** Stable kebab-case ref (e.g. `'category-saas-task-os'`). */
42
- ref: NonEmptyStringSchema,
42
+ ref: MarketEntryRefSchema,
43
43
  /** Marketing prose name for the chosen category. */
44
44
  name: NonEmptyStringSchema,
45
45
  /** "X is a category that does Y for Z." */
@@ -1 +1 @@
1
- {"version":3,"file":"market-category.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-category.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,oBAAoB;IAC1B,8DAA8D;IAC9D,SAAS,EAAE,oBAAoB;CAChC,CAAC,CAAC;AAEH,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,8DAA8D;IAC9D,GAAG,EAAE,oBAAoB;IACzB,oDAAoD;IACpD,IAAI,EAAE,oBAAoB;IAC1B,2CAA2C;IAC3C,UAAU,EAAE,oBAAoB;IAChC,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/D,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9E,uEAAuE;IACvE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,oDAAoD","sourcesContent":["import { z } from 'zod';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.category.config facet:layer:specification facet:family:market\n *\n * Product market category — Dunford's \"Obviously Awesome\" frame.\n *\n * One per `MarketSnapshot`, per application. Multi-product apps reuse\n * a single shared category and express per-product framing through\n * `MarketPositioning` (Phase 2) referencing\n * `MarketICP.recommendedProductRefs`.\n *\n * What earns its place here:\n * - **`name`** — the chosen category as marketing prose (\"Task OS for\n * shipping teams\"), not the noun a competitor would use.\n * - **`definition`** — one-sentence \"X is a category that does Y for\n * Z\" frame.\n * - **`rejectedCategories`** — categories the product is deliberately\n * *not* in, with the rationale. Critical for downstream consumers\n * so AI prompts and landing copy stop drifting toward the wrong\n * noun (e.g. \"we are not a generic project management tool\").\n * - **`differentiationDimensions`** — the 2–4 axes along which the\n * product wins inside the chosen category. Anchors comparison\n * pages, alternatives positioning, and AI-generated value pillars.\n *\n * Without this entity, every consumer (website hero, AI prompt,\n * comparison page) re-improvises the \"what kind of product is this\"\n * question.\n */\n\nconst RejectedCategorySchema = z.object({\n name: NonEmptyStringSchema,\n /** Why this neighboring category is *not* the right frame. */\n rationale: NonEmptyStringSchema,\n});\n\nconst DifferentiationDimensionSchema = z.object({\n name: NonEmptyStringSchema,\n description: NonEmptyStringSchema,\n});\n\nexport const MarketCategoryConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'category-saas-task-os'`). */\n ref: NonEmptyStringSchema,\n /** Marketing prose name for the chosen category. */\n name: NonEmptyStringSchema,\n /** \"X is a category that does Y for Z.\" */\n definition: NonEmptyStringSchema,\n rejectedCategories: z.array(RejectedCategorySchema).default([]),\n differentiationDimensions: z.array(DifferentiationDimensionSchema).default([]),\n /** Authoring caveats (e.g. \"Re-evaluate if we add a chat feature\"). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketCategoryConfig = z.infer<typeof MarketCategoryConfigSchema>;\n/** @wildo_source:part:end market.category.config */\n"]}
1
+ {"version":3,"file":"market-category.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-category.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,oBAAoB;IAC1B,8DAA8D;IAC9D,SAAS,EAAE,oBAAoB;CAChC,CAAC,CAAC;AAEH,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,8DAA8D;IAC9D,GAAG,EAAE,oBAAoB;IACzB,oDAAoD;IACpD,IAAI,EAAE,oBAAoB;IAC1B,2CAA2C;IAC3C,UAAU,EAAE,oBAAoB;IAChC,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/D,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9E,uEAAuE;IACvE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,oDAAoD","sourcesContent":["import { z } from 'zod';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.category.config facet:layer:specification facet:family:market\n *\n * Product market category — Dunford's \"Obviously Awesome\" frame.\n *\n * One per `MarketSnapshot`, per application. Multi-product apps reuse\n * a single shared category and express per-product framing through\n * `MarketPositioning` (Phase 2) referencing\n * `MarketICP.recommendedProductRefs`.\n *\n * What earns its place here:\n * - **`name`** — the chosen category as marketing prose (\"Task OS for\n * shipping teams\"), not the noun a competitor would use.\n * - **`definition`** — one-sentence \"X is a category that does Y for\n * Z\" frame.\n * - **`rejectedCategories`** — categories the product is deliberately\n * *not* in, with the rationale. Critical for downstream consumers\n * so AI prompts and landing copy stop drifting toward the wrong\n * noun (e.g. \"we are not a generic project management tool\").\n * - **`differentiationDimensions`** — the 2–4 axes along which the\n * product wins inside the chosen category. Anchors comparison\n * pages, alternatives positioning, and AI-generated value pillars.\n *\n * Without this entity, every consumer (website hero, AI prompt,\n * comparison page) re-improvises the \"what kind of product is this\"\n * question.\n */\n\nconst RejectedCategorySchema = z.object({\n name: NonEmptyStringSchema,\n /** Why this neighboring category is *not* the right frame. */\n rationale: NonEmptyStringSchema,\n});\n\nconst DifferentiationDimensionSchema = z.object({\n name: NonEmptyStringSchema,\n description: NonEmptyStringSchema,\n});\n\nexport const MarketCategoryConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'category-saas-task-os'`). */\n ref: MarketEntryRefSchema,\n /** Marketing prose name for the chosen category. */\n name: NonEmptyStringSchema,\n /** \"X is a category that does Y for Z.\" */\n definition: NonEmptyStringSchema,\n rejectedCategories: z.array(RejectedCategorySchema).default([]),\n differentiationDimensions: z.array(DifferentiationDimensionSchema).default([]),\n /** Authoring caveats (e.g. \"Re-evaluate if we add a chat feature\"). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketCategoryConfig = z.infer<typeof MarketCategoryConfigSchema>;\n/** @wildo_source:part:end market.category.config */\n"]}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { NonEmptyStringSchema } from './market-references.schemas.js';
6
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
7
7
  import { BuyingJourneyStage } from './market-buying-journey.schemas.js';
8
8
  /**
9
9
  * @wildo_source:part:start market.channel.kind facet:layer:specification facet:family:market
@@ -70,7 +70,7 @@ export var ChannelCostModel;
70
70
  */
71
71
  export const MarketChannelConfigSchema = z.object({
72
72
  /** Stable kebab-case ref (e.g. `'channel-linkedin-organic'`). */
73
- ref: NonEmptyStringSchema,
73
+ ref: MarketEntryRefSchema,
74
74
  /** Display name used by authoring tools and prompt blocks. */
75
75
  name: NonEmptyStringSchema,
76
76
  /** One-sentence explanation of why this surface earns investment. */
@@ -1 +1 @@
1
- {"version":3,"file":"market-channel.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-channel.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,WAaX;AAbD,WAAY,WAAW;IACrB,gDAAiC,CAAA;IACjC,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,gDAAiC,CAAA;IACjC,wCAAyB,CAAA;AAC3B,CAAC,EAbW,WAAW,KAAX,WAAW,QAatB;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,+BAAW,CAAA;IACX,+BAAW,CAAA;IACX,+BAAW,CAAA;IACX,+BAAW,CAAA;IACX,2DAAuC,CAAA;AACzC,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AACD,iDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,iEAAiE;IACjE,GAAG,EAAE,oBAAoB;IACzB,8DAA8D;IAC9D,IAAI,EAAE,oBAAoB;IAC1B,qEAAqE;IACrE,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC;IAC1D;;;OAGG;IACH,OAAO,EAAE,oBAAoB;IAC7B;;;;;OAKG;IACH,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAChG,wEAAwE;IACxE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IAC7E,sEAAsE;IACtE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,mDAAmD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\nimport { BuyingJourneyStage } from './market-buying-journey.schemas';\n\n/**\n * @wildo_source:part:start market.channel.kind facet:layer:specification facet:family:market\n *\n * Reach surfaces a marketing organization can deliberately invest in.\n *\n * The taxonomy is **deliberately coarse** (12 kinds) — Phase-3 authoring\n * only needs to map a surface to a buying-journey stage and a cost\n * model. Sub-channel granularity (e.g. \"LinkedIn Ads vs LinkedIn Posts\"\n * vs \"Twitter Ads\") is captured by the `surface` free-form string per\n * authored entry, not by another enum dimension.\n */\nexport enum ChannelKind {\n ORGANIC_SEARCH = 'ORGANIC_SEARCH',\n PAID_SEARCH = 'PAID_SEARCH',\n SOCIAL_OWNED = 'SOCIAL_OWNED',\n SOCIAL_PAID = 'SOCIAL_PAID',\n COMMUNITY = 'COMMUNITY',\n PARTNER = 'PARTNER',\n EVENT = 'EVENT',\n REFERRAL = 'REFERRAL',\n EMAIL = 'EMAIL',\n CONTENT = 'CONTENT',\n SALES_OUTBOUND = 'SALES_OUTBOUND',\n IN_PRODUCT = 'IN_PRODUCT',\n}\n\n/**\n * Cost model attached to a channel for go-to-market planning. Optional\n * because some surfaces (notably community / referral / in-product)\n * have no cleanly attributable cost.\n */\nexport enum ChannelCostModel {\n FREE = 'FREE',\n CPM = 'CPM',\n CPC = 'CPC',\n CPL = 'CPL',\n CPA = 'CPA',\n PARTNER_REV_SHARE = 'PARTNER_REV_SHARE',\n}\n/** @wildo_source:part:end market.channel.kind */\n\n/**\n * @wildo_source:part:start market.channel.config facet:layer:specification facet:family:market\n *\n * A reach surface a marketing organization can target deliberately —\n * \"where do we show up to reach this kind of buyer at this stage\".\n *\n * Channels are referenced from `MarketTrigger.recommendedChannelRefs[]`\n * and (in Phase 4) from `MarketBuyingJourney.stages[].suggestedContent`.\n *\n * The `surface` free-form string captures the named platform / forum /\n * conference (`'LinkedIn'`, `'r/productmanagement'`, `'SaaStr Annual'`)\n * — the `channelKind` enum is the strategic taxonomy, `surface` is the\n * tactical name.\n *\n * `buyingJourneyStages` ties the channel to the funnel stages where it\n * earns its keep. A single channel can span multiple stages (organic\n * search hits AWARENESS + CONSIDERATION; in-product hits ONBOARDING +\n * EXPANSION).\n *\n * Authored in English. Translation of generated copy targeting this\n * channel is an LLM-output-time concern, not a spec-time concern.\n */\nexport const MarketChannelConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'channel-linkedin-organic'`). */\n ref: NonEmptyStringSchema,\n /** Display name used by authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n /** One-sentence explanation of why this surface earns investment. */\n description: NonEmptyStringSchema,\n channelKind: z.enum(ChannelKind).systemEnum('ChannelKind'),\n /**\n * Tactical surface name (`'LinkedIn'`, `'r/productmanagement'`, …).\n * Free-form so authoring is not bottlenecked on enum sprawl.\n */\n surface: NonEmptyStringSchema,\n /**\n * The buying-journey stages where this channel earns attention.\n * At least one stage required (a channel that maps to no stage is\n * not actionable). Multiple stages are valid (a single surface\n * often spans the funnel).\n */\n buyingJourneyStages: z.array(z.enum(BuyingJourneyStage).systemEnum('BuyingJourneyStage')).min(1),\n /** Optional cost model. Omit for surfaces with no attributable cost. */\n costModel: z.enum(ChannelCostModel).systemEnum('ChannelCostModel').optional(),\n /** Free-form authoring notes (rationale, observed performance, …). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketChannelConfig = z.infer<typeof MarketChannelConfigSchema>;\n/** @wildo_source:part:end market.channel.config */\n"]}
1
+ {"version":3,"file":"market-channel.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-channel.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,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AAwE;IACxE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IAC7E,sEAAsE;IACtE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,mDAAmD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas';\nimport { BuyingJourneyStage } from './market-buying-journey.schemas';\n\n/**\n * @wildo_source:part:start market.channel.kind facet:layer:specification facet:family:market\n *\n * Reach surfaces a marketing organization can deliberately invest in.\n *\n * The taxonomy is **deliberately coarse** (12 kinds) — Phase-3 authoring\n * only needs to map a surface to a buying-journey stage and a cost\n * model. Sub-channel granularity (e.g. \"LinkedIn Ads vs LinkedIn Posts\"\n * vs \"Twitter Ads\") is captured by the `surface` free-form string per\n * authored entry, not by another enum dimension.\n */\nexport enum ChannelKind {\n ORGANIC_SEARCH = 'ORGANIC_SEARCH',\n PAID_SEARCH = 'PAID_SEARCH',\n SOCIAL_OWNED = 'SOCIAL_OWNED',\n SOCIAL_PAID = 'SOCIAL_PAID',\n COMMUNITY = 'COMMUNITY',\n PARTNER = 'PARTNER',\n EVENT = 'EVENT',\n REFERRAL = 'REFERRAL',\n EMAIL = 'EMAIL',\n CONTENT = 'CONTENT',\n SALES_OUTBOUND = 'SALES_OUTBOUND',\n IN_PRODUCT = 'IN_PRODUCT',\n}\n\n/**\n * Cost model attached to a channel for go-to-market planning. Optional\n * because some surfaces (notably community / referral / in-product)\n * have no cleanly attributable cost.\n */\nexport enum ChannelCostModel {\n FREE = 'FREE',\n CPM = 'CPM',\n CPC = 'CPC',\n CPL = 'CPL',\n CPA = 'CPA',\n PARTNER_REV_SHARE = 'PARTNER_REV_SHARE',\n}\n/** @wildo_source:part:end market.channel.kind */\n\n/**\n * @wildo_source:part:start market.channel.config facet:layer:specification facet:family:market\n *\n * A reach surface a marketing organization can target deliberately —\n * \"where do we show up to reach this kind of buyer at this stage\".\n *\n * Channels are referenced from `MarketTrigger.recommendedChannelRefs[]`\n * and (in Phase 4) from `MarketBuyingJourney.stages[].suggestedContent`.\n *\n * The `surface` free-form string captures the named platform / forum /\n * conference (`'LinkedIn'`, `'r/productmanagement'`, `'SaaStr Annual'`)\n * — the `channelKind` enum is the strategic taxonomy, `surface` is the\n * tactical name.\n *\n * `buyingJourneyStages` ties the channel to the funnel stages where it\n * earns its keep. A single channel can span multiple stages (organic\n * search hits AWARENESS + CONSIDERATION; in-product hits ONBOARDING +\n * EXPANSION).\n *\n * Authored in English. Translation of generated copy targeting this\n * channel is an LLM-output-time concern, not a spec-time concern.\n */\nexport const MarketChannelConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'channel-linkedin-organic'`). */\n ref: MarketEntryRefSchema,\n /** Display name used by authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n /** One-sentence explanation of why this surface earns investment. */\n description: NonEmptyStringSchema,\n channelKind: z.enum(ChannelKind).systemEnum('ChannelKind'),\n /**\n * Tactical surface name (`'LinkedIn'`, `'r/productmanagement'`, …).\n * Free-form so authoring is not bottlenecked on enum sprawl.\n */\n surface: NonEmptyStringSchema,\n /**\n * The buying-journey stages where this channel earns attention.\n * At least one stage required (a channel that maps to no stage is\n * not actionable). Multiple stages are valid (a single surface\n * often spans the funnel).\n */\n buyingJourneyStages: z.array(z.enum(BuyingJourneyStage).systemEnum('BuyingJourneyStage')).min(1),\n /** Optional cost model. Omit for surfaces with no attributable cost. */\n costModel: z.enum(ChannelCostModel).systemEnum('ChannelCostModel').optional(),\n /** Free-form authoring notes (rationale, observed performance, …). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketChannelConfig = z.infer<typeof MarketChannelConfigSchema>;\n/** @wildo_source:part:end market.channel.config */\n"]}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { NonEmptyStringSchema } from './market-references.schemas.js';
6
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
7
7
  /**
8
8
  * @wildo_source:part:start market.gain.config facet:layer:specification facet:family:market
9
9
  *
@@ -35,7 +35,7 @@ export var GainKind;
35
35
  })(GainKind || (GainKind = {}));
36
36
  export const MarketGainConfigSchema = z.object({
37
37
  /** Stable kebab-case ref (e.g. `'gain-single-pane'`). */
38
- ref: NonEmptyStringSchema,
38
+ ref: MarketEntryRefSchema,
39
39
  /** Plain-English statement of the desired outcome. */
40
40
  statement: NonEmptyStringSchema,
41
41
  gainKind: z.enum(GainKind).systemEnum('GainKind'),
@@ -1 +1 @@
1
- {"version":3,"file":"market-gain.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-gain.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;AAC3B,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,yDAAyD;IACzD,GAAG,EAAE,oBAAoB;IACzB,sDAAsD;IACtD,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACjD,oEAAoE;IACpE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,gDAAgD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.gain.config facet:layer:specification facet:family:market\n *\n * Desired outcome / benefit / aspiration sought by an ICP or persona\n * (Strategyzer Customer Profile — gain side, mapped onto Kano-like\n * tiers).\n *\n * `gainKind` discriminates the four tiers so consumers can frame\n * upside language at the right intensity:\n * - **`REQUIRED`** — baseline expectation; without it the product\n * is rejected outright.\n * - **`EXPECTED`** — should-have; competitors deliver this and so\n * must we.\n * - **`DESIRED`** — nice to have; explicitly asked for but not\n * blocking.\n * - **`UNEXPECTED`** — delight; the user did not think to ask for\n * it but it raises perceived value (Kano \"delighters\").\n *\n * Note: `BenefitKanoCategory` (Phase 2) lives on the ICP↔Benefit\n * edge and is a separate, importance-driven concern. `GainKind`\n * here is intrinsic to the gain itself.\n */\nexport enum GainKind {\n REQUIRED = 'REQUIRED',\n EXPECTED = 'EXPECTED',\n DESIRED = 'DESIRED',\n UNEXPECTED = 'UNEXPECTED',\n}\n\nexport const MarketGainConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'gain-single-pane'`). */\n ref: NonEmptyStringSchema,\n /** Plain-English statement of the desired outcome. */\n statement: NonEmptyStringSchema,\n gainKind: z.enum(GainKind).systemEnum('GainKind'),\n /** Concrete supporting observations (interview quotes, metrics). */\n evidence: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketGainConfig = z.infer<typeof MarketGainConfigSchema>;\n/** @wildo_source:part:end market.gain.config */\n"]}
1
+ {"version":3,"file":"market-gain.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-gain.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;AAC3B,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,yDAAyD;IACzD,GAAG,EAAE,oBAAoB;IACzB,sDAAsD;IACtD,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACjD,oEAAoE;IACpE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,gDAAgD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.gain.config facet:layer:specification facet:family:market\n *\n * Desired outcome / benefit / aspiration sought by an ICP or persona\n * (Strategyzer Customer Profile — gain side, mapped onto Kano-like\n * tiers).\n *\n * `gainKind` discriminates the four tiers so consumers can frame\n * upside language at the right intensity:\n * - **`REQUIRED`** — baseline expectation; without it the product\n * is rejected outright.\n * - **`EXPECTED`** — should-have; competitors deliver this and so\n * must we.\n * - **`DESIRED`** — nice to have; explicitly asked for but not\n * blocking.\n * - **`UNEXPECTED`** — delight; the user did not think to ask for\n * it but it raises perceived value (Kano \"delighters\").\n *\n * Note: `BenefitKanoCategory` (Phase 2) lives on the ICP↔Benefit\n * edge and is a separate, importance-driven concern. `GainKind`\n * here is intrinsic to the gain itself.\n */\nexport enum GainKind {\n REQUIRED = 'REQUIRED',\n EXPECTED = 'EXPECTED',\n DESIRED = 'DESIRED',\n UNEXPECTED = 'UNEXPECTED',\n}\n\nexport const MarketGainConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'gain-single-pane'`). */\n ref: MarketEntryRefSchema,\n /** Plain-English statement of the desired outcome. */\n statement: NonEmptyStringSchema,\n gainKind: z.enum(GainKind).systemEnum('GainKind'),\n /** Concrete supporting observations (interview quotes, metrics). */\n evidence: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketGainConfig = z.infer<typeof MarketGainConfigSchema>;\n/** @wildo_source:part:end market.gain.config */\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"market-ic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ACvB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;CAChC;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,6DAOzB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAoJ1E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6E9B,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,uBAAuB,GAAG,eAAe,CAE/E;AACD,+CAA+C"}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { GainEdgeSchema, ICPInfluenceEdgeSchema, JobEdgeSchema, NonEmptyStringSchema, PainEdgeSchema, } from './market-references.schemas.js';
6
+ import { GainEdgeSchema, ICPInfluenceEdgeSchema, JobEdgeSchema, NonEmptyStringSchema, PainEdgeSchema, MarketEntryRefSchema, } from './market-references.schemas.js';
7
7
  /**
8
8
  * Ideal Customer Profile archetype.
9
9
  *
@@ -257,7 +257,7 @@ const ICPSizingSchema = z.object({
257
257
  export const MarketICPConfigSchema = z
258
258
  .object({
259
259
  /** Stable kebab-case ref (e.g. `'icp-small-team-pmo'`). */
260
- ref: NonEmptyStringSchema,
260
+ ref: MarketEntryRefSchema,
261
261
  /** Display name for authoring tools and prompt blocks. */
262
262
  name: NonEmptyStringSchema,
263
263
  archetype: z.enum(ICPArchetype).systemEnum('ICPArchetype'),
@@ -1 +1 @@
1
- {"version":3,"file":"market-icp.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-icp.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,oBAAoB,EACpB,cAAc,GACf,MAAM,6BAA6B,CAAC;AAErC;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,yCAAyB,CAAA;AAC3B,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;IACrB,0CAA2B,CAAA;AAC7B,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAED,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,8CAA+B,CAAA;IAC/B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,0CA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AAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAChD,CAAC;IACF;;;;;;;;OAQG;KACF,WAAW,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACxB,IAAI,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACvC,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;YACzB,OAAO,EAAE,4BAA4B,GAAG,CAAC,SAAS,2BAA2B,GAAG,CAAC,OAAO,CAAC,IAAI,eAAe;SAC7G,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAgBL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,UAAU,eAAe,CAAC,KAA8B;IAC5D,OAAO,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AACD,+CAA+C","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport {\n GainEdgeSchema,\n ICPInfluenceEdgeSchema,\n JobEdgeSchema,\n NonEmptyStringSchema,\n PainEdgeSchema,\n} from './market-references.schemas';\n\n/**\n * Ideal Customer Profile archetype.\n *\n * `LEGAL_ENTITY` (organisations / teams / accounts) and `INDIVIDUAL`\n * (people) are the two structural shapes a market profile can take.\n * Drives the discriminated `profile` union: `LEGAL_ENTITY` carries\n * firmographics, `INDIVIDUAL` carries demographics + psychographics.\n */\nexport enum ICPArchetype {\n LEGAL_ENTITY = 'LEGAL_ENTITY',\n INDIVIDUAL = 'INDIVIDUAL',\n}\n\n/**\n * Strategic priority an ICP carries in the GTM portfolio.\n *\n * `ANTI_TARGET` deserves special attention — it is the explicit name\n * for segments we want to *repel*, not attract (free riders, wrong\n * stage, abusive use cases). Anti-target ICPs use the same schema and\n * carry the pains/gains we deliberately do *not* serve, so AI surfaces\n * stop trying to please everyone. By contract, anti-target ICPs MUST\n * carry `purposeMix: { adoption: 0, revenue: 0 }` and are excluded by\n * default from FIT scoring aggregations.\n */\nexport enum ICPPriority {\n CORE = 'CORE',\n EXPANSION = 'EXPANSION',\n EXPLORATORY = 'EXPLORATORY',\n DEFERRED = 'DEFERRED',\n ANTI_TARGET = 'ANTI_TARGET',\n}\n\nexport enum OrgMaturity {\n PRE_FORMATION = 'PRE_FORMATION',\n EARLY_STAGE = 'EARLY_STAGE',\n GROWTH = 'GROWTH',\n SCALE_UP = 'SCALE_UP',\n ESTABLISHED = 'ESTABLISHED',\n ENTERPRISE = 'ENTERPRISE',\n}\n\nexport enum FundingStage {\n BOOTSTRAPPED = 'BOOTSTRAPPED',\n PRE_SEED = 'PRE_SEED',\n SEED = 'SEED',\n SERIES_A = 'SERIES_A',\n SERIES_B = 'SERIES_B',\n SERIES_C_PLUS = 'SERIES_C_PLUS',\n PUBLIC = 'PUBLIC',\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n}\n\nexport enum BudgetAuthority {\n NONE = 'NONE',\n INFLUENCE = 'INFLUENCE',\n APPROVE_SMALL = 'APPROVE_SMALL',\n APPROVE_MID = 'APPROVE_MID',\n APPROVE_LARGE = 'APPROVE_LARGE',\n}\n\nexport enum TechProficiency {\n NONE = 'NONE',\n BASIC = 'BASIC',\n INTERMEDIATE = 'INTERMEDIATE',\n ADVANCED = 'ADVANCED',\n EXPERT = 'EXPERT',\n}\n\nexport enum RiskTolerance {\n RISK_AVERSE = 'RISK_AVERSE',\n BALANCED = 'BALANCED',\n RISK_TAKING = 'RISK_TAKING',\n}\n\n/**\n * @wildo_source:part:start market.icp.geographic-targeting facet:layer:specification facet:family:market\n *\n * \"Market localization\" inside the market specification slice is **not**\n * translation of authored content — the spec is English-authored end to\n * end. It is **geographic targeting**: which countries / regions an ICP\n * lives in.\n *\n * Values are constrained to either ISO 3166-1 alpha-2 country codes\n * (exactly 2 uppercase letters: `'DE'`, `'DK'`, `'PL'`, `'FR'`, …) or\n * one of the closed-set region tags below. Free-form country names\n * (`'Germany'`) and ad-hoc 3-5-letter strings are rejected — drives\n * downstream normalization (ad targeting, market sizing, locale-\n * specific landing pages) without a translation table.\n *\n * Translation of LLM-generated marketing copy happens at output time\n * via the market generation CLI's `--output-language` flag; it is\n * never spec-time data.\n */\nexport const RECOGNIZED_REGION_TAGS = [\n 'EMEA',\n 'NAM',\n 'APAC',\n 'LATAM',\n 'MENA',\n 'GLOBAL',\n] as const;\nexport type RecognizedRegionTag = (typeof RECOGNIZED_REGION_TAGS)[number];\n\nconst ISO_COUNTRY_CODE_REGEX = /^[A-Z]{2}$/;\nconst GeographyCodeSchema = z\n .string()\n .trim()\n .refine(\n v =>\n ISO_COUNTRY_CODE_REGEX.test(v) ||\n (RECOGNIZED_REGION_TAGS as readonly string[]).includes(v),\n {\n message: `Geographies must be ISO 3166-1 alpha-2 country codes (exactly 2 uppercase letters, e.g. \"DE\") or one of the recognized region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}.`,\n },\n )\n // Also stated as a DESCRIPTION, not only as a refinement message: `z.toJSONSchema` drops `.refine()`\n // entirely, so a generating model is shown a bare `string` and cannot know the rule. Measured 2026-08-20 —\n // the market-analysis model emitted prose region names here and every entry failed validation.\n .describe(\n `ISO 3166-1 alpha-2 country code (exactly 2 uppercase letters, e.g. \"DE\", \"US\") or one of these exact region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}. Never a country or region NAME.`,\n );\n/** @wildo_source:part:end market.icp.geographic-targeting */\n\n/**\n * Industry / tech-stack tokens — kebab-case codes, not prose.\n * Constrains downstream consumers (ad targeting, segment dashboards)\n * to a stable vocabulary instead of free-form strings.\n */\nconst TaxonomyCodeSchema = z\n .string()\n .trim()\n .regex(/^[a-z0-9-]+$/, {\n message:\n 'Industry / techStack values must be kebab-case codes (e.g. \"fintech\", \"node-js\"), not prose.',\n })\n .describe(\n 'Kebab-case code using only lowercase letters, digits and hyphens (e.g. \"fintech\", \"node-js\", \"project-management\"). Never prose, never spaces, never capitals.',\n );\n\n/**\n * `min <= max` is enforced on every numeric range below via `.refine`.\n * Without this guard, authors can ship `{ min: 50, max: 5 }` (typo /\n * inverted bounds) which silently passes downstream sizing & ad-target\n * normalization.\n */\nconst ORDERED_RANGE_MESSAGE = 'Range `min` must be <= `max`.';\n\nconst FirmographicsSchema = z.object({\n employeeRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n annualRevenueRangeUsd: z\n .object({\n min: z.number().min(0),\n max: z.number().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n industries: z.array(TaxonomyCodeSchema).default([]),\n geographies: z.array(GeographyCodeSchema).default([]),\n techStack: z.array(TaxonomyCodeSchema).default([]),\n fundingStages: z.array(z.enum(FundingStage).systemEnum('FundingStage')).default([]),\n orgMaturity: z.enum(OrgMaturity).systemEnum('OrgMaturity').optional(),\n});\n\nconst DemographicsSchema = z.object({\n ageRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().min(0),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n geographies: z.array(GeographyCodeSchema).default([]),\n roles: z.array(NonEmptyStringSchema).default([]),\n techProficiency: z.enum(TechProficiency).systemEnum('TechProficiency').optional(),\n budgetAuthority: z.enum(BudgetAuthority).systemEnum('BudgetAuthority').optional(),\n /** Free-form life-stage label (e.g. \"early-career\", \"post-exit\"). */\n lifeStage: NonEmptyStringSchema.optional(),\n});\n\nconst PsychographicsSchema = z.object({\n values: z.array(NonEmptyStringSchema).default([]),\n motivations: z.array(NonEmptyStringSchema).default([]),\n fears: z.array(NonEmptyStringSchema).default([]),\n riskTolerance: z.enum(RiskTolerance).systemEnum('RiskTolerance').optional(),\n});\n\nconst ICPLegalEntityProfileSchema = z.object({\n kind: z.literal(ICPArchetype.LEGAL_ENTITY).systemEnum('ICPArchetype'),\n firmographics: FirmographicsSchema,\n});\n\nconst ICPIndividualProfileSchema = z.object({\n kind: z.literal(ICPArchetype.INDIVIDUAL).systemEnum('ICPArchetype'),\n demographics: DemographicsSchema,\n psychographics: PsychographicsSchema,\n});\n\nconst ICPProfileSchema = z.discriminatedUnion('kind', [\n ICPLegalEntityProfileSchema,\n ICPIndividualProfileSchema,\n]);\n\n/**\n * `purposeMix` weights (0..10 each, both can be non-zero\n * simultaneously — the model is two-axis, not either/or).\n *\n * - `adoption` — value of the ICP for evangelism / product fit / PLG\n * reach (a free user who imports the team is adoption-heavy).\n * - `revenue` — direct contribution to ARR / billable seats.\n *\n * `0` means \"this axis carries no weight for this ICP\". For\n * `priority: ANTI_TARGET` ICPs, BOTH axes MUST be `0` — the schema\n * accepts the value, but the snapshot validator rejects any other\n * combination as `INVALID_ANTI_TARGET_PURPOSE_MIX`.\n */\nconst PurposeMixSchema = z.object({\n adoption: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n revenue: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n});\n\n/**\n * Reserved sizing slot for TAM/SAM/SOM authoring. Stays loose\n * (`z.unknown()`) until a real consumer needs it (deferred per the\n * plan's §16). Reserving the field name now prevents schema churn\n * later.\n */\nconst ICPSizingSchema = z.object({\n tam: z.unknown().optional(),\n sam: z.unknown().optional(),\n som: z.unknown().optional(),\n derivation: z.unknown().optional(),\n});\n\n/**\n * @wildo_source:part:start market.icp.config facet:layer:specification facet:family:market\n *\n * Ideal Customer Profile — the central market-targeting record.\n *\n * Single entity covers both organisations and individuals through the\n * `archetype` discriminant + the discriminated `profile` union. The\n * deliberate two-axis weighting (`purposeMix.adoption` × `revenue`)\n * replaces the brittle \"adoption-ICPs vs revenue-ICPs\" split — a\n * champion CTO can be `{ adoption: 9, revenue: 7 }` without\n * duplication.\n *\n * Cross-references are flat strings (`personaRef`, `painRef`,\n * `gainRef`, `jobRef`, `channelRef`, `triggerRef`, `alternativeRef`,\n * `proofRef`, `objectionRef`, `productRef`, `voiceRef`). The\n * `influences[]` graph models real GTM dynamics (a solo PM\n * evangelizing inside their team) so seeding/ripple campaigns can\n * be derived deterministically.\n *\n * Geographic targeting lives in `profile.firmographics.geographies`\n * or `profile.demographics.geographies` — that is the only kind of\n * \"market localization\" the spec models (D15).\n */\nexport const MarketICPConfigSchema = z\n .object({\n /** Stable kebab-case ref (e.g. `'icp-small-team-pmo'`). */\n ref: NonEmptyStringSchema,\n /** Display name for authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n archetype: z.enum(ICPArchetype).systemEnum('ICPArchetype'),\n purposeMix: PurposeMixSchema,\n priority: z.enum(ICPPriority).systemEnum('ICPPriority'),\n profile: ICPProfileSchema,\n /** Personas that participate in this ICP's buying group / decision. */\n buyingGroup: z\n .array(z.object({ personaRef: NonEmptyStringSchema }))\n .default([]),\n jobs: z.array(JobEdgeSchema).default([]),\n pains: z.array(PainEdgeSchema).default([]),\n gains: z.array(GainEdgeSchema).default([]),\n /**\n * `MarketChannelRef[]` — channels through which this ICP is reached.\n * Resolved against `snapshot.channels[]`; orphans flagged as\n * `ORPHAN_REF` (ERROR) by `validateMarketSnapshot`.\n */\n channelRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketTriggerRef[]` — triggers that create buying intent for\n * this ICP. Resolved against `snapshot.triggers[]`.\n */\n triggerRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketAlternativeRef[]` — alternatives this ICP currently chooses\n * over us. Resolved against `snapshot.alternatives[]`.\n */\n alternativeRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketProofRef[]` — proofs that resonate with this ICP. Resolved\n * against `snapshot.proofs[]`.\n */\n proofRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketObjectionRef[]` — objections raised by this ICP. Resolved\n * against `snapshot.objections[]`.\n */\n objectionRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `ProductSpecification` refs (cross-family) the ICP should primarily\n * land on. Empty array = no opinion. Drives upsell/cross-sell\n * narratives and the website's \"which plan for whom\" routing.\n */\n recommendedProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** Ordered next-product path (upsell / cross-sell). */\n upsellPathProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** ICP-to-ICP influence graph (mutual influence is real). */\n influences: z.array(ICPInfluenceEdgeSchema).default([]),\n /** Optional `ToneOfVoice` ref to default messaging to this ICP. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n sizing: ICPSizingSchema.optional(),\n /** Free-form authoring notes (rationale, open questions). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n })\n /**\n * Cross-field invariant: `archetype` and `profile.kind` MUST agree.\n * Catches authoring drift where the discriminant is changed without\n * updating the discriminated `profile` (or vice versa). Without this\n * refinement, a `LEGAL_ENTITY` archetype with an `INDIVIDUAL` profile\n * silently parses (the discriminated union picks the right variant\n * from `profile.kind`) but downstream consumers that switch on\n * `archetype` will branch incorrectly.\n */\n .superRefine((icp, ctx) => {\n if (icp.archetype !== icp.profile.kind) {\n ctx.addIssue({\n code: 'custom',\n path: ['profile', 'kind'],\n message: `MarketICP \\`archetype\\` (${icp.archetype}) and \\`profile.kind\\` (${icp.profile.kind}) must agree.`,\n });\n }\n });\nexport type MarketICPConfig = z.infer<typeof MarketICPConfigSchema>;\n\n/**\n * Authoring (**input**) shape of {@link MarketICPConfigSchema} — what you type at\n * a declaration site, before parsing.\n *\n * Every field carrying a `.default([])` (`jobs`, `pains`, `gains`, `channelRefs`,\n * `triggerRefs`, `alternativeRefs`, `proofRefs`, `objectionRefs`,\n * `recommendedProductRefs`, `upsellPathProductRefs`, `influences`, `notes`) is\n * OPTIONAL here and GUARANTEED on {@link MarketICPConfig}. Pair this type with\n * {@link marketIcpConfig}; do not annotate a raw object literal with it, or the\n * defaults never materialize.\n */\nexport type MarketICPConfigAuthored = z.input<typeof MarketICPConfigSchema>;\n\n/**\n * Author a {@link MarketICPConfig}. **Use this instead of annotating an object\n * literal with `MarketICPConfig`.**\n *\n * WHY THIS FACTORY EXISTS\n * Authored ICPs are consumed on two different paths, and only one of them parses:\n *\n * - The application-creation runtime parses the whole market specification\n * (`MarketSnapshotSchema.parse`), so defaults materialize there.\n * - Authoring helpers such as `inheritFrom()` are called DIRECTLY on the declared\n * constant at module load, with no parse in between — and they spread the\n * collections (`[...icp.jobs]`) without a guard.\n *\n * That second path is why the defaulted collections could not simply be made\n * optional: an omitted `jobs` would reach `inheritFrom` as `undefined` and throw\n * `TypeError: icp.jobs is not iterable` the moment the module is imported. The\n * previous design avoided that by deriving the authoring type from `z.infer` (the\n * OUTPUT shape), which forced authors to hand-write every empty array — safe, but\n * pure boilerplate.\n *\n * Parsing at the declaration site resolves both: the defaults become real before\n * anything can observe the object, so `inheritFrom` is safe even when the author\n * omits a collection, and the self-contained `archetype` / `profile.kind`\n * refinement now fails fast at import time instead of at snapshot assembly.\n *\n * @example\n * export const smallProductTeamIcp = marketIcpConfig({\n * ref: 'icp-small-product-team',\n * archetype: MarketICPArchetype.LEGAL_ENTITY,\n * profile: { kind: MarketICPArchetype.LEGAL_ENTITY, ... },\n * // jobs / pains / gains / *Refs omitted — each defaults to []\n * });\n */\nexport function marketIcpConfig(input: MarketICPConfigAuthored): MarketICPConfig {\n return MarketICPConfigSchema.parse(input);\n}\n/** @wildo_source:part:end market.icp.config */\n"]}
1
+ {"version":3,"file":"market-icp.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-icp.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,C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AC;AAgBL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,UAAU,eAAe,CAAC,KAA8B;IAC5D,OAAO,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AACD,+CAA+C","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport {\n GainEdgeSchema,\n ICPInfluenceEdgeSchema,\n JobEdgeSchema,\n NonEmptyStringSchema,\n PainEdgeSchema,\n MarketEntryRefSchema,\n} from './market-references.schemas';\n\n/**\n * Ideal Customer Profile archetype.\n *\n * `LEGAL_ENTITY` (organisations / teams / accounts) and `INDIVIDUAL`\n * (people) are the two structural shapes a market profile can take.\n * Drives the discriminated `profile` union: `LEGAL_ENTITY` carries\n * firmographics, `INDIVIDUAL` carries demographics + psychographics.\n */\nexport enum ICPArchetype {\n LEGAL_ENTITY = 'LEGAL_ENTITY',\n INDIVIDUAL = 'INDIVIDUAL',\n}\n\n/**\n * Strategic priority an ICP carries in the GTM portfolio.\n *\n * `ANTI_TARGET` deserves special attention — it is the explicit name\n * for segments we want to *repel*, not attract (free riders, wrong\n * stage, abusive use cases). Anti-target ICPs use the same schema and\n * carry the pains/gains we deliberately do *not* serve, so AI surfaces\n * stop trying to please everyone. By contract, anti-target ICPs MUST\n * carry `purposeMix: { adoption: 0, revenue: 0 }` and are excluded by\n * default from FIT scoring aggregations.\n */\nexport enum ICPPriority {\n CORE = 'CORE',\n EXPANSION = 'EXPANSION',\n EXPLORATORY = 'EXPLORATORY',\n DEFERRED = 'DEFERRED',\n ANTI_TARGET = 'ANTI_TARGET',\n}\n\nexport enum OrgMaturity {\n PRE_FORMATION = 'PRE_FORMATION',\n EARLY_STAGE = 'EARLY_STAGE',\n GROWTH = 'GROWTH',\n SCALE_UP = 'SCALE_UP',\n ESTABLISHED = 'ESTABLISHED',\n ENTERPRISE = 'ENTERPRISE',\n}\n\nexport enum FundingStage {\n BOOTSTRAPPED = 'BOOTSTRAPPED',\n PRE_SEED = 'PRE_SEED',\n SEED = 'SEED',\n SERIES_A = 'SERIES_A',\n SERIES_B = 'SERIES_B',\n SERIES_C_PLUS = 'SERIES_C_PLUS',\n PUBLIC = 'PUBLIC',\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n}\n\nexport enum BudgetAuthority {\n NONE = 'NONE',\n INFLUENCE = 'INFLUENCE',\n APPROVE_SMALL = 'APPROVE_SMALL',\n APPROVE_MID = 'APPROVE_MID',\n APPROVE_LARGE = 'APPROVE_LARGE',\n}\n\nexport enum TechProficiency {\n NONE = 'NONE',\n BASIC = 'BASIC',\n INTERMEDIATE = 'INTERMEDIATE',\n ADVANCED = 'ADVANCED',\n EXPERT = 'EXPERT',\n}\n\nexport enum RiskTolerance {\n RISK_AVERSE = 'RISK_AVERSE',\n BALANCED = 'BALANCED',\n RISK_TAKING = 'RISK_TAKING',\n}\n\n/**\n * @wildo_source:part:start market.icp.geographic-targeting facet:layer:specification facet:family:market\n *\n * \"Market localization\" inside the market specification slice is **not**\n * translation of authored content — the spec is English-authored end to\n * end. It is **geographic targeting**: which countries / regions an ICP\n * lives in.\n *\n * Values are constrained to either ISO 3166-1 alpha-2 country codes\n * (exactly 2 uppercase letters: `'DE'`, `'DK'`, `'PL'`, `'FR'`, …) or\n * one of the closed-set region tags below. Free-form country names\n * (`'Germany'`) and ad-hoc 3-5-letter strings are rejected — drives\n * downstream normalization (ad targeting, market sizing, locale-\n * specific landing pages) without a translation table.\n *\n * Translation of LLM-generated marketing copy happens at output time\n * via the market generation CLI's `--output-language` flag; it is\n * never spec-time data.\n */\nexport const RECOGNIZED_REGION_TAGS = [\n 'EMEA',\n 'NAM',\n 'APAC',\n 'LATAM',\n 'MENA',\n 'GLOBAL',\n] as const;\nexport type RecognizedRegionTag = (typeof RECOGNIZED_REGION_TAGS)[number];\n\nconst ISO_COUNTRY_CODE_REGEX = /^[A-Z]{2}$/;\nconst GeographyCodeSchema = z\n .string()\n .trim()\n .refine(\n v =>\n ISO_COUNTRY_CODE_REGEX.test(v) ||\n (RECOGNIZED_REGION_TAGS as readonly string[]).includes(v),\n {\n message: `Geographies must be ISO 3166-1 alpha-2 country codes (exactly 2 uppercase letters, e.g. \"DE\") or one of the recognized region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}.`,\n },\n )\n // Also stated as a DESCRIPTION, not only as a refinement message: `z.toJSONSchema` drops `.refine()`\n // entirely, so a generating model is shown a bare `string` and cannot know the rule. Measured 2026-08-20 —\n // the market-analysis model emitted prose region names here and every entry failed validation.\n .describe(\n `ISO 3166-1 alpha-2 country code (exactly 2 uppercase letters, e.g. \"DE\", \"US\") or one of these exact region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}. Never a country or region NAME.`,\n );\n/** @wildo_source:part:end market.icp.geographic-targeting */\n\n/**\n * Industry / tech-stack tokens — kebab-case codes, not prose.\n * Constrains downstream consumers (ad targeting, segment dashboards)\n * to a stable vocabulary instead of free-form strings.\n */\nconst TaxonomyCodeSchema = z\n .string()\n .trim()\n .regex(/^[a-z0-9-]+$/, {\n message:\n 'Industry / techStack values must be kebab-case codes (e.g. \"fintech\", \"node-js\"), not prose.',\n })\n .describe(\n 'Kebab-case code using only lowercase letters, digits and hyphens (e.g. \"fintech\", \"node-js\", \"project-management\"). Never prose, never spaces, never capitals.',\n );\n\n/**\n * `min <= max` is enforced on every numeric range below via `.refine`.\n * Without this guard, authors can ship `{ min: 50, max: 5 }` (typo /\n * inverted bounds) which silently passes downstream sizing & ad-target\n * normalization.\n */\nconst ORDERED_RANGE_MESSAGE = 'Range `min` must be <= `max`.';\n\nconst FirmographicsSchema = z.object({\n employeeRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n annualRevenueRangeUsd: z\n .object({\n min: z.number().min(0),\n max: z.number().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n industries: z.array(TaxonomyCodeSchema).default([]),\n geographies: z.array(GeographyCodeSchema).default([]),\n techStack: z.array(TaxonomyCodeSchema).default([]),\n fundingStages: z.array(z.enum(FundingStage).systemEnum('FundingStage')).default([]),\n orgMaturity: z.enum(OrgMaturity).systemEnum('OrgMaturity').optional(),\n});\n\nconst DemographicsSchema = z.object({\n ageRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().min(0),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n geographies: z.array(GeographyCodeSchema).default([]),\n roles: z.array(NonEmptyStringSchema).default([]),\n techProficiency: z.enum(TechProficiency).systemEnum('TechProficiency').optional(),\n budgetAuthority: z.enum(BudgetAuthority).systemEnum('BudgetAuthority').optional(),\n /** Free-form life-stage label (e.g. \"early-career\", \"post-exit\"). */\n lifeStage: NonEmptyStringSchema.optional(),\n});\n\nconst PsychographicsSchema = z.object({\n values: z.array(NonEmptyStringSchema).default([]),\n motivations: z.array(NonEmptyStringSchema).default([]),\n fears: z.array(NonEmptyStringSchema).default([]),\n riskTolerance: z.enum(RiskTolerance).systemEnum('RiskTolerance').optional(),\n});\n\nconst ICPLegalEntityProfileSchema = z.object({\n kind: z.literal(ICPArchetype.LEGAL_ENTITY).systemEnum('ICPArchetype'),\n firmographics: FirmographicsSchema,\n});\n\nconst ICPIndividualProfileSchema = z.object({\n kind: z.literal(ICPArchetype.INDIVIDUAL).systemEnum('ICPArchetype'),\n demographics: DemographicsSchema,\n psychographics: PsychographicsSchema,\n});\n\nconst ICPProfileSchema = z.discriminatedUnion('kind', [\n ICPLegalEntityProfileSchema,\n ICPIndividualProfileSchema,\n]);\n\n/**\n * `purposeMix` weights (0..10 each, both can be non-zero\n * simultaneously — the model is two-axis, not either/or).\n *\n * - `adoption` — value of the ICP for evangelism / product fit / PLG\n * reach (a free user who imports the team is adoption-heavy).\n * - `revenue` — direct contribution to ARR / billable seats.\n *\n * `0` means \"this axis carries no weight for this ICP\". For\n * `priority: ANTI_TARGET` ICPs, BOTH axes MUST be `0` — the schema\n * accepts the value, but the snapshot validator rejects any other\n * combination as `INVALID_ANTI_TARGET_PURPOSE_MIX`.\n */\nconst PurposeMixSchema = z.object({\n adoption: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n revenue: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n});\n\n/**\n * Reserved sizing slot for TAM/SAM/SOM authoring. Stays loose\n * (`z.unknown()`) until a real consumer needs it (deferred per the\n * plan's §16). Reserving the field name now prevents schema churn\n * later.\n */\nconst ICPSizingSchema = z.object({\n tam: z.unknown().optional(),\n sam: z.unknown().optional(),\n som: z.unknown().optional(),\n derivation: z.unknown().optional(),\n});\n\n/**\n * @wildo_source:part:start market.icp.config facet:layer:specification facet:family:market\n *\n * Ideal Customer Profile — the central market-targeting record.\n *\n * Single entity covers both organisations and individuals through the\n * `archetype` discriminant + the discriminated `profile` union. The\n * deliberate two-axis weighting (`purposeMix.adoption` × `revenue`)\n * replaces the brittle \"adoption-ICPs vs revenue-ICPs\" split — a\n * champion CTO can be `{ adoption: 9, revenue: 7 }` without\n * duplication.\n *\n * Cross-references are flat strings (`personaRef`, `painRef`,\n * `gainRef`, `jobRef`, `channelRef`, `triggerRef`, `alternativeRef`,\n * `proofRef`, `objectionRef`, `productRef`, `voiceRef`). The\n * `influences[]` graph models real GTM dynamics (a solo PM\n * evangelizing inside their team) so seeding/ripple campaigns can\n * be derived deterministically.\n *\n * Geographic targeting lives in `profile.firmographics.geographies`\n * or `profile.demographics.geographies` — that is the only kind of\n * \"market localization\" the spec models (D15).\n */\nexport const MarketICPConfigSchema = z\n .object({\n /** Stable kebab-case ref (e.g. `'icp-small-team-pmo'`). */\n ref: MarketEntryRefSchema,\n /** Display name for authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n archetype: z.enum(ICPArchetype).systemEnum('ICPArchetype'),\n purposeMix: PurposeMixSchema,\n priority: z.enum(ICPPriority).systemEnum('ICPPriority'),\n profile: ICPProfileSchema,\n /** Personas that participate in this ICP's buying group / decision. */\n buyingGroup: z\n .array(z.object({ personaRef: NonEmptyStringSchema }))\n .default([]),\n jobs: z.array(JobEdgeSchema).default([]),\n pains: z.array(PainEdgeSchema).default([]),\n gains: z.array(GainEdgeSchema).default([]),\n /**\n * `MarketChannelRef[]` — channels through which this ICP is reached.\n * Resolved against `snapshot.channels[]`; orphans flagged as\n * `ORPHAN_REF` (ERROR) by `validateMarketSnapshot`.\n */\n channelRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketTriggerRef[]` — triggers that create buying intent for\n * this ICP. Resolved against `snapshot.triggers[]`.\n */\n triggerRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketAlternativeRef[]` — alternatives this ICP currently chooses\n * over us. Resolved against `snapshot.alternatives[]`.\n */\n alternativeRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketProofRef[]` — proofs that resonate with this ICP. Resolved\n * against `snapshot.proofs[]`.\n */\n proofRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketObjectionRef[]` — objections raised by this ICP. Resolved\n * against `snapshot.objections[]`.\n */\n objectionRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `ProductSpecification` refs (cross-family) the ICP should primarily\n * land on. Empty array = no opinion. Drives upsell/cross-sell\n * narratives and the website's \"which plan for whom\" routing.\n */\n recommendedProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** Ordered next-product path (upsell / cross-sell). */\n upsellPathProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** ICP-to-ICP influence graph (mutual influence is real). */\n influences: z.array(ICPInfluenceEdgeSchema).default([]),\n /** Optional `ToneOfVoice` ref to default messaging to this ICP. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n sizing: ICPSizingSchema.optional(),\n /** Free-form authoring notes (rationale, open questions). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n })\n /**\n * Cross-field invariant: `archetype` and `profile.kind` MUST agree.\n * Catches authoring drift where the discriminant is changed without\n * updating the discriminated `profile` (or vice versa). Without this\n * refinement, a `LEGAL_ENTITY` archetype with an `INDIVIDUAL` profile\n * silently parses (the discriminated union picks the right variant\n * from `profile.kind`) but downstream consumers that switch on\n * `archetype` will branch incorrectly.\n */\n .superRefine((icp, ctx) => {\n if (icp.archetype !== icp.profile.kind) {\n ctx.addIssue({\n code: 'custom',\n path: ['profile', 'kind'],\n message: `MarketICP \\`archetype\\` (${icp.archetype}) and \\`profile.kind\\` (${icp.profile.kind}) must agree.`,\n });\n }\n });\nexport type MarketICPConfig = z.infer<typeof MarketICPConfigSchema>;\n\n/**\n * Authoring (**input**) shape of {@link MarketICPConfigSchema} — what you type at\n * a declaration site, before parsing.\n *\n * Every field carrying a `.default([])` (`jobs`, `pains`, `gains`, `channelRefs`,\n * `triggerRefs`, `alternativeRefs`, `proofRefs`, `objectionRefs`,\n * `recommendedProductRefs`, `upsellPathProductRefs`, `influences`, `notes`) is\n * OPTIONAL here and GUARANTEED on {@link MarketICPConfig}. Pair this type with\n * {@link marketIcpConfig}; do not annotate a raw object literal with it, or the\n * defaults never materialize.\n */\nexport type MarketICPConfigAuthored = z.input<typeof MarketICPConfigSchema>;\n\n/**\n * Author a {@link MarketICPConfig}. **Use this instead of annotating an object\n * literal with `MarketICPConfig`.**\n *\n * WHY THIS FACTORY EXISTS\n * Authored ICPs are consumed on two different paths, and only one of them parses:\n *\n * - The application-creation runtime parses the whole market specification\n * (`MarketSnapshotSchema.parse`), so defaults materialize there.\n * - Authoring helpers such as `inheritFrom()` are called DIRECTLY on the declared\n * constant at module load, with no parse in between — and they spread the\n * collections (`[...icp.jobs]`) without a guard.\n *\n * That second path is why the defaulted collections could not simply be made\n * optional: an omitted `jobs` would reach `inheritFrom` as `undefined` and throw\n * `TypeError: icp.jobs is not iterable` the moment the module is imported. The\n * previous design avoided that by deriving the authoring type from `z.infer` (the\n * OUTPUT shape), which forced authors to hand-write every empty array — safe, but\n * pure boilerplate.\n *\n * Parsing at the declaration site resolves both: the defaults become real before\n * anything can observe the object, so `inheritFrom` is safe even when the author\n * omits a collection, and the self-contained `archetype` / `profile.kind`\n * refinement now fails fast at import time instead of at snapshot assembly.\n *\n * @example\n * export const smallProductTeamIcp = marketIcpConfig({\n * ref: 'icp-small-product-team',\n * archetype: MarketICPArchetype.LEGAL_ENTITY,\n * profile: { kind: MarketICPArchetype.LEGAL_ENTITY, ... },\n * // jobs / pains / gains / *Refs omitted — each defaults to []\n * });\n */\nexport function marketIcpConfig(input: MarketICPConfigAuthored): MarketICPConfig {\n return MarketICPConfigSchema.parse(input);\n}\n/** @wildo_source:part:end market.icp.config */\n"]}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { NonEmptyStringSchema } from './market-references.schemas.js';
6
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
7
7
  /**
8
8
  * @wildo_source:part:start market.job.config facet:layer:specification facet:family:market
9
9
  *
@@ -31,7 +31,7 @@ export var JobKind;
31
31
  })(JobKind || (JobKind = {}));
32
32
  export const MarketJobConfigSchema = z.object({
33
33
  /** Stable kebab-case ref (e.g. `'job-ship-the-week'`). */
34
- ref: NonEmptyStringSchema,
34
+ ref: MarketEntryRefSchema,
35
35
  /** "When …, I want to …, so I can …" statement. */
36
36
  statement: NonEmptyStringSchema,
37
37
  jobKind: z.enum(JobKind).systemEnum('JobKind'),
@@ -1 +1 @@
1
- {"version":3,"file":"market-job.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-job.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAN,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,oCAAyB,CAAA;IACzB,kCAAuB,CAAA;IACvB,4BAAiB,CAAA;AACnB,CAAC,EAJW,OAAO,KAAP,OAAO,QAIlB;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,0DAA0D;IAC1D,GAAG,EAAE,oBAAoB;IACzB,mDAAmD;IACnD,SAAS,EAAE,oBAAoB;IAC/B,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC;IAC9C,oEAAoE;IACpE,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACxC,qDAAqD;IACrD,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1D,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,+CAA+C","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.job.config facet:layer:specification facet:family:market\n *\n * \"Job to be done\" the persona is fundamentally trying to accomplish.\n *\n * Christensen's JTBD framing, refined to three kinds:\n * - **`FUNCTIONAL`** — task completion (ship the week, file taxes,\n * onboard a new hire).\n * - **`EMOTIONAL`** — internal state (feel in control, regain focus,\n * reduce anxiety about deadlines).\n * - **`SOCIAL`** — perceived position (look competent to peers,\n * earn the team's trust, avoid being the bottleneck).\n *\n * `statement` should follow the canonical JTBD frame:\n * *\"When [context], I want to [motivation], so I can [outcome].\"*\n *\n * Jobs are recipient-agnostic — the same `MarketJob` is referenced\n * from multiple ICPs/personas with their own importance weights.\n */\nexport enum JobKind {\n FUNCTIONAL = 'FUNCTIONAL',\n EMOTIONAL = 'EMOTIONAL',\n SOCIAL = 'SOCIAL',\n}\n\nexport const MarketJobConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'job-ship-the-week'`). */\n ref: NonEmptyStringSchema,\n /** \"When …, I want to …, so I can …\" statement. */\n statement: NonEmptyStringSchema,\n jobKind: z.enum(JobKind).systemEnum('JobKind'),\n /** Optional context details that don't fit inside the statement. */\n context: NonEmptyStringSchema.optional(),\n /** Observable signals the job has been done well. */\n successCriteria: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketJobConfig = z.infer<typeof MarketJobConfigSchema>;\n/** @wildo_source:part:end market.job.config */\n"]}
1
+ {"version":3,"file":"market-job.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-job.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEzF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAN,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,oCAAyB,CAAA;IACzB,kCAAuB,CAAA;IACvB,4BAAiB,CAAA;AACnB,CAAC,EAJW,OAAO,KAAP,OAAO,QAIlB;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,0DAA0D;IAC1D,GAAG,EAAE,oBAAoB;IACzB,mDAAmD;IACnD,SAAS,EAAE,oBAAoB;IAC/B,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC;IAC9C,oEAAoE;IACpE,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACxC,qDAAqD;IACrD,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1D,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,+CAA+C","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.job.config facet:layer:specification facet:family:market\n *\n * \"Job to be done\" the persona is fundamentally trying to accomplish.\n *\n * Christensen's JTBD framing, refined to three kinds:\n * - **`FUNCTIONAL`** — task completion (ship the week, file taxes,\n * onboard a new hire).\n * - **`EMOTIONAL`** — internal state (feel in control, regain focus,\n * reduce anxiety about deadlines).\n * - **`SOCIAL`** — perceived position (look competent to peers,\n * earn the team's trust, avoid being the bottleneck).\n *\n * `statement` should follow the canonical JTBD frame:\n * *\"When [context], I want to [motivation], so I can [outcome].\"*\n *\n * Jobs are recipient-agnostic — the same `MarketJob` is referenced\n * from multiple ICPs/personas with their own importance weights.\n */\nexport enum JobKind {\n FUNCTIONAL = 'FUNCTIONAL',\n EMOTIONAL = 'EMOTIONAL',\n SOCIAL = 'SOCIAL',\n}\n\nexport const MarketJobConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'job-ship-the-week'`). */\n ref: MarketEntryRefSchema,\n /** \"When …, I want to …, so I can …\" statement. */\n statement: NonEmptyStringSchema,\n jobKind: z.enum(JobKind).systemEnum('JobKind'),\n /** Optional context details that don't fit inside the statement. */\n context: NonEmptyStringSchema.optional(),\n /** Observable signals the job has been done well. */\n successCriteria: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketJobConfig = z.infer<typeof MarketJobConfigSchema>;\n/** @wildo_source:part:end market.job.config */\n"]}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { NonEmptyStringSchema } from './market-references.schemas.js';
6
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
7
7
  /**
8
8
  * @wildo_source:part:start market.message-template.config facet:layer:specification facet:family:market
9
9
  *
@@ -63,7 +63,7 @@ export var MarketMessageRequiredInput;
63
63
  })(MarketMessageRequiredInput || (MarketMessageRequiredInput = {}));
64
64
  export const MarketMessageTemplateConfigSchema = z.object({
65
65
  /** Stable kebab-case ref (e.g. `'tmpl-landing-icp-hero'`). */
66
- ref: NonEmptyStringSchema,
66
+ ref: MarketEntryRefSchema,
67
67
  name: NonEmptyStringSchema,
68
68
  description: NonEmptyStringSchema,
69
69
  outputKind: z.enum(MarketMessageOutputKind).systemEnum('MarketMessageOutputKind'),
@@ -1 +1 @@
1
- {"version":3,"file":"market-message-template.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-message-template.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,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["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.message-template.config facet:layer:specification facet:family:market\n *\n * Reusable prompt template for market generation outputs (landing\n * page, email, in-app banner, comparison page, objection response).\n *\n * Phase 2 ships the **schema + snapshot slot reservation only**;\n * authoring of templates and the market generation CLI consumer land\n * in Phase 4 (§10.2 / §10.4 of the plan). The lock-now / fill-later\n * pattern keeps the snapshot shape stable so Phase-4 work doesn't\n * churn the contract.\n *\n * Templates are mustache-style, English-only prose. The template MAY\n * include the `{{output_language}}` placeholder; the market generation\n * CLI substitutes the BCP-47 tag passed via `--output-language` and\n * the LLM produces the final output in that language. **The template\n * itself is never translated** — translation happens at LLM output\n * time (D15, §12).\n *\n * `requiredInputs` declares which refs the caller must provide\n * before the template can be rendered (e.g. `['icpRef', 'benefitRef']`\n * for a benefit-spotlight email). Phase-4 agents use this list to\n * fail loudly when an input is missing instead of producing\n * \"[object Object]\" copy.\n */\nexport enum MarketMessageOutputKind {\n LANDING_PAGE = 'LANDING_PAGE',\n EMAIL = 'EMAIL',\n IN_APP_BANNER = 'IN_APP_BANNER',\n COMPARISON_PAGE = 'COMPARISON_PAGE',\n OBJECTION_RESPONSE = 'OBJECTION_RESPONSE',\n}\n\n/**\n * Required-input placeholder tokens that a `MarketMessageTemplate`\n * declares it needs at render time.\n *\n * **Naming exception:** the **enum keys** follow the framework's\n * SCREAMING_SNAKE convention (`ICP_REF`, `BENEFIT_REF`, …), but the\n * **enum values** intentionally use camelCase (`'icpRef'`,\n * `'benefitRef'`, …). The values are the literal Mustache placeholder\n * shapes used inside `promptTemplate` (e.g. `{{icp.name}}` requires\n * the `'icpRef'` input — not `'ICP_REF'`). Renderers compare values\n * against placeholder names, so the camelCase form is load-bearing.\n *\n * Authors should always reference the enum keys\n * (`MarketMessageRequiredInput.ICP_REF`) rather than the raw camelCase\n * strings — this preserves refactor safety and autocomplete despite\n * the value-shape exception.\n */\nexport enum MarketMessageRequiredInput {\n ICP_REF = 'icpRef',\n BENEFIT_REF = 'benefitRef',\n CHANNEL_REF = 'channelRef',\n OBJECTION_REF = 'objectionRef',\n}\n\nexport const MarketMessageTemplateConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'tmpl-landing-icp-hero'`). */\n ref: NonEmptyStringSchema,\n name: NonEmptyStringSchema,\n description: NonEmptyStringSchema,\n outputKind: z.enum(MarketMessageOutputKind).systemEnum('MarketMessageOutputKind'),\n /**\n * Mustache-style prompt body in English. Recognized placeholders\n * include `{{icp.name}}`, `{{benefit.claim}}`, `{{output_language}}`,\n * etc. The set of recognized placeholders is finalised in Phase 4\n * together with the agent implementation.\n */\n promptTemplate: NonEmptyStringSchema,\n requiredInputs: z.array(z.enum(MarketMessageRequiredInput).systemEnum('MarketMessageRequiredInput')).default([]),\n /** Optional `ToneOfVoiceRef` to bias the rendered output. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketMessageTemplateConfig = z.infer<typeof MarketMessageTemplateConfigSchema>;\n/** @wildo_source:part:end market.message-template.config */\n"]}
1
+ {"version":3,"file":"market-message-template.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-message-template.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAN,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,wDAA6B,CAAA;IAC7B,0CAAe,CAAA;IACf,0DAA+B,CAAA;IAC/B,8DAAmC,CAAA;IACnC,oEAAyC,CAAA;AAC3C,CAAC,EANW,uBAAuB,KAAvB,uBAAuB,QAMlC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,gDAAkB,CAAA;IAClB,wDAA0B,CAAA;IAC1B,wDAA0B,CAAA;IAC1B,4DAA8B,CAAA;AAChC,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,8DAA8D;IAC9D,GAAG,EAAE,oBAAoB;IACzB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,UAAU,CAAC,yBAAyB,CAAC;IACjF;;;;;OAKG;IACH,cAAc,EAAE,oBAAoB;IACpC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChH,6DAA6D;IAC7D,iBAAiB,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAClD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,4DAA4D","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.message-template.config facet:layer:specification facet:family:market\n *\n * Reusable prompt template for market generation outputs (landing\n * page, email, in-app banner, comparison page, objection response).\n *\n * Phase 2 ships the **schema + snapshot slot reservation only**;\n * authoring of templates and the market generation CLI consumer land\n * in Phase 4 (§10.2 / §10.4 of the plan). The lock-now / fill-later\n * pattern keeps the snapshot shape stable so Phase-4 work doesn't\n * churn the contract.\n *\n * Templates are mustache-style, English-only prose. The template MAY\n * include the `{{output_language}}` placeholder; the market generation\n * CLI substitutes the BCP-47 tag passed via `--output-language` and\n * the LLM produces the final output in that language. **The template\n * itself is never translated** — translation happens at LLM output\n * time (D15, §12).\n *\n * `requiredInputs` declares which refs the caller must provide\n * before the template can be rendered (e.g. `['icpRef', 'benefitRef']`\n * for a benefit-spotlight email). Phase-4 agents use this list to\n * fail loudly when an input is missing instead of producing\n * \"[object Object]\" copy.\n */\nexport enum MarketMessageOutputKind {\n LANDING_PAGE = 'LANDING_PAGE',\n EMAIL = 'EMAIL',\n IN_APP_BANNER = 'IN_APP_BANNER',\n COMPARISON_PAGE = 'COMPARISON_PAGE',\n OBJECTION_RESPONSE = 'OBJECTION_RESPONSE',\n}\n\n/**\n * Required-input placeholder tokens that a `MarketMessageTemplate`\n * declares it needs at render time.\n *\n * **Naming exception:** the **enum keys** follow the framework's\n * SCREAMING_SNAKE convention (`ICP_REF`, `BENEFIT_REF`, …), but the\n * **enum values** intentionally use camelCase (`'icpRef'`,\n * `'benefitRef'`, …). The values are the literal Mustache placeholder\n * shapes used inside `promptTemplate` (e.g. `{{icp.name}}` requires\n * the `'icpRef'` input — not `'ICP_REF'`). Renderers compare values\n * against placeholder names, so the camelCase form is load-bearing.\n *\n * Authors should always reference the enum keys\n * (`MarketMessageRequiredInput.ICP_REF`) rather than the raw camelCase\n * strings — this preserves refactor safety and autocomplete despite\n * the value-shape exception.\n */\nexport enum MarketMessageRequiredInput {\n ICP_REF = 'icpRef',\n BENEFIT_REF = 'benefitRef',\n CHANNEL_REF = 'channelRef',\n OBJECTION_REF = 'objectionRef',\n}\n\nexport const MarketMessageTemplateConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'tmpl-landing-icp-hero'`). */\n ref: MarketEntryRefSchema,\n name: NonEmptyStringSchema,\n description: NonEmptyStringSchema,\n outputKind: z.enum(MarketMessageOutputKind).systemEnum('MarketMessageOutputKind'),\n /**\n * Mustache-style prompt body in English. Recognized placeholders\n * include `{{icp.name}}`, `{{benefit.claim}}`, `{{output_language}}`,\n * etc. The set of recognized placeholders is finalised in Phase 4\n * together with the agent implementation.\n */\n promptTemplate: NonEmptyStringSchema,\n requiredInputs: z.array(z.enum(MarketMessageRequiredInput).systemEnum('MarketMessageRequiredInput')).default([]),\n /** Optional `ToneOfVoiceRef` to bias the rendered output. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketMessageTemplateConfig = z.infer<typeof MarketMessageTemplateConfigSchema>;\n/** @wildo_source:part:end market.message-template.config */\n"]}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { NonEmptyStringSchema } from './market-references.schemas.js';
6
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
7
7
  /**
8
8
  * @wildo_source:part:start market.objection.kind facet:layer:specification facet:family:market
9
9
  *
@@ -59,7 +59,7 @@ export var ObjectionKind;
59
59
  */
60
60
  export const MarketObjectionConfigSchema = z.object({
61
61
  /** Stable kebab-case ref (e.g. `'objection-pricing-too-high'`). */
62
- ref: NonEmptyStringSchema,
62
+ ref: MarketEntryRefSchema,
63
63
  objectionKind: z.enum(ObjectionKind).systemEnum('ObjectionKind'),
64
64
  /** The objection as the buyer raises it. */
65
65
  statement: NonEmptyStringSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"market-objection.schemas.js","sourceRoot":"","s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C,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7D,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,qDAAqD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.objection.kind facet:layer:specification facet:family:market\n *\n * Eight archetypes of objections raised during the buying journey.\n *\n * Captured separately from `pains` (jobs-to-be-done) because objections\n * are about **us specifically**, not the buyer's underlying problem:\n * a buyer can suffer the same pain we relieve and still object on\n * `PRICING`, `SECURITY`, `MIGRATION_COST`, etc.\n *\n * The `response` field on `MarketObjectionConfig` is the canonical\n * counter — written once in the spec, reused everywhere (sales emails,\n * landing pages, FAQ generation, conversation enablement).\n */\nexport enum ObjectionKind {\n PRICING = 'PRICING',\n SECURITY = 'SECURITY',\n COMPLIANCE = 'COMPLIANCE',\n FEATURE_GAP = 'FEATURE_GAP',\n MIGRATION_COST = 'MIGRATION_COST',\n TRUST = 'TRUST',\n ORG_FIT = 'ORG_FIT',\n TIMING = 'TIMING',\n}\n/** @wildo_source:part:end market.objection.kind */\n\n/**\n * @wildo_source:part:start market.objection.config facet:layer:specification facet:family:market\n *\n * A common objection raised by an ICP / persona during the buying\n * journey, plus the canonical response.\n *\n * The validator surfaces `OBJECTION_PROOF_BENEFIT_MISMATCH` (WARN)\n * when an objection cites `proofRefs[]` but the union of those proofs'\n * `supportsBenefitRefs[]` does not intersect with the objection's own\n * `relatedBenefitRefs[]`. The semantic check: \"you say this proof\n * supports your response, but the proof doesn't actually back any of\n * the benefits this objection is about\". Catches authoring drift.\n *\n * - `statement` — the objection as the buyer raises it (verbatim, in\n * their voice).\n * - `response` — the canonical counter, in our voice. Should NOT\n * over-promise; the validator accepts any non-empty string but\n * downstream skill `market-proof-and-objection` documents response\n * conventions.\n * - `raisedByIcpRefs[]` / `raisedByPersonaRefs[]` — at least one ICP\n * ref is required (an objection nobody raises is not actionable).\n * Persona refs are optional (use when the objection is\n * persona-specific, e.g. CFO raises PRICING vs CISO raises SECURITY).\n *\n * `proofRefs[]` and `relatedBenefitRefs[]` are validator-checked for\n * orphans + the semantic intersection above.\n */\nexport const MarketObjectionConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'objection-pricing-too-high'`). */\n ref: NonEmptyStringSchema,\n objectionKind: z.enum(ObjectionKind).systemEnum('ObjectionKind'),\n /** The objection as the buyer raises it. */\n statement: NonEmptyStringSchema,\n /** ICPs that raise this objection. At least one required. */\n raisedByIcpRefs: z.array(NonEmptyStringSchema).min(1),\n /** Personas that raise this objection. Optional (when persona-specific). */\n raisedByPersonaRefs: z.array(NonEmptyStringSchema).default([]),\n /** Canonical response copy in our voice. */\n response: NonEmptyStringSchema,\n /** Proofs that back the response. */\n proofRefs: z.array(NonEmptyStringSchema).default([]),\n /** Benefits this objection is about (used for the proof/benefit semantic check). */\n relatedBenefitRefs: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketObjectionConfig = z.infer<typeof MarketObjectionConfigSchema>;\n/** @wildo_source:part:end market.objection.config */\n"]}
1
+ {"version":3,"file":"market-objection.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-objection.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEzF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,4CAA2B,CAAA;IAC3B,kDAAiC,CAAA;IACjC,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;AACD,mDAAmD;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,mEAAmE;IACnE,GAAG,EAAE,oBAAoB;IACzB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC;IAChE,4CAA4C;IAC5C,SAAS,EAAE,oBAAoB;IAC/B,6DAA6D;IAC7D,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACrD,4EAA4E;IAC5E,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9D,4CAA4C;IAC5C,QAAQ,EAAE,oBAAoB;IAC9B,qCAAqC;IACrC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACpD,oFAAoF;IACpF,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7D,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,qDAAqD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.objection.kind facet:layer:specification facet:family:market\n *\n * Eight archetypes of objections raised during the buying journey.\n *\n * Captured separately from `pains` (jobs-to-be-done) because objections\n * are about **us specifically**, not the buyer's underlying problem:\n * a buyer can suffer the same pain we relieve and still object on\n * `PRICING`, `SECURITY`, `MIGRATION_COST`, etc.\n *\n * The `response` field on `MarketObjectionConfig` is the canonical\n * counter — written once in the spec, reused everywhere (sales emails,\n * landing pages, FAQ generation, conversation enablement).\n */\nexport enum ObjectionKind {\n PRICING = 'PRICING',\n SECURITY = 'SECURITY',\n COMPLIANCE = 'COMPLIANCE',\n FEATURE_GAP = 'FEATURE_GAP',\n MIGRATION_COST = 'MIGRATION_COST',\n TRUST = 'TRUST',\n ORG_FIT = 'ORG_FIT',\n TIMING = 'TIMING',\n}\n/** @wildo_source:part:end market.objection.kind */\n\n/**\n * @wildo_source:part:start market.objection.config facet:layer:specification facet:family:market\n *\n * A common objection raised by an ICP / persona during the buying\n * journey, plus the canonical response.\n *\n * The validator surfaces `OBJECTION_PROOF_BENEFIT_MISMATCH` (WARN)\n * when an objection cites `proofRefs[]` but the union of those proofs'\n * `supportsBenefitRefs[]` does not intersect with the objection's own\n * `relatedBenefitRefs[]`. The semantic check: \"you say this proof\n * supports your response, but the proof doesn't actually back any of\n * the benefits this objection is about\". Catches authoring drift.\n *\n * - `statement` — the objection as the buyer raises it (verbatim, in\n * their voice).\n * - `response` — the canonical counter, in our voice. Should NOT\n * over-promise; the validator accepts any non-empty string but\n * downstream skill `market-proof-and-objection` documents response\n * conventions.\n * - `raisedByIcpRefs[]` / `raisedByPersonaRefs[]` — at least one ICP\n * ref is required (an objection nobody raises is not actionable).\n * Persona refs are optional (use when the objection is\n * persona-specific, e.g. CFO raises PRICING vs CISO raises SECURITY).\n *\n * `proofRefs[]` and `relatedBenefitRefs[]` are validator-checked for\n * orphans + the semantic intersection above.\n */\nexport const MarketObjectionConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'objection-pricing-too-high'`). */\n ref: MarketEntryRefSchema,\n objectionKind: z.enum(ObjectionKind).systemEnum('ObjectionKind'),\n /** The objection as the buyer raises it. */\n statement: NonEmptyStringSchema,\n /** ICPs that raise this objection. At least one required. */\n raisedByIcpRefs: z.array(NonEmptyStringSchema).min(1),\n /** Personas that raise this objection. Optional (when persona-specific). */\n raisedByPersonaRefs: z.array(NonEmptyStringSchema).default([]),\n /** Canonical response copy in our voice. */\n response: NonEmptyStringSchema,\n /** Proofs that back the response. */\n proofRefs: z.array(NonEmptyStringSchema).default([]),\n /** Benefits this objection is about (used for the proof/benefit semantic check). */\n relatedBenefitRefs: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketObjectionConfig = z.infer<typeof MarketObjectionConfigSchema>;\n/** @wildo_source:part:end market.objection.config */\n"]}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { NonEmptyStringSchema } from './market-references.schemas.js';
6
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
7
7
  /**
8
8
  * @wildo_source:part:start market.pain.config facet:layer:specification facet:family:market
9
9
  *
@@ -35,7 +35,7 @@ export var PainKind;
35
35
  })(PainKind || (PainKind = {}));
36
36
  export const MarketPainConfigSchema = z.object({
37
37
  /** Stable kebab-case ref (e.g. `'pain-tool-fatigue'`). */
38
- ref: NonEmptyStringSchema,
38
+ ref: MarketEntryRefSchema,
39
39
  /** Plain-English statement of the undesired outcome. */
40
40
  statement: NonEmptyStringSchema,
41
41
  painKind: z.enum(PainKind).systemEnum('PainKind'),
@@ -1 +1 @@
1
- {"version":3,"file":"market-pain.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-pain.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,uCAA2B,CAAA;AAC7B,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,0DAA0D;IAC1D,GAAG,EAAE,oBAAoB;IACzB,wDAAwD;IACxD,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACjD,oEAAoE;IACpE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,gDAAgD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.pain.config facet:layer:specification facet:family:market\n *\n * Undesired outcome / obstacle / risk / cost felt by an ICP or persona\n * (Strategyzer Customer Profile — pain side).\n *\n * `painKind` discriminates the four flavors so consumers (positioning\n * pages, AI prompts) can pick the right framing language:\n * - **`OBSTACLE`** — blocks them from doing the job at all.\n * - **`RISK`** — possible negative outcome (downside if it goes wrong).\n * - **`COST`** — money / time / effort burden the job currently incurs.\n * - **`FRUSTRATION`** — emotional / social pain (feeling stuck,\n * embarrassed, bored).\n *\n * Pains are recipient-agnostic — the same `MarketPain` is referenced\n * from multiple ICPs/personas with their own severity weights, and\n * from `FeatureBenefit.relieves[]` (Phase 2) with a relief degree.\n *\n * `evidence` should be short concrete observations, not abstract\n * claims (\"3 weekly status meetings consume 4h\" beats \"too many\n * meetings\").\n */\nexport enum PainKind {\n OBSTACLE = 'OBSTACLE',\n RISK = 'RISK',\n COST = 'COST',\n FRUSTRATION = 'FRUSTRATION',\n}\n\nexport const MarketPainConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'pain-tool-fatigue'`). */\n ref: NonEmptyStringSchema,\n /** Plain-English statement of the undesired outcome. */\n statement: NonEmptyStringSchema,\n painKind: z.enum(PainKind).systemEnum('PainKind'),\n /** Concrete supporting observations (interview quotes, metrics). */\n evidence: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketPainConfig = z.infer<typeof MarketPainConfigSchema>;\n/** @wildo_source:part:end market.pain.config */\n"]}
1
+ {"version":3,"file":"market-pain.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-pain.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,uCAA2B,CAAA;AAC7B,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,0DAA0D;IAC1D,GAAG,EAAE,oBAAoB;IACzB,wDAAwD;IACxD,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACjD,oEAAoE;IACpE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,gDAAgD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas';\n\n/**\n * @wildo_source:part:start market.pain.config facet:layer:specification facet:family:market\n *\n * Undesired outcome / obstacle / risk / cost felt by an ICP or persona\n * (Strategyzer Customer Profile — pain side).\n *\n * `painKind` discriminates the four flavors so consumers (positioning\n * pages, AI prompts) can pick the right framing language:\n * - **`OBSTACLE`** — blocks them from doing the job at all.\n * - **`RISK`** — possible negative outcome (downside if it goes wrong).\n * - **`COST`** — money / time / effort burden the job currently incurs.\n * - **`FRUSTRATION`** — emotional / social pain (feeling stuck,\n * embarrassed, bored).\n *\n * Pains are recipient-agnostic — the same `MarketPain` is referenced\n * from multiple ICPs/personas with their own severity weights, and\n * from `FeatureBenefit.relieves[]` (Phase 2) with a relief degree.\n *\n * `evidence` should be short concrete observations, not abstract\n * claims (\"3 weekly status meetings consume 4h\" beats \"too many\n * meetings\").\n */\nexport enum PainKind {\n OBSTACLE = 'OBSTACLE',\n RISK = 'RISK',\n COST = 'COST',\n FRUSTRATION = 'FRUSTRATION',\n}\n\nexport const MarketPainConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'pain-tool-fatigue'`). */\n ref: MarketEntryRefSchema,\n /** Plain-English statement of the undesired outcome. */\n statement: NonEmptyStringSchema,\n painKind: z.enum(PainKind).systemEnum('PainKind'),\n /** Concrete supporting observations (interview quotes, metrics). */\n evidence: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketPainConfig = z.infer<typeof MarketPainConfigSchema>;\n/** @wildo_source:part:end market.pain.config */\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"market-persona.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/market/market-persona.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAUlC;;;;;;;;;;;;;;;;GAgBG;AACH,oBAAY,YAAY;IACtB,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;CAChD;AAED;;;;GAIG;AACH,oBAAY,OAAO;IACjB,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgCpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,mDAAmD"}
1
+ {"version":3,"file":"market-persona.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/market/market-persona.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAWlC;;;;;;;;;;;;;;;;GAgBG;AACH,oBAAY,YAAY;IACtB,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;CAChD;AAED;;;;GAIG;AACH,oBAAY,OAAO;IACjB,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgCpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,mDAAmD"}
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
4
4
  import '@wildo-ai/zod-decorators';
5
5
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
6
- import { GainEdgeSchema, JobEdgeSchema, NonEmptyStringSchema, PainEdgeSchema, } from './market-references.schemas.js';
6
+ import { GainEdgeSchema, JobEdgeSchema, NonEmptyStringSchema, PainEdgeSchema, MarketEntryRefSchema, } from './market-references.schemas.js';
7
7
  /**
8
8
  * Where the persona sits relative to the ICP they belong to.
9
9
  *
@@ -64,7 +64,7 @@ export var DmuRole;
64
64
  */
65
65
  export const MarketPersonaConfigSchema = z.object({
66
66
  /** Stable kebab-case ref (e.g. `'persona-pmo-lead'`). */
67
- ref: NonEmptyStringSchema,
67
+ ref: MarketEntryRefSchema,
68
68
  /** Display name for authoring tools and prompt blocks. */
69
69
  name: NonEmptyStringSchema,
70
70
  personaScope: z.enum(PersonaScope).systemEnum('PersonaScope'),
@@ -1 +1 @@
1
- {"version":3,"file":"market-persona.schemas.js","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EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,wEAAwE;QACxE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,mEAAmE;QACnE,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3D,wEAAwE;QACxE,UAAU,EAAE,oBAAoB,CAAC,QAAQ,EAAE;KAC5C,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1C;;;;OAIG;IACH,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACtD,yEAAyE;IACzE,iBAAiB,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAClD,6DAA6D;IAC7D,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,mDAAmD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport {\n GainEdgeSchema,\n JobEdgeSchema,\n NonEmptyStringSchema,\n PainEdgeSchema,\n} from './market-references.schemas';\n\n/**\n * Where the persona sits relative to the ICP they belong to.\n *\n * - **`BUYING_GROUP_MEMBER`** — a role inside an organisation-ICP's\n * buying committee. Carries a required `dmuRole` (validated by the\n * snapshot validator, not by `superRefine`, to keep the schema\n * introspectable).\n * - **`INDIVIDUAL_SELF`** — the individual ICP and the persona are\n * the same human (solo founder, indie maker, freelancer).\n * - **`INDIVIDUAL_INFLUENCER`** — adjacent to an individual ICP\n * (mentor, peer, spouse, accountant) and meaningfully shapes the\n * purchase decision.\n *\n * The name `MarketPersona` is deliberate (not \"actor\") to avoid\n * clashing with `primaryActors` already used in\n * `ModuleBusinessSemantics`.\n */\nexport enum PersonaScope {\n BUYING_GROUP_MEMBER = 'BUYING_GROUP_MEMBER',\n INDIVIDUAL_SELF = 'INDIVIDUAL_SELF',\n INDIVIDUAL_INFLUENCER = 'INDIVIDUAL_INFLUENCER',\n}\n\n/**\n * Decision-Making Unit role inside the buying committee\n * (Forrester / Gartner taxonomy). Required when\n * `personaScope === BUYING_GROUP_MEMBER`.\n */\nexport enum DmuRole {\n ECONOMIC_BUYER = 'ECONOMIC_BUYER',\n TECHNICAL_BUYER = 'TECHNICAL_BUYER',\n CHAMPION = 'CHAMPION',\n END_USER = 'END_USER',\n INFLUENCER = 'INFLUENCER',\n BLOCKER = 'BLOCKER',\n GATEKEEPER = 'GATEKEEPER',\n}\n\n/**\n * @wildo_source:part:start market.persona.config facet:layer:specification facet:family:market\n *\n * The human / role we actually reach in the market — distinct from the\n * `MarketICP`, which is the *target unit* (org or individual). For\n * organisations, several personas typically belong to one ICP (the\n * buying committee). For individuals, the persona is usually the same\n * human (`INDIVIDUAL_SELF`) plus optional `INDIVIDUAL_INFLUENCER`s.\n *\n * Personas inherit their parent ICP's referenced sets through plain\n * JS object spread + the `inheritFrom(parentIcp)` helper — there is\n * no formal override DSL. Duplicate edges that result from careless\n * spreading are flagged by `validateMarketSnapshot` as\n * `DUPLICATE_EDGE_PER_ENTITY` (severity WARN).\n *\n * Cross-field invariant — `dmuRole` MUST be set when\n * `personaScope === BUYING_GROUP_MEMBER`. The check lives in\n * `validateMarketSnapshot` (not in a `superRefine` here) so the\n * schema stays a clean `z.object` for downstream introspection.\n */\nexport const MarketPersonaConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'persona-pmo-lead'`). */\n ref: NonEmptyStringSchema,\n /** Display name for authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n personaScope: z.enum(PersonaScope).systemEnum('PersonaScope'),\n /** Required when `personaScope === BUYING_GROUP_MEMBER` (validated downstream). */\n dmuRole: z.enum(DmuRole).systemEnum('DmuRole').optional(),\n /** ICPs this persona belongs to. At least one. */\n belongsToIcpRefs: z.array(NonEmptyStringSchema).min(1),\n profile: z.object({\n /** Common job titles this persona shows up under (for ad targeting). */\n titleVariations: z.array(NonEmptyStringSchema).default([]),\n /** Day-to-day responsibilities relevant to the buying decision. */\n responsibilities: z.array(NonEmptyStringSchema).default([]),\n /** Free-form background (career path, technical depth, motivations). */\n background: NonEmptyStringSchema.optional(),\n }),\n jobs: z.array(JobEdgeSchema).default([]),\n pains: z.array(PainEdgeSchema).default([]),\n gains: z.array(GainEdgeSchema).default([]),\n /**\n * `MarketChannelRef[]` — channels through which this persona is\n * reached. Resolved against `snapshot.channels[]`; orphans flagged\n * as `ORPHAN_REF` (ERROR) by `validateMarketSnapshot`.\n */\n channelRefs: z.array(NonEmptyStringSchema).default([]),\n /** Optional `ToneOfVoice` ref preferred when addressing this persona. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n /** Free-form authoring notes (rationale, open questions). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketPersonaConfig = z.infer<typeof MarketPersonaConfigSchema>;\n/** @wildo_source:part:end market.persona.config */\n"]}
1
+ {"version":3,"file":"market-persona.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-persona.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0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,mEAAmE;QACnE,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3D,wEAAwE;QACxE,UAAU,EAAE,oBAAoB,CAAC,QAAQ,EAAE;KAC5C,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1C;;;;OAIG;IACH,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACtD,yEAAyE;IACzE,iBAAiB,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAClD,6DAA6D;IAC7D,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,mDAAmD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport {\n GainEdgeSchema,\n JobEdgeSchema,\n NonEmptyStringSchema,\n PainEdgeSchema,\n MarketEntryRefSchema,\n} from './market-references.schemas';\n\n/**\n * Where the persona sits relative to the ICP they belong to.\n *\n * - **`BUYING_GROUP_MEMBER`** — a role inside an organisation-ICP's\n * buying committee. Carries a required `dmuRole` (validated by the\n * snapshot validator, not by `superRefine`, to keep the schema\n * introspectable).\n * - **`INDIVIDUAL_SELF`** — the individual ICP and the persona are\n * the same human (solo founder, indie maker, freelancer).\n * - **`INDIVIDUAL_INFLUENCER`** — adjacent to an individual ICP\n * (mentor, peer, spouse, accountant) and meaningfully shapes the\n * purchase decision.\n *\n * The name `MarketPersona` is deliberate (not \"actor\") to avoid\n * clashing with `primaryActors` already used in\n * `ModuleBusinessSemantics`.\n */\nexport enum PersonaScope {\n BUYING_GROUP_MEMBER = 'BUYING_GROUP_MEMBER',\n INDIVIDUAL_SELF = 'INDIVIDUAL_SELF',\n INDIVIDUAL_INFLUENCER = 'INDIVIDUAL_INFLUENCER',\n}\n\n/**\n * Decision-Making Unit role inside the buying committee\n * (Forrester / Gartner taxonomy). Required when\n * `personaScope === BUYING_GROUP_MEMBER`.\n */\nexport enum DmuRole {\n ECONOMIC_BUYER = 'ECONOMIC_BUYER',\n TECHNICAL_BUYER = 'TECHNICAL_BUYER',\n CHAMPION = 'CHAMPION',\n END_USER = 'END_USER',\n INFLUENCER = 'INFLUENCER',\n BLOCKER = 'BLOCKER',\n GATEKEEPER = 'GATEKEEPER',\n}\n\n/**\n * @wildo_source:part:start market.persona.config facet:layer:specification facet:family:market\n *\n * The human / role we actually reach in the market — distinct from the\n * `MarketICP`, which is the *target unit* (org or individual). For\n * organisations, several personas typically belong to one ICP (the\n * buying committee). For individuals, the persona is usually the same\n * human (`INDIVIDUAL_SELF`) plus optional `INDIVIDUAL_INFLUENCER`s.\n *\n * Personas inherit their parent ICP's referenced sets through plain\n * JS object spread + the `inheritFrom(parentIcp)` helper — there is\n * no formal override DSL. Duplicate edges that result from careless\n * spreading are flagged by `validateMarketSnapshot` as\n * `DUPLICATE_EDGE_PER_ENTITY` (severity WARN).\n *\n * Cross-field invariant — `dmuRole` MUST be set when\n * `personaScope === BUYING_GROUP_MEMBER`. The check lives in\n * `validateMarketSnapshot` (not in a `superRefine` here) so the\n * schema stays a clean `z.object` for downstream introspection.\n */\nexport const MarketPersonaConfigSchema = z.object({\n /** Stable kebab-case ref (e.g. `'persona-pmo-lead'`). */\n ref: MarketEntryRefSchema,\n /** Display name for authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n personaScope: z.enum(PersonaScope).systemEnum('PersonaScope'),\n /** Required when `personaScope === BUYING_GROUP_MEMBER` (validated downstream). */\n dmuRole: z.enum(DmuRole).systemEnum('DmuRole').optional(),\n /** ICPs this persona belongs to. At least one. */\n belongsToIcpRefs: z.array(NonEmptyStringSchema).min(1),\n profile: z.object({\n /** Common job titles this persona shows up under (for ad targeting). */\n titleVariations: z.array(NonEmptyStringSchema).default([]),\n /** Day-to-day responsibilities relevant to the buying decision. */\n responsibilities: z.array(NonEmptyStringSchema).default([]),\n /** Free-form background (career path, technical depth, motivations). */\n background: NonEmptyStringSchema.optional(),\n }),\n jobs: z.array(JobEdgeSchema).default([]),\n pains: z.array(PainEdgeSchema).default([]),\n gains: z.array(GainEdgeSchema).default([]),\n /**\n * `MarketChannelRef[]` — channels through which this persona is\n * reached. Resolved against `snapshot.channels[]`; orphans flagged\n * as `ORPHAN_REF` (ERROR) by `validateMarketSnapshot`.\n */\n channelRefs: z.array(NonEmptyStringSchema).default([]),\n /** Optional `ToneOfVoice` ref preferred when addressing this persona. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n /** Free-form authoring notes (rationale, open questions). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n});\nexport type MarketPersonaConfig = z.infer<typeof MarketPersonaConfigSchema>;\n/** @wildo_source:part:end market.persona.config */\n"]}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas.js';
3
- import { NonEmptyStringSchema } from './market-references.schemas.js';
3
+ import { NonEmptyStringSchema, MarketEntryRefSchema } from './market-references.schemas.js';
4
4
  /**
5
5
  * @wildo_source:part:start market.positioning.config facet:layer:specification facet:family:market
6
6
  *
@@ -50,7 +50,7 @@ export const PositioningAlternativeContrastSchema = z.object({
50
50
  });
51
51
  export const MarketPositioningConfigSchema = z.object({
52
52
  /** Stable kebab-case ref (e.g. `'positioning-icp-small-team-pmo'`). */
53
- ref: NonEmptyStringSchema,
53
+ ref: MarketEntryRefSchema,
54
54
  /**
55
55
  * Target ICP. The validator checks the back-link
56
56
  * (`MISSING_POSITIONING_FOR_ICP`) for `CORE`/`EXPANSION` ICPs.