@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,6 +1,9 @@
1
1
  import { GovernedDocumentGovernanceSubjectKind, GovernedDocumentPositiveSafeIntegerSchema } from "@wildo-ai/saas-models";
2
2
  import { z } from "zod";
3
- import { AssuranceDocumentFactAuthorityKind, AssuranceIsoDateTimeSchema } from "../assurance.exports.js";
3
+ // Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —
4
+ // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
5
+ import '@wildo-ai/zod-decorators';
6
+ import { AssuranceDocumentFactAuthorityKind, AssuranceIsoDateTimeSchema, createInitialAssuranceDocumentAuthorityCatalog, listAssuranceDocumentBlueprints, } from "../assurance.exports.js";
4
7
  /**
5
8
  * A namespaced ref as an AUTHOR writes it — the same `namespace:slug` grammar as
6
9
  * `AuthoredNamespacedRefSchema`, and deliberately NOT branded.
@@ -46,7 +49,7 @@ const AuthoredNamespacedRefSchema = z.string().trim().regex(/^[a-z0-9]+(?:[-.][a
46
49
  */
47
50
  const AuthoredGovernanceScopeSchema = z
48
51
  .strictObject({
49
- subjectKind: z.enum(GovernedDocumentGovernanceSubjectKind),
52
+ subjectKind: z.enum(GovernedDocumentGovernanceSubjectKind).systemEnum('GovernedDocumentGovernanceSubjectKind'),
50
53
  subjectRef: AuthoredNamespacedRefSchema,
51
54
  scopeRef: AuthoredNamespacedRefSchema,
52
55
  scopeVersion: GovernedDocumentPositiveSafeIntegerSchema,
@@ -105,17 +108,17 @@ const ApplicationDocumentFactDeclarationAuthorityCommonSchema = z.strictObject({
105
108
  * no decision instant to invent and no accountable actor to fabricate.
106
109
  */
107
110
  const ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({
108
- factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION),
111
+ factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION).systemEnum('AssuranceDocumentFactAuthorityKind'),
109
112
  });
110
113
  /** A creator's decision: a named human, at a real instant. */
111
114
  const ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({
112
- factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.CREATOR_DECISION),
115
+ factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.CREATOR_DECISION).systemEnum('AssuranceDocumentFactAuthorityKind'),
113
116
  decidedByRef: AuthoredNamespacedRefSchema,
114
117
  decidedAt: AssuranceIsoDateTimeSchema,
115
118
  });
116
119
  /** A qualified review: a named author, a named reviewer, their qualifications, and what they disclose. */
117
120
  const ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({
118
- factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW),
121
+ factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW).systemEnum('AssuranceDocumentFactAuthorityKind'),
119
122
  authorRef: AuthoredNamespacedRefSchema,
120
123
  reviewerRef: AuthoredNamespacedRefSchema,
121
124
  reviewerQualificationRefs: z.array(AuthoredNamespacedRefSchema).min(1),
@@ -217,12 +220,12 @@ export const ApplicationDerivedDocumentFactDeclarationSchema = z
217
220
  .discriminatedUnion("resolutionKind", [
218
221
  ApplicationDocumentFactDeclarationCommonSchema.extend({
219
222
  authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,
220
- resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN),
223
+ resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),
221
224
  value: z.json(),
222
225
  }),
223
226
  ApplicationDocumentFactDeclarationCommonSchema.extend({
224
227
  authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,
225
- resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE),
228
+ resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),
226
229
  reason: z.string().trim().min(1),
227
230
  }),
228
231
  ])
@@ -238,12 +241,12 @@ export const ApplicationAuthoredDocumentFactDeclarationSchema = z
238
241
  .discriminatedUnion("resolutionKind", [
239
242
  ApplicationDocumentFactDeclarationCommonSchema.extend({
240
243
  authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,
241
- resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN),
244
+ resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),
242
245
  value: z.json(),
243
246
  }),
244
247
  ApplicationDocumentFactDeclarationCommonSchema.extend({
245
248
  authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,
246
- resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE),
249
+ resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),
247
250
  reason: z.string().trim().min(1),
248
251
  }),
249
252
  ])
@@ -299,7 +302,7 @@ const buildDocumentFactSpecificationSchema = (declarationSchema) => z
299
302
  *
300
303
  * `refinement.document-facts` rewrites it whole. Before #192 the same file also held the facts only a
301
304
  * human may establish, so the next producer run silently deleted them — and there was no compare-and-
302
- * swap to notice, by design (`.claude/rules/one-source-of-truth.md` Rule 0). The facts a human owns
305
+ * swap to notice, by design: nothing is kept that cannot branch and merge on git. The facts a human owns
303
306
  * live in {@link ApplicationAuthoredDocumentFactSpecificationSchema}, in their own file, which no
304
307
  * producer writes.
305
308
  */
@@ -324,10 +327,137 @@ export const ApplicationDocumentFactSpecificationSchema = buildDocumentFactSpeci
324
327
  */
325
328
  export const ApplicationAuthoredDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationAuthoredDocumentFactDeclarationSchema);
326
329
  /** @wildo_source:part:end saas.specifications.application-authored-document-fact-specification.contract */
330
+ let blueprintAssignedFactAuthorityKinds;
331
+ /**
332
+ * The authority the governed-document blueprints ASSIGN a fact, or `undefined` when no blueprint asks it.
333
+ *
334
+ * ## Why a declaration's authority must be compared with this
335
+ *
336
+ * A declaration's `factAuthorityKind` says where its content came from, and the whole four-tier split
337
+ * rests on it being true: it is how a reader tells "the product declares this" from "a qualified person
338
+ * decided this". Until #637 nothing compared the declared kind with the kind the blueprint assigned the
339
+ * question, so the label was a property of WHICH PRODUCER RAN — `refinement.document-facts` stamps
340
+ * `APPLICATION_SPECIFICATION` on everything it writes — and a question the catalog reserves for a
341
+ * qualified privacy decision (`lawful-bases`) landed under specification authority with no gate able
342
+ * to see it. The inverse direction (a human answering a DERIVED question) was already refused, at
343
+ * `buildGovernanceFactDeclarations`; this is the half that was never built, and it lives at the family
344
+ * so every writer meets it rather than one host.
345
+ *
346
+ * A SET, because two blueprints could in principle ask one fact under different tiers; the catalog
347
+ * measured 2026-09-12 assigns every one of its 40 facts exactly one kind, and a declaration is admitted
348
+ * when its kind is any assigned one. A fact no blueprint asks is unconstrained here: nothing reserves it.
349
+ *
350
+ * Built once, lazily — the catalog is a pure function and every validation reads the same answer.
351
+ */
352
+ export function resolveBlueprintAssignedFactAuthorityKinds(factRef) {
353
+ if (blueprintAssignedFactAuthorityKinds === undefined) {
354
+ const assigned = new Map();
355
+ for (const { blueprint } of listAssuranceDocumentBlueprints(createInitialAssuranceDocumentAuthorityCatalog())) {
356
+ for (const question of blueprint.questions) {
357
+ const kinds = assigned.get(question.factRef) ?? new Set();
358
+ kinds.add(question.factAuthorityKind);
359
+ assigned.set(question.factRef, kinds);
360
+ }
361
+ }
362
+ blueprintAssignedFactAuthorityKinds = assigned;
363
+ }
364
+ return blueprintAssignedFactAuthorityKinds.get(factRef);
365
+ }
366
+ /**
367
+ * Governed-document facts the RUNTIME computes from the application's typed declarations, so neither a
368
+ * producer nor a person may declare them (#964, decision 2026-09-13: derive first, then judge).
369
+ *
370
+ * ## Why a computed fact is not a better-grounded generated one
371
+ *
372
+ * Each of these facts is a question the blueprints answer from `APPLICATION_SPECIFICATION`, and each has
373
+ * a typed declaration that already IS the answer. Before this vocabulary a producer read that declaration
374
+ * in its brief and restated it as prose, so the label said "the specification established this" while
375
+ * the content was a model's paraphrase that nothing compared against the declaration. A computed fact has
376
+ * nothing to ground: the value is the declaration, projected, at the moment it is read.
377
+ *
378
+ * ## Why it is computed at READ and never stored
379
+ *
380
+ * A stored copy is a second authority for a value `wildo.saas.config.ts` or the processor register
381
+ * already owns. It is right the day it is written and silently wrong the day the declaration changes,
382
+ * which is the drift `.claude/rules/compliance-is-derived-from-the-product.md` measured running one
383
+ * way. So `computeApplicationDocumentFacts` is called wherever facts are read and nothing persists its
384
+ * output. A declaration of one of these facts in either fact family is refused by
385
+ * {@link validateApplicationDocumentFactSpecification} for the same reason.
386
+ *
387
+ * ## What earns membership
388
+ *
389
+ * The fact's WHOLE answer must be a function of typed declarations. A fact with a declared half and a
390
+ * decided half does not belong here until the decided half has its own typed field — which is how the
391
+ * four privacy-notice facts joined in #454: `retention-rules` once the period had `dataRetention`,
392
+ * `international-transfers` once the mechanism had a per-entry `transferDetermination`, and
393
+ * `rights-and-complaint-route` once the verification procedure had `subjectRequestIdentityVerification`. When a member's inputs are absent, its
394
+ * computation answers NOTHING: the fact stays absent and every clause resting on it is marked as owed,
395
+ * which is the honest state of "nobody has declared this".
396
+ */
397
+ export var ComputedDocumentFact;
398
+ (function (ComputedDocumentFact) {
399
+ /** From `operatorComplianceIdentity`: the legal entity, its privacy contact route, and its role per population of data. */
400
+ ComputedDocumentFact["CONTROLLER_AND_CONTACT"] = "controller-and-contact";
401
+ /** From the processor register, joined to the runtime-scoped providers and the operator's deployment choice for each. */
402
+ ComputedDocumentFact["RECIPIENTS_AND_PROCESSORS"] = "recipients-and-processors";
403
+ /**
404
+ * From `operatorComplianceIdentity.lawfulBases`: each processing purpose, the Art. 6(1) basis the operator
405
+ * relies on for it, and the balancing assessment where the basis is legitimate interests.
406
+ *
407
+ * The declaration IS the accountable decision. It is typed, committed and reviewed as a commit, and the
408
+ * schema already refuses a legitimate-interests basis with no assessment. Asking a reviewer to type the
409
+ * same answer into a form produced a second copy nothing compared with the first (#454).
410
+ */
411
+ ComputedDocumentFact["LAWFUL_BASES"] = "lawful-bases";
412
+ /**
413
+ * From `dataRetention` (the period per data class) and each resource's declared `retentionPolicy.mode`
414
+ * (what erasure does to its rows). The period was the "decided half" that kept this fact out of the
415
+ * vocabulary; `ApplicationRetentionSchedule` is its typed field, so both halves are declarations (#454).
416
+ */
417
+ ComputedDocumentFact["RETENTION_RULES"] = "retention-rules";
418
+ /**
419
+ * From the processor register's per-entry `transferDetermination`, checked against `operatingJurisdictions`.
420
+ * The transfer MECHANISM was the decided half (#126); it is recorded per entry by the operator and never
421
+ * inferred from a region, so the fact answers nothing while any entry is undetermined (#454).
422
+ */
423
+ ComputedDocumentFact["INTERNATIONAL_TRANSFERS"] = "international-transfers";
424
+ /**
425
+ * From `operatingJurisdictions` and `lawfulBases` (which rights the law attaches, and the complaint route),
426
+ * `privacyContact` (the channel), `subjectRequestIdentityVerification` (the one procedure the operator
427
+ * decides) and `roleAllocations` (who answers each population's requests) (#454).
428
+ */
429
+ ComputedDocumentFact["RIGHTS_AND_COMPLAINT_ROUTE"] = "rights-and-complaint-route";
430
+ })(ComputedDocumentFact || (ComputedDocumentFact = {}));
431
+ const DOCUMENT_FACT_REF_PREFIX = "document-fact:";
432
+ /** The computed fact a ref names, or `undefined` when the fact is declared rather than computed. */
433
+ export function computedDocumentFactOf(factRef) {
434
+ if (!factRef.startsWith(DOCUMENT_FACT_REF_PREFIX))
435
+ return undefined;
436
+ const slug = factRef.slice(DOCUMENT_FACT_REF_PREFIX.length);
437
+ return Object.values(ComputedDocumentFact).find((member) => member === slug);
438
+ }
327
439
  export var ApplicationDocumentFactSpecificationIssueSeverity;
328
440
  (function (ApplicationDocumentFactSpecificationIssueSeverity) {
329
441
  ApplicationDocumentFactSpecificationIssueSeverity["ERROR"] = "ERROR";
330
442
  })(ApplicationDocumentFactSpecificationIssueSeverity || (ApplicationDocumentFactSpecificationIssueSeverity = {}));
443
+ /** What a document-fact content-validation issue is about. */
444
+ export var ApplicationDocumentFactSpecificationIssueKind;
445
+ (function (ApplicationDocumentFactSpecificationIssueKind) {
446
+ /** The declaration's content is unusable — a KNOWN fact carrying no value. */
447
+ ApplicationDocumentFactSpecificationIssueKind["INVALID_DOCUMENT_FACT_SPECIFICATION"] = "invalid_document_fact_specification";
448
+ /**
449
+ * The declaration claims an authority the document blueprints did not assign its fact (#637): a
450
+ * producer answering a question reserved for a person, or a person freezing an answer the
451
+ * specification owns. See `resolveBlueprintAssignedFactAuthorityKinds`.
452
+ */
453
+ ApplicationDocumentFactSpecificationIssueKind["DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED"] = "document_fact_authority_not_assigned";
454
+ /**
455
+ * The declaration states a {@link ComputedDocumentFact}, which the runtime computes from the
456
+ * application's typed declarations whenever facts are read (#964). A stored copy is never the answer,
457
+ * and it goes stale the moment the declaration it restates changes.
458
+ */
459
+ ApplicationDocumentFactSpecificationIssueKind["DOCUMENT_FACT_IS_COMPUTED"] = "document_fact_is_computed";
460
+ })(ApplicationDocumentFactSpecificationIssueKind || (ApplicationDocumentFactSpecificationIssueKind = {}));
331
461
  /**
332
462
  * Content validation the schema alone cannot express.
333
463
  *
@@ -359,6 +489,47 @@ export var ApplicationDocumentFactSpecificationIssueSeverity;
359
489
  export function validateApplicationDocumentFactSpecification(specification) {
360
490
  const issues = [];
361
491
  specification.declarations.forEach((declaration, index) => {
492
+ /*
493
+ * The declared authority must be one the blueprint ASSIGNED this fact (#637) — see
494
+ * `resolveBlueprintAssignedFactAuthorityKinds`. Checked for EITHER family, because the claim is the
495
+ * same whichever file carries it: a derived declaration answering a reserved question claims a
496
+ * derivation nobody may make, and an authored one answering a derived question freezes, under a
497
+ * person's name, an answer the specification owns. An ISSUE rather than an advisory: the label is
498
+ * untrue, not merely unfinished — the honest state of a reserved fact nobody has decided is ABSENT,
499
+ * which every clause resting on it already marks.
500
+ */
501
+ const assignedKinds = resolveBlueprintAssignedFactAuthorityKinds(declaration.factRef);
502
+ if (assignedKinds !== undefined && !assignedKinds.has(declaration.authority.factAuthorityKind)) {
503
+ const assigned = [...assignedKinds].join(" or ");
504
+ issues.push({
505
+ kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED,
506
+ severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,
507
+ path: `declarations.${index}.authority.factAuthorityKind`,
508
+ message: `"${declaration.factRef}" is declared under ${declaration.authority.factAuthorityKind} authority, but the document `
509
+ + `blueprints assign that fact ${assigned}. `
510
+ + (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION
511
+ ? "A producer may not answer it: remove the declaration from the derived family and leave the fact absent until "
512
+ + "it is decided in the authored family, where a document marks the clause as owed rather than stating it."
513
+ : "It is answered from the accepted specification: remove the hand-authored declaration and let the derived family carry it."),
514
+ });
515
+ }
516
+ /*
517
+ * A computed fact is answered from the application's declarations when facts are read (#964), so a
518
+ * declaration of it in EITHER family is a second authority for a value somebody else owns. An ISSUE,
519
+ * not an advisory: the copy is never what a document reads, and it silently disagrees with the
520
+ * declaration the day that declaration changes.
521
+ */
522
+ if (computedDocumentFactOf(declaration.factRef) !== undefined) {
523
+ issues.push({
524
+ kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_IS_COMPUTED,
525
+ severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,
526
+ path: `declarations.${index}.factRef`,
527
+ message: `"${declaration.factRef}" is computed from the application's own declarations whenever its facts are read. `
528
+ + "Remove this declaration: change the declaration it restates instead (`operatorComplianceIdentity`, the processor register "
529
+ + "or a provider's deployment choice), and every document reads the change.",
530
+ });
531
+ return;
532
+ }
362
533
  if (declaration.resolutionKind !== ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN)
363
534
  return;
364
535
  const value = declaration.value;
@@ -369,7 +540,7 @@ export function validateApplicationDocumentFactSpecification(specification) {
369
540
  if (!isVacuous)
370
541
  return;
371
542
  issues.push({
372
- kind: "invalid_document_fact_specification",
543
+ kind: ApplicationDocumentFactSpecificationIssueKind.INVALID_DOCUMENT_FACT_SPECIFICATION,
373
544
  severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,
374
545
  path: `declarations.${index}.value`,
375
546
  message: `"${declaration.factRef}" is declared KNOWN but carries no value. `
@@ -1 +1 @@
1
- {"version":3,"file":"application-document-fact-specification.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,yCAAyC,EAAE,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kCAAkC,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CACzD,6DAA6D,EAC7D,2BAA2B,CAC5B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,6BAA6B,GAAG,CAAC;KACpC,YAAY,CAAC;IACZ,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC;IAC1D,UAAU,EAAE,2BAA2B;IACvC,QAAQ,EAAE,2BAA2B;IACrC,YAAY,EAAE,yCAAyC;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;GA2BG;AACH,MAAM,UAAU,4CAA4C,CAAC,aAAoD;IAI/G,MAAM,MAAM,GAAgD,EAAE,CAAC;IAC/D,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE;QACxD,IAAI,WAAW,CAAC,cAAc,KAAK,0DAA0D,CAAC,KAAK;YAAE,OAAO;QAC5G,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QAChC,MAAM,SAAS,GACb,KAAK,KAAK,IAAI;eACX,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;eACxD,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;eAC5C,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;QAC/G,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,qCAAqC;YAC3C,QAAQ,EAAE,iDAAiD,CAAC,KAAK;YACjE,IAAI,EAAE,gBAAgB,KAAK,QAAQ;YACnC,OAAO,EACL,IAAI,WAAW,CAAC,OAAO,4CAA4C;kBACjE,qIAAqI;SAC1I,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;AAC7C,CAAC","sourcesContent":["import { GovernedDocumentGovernanceSubjectKind, GovernedDocumentPositiveSafeIntegerSchema } from \"@wildo-ai/saas-models\";\nimport { z } from \"zod\";\n\nimport { AssuranceDocumentFactAuthorityKind, AssuranceIsoDateTimeSchema } from \"../assurance.exports\";\n\n/**\n * A namespaced ref as an AUTHOR writes it — the same `namespace:slug` grammar as\n * `AuthoredNamespacedRefSchema`, and deliberately NOT branded.\n *\n * ## Why this file cannot use the branded one\n *\n * A brand is nominal typing: `string & $brand<\"AssuranceNamespacedRef\">`. A plain string literal is not\n * assignable to it, so a field typed that way **cannot be written as a literal at all** — not by a\n * human, and not by the landing renderer, which emits exactly what a human would write. The only way\n * past is a cast, and a cast asserts the very thing the brand exists to prove.\n *\n * That made this family unauthorable, and it went unnoticed for one reason: the family could not RENDER\n * either (its vocabularies were unnameable), so no file ever reached a typechecker. The moment rendering\n * was fixed, the first landed `document-facts` file produced **170 assignability errors** in the\n * application's own specifications package — every ref field, plus every ref inside the embedded\n * governance scope.\n *\n * ## The line this draws, and it is the one this lane keeps rediscovering\n *\n * A branded type is right for a value obtained by PARSING and wrong for one written by HAND. This\n * family is an authored input — D7/D9: the facts are a FILE the application commits, like every other\n * family — so its fields are shaped for authoring, and the regex still does the validating. The sibling\n * `compliance-document-candidate` family made the same call independently, with its own unbranded\n * `ComplianceDocumentNamespacedRefSchema`; the two families disagreed for no stated reason, and this one\n * was the one nobody could write.\n *\n * Nothing depended on the brand: every consumer reads these refs as strings (the availability collector\n * keys a `Map<string, …>`), and the runtime path never noticed because it builds plain strings and lets\n * `.parse()` brand them.\n */\nconst AuthoredNamespacedRefSchema = z.string().trim().regex(\n /^[a-z0-9]+(?:[-.][a-z0-9]+)*:[a-z0-9]+(?:[-/.][a-z0-9]+)*$/u,\n \"expected a namespaced ref\",\n);\n\n/**\n * The governance scope as an AUTHOR writes it.\n *\n * Structurally the same question `GovernedDocumentGovernanceScopeSchema` answers — whose document this\n * is, and over what — restated with authored refs for the reason above: that schema's `subjectRef`,\n * `scopeRef`, `participantRefs` and `precedenceRuleRefs` are all branded `GovernedDocumentRef`, and it\n * serves RUNTIME document code where a parsed, branded ref is exactly right.\n *\n * The shared-responsibility rule is kept, because it is semantic rather than ceremonial: a scope\n * attributed to several parties must name at least two participants and say which one prevails, or the\n * document silently claims an allocation nobody made.\n */\nconst AuthoredGovernanceScopeSchema = z\n .strictObject({\n subjectKind: z.enum(GovernedDocumentGovernanceSubjectKind),\n subjectRef: AuthoredNamespacedRefSchema,\n scopeRef: AuthoredNamespacedRefSchema,\n scopeVersion: GovernedDocumentPositiveSafeIntegerSchema,\n participantRefs: z.array(AuthoredNamespacedRefSchema),\n precedenceRuleRefs: z.array(AuthoredNamespacedRefSchema),\n })\n .superRefine((scope, context) => {\n if (scope.subjectKind === GovernedDocumentGovernanceSubjectKind.SHARED_RESPONSIBILITY) {\n if (scope.participantRefs.length < 2) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"shared responsibility requires at least two attributed participants\" });\n }\n if (scope.precedenceRuleRefs.length === 0) {\n context.addIssue({ code: \"custom\", path: [\"precedenceRuleRefs\"], message: \"shared responsibility requires an explicit precedence rule\" });\n }\n return;\n }\n if (scope.participantRefs.length > 0 || scope.precedenceRuleRefs.length > 0) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"only a shared-responsibility scope attributes participants or precedence rules\" });\n }\n });\n\n/**\n * Whether a declared document fact HAS an answer, or was considered and does not apply.\n *\n * The two are different answers and a document that confuses them is wrong in different ways: \"we\n * perform no international transfers\" is a citable statement, while \"international transfers are not\n * applicable to us\" is the application declining to answer, and a clause resting on the second\n * asserts something nobody established. A fact ABSENT from the specification is neither — nobody has\n * considered it at all.\n *\n * It lived in `application-assurance-document-fact-projection.…schemas.ts` until 2026-08-28, when\n * that module — a host-computed projection carrying a projector identity, source-head digests and\n * per-contribution authority receipts — was deleted with the rest of the digest machinery\n * (`.claude/rules/one-source-of-truth.md`, Rule 0). This enum was the only thing in its 999 lines\n * that anything outside it used, and it belongs here: it is the resolution kind of a DECLARATION,\n * which is what this file is about.\n */\nexport enum ApplicationAssuranceDocumentFactContributionResolutionKind {\n /** The application declared this fact and it carries a value. */\n KNOWN = \"KNOWN\",\n /** The application considered this fact and it genuinely does not apply. Citable by nothing. */\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n}\n\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst valuesAreUnique = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst valuesAreLexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nconst ApplicationDocumentFactDeclarationAuthorityCommonSchema = z.strictObject({\n authorityRef: AuthoredNamespacedRefSchema,\n authorityVersion: GovernedDocumentPositiveSafeIntegerSchema,\n});\n\n/**\n * The DERIVED authority: the accepted semantic member itself is the authority — the committed\n * specification file, which git already identifies per commit — so there is no human to name.\n *\n * It carries no `decidedAt`, and that absence is the whole reason a generator may produce it: there is\n * no decision instant to invent and no accountable actor to fabricate.\n */\nconst ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION),\n});\n\n/** A creator's decision: a named human, at a real instant. */\nconst ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.CREATOR_DECISION),\n decidedByRef: AuthoredNamespacedRefSchema,\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/** A qualified review: a named author, a named reviewer, their qualifications, and what they disclose. */\nconst ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW),\n authorRef: AuthoredNamespacedRefSchema,\n reviewerRef: AuthoredNamespacedRefSchema,\n reviewerQualificationRefs: z.array(AuthoredNamespacedRefSchema).min(1),\n independenceDisclosure: z.string().trim().min(1),\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/**\n * Every authority kind — the READER's union.\n *\n * A consumer that reads facts does not care which family a declaration came from: the document asserts\n * the FACT. So this stays whole, and the two WRITER unions below are its disjoint halves.\n *\n * Human decisions retain their actual decision instant and named accountable actors; accepting the\n * surrounding specification never rewrites that instant or silently upgrades the authority kind.\n */\nexport const ApplicationDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n]);\nexport type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof ApplicationDocumentFactDeclarationAuthoritySchema>;\n\n/**\n * The AUTHORED half — a human said it.\n *\n * Kept as a union rather than folded into one shape because the two differ in what they must disclose:\n * a creator decision names who decided, a qualified review additionally names who reviewed, against\n * what qualifications, and how independent they were.\n */\nconst ApplicationAuthoredDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n]);\n\nconst ApplicationDocumentFactDeclarationCommonSchema = z.strictObject({\n declarationRef: AuthoredNamespacedRefSchema,\n declarationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n factRef: AuthoredNamespacedRefSchema,\n factVersion: GovernedDocumentPositiveSafeIntegerSchema,\n governanceScope: AuthoredGovernanceScopeSchema,\n sensitivityRef: AuthoredNamespacedRefSchema,\n validUntil: AssuranceIsoDateTimeSchema.optional(),\n});\n\n/**\n * The structural minimum the cross-field rules need, so ONE implementation of them serves all three\n * declaration schemas below.\n *\n * Written structurally rather than as `z.infer<typeof …>` because the wide schema does not exist yet at\n * this point in the file, and a narrow declaration is assignable to this shape by construction.\n */\ntype DocumentFactDeclarationRefinementSubject = {\n readonly declarationRef: string;\n readonly factRef: string;\n readonly sensitivityRef: string;\n readonly validUntil?: string | undefined;\n /**\n * Declared OPTIONAL, and it is not a claim that a declaration may omit its authority — the schemas\n * below require it and nothing marks it `.optional()`.\n *\n * Zod 4.3.6 infers a UNION-valued object key as optional. Measured in this package rather than\n * assumed: a plain-object value infers `authority:` (required), while both `z.union` and\n * `z.discriminatedUnion` infer `authority?:`. So a parsed AUTHORED declaration — whose authority is a\n * two-member union — is not assignable to a subject type that requires the field, and writing it\n * required here would refuse the very values this function exists to check.\n *\n * Reads below are unaffected: this package compiles with `strict: false`, so an optional property is\n * not widened with `undefined`.\n */\n readonly authority?: ApplicationDocumentFactDeclarationAuthority;\n};\n\ntype DocumentFactDeclarationRefinementContext = {\n addIssue: (issue: { code: \"custom\"; message: string; path: PropertyKey[] }) => void;\n};\n\n/**\n * The namespace, ordering and instant rules a declaration must satisfy whoever wrote it.\n *\n * Shared deliberately: the DERIVED and AUTHORED families differ in WHO may assert a fact, never in what\n * a well-formed assertion looks like. Two copies of these rules would drift into two grammars for one\n * vocabulary — `invariant-call-site-enumeration.md` #4.\n */\nconst refineDocumentFactDeclaration = (\n declaration: DocumentFactDeclarationRefinementSubject,\n context: DocumentFactDeclarationRefinementContext,\n): void => {\n if (!declaration.declarationRef.startsWith(\"document-fact-declaration:\")) {\n context.addIssue({ code: \"custom\", message: \"declarationRef must use the document-fact-declaration: namespace\", path: [\"declarationRef\"] });\n }\n if (!declaration.factRef.startsWith(\"document-fact:\")) {\n context.addIssue({ code: \"custom\", message: \"factRef must use the document-fact: namespace\", path: [\"factRef\"] });\n }\n if (!declaration.authority.authorityRef.startsWith(\"document-fact-authority:\")) {\n context.addIssue({ code: \"custom\", message: \"authorityRef must use the document-fact-authority: namespace\", path: [\"authority\", \"authorityRef\"] });\n }\n if (!declaration.sensitivityRef.startsWith(\"sensitivity:\")) {\n context.addIssue({ code: \"custom\", message: \"sensitivityRef must use the sensitivity: namespace\", path: [\"sensitivityRef\"] });\n }\n if (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW) {\n if (!valuesAreUnique(declaration.authority.reviewerQualificationRefs) || !valuesAreLexicallySorted(declaration.authority.reviewerQualificationRefs)) {\n context.addIssue({\n code: \"custom\",\n message: \"reviewerQualificationRefs must be unique and lexically sorted\",\n path: [\"authority\", \"reviewerQualificationRefs\"],\n });\n }\n if (declaration.authority.authorRef === declaration.authority.reviewerRef) {\n context.addIssue({ code: \"custom\", message: \"a qualified fact reviewer cannot be the fact author\", path: [\"authority\", \"reviewerRef\"] });\n }\n }\n const authorityInstant =\n declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION ? undefined : declaration.authority.decidedAt;\n if (authorityInstant && declaration.validUntil && Date.parse(declaration.validUntil) <= Date.parse(authorityInstant)) {\n context.addIssue({ code: \"custom\", message: \"validUntil must follow the human authority decision\", path: [\"validUntil\"] });\n }\n};\n\n/**\n * The two declaration shapes a FILE is parsed against. They differ in exactly one field — who may\n * assert the fact — and share every other rule through {@link refineDocumentFactDeclaration}.\n *\n * Written out rather than produced by a shared factory, and that is a measured decision: a generic\n * `<TAuthority extends z.ZodType<…>>` helper compiles, but Zod's `.extend()` cannot carry a generic\n * schema's output into the extended object's inferred type, so every declaration came back missing its\n * `authority` field. A factory that erases the one property the split exists to constrain is worse than\n * two explicit unions.\n */\n\n/**\n * A DERIVED declaration — `document-facts`, the family a producer writes.\n *\n * Its authority union has exactly one member, and that is the point of the split (#192): the\n * `refinement.document-facts` producer regenerates this whole file, so a human decision left in it is\n * silently overwritten on the next run. Narrowing the TYPE is what makes \"a generator may never write a\n * `CREATOR_DECISION`\" structural instead of a rule somebody has to remember — the generation contract\n * already said so in prose (`document-fact-specification-generation.schemas.ts`) and nothing enforced\n * it on the file the generator lands.\n */\nexport const ApplicationDerivedDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationDerivedDocumentFactDeclaration = z.infer<typeof ApplicationDerivedDocumentFactDeclarationSchema>;\n\n/**\n * An AUTHORED declaration — `document-facts-authored`, the family only a human writes.\n *\n * The mirror of the rule above: nothing here may claim `APPLICATION_SPECIFICATION` authority, because a\n * fact the accepted specification can answer belongs in the derived family where it stays in step with\n * the specification. Filing one here would freeze a derivable answer at the moment somebody typed it.\n */\nexport const ApplicationAuthoredDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationAuthoredDocumentFactDeclaration = z.infer<typeof ApplicationAuthoredDocumentFactDeclarationSchema>;\n\n/**\n * One raw application-owned fact decision, from EITHER family — the READER's shape.\n *\n * The declaration is read as authored. Nothing derives ids, digests, accepted-head identities or\n * receipt joins from it any more — that projection was deleted with the digest machinery (see the\n * note on `ApplicationAssuranceDocumentFactContributionResolutionKind` above).\n *\n * A TYPE and not a schema: nothing parses a file against it, because every file belongs to one family\n * or the other. It exists because a consumer that READS facts does not care who asserted them — the\n * document asserts the FACT — so it should not have to name both halves.\n */\nexport type ApplicationDocumentFactDeclaration = ApplicationDerivedDocumentFactDeclaration | ApplicationAuthoredDocumentFactDeclaration;\n\n/**\n * A set of fact declarations from EITHER family — what a reader takes.\n *\n * Named rather than written inline at each reader because there are several, and because the concept\n * is worth stating: \"the facts\", regardless of which of the two files carried them. A caller holding\n * both passes both.\n */\nexport type ApplicationDocumentFactDeclarationSet = { readonly declarations: readonly ApplicationDocumentFactDeclaration[] };\n\nconst applicationDocumentFactDeclarationScopeKey = (declaration: ApplicationDocumentFactDeclaration): string =>\n `${declaration.factRef}@${declaration.factVersion}:${JSON.stringify(declaration.governanceScope)}`;\n\nconst buildDocumentFactSpecificationSchema = <TDeclaration extends z.ZodType<ApplicationDocumentFactDeclaration>>(declarationSchema: TDeclaration) =>\n z\n .strictObject({\n schemaVersion: z.literal(1),\n specificationRef: AuthoredNamespacedRefSchema,\n specificationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n declarations: z.array(declarationSchema).min(1),\n })\n .superRefine((specification, context) => {\n if (!specification.specificationRef.startsWith(\"document-fact-specification:\")) {\n context.addIssue({\n code: \"custom\",\n message: \"specificationRef must use the document-fact-specification: namespace\",\n path: [\"specificationRef\"],\n });\n }\n const declarationIdentities = specification.declarations.map((declaration) => `${declaration.declarationRef}@${declaration.declarationVersion}`);\n if (!valuesAreUnique(declarationIdentities) || !valuesAreLexicallySorted(declarationIdentities)) {\n context.addIssue({ code: \"custom\", message: \"declarations must be unique and lexically sorted by identity\", path: [\"declarations\"] });\n }\n const factScopeKeys = specification.declarations.map(applicationDocumentFactDeclarationScopeKey);\n if (!valuesAreUnique(factScopeKeys)) {\n context.addIssue({\n code: \"custom\",\n message: \"a specification may declare only one current value for each fact version and governance scope\",\n path: [\"declarations\"],\n });\n }\n });\n\n/**\n * @wildo_source:part:start saas.specifications.application-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts THE ACCEPTED SPECIFICATION ANSWERS.\n * Import from `@wildo-ai/saas-specifications/application-creation`.\n *\n * This family carries raw decisions only. It never authors reviewer grants,\n * document approvals or releases, and nothing seals, digests or receipts a\n * declaration after it is written: the committed file is the accepted\n * declaration. A missing family or missing declaration therefore remains a\n * visible fact gap.\n *\n * One snapshot may contain facts for several document definitions, but it may\n * contain only one current declaration for a given fact version and governance\n * scope. Replacing a decision requires a new declaration/specification version\n * and normal specification-family acceptance; conflicting current values are\n * rejected at the authoring boundary instead of being hidden downstream.\n *\n * ## This file is REGENERATED, and that is why it accepts one authority kind\n *\n * `refinement.document-facts` rewrites it whole. Before #192 the same file also held the facts only a\n * human may establish, so the next producer run silently deleted them — and there was no compare-and-\n * swap to notice, by design (`.claude/rules/one-source-of-truth.md` Rule 0). The facts a human owns\n * live in {@link ApplicationAuthoredDocumentFactSpecificationSchema}, in their own file, which no\n * producer writes.\n */\nexport const ApplicationDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationDerivedDocumentFactDeclarationSchema);\nexport type ApplicationDocumentFactSpecification = z.infer<typeof ApplicationDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-document-fact-specification.contract */\n\n/**\n * @wildo_source:part:start saas.specifications.application-authored-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts ONLY A HUMAN MAY ESTABLISH — a creator's\n * decision, or a qualified review. Import from\n * `@wildo-ai/saas-specifications/application-creation`.\n *\n * Structurally identical to {@link ApplicationDocumentFactSpecificationSchema}: a declaration is a\n * declaration whoever wrote it, and a document reading facts does not care which file one came from.\n * The two are separate FAMILIES so that neither writer can destroy the other's half — the derived file\n * is regenerated by a producer, this one is only ever edited by a person or by a host acting on a\n * person's answers.\n *\n * Nothing in here may carry `APPLICATION_SPECIFICATION` authority. A fact the specification can answer\n * belongs in the derived family, where it is re-derived when the specification moves; pinning it here\n * would freeze yesterday's answer under a human's name.\n */\nexport const ApplicationAuthoredDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationAuthoredDocumentFactDeclarationSchema);\nexport type ApplicationAuthoredDocumentFactSpecification = z.infer<typeof ApplicationAuthoredDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-authored-document-fact-specification.contract */\n\nexport enum ApplicationDocumentFactSpecificationIssueSeverity {\n ERROR = \"ERROR\",\n}\n\nexport interface ApplicationDocumentFactSpecificationIssue {\n readonly kind: \"invalid_document_fact_specification\";\n readonly severity: ApplicationDocumentFactSpecificationIssueSeverity;\n readonly path: string;\n readonly message: string;\n}\n\n/**\n * Content validation the schema alone cannot express.\n *\n * Keep the authorable family deliberately narrower than the portable resolver authority union: runtime\n * evidence belongs to an evidence producer, not to a TypeScript specification snapshot.\n *\n * ## The vacuity check, and why the schema cannot do it\n *\n * A KNOWN declaration's `value` is typed `z.json()`, because a fact may legitimately be prose, a number,\n * a date or a small structured record — the family cannot know which. That permissiveness leaves one\n * hole it must not leave: `\"\"`, `\" \"` and `null` all satisfy `z.json()` while carrying nothing. A\n * governed document clause resting on such a declaration cites a fact that EXISTS and SAYS NOTHING,\n * which is worse than citing an absent one, because the cross-family binding check\n * (`validateComplianceDocumentCandidateFactBinding`) sees a declared fact and passes it.\n *\n * That is the same vacuity class already closed on vision, roadmap, requirements and the build plan:\n * schema-valid, validator-clean, and carrying no information a reader could act on.\n *\n * This function returned `{ ok: true, issues: [] }` on every input until 2026-08-28 — the family's\n * semantic layer was empty while its schema did all the work, so the two gaps above were unreachable\n * by any check.\n *\n * ## Serves BOTH fact families\n *\n * It reads `resolutionKind`, `value` and `factRef`, all of which are common to the derived and authored\n * declarations — a vacuous value is vacuous whoever asserted it. So the parameter is the structural\n * minimum rather than one family's type, and neither family gets a second copy of this rule.\n */\nexport function validateApplicationDocumentFactSpecification(specification: ApplicationDocumentFactDeclarationSet): {\n ok: boolean;\n issues: ApplicationDocumentFactSpecificationIssue[];\n} {\n const issues: ApplicationDocumentFactSpecificationIssue[] = [];\n specification.declarations.forEach((declaration, index) => {\n if (declaration.resolutionKind !== ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN) return;\n const value = declaration.value;\n const isVacuous =\n value === null\n || (typeof value === \"string\" && value.trim().length === 0)\n || (Array.isArray(value) && value.length === 0)\n || (typeof value === \"object\" && !Array.isArray(value) && value !== null && Object.keys(value).length === 0);\n if (!isVacuous) return;\n issues.push({\n kind: \"invalid_document_fact_specification\",\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.value`,\n message:\n `\"${declaration.factRef}\" is declared KNOWN but carries no value. `\n + \"State the fact, or declare it NOT_APPLICABLE with a reason — an empty value is a fact a document could cite and learn nothing from.\",\n });\n });\n return { ok: issues.length === 0, issues };\n}\n"]}
1
+ {"version":3,"file":"application-document-fact-specification.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,yCAAyC,EAAE,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC1B,8CAA8C,EAC9C,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CACzD,6DAA6D,EAC7D,2BAA2B,CAC5B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,6BAA6B,GAAG,CAAC;KACpC,YAAY,CAAC;IACZ,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC,UAAU,CAAC,uCAAuC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QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;QAC/G,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,6CAA6C,CAAC,mCAAmC;YACvF,QAAQ,EAAE,iDAAiD,CAAC,KAAK;YACjE,IAAI,EAAE,gBAAgB,KAAK,QAAQ;YACnC,OAAO,EACL,IAAI,WAAW,CAAC,OAAO,4CAA4C;kBACjE,qIAAqI;SAC1I,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;AAC7C,CAAC","sourcesContent":["import { GovernedDocumentGovernanceSubjectKind, GovernedDocumentPositiveSafeIntegerSchema } from \"@wildo-ai/saas-models\";\nimport { z } from \"zod\";\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport {\n AssuranceDocumentFactAuthorityKind,\n AssuranceIsoDateTimeSchema,\n createInitialAssuranceDocumentAuthorityCatalog,\n listAssuranceDocumentBlueprints,\n} from \"../assurance.exports\";\n\n/**\n * A namespaced ref as an AUTHOR writes it — the same `namespace:slug` grammar as\n * `AuthoredNamespacedRefSchema`, and deliberately NOT branded.\n *\n * ## Why this file cannot use the branded one\n *\n * A brand is nominal typing: `string & $brand<\"AssuranceNamespacedRef\">`. A plain string literal is not\n * assignable to it, so a field typed that way **cannot be written as a literal at all** — not by a\n * human, and not by the landing renderer, which emits exactly what a human would write. The only way\n * past is a cast, and a cast asserts the very thing the brand exists to prove.\n *\n * That made this family unauthorable, and it went unnoticed for one reason: the family could not RENDER\n * either (its vocabularies were unnameable), so no file ever reached a typechecker. The moment rendering\n * was fixed, the first landed `document-facts` file produced **170 assignability errors** in the\n * application's own specifications package — every ref field, plus every ref inside the embedded\n * governance scope.\n *\n * ## The line this draws, and it is the one this lane keeps rediscovering\n *\n * A branded type is right for a value obtained by PARSING and wrong for one written by HAND. This\n * family is an authored input — D7/D9: the facts are a FILE the application commits, like every other\n * family — so its fields are shaped for authoring, and the regex still does the validating. The sibling\n * `compliance-document-candidate` family made the same call independently, with its own unbranded\n * `ComplianceDocumentNamespacedRefSchema`; the two families disagreed for no stated reason, and this one\n * was the one nobody could write.\n *\n * Nothing depended on the brand: every consumer reads these refs as strings (the availability collector\n * keys a `Map<string, …>`), and the runtime path never noticed because it builds plain strings and lets\n * `.parse()` brand them.\n */\nconst AuthoredNamespacedRefSchema = z.string().trim().regex(\n /^[a-z0-9]+(?:[-.][a-z0-9]+)*:[a-z0-9]+(?:[-/.][a-z0-9]+)*$/u,\n \"expected a namespaced ref\",\n);\n\n/**\n * The governance scope as an AUTHOR writes it.\n *\n * Structurally the same question `GovernedDocumentGovernanceScopeSchema` answers — whose document this\n * is, and over what — restated with authored refs for the reason above: that schema's `subjectRef`,\n * `scopeRef`, `participantRefs` and `precedenceRuleRefs` are all branded `GovernedDocumentRef`, and it\n * serves RUNTIME document code where a parsed, branded ref is exactly right.\n *\n * The shared-responsibility rule is kept, because it is semantic rather than ceremonial: a scope\n * attributed to several parties must name at least two participants and say which one prevails, or the\n * document silently claims an allocation nobody made.\n */\nconst AuthoredGovernanceScopeSchema = z\n .strictObject({\n subjectKind: z.enum(GovernedDocumentGovernanceSubjectKind).systemEnum('GovernedDocumentGovernanceSubjectKind'),\n subjectRef: AuthoredNamespacedRefSchema,\n scopeRef: AuthoredNamespacedRefSchema,\n scopeVersion: GovernedDocumentPositiveSafeIntegerSchema,\n participantRefs: z.array(AuthoredNamespacedRefSchema),\n precedenceRuleRefs: z.array(AuthoredNamespacedRefSchema),\n })\n .superRefine((scope, context) => {\n if (scope.subjectKind === GovernedDocumentGovernanceSubjectKind.SHARED_RESPONSIBILITY) {\n if (scope.participantRefs.length < 2) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"shared responsibility requires at least two attributed participants\" });\n }\n if (scope.precedenceRuleRefs.length === 0) {\n context.addIssue({ code: \"custom\", path: [\"precedenceRuleRefs\"], message: \"shared responsibility requires an explicit precedence rule\" });\n }\n return;\n }\n if (scope.participantRefs.length > 0 || scope.precedenceRuleRefs.length > 0) {\n context.addIssue({ code: \"custom\", path: [\"participantRefs\"], message: \"only a shared-responsibility scope attributes participants or precedence rules\" });\n }\n });\n\n/**\n * Whether a declared document fact HAS an answer, or was considered and does not apply.\n *\n * The two are different answers and a document that confuses them is wrong in different ways: \"we\n * perform no international transfers\" is a citable statement, while \"international transfers are not\n * applicable to us\" is the application declining to answer, and a clause resting on the second\n * asserts something nobody established. A fact ABSENT from the specification is neither — nobody has\n * considered it at all.\n *\n * It lived in `application-assurance-document-fact-projection.…schemas.ts` until 2026-08-28, when\n * that module — a host-computed projection carrying a projector identity, source-head digests and\n * per-contribution authority receipts — was deleted with the rest of the digest machinery\n * (`.claude/rules/one-source-of-truth.md`, Rule 0). This enum was the only thing in its 999 lines\n * that anything outside it used, and it belongs here: it is the resolution kind of a DECLARATION,\n * which is what this file is about.\n */\nexport enum ApplicationAssuranceDocumentFactContributionResolutionKind {\n /** The application declared this fact and it carries a value. */\n KNOWN = \"KNOWN\",\n /** The application considered this fact and it genuinely does not apply. Citable by nothing. */\n NOT_APPLICABLE = \"NOT_APPLICABLE\",\n}\n\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst valuesAreUnique = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst valuesAreLexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nconst ApplicationDocumentFactDeclarationAuthorityCommonSchema = z.strictObject({\n authorityRef: AuthoredNamespacedRefSchema,\n authorityVersion: GovernedDocumentPositiveSafeIntegerSchema,\n});\n\n/**\n * The DERIVED authority: the accepted semantic member itself is the authority — the committed\n * specification file, which git already identifies per commit — so there is no human to name.\n *\n * It carries no `decidedAt`, and that absence is the whole reason a generator may produce it: there is\n * no decision instant to invent and no accountable actor to fabricate.\n */\nconst ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION).systemEnum('AssuranceDocumentFactAuthorityKind'),\n});\n\n/** A creator's decision: a named human, at a real instant. */\nconst ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.CREATOR_DECISION).systemEnum('AssuranceDocumentFactAuthorityKind'),\n decidedByRef: AuthoredNamespacedRefSchema,\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/** A qualified review: a named author, a named reviewer, their qualifications, and what they disclose. */\nconst ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema = ApplicationDocumentFactDeclarationAuthorityCommonSchema.extend({\n factAuthorityKind: z.literal(AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW).systemEnum('AssuranceDocumentFactAuthorityKind'),\n authorRef: AuthoredNamespacedRefSchema,\n reviewerRef: AuthoredNamespacedRefSchema,\n reviewerQualificationRefs: z.array(AuthoredNamespacedRefSchema).min(1),\n independenceDisclosure: z.string().trim().min(1),\n decidedAt: AssuranceIsoDateTimeSchema,\n});\n\n/**\n * Every authority kind — the READER's union.\n *\n * A consumer that reads facts does not care which family a declaration came from: the document asserts\n * the FACT. So this stays whole, and the two WRITER unions below are its disjoint halves.\n *\n * Human decisions retain their actual decision instant and named accountable actors; accepting the\n * surrounding specification never rewrites that instant or silently upgrades the authority kind.\n */\nexport const ApplicationDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n]);\nexport type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof ApplicationDocumentFactDeclarationAuthoritySchema>;\n\n/**\n * The AUTHORED half — a human said it.\n *\n * Kept as a union rather than folded into one shape because the two differ in what they must disclose:\n * a creator decision names who decided, a qualified review additionally names who reviewed, against\n * what qualifications, and how independent they were.\n */\nconst ApplicationAuthoredDocumentFactDeclarationAuthoritySchema = z.discriminatedUnion(\"factAuthorityKind\", [\n ApplicationDocumentFactDeclarationCreatorDecisionAuthoritySchema,\n ApplicationDocumentFactDeclarationQualifiedReviewAuthoritySchema,\n]);\n\nconst ApplicationDocumentFactDeclarationCommonSchema = z.strictObject({\n declarationRef: AuthoredNamespacedRefSchema,\n declarationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n factRef: AuthoredNamespacedRefSchema,\n factVersion: GovernedDocumentPositiveSafeIntegerSchema,\n governanceScope: AuthoredGovernanceScopeSchema,\n sensitivityRef: AuthoredNamespacedRefSchema,\n validUntil: AssuranceIsoDateTimeSchema.optional(),\n});\n\n/**\n * The structural minimum the cross-field rules need, so ONE implementation of them serves all three\n * declaration schemas below.\n *\n * Written structurally rather than as `z.infer<typeof …>` because the wide schema does not exist yet at\n * this point in the file, and a narrow declaration is assignable to this shape by construction.\n */\ntype DocumentFactDeclarationRefinementSubject = {\n readonly declarationRef: string;\n readonly factRef: string;\n readonly sensitivityRef: string;\n readonly validUntil?: string | undefined;\n /**\n * Declared OPTIONAL, and it is not a claim that a declaration may omit its authority — the schemas\n * below require it and nothing marks it `.optional()`.\n *\n * Zod 4.3.6 infers a UNION-valued object key as optional. Measured in this package rather than\n * assumed: a plain-object value infers `authority:` (required), while both `z.union` and\n * `z.discriminatedUnion` infer `authority?:`. So a parsed AUTHORED declaration — whose authority is a\n * two-member union — is not assignable to a subject type that requires the field, and writing it\n * required here would refuse the very values this function exists to check.\n *\n * Reads below are unaffected: this package compiles with `strict: false`, so an optional property is\n * not widened with `undefined`.\n */\n readonly authority?: ApplicationDocumentFactDeclarationAuthority;\n};\n\ntype DocumentFactDeclarationRefinementContext = {\n addIssue: (issue: { code: \"custom\"; message: string; path: PropertyKey[] }) => void;\n};\n\n/**\n * The namespace, ordering and instant rules a declaration must satisfy whoever wrote it.\n *\n * Shared deliberately: the DERIVED and AUTHORED families differ in WHO may assert a fact, never in what\n * a well-formed assertion looks like. Two copies of these rules would drift into two grammars for one\n * vocabulary — `invariant-call-site-enumeration.md` #4.\n */\nconst refineDocumentFactDeclaration = (\n declaration: DocumentFactDeclarationRefinementSubject,\n context: DocumentFactDeclarationRefinementContext,\n): void => {\n if (!declaration.declarationRef.startsWith(\"document-fact-declaration:\")) {\n context.addIssue({ code: \"custom\", message: \"declarationRef must use the document-fact-declaration: namespace\", path: [\"declarationRef\"] });\n }\n if (!declaration.factRef.startsWith(\"document-fact:\")) {\n context.addIssue({ code: \"custom\", message: \"factRef must use the document-fact: namespace\", path: [\"factRef\"] });\n }\n if (!declaration.authority.authorityRef.startsWith(\"document-fact-authority:\")) {\n context.addIssue({ code: \"custom\", message: \"authorityRef must use the document-fact-authority: namespace\", path: [\"authority\", \"authorityRef\"] });\n }\n if (!declaration.sensitivityRef.startsWith(\"sensitivity:\")) {\n context.addIssue({ code: \"custom\", message: \"sensitivityRef must use the sensitivity: namespace\", path: [\"sensitivityRef\"] });\n }\n if (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.QUALIFIED_REVIEW) {\n if (!valuesAreUnique(declaration.authority.reviewerQualificationRefs) || !valuesAreLexicallySorted(declaration.authority.reviewerQualificationRefs)) {\n context.addIssue({\n code: \"custom\",\n message: \"reviewerQualificationRefs must be unique and lexically sorted\",\n path: [\"authority\", \"reviewerQualificationRefs\"],\n });\n }\n if (declaration.authority.authorRef === declaration.authority.reviewerRef) {\n context.addIssue({ code: \"custom\", message: \"a qualified fact reviewer cannot be the fact author\", path: [\"authority\", \"reviewerRef\"] });\n }\n }\n const authorityInstant =\n declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION ? undefined : declaration.authority.decidedAt;\n if (authorityInstant && declaration.validUntil && Date.parse(declaration.validUntil) <= Date.parse(authorityInstant)) {\n context.addIssue({ code: \"custom\", message: \"validUntil must follow the human authority decision\", path: [\"validUntil\"] });\n }\n};\n\n/**\n * The two declaration shapes a FILE is parsed against. They differ in exactly one field — who may\n * assert the fact — and share every other rule through {@link refineDocumentFactDeclaration}.\n *\n * Written out rather than produced by a shared factory, and that is a measured decision: a generic\n * `<TAuthority extends z.ZodType<…>>` helper compiles, but Zod's `.extend()` cannot carry a generic\n * schema's output into the extended object's inferred type, so every declaration came back missing its\n * `authority` field. A factory that erases the one property the split exists to constrain is worse than\n * two explicit unions.\n */\n\n/**\n * A DERIVED declaration — `document-facts`, the family a producer writes.\n *\n * Its authority union has exactly one member, and that is the point of the split (#192): the\n * `refinement.document-facts` producer regenerates this whole file, so a human decision left in it is\n * silently overwritten on the next run. Narrowing the TYPE is what makes \"a generator may never write a\n * `CREATOR_DECISION`\" structural instead of a rule somebody has to remember — the generation contract\n * already said so in prose (`document-fact-specification-generation.schemas.ts`) and nothing enforced\n * it on the file the generator lands.\n */\nexport const ApplicationDerivedDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationDocumentFactDeclarationApplicationSpecificationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationDerivedDocumentFactDeclaration = z.infer<typeof ApplicationDerivedDocumentFactDeclarationSchema>;\n\n/**\n * An AUTHORED declaration — `document-facts-authored`, the family only a human writes.\n *\n * The mirror of the rule above: nothing here may claim `APPLICATION_SPECIFICATION` authority, because a\n * fact the accepted specification can answer belongs in the derived family where it stays in step with\n * the specification. Filing one here would freeze a derivable answer at the moment somebody typed it.\n */\nexport const ApplicationAuthoredDocumentFactDeclarationSchema = z\n .discriminatedUnion(\"resolutionKind\", [\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n value: z.json(),\n }),\n ApplicationDocumentFactDeclarationCommonSchema.extend({\n authority: ApplicationAuthoredDocumentFactDeclarationAuthoritySchema,\n resolutionKind: z.literal(ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE).systemEnum('ApplicationAssuranceDocumentFactContributionResolutionKind'),\n reason: z.string().trim().min(1),\n }),\n ])\n .superRefine((declaration, context) => refineDocumentFactDeclaration(declaration, context));\nexport type ApplicationAuthoredDocumentFactDeclaration = z.infer<typeof ApplicationAuthoredDocumentFactDeclarationSchema>;\n\n/**\n * One raw application-owned fact decision, from EITHER family — the READER's shape.\n *\n * The declaration is read as authored. Nothing derives ids, digests, accepted-head identities or\n * receipt joins from it any more — that projection was deleted with the digest machinery (see the\n * note on `ApplicationAssuranceDocumentFactContributionResolutionKind` above).\n *\n * A TYPE and not a schema: nothing parses a file against it, because every file belongs to one family\n * or the other. It exists because a consumer that READS facts does not care who asserted them — the\n * document asserts the FACT — so it should not have to name both halves.\n */\nexport type ApplicationDocumentFactDeclaration = ApplicationDerivedDocumentFactDeclaration | ApplicationAuthoredDocumentFactDeclaration;\n\n/**\n * A set of fact declarations from EITHER family — what a reader takes.\n *\n * Named rather than written inline at each reader because there are several, and because the concept\n * is worth stating: \"the facts\", regardless of which of the two files carried them. A caller holding\n * both passes both.\n */\nexport type ApplicationDocumentFactDeclarationSet = { readonly declarations: readonly ApplicationDocumentFactDeclaration[] };\n\nconst applicationDocumentFactDeclarationScopeKey = (declaration: ApplicationDocumentFactDeclaration): string =>\n `${declaration.factRef}@${declaration.factVersion}:${JSON.stringify(declaration.governanceScope)}`;\n\nconst buildDocumentFactSpecificationSchema = <TDeclaration extends z.ZodType<ApplicationDocumentFactDeclaration>>(declarationSchema: TDeclaration) =>\n z\n .strictObject({\n schemaVersion: z.literal(1),\n specificationRef: AuthoredNamespacedRefSchema,\n specificationVersion: GovernedDocumentPositiveSafeIntegerSchema,\n declarations: z.array(declarationSchema).min(1),\n })\n .superRefine((specification, context) => {\n if (!specification.specificationRef.startsWith(\"document-fact-specification:\")) {\n context.addIssue({\n code: \"custom\",\n message: \"specificationRef must use the document-fact-specification: namespace\",\n path: [\"specificationRef\"],\n });\n }\n const declarationIdentities = specification.declarations.map((declaration) => `${declaration.declarationRef}@${declaration.declarationVersion}`);\n if (!valuesAreUnique(declarationIdentities) || !valuesAreLexicallySorted(declarationIdentities)) {\n context.addIssue({ code: \"custom\", message: \"declarations must be unique and lexically sorted by identity\", path: [\"declarations\"] });\n }\n const factScopeKeys = specification.declarations.map(applicationDocumentFactDeclarationScopeKey);\n if (!valuesAreUnique(factScopeKeys)) {\n context.addIssue({\n code: \"custom\",\n message: \"a specification may declare only one current value for each fact version and governance scope\",\n path: [\"declarations\"],\n });\n }\n });\n\n/**\n * @wildo_source:part:start saas.specifications.application-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts THE ACCEPTED SPECIFICATION ANSWERS.\n * Import from `@wildo-ai/saas-specifications/application-creation`.\n *\n * This family carries raw decisions only. It never authors reviewer grants,\n * document approvals or releases, and nothing seals, digests or receipts a\n * declaration after it is written: the committed file is the accepted\n * declaration. A missing family or missing declaration therefore remains a\n * visible fact gap.\n *\n * One snapshot may contain facts for several document definitions, but it may\n * contain only one current declaration for a given fact version and governance\n * scope. Replacing a decision requires a new declaration/specification version\n * and normal specification-family acceptance; conflicting current values are\n * rejected at the authoring boundary instead of being hidden downstream.\n *\n * ## This file is REGENERATED, and that is why it accepts one authority kind\n *\n * `refinement.document-facts` rewrites it whole. Before #192 the same file also held the facts only a\n * human may establish, so the next producer run silently deleted them — and there was no compare-and-\n * swap to notice, by design: nothing is kept that cannot branch and merge on git. The facts a human owns\n * live in {@link ApplicationAuthoredDocumentFactSpecificationSchema}, in their own file, which no\n * producer writes.\n */\nexport const ApplicationDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationDerivedDocumentFactDeclarationSchema);\nexport type ApplicationDocumentFactSpecification = z.infer<typeof ApplicationDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-document-fact-specification.contract */\n\n/**\n * @wildo_source:part:start saas.specifications.application-authored-document-fact-specification.contract facet:layer:specification facet:family:assurance\n *\n * Accepted application declaration of governed-document facts ONLY A HUMAN MAY ESTABLISH — a creator's\n * decision, or a qualified review. Import from\n * `@wildo-ai/saas-specifications/application-creation`.\n *\n * Structurally identical to {@link ApplicationDocumentFactSpecificationSchema}: a declaration is a\n * declaration whoever wrote it, and a document reading facts does not care which file one came from.\n * The two are separate FAMILIES so that neither writer can destroy the other's half — the derived file\n * is regenerated by a producer, this one is only ever edited by a person or by a host acting on a\n * person's answers.\n *\n * Nothing in here may carry `APPLICATION_SPECIFICATION` authority. A fact the specification can answer\n * belongs in the derived family, where it is re-derived when the specification moves; pinning it here\n * would freeze yesterday's answer under a human's name.\n */\nexport const ApplicationAuthoredDocumentFactSpecificationSchema = buildDocumentFactSpecificationSchema(ApplicationAuthoredDocumentFactDeclarationSchema);\nexport type ApplicationAuthoredDocumentFactSpecification = z.infer<typeof ApplicationAuthoredDocumentFactSpecificationSchema>;\n/** @wildo_source:part:end saas.specifications.application-authored-document-fact-specification.contract */\n\nlet blueprintAssignedFactAuthorityKinds: ReadonlyMap<string, ReadonlySet<AssuranceDocumentFactAuthorityKind>> | undefined;\n\n/**\n * The authority the governed-document blueprints ASSIGN a fact, or `undefined` when no blueprint asks it.\n *\n * ## Why a declaration's authority must be compared with this\n *\n * A declaration's `factAuthorityKind` says where its content came from, and the whole four-tier split\n * rests on it being true: it is how a reader tells \"the product declares this\" from \"a qualified person\n * decided this\". Until #637 nothing compared the declared kind with the kind the blueprint assigned the\n * question, so the label was a property of WHICH PRODUCER RAN — `refinement.document-facts` stamps\n * `APPLICATION_SPECIFICATION` on everything it writes — and a question the catalog reserves for a\n * qualified privacy decision (`lawful-bases`) landed under specification authority with no gate able\n * to see it. The inverse direction (a human answering a DERIVED question) was already refused, at\n * `buildGovernanceFactDeclarations`; this is the half that was never built, and it lives at the family\n * so every writer meets it rather than one host.\n *\n * A SET, because two blueprints could in principle ask one fact under different tiers; the catalog\n * measured 2026-09-12 assigns every one of its 40 facts exactly one kind, and a declaration is admitted\n * when its kind is any assigned one. A fact no blueprint asks is unconstrained here: nothing reserves it.\n *\n * Built once, lazily — the catalog is a pure function and every validation reads the same answer.\n */\nexport function resolveBlueprintAssignedFactAuthorityKinds(factRef: string): ReadonlySet<AssuranceDocumentFactAuthorityKind> | undefined {\n if (blueprintAssignedFactAuthorityKinds === undefined) {\n const assigned = new Map<string, Set<AssuranceDocumentFactAuthorityKind>>();\n for (const { blueprint } of listAssuranceDocumentBlueprints(createInitialAssuranceDocumentAuthorityCatalog())) {\n for (const question of blueprint.questions) {\n const kinds = assigned.get(question.factRef) ?? new Set<AssuranceDocumentFactAuthorityKind>();\n kinds.add(question.factAuthorityKind);\n assigned.set(question.factRef, kinds);\n }\n }\n blueprintAssignedFactAuthorityKinds = assigned;\n }\n return blueprintAssignedFactAuthorityKinds.get(factRef);\n}\n\n/**\n * Governed-document facts the RUNTIME computes from the application's typed declarations, so neither a\n * producer nor a person may declare them (#964, decision 2026-09-13: derive first, then judge).\n *\n * ## Why a computed fact is not a better-grounded generated one\n *\n * Each of these facts is a question the blueprints answer from `APPLICATION_SPECIFICATION`, and each has\n * a typed declaration that already IS the answer. Before this vocabulary a producer read that declaration\n * in its brief and restated it as prose, so the label said \"the specification established this\" while\n * the content was a model's paraphrase that nothing compared against the declaration. A computed fact has\n * nothing to ground: the value is the declaration, projected, at the moment it is read.\n *\n * ## Why it is computed at READ and never stored\n *\n * A stored copy is a second authority for a value `wildo.saas.config.ts` or the processor register\n * already owns. It is right the day it is written and silently wrong the day the declaration changes,\n * which is the drift `.claude/rules/compliance-is-derived-from-the-product.md` measured running one\n * way. So `computeApplicationDocumentFacts` is called wherever facts are read and nothing persists its\n * output. A declaration of one of these facts in either fact family is refused by\n * {@link validateApplicationDocumentFactSpecification} for the same reason.\n *\n * ## What earns membership\n *\n * The fact's WHOLE answer must be a function of typed declarations. A fact with a declared half and a\n * decided half does not belong here until the decided half has its own typed field — which is how the\n * four privacy-notice facts joined in #454: `retention-rules` once the period had `dataRetention`,\n * `international-transfers` once the mechanism had a per-entry `transferDetermination`, and\n * `rights-and-complaint-route` once the verification procedure had `subjectRequestIdentityVerification`. When a member's inputs are absent, its\n * computation answers NOTHING: the fact stays absent and every clause resting on it is marked as owed,\n * which is the honest state of \"nobody has declared this\".\n */\nexport enum ComputedDocumentFact {\n /** From `operatorComplianceIdentity`: the legal entity, its privacy contact route, and its role per population of data. */\n CONTROLLER_AND_CONTACT = \"controller-and-contact\",\n /** From the processor register, joined to the runtime-scoped providers and the operator's deployment choice for each. */\n RECIPIENTS_AND_PROCESSORS = \"recipients-and-processors\",\n /**\n * From `operatorComplianceIdentity.lawfulBases`: each processing purpose, the Art. 6(1) basis the operator\n * relies on for it, and the balancing assessment where the basis is legitimate interests.\n *\n * The declaration IS the accountable decision. It is typed, committed and reviewed as a commit, and the\n * schema already refuses a legitimate-interests basis with no assessment. Asking a reviewer to type the\n * same answer into a form produced a second copy nothing compared with the first (#454).\n */\n LAWFUL_BASES = \"lawful-bases\",\n /**\n * From `dataRetention` (the period per data class) and each resource's declared `retentionPolicy.mode`\n * (what erasure does to its rows). The period was the \"decided half\" that kept this fact out of the\n * vocabulary; `ApplicationRetentionSchedule` is its typed field, so both halves are declarations (#454).\n */\n RETENTION_RULES = \"retention-rules\",\n /**\n * From the processor register's per-entry `transferDetermination`, checked against `operatingJurisdictions`.\n * The transfer MECHANISM was the decided half (#126); it is recorded per entry by the operator and never\n * inferred from a region, so the fact answers nothing while any entry is undetermined (#454).\n */\n INTERNATIONAL_TRANSFERS = \"international-transfers\",\n /**\n * From `operatingJurisdictions` and `lawfulBases` (which rights the law attaches, and the complaint route),\n * `privacyContact` (the channel), `subjectRequestIdentityVerification` (the one procedure the operator\n * decides) and `roleAllocations` (who answers each population's requests) (#454).\n */\n RIGHTS_AND_COMPLAINT_ROUTE = \"rights-and-complaint-route\",\n}\n\nconst DOCUMENT_FACT_REF_PREFIX = \"document-fact:\";\n\n/** The computed fact a ref names, or `undefined` when the fact is declared rather than computed. */\nexport function computedDocumentFactOf(factRef: string): ComputedDocumentFact | undefined {\n if (!factRef.startsWith(DOCUMENT_FACT_REF_PREFIX)) return undefined;\n const slug = factRef.slice(DOCUMENT_FACT_REF_PREFIX.length);\n return Object.values(ComputedDocumentFact).find((member) => member === slug);\n}\n\nexport enum ApplicationDocumentFactSpecificationIssueSeverity {\n ERROR = \"ERROR\",\n}\n\n/** What a document-fact content-validation issue is about. */\nexport enum ApplicationDocumentFactSpecificationIssueKind {\n /** The declaration's content is unusable — a KNOWN fact carrying no value. */\n INVALID_DOCUMENT_FACT_SPECIFICATION = \"invalid_document_fact_specification\",\n /**\n * The declaration claims an authority the document blueprints did not assign its fact (#637): a\n * producer answering a question reserved for a person, or a person freezing an answer the\n * specification owns. See `resolveBlueprintAssignedFactAuthorityKinds`.\n */\n DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED = \"document_fact_authority_not_assigned\",\n /**\n * The declaration states a {@link ComputedDocumentFact}, which the runtime computes from the\n * application's typed declarations whenever facts are read (#964). A stored copy is never the answer,\n * and it goes stale the moment the declaration it restates changes.\n */\n DOCUMENT_FACT_IS_COMPUTED = \"document_fact_is_computed\",\n}\n\nexport interface ApplicationDocumentFactSpecificationIssue {\n readonly kind: ApplicationDocumentFactSpecificationIssueKind;\n readonly severity: ApplicationDocumentFactSpecificationIssueSeverity;\n readonly path: string;\n readonly message: string;\n}\n\n/**\n * Content validation the schema alone cannot express.\n *\n * Keep the authorable family deliberately narrower than the portable resolver authority union: runtime\n * evidence belongs to an evidence producer, not to a TypeScript specification snapshot.\n *\n * ## The vacuity check, and why the schema cannot do it\n *\n * A KNOWN declaration's `value` is typed `z.json()`, because a fact may legitimately be prose, a number,\n * a date or a small structured record — the family cannot know which. That permissiveness leaves one\n * hole it must not leave: `\"\"`, `\" \"` and `null` all satisfy `z.json()` while carrying nothing. A\n * governed document clause resting on such a declaration cites a fact that EXISTS and SAYS NOTHING,\n * which is worse than citing an absent one, because the cross-family binding check\n * (`validateComplianceDocumentCandidateFactBinding`) sees a declared fact and passes it.\n *\n * That is the same vacuity class already closed on vision, roadmap, requirements and the build plan:\n * schema-valid, validator-clean, and carrying no information a reader could act on.\n *\n * This function returned `{ ok: true, issues: [] }` on every input until 2026-08-28 — the family's\n * semantic layer was empty while its schema did all the work, so the two gaps above were unreachable\n * by any check.\n *\n * ## Serves BOTH fact families\n *\n * It reads `resolutionKind`, `value` and `factRef`, all of which are common to the derived and authored\n * declarations — a vacuous value is vacuous whoever asserted it. So the parameter is the structural\n * minimum rather than one family's type, and neither family gets a second copy of this rule.\n */\nexport function validateApplicationDocumentFactSpecification(specification: ApplicationDocumentFactDeclarationSet): {\n ok: boolean;\n issues: ApplicationDocumentFactSpecificationIssue[];\n} {\n const issues: ApplicationDocumentFactSpecificationIssue[] = [];\n specification.declarations.forEach((declaration, index) => {\n /*\n * The declared authority must be one the blueprint ASSIGNED this fact (#637) — see\n * `resolveBlueprintAssignedFactAuthorityKinds`. Checked for EITHER family, because the claim is the\n * same whichever file carries it: a derived declaration answering a reserved question claims a\n * derivation nobody may make, and an authored one answering a derived question freezes, under a\n * person's name, an answer the specification owns. An ISSUE rather than an advisory: the label is\n * untrue, not merely unfinished — the honest state of a reserved fact nobody has decided is ABSENT,\n * which every clause resting on it already marks.\n */\n const assignedKinds = resolveBlueprintAssignedFactAuthorityKinds(declaration.factRef);\n if (assignedKinds !== undefined && !assignedKinds.has(declaration.authority.factAuthorityKind)) {\n const assigned = [...assignedKinds].join(\" or \");\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_AUTHORITY_NOT_ASSIGNED,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.authority.factAuthorityKind`,\n message:\n `\"${declaration.factRef}\" is declared under ${declaration.authority.factAuthorityKind} authority, but the document `\n + `blueprints assign that fact ${assigned}. `\n + (declaration.authority.factAuthorityKind === AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION\n ? \"A producer may not answer it: remove the declaration from the derived family and leave the fact absent until \"\n + \"it is decided in the authored family, where a document marks the clause as owed rather than stating it.\"\n : \"It is answered from the accepted specification: remove the hand-authored declaration and let the derived family carry it.\"),\n });\n }\n /*\n * A computed fact is answered from the application's declarations when facts are read (#964), so a\n * declaration of it in EITHER family is a second authority for a value somebody else owns. An ISSUE,\n * not an advisory: the copy is never what a document reads, and it silently disagrees with the\n * declaration the day that declaration changes.\n */\n if (computedDocumentFactOf(declaration.factRef) !== undefined) {\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.DOCUMENT_FACT_IS_COMPUTED,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.factRef`,\n message:\n `\"${declaration.factRef}\" is computed from the application's own declarations whenever its facts are read. `\n + \"Remove this declaration: change the declaration it restates instead (`operatorComplianceIdentity`, the processor register \"\n + \"or a provider's deployment choice), and every document reads the change.\",\n });\n return;\n }\n if (declaration.resolutionKind !== ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN) return;\n const value = declaration.value;\n const isVacuous =\n value === null\n || (typeof value === \"string\" && value.trim().length === 0)\n || (Array.isArray(value) && value.length === 0)\n || (typeof value === \"object\" && !Array.isArray(value) && value !== null && Object.keys(value).length === 0);\n if (!isVacuous) return;\n issues.push({\n kind: ApplicationDocumentFactSpecificationIssueKind.INVALID_DOCUMENT_FACT_SPECIFICATION,\n severity: ApplicationDocumentFactSpecificationIssueSeverity.ERROR,\n path: `declarations.${index}.value`,\n message:\n `\"${declaration.factRef}\" is declared KNOWN but carries no value. `\n + \"State the fact, or declare it NOT_APPLICABLE with a reason — an empty value is a fact a document could cite and learn nothing from.\",\n });\n });\n return { ok: issues.length === 0, issues };\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import '@wildo-ai/zod-decorators';
2
3
  /**
3
4
  * The human-facing release lane selected by an application for one exact
4
5
  * governed-document requirement.
@@ -28,7 +29,7 @@ export declare const ApplicationDocumentReleasePolicySelectionV1Schema: z.ZodObj
28
29
  policyVersion: z.ZodNumber;
29
30
  requirementRef: z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">;
30
31
  requirementVersion: z.ZodNumber;
31
- lane: z.ZodEnum<typeof ApplicationDocumentReleasePolicyLane>;
32
+ lane: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof ApplicationDocumentReleasePolicyLane>>;
32
33
  /** Human-readable limitations that must accompany an operator-attested release. */
33
34
  operatorAttestationLimitationRefs: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">>;
34
35
  }, z.core.$strict>;
@@ -48,7 +49,7 @@ export declare const ApplicationDocumentReleasePolicySpecificationSchema: z.ZodO
48
49
  policyVersion: z.ZodNumber;
49
50
  requirementRef: z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">;
50
51
  requirementVersion: z.ZodNumber;
51
- lane: z.ZodEnum<typeof ApplicationDocumentReleasePolicyLane>;
52
+ lane: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof ApplicationDocumentReleasePolicyLane>>;
52
53
  /** Human-readable limitations that must accompany an operator-attested release. */
53
54
  operatorAttestationLimitationRefs: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">>;
54
55
  }, z.core.$strict>>;
@@ -59,4 +60,72 @@ export declare const resolveApplicationDocumentReleasePolicySelection: (specific
59
60
  readonly requirementRef: string;
60
61
  readonly requirementVersion: number;
61
62
  }) => ApplicationDocumentReleasePolicySelectionV1 | undefined;
63
+ /**
64
+ * The STRICT provider-facing contract for the release policy.
65
+ *
66
+ * The provider answers the GOVERNANCE question — which lane each documentation requirement must take
67
+ * before a document is served — and nothing about identity or order.
68
+ *
69
+ * ## The policy identity is DERIVED from the requirement it governs
70
+ *
71
+ * It used to be stamped from a model-supplied `policySlug`. Measured 2026-09-13 on Wonder CRM's first live
72
+ * compliance-conception runs: the model gave all three selections the slug `document-release-policy` — the
73
+ * family's name — and the family refused three identical identities; and because the accepted schema keeps
74
+ * the list sorted by BOTH requirement identity and policy identity, even distinct slugs named in a different
75
+ * order from their requirements would have been refused. A slug nobody reads was a second, independent
76
+ * ordering the model had to get right by luck. Nothing reads a release policy's `policyRef` beyond that
77
+ * uniqueness check, and the family aspects already make `requirementRef` the selection's subject and
78
+ * business key, so the identity is now `document-release-policy:<requirement suffix>`, and the list is
79
+ * stamped in requirement order. With one fixed prefix on each side, that one sort satisfies both of the
80
+ * accepted schema's orderings.
81
+ *
82
+ * `requirementRef` and `requirementVersion` are NOT stamped and are not the model's to invent either
83
+ * — they identify a requirement the accepted assurance PROGRAMME declares, and a selection naming one
84
+ * no programme carries governs nothing. They are passed through exactly as answered so the join
85
+ * fails loudly against the programme rather than quietly against a stamped lookalike.
86
+ */
87
+ export declare const ApplicationDocumentReleasePolicyGenerationSchema: z.ZodObject<{
88
+ selections: z.ZodArray<z.ZodObject<{
89
+ /** A documentation requirement, `document-requirement:<suffix>`; the policy identity is stamped from it. */
90
+ requirementRef: z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">;
91
+ requirementVersion: z.ZodNumber;
92
+ lane: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof ApplicationDocumentReleasePolicyLane>>;
93
+ /**
94
+ * Required for the OPERATOR_ATTESTED lane and forbidden for the others — the accepted
95
+ * schema enforces both directions, so a provider that attaches limitations to a qualified
96
+ * review is refused rather than silently accepted.
97
+ */
98
+ operatorAttestationLimitationRefs: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AssuranceNamespacedRef", "out">>;
99
+ }, z.core.$strict>>;
100
+ }, z.core.$strict>;
101
+ export type ApplicationDocumentReleasePolicyGeneration = z.infer<typeof ApplicationDocumentReleasePolicyGenerationSchema>;
102
+ /** The policy-ref namespace the runtime stamps; the suffix after it is the governed requirement's. */
103
+ export declare const DOCUMENT_RELEASE_POLICY_REF_PREFIX = "document-release-policy:";
104
+ /** The namespace a documentation requirement ref lives in — the only thing a release policy governs. */
105
+ export declare const DOCUMENT_REQUIREMENT_REF_PREFIX = "document-requirement:";
106
+ /**
107
+ * Normalize a strict provider answer into the accepted family, stamping every identity and the order.
108
+ *
109
+ * Two refusals, both about CONTENT and both named so a retry can act on them: a selection whose
110
+ * `requirementRef` is not a documentation requirement (a live attempt keyed its lanes to `document-fact:`
111
+ * refs), and a requirement selected twice — one requirement takes one lane, and its derived policy identity
112
+ * would collide. Everything else — the policy identity and the list order — is stamped, because asking a
113
+ * provider to sort is asking it to fail on form.
114
+ */
115
+ /** What the host knows about the documentation requirements a release policy may select a lane for (#707 stage 3). */
116
+ export interface ApplicationDocumentReleasePolicyGenerationContext {
117
+ /**
118
+ * The requirements the application OWES — the same derivation its compliance programme declares.
119
+ *
120
+ * Supplied and non-empty, a selection naming any other `requirementRef@requirementVersion` is REFUSED: a lane
121
+ * for a requirement nothing declares governs nothing, and live attempts invented exactly that. An EMPTY list
122
+ * refuses nothing — an application owing no governed document cannot key a policy to one, and refusing every
123
+ * answer would stop the run on an absence rather than on a falsehood. Absent checks nothing.
124
+ */
125
+ readonly documentationRequirements?: readonly {
126
+ readonly requirementRef: string;
127
+ readonly requirementVersion: number;
128
+ }[] | undefined;
129
+ }
130
+ export declare function parseApplicationDocumentReleasePolicyGeneration(input: unknown, context?: ApplicationDocumentReleasePolicyGenerationContext): ApplicationDocumentReleasePolicySpecification;
62
131
  //# sourceMappingURL=application-document-release-policy-specification.application-creation.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-document-release-policy-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-release-policy-specification.application-creation.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB;;;;;;;;GAQG;AACH,oBAAY,oCAAoC;IAC9C,uFAAuF;IACvF,UAAU,eAAe;IACzB,uGAAuG;IACvG,iBAAiB,sBAAsB;IACvC,mGAAmG;IACnG,gBAAgB,qBAAqB;CACtC;AAED;;;;;GAKG;AACH,eAAO,MAAM,iDAAiD;;;;;;;IAQ1D,mFAAmF;;kBAmBnF,CAAC;AACL,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iDAAiD,CAAC,CAAC;AAE5H;;;;;;GAMG;AACH,eAAO,MAAM,mDAAmD;;;;;;;;;QA7B5D,mFAAmF;;;kBA+CnF,CAAC;AACL,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mDAAmD,CAAC,CAAC;AAEhI,uFAAuF;AACvF,eAAO,MAAM,gDAAgD,GAC3D,eAAe,6CAA6C,EAC5D,aAAa;IAAE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,KACpF,2CAA2C,GAAG,SAG9C,CAAC"}
1
+ {"version":3,"file":"application-document-release-policy-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-release-policy-specification.application-creation.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAelC;;;;;;;;GAQG;AACH,oBAAY,oCAAoC;IAC9C,uFAAuF;IACvF,UAAU,eAAe;IACzB,uGAAuG;IACvG,iBAAiB,sBAAsB;IACvC,mGAAmG;IACnG,gBAAgB,qBAAqB;CACtC;AAED;;;;;GAKG;AACH,eAAO,MAAM,iDAAiD;;;;;;;IAQ1D,mFAAmF;;kBAmBnF,CAAC;AACL,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iDAAiD,CAAC,CAAC;AAE5H;;;;;;GAMG;AACH,eAAO,MAAM,mDAAmD;;;;;;;;;QA7B5D,mFAAmF;;;kBA+CnF,CAAC;AACL,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mDAAmD,CAAC,CAAC;AAEhI,uFAAuF;AACvF,eAAO,MAAM,gDAAgD,GAC3D,eAAe,6CAA6C,EAC5D,aAAa;IAAE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,KACpF,2CAA2C,GAAG,SAG9C,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,gDAAgD;;QAIrD,4GAA4G;;;;QAI5G;;;;WAIG;;;kBAKT,CAAC;AACH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gDAAgD,CAAC,CAAC;AAE1H,s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