@wildo-ai/saas-specifications 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (950) hide show
  1. package/dist/assurance/external-framework-mapping.json +1228 -0
  2. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +34 -0
  3. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -0
  4. package/dist/esm/_core/application-maturity/application-maturity-validation.js +66 -0
  5. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -0
  6. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts +3 -0
  7. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -0
  8. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +48 -0
  9. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -0
  10. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +201 -0
  11. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +306 -0
  13. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -0
  14. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +304 -0
  15. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -0
  16. package/dist/esm/_core/application-specification-family-identity.schemas.js +314 -0
  17. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -0
  18. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +2 -1
  19. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js +4 -1
  21. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js.map +1 -1
  22. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
  23. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +5 -4
  24. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
  25. package/dist/esm/_core/assertions/assertion-specification.schemas.js +4 -1
  26. package/dist/esm/_core/assertions/assertion-specification.schemas.js.map +1 -1
  27. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +5 -4
  28. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-asset.schemas.js +7 -4
  30. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  31. package/dist/esm/_core/brand/brand-audience.schemas.d.ts +31 -0
  32. package/dist/esm/_core/brand/brand-audience.schemas.d.ts.map +1 -0
  33. package/dist/esm/_core/brand/brand-audience.schemas.js +29 -0
  34. package/dist/esm/_core/brand/brand-audience.schemas.js.map +1 -0
  35. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +3 -2
  36. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
  37. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js +5 -2
  38. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js.map +1 -1
  39. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +4 -4
  40. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +12 -9
  41. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
  42. package/dist/esm/_core/brand/brand-logo-direction.schemas.js +12 -7
  43. package/dist/esm/_core/brand/brand-logo-direction.schemas.js.map +1 -1
  44. package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
  45. package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
  46. package/dist/esm/_core/brand/brand-snapshot-validation.js +1 -8
  47. package/dist/esm/_core/brand/brand-snapshot-validation.js.map +1 -1
  48. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -12
  49. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/brand/brand-snapshot.schemas.js +7 -0
  51. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  52. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +2 -2
  53. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
  54. package/dist/esm/_core/brand/brand.family-aspects.js +12 -1
  55. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -1
  56. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +252 -2
  57. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +19 -1
  59. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  60. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +121 -1
  61. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  62. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +215 -2
  63. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  64. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +703 -14
  65. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +536 -7
  67. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  68. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  69. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +82 -2
  70. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  71. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +3 -2
  72. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
  73. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js +5 -2
  74. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js.map +1 -1
  75. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +3 -3
  76. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +1 -1
  77. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -1
  78. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +4 -3
  79. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +4 -1
  81. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  82. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +36 -0
  83. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/business-semantics.specifications.schemas.js +52 -1
  85. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  86. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +22 -0
  87. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -0
  88. package/dist/esm/_core/capability-composition/capability-composition-validation.js +89 -0
  89. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -0
  90. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts +3 -0
  91. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts.map +1 -0
  92. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js +26 -0
  93. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js.map +1 -0
  94. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +141 -0
  95. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -0
  96. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +147 -0
  97. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -0
  98. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +160 -0
  99. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +124 -4
  101. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  102. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +95 -0
  103. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -0
  104. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js +85 -0
  105. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js.map +1 -0
  106. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +743 -14
  107. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +699 -22
  109. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  110. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +98 -6
  111. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
  112. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +197 -8
  113. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -1
  114. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +64 -0
  115. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -0
  116. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +283 -0
  117. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -0
  118. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +30 -1
  120. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +1 -1
  122. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -1
  123. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +220 -4
  124. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  125. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +149 -2
  126. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  127. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +70 -3
  128. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  129. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +75 -3
  130. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  131. package/dist/esm/_core/composite-view-specification.schemas.d.ts +14 -0
  132. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  133. package/dist/esm/_core/composite-view-specification.schemas.js +13 -0
  134. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  135. package/dist/esm/_core/cross-registry-assertions.d.ts +6 -4
  136. package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
  137. package/dist/esm/_core/cross-registry-assertions.js +7 -5
  138. package/dist/esm/_core/cross-registry-assertions.js.map +1 -1
  139. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +5 -4
  140. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +5 -2
  142. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  143. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +30 -0
  144. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  145. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +99 -6
  146. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  147. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +58 -0
  148. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -0
  149. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +71 -0
  150. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -0
  151. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +37 -0
  152. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -0
  153. package/dist/esm/_core/experience-plan/experience-plan-validation.js +83 -0
  154. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -0
  155. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts +3 -0
  156. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -0
  157. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +78 -0
  158. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -0
  159. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +285 -0
  160. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -0
  161. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +293 -0
  162. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -0
  163. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +3 -2
  164. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js +5 -2
  166. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js.map +1 -1
  167. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +9 -2
  168. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  169. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +7 -0
  170. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  171. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts +18 -0
  172. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts.map +1 -0
  173. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js +21 -0
  174. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js.map +1 -0
  175. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +19 -0
  176. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +23 -0
  178. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  179. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  180. package/dist/esm/_core/family-aspects.registry.js +22 -1
  181. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  182. package/dist/esm/_core/family-aspects.schemas.d.ts +64 -1
  183. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  184. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  185. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +27 -27
  186. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
  187. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +1 -1
  188. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
  189. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  190. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +6 -1
  191. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  192. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -15
  193. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  194. package/dist/esm/_core/guidance-flow-specification.schemas.js +12 -11
  195. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  196. package/dist/esm/_core/index.d.ts +16 -0
  197. package/dist/esm/_core/index.d.ts.map +1 -1
  198. package/dist/esm/_core/index.js +16 -0
  199. package/dist/esm/_core/index.js.map +1 -1
  200. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +52 -0
  201. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -0
  202. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +50 -0
  203. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -0
  204. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +27 -0
  205. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -0
  206. package/dist/esm/_core/integration-plan/integration-plan-validation.js +63 -0
  207. package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -0
  208. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts +3 -0
  209. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -0
  210. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +52 -0
  211. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -0
  212. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +168 -0
  213. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -0
  214. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +170 -0
  215. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -0
  216. package/dist/esm/_core/market/feature-benefit.schemas.d.ts +6 -5
  217. package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
  218. package/dist/esm/_core/market/feature-benefit.schemas.js +5 -2
  219. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  220. package/dist/esm/_core/market/market-alternative.schemas.d.ts +4 -3
  221. package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
  222. package/dist/esm/_core/market/market-alternative.schemas.js +4 -1
  223. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  224. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +11 -9
  225. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
  226. package/dist/esm/_core/market/market-authored-metadata.schemas.js +13 -10
  227. package/dist/esm/_core/market/market-authored-metadata.schemas.js.map +1 -1
  228. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +5 -4
  229. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
  230. package/dist/esm/_core/market/market-buying-journey.schemas.js +4 -1
  231. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  232. package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
  233. package/dist/esm/_core/market/market-channel.schemas.d.ts +6 -5
  234. package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
  235. package/dist/esm/_core/market/market-channel.schemas.js +6 -3
  236. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  237. package/dist/esm/_core/market/market-gain.schemas.d.ts +4 -3
  238. package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
  239. package/dist/esm/_core/market/market-gain.schemas.js +4 -1
  240. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  241. package/dist/esm/_core/market/market-icp.schemas.d.ts +12 -11
  242. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  243. package/dist/esm/_core/market/market-icp.schemas.js +12 -9
  244. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  245. package/dist/esm/_core/market/market-job.schemas.d.ts +4 -3
  246. package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
  247. package/dist/esm/_core/market/market-job.schemas.js +4 -1
  248. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  249. package/dist/esm/_core/market/market-message-template.schemas.d.ts +5 -4
  250. package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
  251. package/dist/esm/_core/market/market-message-template.schemas.js +5 -2
  252. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  253. package/dist/esm/_core/market/market-objection.schemas.d.ts +4 -3
  254. package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
  255. package/dist/esm/_core/market/market-objection.schemas.js +4 -1
  256. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  257. package/dist/esm/_core/market/market-pain.schemas.d.ts +4 -3
  258. package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
  259. package/dist/esm/_core/market/market-pain.schemas.js +4 -1
  260. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  261. package/dist/esm/_core/market/market-persona.schemas.d.ts +5 -4
  262. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  263. package/dist/esm/_core/market/market-persona.schemas.js +5 -2
  264. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  265. package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
  266. package/dist/esm/_core/market/market-proof.schemas.d.ts +4 -3
  267. package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
  268. package/dist/esm/_core/market/market-proof.schemas.js +4 -1
  269. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  270. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +54 -54
  271. package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
  272. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +4 -3
  273. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
  274. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +4 -1
  275. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  276. package/dist/esm/_core/market/market-trigger.schemas.d.ts +4 -3
  277. package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
  278. package/dist/esm/_core/market/market-trigger.schemas.js +4 -1
  279. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  280. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  281. package/dist/esm/_core/market/market.family-aspects.js +25 -1
  282. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  283. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +27 -22
  284. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  285. package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -12
  286. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  287. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +21 -21
  288. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +30 -16
  289. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  290. package/dist/esm/_core/placement-plan/placement-plan-validation.js +34 -12
  291. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  292. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  293. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +24 -1
  294. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  295. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +78 -47
  296. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  297. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +62 -24
  298. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  299. package/dist/esm/_core/provider-specification.schemas.d.ts +19 -0
  300. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
  301. package/dist/esm/_core/provider-specification.schemas.js +0 -20
  302. package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
  303. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
  304. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -2
  305. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +3 -2
  306. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
  307. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js +5 -2
  308. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js.map +1 -1
  309. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -4
  310. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  311. package/dist/esm/_core/requirements/requirements.family-aspects.js +3 -1
  312. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  313. package/dist/esm/_core/resource-specification.schemas.d.ts +8 -0
  314. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  315. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  316. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +3 -2
  317. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
  318. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js +5 -2
  319. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js.map +1 -1
  320. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +2 -2
  321. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +5 -0
  322. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  323. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js +1 -8
  324. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  325. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +2 -2
  326. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +1 -1
  327. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -1
  328. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  329. package/dist/esm/_core/utils/extract-field-specs.js +4 -2
  330. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  331. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +3 -2
  332. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
  333. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js +5 -2
  334. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js.map +1 -1
  335. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +2 -2
  336. package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
  337. package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
  338. package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
  339. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
  340. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
  341. package/dist/esm/_core/vision/vision.family-aspects.js +1 -1
  342. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -1
  343. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +45 -0
  344. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -0
  345. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +55 -0
  346. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -0
  347. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +37 -0
  348. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -0
  349. package/dist/esm/_core/website-plan/website-plan-validation.js +77 -0
  350. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -0
  351. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts +3 -0
  352. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -0
  353. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +35 -0
  354. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -0
  355. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +194 -0
  356. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -0
  357. package/dist/esm/_core/website-plan/website-plan.schemas.js +193 -0
  358. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -0
  359. package/dist/esm/_core/zod-core-nameability.d.ts +47 -0
  360. package/dist/esm/_core/zod-core-nameability.d.ts.map +1 -0
  361. package/dist/esm/_core/zod-core-nameability.js +1 -0
  362. package/dist/esm/_core/zod-core-nameability.js.map +1 -0
  363. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +86 -0
  364. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -0
  365. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +96 -0
  366. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -0
  367. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +139 -34
  368. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  369. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +182 -11
  370. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  371. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +71 -2
  372. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  373. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +88 -1
  374. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  375. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts +14 -0
  376. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts.map +1 -0
  377. package/dist/esm/application-creation/creator-inputs.family-aspects.js +17 -0
  378. package/dist/esm/application-creation/creator-inputs.family-aspects.js.map +1 -0
  379. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
  380. package/dist/esm/application-creation/document-facts.family-aspects.js +25 -1
  381. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -1
  382. package/dist/esm/application-creation/document-release-policy.family-aspects.js +1 -1
  383. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -1
  384. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +14 -48
  385. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  386. package/dist/esm/application-creation/journey.application-creation.schemas.js +52 -52
  387. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  388. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +209 -495
  389. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  390. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +257 -534
  391. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  392. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +10 -0
  393. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  394. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +10 -0
  395. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  396. package/dist/esm/application-creation.exports.d.ts +73 -8
  397. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  398. package/dist/esm/application-creation.exports.js +103 -8
  399. package/dist/esm/application-creation.exports.js.map +1 -1
  400. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +24 -0
  401. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +1 -0
  402. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +24 -0
  403. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -0
  404. package/dist/esm/assurance/application-document-publication.schemas.d.ts +49 -0
  405. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  406. package/dist/esm/assurance/application-document-publication.schemas.js +51 -0
  407. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  408. package/dist/esm/assurance/application-document-release-set.schemas.d.ts +161 -0
  409. package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -0
  410. package/dist/esm/assurance/application-document-release-set.schemas.js +138 -0
  411. package/dist/esm/assurance/application-document-release-set.schemas.js.map +1 -0
  412. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts +28 -0
  413. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts.map +1 -0
  414. package/dist/esm/assurance/application-risk-register.family-aspects.js +58 -0
  415. package/dist/esm/assurance/application-risk-register.family-aspects.js.map +1 -0
  416. package/dist/esm/assurance/application-risk-register.schemas.d.ts +172 -0
  417. package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -0
  418. package/dist/esm/assurance/application-risk-register.schemas.js +192 -0
  419. package/dist/esm/assurance/application-risk-register.schemas.js.map +1 -0
  420. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +177 -0
  421. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -0
  422. package/dist/esm/assurance/application-risk-signals.derivations.js +229 -0
  423. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -0
  424. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +257 -13
  425. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  426. package/dist/esm/assurance/assurance-authority-basis.definitions.js +836 -69
  427. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  428. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +99 -33
  429. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  430. package/dist/esm/assurance/assurance-authority-basis.schemas.js +38 -1
  431. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  432. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
  433. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  434. package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
  435. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  436. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  437. package/dist/esm/assurance/assurance-document-system.definitions.js +99 -8
  438. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  439. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +133 -41
  440. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  441. package/dist/esm/assurance/assurance-document-system.schemas.js +60 -11
  442. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  443. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +470 -0
  444. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -0
  445. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +451 -0
  446. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -0
  447. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +0 -33
  448. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  449. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +3339 -159
  450. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  451. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +21 -0
  452. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  453. package/dist/esm/assurance/assurance-foundation.schemas.js +21 -0
  454. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  455. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +32 -2
  456. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  457. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +148 -5
  458. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  459. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +257 -14
  460. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  461. package/dist/esm/assurance/assurance-program-generation.schemas.js +588 -45
  462. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  463. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +32 -8
  464. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
  465. package/dist/esm/assurance/assurance-program.family-aspects.js +288 -10
  466. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  467. package/dist/esm/assurance/assurance-program.schemas.d.ts +1182 -333
  468. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  469. package/dist/esm/assurance/assurance-program.schemas.js +460 -68
  470. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  471. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  472. package/dist/esm/assurance/assurance-source-registry.definitions.js +70 -2
  473. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  474. package/dist/esm/assurance/assurance-sources.schemas.d.ts +17 -0
  475. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  476. package/dist/esm/assurance/assurance-sources.schemas.js +17 -0
  477. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  478. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  479. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +205 -3
  480. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  481. package/dist/esm/assurance/document-publication.family-aspects.js +1 -1
  482. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -1
  483. package/dist/esm/assurance/document-release-set.family-aspects.d.ts +11 -0
  484. package/dist/esm/assurance/document-release-set.family-aspects.d.ts.map +1 -0
  485. package/dist/esm/assurance/document-release-set.family-aspects.js +36 -0
  486. package/dist/esm/assurance/document-release-set.family-aspects.js.map +1 -0
  487. package/dist/esm/assurance/governed-document-release.d.ts +211 -0
  488. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -0
  489. package/dist/esm/assurance/governed-document-release.js +314 -0
  490. package/dist/esm/assurance/governed-document-release.js.map +1 -0
  491. package/dist/esm/assurance.exports.d.ts +5 -0
  492. package/dist/esm/assurance.exports.d.ts.map +1 -1
  493. package/dist/esm/assurance.exports.js +5 -0
  494. package/dist/esm/assurance.exports.js.map +1 -1
  495. package/dist/esm/companion-exports.d.ts +135 -11
  496. package/dist/esm/companion-exports.d.ts.map +1 -1
  497. package/dist/esm/companion-exports.js.map +1 -1
  498. package/dist/esm/engine/_bootstrap.d.ts +1 -1
  499. package/dist/esm/engine/_bootstrap.js +1 -1
  500. package/dist/esm/engine/_bootstrap.js.map +1 -1
  501. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +1 -1
  502. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
  503. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  504. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +0 -23
  505. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +110 -28
  507. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts +1 -1
  509. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +1 -1
  510. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  512. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +57 -0
  514. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +412 -0
  516. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/auth/resources/index.d.ts +2 -0
  518. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  519. package/dist/esm/engine/auth/resources/index.js +2 -0
  520. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  521. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +4 -4
  522. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  523. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +57 -6
  524. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  525. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts +9 -0
  526. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js +141 -0
  528. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +4 -1
  530. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  531. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +10 -6
  532. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  533. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  534. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +5 -4
  535. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  536. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts +4 -0
  537. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js +129 -0
  539. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts +19 -7
  541. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +24 -13
  543. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +0 -40
  545. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  546. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +14 -27
  547. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  548. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +8 -2
  549. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  550. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +16 -3
  551. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  552. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +5 -2
  553. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  554. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +10 -16
  555. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  556. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +15 -5
  558. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts +9 -0
  560. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js +164 -0
  562. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts +14 -0
  564. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts.map +1 -0
  565. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +124 -0
  566. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -0
  567. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts +9 -0
  568. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts.map +1 -0
  569. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js +123 -0
  570. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js.map +1 -0
  571. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts +11 -0
  572. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts.map +1 -0
  573. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js +172 -0
  574. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js.map +1 -0
  575. package/dist/esm/engine/billing/resources/index.d.ts +4 -0
  576. package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
  577. package/dist/esm/engine/billing/resources/index.js +4 -0
  578. package/dist/esm/engine/billing/resources/index.js.map +1 -1
  579. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +3 -3
  580. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +3 -3
  581. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  582. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  584. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +92 -36
  585. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  586. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +77 -0
  587. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
  588. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +375 -0
  589. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
  590. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +1 -1
  591. package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
  592. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  593. package/dist/esm/engine/compliance/resources/index.js +2 -0
  594. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  595. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +16 -0
  596. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +183 -0
  598. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -0
  599. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  600. package/dist/esm/engine/engine-resource-specifications.registry.js +28 -0
  601. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  602. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  603. package/dist/esm/engine/errors/error-messages.specification.js +123 -19
  604. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  605. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  606. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -1
  607. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  608. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +1 -0
  610. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  612. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  613. package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -1
  614. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  615. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  616. package/dist/esm/engine/files/resources/files.resource.specification.js +15 -3
  617. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  618. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -0
  619. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  620. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +1 -1
  621. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  622. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  623. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +14 -0
  624. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -0
  625. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +184 -0
  626. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -0
  627. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js +3 -3
  628. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js.map +1 -1
  629. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
  630. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js +3 -2
  631. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js.map +1 -1
  632. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
  633. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js +18 -0
  634. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js +21 -0
  638. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js +1 -1
  640. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js.map +1 -1
  641. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts +5 -0
  642. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -0
  643. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +82 -0
  644. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -0
  645. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  646. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +6 -5
  647. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  648. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts +4 -0
  649. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts.map +1 -0
  650. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js +22 -0
  651. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js.map +1 -0
  652. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts +4 -0
  653. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts.map +1 -0
  654. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +22 -0
  655. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -0
  656. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts +5 -0
  657. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -0
  658. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +81 -0
  659. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -0
  660. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +4 -2
  662. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  663. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +4 -4
  664. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
  665. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js +3 -2
  667. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js.map +1 -1
  668. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js +4 -4
  669. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js +1 -1
  671. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js.map +1 -1
  672. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts +4 -0
  673. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts.map +1 -0
  674. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js +22 -0
  675. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js.map +1 -0
  676. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
  679. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js +4 -4
  680. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js.map +1 -1
  681. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js +1 -1
  682. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js.map +1 -1
  683. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +4 -0
  684. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +1 -0
  685. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +21 -0
  686. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +1 -0
  687. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js +1 -1
  688. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js.map +1 -1
  689. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  690. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  691. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js +1 -1
  692. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js.map +1 -1
  693. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js +1 -1
  694. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js.map +1 -1
  695. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
  696. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js +20 -2
  697. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js.map +1 -1
  698. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts +5 -0
  699. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts.map +1 -0
  700. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js +177 -0
  701. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js.map +1 -0
  702. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts +5 -0
  703. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts.map +1 -0
  704. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js +22 -0
  705. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js.map +1 -0
  706. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
  707. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js +10 -2
  708. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js.map +1 -1
  709. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts +5 -0
  710. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts.map +1 -0
  711. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js +166 -0
  712. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js.map +1 -0
  713. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts +5 -0
  714. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts.map +1 -0
  715. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js +122 -0
  716. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js.map +1 -0
  717. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts +5 -0
  718. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts.map +1 -0
  719. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js +152 -0
  720. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js.map +1 -0
  721. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
  722. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js +13 -0
  723. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js.map +1 -1
  724. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  725. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  726. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts +5 -0
  727. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts.map +1 -0
  728. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js +92 -0
  729. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js.map +1 -0
  730. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts +5 -0
  731. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -0
  732. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +29 -0
  733. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -0
  734. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js +1 -1
  735. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js.map +1 -1
  736. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js +1 -1
  737. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js.map +1 -1
  738. package/dist/esm/engine/frontend-components/index.d.ts +12 -0
  739. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  740. package/dist/esm/engine/frontend-components/index.js +40 -0
  741. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  742. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts +25 -1
  743. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
  744. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js +16 -2
  745. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js.map +1 -1
  746. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js +1 -1
  747. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js.map +1 -1
  748. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts +9 -0
  749. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
  750. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js +91 -7
  751. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js.map +1 -1
  752. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
  753. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js +9 -3
  754. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js.map +1 -1
  755. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
  756. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js +41 -1
  757. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js.map +1 -1
  758. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js +2 -2
  759. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js.map +1 -1
  760. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
  761. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js +19 -1
  762. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js.map +1 -1
  763. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js +3 -3
  764. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js.map +1 -1
  765. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +21 -1
  767. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  768. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +2 -0
  769. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  770. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -0
  771. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -0
  772. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +48 -0
  773. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -0
  774. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  775. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +3 -2
  776. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  777. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +77 -3
  778. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  779. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +11 -3
  780. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  781. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +26 -1
  782. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  783. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +17 -8
  784. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  785. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +49 -0
  786. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -0
  787. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +293 -0
  788. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -0
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +5 -5
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  791. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  792. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +6 -6
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  794. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +3 -3
  795. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  796. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  797. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
  798. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  799. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +3 -1
  800. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  801. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +27 -5
  802. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  803. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +1 -1
  804. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  805. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +31 -12
  806. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  807. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  808. package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
  809. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  810. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  811. package/dist/esm/engine/providers/apple.provider.specification.js +12 -1
  812. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  813. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
  814. package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
  815. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
  816. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/providers/github.provider.specification.js +12 -1
  818. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  819. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  820. package/dist/esm/engine/providers/google.provider.specification.js +12 -1
  821. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  822. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  823. package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
  824. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  825. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  826. package/dist/esm/engine/providers/microsoft.provider.specification.js +22 -1
  827. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  828. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
  830. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  831. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  832. package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
  833. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  834. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
  836. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
  837. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  838. package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
  839. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  840. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  841. package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
  842. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  843. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  844. package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
  845. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  846. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  847. package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
  848. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  849. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts +2 -0
  850. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts.map +1 -0
  851. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +21 -0
  852. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -0
  853. package/dist/esm/engine/roles/index.d.ts +4 -3
  854. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  855. package/dist/esm/engine/roles/index.js +6 -4
  856. package/dist/esm/engine/roles/index.js.map +1 -1
  857. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +5 -3
  858. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  860. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  861. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -1
  862. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -2
  864. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  865. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -0
  866. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  867. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -3
  868. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  869. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -2
  870. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -2
  871. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  872. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
  873. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +1 -1
  874. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  875. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
  876. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +3 -3
  877. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  878. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  879. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  880. package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
  881. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +1 -0
  883. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  884. package/dist/esm/engine/users/resources/users.resource.specification.js +2 -2
  885. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  886. package/dist/esm/index.d.ts +39 -0
  887. package/dist/esm/index.d.ts.map +1 -1
  888. package/dist/esm/index.js +39 -0
  889. package/dist/esm/index.js.map +1 -1
  890. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +134 -0
  891. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -0
  892. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +142 -0
  893. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -0
  894. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +35 -0
  895. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts.map +1 -0
  896. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js +45 -0
  897. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js.map +1 -0
  898. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts +33 -0
  899. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts.map +1 -0
  900. package/dist/esm/technical-documentation/application-documentation-plan-validation.js +77 -0
  901. package/dist/esm/technical-documentation/application-documentation-plan-validation.js.map +1 -0
  902. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts +3 -0
  903. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts.map +1 -0
  904. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js +40 -0
  905. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js.map +1 -0
  906. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +122 -0
  907. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -0
  908. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +138 -0
  909. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -0
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +7 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js +1 -1
  914. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js.map +1 -1
  915. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js +1 -1
  916. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js.map +1 -1
  917. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js +1 -1
  918. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js.map +1 -1
  919. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js +1 -1
  920. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js.map +1 -1
  921. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js +1 -1
  922. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js.map +1 -1
  923. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js +1 -1
  924. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js.map +1 -1
  925. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +14 -0
  926. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  927. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +16 -3
  928. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  929. package/dist/esm/technical-documentation.exports.d.ts +4 -0
  930. package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
  931. package/dist/esm/technical-documentation.exports.js +24 -0
  932. package/dist/esm/technical-documentation.exports.js.map +1 -1
  933. package/dist/tsconfig.build.tsbuildinfo +1 -1
  934. package/package.json +8 -13
  935. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -103
  936. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +0 -1
  937. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js +0 -76
  938. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js.map +0 -1
  939. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +0 -108
  940. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +0 -1
  941. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +0 -119
  942. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +0 -1
  943. package/dist/esm/application-creation-playbook-runtime.exports.d.ts +0 -3
  944. package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +0 -1
  945. package/dist/esm/application-creation-playbook-runtime.exports.js +0 -3
  946. package/dist/esm/application-creation-playbook-runtime.exports.js.map +0 -1
  947. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
  948. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
  949. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
  950. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_Sha256DigestSchema } from "@wildo-ai/saas-models/meta-workflows";
2
+ import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_Sha256DigestSchema } from "@wildo-ai/saas-models/public-runtime";
3
3
  import { TechnicalDocumentationNormalizedRelativePathSchema, technicalDocumentationPathsAreUnique, technicalDocumentationValuesAreUniqueAndSorted, } from "./technical-documentation-common.schemas.js";
4
4
  /** Leaves room for `.png.candidate-<uuid>` beneath the portable 255-byte component ceiling. */
5
5
  export const TECHNICAL_DOCUMENTATION_ASSET_REF_PORTABLE_STEM_MAX_BYTES = 200;
@@ -1 +1 @@
1
- {"version":3,"file":"technical-documentation-assets.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-assets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEzJ,OAAO,EACL,kDAAkD,EAClD,oCAAoC,EACpC,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAElD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,yDAAyD,GAAG,GAAG,CAAC;AAE7E,SAAS,6CAA6C,CAAC,QAAgB;IACrE,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QACrC,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC;YAAE,OAAO,SAAS,CAAC;QACnD,IAAI,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;YAAE,OAAO,MAAM,SAAS,CAAC,iBAA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,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;IAC5B,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvD,IAAI,CAAC,8CAA8C,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1D,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,8CAA8C,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClH,CAAC;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,sBAAsB,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACzH,IAAI,CAAC,oCAAoC,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,8DAA8D,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClI,CAAC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_Sha256DigestSchema } from \"@wildo-ai/saas-models/meta-workflows\";\n\nimport {\n TechnicalDocumentationNormalizedRelativePathSchema,\n technicalDocumentationPathsAreUnique,\n technicalDocumentationValuesAreUniqueAndSorted,\n} from \"./technical-documentation-common.schemas\";\n\n/** Leaves room for `.png.candidate-<uuid>` beneath the portable 255-byte component ceiling. */\nexport const TECHNICAL_DOCUMENTATION_ASSET_REF_PORTABLE_STEM_MAX_BYTES = 200;\n\nfunction encodeTechnicalDocumentationAssetRefUnchecked(assetRef: string): string {\n return [...assetRef].map((character) => {\n if (/^[a-z0-9]$/.test(character)) return character;\n if (/^[A-Z]$/.test(character)) return `-u-${character.toLocaleLowerCase(\"en-US\")}-`;\n switch (character) {\n case \"-\": return \"-h-\";\n case \"_\": return \"-n-\";\n case \".\": return \"-d-\";\n case \":\": return \"-c-\";\n case \"/\": return \"-s-\";\n default: throw new Error(`technical-documentation asset ref contains an unsupported portable-path member: ${character}`);\n }\n }).join(\"\");\n}\n\n/** Asset refs are semantic identities that must also fit one portable generated filename component. */\nexport const TechnicalDocumentationAssetRefSchema = MetaWorkflow_NamespacedRefSchema.superRefine((assetRef, context) => {\n // The codec emits ASCII only, so code-unit length is exactly UTF-8 byte length.\n const encodedBytes = encodeTechnicalDocumentationAssetRefUnchecked(assetRef).length;\n if (encodedBytes > TECHNICAL_DOCUMENTATION_ASSET_REF_PORTABLE_STEM_MAX_BYTES) {\n context.addIssue({\n code: \"custom\",\n message: `encoded technical-documentation asset ref exceeds ${TECHNICAL_DOCUMENTATION_ASSET_REF_PORTABLE_STEM_MAX_BYTES} portable filename bytes`,\n });\n }\n});\nexport type TechnicalDocumentationAssetRef = z.infer<typeof TechnicalDocumentationAssetRefSchema>;\n\n/** Reversible, case-fold-safe semantic identity codec; content digests never participate. */\nexport function technicalDocumentationAssetRefPortableStem(assetRefInput: string): string {\n const assetRef = TechnicalDocumentationAssetRefSchema.parse(assetRefInput);\n return encodeTechnicalDocumentationAssetRefUnchecked(assetRef);\n}\n\nexport enum TechnicalDocumentationAssetKind {\n CODE_SAMPLE = \"CODE_SAMPLE\",\n DIAGRAM = \"DIAGRAM\",\n DOWNLOAD = \"DOWNLOAD\",\n OPENAPI_DOCUMENT = \"OPENAPI_DOCUMENT\",\n PRODUCT_SCREENSHOT = \"PRODUCT_SCREENSHOT\",\n}\n\nexport enum TechnicalDocumentationAssetOrigin {\n AUTHORED = \"AUTHORED\",\n DETERMINISTIC_RENDER = \"DETERMINISTIC_RENDER\",\n GENERATED_ILLUSTRATION = \"GENERATED_ILLUSTRATION\",\n PLAYWRIGHT_CAPTURE = \"PLAYWRIGHT_CAPTURE\",\n PROJECTED = \"PROJECTED\",\n}\n\nexport enum TechnicalDocumentationAssetAccessClass {\n AUTHENTICATED = \"AUTHENTICATED\",\n PUBLIC = \"PUBLIC\",\n RESTRICTED = \"RESTRICTED\",\n}\n\nexport enum TechnicalDocumentationAssetRequiredness {\n OPTIONAL = \"OPTIONAL\",\n REQUIRED = \"REQUIRED\",\n}\n\nexport enum TechnicalDocumentationAssetResolutionStatus {\n FAILED = \"FAILED\",\n MISSING = \"MISSING\",\n /**\n * A stand-in asset ships, and it is known to be provisional.\n *\n * Distinct from `MISSING` in the way that matters: `MISSING` leaves a HOLE in the page,\n * `PLACEHOLDER` leaves a PICTURE that is not yet the real one. Three consumers need that\n * difference — the renderer (hole versus image), publication policy (a non-production\n * environment may ship provisional imagery where production must not), and refinement\n * tracking, which is simply \"which assets are still `PLACEHOLDER`\".\n *\n * It is what lets an asset stay `REQUIRED` while documentation ships ahead of its\n * pictures. Declaring the asset `OPTIONAL` instead would say the page may permanently\n * have no image — a claim about the unit forever, which dissolves the obligation rather\n * than deferring it. `PLACEHOLDER` keeps the obligation visible and answerable.\n *\n * Named `PLACEHOLDER` rather than `DEFAULTED` deliberately: \"defaulted\" reads as failing\n * to meet an obligation, which is close to the opposite of the meaning and adjacent to\n * `FAILED` in this same enum.\n */\n PLACEHOLDER = \"PLACEHOLDER\",\n RESOLVED = \"RESOLVED\",\n STALE = \"STALE\",\n}\n\nexport enum TechnicalDocumentationAssetRightsBasis {\n APPLICATION_OWNED_SYNTHETIC_DATA = \"APPLICATION_OWNED_SYNTHETIC_DATA\",\n ENGINE_AUTHORED = \"ENGINE_AUTHORED\",\n LICENSED_FOR_DOCUMENTATION = \"LICENSED_FOR_DOCUMENTATION\",\n PUBLIC_DOMAIN = \"PUBLIC_DOMAIN\",\n}\n\nexport enum TechnicalDocumentationAssetPublicationEligibility {\n NON_PUBLIC = \"NON_PUBLIC\",\n PUBLIC_ELIGIBLE = \"PUBLIC_ELIGIBLE\",\n}\n\n/** Canonical stable managed path for asset kinds whose media contract is implemented. */\nexport function technicalDocumentationCanonicalAssetRelativePathContract(input: {\n readonly assetRef: string;\n readonly kind: TechnicalDocumentationAssetKind;\n readonly mediaType: string;\n}): string | null {\n const stem = technicalDocumentationAssetRefPortableStem(input.assetRef);\n if (input.kind === TechnicalDocumentationAssetKind.PRODUCT_SCREENSHOT && input.mediaType === \"image/png\") return `assets/captures/${stem}.png`;\n if (input.kind === TechnicalDocumentationAssetKind.DIAGRAM && input.mediaType === \"image/svg+xml\") return `assets/diagrams/${stem}.svg`;\n return null;\n}\n\nexport const TechnicalDocumentationAssetRightsV1Schema = z.strictObject({\n basis: z.enum(TechnicalDocumentationAssetRightsBasis),\n authorityRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type TechnicalDocumentationAssetRightsV1 = z.infer<typeof TechnicalDocumentationAssetRightsV1Schema>;\n\nconst ASSET_ACCESS_RANK: Readonly<Record<TechnicalDocumentationAssetAccessClass, number>> = Object.freeze({\n [TechnicalDocumentationAssetAccessClass.PUBLIC]: 0,\n [TechnicalDocumentationAssetAccessClass.AUTHENTICATED]: 1,\n [TechnicalDocumentationAssetAccessClass.RESTRICTED]: 2,\n});\n\nexport function resolveMostRestrictiveTechnicalDocumentationAssetAccessClass(\n accessClasses: readonly TechnicalDocumentationAssetAccessClass[],\n): TechnicalDocumentationAssetAccessClass {\n if (accessClasses.length === 0) throw new Error(\"technical-documentation asset classification requires at least one access class\");\n return accessClasses.reduce((mostRestrictive, candidate) => ASSET_ACCESS_RANK[candidate] > ASSET_ACCESS_RANK[mostRestrictive] ? candidate : mostRestrictive);\n}\n\nexport const TechnicalDocumentationAssetClassificationV1Schema = z\n .strictObject({\n requestAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n sourceAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n viewedTenantAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n roleAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n effectiveAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n publicationEligibility: z.enum(TechnicalDocumentationAssetPublicationEligibility),\n })\n .superRefine((classification, context) => {\n const expectedEffective = resolveMostRestrictiveTechnicalDocumentationAssetAccessClass([\n classification.requestAccessClass,\n classification.sourceAccessClass,\n classification.viewedTenantAccessClass,\n classification.roleAccessClass,\n ]);\n if (classification.effectiveAccessClass !== expectedEffective) {\n context.addIssue({ code: \"custom\", message: `effective asset access class must be ${expectedEffective}`, path: [\"effectiveAccessClass\"] });\n }\n const expectedEligibility = expectedEffective === TechnicalDocumentationAssetAccessClass.PUBLIC\n ? TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE\n : TechnicalDocumentationAssetPublicationEligibility.NON_PUBLIC;\n if (classification.publicationEligibility !== expectedEligibility) {\n context.addIssue({ code: \"custom\", message: `asset publication eligibility must be ${expectedEligibility}`, path: [\"publicationEligibility\"] });\n }\n });\nexport type TechnicalDocumentationAssetClassificationV1 = z.infer<typeof TechnicalDocumentationAssetClassificationV1Schema>;\n\nexport const TechnicalDocumentationAssetProducerProvenanceV1Schema = z.strictObject({\n producerRef: MetaWorkflow_NamespacedRefSchema,\n producerVersion: z.number().int().positive(),\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type TechnicalDocumentationAssetProducerProvenanceV1 = z.infer<typeof TechnicalDocumentationAssetProducerProvenanceV1Schema>;\n\nexport const TechnicalDocumentationAssetRequestV1Schema = z\n .strictObject({\n assetRef: TechnicalDocumentationAssetRefSchema,\n kind: z.enum(TechnicalDocumentationAssetKind),\n origin: z.enum(TechnicalDocumentationAssetOrigin),\n accessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n requiredness: z.enum(TechnicalDocumentationAssetRequiredness),\n rights: TechnicalDocumentationAssetRightsV1Schema,\n sourceAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n viewedTenantAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n roleAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n captureOrRenderProfileRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * The semantic input this asset depicts — a capture target, a diagram definition, an OpenAPI\n * document. Named, not hashed.\n *\n * It carried an `expectedSemanticInputDigest` until 2026-08-27, matched against an\n * `observedSemanticInputDigest` on the resolved asset. That comparison could never fail: the\n * request computed its expected value by CALLING the same pure materializer the producer then\n * ran, over the same frozen definition, in the same process. It compared a value with itself.\n */\n semanticInputRef: MetaWorkflow_NamespacedRefSchema,\n altText: z.string().trim().min(1),\n })\n .superRefine((request, context) => {\n if (request.kind === TechnicalDocumentationAssetKind.PRODUCT_SCREENSHOT && request.origin !== TechnicalDocumentationAssetOrigin.PLAYWRIGHT_CAPTURE) {\n context.addIssue({ code: \"custom\", message: \"product screenshots must originate from a real Playwright capture\", path: [\"origin\"] });\n }\n });\nexport type TechnicalDocumentationAssetRequestV1 = z.infer<typeof TechnicalDocumentationAssetRequestV1Schema>;\n\nexport const TechnicalDocumentationResolvedAssetV1Schema = z\n .strictObject({\n assetRef: TechnicalDocumentationAssetRefSchema,\n kind: z.enum(TechnicalDocumentationAssetKind),\n origin: z.enum(TechnicalDocumentationAssetOrigin),\n accessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n requiredness: z.enum(TechnicalDocumentationAssetRequiredness),\n rights: TechnicalDocumentationAssetRightsV1Schema,\n classification: TechnicalDocumentationAssetClassificationV1Schema,\n producerProvenance: TechnicalDocumentationAssetProducerProvenanceV1Schema.nullable(),\n status: z.enum(TechnicalDocumentationAssetResolutionStatus),\n semanticInputRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * Whether a producer actually observed the semantic input, or a placeholder stands in for one.\n * This is the ONLY fact the retired observed/expected digest pair ever carried — a placeholder\n * ships real bytes at a real path but nothing ran, so it must not echo an observation.\n */\n semanticInputObserved: z.boolean(),\n normalizedRelativePath: TechnicalDocumentationNormalizedRelativePathSchema.nullable(),\n mediaType: z.string().regex(/^[a-z0-9.+-]+\\/[a-z0-9.+-]+$/),\n byteLength: z.number().int().nonnegative().nullable(),\n /**\n * KEPT through the 2026-08-27 digest demolition, deliberately. This names OPAQUE EMITTED BYTES\n * and detects their corruption — the two uses a digest is actually for. What went was every\n * digest that recorded AGREEMENT between two parts of the repository, which git already records\n * per commit and mergeably.\n */\n byteDigest: MetaWorkflow_Sha256DigestSchema.nullable(),\n resolvedAt: MetaWorkflow_IsoDateTimeSchema,\n failureReason: z.string().trim().min(1).nullable(),\n })\n .superRefine((asset, context) => {\n /**\n * Two facts that used to be one, and had to be separated when `PLACEHOLDER` arrived.\n *\n * \"Ships bytes\" and \"observed the semantic input\" were the same condition while only\n * `RESOLVED` had either. A placeholder ships REAL bytes at a real path — that is what\n * distinguishes it from `MISSING` — but nothing observed the capture input, so echoing\n * an observed digest would manufacture agreement with a capture that never ran.\n *\n * `SHIPS_BYTES` therefore covers both, while `semanticInputObserved` stays\n * exclusive to `RESOLVED`.\n */\n const shipsBytes = asset.status === TechnicalDocumentationAssetResolutionStatus.RESOLVED\n || asset.status === TechnicalDocumentationAssetResolutionStatus.PLACEHOLDER;\n const isResolved = asset.status === TechnicalDocumentationAssetResolutionStatus.RESOLVED;\n const hasOutputIdentity = asset.normalizedRelativePath !== null\n && asset.byteLength !== null\n && asset.byteDigest !== null\n && asset.producerProvenance !== null;\n if (shipsBytes !== hasOutputIdentity) {\n context.addIssue({ code: \"custom\", message: \"only a RESOLVED or PLACEHOLDER asset carries complete output identity\", path: [\"status\"] });\n }\n if (isResolved !== asset.semanticInputObserved) {\n context.addIssue({ code: \"custom\", message: \"only a RESOLVED asset observed its semantic input\", path: [\"semanticInputObserved\"] });\n }\n // A placeholder did not FAIL — it is awaiting a capture. Requiring a failureReason here\n // would force every placeholder to describe a failure that did not happen.\n if (shipsBytes === (asset.failureReason !== null)) {\n context.addIssue({ code: \"custom\", message: \"failureReason is required only for assets that ship no bytes\", path: [\"failureReason\"] });\n }\n if (shipsBytes) {\n const expectedPath = technicalDocumentationCanonicalAssetRelativePathContract(asset);\n if (expectedPath !== null && asset.normalizedRelativePath !== expectedPath) {\n context.addIssue({ code: \"custom\", message: `asset path must be the canonical semantic path ${expectedPath}`, path: [\"normalizedRelativePath\"] });\n }\n }\n });\nexport type TechnicalDocumentationResolvedAssetV1 = z.infer<typeof TechnicalDocumentationResolvedAssetV1Schema>;\n\nexport const TechnicalDocumentationResolvedAssetSetV1Schema = z\n .strictObject({\n assets: z.array(TechnicalDocumentationResolvedAssetV1Schema),\n })\n .superRefine((set, context) => {\n const refs = set.assets.map((asset) => asset.assetRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(refs)) {\n context.addIssue({ code: \"custom\", message: \"assets must be unique and sorted by assetRef\", path: [\"assets\"] });\n }\n const paths = set.assets.flatMap((asset) => asset.normalizedRelativePath === null ? [] : [asset.normalizedRelativePath]);\n if (!technicalDocumentationPathsAreUnique(paths)) {\n context.addIssue({ code: \"custom\", message: \"asset paths must be unique, including case-folded uniqueness\", path: [\"assets\"] });\n }\n });\nexport type TechnicalDocumentationResolvedAssetSetV1 = z.infer<typeof TechnicalDocumentationResolvedAssetSetV1Schema>;\n"]}
1
+ {"version":3,"file":"technical-documentation-assets.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-assets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEzJ,OAAO,EACL,kDAAkD,EAClD,oCAAoC,EACpC,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAElD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,yDAAyD,GAAG,GAAG,CAAC;AAE7E,SAAS,6CAA6C,CAAC,QAAgB;IACrE,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,SAA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AC;AACH,CAAC,CAAC,CAAC;AAGL,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAAC;KAC5D,YAAY,CAAC;IACZ,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,2CAA2C,CAAC;CAC7D,CAAC;KACD,WAAW,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;IAC5B,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvD,IAAI,CAAC,8CAA8C,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1D,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,8CAA8C,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClH,CAAC;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,sBAAsB,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACzH,IAAI,CAAC,oCAAoC,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,8DAA8D,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClI,CAAC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_Sha256DigestSchema } from \"@wildo-ai/saas-models/public-runtime\";\n\nimport {\n TechnicalDocumentationNormalizedRelativePathSchema,\n technicalDocumentationPathsAreUnique,\n technicalDocumentationValuesAreUniqueAndSorted,\n} from \"./technical-documentation-common.schemas\";\n\n/** Leaves room for `.png.candidate-<uuid>` beneath the portable 255-byte component ceiling. */\nexport const TECHNICAL_DOCUMENTATION_ASSET_REF_PORTABLE_STEM_MAX_BYTES = 200;\n\nfunction encodeTechnicalDocumentationAssetRefUnchecked(assetRef: string): string {\n return [...assetRef].map((character) => {\n if (/^[a-z0-9]$/.test(character)) return character;\n if (/^[A-Z]$/.test(character)) return `-u-${character.toLocaleLowerCase(\"en-US\")}-`;\n switch (character) {\n case \"-\": return \"-h-\";\n case \"_\": return \"-n-\";\n case \".\": return \"-d-\";\n case \":\": return \"-c-\";\n case \"/\": return \"-s-\";\n default: throw new Error(`technical-documentation asset ref contains an unsupported portable-path member: ${character}`);\n }\n }).join(\"\");\n}\n\n/** Asset refs are semantic identities that must also fit one portable generated filename component. */\nexport const TechnicalDocumentationAssetRefSchema = MetaWorkflow_NamespacedRefSchema.superRefine((assetRef, context) => {\n // The codec emits ASCII only, so code-unit length is exactly UTF-8 byte length.\n const encodedBytes = encodeTechnicalDocumentationAssetRefUnchecked(assetRef).length;\n if (encodedBytes > TECHNICAL_DOCUMENTATION_ASSET_REF_PORTABLE_STEM_MAX_BYTES) {\n context.addIssue({\n code: \"custom\",\n message: `encoded technical-documentation asset ref exceeds ${TECHNICAL_DOCUMENTATION_ASSET_REF_PORTABLE_STEM_MAX_BYTES} portable filename bytes`,\n });\n }\n});\nexport type TechnicalDocumentationAssetRef = z.infer<typeof TechnicalDocumentationAssetRefSchema>;\n\n/** Reversible, case-fold-safe semantic identity codec; content digests never participate. */\nexport function technicalDocumentationAssetRefPortableStem(assetRefInput: string): string {\n const assetRef = TechnicalDocumentationAssetRefSchema.parse(assetRefInput);\n return encodeTechnicalDocumentationAssetRefUnchecked(assetRef);\n}\n\nexport enum TechnicalDocumentationAssetKind {\n CODE_SAMPLE = \"CODE_SAMPLE\",\n DIAGRAM = \"DIAGRAM\",\n DOWNLOAD = \"DOWNLOAD\",\n OPENAPI_DOCUMENT = \"OPENAPI_DOCUMENT\",\n PRODUCT_SCREENSHOT = \"PRODUCT_SCREENSHOT\",\n}\n\nexport enum TechnicalDocumentationAssetOrigin {\n AUTHORED = \"AUTHORED\",\n DETERMINISTIC_RENDER = \"DETERMINISTIC_RENDER\",\n GENERATED_ILLUSTRATION = \"GENERATED_ILLUSTRATION\",\n PLAYWRIGHT_CAPTURE = \"PLAYWRIGHT_CAPTURE\",\n PROJECTED = \"PROJECTED\",\n}\n\nexport enum TechnicalDocumentationAssetAccessClass {\n AUTHENTICATED = \"AUTHENTICATED\",\n PUBLIC = \"PUBLIC\",\n RESTRICTED = \"RESTRICTED\",\n}\n\nexport enum TechnicalDocumentationAssetRequiredness {\n OPTIONAL = \"OPTIONAL\",\n REQUIRED = \"REQUIRED\",\n}\n\nexport enum TechnicalDocumentationAssetResolutionStatus {\n FAILED = \"FAILED\",\n MISSING = \"MISSING\",\n /**\n * A stand-in asset ships, and it is known to be provisional.\n *\n * Distinct from `MISSING` in the way that matters: `MISSING` leaves a HOLE in the page,\n * `PLACEHOLDER` leaves a PICTURE that is not yet the real one. Three consumers need that\n * difference — the renderer (hole versus image), publication policy (a non-production\n * environment may ship provisional imagery where production must not), and refinement\n * tracking, which is simply \"which assets are still `PLACEHOLDER`\".\n *\n * It is what lets an asset stay `REQUIRED` while documentation ships ahead of its\n * pictures. Declaring the asset `OPTIONAL` instead would say the page may permanently\n * have no image — a claim about the unit forever, which dissolves the obligation rather\n * than deferring it. `PLACEHOLDER` keeps the obligation visible and answerable.\n *\n * Named `PLACEHOLDER` rather than `DEFAULTED` deliberately: \"defaulted\" reads as failing\n * to meet an obligation, which is close to the opposite of the meaning and adjacent to\n * `FAILED` in this same enum.\n */\n PLACEHOLDER = \"PLACEHOLDER\",\n RESOLVED = \"RESOLVED\",\n STALE = \"STALE\",\n}\n\nexport enum TechnicalDocumentationAssetRightsBasis {\n APPLICATION_OWNED_SYNTHETIC_DATA = \"APPLICATION_OWNED_SYNTHETIC_DATA\",\n ENGINE_AUTHORED = \"ENGINE_AUTHORED\",\n LICENSED_FOR_DOCUMENTATION = \"LICENSED_FOR_DOCUMENTATION\",\n PUBLIC_DOMAIN = \"PUBLIC_DOMAIN\",\n}\n\nexport enum TechnicalDocumentationAssetPublicationEligibility {\n NON_PUBLIC = \"NON_PUBLIC\",\n PUBLIC_ELIGIBLE = \"PUBLIC_ELIGIBLE\",\n}\n\n/** Canonical stable managed path for asset kinds whose media contract is implemented. */\nexport function technicalDocumentationCanonicalAssetRelativePathContract(input: {\n readonly assetRef: string;\n readonly kind: TechnicalDocumentationAssetKind;\n readonly mediaType: string;\n}): string | null {\n const stem = technicalDocumentationAssetRefPortableStem(input.assetRef);\n if (input.kind === TechnicalDocumentationAssetKind.PRODUCT_SCREENSHOT && input.mediaType === \"image/png\") return `assets/captures/${stem}.png`;\n if (input.kind === TechnicalDocumentationAssetKind.DIAGRAM && input.mediaType === \"image/svg+xml\") return `assets/diagrams/${stem}.svg`;\n return null;\n}\n\nexport const TechnicalDocumentationAssetRightsV1Schema = z.strictObject({\n basis: z.enum(TechnicalDocumentationAssetRightsBasis),\n authorityRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type TechnicalDocumentationAssetRightsV1 = z.infer<typeof TechnicalDocumentationAssetRightsV1Schema>;\n\nconst ASSET_ACCESS_RANK: Readonly<Record<TechnicalDocumentationAssetAccessClass, number>> = Object.freeze({\n [TechnicalDocumentationAssetAccessClass.PUBLIC]: 0,\n [TechnicalDocumentationAssetAccessClass.AUTHENTICATED]: 1,\n [TechnicalDocumentationAssetAccessClass.RESTRICTED]: 2,\n});\n\nexport function resolveMostRestrictiveTechnicalDocumentationAssetAccessClass(\n accessClasses: readonly TechnicalDocumentationAssetAccessClass[],\n): TechnicalDocumentationAssetAccessClass {\n if (accessClasses.length === 0) throw new Error(\"technical-documentation asset classification requires at least one access class\");\n return accessClasses.reduce((mostRestrictive, candidate) => ASSET_ACCESS_RANK[candidate] > ASSET_ACCESS_RANK[mostRestrictive] ? candidate : mostRestrictive);\n}\n\nexport const TechnicalDocumentationAssetClassificationV1Schema = z\n .strictObject({\n requestAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n sourceAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n viewedTenantAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n roleAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n effectiveAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n publicationEligibility: z.enum(TechnicalDocumentationAssetPublicationEligibility),\n })\n .superRefine((classification, context) => {\n const expectedEffective = resolveMostRestrictiveTechnicalDocumentationAssetAccessClass([\n classification.requestAccessClass,\n classification.sourceAccessClass,\n classification.viewedTenantAccessClass,\n classification.roleAccessClass,\n ]);\n if (classification.effectiveAccessClass !== expectedEffective) {\n context.addIssue({ code: \"custom\", message: `effective asset access class must be ${expectedEffective}`, path: [\"effectiveAccessClass\"] });\n }\n const expectedEligibility = expectedEffective === TechnicalDocumentationAssetAccessClass.PUBLIC\n ? TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE\n : TechnicalDocumentationAssetPublicationEligibility.NON_PUBLIC;\n if (classification.publicationEligibility !== expectedEligibility) {\n context.addIssue({ code: \"custom\", message: `asset publication eligibility must be ${expectedEligibility}`, path: [\"publicationEligibility\"] });\n }\n });\nexport type TechnicalDocumentationAssetClassificationV1 = z.infer<typeof TechnicalDocumentationAssetClassificationV1Schema>;\n\nexport const TechnicalDocumentationAssetProducerProvenanceV1Schema = z.strictObject({\n producerRef: MetaWorkflow_NamespacedRefSchema,\n producerVersion: z.number().int().positive(),\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type TechnicalDocumentationAssetProducerProvenanceV1 = z.infer<typeof TechnicalDocumentationAssetProducerProvenanceV1Schema>;\n\nexport const TechnicalDocumentationAssetRequestV1Schema = z\n .strictObject({\n assetRef: TechnicalDocumentationAssetRefSchema,\n kind: z.enum(TechnicalDocumentationAssetKind),\n origin: z.enum(TechnicalDocumentationAssetOrigin),\n accessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n requiredness: z.enum(TechnicalDocumentationAssetRequiredness),\n rights: TechnicalDocumentationAssetRightsV1Schema,\n sourceAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n viewedTenantAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n roleAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n captureOrRenderProfileRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * The semantic input this asset depicts — a capture target, a diagram definition, an OpenAPI\n * document. Named, not hashed.\n *\n * It carried an `expectedSemanticInputDigest` until 2026-08-27, matched against an\n * `observedSemanticInputDigest` on the resolved asset. That comparison could never fail: the\n * request computed its expected value by CALLING the same pure materializer the producer then\n * ran, over the same frozen definition, in the same process. It compared a value with itself.\n */\n semanticInputRef: MetaWorkflow_NamespacedRefSchema,\n altText: z.string().trim().min(1),\n })\n .superRefine((request, context) => {\n if (request.kind === TechnicalDocumentationAssetKind.PRODUCT_SCREENSHOT && request.origin !== TechnicalDocumentationAssetOrigin.PLAYWRIGHT_CAPTURE) {\n context.addIssue({ code: \"custom\", message: \"product screenshots must originate from a real Playwright capture\", path: [\"origin\"] });\n }\n });\nexport type TechnicalDocumentationAssetRequestV1 = z.infer<typeof TechnicalDocumentationAssetRequestV1Schema>;\n\nexport const TechnicalDocumentationResolvedAssetV1Schema = z\n .strictObject({\n assetRef: TechnicalDocumentationAssetRefSchema,\n kind: z.enum(TechnicalDocumentationAssetKind),\n origin: z.enum(TechnicalDocumentationAssetOrigin),\n accessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n requiredness: z.enum(TechnicalDocumentationAssetRequiredness),\n rights: TechnicalDocumentationAssetRightsV1Schema,\n classification: TechnicalDocumentationAssetClassificationV1Schema,\n producerProvenance: TechnicalDocumentationAssetProducerProvenanceV1Schema.nullable(),\n status: z.enum(TechnicalDocumentationAssetResolutionStatus),\n semanticInputRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * Whether a producer actually observed the semantic input, or a placeholder stands in for one.\n * This is the ONLY fact the retired observed/expected digest pair ever carried — a placeholder\n * ships real bytes at a real path but nothing ran, so it must not echo an observation.\n */\n semanticInputObserved: z.boolean(),\n normalizedRelativePath: TechnicalDocumentationNormalizedRelativePathSchema.nullable(),\n mediaType: z.string().regex(/^[a-z0-9.+-]+\\/[a-z0-9.+-]+$/),\n byteLength: z.number().int().nonnegative().nullable(),\n /**\n * KEPT through the 2026-08-27 digest demolition, deliberately. This names OPAQUE EMITTED BYTES\n * and detects their corruption — the two uses a digest is actually for. What went was every\n * digest that recorded AGREEMENT between two parts of the repository, which git already records\n * per commit and mergeably.\n */\n byteDigest: MetaWorkflow_Sha256DigestSchema.nullable(),\n resolvedAt: MetaWorkflow_IsoDateTimeSchema,\n failureReason: z.string().trim().min(1).nullable(),\n })\n .superRefine((asset, context) => {\n /**\n * Two facts that used to be one, and had to be separated when `PLACEHOLDER` arrived.\n *\n * \"Ships bytes\" and \"observed the semantic input\" were the same condition while only\n * `RESOLVED` had either. A placeholder ships REAL bytes at a real path — that is what\n * distinguishes it from `MISSING` — but nothing observed the capture input, so echoing\n * an observed digest would manufacture agreement with a capture that never ran.\n *\n * `SHIPS_BYTES` therefore covers both, while `semanticInputObserved` stays\n * exclusive to `RESOLVED`.\n */\n const shipsBytes = asset.status === TechnicalDocumentationAssetResolutionStatus.RESOLVED\n || asset.status === TechnicalDocumentationAssetResolutionStatus.PLACEHOLDER;\n const isResolved = asset.status === TechnicalDocumentationAssetResolutionStatus.RESOLVED;\n const hasOutputIdentity = asset.normalizedRelativePath !== null\n && asset.byteLength !== null\n && asset.byteDigest !== null\n && asset.producerProvenance !== null;\n if (shipsBytes !== hasOutputIdentity) {\n context.addIssue({ code: \"custom\", message: \"only a RESOLVED or PLACEHOLDER asset carries complete output identity\", path: [\"status\"] });\n }\n if (isResolved !== asset.semanticInputObserved) {\n context.addIssue({ code: \"custom\", message: \"only a RESOLVED asset observed its semantic input\", path: [\"semanticInputObserved\"] });\n }\n // A placeholder did not FAIL — it is awaiting a capture. Requiring a failureReason here\n // would force every placeholder to describe a failure that did not happen.\n if (shipsBytes === (asset.failureReason !== null)) {\n context.addIssue({ code: \"custom\", message: \"failureReason is required only for assets that ship no bytes\", path: [\"failureReason\"] });\n }\n if (shipsBytes) {\n const expectedPath = technicalDocumentationCanonicalAssetRelativePathContract(asset);\n if (expectedPath !== null && asset.normalizedRelativePath !== expectedPath) {\n context.addIssue({ code: \"custom\", message: `asset path must be the canonical semantic path ${expectedPath}`, path: [\"normalizedRelativePath\"] });\n }\n }\n });\nexport type TechnicalDocumentationResolvedAssetV1 = z.infer<typeof TechnicalDocumentationResolvedAssetV1Schema>;\n\nexport const TechnicalDocumentationResolvedAssetSetV1Schema = z\n .strictObject({\n assets: z.array(TechnicalDocumentationResolvedAssetV1Schema),\n })\n .superRefine((set, context) => {\n const refs = set.assets.map((asset) => asset.assetRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(refs)) {\n context.addIssue({ code: \"custom\", message: \"assets must be unique and sorted by assetRef\", path: [\"assets\"] });\n }\n const paths = set.assets.flatMap((asset) => asset.normalizedRelativePath === null ? [] : [asset.normalizedRelativePath]);\n if (!technicalDocumentationPathsAreUnique(paths)) {\n context.addIssue({ code: \"custom\", message: \"asset paths must be unique, including case-folded uniqueness\", path: [\"assets\"] });\n }\n });\nexport type TechnicalDocumentationResolvedAssetSetV1 = z.infer<typeof TechnicalDocumentationResolvedAssetSetV1Schema>;\n"]}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, MetaWorkflow_Sha256DigestSchema } from "@wildo-ai/saas-models/meta-workflows";
2
+ import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, MetaWorkflow_Sha256DigestSchema } from "@wildo-ai/saas-models/public-runtime";
3
3
  import { TechnicalDocumentationAssetAccessClass, technicalDocumentationCanonicalAssetRelativePathContract, TechnicalDocumentationAssetKind, TechnicalDocumentationAssetRefSchema, TechnicalDocumentationAssetPublicationEligibility, } from "./technical-documentation-assets.schemas.js";
4
4
  import { TechnicalDocumentationNormalizedRelativePathSchema } from "./technical-documentation-common.schemas.js";
5
5
  export var TechnicalDocumentationCaptureSurfaceKind;
@@ -1 +1 @@
1
- {"version":3,"file":"technical-documentation-capture.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-capture.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEjO,OAAO,EACL,sCAAsC,EACtC,wDAAwD,EACxD,+BAA+B,EAC/B,oCAAoC,EACpC,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,kDAAkD,EAAE,MAAM,0CAA0C,CAAC;AAE9G,MAAM,CAAN,IAAY,wCAEX;AAFD,WAAY,wCAAwC;IAClD,iFAAqC,CAAA;AACvC,CAAC,EAFW,wCAAwC,KAAxC,wCAAwC,QAEnD;AAED,MAAM,CAAN,IAAY,wCAGX;AAHD,WAAY,wCAAwC;IAClD,yDAAa,CAAA;IACb,2DAAe,CAAA;AACjB,CAAC,EAHW,wCAAwC,KAAxC,wCAAwC,QAGnD;AAED,MAAM,CAAN,IAAY,0CAGX;AAHD,WAAY,0CAA0C;IACpD,iGAAmD,CAAA;IACnD,mFAAqC,CAAA;AACvC,CAAC,EAHW,0CAA0C,KAA1C,0CAA0C,QAGrD;AAED,MAAM,CAAN,IAAY,4CAGX;AAHD,WAAY,4CAA4C;IACtD,iFAAiC,CAAA;IACjC,uFAAuC,CAAA;AACzC,CAA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,YAAY,EAAE,CAAC;QAChD,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,2DAA2D,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzJ,CAAC;AACH,CAAC,CAAC,CAAC;AAGL,MAAM,UAAU,4CAA4C,CAC1D,KAA6C;IAE7C,OAAO,4CAA4C,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACnE,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, MetaWorkflow_Sha256DigestSchema } from \"@wildo-ai/saas-models/meta-workflows\";\n\nimport {\n TechnicalDocumentationAssetAccessClass,\n technicalDocumentationCanonicalAssetRelativePathContract,\n TechnicalDocumentationAssetKind,\n TechnicalDocumentationAssetRefSchema,\n TechnicalDocumentationAssetPublicationEligibility,\n} from \"./technical-documentation-assets.schemas\";\nimport { TechnicalDocumentationNormalizedRelativePathSchema } from \"./technical-documentation-common.schemas\";\n\nexport enum TechnicalDocumentationCaptureSurfaceKind {\n SAAS_APPLICATION = \"SAAS_APPLICATION\",\n}\n\nexport enum TechnicalDocumentationCaptureColorScheme {\n DARK = \"DARK\",\n LIGHT = \"LIGHT\",\n}\n\nexport enum TechnicalDocumentationCaptureNetworkPolicy {\n APPLICATION_ORIGIN_ONLY = \"APPLICATION_ORIGIN_ONLY\",\n BLOCK_UNDECLARED = \"BLOCK_UNDECLARED\",\n}\n\nexport enum TechnicalDocumentationCaptureInteractionKind {\n CLICK_LANDMARK = \"CLICK_LANDMARK\",\n WAIT_FOR_LANDMARK = \"WAIT_FOR_LANDMARK\",\n}\n\nexport enum TechnicalDocumentationCaptureLandmarkState {\n ATTACHED = \"ATTACHED\",\n ENABLED = \"ENABLED\",\n VISIBLE = \"VISIBLE\",\n}\n\nexport const TechnicalDocumentationCaptureViewportV1Schema = z.strictObject({\n width: z.number().int().min(320).max(3840),\n height: z.number().int().min(320).max(2160),\n deviceScaleFactor: z.number().min(1).max(3),\n});\nexport type TechnicalDocumentationCaptureViewportV1 = z.infer<typeof TechnicalDocumentationCaptureViewportV1Schema>;\n\nconst TechnicalDocumentationCaptureInteractionV1Schema = z.discriminatedUnion(\"interactionKind\", [\n z.strictObject({\n interactionKind: z.literal(TechnicalDocumentationCaptureInteractionKind.WAIT_FOR_LANDMARK),\n landmarkRef: MetaWorkflow_NamespacedRefSchema,\n expectedState: z.enum(TechnicalDocumentationCaptureLandmarkState),\n timeoutMs: z.number().int().positive().max(30_000),\n }),\n z.strictObject({\n interactionKind: z.literal(TechnicalDocumentationCaptureInteractionKind.CLICK_LANDMARK),\n landmarkRef: MetaWorkflow_NamespacedRefSchema,\n }),\n]);\nexport type TechnicalDocumentationCaptureInteractionV1 = z.infer<typeof TechnicalDocumentationCaptureInteractionV1Schema>;\n\n/**\n * Portable capture definition. It identifies semantic targets and deterministic controls only; concrete URLs, credentials, storage state and fixture handles\n * are execution-time bindings owned by the application adapter and cannot enter this persisted contract.\n */\nexport const TechnicalDocumentationCaptureDefinitionV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n captureRef: MetaWorkflow_NamespacedRefSchema,\n /** Advances whenever any field below changes. `captureRef@captureVersion` is this definition's identity. */\n captureVersion: MetaWorkflow_PositiveVersionSchema,\n assetRef: TechnicalDocumentationAssetRefSchema,\n surfaceKind: z.enum(TechnicalDocumentationCaptureSurfaceKind),\n semanticTargetRef: MetaWorkflow_NamespacedRefSchema,\n captureLandmarkRef: MetaWorkflow_NamespacedRefSchema,\n seedRef: MetaWorkflow_NamespacedRefSchema,\n seedVersion: MetaWorkflow_PositiveVersionSchema,\n personaRef: MetaWorkflow_NamespacedRefSchema,\n roleRef: MetaWorkflow_NamespacedRefSchema,\n authStateRef: MetaWorkflow_NamespacedRefSchema,\n locale: z.string().regex(/^[a-z]{2}(?:-[A-Z]{2})?$/),\n timezone: z.string().trim().min(1),\n frozenAt: MetaWorkflow_IsoDateTimeSchema,\n viewport: TechnicalDocumentationCaptureViewportV1Schema,\n colorScheme: z.enum(TechnicalDocumentationCaptureColorScheme),\n reducedMotion: z.literal(true),\n fontProfileRef: MetaWorkflow_NamespacedRefSchema,\n networkPolicy: z.enum(TechnicalDocumentationCaptureNetworkPolicy),\n interactions: z.array(TechnicalDocumentationCaptureInteractionV1Schema).min(1).max(32),\n});\nexport type TechnicalDocumentationCaptureDefinitionV1 = z.infer<typeof TechnicalDocumentationCaptureDefinitionV1Schema>;\n\nexport function createTechnicalDocumentationCaptureDefinitionV1(\n input: TechnicalDocumentationCaptureDefinitionV1,\n): TechnicalDocumentationCaptureDefinitionV1 {\n return TechnicalDocumentationCaptureDefinitionV1Schema.parse(input);\n}\n\nexport const TechnicalDocumentationCaptureExecutionRequestV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n definition: TechnicalDocumentationCaptureDefinitionV1Schema,\n applicationRef: MetaWorkflow_NamespacedRefSchema,\n environmentRef: MetaWorkflow_NamespacedRefSchema,\n runtimeRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * The revision of the application this capture ran against.\n *\n * Replaces `acceptedSemanticsDigest`, `frontendBuildDigest` and `themeDigest` — three sha256\n * fields that no production code ever populated (only tests did), each claiming to pin a facet of\n * a running build. A commit already identifies all three together, mergeably, and is the form\n * `createAssuranceProgramSourceRevision` settled on for the same question.\n */\n sourceRevisionRef: MetaWorkflow_NamespacedRefSchema,\n themeRef: MetaWorkflow_NamespacedRefSchema,\n browserProfileRef: MetaWorkflow_NamespacedRefSchema,\n effectiveAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n publicationEligibility: z.enum(TechnicalDocumentationAssetPublicationEligibility),\n}).superRefine((request, context) => {\n const expectedEligibility = request.effectiveAccessClass === TechnicalDocumentationAssetAccessClass.PUBLIC\n ? TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE\n : TechnicalDocumentationAssetPublicationEligibility.NON_PUBLIC;\n if (request.publicationEligibility !== expectedEligibility) {\n context.addIssue({ code: \"custom\", message: `capture request publication eligibility must be ${expectedEligibility}`, path: [\"publicationEligibility\"] });\n }\n});\nexport type TechnicalDocumentationCaptureExecutionRequestV1 = z.infer<typeof TechnicalDocumentationCaptureExecutionRequestV1Schema>;\n\nexport function createTechnicalDocumentationCaptureExecutionRequestV1(\n input: TechnicalDocumentationCaptureExecutionRequestV1,\n): TechnicalDocumentationCaptureExecutionRequestV1 {\n return TechnicalDocumentationCaptureExecutionRequestV1Schema.parse(input);\n}\n\n/** Persistent capture evidence. Execution-only credentials and fixture handles have no field in this schema. */\nexport const TechnicalDocumentationCaptureReceiptV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n receiptId: MetaWorkflow_LowercaseUuidV4Schema,\n captureRef: MetaWorkflow_NamespacedRefSchema,\n /** With `captureRef`, names the exact definition this capture executed. */\n captureVersion: MetaWorkflow_PositiveVersionSchema,\n assetRef: TechnicalDocumentationAssetRefSchema,\n applicationRef: MetaWorkflow_NamespacedRefSchema,\n environmentRef: MetaWorkflow_NamespacedRefSchema,\n runtimeRef: MetaWorkflow_NamespacedRefSchema,\n seedRef: MetaWorkflow_NamespacedRefSchema,\n seedVersion: MetaWorkflow_PositiveVersionSchema,\n browserRef: MetaWorkflow_NamespacedRefSchema,\n browserVersion: z.string().trim().min(1),\n operatingSystemRef: MetaWorkflow_NamespacedRefSchema,\n fontProfileRef: MetaWorkflow_NamespacedRefSchema,\n viewport: TechnicalDocumentationCaptureViewportV1Schema,\n outputRelativePath: TechnicalDocumentationNormalizedRelativePathSchema,\n outputMediaType: z.literal(\"image/png\"),\n outputByteLength: z.number().int().positive(),\n outputByteDigest: MetaWorkflow_Sha256DigestSchema,\n effectiveAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n publicationEligibility: z.enum(TechnicalDocumentationAssetPublicationEligibility),\n capturedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((receipt, context) => {\n const expectedEligibility = receipt.effectiveAccessClass === TechnicalDocumentationAssetAccessClass.PUBLIC\n ? TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE\n : TechnicalDocumentationAssetPublicationEligibility.NON_PUBLIC;\n if (receipt.publicationEligibility !== expectedEligibility) {\n context.addIssue({ code: \"custom\", message: `capture publication eligibility must be ${expectedEligibility}`, path: [\"publicationEligibility\"] });\n }\n const expectedPath = technicalDocumentationCanonicalAssetRelativePathContract({\n assetRef: receipt.assetRef,\n kind: TechnicalDocumentationAssetKind.PRODUCT_SCREENSHOT,\n mediaType: receipt.outputMediaType,\n });\n if (receipt.outputRelativePath !== expectedPath) {\n context.addIssue({ code: \"custom\", message: `capture output path must be the canonical semantic path ${expectedPath}`, path: [\"outputRelativePath\"] });\n }\n });\nexport type TechnicalDocumentationCaptureReceiptV1 = z.infer<typeof TechnicalDocumentationCaptureReceiptV1Schema>;\n\nexport function createTechnicalDocumentationCaptureReceiptV1(\n input: TechnicalDocumentationCaptureReceiptV1,\n): TechnicalDocumentationCaptureReceiptV1 {\n return TechnicalDocumentationCaptureReceiptV1Schema.parse(input);\n}\n"]}
1
+ {"version":3,"file":"technical-documentation-capture.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-capture.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEjO,OAAO,EACL,sCAAsC,EACtC,wDAAwD,EACxD,+BAA+B,EAC/B,oCAAoC,EACpC,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,kDAAkD,EAAE,MAAM,0CAA0C,CAAC;AAE9G,MAAM,CAAN,IAAY,wCAEX;AAFD,WAAY,wCAAwC;I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AAU,CAAC;IACjE,IAAI,OAAO,CAAC,sBAAsB,KAAK,mBAAmB,EAAE,CAAC;QAC3D,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,2CAA2C,mBAAmB,EAAE,EAAE,IAAI,EAAE,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAAC;IACpJ,CAAC;IACD,MAAM,YAAY,GAAG,wDAAwD,CAAC;QAC5E,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,IAAI,EAAE,+BAA+B,CAAC,kBAAkB;QACxD,SAAS,EAAE,OAAO,CAAC,eAAe;KACnC,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,kBAAkB,KAAK,YAAY,EAAE,CAAC;QAChD,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,2DAA2D,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzJ,CAAC;AACH,CAAC,CAAC,CAAC;AAGL,MAAM,UAAU,4CAA4C,CAC1D,KAA6C;IAE7C,OAAO,4CAA4C,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACnE,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, MetaWorkflow_Sha256DigestSchema } from \"@wildo-ai/saas-models/public-runtime\";\n\nimport {\n TechnicalDocumentationAssetAccessClass,\n technicalDocumentationCanonicalAssetRelativePathContract,\n TechnicalDocumentationAssetKind,\n TechnicalDocumentationAssetRefSchema,\n TechnicalDocumentationAssetPublicationEligibility,\n} from \"./technical-documentation-assets.schemas\";\nimport { TechnicalDocumentationNormalizedRelativePathSchema } from \"./technical-documentation-common.schemas\";\n\nexport enum TechnicalDocumentationCaptureSurfaceKind {\n SAAS_APPLICATION = \"SAAS_APPLICATION\",\n}\n\nexport enum TechnicalDocumentationCaptureColorScheme {\n DARK = \"DARK\",\n LIGHT = \"LIGHT\",\n}\n\nexport enum TechnicalDocumentationCaptureNetworkPolicy {\n APPLICATION_ORIGIN_ONLY = \"APPLICATION_ORIGIN_ONLY\",\n BLOCK_UNDECLARED = \"BLOCK_UNDECLARED\",\n}\n\nexport enum TechnicalDocumentationCaptureInteractionKind {\n CLICK_LANDMARK = \"CLICK_LANDMARK\",\n WAIT_FOR_LANDMARK = \"WAIT_FOR_LANDMARK\",\n}\n\nexport enum TechnicalDocumentationCaptureLandmarkState {\n ATTACHED = \"ATTACHED\",\n ENABLED = \"ENABLED\",\n VISIBLE = \"VISIBLE\",\n}\n\nexport const TechnicalDocumentationCaptureViewportV1Schema = z.strictObject({\n width: z.number().int().min(320).max(3840),\n height: z.number().int().min(320).max(2160),\n deviceScaleFactor: z.number().min(1).max(3),\n});\nexport type TechnicalDocumentationCaptureViewportV1 = z.infer<typeof TechnicalDocumentationCaptureViewportV1Schema>;\n\nconst TechnicalDocumentationCaptureInteractionV1Schema = z.discriminatedUnion(\"interactionKind\", [\n z.strictObject({\n interactionKind: z.literal(TechnicalDocumentationCaptureInteractionKind.WAIT_FOR_LANDMARK),\n landmarkRef: MetaWorkflow_NamespacedRefSchema,\n expectedState: z.enum(TechnicalDocumentationCaptureLandmarkState),\n timeoutMs: z.number().int().positive().max(30_000),\n }),\n z.strictObject({\n interactionKind: z.literal(TechnicalDocumentationCaptureInteractionKind.CLICK_LANDMARK),\n landmarkRef: MetaWorkflow_NamespacedRefSchema,\n }),\n]);\nexport type TechnicalDocumentationCaptureInteractionV1 = z.infer<typeof TechnicalDocumentationCaptureInteractionV1Schema>;\n\n/**\n * Portable capture definition. It identifies semantic targets and deterministic controls only; concrete URLs, credentials, storage state and fixture handles\n * are execution-time bindings owned by the application adapter and cannot enter this persisted contract.\n */\nexport const TechnicalDocumentationCaptureDefinitionV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n captureRef: MetaWorkflow_NamespacedRefSchema,\n /** Advances whenever any field below changes. `captureRef@captureVersion` is this definition's identity. */\n captureVersion: MetaWorkflow_PositiveVersionSchema,\n assetRef: TechnicalDocumentationAssetRefSchema,\n surfaceKind: z.enum(TechnicalDocumentationCaptureSurfaceKind),\n semanticTargetRef: MetaWorkflow_NamespacedRefSchema,\n captureLandmarkRef: MetaWorkflow_NamespacedRefSchema,\n seedRef: MetaWorkflow_NamespacedRefSchema,\n seedVersion: MetaWorkflow_PositiveVersionSchema,\n personaRef: MetaWorkflow_NamespacedRefSchema,\n roleRef: MetaWorkflow_NamespacedRefSchema,\n authStateRef: MetaWorkflow_NamespacedRefSchema,\n locale: z.string().regex(/^[a-z]{2}(?:-[A-Z]{2})?$/),\n timezone: z.string().trim().min(1),\n frozenAt: MetaWorkflow_IsoDateTimeSchema,\n viewport: TechnicalDocumentationCaptureViewportV1Schema,\n colorScheme: z.enum(TechnicalDocumentationCaptureColorScheme),\n reducedMotion: z.literal(true),\n fontProfileRef: MetaWorkflow_NamespacedRefSchema,\n networkPolicy: z.enum(TechnicalDocumentationCaptureNetworkPolicy),\n interactions: z.array(TechnicalDocumentationCaptureInteractionV1Schema).min(1).max(32),\n});\nexport type TechnicalDocumentationCaptureDefinitionV1 = z.infer<typeof TechnicalDocumentationCaptureDefinitionV1Schema>;\n\nexport function createTechnicalDocumentationCaptureDefinitionV1(\n input: TechnicalDocumentationCaptureDefinitionV1,\n): TechnicalDocumentationCaptureDefinitionV1 {\n return TechnicalDocumentationCaptureDefinitionV1Schema.parse(input);\n}\n\nexport const TechnicalDocumentationCaptureExecutionRequestV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n definition: TechnicalDocumentationCaptureDefinitionV1Schema,\n applicationRef: MetaWorkflow_NamespacedRefSchema,\n environmentRef: MetaWorkflow_NamespacedRefSchema,\n runtimeRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * The revision of the application this capture ran against.\n *\n * Replaces `acceptedSemanticsDigest`, `frontendBuildDigest` and `themeDigest` — three sha256\n * fields that no production code ever populated (only tests did), each claiming to pin a facet of\n * a running build. A commit already identifies all three together, mergeably, and is the form\n * `createAssuranceProgramSourceRevision` settled on for the same question.\n */\n sourceRevisionRef: MetaWorkflow_NamespacedRefSchema,\n themeRef: MetaWorkflow_NamespacedRefSchema,\n browserProfileRef: MetaWorkflow_NamespacedRefSchema,\n effectiveAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n publicationEligibility: z.enum(TechnicalDocumentationAssetPublicationEligibility),\n}).superRefine((request, context) => {\n const expectedEligibility = request.effectiveAccessClass === TechnicalDocumentationAssetAccessClass.PUBLIC\n ? TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE\n : TechnicalDocumentationAssetPublicationEligibility.NON_PUBLIC;\n if (request.publicationEligibility !== expectedEligibility) {\n context.addIssue({ code: \"custom\", message: `capture request publication eligibility must be ${expectedEligibility}`, path: [\"publicationEligibility\"] });\n }\n});\nexport type TechnicalDocumentationCaptureExecutionRequestV1 = z.infer<typeof TechnicalDocumentationCaptureExecutionRequestV1Schema>;\n\nexport function createTechnicalDocumentationCaptureExecutionRequestV1(\n input: TechnicalDocumentationCaptureExecutionRequestV1,\n): TechnicalDocumentationCaptureExecutionRequestV1 {\n return TechnicalDocumentationCaptureExecutionRequestV1Schema.parse(input);\n}\n\n/** Persistent capture evidence. Execution-only credentials and fixture handles have no field in this schema. */\nexport const TechnicalDocumentationCaptureReceiptV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n receiptId: MetaWorkflow_LowercaseUuidV4Schema,\n captureRef: MetaWorkflow_NamespacedRefSchema,\n /** With `captureRef`, names the exact definition this capture executed. */\n captureVersion: MetaWorkflow_PositiveVersionSchema,\n assetRef: TechnicalDocumentationAssetRefSchema,\n applicationRef: MetaWorkflow_NamespacedRefSchema,\n environmentRef: MetaWorkflow_NamespacedRefSchema,\n runtimeRef: MetaWorkflow_NamespacedRefSchema,\n seedRef: MetaWorkflow_NamespacedRefSchema,\n seedVersion: MetaWorkflow_PositiveVersionSchema,\n browserRef: MetaWorkflow_NamespacedRefSchema,\n browserVersion: z.string().trim().min(1),\n operatingSystemRef: MetaWorkflow_NamespacedRefSchema,\n fontProfileRef: MetaWorkflow_NamespacedRefSchema,\n viewport: TechnicalDocumentationCaptureViewportV1Schema,\n outputRelativePath: TechnicalDocumentationNormalizedRelativePathSchema,\n outputMediaType: z.literal(\"image/png\"),\n outputByteLength: z.number().int().positive(),\n outputByteDigest: MetaWorkflow_Sha256DigestSchema,\n effectiveAccessClass: z.enum(TechnicalDocumentationAssetAccessClass),\n publicationEligibility: z.enum(TechnicalDocumentationAssetPublicationEligibility),\n capturedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((receipt, context) => {\n const expectedEligibility = receipt.effectiveAccessClass === TechnicalDocumentationAssetAccessClass.PUBLIC\n ? TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE\n : TechnicalDocumentationAssetPublicationEligibility.NON_PUBLIC;\n if (receipt.publicationEligibility !== expectedEligibility) {\n context.addIssue({ code: \"custom\", message: `capture publication eligibility must be ${expectedEligibility}`, path: [\"publicationEligibility\"] });\n }\n const expectedPath = technicalDocumentationCanonicalAssetRelativePathContract({\n assetRef: receipt.assetRef,\n kind: TechnicalDocumentationAssetKind.PRODUCT_SCREENSHOT,\n mediaType: receipt.outputMediaType,\n });\n if (receipt.outputRelativePath !== expectedPath) {\n context.addIssue({ code: \"custom\", message: `capture output path must be the canonical semantic path ${expectedPath}`, path: [\"outputRelativePath\"] });\n }\n });\nexport type TechnicalDocumentationCaptureReceiptV1 = z.infer<typeof TechnicalDocumentationCaptureReceiptV1Schema>;\n\nexport function createTechnicalDocumentationCaptureReceiptV1(\n input: TechnicalDocumentationCaptureReceiptV1,\n): TechnicalDocumentationCaptureReceiptV1 {\n return TechnicalDocumentationCaptureReceiptV1Schema.parse(input);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, metaWorkflowValuesAreLexicallySorted, metaWorkflowValuesAreUnique } from "@wildo-ai/saas-models/meta-workflows";
2
+ import { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, metaWorkflowValuesAreLexicallySorted, metaWorkflowValuesAreUnique } from "@wildo-ai/saas-models/public-runtime";
3
3
  /** One portable POSIX path inside a generated documentation tree. */
4
4
  export const TechnicalDocumentationNormalizedRelativePathSchema = z
5
5
  .string()
@@ -1 +1 @@
1
- {"version":3,"file":"technical-documentation-common.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-common.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,oCAAoC,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAE/L,qEAAqE;AACrE,MAAM,CAAC,MAAM,kDAAkD,GAAG,CAAC;KAChE,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,MAAM,CACL,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;OAC1B,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;OACxB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;OACpB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CAAC,EAClF,EAAE,OAAO,EAAE,2EAA2E,EAAE,CACzF;KACA,KAAK,EAAkD,CAAC;AAG3D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5E,GAAG,EAAE,g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C,IAAI,2BAA2B,CAAC,UAAU,CAAC,CAAC;AACxF,CAAC;AAED,MAAM,iBAAiB,GAAG,kSAAkS,CAAC;AAE7T,sEAAsE;AACtE,MAAM,UAAU,0CAA0C,CAAC,KAAc,EAAE,OAA0B,EAAE;IACrG,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;YACrD,MAAM,KAAK,GAAG,0CAA0C,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACjG,IAAI,KAAK,KAAK,IAAI;gBAAE,OAAO,KAAK,CAAC;QACnC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC7D,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAA0C,CAAC,EAAE,CAAC;QACvF,IAAI,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC;QACvD,MAAM,KAAK,GAAG,0CAA0C,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;QACjF,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;IACnC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, metaWorkflowValuesAreLexicallySorted, metaWorkflowValuesAreUnique } from \"@wildo-ai/saas-models/meta-workflows\";\n\n/** One portable POSIX path inside a generated documentation tree. */\nexport const TechnicalDocumentationNormalizedRelativePathSchema = z\n .string()\n .min(1)\n .refine(\n (path) => !path.startsWith(\"/\")\n && !/^[A-Za-z]:/.test(path)\n && !path.includes(\"\\\\\")\n && path.split(\"/\").every((part) => part !== \"\" && part !== \".\" && part !== \"..\"),\n { message: \"expected a normalized POSIX documentation-relative path without traversal\" },\n )\n .brand<\"TechnicalDocumentationNormalizedRelativePath\">();\nexport type TechnicalDocumentationNormalizedRelativePath = z.infer<typeof TechnicalDocumentationNormalizedRelativePathSchema>;\n\n/**\n * The identity every technical-documentation stage carries, and the only one it carries.\n *\n * Until 2026-08-27 each stage sealed itself with a sha256 over its own canonical form, and named\n * the stage before it by that stage's digest. Both halves were bookkeeping. The self-seal shipped\n * INSIDE the object it hashed, so it could not detect tampering or drift — only a producer that had\n * already computed it wrong. The cross-stage reference was worse: two branches that both regenerate\n * documentation produce two digests for one publication, and no merge can reconcile them.\n *\n * `ref` + `version` is the replacement everywhere. It merges, it reads, and a human can tell at a\n * glance which two things are being said to be the same. See `.claude/rules/one-source-of-truth.md`\n * Rule 0 — nothing that is not branchable on git.\n *\n * Byte digests were NOT removed. Naming emitted content and detecting its corruption is exactly what\n * a digest is for; recording agreement between two parts of the repository never was.\n */\nexport const TechnicalDocumentationVersionedIdentityV1Schema = z.strictObject({\n ref: MetaWorkflow_NamespacedRefSchema,\n version: MetaWorkflow_PositiveVersionSchema,\n});\nexport type TechnicalDocumentationVersionedIdentityV1 = z.infer<typeof TechnicalDocumentationVersionedIdentityV1Schema>;\n\nexport function technicalDocumentationIdentitiesAreEqual(\n left: TechnicalDocumentationVersionedIdentityV1,\n right: TechnicalDocumentationVersionedIdentityV1 | null,\n): boolean {\n return right !== null && left.ref === right.ref && left.version === right.version;\n}\n\n/** Stable semantic ids are namespaced and never derived from display labels. */\nexport const TechnicalDocumentationRefSchema = MetaWorkflow_NamespacedRefSchema;\nexport type TechnicalDocumentationRef = z.infer<typeof TechnicalDocumentationRefSchema>;\n\n/**\n * JSON-only canonical form. Arrays retain semantic order.\n *\n * This survived the 2026-08-27 digest demolition because it never hashed anything: it is how two\n * rows claiming the same key are compared for disagreement. Canonicalizing to compare is content\n * validation; hashing to record agreement was the bookkeeping this subsystem no longer does.\n */\nexport function canonicalizeTechnicalDocumentationJson(value: unknown): string {\n const visit = (candidate: unknown): unknown => {\n if (Array.isArray(candidate)) return candidate.map(visit);\n if (typeof candidate === \"number\" && !Number.isFinite(candidate)) {\n throw new Error(\"technical-documentation canonical form cannot contain non-finite numbers\");\n }\n if (candidate !== null && typeof candidate === \"object\") {\n const prototype = Object.getPrototypeOf(candidate);\n if (prototype !== Object.prototype && prototype !== null) {\n throw new Error(\"technical-documentation canonical form must contain only plain JSON objects\");\n }\n return Object.fromEntries(\n Object.entries(candidate as Readonly<Record<string, unknown>>)\n .filter(([, member]) => member !== undefined)\n .sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)\n .map(([key, member]) => [key, visit(member)]),\n );\n }\n if (candidate === undefined || typeof candidate === \"bigint\" || typeof candidate === \"function\" || typeof candidate === \"symbol\") {\n throw new Error(\"technical-documentation canonical form must be JSON-safe\");\n }\n return candidate;\n };\n\n return JSON.stringify(visit(value));\n}\n\nexport function technicalDocumentationValuesAreUniqueAndSorted(values: readonly string[]): boolean {\n return metaWorkflowValuesAreUnique(values) && metaWorkflowValuesAreLexicallySorted(values);\n}\n\nexport function canonicalizeTechnicalDocumentationValues(values: readonly string[]): string[] {\n return [...new Set(values)].sort((left, right) => left < right ? -1 : left > right ? 1 : 0);\n}\n\n/** Canonicalizes keyed semantic rows and rejects duplicate keys that disagree. */\nexport function canonicalizeTechnicalDocumentationRows<T>(\n rows: readonly T[],\n keyOf: (row: T) => string,\n): T[] {\n const byKey = new Map<string, T>();\n for (const row of rows) {\n const key = keyOf(row);\n const existing = byKey.get(key);\n if (existing !== undefined && canonicalizeTechnicalDocumentationJson(existing) !== canonicalizeTechnicalDocumentationJson(row)) {\n throw new Error(`conflicting technical-documentation rows for ${key}`);\n }\n byKey.set(key, row);\n }\n return [...byKey.entries()]\n .sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)\n .map(([, row]) => row);\n}\n\nexport function technicalDocumentationPathsAreUniqueAndSorted(values: readonly string[]): boolean {\n if (!technicalDocumentationValuesAreUniqueAndSorted(values)) return false;\n const caseFolded = values.map((value) => value.toLocaleLowerCase(\"en-US\"));\n return metaWorkflowValuesAreUnique(caseFolded);\n}\n\nexport function technicalDocumentationPathsAreUnique(values: readonly string[]): boolean {\n const caseFolded = values.map((value) => value.toLocaleLowerCase(\"en-US\"));\n return metaWorkflowValuesAreUnique(values) && metaWorkflowValuesAreUnique(caseFolded);\n}\n\nconst SECRET_SHAPED_KEY = /(?:^|[_-])(?:secret|token|password|credential|private[_-]?key|api[_-]?key|client[_-]?secret|access[_-]?token|refresh[_-]?token)(?:$|[_-])|(?:clientSecret|accessToken|refreshToken|privateKey|apiKey|Secret|Password|Credential|PrivateKey|ApiKey|APIKey|ClientSecret|AccessToken|RefreshToken)$/;\n\n/** Defense-in-depth inspection used at the public projection seam. */\nexport function findTechnicalDocumentationSecretShapedPath(value: unknown, path: readonly string[] = []): string[] | null {\n if (Array.isArray(value)) {\n for (let index = 0; index < value.length; index += 1) {\n const found = findTechnicalDocumentationSecretShapedPath(value[index], [...path, String(index)]);\n if (found !== null) return found;\n }\n return null;\n }\n if (value === null || typeof value !== \"object\") return null;\n for (const [key, member] of Object.entries(value as Readonly<Record<string, unknown>>)) {\n if (SECRET_SHAPED_KEY.test(key)) return [...path, key];\n const found = findTechnicalDocumentationSecretShapedPath(member, [...path, key]);\n if (found !== null) return found;\n }\n return null;\n}\n"]}
1
+ {"version":3,"file":"technical-documentation-common.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-common.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,kCAAkC,EA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AAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC7D,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAA0C,CAAC,EAAE,CAAC;QACvF,IAAI,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC;QACvD,MAAM,KAAK,GAAG,0CAA0C,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;QACjF,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;IACnC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, metaWorkflowValuesAreLexicallySorted, metaWorkflowValuesAreUnique } from \"@wildo-ai/saas-models/public-runtime\";\n\n/** One portable POSIX path inside a generated documentation tree. */\nexport const TechnicalDocumentationNormalizedRelativePathSchema = z\n .string()\n .min(1)\n .refine(\n (path) => !path.startsWith(\"/\")\n && !/^[A-Za-z]:/.test(path)\n && !path.includes(\"\\\\\")\n && path.split(\"/\").every((part) => part !== \"\" && part !== \".\" && part !== \"..\"),\n { message: \"expected a normalized POSIX documentation-relative path without traversal\" },\n )\n .brand<\"TechnicalDocumentationNormalizedRelativePath\">();\nexport type TechnicalDocumentationNormalizedRelativePath = z.infer<typeof TechnicalDocumentationNormalizedRelativePathSchema>;\n\n/**\n * The identity every technical-documentation stage carries, and the only one it carries.\n *\n * Until 2026-08-27 each stage sealed itself with a sha256 over its own canonical form, and named\n * the stage before it by that stage's digest. Both halves were bookkeeping. The self-seal shipped\n * INSIDE the object it hashed, so it could not detect tampering or drift — only a producer that had\n * already computed it wrong. The cross-stage reference was worse: two branches that both regenerate\n * documentation produce two digests for one publication, and no merge can reconcile them.\n *\n * `ref` + `version` is the replacement everywhere. It merges, it reads, and a human can tell at a\n * glance which two things are being said to be the same. See `.claude/rules/one-source-of-truth.md`\n * Rule 0 — nothing that is not branchable on git.\n *\n * Byte digests were NOT removed. Naming emitted content and detecting its corruption is exactly what\n * a digest is for; recording agreement between two parts of the repository never was.\n */\nexport const TechnicalDocumentationVersionedIdentityV1Schema = z.strictObject({\n ref: MetaWorkflow_NamespacedRefSchema,\n version: MetaWorkflow_PositiveVersionSchema,\n});\nexport type TechnicalDocumentationVersionedIdentityV1 = z.infer<typeof TechnicalDocumentationVersionedIdentityV1Schema>;\n\nexport function technicalDocumentationIdentitiesAreEqual(\n left: TechnicalDocumentationVersionedIdentityV1,\n right: TechnicalDocumentationVersionedIdentityV1 | null,\n): boolean {\n return right !== null && left.ref === right.ref && left.version === right.version;\n}\n\n/** Stable semantic ids are namespaced and never derived from display labels. */\nexport const TechnicalDocumentationRefSchema = MetaWorkflow_NamespacedRefSchema;\nexport type TechnicalDocumentationRef = z.infer<typeof TechnicalDocumentationRefSchema>;\n\n/**\n * JSON-only canonical form. Arrays retain semantic order.\n *\n * This survived the 2026-08-27 digest demolition because it never hashed anything: it is how two\n * rows claiming the same key are compared for disagreement. Canonicalizing to compare is content\n * validation; hashing to record agreement was the bookkeeping this subsystem no longer does.\n */\nexport function canonicalizeTechnicalDocumentationJson(value: unknown): string {\n const visit = (candidate: unknown): unknown => {\n if (Array.isArray(candidate)) return candidate.map(visit);\n if (typeof candidate === \"number\" && !Number.isFinite(candidate)) {\n throw new Error(\"technical-documentation canonical form cannot contain non-finite numbers\");\n }\n if (candidate !== null && typeof candidate === \"object\") {\n const prototype = Object.getPrototypeOf(candidate);\n if (prototype !== Object.prototype && prototype !== null) {\n throw new Error(\"technical-documentation canonical form must contain only plain JSON objects\");\n }\n return Object.fromEntries(\n Object.entries(candidate as Readonly<Record<string, unknown>>)\n .filter(([, member]) => member !== undefined)\n .sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)\n .map(([key, member]) => [key, visit(member)]),\n );\n }\n if (candidate === undefined || typeof candidate === \"bigint\" || typeof candidate === \"function\" || typeof candidate === \"symbol\") {\n throw new Error(\"technical-documentation canonical form must be JSON-safe\");\n }\n return candidate;\n };\n\n return JSON.stringify(visit(value));\n}\n\nexport function technicalDocumentationValuesAreUniqueAndSorted(values: readonly string[]): boolean {\n return metaWorkflowValuesAreUnique(values) && metaWorkflowValuesAreLexicallySorted(values);\n}\n\nexport function canonicalizeTechnicalDocumentationValues(values: readonly string[]): string[] {\n return [...new Set(values)].sort((left, right) => left < right ? -1 : left > right ? 1 : 0);\n}\n\n/** Canonicalizes keyed semantic rows and rejects duplicate keys that disagree. */\nexport function canonicalizeTechnicalDocumentationRows<T>(\n rows: readonly T[],\n keyOf: (row: T) => string,\n): T[] {\n const byKey = new Map<string, T>();\n for (const row of rows) {\n const key = keyOf(row);\n const existing = byKey.get(key);\n if (existing !== undefined && canonicalizeTechnicalDocumentationJson(existing) !== canonicalizeTechnicalDocumentationJson(row)) {\n throw new Error(`conflicting technical-documentation rows for ${key}`);\n }\n byKey.set(key, row);\n }\n return [...byKey.entries()]\n .sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)\n .map(([, row]) => row);\n}\n\nexport function technicalDocumentationPathsAreUniqueAndSorted(values: readonly string[]): boolean {\n if (!technicalDocumentationValuesAreUniqueAndSorted(values)) return false;\n const caseFolded = values.map((value) => value.toLocaleLowerCase(\"en-US\"));\n return metaWorkflowValuesAreUnique(caseFolded);\n}\n\nexport function technicalDocumentationPathsAreUnique(values: readonly string[]): boolean {\n const caseFolded = values.map((value) => value.toLocaleLowerCase(\"en-US\"));\n return metaWorkflowValuesAreUnique(values) && metaWorkflowValuesAreUnique(caseFolded);\n}\n\nconst SECRET_SHAPED_KEY = /(?:^|[_-])(?:secret|token|password|credential|private[_-]?key|api[_-]?key|client[_-]?secret|access[_-]?token|refresh[_-]?token)(?:$|[_-])|(?:clientSecret|accessToken|refreshToken|privateKey|apiKey|Secret|Password|Credential|PrivateKey|ApiKey|APIKey|ClientSecret|AccessToken|RefreshToken)$/;\n\n/** Defense-in-depth inspection used at the public projection seam. */\nexport function findTechnicalDocumentationSecretShapedPath(value: unknown, path: readonly string[] = []): string[] | null {\n if (Array.isArray(value)) {\n for (let index = 0; index < value.length; index += 1) {\n const found = findTechnicalDocumentationSecretShapedPath(value[index], [...path, String(index)]);\n if (found !== null) return found;\n }\n return null;\n }\n if (value === null || typeof value !== \"object\") return null;\n for (const [key, member] of Object.entries(value as Readonly<Record<string, unknown>>)) {\n if (SECRET_SHAPED_KEY.test(key)) return [...path, key];\n const found = findTechnicalDocumentationSecretShapedPath(member, [...path, key]);\n if (found !== null) return found;\n }\n return null;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from "@wildo-ai/saas-models/meta-workflows";
2
+ import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from "@wildo-ai/saas-models/public-runtime";
3
3
  import { technicalDocumentationValuesAreUniqueAndSorted, } from "./technical-documentation-common.schemas.js";
4
4
  /** Independent claims which must never be collapsed into one `enabled` boolean. */
5
5
  export var TechnicalDocumentationApplicabilityEvidenceAxis;
@@ -1 +1 @@
1
- {"version":3,"file":"technical-documentation-evidence.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-evidence.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE5J,OAAO,EACL,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAElD,mFAAmF;AACnF,MAAM,CAAN,IAAY,+CA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,gBAAgB,EAAE,gCAAgC;IAClD,oBAAoB,EAAE,kCAAkC;CACzD,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from \"@wildo-ai/saas-models/meta-workflows\";\n\nimport {\n technicalDocumentationValuesAreUniqueAndSorted,\n} from \"./technical-documentation-common.schemas\";\n\n/** Independent claims which must never be collapsed into one `enabled` boolean. */\nexport enum TechnicalDocumentationApplicabilityEvidenceAxis {\n ACCEPTED_APPLICATION_INTENT = \"ACCEPTED_APPLICATION_INTENT\",\n /**\n * A build artifact was inspected and found to contain the subject (today: the\n * frontend bundle carrying an execution view). Renamed from\n * `RUNTIME_MATERIALIZATION` under D14 — the authority is a materialized\n * artifact on disk, never a live scope.\n */\n ARTIFACT_MATERIALIZATION = \"ARTIFACT_MATERIALIZATION\",\n CONFIGURED_ACTIVATION = \"CONFIGURED_ACTIVATION\",\n ENGINE_SUPPORT = \"ENGINE_SUPPORT\",\n /**\n * The application's own derived operation projection exposes this surface —\n * the resources behind it are registered AND admitted by the application's\n * declared `apiDocResources` opt-in. Renamed from `RUNTIME_EXPOSURE` under\n * D14: nothing observes a running process, so the old name described an\n * acquisition method the architecture no longer has.\n */\n EXPOSED_API_SURFACE = \"EXPOSED_API_SURFACE\",\n PROVIDER_SELECTION = \"PROVIDER_SELECTION\",\n PUBLICATION = \"PUBLICATION\",\n}\n\nexport enum TechnicalDocumentationApplicabilityEvidenceStatus {\n CONFLICTED = \"CONFLICTED\",\n DISPROVEN = \"DISPROVEN\",\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n PROVEN = \"PROVEN\",\n STALE = \"STALE\",\n UNKNOWN = \"UNKNOWN\",\n UNPROVEN = \"UNPROVEN\",\n}\n\nexport enum TechnicalDocumentationApplicabilityEvidenceReason {\n AUTHORITATIVE_NEGATIVE_EVIDENCE = \"AUTHORITATIVE_NEGATIVE_EVIDENCE\",\n AUTHORITATIVE_POSITIVE_EVIDENCE = \"AUTHORITATIVE_POSITIVE_EVIDENCE\",\n EVIDENCE_CONFLICT = \"EVIDENCE_CONFLICT\",\n EVIDENCE_EXPIRED = \"EVIDENCE_EXPIRED\",\n EVIDENCE_NOT_REQUIRED = \"EVIDENCE_NOT_REQUIRED\",\n MISSING_AUTHORITY = \"MISSING_AUTHORITY\",\n MISSING_EVIDENCE = \"MISSING_EVIDENCE\",\n UNRECOGNIZED_SUBJECT = \"UNRECOGNIZED_SUBJECT\",\n}\n\n/**\n * What kind of authority an observation was read FROM.\n *\n * D14 removed `RUNTIME_RECEIPT` and `HEALTH_RECEIPT`. Both named the deleted\n * backend receipt — an authority that no longer exists and that nothing can\n * produce — so keeping them let a future producer declare provenance it could\n * not have. That is the same misdescription the `RUNTIME_*` axis names carried,\n * and it is worse here: an axis says what is claimed, an authority says why the\n * claim should be believed.\n *\n * `PUBLICATION_RECEIPT` is deliberately KEPT despite also having no emitter\n * today. It does not name a deleted authority; it names a real one whose\n * producer is still unbuilt — the Phase 2A publication path, which seals a\n * receipt when it publishes. Deleting a concept because its producer is pending\n * and deleting one because its subject was removed are different acts, and\n * collapsing them would lose the distinction the vocabulary exists to carry.\n */\nexport enum TechnicalDocumentationEvidenceAuthorityKind {\n ACCEPTED_SPECIFICATION = \"ACCEPTED_SPECIFICATION\",\n CONFIGURATION = \"CONFIGURATION\",\n ENGINE_CONTENT_REGISTRY = \"ENGINE_CONTENT_REGISTRY\",\n MATERIALIZED_ARTIFACT = \"MATERIALIZED_ARTIFACT\",\n PUBLICATION_RECEIPT = \"PUBLICATION_RECEIPT\",\n}\n\n/** Closed subject identities shared by reusable content requirements and application-owned evidence producers. */\nexport enum TechnicalDocumentationEvidenceSubjectRef {\n APPLICATION_A2A_AGENT_SURFACE = \"technical-documentation:subject/application-a2a-agent-surface\",\n APPLICATION_API = \"technical-documentation:subject/application-api\",\n APPLICATION_MCP_TOOL_SURFACE = \"technical-documentation:subject/application-mcp-tool-surface\",\n ORGANIZATION_BILLING_ADMINISTRATION = \"technical-documentation:subject/organization-billing-administration\",\n ORGANIZATION_SIEM_DELIVERY_RECOVERY = \"technical-documentation:subject/organization-siem-delivery-recovery\",\n ORGANIZATION_SIEM_EXPORT = \"technical-documentation:subject/organization-siem-export\",\n OUTBOUND_M2M_DELIVERY = \"technical-documentation:subject/outbound-m2m-delivery\",\n OUTBOUND_M2M_SIGNATURE = \"technical-documentation:subject/outbound-m2m-signature\",\n}\n\n/**\n * Axes whose observations describe something seen in a running scope, and which\n * therefore must carry both `runtimeScopeRef` and `hostRef`.\n *\n * **This set is empty, and that is its steady state under D14.** Documentation\n * evidence is derived from source and from the named environment's declarative\n * configuration, so no axis is entitled to claim a runtime scope. The\n * biconditional below therefore now enforces D14's central invariant directly:\n * a source-derived observation that attaches a `runtimeScopeRef` is rejected.\n *\n * It is kept rather than deleted because the ONE surviving runtime path —\n * product capture, which photographs a live UI and cannot be derived from\n * source — will need host attribution when it lands, and it belongs here rather\n * than in a second parallel mechanism. Do not add an axis to this set to make an\n * observation validate; that inverts the check.\n *\n * History: D14 deleted `RUNTIME_REGISTRATION`, `RUNTIME_AUTHORIZATION` and\n * `RUNTIME_HEALTH` from the vocabulary outright, and left `RUNTIME_EXPOSURE`\n * here pending a source-derived producer. That producer now exists\n * (`EXPOSED_API_SURFACE`, derived from the operation projection), so the axis was\n * renamed and dropped from this set in the same change — the coupling the prior\n * revision of this comment warned about.\n */\nconst RUNTIME_SCOPED_EVIDENCE_AXES = new Set<TechnicalDocumentationApplicabilityEvidenceAxis>([]);\n\nexport const TechnicalDocumentationEvidenceObservationV1Schema = z\n .strictObject({\n axis: z.enum(TechnicalDocumentationApplicabilityEvidenceAxis),\n subjectRef: MetaWorkflow_NamespacedRefSchema,\n status: z.enum(TechnicalDocumentationApplicabilityEvidenceStatus),\n reason: z.enum(TechnicalDocumentationApplicabilityEvidenceReason),\n authorityKind: z.enum(TechnicalDocumentationEvidenceAuthorityKind),\n authorityRef: MetaWorkflow_NamespacedRefSchema,\n authorityVersion: MetaWorkflow_PositiveVersionSchema,\n runtimeScopeRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n hostRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n /**\n * Whether authoritative evidence backed this observation. Replaces the `evidenceDigest` sha256 field —\n * the only thing any reader ever asked of that digest was null-vs-present, so the digest was a boolean\n * wearing a checksum (`.claude/rules/application-creation-directive.md` — digests: none).\n */\n hasEvidence: z.boolean(),\n observedAt: MetaWorkflow_IsoDateTimeSchema,\n validUntil: MetaWorkflow_IsoDateTimeSchema.nullable(),\n })\n .superRefine((observation, context) => {\n const hasEvidence = observation.hasEvidence;\n const positive = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.PROVEN;\n const negative = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.DISPROVEN;\n const conflicted = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.CONFLICTED;\n const stale = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.STALE;\n const notApplicable = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.NOT_APPLICABLE;\n const missing = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.UNKNOWN\n || observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.UNPROVEN;\n const validCombination = (positive && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.AUTHORITATIVE_POSITIVE_EVIDENCE && hasEvidence)\n || (negative && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.AUTHORITATIVE_NEGATIVE_EVIDENCE && hasEvidence)\n || (conflicted && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.EVIDENCE_CONFLICT && hasEvidence)\n || (stale && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.EVIDENCE_EXPIRED && hasEvidence && observation.validUntil !== null)\n || (notApplicable && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.EVIDENCE_NOT_REQUIRED && !hasEvidence)\n || (missing && [\n TechnicalDocumentationApplicabilityEvidenceReason.MISSING_AUTHORITY,\n TechnicalDocumentationApplicabilityEvidenceReason.MISSING_EVIDENCE,\n TechnicalDocumentationApplicabilityEvidenceReason.UNRECOGNIZED_SUBJECT,\n ].includes(observation.reason) && !hasEvidence);\n if (!validCombination) {\n context.addIssue({ code: \"custom\", message: \"evidence status, reason, evidence presence and validity must form one coherent state\", path: [\"status\"] });\n }\n // Stated as two separate implications rather than one biconditional over\n // `both are set`. The biconditional form admitted a runtime scope with no\n // host (`false !== (true && false)` is `false !== false`), so a source-derived\n // observation could attach half a runtime attribution and validate. A\n // non-runtime axis must carry NEITHER field, not merely \"not both\".\n const requiresRuntimeScope = RUNTIME_SCOPED_EVIDENCE_AXES.has(observation.axis);\n const carriesAnyRuntimeAttribution = observation.runtimeScopeRef !== null || observation.hostRef !== null;\n const carriesCompleteRuntimeAttribution = observation.runtimeScopeRef !== null && observation.hostRef !== null;\n if (requiresRuntimeScope ? !carriesCompleteRuntimeAttribution : carriesAnyRuntimeAttribution) {\n context.addIssue({\n code: \"custom\",\n message: requiresRuntimeScope\n ? \"runtime-scoped evidence axes require both runtimeScopeRef and hostRef\"\n : \"source-derived evidence axes must carry neither runtimeScopeRef nor hostRef\",\n path: [\"runtimeScopeRef\"],\n });\n }\n if (observation.validUntil !== null && Date.parse(observation.validUntil) < Date.parse(observation.observedAt)) {\n context.addIssue({ code: \"custom\", message: \"validUntil cannot precede observedAt\", path: [\"validUntil\"] });\n }\n });\nexport type TechnicalDocumentationEvidenceObservationV1 = z.infer<typeof TechnicalDocumentationEvidenceObservationV1Schema>;\n\n/** Persisted normalized evidence is ordered by `<axis>\\0<subjectRef>` and rejects ambiguous duplicate claims. */\nexport const TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n environmentRef: MetaWorkflow_NamespacedRefSchema,\n observations: z.array(TechnicalDocumentationEvidenceObservationV1Schema),\n freshnessEvaluatedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((snapshot, context) => {\n const keys = snapshot.observations.map((observation) => `${observation.axis}\\0${observation.subjectRef}`);\n if (!technicalDocumentationValuesAreUniqueAndSorted(keys)) {\n context.addIssue({ code: \"custom\", message: \"observations must be unique and sorted by axis and subjectRef\", path: [\"observations\"] });\n }\n for (const [index, observation] of snapshot.observations.entries()) {\n if (Date.parse(observation.observedAt) > Date.parse(snapshot.freshnessEvaluatedAt)) {\n context.addIssue({ code: \"custom\", message: \"evidence observed in the future cannot enter this freshness evaluation\", path: [\"observations\", index, \"observedAt\"] });\n }\n if (observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.STALE\n && (observation.validUntil === null || Date.parse(observation.validUntil) > Date.parse(snapshot.freshnessEvaluatedAt))) {\n context.addIssue({ code: \"custom\", message: \"STALE evidence must be expired at freshnessEvaluatedAt\", path: [\"observations\", index, \"status\"] });\n }\n if ([TechnicalDocumentationApplicabilityEvidenceStatus.PROVEN, TechnicalDocumentationApplicabilityEvidenceStatus.DISPROVEN].includes(observation.status)\n && observation.validUntil !== null && Date.parse(observation.validUntil) <= Date.parse(snapshot.freshnessEvaluatedAt)) {\n context.addIssue({ code: \"custom\", message: \"expired evidence cannot remain PROVEN or DISPROVEN\", path: [\"observations\", index, \"status\"] });\n }\n }\n });\nexport type TechnicalDocumentationEnvironmentEvidenceSnapshotV1 = z.infer<typeof TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema>;\n\nexport function canonicalizeTechnicalDocumentationEvidenceObservations(\n observations: readonly TechnicalDocumentationEvidenceObservationV1[],\n): TechnicalDocumentationEvidenceObservationV1[] {\n const byKey = new Map<string, TechnicalDocumentationEvidenceObservationV1>();\n for (const observation of observations) {\n const parsed = TechnicalDocumentationEvidenceObservationV1Schema.parse(observation);\n const key = `${parsed.axis}\\0${parsed.subjectRef}`;\n const existing = byKey.get(key);\n if (existing !== undefined && JSON.stringify(existing) !== JSON.stringify(parsed)) {\n throw new Error(`conflicting technical-documentation evidence for ${key}`);\n }\n byKey.set(key, parsed);\n }\n return [...byKey.entries()]\n .sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)\n .map(([, observation]) => observation);\n}\n\nexport function createTechnicalDocumentationEnvironmentEvidenceSnapshotV1(\n input: TechnicalDocumentationEnvironmentEvidenceSnapshotV1,\n): TechnicalDocumentationEnvironmentEvidenceSnapshotV1 {\n return TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema.parse({\n ...input,\n observations: canonicalizeTechnicalDocumentationEvidenceObservations(input.observations),\n });\n}\n\nexport const EngineDocumentationSpecificationCatalogEntryIdentityV1Schema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n specificationFamilyRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * The projector that produced this entry's DTO. With `sourceRef` and `specificationFamilyRef` it\n * is the entry's whole identity — the `semanticDigest` it replaces was a sha256 over exactly these\n * three values plus the DTO, and the DTO is a pure function of the source in git.\n */\n projectorRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type EngineDocumentationSpecificationCatalogEntryIdentityV1 = z.infer<typeof EngineDocumentationSpecificationCatalogEntryIdentityV1Schema>;\n\nexport const EngineDocumentationSpecificationCatalogIdentityV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n projectorRef: MetaWorkflow_NamespacedRefSchema,\n projectorVersion: MetaWorkflow_PositiveVersionSchema,\n entries: z.array(EngineDocumentationSpecificationCatalogEntryIdentityV1Schema).min(1),\n })\n .superRefine((catalog, context) => {\n const refs = catalog.entries.map((entry) => entry.sourceRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(refs)) {\n context.addIssue({ code: \"custom\", message: \"catalog entries must be unique and sorted by sourceRef\", path: [\"entries\"] });\n }\n });\nexport type EngineDocumentationSpecificationCatalogIdentityV1 = z.infer<typeof EngineDocumentationSpecificationCatalogIdentityV1Schema>;\n\n/** `projectorRef@projectorVersion` is the catalog's identity; the entry list is what it covers. */\nexport const TechnicalDocumentationEngineContentBundleIdentityV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n contentBundleRef: MetaWorkflow_NamespacedRefSchema,\n contentBundleVersion: MetaWorkflow_PositiveVersionSchema,\n});\nexport type TechnicalDocumentationEngineContentBundleIdentityV1 = z.infer<typeof TechnicalDocumentationEngineContentBundleIdentityV1Schema>;\n"]}
1
+ {"version":3,"file":"technical-documentation-evidence.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-evidence.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE5J,OAAO,EACL,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAElD,mFAAmF;AACnF,MAAM,CAAN,IAAY,+CAqBX;AArBD,WAAY,+CAA+C;IACzD,8GAA2D,CAAA;IAC3D;;;;;OAKG;IACH,wGAAqD,CAAA;IACrD,kGAA+C,CAAA;IAC/C,oFAAiC,CAAA;IACjC;;;;;;OAMG;IACH,8FAA2C,CAAA;IAC3C,4FAAyC,CAAA;IACzC,8EAA2B,CAAA;AAC7B,CAAC,EArBW,+CAA+C,KAA/C,+CAA+C,QAqB1D;AAED,MAAM,CAAN,IAAY,iDAQX;AARD,WAAY,iDAAiD;IAC3D,8EAAyB,CAAA;IACzB,4EAAuB,CAAA;IACvB,sFAAiC,CAAA;IACjC,sEAAiB,CAAA;IACjB,oEAAe,CAAA;IACf,wEAAmB,CAAA;IACnB,0EAAqB,CAAA;AACvB,CAAC,EARW,iDAAiD,KAAjD,iDAAiD,QAQ5D;AAED,MAAM,CAAN,IAAY,iDASX;AATD,WAAY,iDAAiD;IAC3D,wHAAmE,CAAA;IACnE,wHAAmE,CAAA;IACnE,4FAAuC,CAAA;IACvC,0FAAqC,CAAA;IACrC,oGAA+C,CAAA;IAC/C,4FAAuC,CAAA;IACvC,0FAAqC,CAAA;IACrC,kGAA6C,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,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IAChC,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7D,IAAI,CAAC,8CAA8C,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1D,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,wDAAwD,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC7H,CAAC;AACH,CAAC,CAAC,CAAC;AAGL,mGAAmG;AACnG,MAAM,CAAC,MAAM,yDAAyD,GAAG,CAAC,CAAC,YAAY,CAAC;IACtF,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,gBAAgB,EAAE,gCAAgC;IAClD,oBAAoB,EAAE,kCAAkC;CACzD,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from \"@wildo-ai/saas-models/public-runtime\";\n\nimport {\n technicalDocumentationValuesAreUniqueAndSorted,\n} from \"./technical-documentation-common.schemas\";\n\n/** Independent claims which must never be collapsed into one `enabled` boolean. */\nexport enum TechnicalDocumentationApplicabilityEvidenceAxis {\n ACCEPTED_APPLICATION_INTENT = \"ACCEPTED_APPLICATION_INTENT\",\n /**\n * A build artifact was inspected and found to contain the subject (today: the\n * frontend bundle carrying an execution view). Renamed from\n * `RUNTIME_MATERIALIZATION` under D14 — the authority is a materialized\n * artifact on disk, never a live scope.\n */\n ARTIFACT_MATERIALIZATION = \"ARTIFACT_MATERIALIZATION\",\n CONFIGURED_ACTIVATION = \"CONFIGURED_ACTIVATION\",\n ENGINE_SUPPORT = \"ENGINE_SUPPORT\",\n /**\n * The application's own derived operation projection exposes this surface —\n * the resources behind it are registered AND admitted by the application's\n * declared `apiDocResources` opt-in. Renamed from `RUNTIME_EXPOSURE` under\n * D14: nothing observes a running process, so the old name described an\n * acquisition method the architecture no longer has.\n */\n EXPOSED_API_SURFACE = \"EXPOSED_API_SURFACE\",\n PROVIDER_SELECTION = \"PROVIDER_SELECTION\",\n PUBLICATION = \"PUBLICATION\",\n}\n\nexport enum TechnicalDocumentationApplicabilityEvidenceStatus {\n CONFLICTED = \"CONFLICTED\",\n DISPROVEN = \"DISPROVEN\",\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n PROVEN = \"PROVEN\",\n STALE = \"STALE\",\n UNKNOWN = \"UNKNOWN\",\n UNPROVEN = \"UNPROVEN\",\n}\n\nexport enum TechnicalDocumentationApplicabilityEvidenceReason {\n AUTHORITATIVE_NEGATIVE_EVIDENCE = \"AUTHORITATIVE_NEGATIVE_EVIDENCE\",\n AUTHORITATIVE_POSITIVE_EVIDENCE = \"AUTHORITATIVE_POSITIVE_EVIDENCE\",\n EVIDENCE_CONFLICT = \"EVIDENCE_CONFLICT\",\n EVIDENCE_EXPIRED = \"EVIDENCE_EXPIRED\",\n EVIDENCE_NOT_REQUIRED = \"EVIDENCE_NOT_REQUIRED\",\n MISSING_AUTHORITY = \"MISSING_AUTHORITY\",\n MISSING_EVIDENCE = \"MISSING_EVIDENCE\",\n UNRECOGNIZED_SUBJECT = \"UNRECOGNIZED_SUBJECT\",\n}\n\n/**\n * What kind of authority an observation was read FROM.\n *\n * D14 removed `RUNTIME_RECEIPT` and `HEALTH_RECEIPT`. Both named the deleted\n * backend receipt — an authority that no longer exists and that nothing can\n * produce — so keeping them let a future producer declare provenance it could\n * not have. That is the same misdescription the `RUNTIME_*` axis names carried,\n * and it is worse here: an axis says what is claimed, an authority says why the\n * claim should be believed.\n *\n * `PUBLICATION_RECEIPT` is deliberately KEPT despite also having no emitter\n * today. It does not name a deleted authority; it names a real one whose\n * producer is still unbuilt — the Phase 2A publication path, which seals a\n * receipt when it publishes. Deleting a concept because its producer is pending\n * and deleting one because its subject was removed are different acts, and\n * collapsing them would lose the distinction the vocabulary exists to carry.\n */\nexport enum TechnicalDocumentationEvidenceAuthorityKind {\n ACCEPTED_SPECIFICATION = \"ACCEPTED_SPECIFICATION\",\n CONFIGURATION = \"CONFIGURATION\",\n ENGINE_CONTENT_REGISTRY = \"ENGINE_CONTENT_REGISTRY\",\n MATERIALIZED_ARTIFACT = \"MATERIALIZED_ARTIFACT\",\n PUBLICATION_RECEIPT = \"PUBLICATION_RECEIPT\",\n}\n\n/** Closed subject identities shared by reusable content requirements and application-owned evidence producers. */\nexport enum TechnicalDocumentationEvidenceSubjectRef {\n APPLICATION_A2A_AGENT_SURFACE = \"technical-documentation:subject/application-a2a-agent-surface\",\n APPLICATION_API = \"technical-documentation:subject/application-api\",\n APPLICATION_MCP_TOOL_SURFACE = \"technical-documentation:subject/application-mcp-tool-surface\",\n ORGANIZATION_BILLING_ADMINISTRATION = \"technical-documentation:subject/organization-billing-administration\",\n ORGANIZATION_SIEM_DELIVERY_RECOVERY = \"technical-documentation:subject/organization-siem-delivery-recovery\",\n ORGANIZATION_SIEM_EXPORT = \"technical-documentation:subject/organization-siem-export\",\n OUTBOUND_M2M_DELIVERY = \"technical-documentation:subject/outbound-m2m-delivery\",\n OUTBOUND_M2M_SIGNATURE = \"technical-documentation:subject/outbound-m2m-signature\",\n}\n\n/**\n * Axes whose observations describe something seen in a running scope, and which\n * therefore must carry both `runtimeScopeRef` and `hostRef`.\n *\n * **This set is empty, and that is its steady state under D14.** Documentation\n * evidence is derived from source and from the named environment's declarative\n * configuration, so no axis is entitled to claim a runtime scope. The\n * biconditional below therefore now enforces D14's central invariant directly:\n * a source-derived observation that attaches a `runtimeScopeRef` is rejected.\n *\n * It is kept rather than deleted because the ONE surviving runtime path —\n * product capture, which photographs a live UI and cannot be derived from\n * source — will need host attribution when it lands, and it belongs here rather\n * than in a second parallel mechanism. Do not add an axis to this set to make an\n * observation validate; that inverts the check.\n *\n * History: D14 deleted `RUNTIME_REGISTRATION`, `RUNTIME_AUTHORIZATION` and\n * `RUNTIME_HEALTH` from the vocabulary outright, and left `RUNTIME_EXPOSURE`\n * here pending a source-derived producer. That producer now exists\n * (`EXPOSED_API_SURFACE`, derived from the operation projection), so the axis was\n * renamed and dropped from this set in the same change — the coupling the prior\n * revision of this comment warned about.\n */\nconst RUNTIME_SCOPED_EVIDENCE_AXES = new Set<TechnicalDocumentationApplicabilityEvidenceAxis>([]);\n\nexport const TechnicalDocumentationEvidenceObservationV1Schema = z\n .strictObject({\n axis: z.enum(TechnicalDocumentationApplicabilityEvidenceAxis),\n subjectRef: MetaWorkflow_NamespacedRefSchema,\n status: z.enum(TechnicalDocumentationApplicabilityEvidenceStatus),\n reason: z.enum(TechnicalDocumentationApplicabilityEvidenceReason),\n authorityKind: z.enum(TechnicalDocumentationEvidenceAuthorityKind),\n authorityRef: MetaWorkflow_NamespacedRefSchema,\n authorityVersion: MetaWorkflow_PositiveVersionSchema,\n runtimeScopeRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n hostRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n /**\n * Whether authoritative evidence backed this observation. Replaces the `evidenceDigest` sha256 field —\n * the only thing any reader ever asked of that digest was null-vs-present, so the digest was a boolean\n * wearing a checksum (`.claude/rules/application-creation-directive.md` — digests: none).\n */\n hasEvidence: z.boolean(),\n observedAt: MetaWorkflow_IsoDateTimeSchema,\n validUntil: MetaWorkflow_IsoDateTimeSchema.nullable(),\n })\n .superRefine((observation, context) => {\n const hasEvidence = observation.hasEvidence;\n const positive = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.PROVEN;\n const negative = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.DISPROVEN;\n const conflicted = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.CONFLICTED;\n const stale = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.STALE;\n const notApplicable = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.NOT_APPLICABLE;\n const missing = observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.UNKNOWN\n || observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.UNPROVEN;\n const validCombination = (positive && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.AUTHORITATIVE_POSITIVE_EVIDENCE && hasEvidence)\n || (negative && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.AUTHORITATIVE_NEGATIVE_EVIDENCE && hasEvidence)\n || (conflicted && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.EVIDENCE_CONFLICT && hasEvidence)\n || (stale && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.EVIDENCE_EXPIRED && hasEvidence && observation.validUntil !== null)\n || (notApplicable && observation.reason === TechnicalDocumentationApplicabilityEvidenceReason.EVIDENCE_NOT_REQUIRED && !hasEvidence)\n || (missing && [\n TechnicalDocumentationApplicabilityEvidenceReason.MISSING_AUTHORITY,\n TechnicalDocumentationApplicabilityEvidenceReason.MISSING_EVIDENCE,\n TechnicalDocumentationApplicabilityEvidenceReason.UNRECOGNIZED_SUBJECT,\n ].includes(observation.reason) && !hasEvidence);\n if (!validCombination) {\n context.addIssue({ code: \"custom\", message: \"evidence status, reason, evidence presence and validity must form one coherent state\", path: [\"status\"] });\n }\n // Stated as two separate implications rather than one biconditional over\n // `both are set`. The biconditional form admitted a runtime scope with no\n // host (`false !== (true && false)` is `false !== false`), so a source-derived\n // observation could attach half a runtime attribution and validate. A\n // non-runtime axis must carry NEITHER field, not merely \"not both\".\n const requiresRuntimeScope = RUNTIME_SCOPED_EVIDENCE_AXES.has(observation.axis);\n const carriesAnyRuntimeAttribution = observation.runtimeScopeRef !== null || observation.hostRef !== null;\n const carriesCompleteRuntimeAttribution = observation.runtimeScopeRef !== null && observation.hostRef !== null;\n if (requiresRuntimeScope ? !carriesCompleteRuntimeAttribution : carriesAnyRuntimeAttribution) {\n context.addIssue({\n code: \"custom\",\n message: requiresRuntimeScope\n ? \"runtime-scoped evidence axes require both runtimeScopeRef and hostRef\"\n : \"source-derived evidence axes must carry neither runtimeScopeRef nor hostRef\",\n path: [\"runtimeScopeRef\"],\n });\n }\n if (observation.validUntil !== null && Date.parse(observation.validUntil) < Date.parse(observation.observedAt)) {\n context.addIssue({ code: \"custom\", message: \"validUntil cannot precede observedAt\", path: [\"validUntil\"] });\n }\n });\nexport type TechnicalDocumentationEvidenceObservationV1 = z.infer<typeof TechnicalDocumentationEvidenceObservationV1Schema>;\n\n/** Persisted normalized evidence is ordered by `<axis>\\0<subjectRef>` and rejects ambiguous duplicate claims. */\nexport const TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n environmentRef: MetaWorkflow_NamespacedRefSchema,\n observations: z.array(TechnicalDocumentationEvidenceObservationV1Schema),\n freshnessEvaluatedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((snapshot, context) => {\n const keys = snapshot.observations.map((observation) => `${observation.axis}\\0${observation.subjectRef}`);\n if (!technicalDocumentationValuesAreUniqueAndSorted(keys)) {\n context.addIssue({ code: \"custom\", message: \"observations must be unique and sorted by axis and subjectRef\", path: [\"observations\"] });\n }\n for (const [index, observation] of snapshot.observations.entries()) {\n if (Date.parse(observation.observedAt) > Date.parse(snapshot.freshnessEvaluatedAt)) {\n context.addIssue({ code: \"custom\", message: \"evidence observed in the future cannot enter this freshness evaluation\", path: [\"observations\", index, \"observedAt\"] });\n }\n if (observation.status === TechnicalDocumentationApplicabilityEvidenceStatus.STALE\n && (observation.validUntil === null || Date.parse(observation.validUntil) > Date.parse(snapshot.freshnessEvaluatedAt))) {\n context.addIssue({ code: \"custom\", message: \"STALE evidence must be expired at freshnessEvaluatedAt\", path: [\"observations\", index, \"status\"] });\n }\n if ([TechnicalDocumentationApplicabilityEvidenceStatus.PROVEN, TechnicalDocumentationApplicabilityEvidenceStatus.DISPROVEN].includes(observation.status)\n && observation.validUntil !== null && Date.parse(observation.validUntil) <= Date.parse(snapshot.freshnessEvaluatedAt)) {\n context.addIssue({ code: \"custom\", message: \"expired evidence cannot remain PROVEN or DISPROVEN\", path: [\"observations\", index, \"status\"] });\n }\n }\n });\nexport type TechnicalDocumentationEnvironmentEvidenceSnapshotV1 = z.infer<typeof TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema>;\n\nexport function canonicalizeTechnicalDocumentationEvidenceObservations(\n observations: readonly TechnicalDocumentationEvidenceObservationV1[],\n): TechnicalDocumentationEvidenceObservationV1[] {\n const byKey = new Map<string, TechnicalDocumentationEvidenceObservationV1>();\n for (const observation of observations) {\n const parsed = TechnicalDocumentationEvidenceObservationV1Schema.parse(observation);\n const key = `${parsed.axis}\\0${parsed.subjectRef}`;\n const existing = byKey.get(key);\n if (existing !== undefined && JSON.stringify(existing) !== JSON.stringify(parsed)) {\n throw new Error(`conflicting technical-documentation evidence for ${key}`);\n }\n byKey.set(key, parsed);\n }\n return [...byKey.entries()]\n .sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)\n .map(([, observation]) => observation);\n}\n\nexport function createTechnicalDocumentationEnvironmentEvidenceSnapshotV1(\n input: TechnicalDocumentationEnvironmentEvidenceSnapshotV1,\n): TechnicalDocumentationEnvironmentEvidenceSnapshotV1 {\n return TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema.parse({\n ...input,\n observations: canonicalizeTechnicalDocumentationEvidenceObservations(input.observations),\n });\n}\n\nexport const EngineDocumentationSpecificationCatalogEntryIdentityV1Schema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n specificationFamilyRef: MetaWorkflow_NamespacedRefSchema,\n /**\n * The projector that produced this entry's DTO. With `sourceRef` and `specificationFamilyRef` it\n * is the entry's whole identity — the `semanticDigest` it replaces was a sha256 over exactly these\n * three values plus the DTO, and the DTO is a pure function of the source in git.\n */\n projectorRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type EngineDocumentationSpecificationCatalogEntryIdentityV1 = z.infer<typeof EngineDocumentationSpecificationCatalogEntryIdentityV1Schema>;\n\nexport const EngineDocumentationSpecificationCatalogIdentityV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n projectorRef: MetaWorkflow_NamespacedRefSchema,\n projectorVersion: MetaWorkflow_PositiveVersionSchema,\n entries: z.array(EngineDocumentationSpecificationCatalogEntryIdentityV1Schema).min(1),\n })\n .superRefine((catalog, context) => {\n const refs = catalog.entries.map((entry) => entry.sourceRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(refs)) {\n context.addIssue({ code: \"custom\", message: \"catalog entries must be unique and sorted by sourceRef\", path: [\"entries\"] });\n }\n });\nexport type EngineDocumentationSpecificationCatalogIdentityV1 = z.infer<typeof EngineDocumentationSpecificationCatalogIdentityV1Schema>;\n\n/** `projectorRef@projectorVersion` is the catalog's identity; the entry list is what it covers. */\nexport const TechnicalDocumentationEngineContentBundleIdentityV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n contentBundleRef: MetaWorkflow_NamespacedRefSchema,\n contentBundleVersion: MetaWorkflow_PositiveVersionSchema,\n});\nexport type TechnicalDocumentationEngineContentBundleIdentityV1 = z.infer<typeof TechnicalDocumentationEngineContentBundleIdentityV1Schema>;\n"]}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from "@wildo-ai/saas-models/meta-workflows";
2
+ import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from "@wildo-ai/saas-models/public-runtime";
3
3
  import { TechnicalDocumentationAssetAccessClass, TechnicalDocumentationAssetPublicationEligibility, TechnicalDocumentationAssetRequiredness, TechnicalDocumentationAssetResolutionStatus, TechnicalDocumentationAssetRequestV1Schema, TechnicalDocumentationResolvedAssetSetV1Schema, } from "./technical-documentation-assets.schemas.js";
4
4
  import { canonicalizeTechnicalDocumentationRows, technicalDocumentationIdentitiesAreEqual, technicalDocumentationValuesAreUniqueAndSorted, TechnicalDocumentationVersionedIdentityV1Schema, } from "./technical-documentation-common.schemas.js";
5
5
  import { EngineDocumentationSpecificationCatalogIdentityV1Schema, TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema, TechnicalDocumentationEngineContentBundleIdentityV1Schema, } from "./technical-documentation-evidence.schemas.js";
@@ -1 +1 @@
1
- {"version":3,"file":"technical-documentation-lifecycle.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-lifecycle.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAEhM,OAAO,EACL,sCAAsC,EACtC,iDAAiD,EACjD,uCAAuC,EACvC,2CAA2C,EAC3C,0CAA0C,EAC1C,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,sCAAsC,EACtC,wCAAwC,EACxC,8CAA8C,EAC9C,+CAA+C,GAChD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,uDAAuD,EACvD,yDAAyD,EACzD,yDAAyD,GAC1D,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uDAAuD,GAAG,CAAC;KACrE,YAAY,CAAC;IACZ,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,2BAA2B,EAAE,yDAAyD;IACtF,2BAA2B,EAAE,yDAAyD;IACtF,kCAAkC,EAAE,uDAAuD;IAC3F,kGAAkG;IAClG,aAAa,EAAE,gCAAgC;IAC/C,iBAAiB,EAAE,kCAAkC;IACrD,YAAY,EAAE,gCAAgC;IAC9C,gBAAgB,EAAE,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,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,8DAA8D,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;QAChJ,CAAC;IACH,CAAC;IACD,MAAM,cAAc,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,KAAK,+CAA+C,CAAC,UAAU,CAAC;QACvI,CAAC,CAAC,qCAAqC,CAAC,UAAU;QAClD,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,KAAK,+CAA+C,CAAC,OAAO,CAAC;YAC/G,CAAC,CAAC,qCAAqC,CAAC,OAAO;YAC/C,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,KAAK,+CAA+C,CAAC,QAAQ,CAAC;gBAChH,CAAC,CAAC,qCAAqC,CAAC,KAAK;gBAC7C,CAAC,CAAC,qCAAqC,CAAC,OAAO,CAAC;IACtD,IAAI,MAAM,CAAC,MAAM,KAAK,cAAc,EAAE,CAAC;QACrC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,4BAA4B,cAAc,uBAAuB,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrI,CAAC;AACH,CAAC,CAAC,CAAC;AAGL,MAAM,UAAU,6CAA6C,CAC3D,KAA8C;IAE9C,OAAO,6CAA6C,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from \"@wildo-ai/saas-models/meta-workflows\";\n\nimport {\n TechnicalDocumentationAssetAccessClass,\n TechnicalDocumentationAssetPublicationEligibility,\n TechnicalDocumentationAssetRequiredness,\n TechnicalDocumentationAssetResolutionStatus,\n TechnicalDocumentationAssetRequestV1Schema,\n TechnicalDocumentationResolvedAssetSetV1Schema,\n} from \"./technical-documentation-assets.schemas\";\nimport {\n canonicalizeTechnicalDocumentationRows,\n technicalDocumentationIdentitiesAreEqual,\n technicalDocumentationValuesAreUniqueAndSorted,\n TechnicalDocumentationVersionedIdentityV1Schema,\n} from \"./technical-documentation-common.schemas\";\nimport {\n EngineDocumentationSpecificationCatalogIdentityV1Schema,\n TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema,\n TechnicalDocumentationEngineContentBundleIdentityV1Schema,\n} from \"./technical-documentation-evidence.schemas\";\nimport { TechnicalDocumentationUnitV1Schema } from \"./technical-documentation-units.schemas\";\n\n/**\n * Stage 1: exact framework derivation inputs and private semantic output units.\n *\n * Consumer documentation is framework-owned until the app-creator has an\n * accepted application-design artifact. It must therefore not claim a causal\n * dependency on an application's accepted specification projection or family\n * heads: those are separate application-creation facts, not documentation\n * inputs.\n */\nexport const TechnicalDocumentationPrivateDerivationManifestV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n engineContentBundleIdentity: TechnicalDocumentationEngineContentBundleIdentityV1Schema,\n environmentEvidenceSnapshot: TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema,\n engineSpecificationCatalogIdentity: EngineDocumentationSpecificationCatalogIdentityV1Schema,\n /** This derivation's own identity. The authorized bundle names it as its `derivationIdentity`. */\n derivationRef: MetaWorkflow_NamespacedRefSchema,\n derivationVersion: MetaWorkflow_PositiveVersionSchema,\n projectorRef: MetaWorkflow_NamespacedRefSchema,\n projectorVersion: MetaWorkflow_PositiveVersionSchema,\n units: z.array(TechnicalDocumentationUnitV1Schema).min(1),\n derivedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((manifest, context) => {\n const unitRefs = manifest.units.map((unit) => unit.unitRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(unitRefs)) {\n context.addIssue({ code: \"custom\", message: \"private units must be unique and sorted by unitRef\", path: [\"units\"] });\n }\n });\nexport type TechnicalDocumentationPrivateDerivationManifestV1 = z.infer<typeof TechnicalDocumentationPrivateDerivationManifestV1Schema>;\n\nexport function canonicalizeTechnicalDocumentationPrivateDerivationInput(\n input: TechnicalDocumentationPrivateDerivationManifestV1,\n): TechnicalDocumentationPrivateDerivationManifestV1 {\n return {\n ...input,\n environmentEvidenceSnapshot: {\n ...input.environmentEvidenceSnapshot,\n observations: canonicalizeTechnicalDocumentationRows(\n input.environmentEvidenceSnapshot.observations,\n (observation) => `${observation.axis}\\0${observation.subjectRef}`,\n ),\n },\n engineSpecificationCatalogIdentity: {\n ...input.engineSpecificationCatalogIdentity,\n entries: canonicalizeTechnicalDocumentationRows(input.engineSpecificationCatalogIdentity.entries, (entry) => entry.sourceRef),\n },\n units: canonicalizeTechnicalDocumentationRows(input.units, (unit) => unit.unitRef),\n };\n}\n\nexport function createTechnicalDocumentationPrivateDerivationManifestV1(\n input: TechnicalDocumentationPrivateDerivationManifestV1,\n): TechnicalDocumentationPrivateDerivationManifestV1 {\n return TechnicalDocumentationPrivateDerivationManifestV1Schema.parse(canonicalizeTechnicalDocumentationPrivateDerivationInput(input));\n}\n\n/** Stage 3: exact asset requests and their resolved byte identities. */\nexport const TechnicalDocumentationResolvedAssetBundleManifestV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n /** This asset bundle's own identity, named by the render manifest and the publication pointer. */\n assetBundleRef: MetaWorkflow_NamespacedRefSchema,\n assetBundleVersion: MetaWorkflow_PositiveVersionSchema,\n authorizedBundleIdentity: TechnicalDocumentationVersionedIdentityV1Schema,\n requests: z.array(TechnicalDocumentationAssetRequestV1Schema),\n resolvedAssetSet: TechnicalDocumentationResolvedAssetSetV1Schema,\n resolvedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((bundle, context) => {\n const requestRefs = bundle.requests.map((request) => request.assetRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(requestRefs)) {\n context.addIssue({ code: \"custom\", message: \"asset requests must be unique and sorted by assetRef\", path: [\"requests\"] });\n }\n const resolvedByRef = new Map(bundle.resolvedAssetSet.assets.map((asset) => [asset.assetRef, asset]));\n if (requestRefs.join(\"\\0\") !== bundle.resolvedAssetSet.assets.map((asset) => asset.assetRef).join(\"\\0\")) {\n context.addIssue({ code: \"custom\", message: \"resolved assets must exactly cover authorized asset requests\", path: [\"resolvedAssetSet\", \"assets\"] });\n }\n for (const [index, request] of bundle.requests.entries()) {\n const asset = resolvedByRef.get(request.assetRef);\n if (asset === undefined) continue;\n if (asset.kind !== request.kind || asset.origin !== request.origin || asset.accessClass !== request.accessClass\n || asset.requiredness !== request.requiredness || asset.semanticInputRef !== request.semanticInputRef\n || asset.rights.basis !== request.rights.basis || asset.rights.authorityRef !== request.rights.authorityRef\n || asset.classification.requestAccessClass !== request.accessClass\n || asset.classification.sourceAccessClass !== request.sourceAccessClass\n || asset.classification.viewedTenantAccessClass !== request.viewedTenantAccessClass\n || asset.classification.roleAccessClass !== request.roleAccessClass) {\n context.addIssue({ code: \"custom\", message: \"resolved asset metadata must match its authorized request\", path: [\"requests\", index] });\n }\n if (request.accessClass === TechnicalDocumentationAssetAccessClass.PUBLIC\n && asset.classification.publicationEligibility !== TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE) {\n context.addIssue({ code: \"custom\", message: \"a public asset request requires a publicly eligible resolved classification\", path: [\"resolvedAssetSet\", \"assets\", index, \"classification\"] });\n }\n /**\n * A REQUIRED asset must be SATISFIED — by a real capture, or by the framework's\n * placeholder standing in for one.\n *\n * This deliberately admits `PLACEHOLDER`, because refusing it here would make the\n * requiredness declaration decide whether documentation may ship ahead of its\n * pictures. It must not: that is an ENVIRONMENT decision (production refuses\n * provisional imagery, development and staging accept it), enforced at publication\n * where the environment is known. Encoding it here would push every application to\n * declare its assets OPTIONAL just to publish — which says the page may PERMANENTLY\n * have no image, dissolving the obligation instead of deferring it.\n *\n * `MISSING`, `FAILED` and `STALE` remain refusals: none of them ships anything.\n */\n if (request.requiredness === TechnicalDocumentationAssetRequiredness.REQUIRED\n && asset.status !== TechnicalDocumentationAssetResolutionStatus.RESOLVED\n && asset.status !== TechnicalDocumentationAssetResolutionStatus.PLACEHOLDER) {\n context.addIssue({ code: \"custom\", message: \"every required asset must resolve or ship a placeholder before publication\", path: [\"resolvedAssetSet\", \"assets\", index, \"status\"] });\n }\n }\n });\nexport type TechnicalDocumentationResolvedAssetBundleManifestV1 = z.infer<typeof TechnicalDocumentationResolvedAssetBundleManifestV1Schema>;\n\nexport function createTechnicalDocumentationResolvedAssetBundleManifestV1(\n input: TechnicalDocumentationResolvedAssetBundleManifestV1,\n): TechnicalDocumentationResolvedAssetBundleManifestV1 {\n return TechnicalDocumentationResolvedAssetBundleManifestV1Schema.parse({\n ...input,\n requests: canonicalizeTechnicalDocumentationRows(input.requests, (request) => request.assetRef),\n resolvedAssetSet: {\n assets: canonicalizeTechnicalDocumentationRows(input.resolvedAssetSet.assets, (asset) => asset.assetRef),\n },\n });\n}\n\n/** Stage 6: proof that a runtime loaded the selected immutable publication tree. */\nexport const TechnicalDocumentationLiveLoadReceiptV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n receiptId: MetaWorkflow_LowercaseUuidV4Schema,\n runtimeRef: MetaWorkflow_NamespacedRefSchema,\n pointerRef: MetaWorkflow_NamespacedRefSchema,\n pointerRevision: MetaWorkflow_PositiveVersionSchema,\n /** The publication fact this runtime loaded — `pointerRef@pointerRevision` already names its pointer. */\n publicationFactId: MetaWorkflow_LowercaseUuidV4Schema,\n renderIdentity: TechnicalDocumentationVersionedIdentityV1Schema,\n loadedAt: MetaWorkflow_IsoDateTimeSchema,\n});\nexport type TechnicalDocumentationLiveLoadReceiptV1 = z.infer<typeof TechnicalDocumentationLiveLoadReceiptV1Schema>;\n\nexport function createTechnicalDocumentationLiveLoadReceiptV1(\n input: TechnicalDocumentationLiveLoadReceiptV1,\n): TechnicalDocumentationLiveLoadReceiptV1 {\n return TechnicalDocumentationLiveLoadReceiptV1Schema.parse(input);\n}\n\nexport enum TechnicalDocumentationFreshnessStatus {\n CONFLICTED = \"CONFLICTED\",\n CURRENT = \"CURRENT\",\n STALE = \"STALE\",\n UNKNOWN = \"UNKNOWN\",\n}\n\nexport enum TechnicalDocumentationFreshnessComparisonStatus {\n CONFLICTED = \"CONFLICTED\",\n MATCH = \"MATCH\",\n MISMATCH = \"MISMATCH\",\n MISSING = \"MISSING\",\n}\n\n/**\n * One freshness axis: what the publication was built against, and what is there now.\n *\n * Both sides were sha256 digests until 2026-08-27. Nothing about the comparison needed them —\n * a `ref` + `version` pair answers \"same or different\" identically, and answers \"different HOW\"\n * far better: a reader of a STALE axis can now see that the engine content bundle went from v7 to\n * v9, where two hex strings said only that something moved. It also merges, which a digest of a\n * regenerated tree never could.\n */\nexport const TechnicalDocumentationFreshnessComparisonV1Schema = z.strictObject({\n expected: TechnicalDocumentationVersionedIdentityV1Schema,\n observed: TechnicalDocumentationVersionedIdentityV1Schema.nullable(),\n status: z.enum(TechnicalDocumentationFreshnessComparisonStatus),\n});\nexport type TechnicalDocumentationFreshnessComparisonV1 = z.infer<typeof TechnicalDocumentationFreshnessComparisonV1Schema>;\n\nconst FreshnessAxesSchema = z.strictObject({\n acceptedSpecificationProjection: TechnicalDocumentationFreshnessComparisonV1Schema,\n engineSpecificationCatalog: TechnicalDocumentationFreshnessComparisonV1Schema,\n pointer: TechnicalDocumentationFreshnessComparisonV1Schema,\n sourceFamilyHeads: TechnicalDocumentationFreshnessComparisonV1Schema,\n engineContentBundle: TechnicalDocumentationFreshnessComparisonV1Schema,\n environmentEvidence: TechnicalDocumentationFreshnessComparisonV1Schema,\n renderer: TechnicalDocumentationFreshnessComparisonV1Schema,\n requiredAssets: TechnicalDocumentationFreshnessComparisonV1Schema,\n});\n\n/** Stage 7: fail-closed freshness over every independently authoritative identity. */\nexport const TechnicalDocumentationFreshnessResultV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n evaluatedAt: MetaWorkflow_IsoDateTimeSchema,\n status: z.enum(TechnicalDocumentationFreshnessStatus),\n axes: FreshnessAxesSchema,\n })\n .superRefine((result, context) => {\n const comparisons = Object.values(result.axes);\n for (const [axis, comparison] of Object.entries(result.axes)) {\n if ((comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISSING) !== (comparison.observed === null)) {\n context.addIssue({ code: \"custom\", message: \"only MISSING freshness axes omit the observed identity\", path: [\"axes\", axis, \"observed\"] });\n }\n const identitiesAgree = technicalDocumentationIdentitiesAreEqual(comparison.expected, comparison.observed);\n if (comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MATCH && !identitiesAgree) {\n context.addIssue({ code: \"custom\", message: \"MATCH requires exact expected and observed identities\", path: [\"axes\", axis, \"status\"] });\n }\n if (comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISMATCH && identitiesAgree) {\n context.addIssue({ code: \"custom\", message: \"MISMATCH requires different expected and observed identities\", path: [\"axes\", axis, \"status\"] });\n }\n }\n const expectedStatus = comparisons.some((comparison) => comparison.status === TechnicalDocumentationFreshnessComparisonStatus.CONFLICTED)\n ? TechnicalDocumentationFreshnessStatus.CONFLICTED\n : comparisons.some((comparison) => comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISSING)\n ? TechnicalDocumentationFreshnessStatus.UNKNOWN\n : comparisons.some((comparison) => comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISMATCH)\n ? TechnicalDocumentationFreshnessStatus.STALE\n : TechnicalDocumentationFreshnessStatus.CURRENT;\n if (result.status !== expectedStatus) {\n context.addIssue({ code: \"custom\", message: `freshness status must be ${expectedStatus} for the axis results`, path: [\"status\"] });\n }\n });\nexport type TechnicalDocumentationFreshnessResultV1 = z.infer<typeof TechnicalDocumentationFreshnessResultV1Schema>;\n\nexport function createTechnicalDocumentationFreshnessResultV1(\n input: TechnicalDocumentationFreshnessResultV1,\n): TechnicalDocumentationFreshnessResultV1 {\n return TechnicalDocumentationFreshnessResultV1Schema.parse(input);\n}\n\n"]}
1
+ {"version":3,"file":"technical-documentation-lifecycle.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-lifecycle.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAEhM,OAAO,EACL,sCAAsC,EACtC,iDAAiD,EACjD,uCAAuC,EACvC,2CAA2C,EAC3C,0CAA0C,EAC1C,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,sCAAsC,EACtC,wCAAwC,EACxC,8CAA8C,EAC9C,+CAA+C,GAChD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,uDAAuD,EACvD,yDAAyD,EACzD,yDAAyD,GAC1D,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uDAAuD,GAAG,CAAC;KACrE,YAAY,CAAC;IACZ,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,2BAA2B,EAAE,yDAAyD;IACtF,2BAA2B,EAAE,yDAAyD;IACtF,kCAAkC,EAAE,uDAAuD;IAC3F,kGAAkG;IAClG,aAAa,EAAE,gCAAgC;IAC/C,iBAAiB,EAAE,kCAAkC;IACrD,YAAY,EAAE,gCAAgC;IAC9C,gBAAgB,EAAE,kCAAkC;IACpD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD,SAAS,EAAE,8BAA8B;CAC1C,CAAC;KACD,WAAW,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE;IACjC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AC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,KAAK,+CAA+C,CAAC,UAAU,CAAC;QACvI,CAAC,CAAC,qCAAqC,CAAC,UAAU;QAClD,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,KAAK,+CAA+C,CAAC,OAAO,CAAC;YAC/G,CAAC,CAAC,qCAAqC,CAAC,OAAO;YAC/C,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,KAAK,+CAA+C,CAAC,QAAQ,CAAC;gBAChH,CAAC,CAAC,qCAAqC,CAAC,KAAK;gBAC7C,CAAC,CAAC,qCAAqC,CAAC,OAAO,CAAC;IACtD,IAAI,MAAM,CAAC,MAAM,KAAK,cAAc,EAAE,CAAC;QACrC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,4BAA4B,cAAc,uBAAuB,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrI,CAAC;AACH,CAAC,CAAC,CAAC;AAGL,MAAM,UAAU,6CAA6C,CAC3D,KAA8C;IAE9C,OAAO,6CAA6C,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from \"@wildo-ai/saas-models/public-runtime\";\n\nimport {\n TechnicalDocumentationAssetAccessClass,\n TechnicalDocumentationAssetPublicationEligibility,\n TechnicalDocumentationAssetRequiredness,\n TechnicalDocumentationAssetResolutionStatus,\n TechnicalDocumentationAssetRequestV1Schema,\n TechnicalDocumentationResolvedAssetSetV1Schema,\n} from \"./technical-documentation-assets.schemas\";\nimport {\n canonicalizeTechnicalDocumentationRows,\n technicalDocumentationIdentitiesAreEqual,\n technicalDocumentationValuesAreUniqueAndSorted,\n TechnicalDocumentationVersionedIdentityV1Schema,\n} from \"./technical-documentation-common.schemas\";\nimport {\n EngineDocumentationSpecificationCatalogIdentityV1Schema,\n TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema,\n TechnicalDocumentationEngineContentBundleIdentityV1Schema,\n} from \"./technical-documentation-evidence.schemas\";\nimport { TechnicalDocumentationUnitV1Schema } from \"./technical-documentation-units.schemas\";\n\n/**\n * Stage 1: exact framework derivation inputs and private semantic output units.\n *\n * Consumer documentation is framework-owned until the app-creator has an\n * accepted application-design artifact. It must therefore not claim a causal\n * dependency on an application's accepted specification projection or family\n * heads: those are separate application-creation facts, not documentation\n * inputs.\n */\nexport const TechnicalDocumentationPrivateDerivationManifestV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n engineContentBundleIdentity: TechnicalDocumentationEngineContentBundleIdentityV1Schema,\n environmentEvidenceSnapshot: TechnicalDocumentationEnvironmentEvidenceSnapshotV1Schema,\n engineSpecificationCatalogIdentity: EngineDocumentationSpecificationCatalogIdentityV1Schema,\n /** This derivation's own identity. The authorized bundle names it as its `derivationIdentity`. */\n derivationRef: MetaWorkflow_NamespacedRefSchema,\n derivationVersion: MetaWorkflow_PositiveVersionSchema,\n projectorRef: MetaWorkflow_NamespacedRefSchema,\n projectorVersion: MetaWorkflow_PositiveVersionSchema,\n units: z.array(TechnicalDocumentationUnitV1Schema).min(1),\n derivedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((manifest, context) => {\n const unitRefs = manifest.units.map((unit) => unit.unitRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(unitRefs)) {\n context.addIssue({ code: \"custom\", message: \"private units must be unique and sorted by unitRef\", path: [\"units\"] });\n }\n });\nexport type TechnicalDocumentationPrivateDerivationManifestV1 = z.infer<typeof TechnicalDocumentationPrivateDerivationManifestV1Schema>;\n\nexport function canonicalizeTechnicalDocumentationPrivateDerivationInput(\n input: TechnicalDocumentationPrivateDerivationManifestV1,\n): TechnicalDocumentationPrivateDerivationManifestV1 {\n return {\n ...input,\n environmentEvidenceSnapshot: {\n ...input.environmentEvidenceSnapshot,\n observations: canonicalizeTechnicalDocumentationRows(\n input.environmentEvidenceSnapshot.observations,\n (observation) => `${observation.axis}\\0${observation.subjectRef}`,\n ),\n },\n engineSpecificationCatalogIdentity: {\n ...input.engineSpecificationCatalogIdentity,\n entries: canonicalizeTechnicalDocumentationRows(input.engineSpecificationCatalogIdentity.entries, (entry) => entry.sourceRef),\n },\n units: canonicalizeTechnicalDocumentationRows(input.units, (unit) => unit.unitRef),\n };\n}\n\nexport function createTechnicalDocumentationPrivateDerivationManifestV1(\n input: TechnicalDocumentationPrivateDerivationManifestV1,\n): TechnicalDocumentationPrivateDerivationManifestV1 {\n return TechnicalDocumentationPrivateDerivationManifestV1Schema.parse(canonicalizeTechnicalDocumentationPrivateDerivationInput(input));\n}\n\n/** Stage 3: exact asset requests and their resolved byte identities. */\nexport const TechnicalDocumentationResolvedAssetBundleManifestV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n /** This asset bundle's own identity, named by the render manifest and the publication pointer. */\n assetBundleRef: MetaWorkflow_NamespacedRefSchema,\n assetBundleVersion: MetaWorkflow_PositiveVersionSchema,\n authorizedBundleIdentity: TechnicalDocumentationVersionedIdentityV1Schema,\n requests: z.array(TechnicalDocumentationAssetRequestV1Schema),\n resolvedAssetSet: TechnicalDocumentationResolvedAssetSetV1Schema,\n resolvedAt: MetaWorkflow_IsoDateTimeSchema,\n })\n .superRefine((bundle, context) => {\n const requestRefs = bundle.requests.map((request) => request.assetRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(requestRefs)) {\n context.addIssue({ code: \"custom\", message: \"asset requests must be unique and sorted by assetRef\", path: [\"requests\"] });\n }\n const resolvedByRef = new Map(bundle.resolvedAssetSet.assets.map((asset) => [asset.assetRef, asset]));\n if (requestRefs.join(\"\\0\") !== bundle.resolvedAssetSet.assets.map((asset) => asset.assetRef).join(\"\\0\")) {\n context.addIssue({ code: \"custom\", message: \"resolved assets must exactly cover authorized asset requests\", path: [\"resolvedAssetSet\", \"assets\"] });\n }\n for (const [index, request] of bundle.requests.entries()) {\n const asset = resolvedByRef.get(request.assetRef);\n if (asset === undefined) continue;\n if (asset.kind !== request.kind || asset.origin !== request.origin || asset.accessClass !== request.accessClass\n || asset.requiredness !== request.requiredness || asset.semanticInputRef !== request.semanticInputRef\n || asset.rights.basis !== request.rights.basis || asset.rights.authorityRef !== request.rights.authorityRef\n || asset.classification.requestAccessClass !== request.accessClass\n || asset.classification.sourceAccessClass !== request.sourceAccessClass\n || asset.classification.viewedTenantAccessClass !== request.viewedTenantAccessClass\n || asset.classification.roleAccessClass !== request.roleAccessClass) {\n context.addIssue({ code: \"custom\", message: \"resolved asset metadata must match its authorized request\", path: [\"requests\", index] });\n }\n if (request.accessClass === TechnicalDocumentationAssetAccessClass.PUBLIC\n && asset.classification.publicationEligibility !== TechnicalDocumentationAssetPublicationEligibility.PUBLIC_ELIGIBLE) {\n context.addIssue({ code: \"custom\", message: \"a public asset request requires a publicly eligible resolved classification\", path: [\"resolvedAssetSet\", \"assets\", index, \"classification\"] });\n }\n /**\n * A REQUIRED asset must be SATISFIED — by a real capture, or by the framework's\n * placeholder standing in for one.\n *\n * This deliberately admits `PLACEHOLDER`, because refusing it here would make the\n * requiredness declaration decide whether documentation may ship ahead of its\n * pictures. It must not: that is an ENVIRONMENT decision (production refuses\n * provisional imagery, development and staging accept it), enforced at publication\n * where the environment is known. Encoding it here would push every application to\n * declare its assets OPTIONAL just to publish — which says the page may PERMANENTLY\n * have no image, dissolving the obligation instead of deferring it.\n *\n * `MISSING`, `FAILED` and `STALE` remain refusals: none of them ships anything.\n */\n if (request.requiredness === TechnicalDocumentationAssetRequiredness.REQUIRED\n && asset.status !== TechnicalDocumentationAssetResolutionStatus.RESOLVED\n && asset.status !== TechnicalDocumentationAssetResolutionStatus.PLACEHOLDER) {\n context.addIssue({ code: \"custom\", message: \"every required asset must resolve or ship a placeholder before publication\", path: [\"resolvedAssetSet\", \"assets\", index, \"status\"] });\n }\n }\n });\nexport type TechnicalDocumentationResolvedAssetBundleManifestV1 = z.infer<typeof TechnicalDocumentationResolvedAssetBundleManifestV1Schema>;\n\nexport function createTechnicalDocumentationResolvedAssetBundleManifestV1(\n input: TechnicalDocumentationResolvedAssetBundleManifestV1,\n): TechnicalDocumentationResolvedAssetBundleManifestV1 {\n return TechnicalDocumentationResolvedAssetBundleManifestV1Schema.parse({\n ...input,\n requests: canonicalizeTechnicalDocumentationRows(input.requests, (request) => request.assetRef),\n resolvedAssetSet: {\n assets: canonicalizeTechnicalDocumentationRows(input.resolvedAssetSet.assets, (asset) => asset.assetRef),\n },\n });\n}\n\n/** Stage 6: proof that a runtime loaded the selected immutable publication tree. */\nexport const TechnicalDocumentationLiveLoadReceiptV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n receiptId: MetaWorkflow_LowercaseUuidV4Schema,\n runtimeRef: MetaWorkflow_NamespacedRefSchema,\n pointerRef: MetaWorkflow_NamespacedRefSchema,\n pointerRevision: MetaWorkflow_PositiveVersionSchema,\n /** The publication fact this runtime loaded — `pointerRef@pointerRevision` already names its pointer. */\n publicationFactId: MetaWorkflow_LowercaseUuidV4Schema,\n renderIdentity: TechnicalDocumentationVersionedIdentityV1Schema,\n loadedAt: MetaWorkflow_IsoDateTimeSchema,\n});\nexport type TechnicalDocumentationLiveLoadReceiptV1 = z.infer<typeof TechnicalDocumentationLiveLoadReceiptV1Schema>;\n\nexport function createTechnicalDocumentationLiveLoadReceiptV1(\n input: TechnicalDocumentationLiveLoadReceiptV1,\n): TechnicalDocumentationLiveLoadReceiptV1 {\n return TechnicalDocumentationLiveLoadReceiptV1Schema.parse(input);\n}\n\nexport enum TechnicalDocumentationFreshnessStatus {\n CONFLICTED = \"CONFLICTED\",\n CURRENT = \"CURRENT\",\n STALE = \"STALE\",\n UNKNOWN = \"UNKNOWN\",\n}\n\nexport enum TechnicalDocumentationFreshnessComparisonStatus {\n CONFLICTED = \"CONFLICTED\",\n MATCH = \"MATCH\",\n MISMATCH = \"MISMATCH\",\n MISSING = \"MISSING\",\n}\n\n/**\n * One freshness axis: what the publication was built against, and what is there now.\n *\n * Both sides were sha256 digests until 2026-08-27. Nothing about the comparison needed them —\n * a `ref` + `version` pair answers \"same or different\" identically, and answers \"different HOW\"\n * far better: a reader of a STALE axis can now see that the engine content bundle went from v7 to\n * v9, where two hex strings said only that something moved. It also merges, which a digest of a\n * regenerated tree never could.\n */\nexport const TechnicalDocumentationFreshnessComparisonV1Schema = z.strictObject({\n expected: TechnicalDocumentationVersionedIdentityV1Schema,\n observed: TechnicalDocumentationVersionedIdentityV1Schema.nullable(),\n status: z.enum(TechnicalDocumentationFreshnessComparisonStatus),\n});\nexport type TechnicalDocumentationFreshnessComparisonV1 = z.infer<typeof TechnicalDocumentationFreshnessComparisonV1Schema>;\n\nconst FreshnessAxesSchema = z.strictObject({\n acceptedSpecificationProjection: TechnicalDocumentationFreshnessComparisonV1Schema,\n engineSpecificationCatalog: TechnicalDocumentationFreshnessComparisonV1Schema,\n pointer: TechnicalDocumentationFreshnessComparisonV1Schema,\n sourceFamilyHeads: TechnicalDocumentationFreshnessComparisonV1Schema,\n engineContentBundle: TechnicalDocumentationFreshnessComparisonV1Schema,\n environmentEvidence: TechnicalDocumentationFreshnessComparisonV1Schema,\n renderer: TechnicalDocumentationFreshnessComparisonV1Schema,\n requiredAssets: TechnicalDocumentationFreshnessComparisonV1Schema,\n});\n\n/** Stage 7: fail-closed freshness over every independently authoritative identity. */\nexport const TechnicalDocumentationFreshnessResultV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n evaluatedAt: MetaWorkflow_IsoDateTimeSchema,\n status: z.enum(TechnicalDocumentationFreshnessStatus),\n axes: FreshnessAxesSchema,\n })\n .superRefine((result, context) => {\n const comparisons = Object.values(result.axes);\n for (const [axis, comparison] of Object.entries(result.axes)) {\n if ((comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISSING) !== (comparison.observed === null)) {\n context.addIssue({ code: \"custom\", message: \"only MISSING freshness axes omit the observed identity\", path: [\"axes\", axis, \"observed\"] });\n }\n const identitiesAgree = technicalDocumentationIdentitiesAreEqual(comparison.expected, comparison.observed);\n if (comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MATCH && !identitiesAgree) {\n context.addIssue({ code: \"custom\", message: \"MATCH requires exact expected and observed identities\", path: [\"axes\", axis, \"status\"] });\n }\n if (comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISMATCH && identitiesAgree) {\n context.addIssue({ code: \"custom\", message: \"MISMATCH requires different expected and observed identities\", path: [\"axes\", axis, \"status\"] });\n }\n }\n const expectedStatus = comparisons.some((comparison) => comparison.status === TechnicalDocumentationFreshnessComparisonStatus.CONFLICTED)\n ? TechnicalDocumentationFreshnessStatus.CONFLICTED\n : comparisons.some((comparison) => comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISSING)\n ? TechnicalDocumentationFreshnessStatus.UNKNOWN\n : comparisons.some((comparison) => comparison.status === TechnicalDocumentationFreshnessComparisonStatus.MISMATCH)\n ? TechnicalDocumentationFreshnessStatus.STALE\n : TechnicalDocumentationFreshnessStatus.CURRENT;\n if (result.status !== expectedStatus) {\n context.addIssue({ code: \"custom\", message: `freshness status must be ${expectedStatus} for the axis results`, path: [\"status\"] });\n }\n });\nexport type TechnicalDocumentationFreshnessResultV1 = z.infer<typeof TechnicalDocumentationFreshnessResultV1Schema>;\n\nexport function createTechnicalDocumentationFreshnessResultV1(\n input: TechnicalDocumentationFreshnessResultV1,\n): TechnicalDocumentationFreshnessResultV1 {\n return TechnicalDocumentationFreshnessResultV1Schema.parse(input);\n}\n\n"]}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, MetaWorkflow_Sha256DigestSchema } from "@wildo-ai/saas-models/meta-workflows";
2
+ import { MetaWorkflow_IsoDateTimeSchema, MetaWorkflow_LowercaseUuidV4Schema, MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema, MetaWorkflow_Sha256DigestSchema } from "@wildo-ai/saas-models/public-runtime";
3
3
  import { canonicalizeTechnicalDocumentationRows, findTechnicalDocumentationSecretShapedPath, technicalDocumentationIdentitiesAreEqual, TechnicalDocumentationNormalizedRelativePathSchema, TechnicalDocumentationVersionedIdentityV1Schema, technicalDocumentationPathsAreUnique, technicalDocumentationValuesAreUniqueAndSorted, } from "./technical-documentation-common.schemas.js";
4
4
  import { TechnicalDocumentationAssetAccessClass } from "./technical-documentation-assets.schemas.js";
5
5
  import { TechnicalDocumentationAccessClass, TechnicalDocumentationChannel, TechnicalDocumentationPublicationDecision, TechnicalDocumentationPublicationReason, TechnicalDocumentationSourceClassification, TechnicalDocumentationUnitV1Schema, } from "./technical-documentation-units.schemas.js";