@wildo-ai/saas-specifications 1.1.0 → 1.1.2

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 (423) hide show
  1. package/dist/assurance/external-framework-mapping.json +980 -0
  2. package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
  3. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
  4. package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
  5. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
  6. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
  7. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
  8. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
  9. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
  10. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
  11. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
  12. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
  13. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
  14. package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
  15. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  16. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  17. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
  18. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  19. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
  20. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  21. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +168 -2
  22. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  23. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +98 -9
  24. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  25. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
  26. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
  27. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
  28. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
  29. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
  31. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  32. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
  33. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
  34. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
  35. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
  36. package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
  37. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  39. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
  40. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
  41. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
  42. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
  43. package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
  44. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  46. package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
  47. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
  48. package/dist/esm/_core/family-aspects.registry.js +60 -0
  49. package/dist/esm/_core/family-aspects.registry.js.map +1 -0
  50. package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
  51. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
  52. package/dist/esm/_core/family-aspects.schemas.js +15 -0
  53. package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
  54. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
  55. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
  56. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
  57. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
  58. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
  59. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
  60. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  61. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  62. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  63. package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
  64. package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
  65. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
  66. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  67. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  68. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
  69. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  70. package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
  71. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  72. package/dist/esm/_core/index.d.ts +2 -0
  73. package/dist/esm/_core/index.d.ts.map +1 -1
  74. package/dist/esm/_core/index.js +2 -0
  75. package/dist/esm/_core/index.js.map +1 -1
  76. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
  77. package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
  78. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
  79. package/dist/esm/_core/market/market.family-aspects.js +227 -0
  80. package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
  81. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
  82. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
  84. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  85. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
  86. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
  87. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
  88. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
  89. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
  90. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
  91. package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
  92. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
  93. package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
  94. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  95. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  96. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
  97. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
  98. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
  99. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
  100. package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
  101. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
  102. package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
  103. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
  104. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +188 -33
  105. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  106. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +158 -57
  107. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  108. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
  109. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  110. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
  111. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  112. package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
  113. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
  114. package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
  115. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
  116. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
  117. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
  118. package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
  119. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
  120. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +93 -62
  121. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  122. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +114 -59
  123. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  124. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
  125. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  126. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  127. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  128. package/dist/esm/application-creation.exports.d.ts +11 -0
  129. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  130. package/dist/esm/application-creation.exports.js +11 -0
  131. package/dist/esm/application-creation.exports.js.map +1 -1
  132. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +976 -2
  133. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  134. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2026 -61
  135. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  136. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +1 -0
  137. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  138. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  139. package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
  140. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  141. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
  142. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  143. package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
  144. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  145. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
  146. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
  147. package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
  148. package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
  149. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +71 -1
  150. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  151. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +545 -5
  152. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  153. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +141 -0
  154. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
  155. package/dist/esm/assurance/assurance-program-generation.schemas.js +377 -0
  156. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
  157. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
  158. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
  159. package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
  160. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
  161. package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -6
  162. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  163. package/dist/esm/assurance/assurance-program.schemas.js +29 -6
  164. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  165. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
  166. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  167. package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
  168. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  169. package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
  170. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  171. package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
  172. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  173. package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
  174. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
  175. package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
  176. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
  177. package/dist/esm/assurance.exports.d.ts +2 -0
  178. package/dist/esm/assurance.exports.d.ts.map +1 -1
  179. package/dist/esm/assurance.exports.js +2 -0
  180. package/dist/esm/assurance.exports.js.map +1 -1
  181. package/dist/esm/companion-exports.d.ts +19 -2
  182. package/dist/esm/companion-exports.d.ts.map +1 -1
  183. package/dist/esm/companion-exports.js.map +1 -1
  184. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  185. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +2 -0
  186. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  187. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  188. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +3 -1
  189. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  190. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  191. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +3 -1
  192. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  193. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  194. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +3 -1
  195. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  196. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  197. package/dist/esm/engine/applications/resources/applications.resource.specification.js +3 -1
  198. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  199. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
  200. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
  201. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
  202. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
  203. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
  204. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  205. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -0
  206. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  207. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  208. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +2 -0
  209. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  210. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  211. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +3 -1
  212. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  213. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
  214. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  215. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +2 -0
  216. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  217. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  218. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -0
  219. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  220. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  221. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +2 -0
  222. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  223. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  224. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -0
  225. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  226. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  227. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +6 -4
  228. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  229. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  230. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +2 -0
  231. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  232. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  233. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
  234. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  235. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
  236. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  237. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -0
  238. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  239. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
  240. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  241. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -0
  242. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  243. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
  244. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  245. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +2 -0
  246. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  247. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  248. package/dist/esm/engine/billing/resources/prices.resource.specification.js +3 -1
  249. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  250. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  251. package/dist/esm/engine/billing/resources/products.resource.specification.js +3 -1
  252. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  253. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  254. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +2 -0
  255. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  256. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  257. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +3 -1
  258. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  259. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
  260. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  261. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +2 -0
  262. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  263. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +6 -6
  264. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -0
  266. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +2 -0
  269. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  271. package/dist/esm/engine/engine-resource-specifications.registry.js +5 -0
  272. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  273. package/dist/esm/engine/engine-resource-sub-domain.d.ts +63 -0
  274. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
  275. package/dist/esm/engine/engine-resource-sub-domain.js +87 -0
  276. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
  277. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  278. package/dist/esm/engine/errors/error-messages.specification.js +30 -1
  279. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  280. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  281. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -0
  282. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  283. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +2 -0
  285. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  287. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/features/resources/user-features.resource.specification.js +2 -0
  289. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/files/resources/files.resource.specification.js +2 -0
  292. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
  294. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  295. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +12 -0
  296. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  297. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
  298. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  299. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +2 -0
  300. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  301. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
  302. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  303. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -0
  304. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  305. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  306. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
  308. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  310. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
  311. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  312. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
  313. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  314. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +3 -0
  315. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  316. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
  317. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +3 -0
  319. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +1 -1
  321. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  322. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +3 -0
  323. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  324. package/dist/esm/engine/index.d.ts +1 -0
  325. package/dist/esm/engine/index.d.ts.map +1 -1
  326. package/dist/esm/engine/index.js +1 -0
  327. package/dist/esm/engine/index.js.map +1 -1
  328. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -0
  330. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  332. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +2 -0
  333. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  334. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  335. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -0
  336. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  337. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  338. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +2 -0
  339. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  340. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  341. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +2 -0
  342. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  343. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  344. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  345. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +3 -0
  346. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  347. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  348. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +2 -0
  349. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  350. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  351. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  352. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +2 -0
  353. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  354. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -0
  356. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  357. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  358. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -0
  359. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  360. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  361. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -0
  362. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  363. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  364. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +2 -0
  365. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  366. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  367. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
  368. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  369. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  370. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +2 -0
  371. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  372. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  373. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -0
  374. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  375. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
  376. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  377. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -0
  378. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  379. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
  380. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  381. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -0
  382. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  383. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  384. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -0
  386. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +1 -1
  388. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +2 -0
  390. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
  392. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -0
  394. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  395. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +1 -1
  396. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  397. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +2 -0
  398. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  399. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
  400. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +2 -0
  402. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  404. package/dist/esm/engine/users/resources/user-self.resource.specification.js +3 -1
  405. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  406. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/users/resources/users.resource.specification.js +2 -0
  408. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  409. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
  410. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  411. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +385 -9
  412. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  413. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +1 -1
  414. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  415. package/dist/tsconfig.build.tsbuildinfo +1 -0
  416. package/package.json +8 -8
  417. package/dist/esm/.builder.pid +0 -9
  418. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
  419. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
  420. package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
  421. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
  422. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
  423. package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
@@ -0,0 +1,3 @@
1
+ import type { FamilyAspectsDeclaration } from '../family-aspects.schemas';
2
+ export declare const BRAND_FAMILY_ASPECTS: FamilyAspectsDeclaration;
3
+ //# sourceMappingURL=brand.family-aspects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.family-aspects.d.ts","sourceRoot":"","sources":["../../../../../src/_core/brand/brand.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAO1E,eAAO,MAAM,oBAAoB,EAAE,wBA2ClC,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
2
+ import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
+ import { BrandNameConfigSchema } from './brand-name.schemas.js';
4
+ import { BrandLogoDirectionConfigSchema } from './brand-logo-direction.schemas.js';
5
+ import { BrandVisualToneConfigSchema } from './brand-visual-tone.schemas.js';
6
+ import { BrandAssetConfigSchema } from './brand-asset.schemas.js';
7
+ export const BRAND_FAMILY_ASPECTS = {
8
+ schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.BRAND_SNAPSHOT,
9
+ aspects: [
10
+ {
11
+ key: 'brand.name',
12
+ snapshotPath: 'name',
13
+ kind: FamilyAspectKind.SINGLETON,
14
+ itemSchema: BrandNameConfigSchema,
15
+ headlineField: 'brandName',
16
+ edges: [],
17
+ },
18
+ {
19
+ key: 'brand.logo-direction',
20
+ snapshotPath: 'logoDirection',
21
+ kind: FamilyAspectKind.SINGLETON,
22
+ itemSchema: BrandLogoDirectionConfigSchema,
23
+ headlineField: 'markType',
24
+ edges: [],
25
+ },
26
+ {
27
+ key: 'brand.visual-tone',
28
+ snapshotPath: 'visualTone',
29
+ kind: FamilyAspectKind.SINGLETON,
30
+ itemSchema: BrandVisualToneConfigSchema,
31
+ headlineField: 'mood',
32
+ edges: [],
33
+ },
34
+ {
35
+ key: 'brand.asset',
36
+ snapshotPath: 'resolvedAssets',
37
+ kind: FamilyAspectKind.COLLECTION,
38
+ itemSchema: BrandAssetConfigSchema,
39
+ businessKey: 'ref',
40
+ headlineField: 'ref',
41
+ edges: [
42
+ // Derivation provenance is a SELF-edge: everything except MASTER derives from a sibling.
43
+ { field: 'derivedFrom', targetAspects: ['brand.asset'] },
44
+ ],
45
+ nonEdgeRefFields: {
46
+ storageRef: 'APPLICATION-scoped stored-file locator — a storage address, not an aspect key',
47
+ },
48
+ },
49
+ ],
50
+ };
51
+ //# sourceMappingURL=brand.family-aspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.family-aspects.js","sourceRoot":"","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a,EAAE,CAAC,aAAa,CAAC,EAAE;aACzD;YACD,gBAAgB,EAAE;gBAChB,UAAU,EAAE,+EAA+E;aAC5F;SACF;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas';\nimport type { FamilyAspectsDeclaration } from '../family-aspects.schemas';\nimport { FamilyAspectKind } from '../family-aspects.schemas';\nimport { BrandNameConfigSchema } from './brand-name.schemas';\nimport { BrandLogoDirectionConfigSchema } from './brand-logo-direction.schemas';\nimport { BrandVisualToneConfigSchema } from './brand-visual-tone.schemas';\nimport { BrandAssetConfigSchema } from './brand-asset.schemas';\n\nexport const BRAND_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.BRAND_SNAPSHOT,\n aspects: [\n {\n key: 'brand.name',\n snapshotPath: 'name',\n kind: FamilyAspectKind.SINGLETON,\n itemSchema: BrandNameConfigSchema,\n headlineField: 'brandName',\n edges: [],\n },\n {\n key: 'brand.logo-direction',\n snapshotPath: 'logoDirection',\n kind: FamilyAspectKind.SINGLETON,\n itemSchema: BrandLogoDirectionConfigSchema,\n headlineField: 'markType',\n edges: [],\n },\n {\n key: 'brand.visual-tone',\n snapshotPath: 'visualTone',\n kind: FamilyAspectKind.SINGLETON,\n itemSchema: BrandVisualToneConfigSchema,\n headlineField: 'mood',\n edges: [],\n },\n {\n key: 'brand.asset',\n snapshotPath: 'resolvedAssets',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: BrandAssetConfigSchema,\n businessKey: 'ref',\n headlineField: 'ref',\n edges: [\n // Derivation provenance is a SELF-edge: everything except MASTER derives from a sibling.\n { field: 'derivedFrom', targetAspects: ['brand.asset'] },\n ],\n nonEdgeRefFields: {\n storageRef: 'APPLICATION-scoped stored-file locator — a storage address, not an aspect key',\n },\n },\n ],\n};\n"]}
@@ -0,0 +1,3 @@
1
+ import type { FamilyAspectsDeclaration } from '../family-aspects.schemas';
2
+ export declare const BUILD_PLAN_FAMILY_ASPECTS: FamilyAspectsDeclaration;
3
+ //# sourceMappingURL=build-plan.family-aspects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-plan.family-aspects.d.ts","sourceRoot":"","sources":["../../../../../src/_core/build-plan/build-plan.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAI1E,eAAO,MAAM,yBAAyB,EAAE,wBAuBvC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
2
+ import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
+ import { BuildPlanTaskSchema } from './build-plan-task-graph.schemas.js';
4
+ export const BUILD_PLAN_FAMILY_ASPECTS = {
5
+ schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.BUILD_PLAN_TASK_GRAPH,
6
+ aspects: [
7
+ {
8
+ key: 'build-plan.task',
9
+ snapshotPath: 'tasks',
10
+ kind: FamilyAspectKind.COLLECTION,
11
+ itemSchema: BuildPlanTaskSchema,
12
+ businessKey: 'taskRef',
13
+ headlineField: 'objective',
14
+ edges: [
15
+ // The graph's only ordering authority — a SELF-edge (issue #124's lesson lives in the schema JSDoc).
16
+ { field: 'prerequisiteTaskRefs', targetAspects: ['build-plan.task'] },
17
+ {
18
+ field: 'servesRefs',
19
+ targetAspects: ['requirements.functional', 'requirements.non-functional', 'roadmap.phase'],
20
+ },
21
+ ],
22
+ nonEdgeRefFields: {
23
+ skillRefs: 'installed app-knowledge skill folders — the skills catalog, not a family aspect',
24
+ },
25
+ },
26
+ ],
27
+ };
28
+ //# sourceMappingURL=build-plan.family-aspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-plan.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/build-plan/build-plan.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,mGAAmG,CAAC;AAEpK,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,CAAC,MAAM,yBAAyB,GAA6B;IACjE,SAAS,EAAE,+CAA+C,CAAC,qBAAqB;IAChF,OAAO,EAAE;QACP;YACE,GAAG,EAAE,iBAAiB;YACtB,YAAY,EAAE,OAAO;YACrB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,mBAAmB;YAC/B,WAAW,EAAE,SAAS;YACtB,aAAa,EAAE,WAAW;YAC1B,KAAK,EAAE;gBACL,qGAAqG;gBACrG,EAAE,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC,iBAAiB,CAAC,EAAE;gBACrE;oBACE,KAAK,EAAE,YAAY;oBACnB,aAAa,EAAE,CAAC,yBAAyB,EAAE,6BAA6B,EAAE,eAAe,CAAC;iBAC3F;aACF;YACD,gBAAgB,EAAE;gBAChB,SAAS,EAAE,iFAAiF;aAC7F;SACF;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas';\nimport type { FamilyAspectsDeclaration } from '../family-aspects.schemas';\nimport { FamilyAspectKind } from '../family-aspects.schemas';\nimport { BuildPlanTaskSchema } from './build-plan-task-graph.schemas';\n\nexport const BUILD_PLAN_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.BUILD_PLAN_TASK_GRAPH,\n aspects: [\n {\n key: 'build-plan.task',\n snapshotPath: 'tasks',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: BuildPlanTaskSchema,\n businessKey: 'taskRef',\n headlineField: 'objective',\n edges: [\n // The graph's only ordering authority — a SELF-edge (issue #124's lesson lives in the schema JSDoc).\n { field: 'prerequisiteTaskRefs', targetAspects: ['build-plan.task'] },\n {\n field: 'servesRefs',\n targetAspects: ['requirements.functional', 'requirements.non-functional', 'roadmap.phase'],\n },\n ],\n nonEdgeRefFields: {\n skillRefs: 'installed app-knowledge skill folders — the skills catalog, not a family aspect',\n },\n },\n ],\n};\n"]}
@@ -0,0 +1,3 @@
1
+ import type { FamilyAspectsDeclaration } from '../family-aspects.schemas';
2
+ export declare const BUSINESS_MODEL_FAMILY_ASPECTS: FamilyAspectsDeclaration;
3
+ //# sourceMappingURL=business-model.family-aspects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-model.family-aspects.d.ts","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAI1E,eAAO,MAAM,6BAA6B,EAAE,wBAgB3C,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
2
+ import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
+ import { PricingPlanConfigSchema } from './pricing-plan.schemas.js';
4
+ export const BUSINESS_MODEL_FAMILY_ASPECTS = {
5
+ schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.BUSINESS_MODEL_LITE_SNAPSHOT,
6
+ aspects: [
7
+ {
8
+ key: 'business-model.plan',
9
+ snapshotPath: 'plans',
10
+ kind: FamilyAspectKind.COLLECTION,
11
+ itemSchema: PricingPlanConfigSchema,
12
+ businessKey: 'ref',
13
+ headlineField: 'name',
14
+ edges: [
15
+ { field: 'targetIcpRefs', targetAspects: ['market.icp'] },
16
+ { field: 'includesRequirementRefs', targetAspects: ['requirements.functional', 'requirements.non-functional'] },
17
+ ],
18
+ },
19
+ ],
20
+ };
21
+ //# sourceMappingURL=business-model.family-aspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-model.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,mGAAmG,CAAC;AAEpK,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,CAAC,MAAM,6BAA6B,GAA6B;IACrE,SAAS,EAAE,+CAA+C,CAAC,4BAA4B;IACvF,OAAO,EAAE;QACP;YACE,GAAG,EAAE,qBAAqB;YAC1B,YAAY,EAAE,OAAO;YACrB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,uBAAuB;YACnC,WAAW,EAAE,KAAK;YAClB,aAAa,EAAE,MAAM;YACrB,KAAK,EAAE;gBACL,EAAE,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,YAAY,CAAC,EAAE;gBACzD,EAAE,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,CAAC,yBAAyB,EAAE,6BAA6B,CAAC,EAAE;aAChH;SACF;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas';\nimport type { FamilyAspectsDeclaration } from '../family-aspects.schemas';\nimport { FamilyAspectKind } from '../family-aspects.schemas';\nimport { PricingPlanConfigSchema } from './pricing-plan.schemas';\n\nexport const BUSINESS_MODEL_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.BUSINESS_MODEL_LITE_SNAPSHOT,\n aspects: [\n {\n key: 'business-model.plan',\n snapshotPath: 'plans',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: PricingPlanConfigSchema,\n businessKey: 'ref',\n headlineField: 'name',\n edges: [\n { field: 'targetIcpRefs', targetAspects: ['market.icp'] },\n { field: 'includesRequirementRefs', targetAspects: ['requirements.functional', 'requirements.non-functional'] },\n ],\n },\n ],\n};\n"]}
@@ -3,7 +3,18 @@ import type { TranslationSlotSpecificationMap } from './translation-slot-specifi
3
3
  interface PublicCodeSymbolRef {
4
4
  packageName: string;
5
5
  exportName: string;
6
+ /**
7
+ * PUBLIC SUBPATH only — a subpath the owning package declares in
8
+ * `package.json#exports`, so `${packageName}/${importPath}` resolves. For a module
9
+ * that has no public door, author `filePathHint` instead (issue #150).
10
+ */
6
11
  importPath?: string;
12
+ /**
13
+ * MODULE LOCATION inside the owning package — a navigation aid, never concatenated
14
+ * onto `packageName`. See `CodeSymbolRef` in `@wildo-ai/zod-decorators` for the
15
+ * canonical contract this narrows.
16
+ */
17
+ filePathHint?: string;
7
18
  }
8
19
  /**
9
20
  * Minimal ref struct identifying one resource-owned chart view for
@@ -1 +1 @@
1
- {"version":3,"file":"chart-view-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/chart-view-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAEhG,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,UAAU,wBAAwB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,kCAAkC;IACjD,6DAA6D;IAC7D,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,iFAAiF;IACjF,kBAAkB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC3C,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,4BAA4B;IAC3C,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,SAAS,CAAC,EAAE,+BAA+B,CAAC;IAC5C,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,qDAAqD;IACrD,YAAY,CAAC,EAAE,kCAAkC,CAAC;CACnD;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;AAElF,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,4BAA4B,EAC5B,cAAc,GAAG,SAAS,CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,sCAAsC,CACpD,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,GACd,MAAM,CAER;AAED,wBAAgB,4CAA4C,CAC1D,cAAc,EAAE,wBAAwB,EACxC,oBAAoB,EAAE,MAAM,2BAA2B,GACtD,4BAA4B,CAU9B;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,cAAc,EAAE,4BAA4B,EAAE,GAChD,sBAAsB,CAiBxB"}
1
+ {"version":3,"file":"chart-view-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/chart-view-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAEhG,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,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EACxC,oBAAoB,EAAE,MAAM,2BAA2B,GACtD,4BAA4B,CAU9B;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,cAAc,EAAE,4BAA4B,EAAE,GAChD,sBAAsB,CAiBxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"chart-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/chart-view-specification.schemas.ts"],"names":[],"mappings":"AA+EA;;;;;;GAMG;AACH,MAAM,UAAU,sCAAsC,CACpD,YAAoB,EACpB,OAAe;IAEf,OAAO,aAAa,YAAY,IAAI,OAAO,EAAE,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,4CAA4C,CAC1D,cAAwC,EACxC,oBAAuD;IAEvD,MAAM,aAAa,GAAiC;QAClD,YAAY,EAAE,cAAc,CAAC,YAAY;QACzC,OAAO,EAAE,cAAc,CAAC,GAAG;QAC3B,GAAG,oBAAoB,EAAE;KAC1B,CAAC;IAEF,8BAA8B,CAAC,aAAa,CAAC,CAAC;IAE9C,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,GAAG,cAA8C;IAEjD,MAAM,MAAM,GAA2B,EAAE,CAAC;IAE1C,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,MAAM,GAAG,GAAG,sCAAsC,CAChD,aAAa,CAAC,YAAY,EAC1B,aAAa,CAAC,OAAO,CACtB,CAAC;QACF,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CACb,wEAAwE,GAAG,IAAI,CAChF,CAAC;QACJ,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;IAC9B,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,8BAA8B,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAEhE,SAAS,8BAA8B,CACrC,aAA2C;IAE3C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3E,KAAK,MAAM,WAAW,IAAI,8BAA8B,EAAE,CAAC;QACzD,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CACb,0DAA0D,sCAAsC,CAC9F,aAAa,CAAC,YAAY,EAC1B,aAAa,CAAC,OAAO,CACtB,8BAA8B,WAAW,wEAAwE,CACnH,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport type { TranslationSlotSpecificationMap } from './translation-slot-specification.schemas';\n\ninterface PublicCodeSymbolRef {\n packageName: string;\n exportName: string;\n importPath?: string;\n}\n\n/**\n * Minimal ref struct identifying one resource-owned chart view for\n * specification input. Shape-compatible with\n * `Pick<InsertedChartDeclaration, 'ref'> & { resourceType: string }`.\n */\ninterface ResourceChartViewSpecRef {\n resourceType: string;\n ref: string;\n}\n\n/**\n * Import-oriented coding/transposition metadata for a chart view.\n *\n * Charts are data-declarative, not custom-renderer-first. Unlike the other\n * non-composite view families there is **no** authored `viewComponent`\n * symbol to document — the host renders a `ChartDefinition`. Omitting\n * `viewComponentSymbol` keeps every field semantically truthful and rejects\n * shape-symmetry-for-convenience.\n */\nexport interface ChartViewSpecificationCodeHandling {\n /** Module/application owner that authored the chart view. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public declarations where the chart view is wired into runtime registries. */\n declarationSymbols?: PublicCodeSymbolRef[];\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\n/**\n * Authored semantic contract for one resource-owned chart view.\n *\n * Resource-only at the specification layer — matches the runtime, where\n * chart views are intentionally resource-scoped only (see\n * `InsertedChartDeclaration`). If app-level charts are ever reinstated,\n * adding an application variant is a strictly additive change (new\n * `buildApplicationChartViewSpecificationKey(...)` + an\n * `applicationChartViewSpecificationFromDefinition(...)` factory).\n */\nexport interface ChartViewSpecificationConfig {\n /** Stable resource type that owns this chart view. */\n resourceType: string;\n /** Stable runtime view reference local to the owning resource. */\n viewRef: string;\n /** Why this chart surface exists from a product/workflow perspective. */\n purpose: string;\n /** Interaction role this chart plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this chart surface is the right destination. */\n useWhen?: string;\n /** Situations where another surface should be preferred. */\n avoidWhen?: string;\n /** Meaning of the view-level translatable slots. */\n textSlots?: TranslationSlotSpecificationMap;\n /** Additional domain constraints that matter beyond raw runtime structure. */\n businessConstraints?: string[];\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: ChartViewSpecificationCodeHandling;\n}\n\n/**\n * Keyed by `buildResourceChartViewSpecificationKey(resourceType, viewRef)`\n * (`resources.<resourceType>.<viewRef>`).\n */\nexport type ChartViewSpecification = Record<string, ChartViewSpecificationConfig>;\n\nexport type ChartViewSpecificationDraft = Omit<\n ChartViewSpecificationConfig,\n 'resourceType' | 'viewRef'\n>;\n\n/**\n * Build the namespaced specification key for a resource-owned chart view.\n *\n * Mirrors `buildResourceCompositeViewTranslationRef(...)` so companion\n * requests consistently reference the same namespaced identity regardless\n * of view family.\n */\nexport function buildResourceChartViewSpecificationKey(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\nexport function resourceChartViewSpecificationFromDefinition(\n viewDefinition: ResourceChartViewSpecRef,\n specificationFactory: () => ChartViewSpecificationDraft,\n): ChartViewSpecificationConfig {\n const specification: ChartViewSpecificationConfig = {\n resourceType: viewDefinition.resourceType,\n viewRef: viewDefinition.ref,\n ...specificationFactory(),\n };\n\n validateChartViewSpecification(specification);\n\n return specification;\n}\n\nexport function buildChartViewSpecificationMap(\n ...specifications: ChartViewSpecificationConfig[]\n): ChartViewSpecification {\n const result: ChartViewSpecification = {};\n\n for (const specification of specifications) {\n const key = buildResourceChartViewSpecificationKey(\n specification.resourceType,\n specification.viewRef,\n );\n if (result[key]) {\n throw new Error(\n `buildChartViewSpecificationMap(): duplicate chart specification key \"${key}\".`,\n );\n }\n result[key] = specification;\n }\n\n return result;\n}\n\nconst CHART_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'];\n\nfunction validateChartViewSpecification(\n specification: ChartViewSpecificationConfig,\n): void {\n const knownTextSlots = new Set(Object.keys(specification.textSlots ?? {}));\n for (const textSlotKey of CHART_VIEW_REQUIRED_TEXT_SLOTS) {\n if (!knownTextSlots.has(textSlotKey)) {\n throw new Error(\n `resourceChartViewSpecificationFromDefinition(): chart \"${buildResourceChartViewSpecificationKey(\n specification.resourceType,\n specification.viewRef,\n )}\" must document text slot \"${textSlotKey}\" so generated launcher and overlay labels stay semantically grounded.`,\n );\n }\n }\n}\n"]}
1
+ {"version":3,"file":"chart-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/chart-view-specification.schemas.ts"],"names":[],"mappings":"AA0FA;;;;;;GAMG;AACH,MAAM,UAAU,sCAAsC,CACpD,YAAoB,EACpB,OAAe;IAEf,OAAO,aAAa,YAAY,IAAI,OAAO,EAAE,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,4CAA4C,CAC1D,cAAwC,EACxC,oBAAuD;IAEvD,MAAM,aAAa,GAAiC;QAClD,YAAY,EAAE,cAAc,CAAC,YAAY;QACzC,OAAO,EAAE,cAAc,CAAC,GAAG;QAC3B,GAAG,oBAAoB,EAAE;KAC1B,CAAC;IAEF,8BAA8B,CAAC,aAAa,CAAC,CAAC;IAE9C,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,GAAG,cAA8C;IAEjD,MAAM,MAAM,GAA2B,EAAE,CAAC;IAE1C,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,MAAM,GAAG,GAAG,sCAAsC,CAChD,aAAa,CAAC,YAAY,EAC1B,aAAa,CAAC,OAAO,CACtB,CAAC;QACF,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CACb,wEAAwE,GAAG,IAAI,CAChF,CAAC;QACJ,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;IAC9B,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,8BAA8B,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAEhE,SAAS,8BAA8B,CACrC,aAA2C;IAE3C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3E,KAAK,MAAM,WAAW,IAAI,8BAA8B,EAAE,CAAC;QACzD,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CACb,0DAA0D,sCAAsC,CAC9F,aAAa,CAAC,YAAY,EAC1B,aAAa,CAAC,OAAO,CACtB,8BAA8B,WAAW,wEAAwE,CACnH,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport type { TranslationSlotSpecificationMap } from './translation-slot-specification.schemas';\n\ninterface PublicCodeSymbolRef {\n packageName: string;\n exportName: string;\n /**\n * PUBLIC SUBPATH only — a subpath the owning package declares in\n * `package.json#exports`, so `${packageName}/${importPath}` resolves. For a module\n * that has no public door, author `filePathHint` instead (issue #150).\n */\n importPath?: string;\n /**\n * MODULE LOCATION inside the owning package — a navigation aid, never concatenated\n * onto `packageName`. See `CodeSymbolRef` in `@wildo-ai/zod-decorators` for the\n * canonical contract this narrows.\n */\n filePathHint?: string;\n}\n\n/**\n * Minimal ref struct identifying one resource-owned chart view for\n * specification input. Shape-compatible with\n * `Pick<InsertedChartDeclaration, 'ref'> & { resourceType: string }`.\n */\ninterface ResourceChartViewSpecRef {\n resourceType: string;\n ref: string;\n}\n\n/**\n * Import-oriented coding/transposition metadata for a chart view.\n *\n * Charts are data-declarative, not custom-renderer-first. Unlike the other\n * non-composite view families there is **no** authored `viewComponent`\n * symbol to document — the host renders a `ChartDefinition`. Omitting\n * `viewComponentSymbol` keeps every field semantically truthful and rejects\n * shape-symmetry-for-convenience.\n */\nexport interface ChartViewSpecificationCodeHandling {\n /** Module/application owner that authored the chart view. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public declarations where the chart view is wired into runtime registries. */\n declarationSymbols?: PublicCodeSymbolRef[];\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\n/**\n * Authored semantic contract for one resource-owned chart view.\n *\n * Resource-only at the specification layer — matches the runtime, where\n * chart views are intentionally resource-scoped only (see\n * `InsertedChartDeclaration`). If app-level charts are ever reinstated,\n * adding an application variant is a strictly additive change (new\n * `buildApplicationChartViewSpecificationKey(...)` + an\n * `applicationChartViewSpecificationFromDefinition(...)` factory).\n */\nexport interface ChartViewSpecificationConfig {\n /** Stable resource type that owns this chart view. */\n resourceType: string;\n /** Stable runtime view reference local to the owning resource. */\n viewRef: string;\n /** Why this chart surface exists from a product/workflow perspective. */\n purpose: string;\n /** Interaction role this chart plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this chart surface is the right destination. */\n useWhen?: string;\n /** Situations where another surface should be preferred. */\n avoidWhen?: string;\n /** Meaning of the view-level translatable slots. */\n textSlots?: TranslationSlotSpecificationMap;\n /** Additional domain constraints that matter beyond raw runtime structure. */\n businessConstraints?: string[];\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: ChartViewSpecificationCodeHandling;\n}\n\n/**\n * Keyed by `buildResourceChartViewSpecificationKey(resourceType, viewRef)`\n * (`resources.<resourceType>.<viewRef>`).\n */\nexport type ChartViewSpecification = Record<string, ChartViewSpecificationConfig>;\n\nexport type ChartViewSpecificationDraft = Omit<\n ChartViewSpecificationConfig,\n 'resourceType' | 'viewRef'\n>;\n\n/**\n * Build the namespaced specification key for a resource-owned chart view.\n *\n * Mirrors `buildResourceCompositeViewTranslationRef(...)` so companion\n * requests consistently reference the same namespaced identity regardless\n * of view family.\n */\nexport function buildResourceChartViewSpecificationKey(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\nexport function resourceChartViewSpecificationFromDefinition(\n viewDefinition: ResourceChartViewSpecRef,\n specificationFactory: () => ChartViewSpecificationDraft,\n): ChartViewSpecificationConfig {\n const specification: ChartViewSpecificationConfig = {\n resourceType: viewDefinition.resourceType,\n viewRef: viewDefinition.ref,\n ...specificationFactory(),\n };\n\n validateChartViewSpecification(specification);\n\n return specification;\n}\n\nexport function buildChartViewSpecificationMap(\n ...specifications: ChartViewSpecificationConfig[]\n): ChartViewSpecification {\n const result: ChartViewSpecification = {};\n\n for (const specification of specifications) {\n const key = buildResourceChartViewSpecificationKey(\n specification.resourceType,\n specification.viewRef,\n );\n if (result[key]) {\n throw new Error(\n `buildChartViewSpecificationMap(): duplicate chart specification key \"${key}\".`,\n );\n }\n result[key] = specification;\n }\n\n return result;\n}\n\nconst CHART_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'];\n\nfunction validateChartViewSpecification(\n specification: ChartViewSpecificationConfig,\n): void {\n const knownTextSlots = new Set(Object.keys(specification.textSlots ?? {}));\n for (const textSlotKey of CHART_VIEW_REQUIRED_TEXT_SLOTS) {\n if (!knownTextSlots.has(textSlotKey)) {\n throw new Error(\n `resourceChartViewSpecificationFromDefinition(): chart \"${buildResourceChartViewSpecificationKey(\n specification.resourceType,\n specification.viewRef,\n )}\" must document text slot \"${textSlotKey}\" so generated launcher and overlay labels stay semantically grounded.`,\n );\n }\n }\n}\n"]}
@@ -18,6 +18,17 @@ export declare const ComplianceDocumentCandidateClauseGenerationSchema: z.ZodObj
18
18
  closedBy: z.ZodString;
19
19
  }, z.core.$strict>>;
20
20
  factRefs: z.ZodArray<z.ZodString>;
21
+ /**
22
+ * Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
23
+ *
24
+ * The clause half of issue #244, and it was found through the method's own prose rather than by
25
+ * looking: the drafting guidance says "**Clauses carry the same claim**, as `satisfiesClauseRefs`"
26
+ * while this `strictObject` had no such key, so the instruction was unfollowable at both levels.
27
+ * One claim, two call sites — see `.claude/rules/invariant-call-site-enumeration.md`.
28
+ *
29
+ * Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
30
+ */
31
+ satisfiesClauseRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
21
32
  sourcePolicyRefs: z.ZodArray<z.ZodString>;
22
33
  claimGuardRefs: z.ZodArray<z.ZodString>;
23
34
  }, z.core.$strict>;
@@ -43,6 +54,32 @@ export declare const ComplianceDocumentCandidateSectionGenerationSchema: z.ZodOb
43
54
  * `"retention-and-deletion"` are a silent miss and a reported gap that is not one.
44
55
  */
45
56
  concernRef: z.ZodNullable<z.ZodEnum<typeof ComplianceConcern>>;
57
+ /**
58
+ * Which of the document blueprint's REQUIRED sections this section satisfies — `null` for a section
59
+ * that satisfies none (a preamble, a contact block).
60
+ *
61
+ * ## The measured defect this closes (issue #244)
62
+ *
63
+ * The field exists on the family schema and was ABSENT here, and this contract is a `strictObject`,
64
+ * so the drafter could not emit it however clearly its method asked. Every landed document therefore
65
+ * claimed nothing, and the coherence report's `compliance-document-required-section-not-covered`
66
+ * check reported EVERY required section uncovered on EVERY run — permanently, for every application.
67
+ *
68
+ * Measured on the first live service-terms candidate (wonder-crm, 2026-09-02): "11 of 11 section(s)
69
+ * this document's definition requires are claimed by no section of the draft", on a draft whose
70
+ * eleven sections corresponded to the blueprint's eleven one for one. The content was there; only
71
+ * the claim was missing. A coverage check that is wrong in the alarming direction on the legal
72
+ * surface is worse than one that is absent — it is the finding a reader learns to skip, and it masks
73
+ * the run where a section genuinely IS missing.
74
+ *
75
+ * Required-and-nullable rather than optional, for the same reason as {@link concernRef} above: the
76
+ * drafter is told to write against the blueprint's required set, so omitting the key is not a
77
+ * considered "this satisfies nothing" — it is a section whose coverage nobody recorded, and the
78
+ * coverage check cannot tell that apart from a genuine gap.
79
+ *
80
+ * `.min(1)` when present, because an empty array and `null` would be two spellings of one state.
81
+ */
82
+ satisfiesSectionRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
46
83
  clauses: z.ZodArray<z.ZodObject<{
47
84
  clauseRef: z.ZodString;
48
85
  order: z.ZodNumber;
@@ -55,6 +92,17 @@ export declare const ComplianceDocumentCandidateSectionGenerationSchema: z.ZodOb
55
92
  closedBy: z.ZodString;
56
93
  }, z.core.$strict>>;
57
94
  factRefs: z.ZodArray<z.ZodString>;
95
+ /**
96
+ * Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
97
+ *
98
+ * The clause half of issue #244, and it was found through the method's own prose rather than by
99
+ * looking: the drafting guidance says "**Clauses carry the same claim**, as `satisfiesClauseRefs`"
100
+ * while this `strictObject` had no such key, so the instruction was unfollowable at both levels.
101
+ * One claim, two call sites — see `.claude/rules/invariant-call-site-enumeration.md`.
102
+ *
103
+ * Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
104
+ */
105
+ satisfiesClauseRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
58
106
  sourcePolicyRefs: z.ZodArray<z.ZodString>;
59
107
  claimGuardRefs: z.ZodArray<z.ZodString>;
60
108
  }, z.core.$strict>>;
@@ -127,6 +175,32 @@ export declare const ComplianceDocumentCandidateGenerationSchema: z.ZodObject<{
127
175
  * `"retention-and-deletion"` are a silent miss and a reported gap that is not one.
128
176
  */
129
177
  concernRef: z.ZodNullable<z.ZodEnum<typeof ComplianceConcern>>;
178
+ /**
179
+ * Which of the document blueprint's REQUIRED sections this section satisfies — `null` for a section
180
+ * that satisfies none (a preamble, a contact block).
181
+ *
182
+ * ## The measured defect this closes (issue #244)
183
+ *
184
+ * The field exists on the family schema and was ABSENT here, and this contract is a `strictObject`,
185
+ * so the drafter could not emit it however clearly its method asked. Every landed document therefore
186
+ * claimed nothing, and the coherence report's `compliance-document-required-section-not-covered`
187
+ * check reported EVERY required section uncovered on EVERY run — permanently, for every application.
188
+ *
189
+ * Measured on the first live service-terms candidate (wonder-crm, 2026-09-02): "11 of 11 section(s)
190
+ * this document's definition requires are claimed by no section of the draft", on a draft whose
191
+ * eleven sections corresponded to the blueprint's eleven one for one. The content was there; only
192
+ * the claim was missing. A coverage check that is wrong in the alarming direction on the legal
193
+ * surface is worse than one that is absent — it is the finding a reader learns to skip, and it masks
194
+ * the run where a section genuinely IS missing.
195
+ *
196
+ * Required-and-nullable rather than optional, for the same reason as {@link concernRef} above: the
197
+ * drafter is told to write against the blueprint's required set, so omitting the key is not a
198
+ * considered "this satisfies nothing" — it is a section whose coverage nobody recorded, and the
199
+ * coverage check cannot tell that apart from a genuine gap.
200
+ *
201
+ * `.min(1)` when present, because an empty array and `null` would be two spellings of one state.
202
+ */
203
+ satisfiesSectionRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
130
204
  clauses: z.ZodArray<z.ZodObject<{
131
205
  clauseRef: z.ZodString;
132
206
  order: z.ZodNumber;
@@ -139,6 +213,17 @@ export declare const ComplianceDocumentCandidateGenerationSchema: z.ZodObject<{
139
213
  closedBy: z.ZodString;
140
214
  }, z.core.$strict>>;
141
215
  factRefs: z.ZodArray<z.ZodString>;
216
+ /**
217
+ * Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
218
+ *
219
+ * The clause half of issue #244, and it was found through the method's own prose rather than by
220
+ * looking: the drafting guidance says "**Clauses carry the same claim**, as `satisfiesClauseRefs`"
221
+ * while this `strictObject` had no such key, so the instruction was unfollowable at both levels.
222
+ * One claim, two call sites — see `.claude/rules/invariant-call-site-enumeration.md`.
223
+ *
224
+ * Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
225
+ */
226
+ satisfiesClauseRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
142
227
  sourcePolicyRefs: z.ZodArray<z.ZodString>;
143
228
  claimGuardRefs: z.ZodArray<z.ZodString>;
144
229
  }, z.core.$strict>>;
@@ -1 +1 @@
1
- {"version":3,"file":"compliance-document-candidate-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAIL,+BAA+B,EAC/B,KAAK,2BAA2B,EACjC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AA+ChF,yGAAyG;AACzG,eAAO,MAAM,iDAAiD;;;kBAG5D,CAAC;AAEH,eAAO,MAAM,iDAAiD;;;;IAK1D,uFAAuF;;IAEvF,2GAA2G;;;;;;;;kBA4B3G,CAAC;AAEL,eAAO,MAAM,kDAAkD;;;;IAI7D;;;;;;;;;;;;;;;;OAgBG;;;;;;QApDD,uFAAuF;;QAEvF,2GAA2G;;;;;;;;;kBAqD7G,CAAC;AAEH,eAAO,MAAM,2DAA2D;;;;kBAItE,CAAC;AAEH,eAAO,MAAM,2CAA2C;IACtD;;;;;;;;;;;;;OAaG;;;;;;;;;;IAGH;;;;OAIG;;IAEH,4FAA4F;;IAE5F;;;OAGG;;;;;;;;;;QAvDH;;;;;;;;;;;;;;;;WAgBG;;;;;;YApDD,uFAAuF;;YAEvF,2GAA2G;;;;;;;;;;;IA6F7G,iGAAiG;;kBAEjG,CAAC;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,iHAAiH;AACjH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,OAAO,GAAG,2BAA2B,CA8BtG"}
1
+ {"version":3,"file":"compliance-document-candidate-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAIL,+BAA+B,EAC/B,KAAK,2BAA2B,EACjC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AA+ChF,yGAAyG;AACzG,eAAO,MAAM,iDAAiD;;;kBAG5D,CAAC;AAEH,eAAO,MAAM,iDAAiD;;;;IAK1D,uFAAuF;;IAEvF,2GAA2G;;;;;;IAG3G;;;;;;;;;OASG;;;;kBA2BH,CAAC;AAEL,eAAO,MAAM,kDAAkD;;;;IAI7D;;;;;;;;;;;;;;;;OAgBG;;IAEH;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;;;;;;QAzFD,uFAAuF;;QAEvF,2GAA2G;;;;;;QAG3G;;;;;;;;;WASG;;;;;kBA8EL,CAAC;AAEH,eAAO,MAAM,2DAA2D;;;;kBAItE,CAAC;AAEH,eAAO,MAAM,2CAA2C;IACtD;;;;;;;;;;;;;OAaG;;;;;;;;;;IAGH;;;;OAIG;;IAEH,4FAA4F;;IAE5F;;;OAGG;;;;;;;;;;QAjFH;;;;;;;;;;;;;;;;WAgBG;;QAEH;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;;;;;;YAzFD,uFAAuF;;YAEvF,2GAA2G;;;;;;YAG3G;;;;;;;;;eASG;;;;;;;IAsHL,iGAAiG;;kBAEjG,CAAC;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,iHAAiH;AACjH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,OAAO,GAAG,2BAA2B,CAkCtG"}
@@ -59,6 +59,17 @@ export const ComplianceDocumentCandidateClauseGenerationSchema = z
59
59
  /** `null` for a DERIVED clause; the pairing is enforced below exactly as the family schema enforces it. */
60
60
  incompleteness: ComplianceStatementIncompletenessGenerationSchema.nullable(),
61
61
  factRefs: z.array(ComplianceDocumentNamespacedRefSchema),
62
+ /**
63
+ * Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
64
+ *
65
+ * The clause half of issue #244, and it was found through the method's own prose rather than by
66
+ * looking: the drafting guidance says "**Clauses carry the same claim**, as `satisfiesClauseRefs`"
67
+ * while this `strictObject` had no such key, so the instruction was unfollowable at both levels.
68
+ * One claim, two call sites — see `.claude/rules/invariant-call-site-enumeration.md`.
69
+ *
70
+ * Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
71
+ */
72
+ satisfiesClauseRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),
62
73
  sourcePolicyRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),
63
74
  claimGuardRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),
64
75
  })
@@ -107,6 +118,32 @@ export const ComplianceDocumentCandidateSectionGenerationSchema = z.strictObject
107
118
  * `"retention-and-deletion"` are a silent miss and a reported gap that is not one.
108
119
  */
109
120
  concernRef: z.enum(ComplianceConcern).nullable(),
121
+ /**
122
+ * Which of the document blueprint's REQUIRED sections this section satisfies — `null` for a section
123
+ * that satisfies none (a preamble, a contact block).
124
+ *
125
+ * ## The measured defect this closes (issue #244)
126
+ *
127
+ * The field exists on the family schema and was ABSENT here, and this contract is a `strictObject`,
128
+ * so the drafter could not emit it however clearly its method asked. Every landed document therefore
129
+ * claimed nothing, and the coherence report's `compliance-document-required-section-not-covered`
130
+ * check reported EVERY required section uncovered on EVERY run — permanently, for every application.
131
+ *
132
+ * Measured on the first live service-terms candidate (wonder-crm, 2026-09-02): "11 of 11 section(s)
133
+ * this document's definition requires are claimed by no section of the draft", on a draft whose
134
+ * eleven sections corresponded to the blueprint's eleven one for one. The content was there; only
135
+ * the claim was missing. A coverage check that is wrong in the alarming direction on the legal
136
+ * surface is worse than one that is absent — it is the finding a reader learns to skip, and it masks
137
+ * the run where a section genuinely IS missing.
138
+ *
139
+ * Required-and-nullable rather than optional, for the same reason as {@link concernRef} above: the
140
+ * drafter is told to write against the blueprint's required set, so omitting the key is not a
141
+ * considered "this satisfies nothing" — it is a section whose coverage nobody recorded, and the
142
+ * coverage check cannot tell that apart from a genuine gap.
143
+ *
144
+ * `.min(1)` when present, because an empty array and `null` would be two spellings of one state.
145
+ */
146
+ satisfiesSectionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),
110
147
  clauses: z.array(ComplianceDocumentCandidateClauseGenerationSchema).min(1),
111
148
  });
112
149
  export const ComplianceDocumentCandidateVariantSelectionGenerationSchema = z.strictObject({
@@ -164,6 +201,9 @@ export function parseComplianceDocumentCandidateGeneration(input) {
164
201
  order: section.order,
165
202
  title: section.title,
166
203
  ...(section.concernRef === null ? {} : { concernRef: section.concernRef }),
204
+ // Absence, not `undefined`, exactly as the clause fields below: the family schema declares this
205
+ // optional, and a strictObject carrying an explicit `undefined` is not the same as omitting it.
206
+ ...(section.satisfiesSectionRefs === null ? {} : { satisfiesSectionRefs: section.satisfiesSectionRefs }),
167
207
  clauses: section.clauses.map((clause) => ({
168
208
  clauseRef: clause.clauseRef,
169
209
  order: clause.order,
@@ -173,6 +213,7 @@ export function parseComplianceDocumentCandidateGeneration(input) {
173
213
  // strictObject carrying an explicit `undefined` is not the same as one omitting the key.
174
214
  ...(clause.incompleteness === null ? {} : { incompleteness: clause.incompleteness }),
175
215
  factRefs: clause.factRefs,
216
+ ...(clause.satisfiesClauseRefs === null ? {} : { satisfiesClauseRefs: clause.satisfiesClauseRefs }),
176
217
  sourcePolicyRefs: clause.sourcePolicyRefs,
177
218
  claimGuardRefs: clause.claimGuardRefs,
178
219
  })),
@@ -1 +1 @@
1
- {"version":3,"file":"compliance-document-candidate-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,iCAAiC,EACjC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,GAEhC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAA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EAAE,EAAE,CAAC,CAAC;YAC7C,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;YAC1E,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACxC,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,yFAAyF;gBACzF,yFAAyF;gBACzF,GAAG,CAAC,MAAM,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC;gBACpF,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;gBACzC,cAAc,EAAE,MAAM,CAAC,cAAc;aACtC,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;QAClD,cAAc,EAAE,SAAS,CAAC,cAAc;KACzC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport {\n ComplianceDocumentCandidateSchema,\n ComplianceDocumentCandidateVersion,\n ComplianceDocumentNamespacedRefSchema,\n ComplianceStatementCompleteness,\n type ComplianceDocumentCandidate,\n} from \"./compliance-document-candidate.schemas\";\nimport { ComplianceConcern } from \"./compliance-completeness-statement.schemas\";\nimport { KNOWN_DOCUMENT_REFS_BY_NAME } from \"./required-document-set.schemas\";\n\n/**\n * The STRICT contract a provider answers for the `compliance-document-candidate` family.\n *\n * ## Why the family schema is not this contract\n *\n * The family schema is what a HAND-AUTHORED file is parsed against, so it is permissive where a human\n * would reasonably leave a key out: `completeness` defaults, `incompleteness` is optional, `locale` and\n * `jurisdictionRefs` are optional, `variantSelections` and `limitationRefs` default to empty. Every one\n * of those defaults is right for a human and wrong for a provider, for the reason three families in a\n * row shipped a broken lane in 2026-08: a model handed the permissive schema satisfies it by OMISSION,\n * and an omission is indistinguishable from a considered answer.\n *\n * ## The one that is not merely untidy\n *\n * `completeness` defaults to {@link ComplianceStatementCompleteness.DERIVED}, the STRICT state — a\n * clause claiming to be established from what the application is, whose every cited fact must be\n * declared. That default is correct for a hand-authored clause, where the cost of being wrong is a\n * refusal a human can answer.\n *\n * Given to a MODEL it inverts: a drafter that simply never emits the key produces a document of\n * silently-`DERIVED` clauses, and the fact-binding check — the one guard standing between a draft and\n * an unfounded legal claim — is exactly the thing that then rejects it. So the model is either blocked\n * by a rule it was never told about, or, on the clauses whose facts happen to exist, asserts as\n * established things it could not establish. **This is the single direction that readmits invention**,\n * which is why `completeness` is required-and-explicit here.\n *\n * ## Nullable-and-required, not optional\n *\n * Every deferrable field is `.nullable()` and required, matching every sibling generation contract\n * (`BusinessModelLiteSnapshotGenerationSchema`, `ApplicationDocumentFactSpecificationGenerationSchema`).\n * An omitted key and a considered \"there is none\" are different answers, and a provider that may drop a\n * key gives no way to tell them apart. The normalizer turns `null` back into absence, which is what the\n * family schema means by an unanswered second-step question.\n *\n * ## What the runtime stamps, and what it deliberately does not\n *\n * Only `version` — the family's schema discriminator, which is not content. Unlike the fact\n * specification, this contract does NOT stamp refs: a `clauseRef`, `sectionRef` and `documentRef` are\n * things the DOCUMENT says about its own structure, authored by the drafter, and inventing them in the\n * runtime would be the runtime writing part of the document.\n */\n\nconst ProseSchema = z.string().trim().min(1);\n\n/** What a marked statement needs and who supplies it — required whenever completeness is not DERIVED. */\nexport const ComplianceStatementIncompletenessGenerationSchema = z.strictObject({\n needs: ProseSchema,\n closedBy: ProseSchema,\n});\n\nexport const ComplianceDocumentCandidateClauseGenerationSchema = z\n .strictObject({\n clauseRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n bodyMarkdown: ProseSchema,\n /** Required, never defaulted — see the file header. This is the invention boundary. */\n completeness: z.enum(ComplianceStatementCompleteness),\n /** `null` for a DERIVED clause; the pairing is enforced below exactly as the family schema enforces it. */\n incompleteness: ComplianceStatementIncompletenessGenerationSchema.nullable(),\n factRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n sourcePolicyRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n claimGuardRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n })\n .superRefine((clause, context) => {\n const marked = clause.completeness !== ComplianceStatementCompleteness.DERIVED;\n /*\n * Checked HERE as well as on the family schema, and the duplication earns its keep: a generation\n * rejection's message goes back to the MODEL as a retry finding, naming the clause it must fix. The\n * family schema would catch the same violation after normalization, as a Zod path index — correct,\n * and useless as a repair instruction.\n */\n if (marked && clause.incompleteness === null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is marked ${clause.completeness}, so it must state what it needs and who closes it`,\n });\n }\n if (!marked && clause.incompleteness !== null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is DERIVED, so it is established and cannot also declare what it is missing`,\n });\n }\n });\n\nexport const ComplianceDocumentCandidateSectionGenerationSchema = z.strictObject({\n sectionRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n title: ProseSchema,\n /**\n * Which compliance concern this section answers — `null` for a section that answers none (a\n * preamble, a contact block).\n *\n * Required-and-nullable rather than optional, like every other deferrable field here: the drafter is\n * told to write one section per concern from the composition reference, so omitting the key is not a\n * considered \"this answers no concern\" — it is a section whose concern nobody recorded, and the\n * completeness statement projected from it would silently under-count what the document covers.\n *\n * CONSTRAINED to {@link ComplianceConcern} since 2026-08-29, and the reason is measured rather than\n * tidiness. As a free string it was answerable with `null`, and the first document produced live\n * answered `null` for all four of its sections — so `projectComplianceCompletenessStatement`, which\n * groups clauses BY CONCERN, saw nothing to group and returned an empty statement. The completeness\n * projection was correct code with no reachable input. A free-form concern name would have been no\n * better: the projection matches against the enum's values, so `\"retention\"` and\n * `\"retention-and-deletion\"` are a silent miss and a reported gap that is not one.\n */\n concernRef: z.enum(ComplianceConcern).nullable(),\n clauses: z.array(ComplianceDocumentCandidateClauseGenerationSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateVariantSelectionGenerationSchema = z.strictObject({\n axisRef: ComplianceDocumentNamespacedRefSchema,\n optionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n supportingFactRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateGenerationSchema = z.strictObject({\n /**\n * WHICH governed document this is, from the closed set the framework knows how to measure.\n *\n * Constrained 2026-08-29. As a free namespaced ref, the first live run named\n * `compliance-document-candidate:wonder-crm-data-handling-notice` — a well-formed ref for a document\n * that exists nowhere: `CONCERNS_BY_DOCUMENT` has no entry for it, so the completeness statement had\n * no concern set to measure against, and `validateComplianceDocumentIsRequired` could not say whether\n * the application needs it. The draft was schema-valid, readable, and unmeasurable.\n *\n * A document the framework cannot name is a document it cannot state the gaps in, and stating the\n * gaps is this whole capability's purpose (D4: completeness is measured against FULL compliance).\n * Naming a NEW document is a framework change — a concern composition and a required-set rule — not\n * something a drafter decides mid-draft.\n */\n documentRef: z.enum(KNOWN_DOCUMENT_REFS_BY_NAME),\n title: ProseSchema,\n /**\n * `null` when the locale decision has not been taken — a second-step question that must never gate\n * drafting. Required-and-nullable so \"not yet decided\" is something the drafter STATES rather than\n * something a missing key implies.\n */\n locale: z.string().trim().min(2).nullable(),\n /** `null` when the jurisdiction decision is still open, for the same reason as `locale`. */\n jurisdictionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n /**\n * Publication-axis decisions. Empty is the honest answer for a first draft — a variant selection is a\n * DECISION the document makes, and there is no \"undecided\" selection: an undecided axis is omitted.\n */\n variantSelections: z.array(ComplianceDocumentCandidateVariantSelectionGenerationSchema),\n sections: z.array(ComplianceDocumentCandidateSectionGenerationSchema).min(1),\n reviewChecklistRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n /** What the draft does NOT cover, stated by the drafter rather than discovered by the reader. */\n limitationRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n});\nexport type ComplianceDocumentCandidateGeneration = z.infer<typeof ComplianceDocumentCandidateGenerationSchema>;\n\n/** Normalize strict provider output into the canonical family value: `null` → absent, plus the version stamp. */\nexport function parseComplianceDocumentCandidateGeneration(input: unknown): ComplianceDocumentCandidate {\n const generated = ComplianceDocumentCandidateGenerationSchema.parse(input);\n return ComplianceDocumentCandidateSchema.parse({\n version: ComplianceDocumentCandidateVersion.V1,\n documentRef: generated.documentRef,\n title: generated.title,\n ...(generated.locale === null ? {} : { locale: generated.locale }),\n ...(generated.jurisdictionRefs === null ? {} : { jurisdictionRefs: generated.jurisdictionRefs }),\n variantSelections: generated.variantSelections,\n sections: generated.sections.map((section) => ({\n sectionRef: section.sectionRef,\n order: section.order,\n title: section.title,\n ...(section.concernRef === null ? {} : { concernRef: section.concernRef }),\n clauses: section.clauses.map((clause) => ({\n clauseRef: clause.clauseRef,\n order: clause.order,\n bodyMarkdown: clause.bodyMarkdown,\n completeness: clause.completeness,\n // Absence, not `undefined`: the family schema forbids the key on a DERIVED clause, and a\n // strictObject carrying an explicit `undefined` is not the same as one omitting the key.\n ...(clause.incompleteness === null ? {} : { incompleteness: clause.incompleteness }),\n factRefs: clause.factRefs,\n sourcePolicyRefs: clause.sourcePolicyRefs,\n claimGuardRefs: clause.claimGuardRefs,\n })),\n })),\n reviewChecklistRefs: generated.reviewChecklistRefs,\n limitationRefs: generated.limitationRefs,\n });\n}\n"]}
1
+ {"version":3,"file":"compliance-document-candidate-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,iCAAiC,EACjC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,GAEhC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE7C,yGAAyG;AACzG,MAAM,CAAC,MAAM,iDAAiD,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9E,KAAK,EAAE,WAAW;IAClB,QAAQ,EAAE,WAAW;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iDAAiD,GAAG,CAAC;KAC/D,YAAY,CAAC;IACZ,SAAS,EAAE,qCAAqC;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,WAAW;IACzB,uFAAuF;IACvF,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,+BAA+B,CAAC;IACrD,2GAA2G;IAC3G,cAAc,EAAE,iDAAiD,CAAC,QAAQ,EAAE;IAC5E,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,qCAAqC,CAAC;IACxD;;;;;;;;;OASG;IACH,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrF,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC,GAAG,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AAM,CAAC,YAAY;gBACjC,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,yFAAyF;gBACzF,yFAAyF;gBACzF,GAAG,CAAC,MAAM,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC;gBACpF,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,GAAG,CAAC,MAAM,CAAC,mBAAmB,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBACnG,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;gBACzC,cAAc,EAAE,MAAM,CAAC,cAAc;aACtC,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;QAClD,cAAc,EAAE,SAAS,CAAC,cAAc;KACzC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport {\n ComplianceDocumentCandidateSchema,\n ComplianceDocumentCandidateVersion,\n ComplianceDocumentNamespacedRefSchema,\n ComplianceStatementCompleteness,\n type ComplianceDocumentCandidate,\n} from \"./compliance-document-candidate.schemas\";\nimport { ComplianceConcern } from \"./compliance-completeness-statement.schemas\";\nimport { KNOWN_DOCUMENT_REFS_BY_NAME } from \"./required-document-set.schemas\";\n\n/**\n * The STRICT contract a provider answers for the `compliance-document-candidate` family.\n *\n * ## Why the family schema is not this contract\n *\n * The family schema is what a HAND-AUTHORED file is parsed against, so it is permissive where a human\n * would reasonably leave a key out: `completeness` defaults, `incompleteness` is optional, `locale` and\n * `jurisdictionRefs` are optional, `variantSelections` and `limitationRefs` default to empty. Every one\n * of those defaults is right for a human and wrong for a provider, for the reason three families in a\n * row shipped a broken lane in 2026-08: a model handed the permissive schema satisfies it by OMISSION,\n * and an omission is indistinguishable from a considered answer.\n *\n * ## The one that is not merely untidy\n *\n * `completeness` defaults to {@link ComplianceStatementCompleteness.DERIVED}, the STRICT state — a\n * clause claiming to be established from what the application is, whose every cited fact must be\n * declared. That default is correct for a hand-authored clause, where the cost of being wrong is a\n * refusal a human can answer.\n *\n * Given to a MODEL it inverts: a drafter that simply never emits the key produces a document of\n * silently-`DERIVED` clauses, and the fact-binding check — the one guard standing between a draft and\n * an unfounded legal claim — is exactly the thing that then rejects it. So the model is either blocked\n * by a rule it was never told about, or, on the clauses whose facts happen to exist, asserts as\n * established things it could not establish. **This is the single direction that readmits invention**,\n * which is why `completeness` is required-and-explicit here.\n *\n * ## Nullable-and-required, not optional\n *\n * Every deferrable field is `.nullable()` and required, matching every sibling generation contract\n * (`BusinessModelLiteSnapshotGenerationSchema`, `ApplicationDocumentFactSpecificationGenerationSchema`).\n * An omitted key and a considered \"there is none\" are different answers, and a provider that may drop a\n * key gives no way to tell them apart. The normalizer turns `null` back into absence, which is what the\n * family schema means by an unanswered second-step question.\n *\n * ## What the runtime stamps, and what it deliberately does not\n *\n * Only `version` — the family's schema discriminator, which is not content. Unlike the fact\n * specification, this contract does NOT stamp refs: a `clauseRef`, `sectionRef` and `documentRef` are\n * things the DOCUMENT says about its own structure, authored by the drafter, and inventing them in the\n * runtime would be the runtime writing part of the document.\n */\n\nconst ProseSchema = z.string().trim().min(1);\n\n/** What a marked statement needs and who supplies it — required whenever completeness is not DERIVED. */\nexport const ComplianceStatementIncompletenessGenerationSchema = z.strictObject({\n needs: ProseSchema,\n closedBy: ProseSchema,\n});\n\nexport const ComplianceDocumentCandidateClauseGenerationSchema = z\n .strictObject({\n clauseRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n bodyMarkdown: ProseSchema,\n /** Required, never defaulted — see the file header. This is the invention boundary. */\n completeness: z.enum(ComplianceStatementCompleteness),\n /** `null` for a DERIVED clause; the pairing is enforced below exactly as the family schema enforces it. */\n incompleteness: ComplianceStatementIncompletenessGenerationSchema.nullable(),\n factRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n /**\n * Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.\n *\n * The clause half of issue #244, and it was found through the method's own prose rather than by\n * looking: the drafting guidance says \"**Clauses carry the same claim**, as `satisfiesClauseRefs`\"\n * while this `strictObject` had no such key, so the instruction was unfollowable at both levels.\n * One claim, two call sites — see `.claude/rules/invariant-call-site-enumeration.md`.\n *\n * Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.\n */\n satisfiesClauseRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n sourcePolicyRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n claimGuardRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n })\n .superRefine((clause, context) => {\n const marked = clause.completeness !== ComplianceStatementCompleteness.DERIVED;\n /*\n * Checked HERE as well as on the family schema, and the duplication earns its keep: a generation\n * rejection's message goes back to the MODEL as a retry finding, naming the clause it must fix. The\n * family schema would catch the same violation after normalization, as a Zod path index — correct,\n * and useless as a repair instruction.\n */\n if (marked && clause.incompleteness === null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is marked ${clause.completeness}, so it must state what it needs and who closes it`,\n });\n }\n if (!marked && clause.incompleteness !== null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is DERIVED, so it is established and cannot also declare what it is missing`,\n });\n }\n });\n\nexport const ComplianceDocumentCandidateSectionGenerationSchema = z.strictObject({\n sectionRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n title: ProseSchema,\n /**\n * Which compliance concern this section answers — `null` for a section that answers none (a\n * preamble, a contact block).\n *\n * Required-and-nullable rather than optional, like every other deferrable field here: the drafter is\n * told to write one section per concern from the composition reference, so omitting the key is not a\n * considered \"this answers no concern\" — it is a section whose concern nobody recorded, and the\n * completeness statement projected from it would silently under-count what the document covers.\n *\n * CONSTRAINED to {@link ComplianceConcern} since 2026-08-29, and the reason is measured rather than\n * tidiness. As a free string it was answerable with `null`, and the first document produced live\n * answered `null` for all four of its sections — so `projectComplianceCompletenessStatement`, which\n * groups clauses BY CONCERN, saw nothing to group and returned an empty statement. The completeness\n * projection was correct code with no reachable input. A free-form concern name would have been no\n * better: the projection matches against the enum's values, so `\"retention\"` and\n * `\"retention-and-deletion\"` are a silent miss and a reported gap that is not one.\n */\n concernRef: z.enum(ComplianceConcern).nullable(),\n /**\n * Which of the document blueprint's REQUIRED sections this section satisfies — `null` for a section\n * that satisfies none (a preamble, a contact block).\n *\n * ## The measured defect this closes (issue #244)\n *\n * The field exists on the family schema and was ABSENT here, and this contract is a `strictObject`,\n * so the drafter could not emit it however clearly its method asked. Every landed document therefore\n * claimed nothing, and the coherence report's `compliance-document-required-section-not-covered`\n * check reported EVERY required section uncovered on EVERY run — permanently, for every application.\n *\n * Measured on the first live service-terms candidate (wonder-crm, 2026-09-02): \"11 of 11 section(s)\n * this document's definition requires are claimed by no section of the draft\", on a draft whose\n * eleven sections corresponded to the blueprint's eleven one for one. The content was there; only\n * the claim was missing. A coverage check that is wrong in the alarming direction on the legal\n * surface is worse than one that is absent — it is the finding a reader learns to skip, and it masks\n * the run where a section genuinely IS missing.\n *\n * Required-and-nullable rather than optional, for the same reason as {@link concernRef} above: the\n * drafter is told to write against the blueprint's required set, so omitting the key is not a\n * considered \"this satisfies nothing\" — it is a section whose coverage nobody recorded, and the\n * coverage check cannot tell that apart from a genuine gap.\n *\n * `.min(1)` when present, because an empty array and `null` would be two spellings of one state.\n */\n satisfiesSectionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n clauses: z.array(ComplianceDocumentCandidateClauseGenerationSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateVariantSelectionGenerationSchema = z.strictObject({\n axisRef: ComplianceDocumentNamespacedRefSchema,\n optionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n supportingFactRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateGenerationSchema = z.strictObject({\n /**\n * WHICH governed document this is, from the closed set the framework knows how to measure.\n *\n * Constrained 2026-08-29. As a free namespaced ref, the first live run named\n * `compliance-document-candidate:wonder-crm-data-handling-notice` — a well-formed ref for a document\n * that exists nowhere: `CONCERNS_BY_DOCUMENT` has no entry for it, so the completeness statement had\n * no concern set to measure against, and `validateComplianceDocumentIsRequired` could not say whether\n * the application needs it. The draft was schema-valid, readable, and unmeasurable.\n *\n * A document the framework cannot name is a document it cannot state the gaps in, and stating the\n * gaps is this whole capability's purpose (D4: completeness is measured against FULL compliance).\n * Naming a NEW document is a framework change — a concern composition and a required-set rule — not\n * something a drafter decides mid-draft.\n */\n documentRef: z.enum(KNOWN_DOCUMENT_REFS_BY_NAME),\n title: ProseSchema,\n /**\n * `null` when the locale decision has not been taken — a second-step question that must never gate\n * drafting. Required-and-nullable so \"not yet decided\" is something the drafter STATES rather than\n * something a missing key implies.\n */\n locale: z.string().trim().min(2).nullable(),\n /** `null` when the jurisdiction decision is still open, for the same reason as `locale`. */\n jurisdictionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n /**\n * Publication-axis decisions. Empty is the honest answer for a first draft — a variant selection is a\n * DECISION the document makes, and there is no \"undecided\" selection: an undecided axis is omitted.\n */\n variantSelections: z.array(ComplianceDocumentCandidateVariantSelectionGenerationSchema),\n sections: z.array(ComplianceDocumentCandidateSectionGenerationSchema).min(1),\n reviewChecklistRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n /** What the draft does NOT cover, stated by the drafter rather than discovered by the reader. */\n limitationRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n});\nexport type ComplianceDocumentCandidateGeneration = z.infer<typeof ComplianceDocumentCandidateGenerationSchema>;\n\n/** Normalize strict provider output into the canonical family value: `null` → absent, plus the version stamp. */\nexport function parseComplianceDocumentCandidateGeneration(input: unknown): ComplianceDocumentCandidate {\n const generated = ComplianceDocumentCandidateGenerationSchema.parse(input);\n return ComplianceDocumentCandidateSchema.parse({\n version: ComplianceDocumentCandidateVersion.V1,\n documentRef: generated.documentRef,\n title: generated.title,\n ...(generated.locale === null ? {} : { locale: generated.locale }),\n ...(generated.jurisdictionRefs === null ? {} : { jurisdictionRefs: generated.jurisdictionRefs }),\n variantSelections: generated.variantSelections,\n sections: generated.sections.map((section) => ({\n sectionRef: section.sectionRef,\n order: section.order,\n title: section.title,\n ...(section.concernRef === null ? {} : { concernRef: section.concernRef }),\n // Absence, not `undefined`, exactly as the clause fields below: the family schema declares this\n // optional, and a strictObject carrying an explicit `undefined` is not the same as omitting it.\n ...(section.satisfiesSectionRefs === null ? {} : { satisfiesSectionRefs: section.satisfiesSectionRefs }),\n clauses: section.clauses.map((clause) => ({\n clauseRef: clause.clauseRef,\n order: clause.order,\n bodyMarkdown: clause.bodyMarkdown,\n completeness: clause.completeness,\n // Absence, not `undefined`: the family schema forbids the key on a DERIVED clause, and a\n // strictObject carrying an explicit `undefined` is not the same as one omitting the key.\n ...(clause.incompleteness === null ? {} : { incompleteness: clause.incompleteness }),\n factRefs: clause.factRefs,\n ...(clause.satisfiesClauseRefs === null ? {} : { satisfiesClauseRefs: clause.satisfiesClauseRefs }),\n sourcePolicyRefs: clause.sourcePolicyRefs,\n claimGuardRefs: clause.claimGuardRefs,\n })),\n })),\n reviewChecklistRefs: generated.reviewChecklistRefs,\n limitationRefs: generated.limitationRefs,\n });\n}\n"]}