@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,47 @@
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
2
+ import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
+ import { ComplianceDocumentCandidateSectionSchema, ComplianceDocumentCandidateVariantSelectionSchema, } from './compliance-document-candidate.schemas.js';
4
+ /**
5
+ * The governed-document CANDIDATE family's aspects.
6
+ *
7
+ * `supportingFactRefs` (and the clauses' `factRefs`, third-level and out of aspect scope) hold
8
+ * DOCUMENT-FACT CATALOG keys — which the fact-declaration aspect exposes as its `factRef` FIELD,
9
+ * not as its business key. Becoming an edge needs a lookup-field extension to the contract
10
+ * (resolve by a declared non-key field); recorded as a non-edge until that lands rather than
11
+ * pointing an edge at a key set it can never match.
12
+ */
13
+ export const COMPLIANCE_DOCUMENT_CANDIDATE_FAMILY_ASPECTS = {
14
+ schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.COMPLIANCE_DOCUMENT_CANDIDATE,
15
+ aspects: [
16
+ {
17
+ key: 'compliance-candidate.section',
18
+ snapshotPath: 'sections',
19
+ kind: FamilyAspectKind.COLLECTION,
20
+ itemSchema: ComplianceDocumentCandidateSectionSchema,
21
+ businessKey: 'sectionRef',
22
+ headlineField: 'title',
23
+ edges: [],
24
+ nonEdgeRefFields: {
25
+ concernRef: 'concern vocabulary key, not a family aspect',
26
+ satisfiesSectionRefs: 'ENGINE CATALOG section keys — the parts of the document definition this section supplies. '
27
+ + 'Not an edge: they point OUT of the application, at `requiredSectionRefs` on a document '
28
+ + 'definition the engine owns, so nothing in this family can be their target. The claim is '
29
+ + 'resolved against the catalog by the coherence report, never within the snapshot.',
30
+ },
31
+ },
32
+ {
33
+ key: 'compliance-candidate.variant-selection',
34
+ snapshotPath: 'variantSelections',
35
+ kind: FamilyAspectKind.COLLECTION,
36
+ itemSchema: ComplianceDocumentCandidateVariantSelectionSchema,
37
+ businessKey: 'axisRef',
38
+ headlineField: 'axisRef',
39
+ edges: [],
40
+ nonEdgeRefFields: {
41
+ optionRefs: 'variant-axis option vocabulary keys',
42
+ supportingFactRefs: 'document-fact catalog keys — declarations expose them as factRef, not their business key; see the family JSDoc',
43
+ },
44
+ },
45
+ ],
46
+ };
47
+ //# sourceMappingURL=compliance-documents.family-aspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compliance-documents.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-documents.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,mGAAmG,CAAC;AAEpK,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,wCAAwC,EACxC,iDAAiD,GAClD,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAA6B;IACpF,SAAS,EAAE,+CAA+C,CAAC,6BAA6B;IACxF,OAAO,EAAE;QACP;YACE,GAAG,EAAE,8BAA8B;YACnC,YAAY,EAAE,UAAU;YACxB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,wCAAwC;YACpD,WAAW,EAAE,YAAY;YACzB,aAAa,EAAE,OAAO;YACtB,KAAK,EAAE,EAAE;YACT,gBAAgB,EAAE;gBAChB,UAAU,EAAE,6CAA6C;gBACzD,oBAAoB,EAClB,4FAA4F;sBAC1F,yFAAyF;sBACzF,0FAA0F;sBAC1F,kFAAkF;aACvF;SACF;QACD;YACE,GAAG,EAAE,wCAAwC;YAC7C,YAAY,EAAE,mBAAmB;YACjC,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,iDAAiD;YAC7D,WAAW,EAAE,SAAS;YACtB,aAAa,EAAE,SAAS;YACxB,KAAK,EAAE,EAAE;YACT,gBAAgB,EAAE;gBAChB,UAAU,EAAE,qCAAqC;gBACjD,kBAAkB,EAChB,gHAAgH;aACnH;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 {\n ComplianceDocumentCandidateSectionSchema,\n ComplianceDocumentCandidateVariantSelectionSchema,\n} from './compliance-document-candidate.schemas';\n\n/**\n * The governed-document CANDIDATE family's aspects.\n *\n * `supportingFactRefs` (and the clauses' `factRefs`, third-level and out of aspect scope) hold\n * DOCUMENT-FACT CATALOG keys — which the fact-declaration aspect exposes as its `factRef` FIELD,\n * not as its business key. Becoming an edge needs a lookup-field extension to the contract\n * (resolve by a declared non-key field); recorded as a non-edge until that lands rather than\n * pointing an edge at a key set it can never match.\n */\nexport const COMPLIANCE_DOCUMENT_CANDIDATE_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.COMPLIANCE_DOCUMENT_CANDIDATE,\n aspects: [\n {\n key: 'compliance-candidate.section',\n snapshotPath: 'sections',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: ComplianceDocumentCandidateSectionSchema,\n businessKey: 'sectionRef',\n headlineField: 'title',\n edges: [],\n nonEdgeRefFields: {\n concernRef: 'concern vocabulary key, not a family aspect',\n satisfiesSectionRefs:\n 'ENGINE CATALOG section keys — the parts of the document definition this section supplies. '\n + 'Not an edge: they point OUT of the application, at `requiredSectionRefs` on a document '\n + 'definition the engine owns, so nothing in this family can be their target. The claim is '\n + 'resolved against the catalog by the coherence report, never within the snapshot.',\n },\n },\n {\n key: 'compliance-candidate.variant-selection',\n snapshotPath: 'variantSelections',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: ComplianceDocumentCandidateVariantSelectionSchema,\n businessKey: 'axisRef',\n headlineField: 'axisRef',\n edges: [],\n nonEdgeRefFields: {\n optionRefs: 'variant-axis option vocabulary keys',\n supportingFactRefs:\n 'document-fact catalog keys — declarations expose them as factRef, not their business key; see the family JSDoc',\n },\n },\n ],\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"document-fact-specification-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/document-fact-specification-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,0DAA0D,EAE1D,KAAK,oCAAoC,EAC1C,MAAM,iGAAiG,CAAC;AAuDzG,eAAO,MAAM,kDAAkD;IAE3D,2GAA2G;;IAE3G,4FAA4F;;IAE5F,oDAAoD;;;IAGpD;;;;;;OAMG;;IAEH,uGAAuG;;kBAmBvG,CAAC;AACL,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kDAAkD,CAAC,CAAC;AAE9H,eAAO,MAAM,oDAAoD;IAE7D;;;;;;;;;OASG;;;QAhDH,2GAA2G;;QAE3G,4FAA4F;;QAE5F,oDAAoD;;;QAGpD;;;;;;WAMG;;QAEH,uGAAuG;;;kBAyDvG,CAAC;AACL,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oDAAoD,CAAC,CAAC;AAElI;;;;;;;GAOG;AACH,wBAAgB,mDAAmD,CAAC,KAAK,EAAE,OAAO,GAAG,oCAAoC,CAqCxH"}
1
+ {"version":3,"file":"document-fact-specification-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/document-fact-specification-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,0DAA0D,EAE1D,KAAK,oCAAoC,EAC1C,MAAM,iGAAiG,CAAC;AA4DzG,eAAO,MAAM,kDAAkD;IAE3D,2GAA2G;;IAE3G,4FAA4F;;IAE5F,oDAAoD;;;IAGpD;;;;;;OAMG;;IAEH,uGAAuG;;kBAmBvG,CAAC;AACL,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kDAAkD,CAAC,CAAC;AAE9H,eAAO,MAAM,oDAAoD;IAE7D;;;;;;;;;OASG;;;QAhDH,2GAA2G;;QAE3G,4FAA4F;;QAE5F,oDAAoD;;;QAGpD;;;;;;WAMG;;QAEH,uGAAuG;;;kBAyDvG,CAAC;AACL,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oDAAoD,CAAC,CAAC;AAElI;;;;;;;GAOG;AACH,wBAAgB,mDAAmD,CAAC,KAAK,EAAE,OAAO,GAAG,oCAAoC,CAqCxH"}
@@ -14,9 +14,13 @@ import { ApplicationAssuranceDocumentFactContributionResolutionKind, Application
14
14
  * So this contract asks for the SUBSTANCE — which fact, is it known, and what does it say — and the
15
15
  * runtime stamps every identity. Same split as `BusinessModelLiteSnapshotGenerationSchema`.
16
16
  *
17
- * ## Only ONE authority kind is generable, and that is a deliberate limitation
17
+ * ## Only ONE authority kind is generable, and the FAMILY now agrees
18
18
  *
19
- * The family's authority union has three members and this contract can honestly produce exactly one:
19
+ * This section described a limitation of the CONTRACT while the family it lands into accepted all
20
+ * three kinds — so nothing stopped a human decision sharing the regenerated file, and the next
21
+ * producer run deleted it. Since #192 the derived family accepts `APPLICATION_SPECIFICATION` only and
22
+ * the other two live in `document-facts-authored`, which has no generation contract at all. What
23
+ * follows is therefore the reasoning, not a rule held only here:
20
24
  *
21
25
  * - `APPLICATION_SPECIFICATION` — the accepted specification IS the authority. Generable, because the
22
26
  * producer's whole job is deriving facts from specifications the application already committed.
@@ -31,7 +35,8 @@ import { ApplicationAssuranceDocumentFactContributionResolutionKind, Application
31
35
  * dressed in an authority nobody holds. That is not a gap in this contract — it is the designed
32
36
  * behaviour: an absent fact makes every clause resting on it refuse
33
37
  * (`validateComplianceDocumentCandidateFactBinding`), so the missing decision surfaces as a blocked
34
- * draft a human must resolve, instead of as confident prose.
38
+ * draft a human must resolve, instead of as confident prose. It stays absent from THIS family
39
+ * permanently; answering it lands in the authored family, and a document reads both.
35
40
  */
36
41
  const SemanticSlugSchema = z.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u, "expected a kebab-case slug");
37
42
  const FactProseSchema = z.string().trim().min(1);
@@ -1 +1 @@
1
- {"version":3,"file":"document-fact-specification-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/document-fact-specification-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,0DAA0D,EAC1D,0CAA0C,GAE3C,MAAM,iGAAiG,CAAC;AAEzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAg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AC,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE;YACvD,CAAC,CAAC,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;KACtE,CAAC,CAAC;SACF,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACpB,GAAG,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,kBAAkB,EAAE,GAAG,GAAG,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACrH,CAAC;IACJ,OAAO,0CAA0C,CAAC,KAAK,CAAC;QACtD,aAAa,EAAE,CAAC;QAChB,gBAAgB,EAAE,+BAA+B,SAAS,CAAC,YAAY,EAAE;QACzE,oBAAoB,EAAE,CAAC;QACvB,YAAY;KACb,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport {\n ApplicationAssuranceDocumentFactContributionResolutionKind,\n ApplicationDocumentFactSpecificationSchema,\n type ApplicationDocumentFactSpecification,\n} from \"../../application-creation/application-document-fact-specification.application-creation.schemas\";\n\n/**\n * The STRICT contract a provider answers for the `document-facts` family.\n *\n * ## Why the family schema is not this contract\n *\n * `ApplicationDocumentFactSpecificationSchema` is what a HAND-AUTHORED file is parsed against, so it\n * accepts every authority kind, arbitrary namespaced refs, explicit versions and a lexically sorted\n * declaration list. A provider handed that same schema has to invent ref namespaces, mint version\n * numbers and sort its own output — three ways to fail on form rather than on substance, and one way\n * (`QUALIFIED_REVIEW`) to fabricate a named human reviewer that does not exist.\n *\n * So this contract asks for the SUBSTANCE — which fact, is it known, and what does it say — and the\n * runtime stamps every identity. Same split as `BusinessModelLiteSnapshotGenerationSchema`.\n *\n * ## Only ONE authority kind is generable, and that is a deliberate limitation\n *\n * The family's authority union has three members and this contract can honestly produce exactly one:\n *\n * - `APPLICATION_SPECIFICATION` — the accepted specification IS the authority. Generable, because the\n * producer's whole job is deriving facts from specifications the application already committed.\n * - `CREATOR_DECISION` — needs `decidedByRef` and `decidedAt`. A model must not name a human, and it\n * must not invent a decision INSTANT. Under `.claude/rules/one-source-of-truth.md` rule 7 the honest\n * instant is the COMMIT time and the honest author is the commit author, neither of which exists at\n * generation time. A normalizer cannot supply them either — it is pure and has no clock.\n * - `QUALIFIED_REVIEW` — needs a named reviewer, their qualifications and an independence disclosure.\n * Generating one would be the model asserting that a review happened.\n *\n * A fact that genuinely needs a human therefore stays ABSENT from the generated file rather than being\n * dressed in an authority nobody holds. That is not a gap in this contract — it is the designed\n * behaviour: an absent fact makes every clause resting on it refuse\n * (`validateComplianceDocumentCandidateFactBinding`), so the missing decision surfaces as a blocked\n * draft a human must resolve, instead of as confident prose.\n */\n\nconst SemanticSlugSchema = z.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u, \"expected a kebab-case slug\");\nconst FactProseSchema = z.string().trim().min(1);\n\n/*\n * Resolution reuses the FAMILY's vocabulary — {@link ApplicationAssuranceDocumentFactContributionResolutionKind}.\n *\n * This file declared its own two-member copy until 2026-08-29, on the reasoning that the generation\n * contract asks for substance without the family's ref ceremony. That reasoning holds for the REFS and\n * not for the resolution: \"the provider states KNOWN\" and \"the application declares KNOWN\" are the same\n * closed vocabulary at two stages, and a second named source for it is what\n * `CLAUDE.md` forbids — one runtime source per vocabulary.\n *\n * It also cost something concrete. The landing renderer resolves a `z.literal(Enum.MEMBER)` by value\n * membership (a string primitive carries no link to its enum), so two exported enums sharing the value\n * `KNOWN` made the discriminator AMBIGUOUS and it was emitted as a bare string — which a nominal TS enum\n * refuses. The first `document-facts` file to land therefore did not compile in the application, and\n * this duplicate was one of the two reasons.\n */\n\nexport const ApplicationDocumentFactDeclarationGenerationSchema = z\n .strictObject({\n /** Stamped into `document-fact-declaration:<slug>` and `document-fact-authority:<slug>` by the runtime. */\n slug: SemanticSlugSchema,\n /** Stamped into `document-fact:<factSlug>`. This is the ref a document clause will cite. */\n factSlug: SemanticSlugSchema,\n /** Stamped into `sensitivity:<sensitivitySlug>`. */\n sensitivitySlug: SemanticSlugSchema,\n resolution: z.enum(ApplicationAssuranceDocumentFactContributionResolutionKind),\n /**\n * The fact itself, in prose, for a KNOWN resolution — `null` when the fact is not applicable.\n *\n * Nullable-and-required rather than optional, matching every sibling generation contract: an omitted\n * key and a considered \"there is none\" are different answers, and a provider that may drop a key\n * gives no way to tell them apart.\n */\n value: FactProseSchema.nullable(),\n /** Why the fact does not apply — `null` for a KNOWN resolution. Never a placeholder for an unknown. */\n reason: FactProseSchema.nullable(),\n })\n .superRefine((declaration, context) => {\n if (declaration.resolution === ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN) {\n if (declaration.value === null) {\n context.addIssue({ code: \"custom\", path: [\"value\"], message: \"a KNOWN fact must carry its value\" });\n }\n if (declaration.reason !== null) {\n context.addIssue({ code: \"custom\", path: [\"reason\"], message: \"a KNOWN fact has no not-applicable reason\" });\n }\n return;\n }\n if (declaration.reason === null) {\n context.addIssue({ code: \"custom\", path: [\"reason\"], message: \"a NOT_APPLICABLE fact must say why it does not apply\" });\n }\n if (declaration.value !== null) {\n context.addIssue({ code: \"custom\", path: [\"value\"], message: \"a NOT_APPLICABLE fact carries no value\" });\n }\n });\nexport type ApplicationDocumentFactDeclarationGeneration = z.infer<typeof ApplicationDocumentFactDeclarationGenerationSchema>;\n\nexport const ApplicationDocumentFactSpecificationGenerationSchema = z\n .strictObject({\n /**\n * The governance subject these facts speak for, as a slug — stamped into `operator:<slug>` and\n * `scope:<slug>`.\n *\n * ONE scope for the whole generated file, deliberately. The family permits per-declaration scopes so\n * a hand-authored file can carry operator facts beside tenant facts, but a producer that chose a\n * different subject per fact would be deciding shared-responsibility attribution — the thing\n * `compliance-document-system.md` is most emphatic must never be flattened or guessed. One\n * application-operator scope is the honest v1, and a second subject is a human's edit.\n */\n operatorSlug: SemanticSlugSchema,\n declarations: z.array(ApplicationDocumentFactDeclarationGenerationSchema).min(1),\n })\n .superRefine((generated, context) => {\n const seenSlugs = new Set<string>();\n const seenFactSlugs = new Set<string>();\n generated.declarations.forEach((declaration, index) => {\n if (seenSlugs.has(declaration.slug)) {\n context.addIssue({ code: \"custom\", path: [\"declarations\", index, \"slug\"], message: `duplicate declaration slug \"${declaration.slug}\"` });\n }\n seenSlugs.add(declaration.slug);\n // One scope for the whole file (above), so one answer per fact. Two declarations of the same fact\n // would be the file contradicting itself, and the family schema rejects it after stamping anyway —\n // catching it HERE means the model is told which slug collided rather than reading a path index.\n if (seenFactSlugs.has(declaration.factSlug)) {\n context.addIssue({\n code: \"custom\",\n path: [\"declarations\", index, \"factSlug\"],\n message: `\"${declaration.factSlug}\" is declared twice; one governance scope carries one answer per fact`,\n });\n }\n seenFactSlugs.add(declaration.factSlug);\n });\n });\nexport type ApplicationDocumentFactSpecificationGeneration = z.infer<typeof ApplicationDocumentFactSpecificationGenerationSchema>;\n\n/**\n * Normalize strict provider output into canonical persisted application truth.\n *\n * Three things the runtime does and the model is never asked to: stamp every namespaced ref and version,\n * attach the one governance scope, and SORT the declarations. The family requires them lexically sorted\n * by `<declarationRef>@<version>`, which is a canonicalization concern rather than a content one — asking\n * a provider to sort is asking it to fail on form.\n */\nexport function parseApplicationDocumentFactSpecificationGeneration(input: unknown): ApplicationDocumentFactSpecification {\n const generated = ApplicationDocumentFactSpecificationGenerationSchema.parse(input);\n const governanceScope = {\n subjectKind: \"APPLICATION_OPERATOR\",\n subjectRef: `operator:${generated.operatorSlug}`,\n scopeRef: `scope:${generated.operatorSlug}-application`,\n scopeVersion: 1,\n participantRefs: [],\n precedenceRuleRefs: [],\n };\n const declarations = generated.declarations\n .map((declaration) => ({\n declarationRef: `document-fact-declaration:${declaration.slug}`,\n declarationVersion: 1,\n factRef: `document-fact:${declaration.factSlug}`,\n factVersion: 1,\n governanceScope,\n sensitivityRef: `sensitivity:${declaration.sensitivitySlug}`,\n authority: {\n // The only kind a generator may honestly claim — see the file header.\n factAuthorityKind: \"APPLICATION_SPECIFICATION\",\n authorityRef: `document-fact-authority:${declaration.slug}`,\n authorityVersion: 1,\n },\n ...(declaration.resolution === ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN\n ? { resolutionKind: \"KNOWN\", value: declaration.value }\n : { resolutionKind: \"NOT_APPLICABLE\", reason: declaration.reason }),\n }))\n .sort((left, right) =>\n `${left.declarationRef}@${left.declarationVersion}` < `${right.declarationRef}@${right.declarationVersion}` ? -1 : 1,\n );\n return ApplicationDocumentFactSpecificationSchema.parse({\n schemaVersion: 1,\n specificationRef: `document-fact-specification:${generated.operatorSlug}`,\n specificationVersion: 1,\n declarations,\n });\n}\n"]}
1
+ {"version":3,"file":"document-fact-specification-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/document-fact-specification-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,0DAA0D,EAC1D,0CAA0C,GAE3C,MAAM,iGAAiG,CAAC;AAEzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,6BAA6B,EAAE,4BAA4B,CAAC,CAAC;AAChH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEjD;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,kDAAkD,GAAG,CAAC;KAChE,YAAY,CAAC;IACZ,2GAA2G;IAC3G,IAAI,EAAE,kBAAkB;IACxB,4FAA4F;IAC5F,QAAQ,EAAE,kBAAkB;IAC5B,oDAAoD;IACpD,eAAe,EAAE,kBAAkB;IACnC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,0DAA0D,CAAC;IAC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,+BAA+B,SAAS,CAAC,YAAY,EAAE;QACzE,oBAAoB,EAAE,CAAC;QACvB,YAAY;KACb,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport {\n ApplicationAssuranceDocumentFactContributionResolutionKind,\n ApplicationDocumentFactSpecificationSchema,\n type ApplicationDocumentFactSpecification,\n} from \"../../application-creation/application-document-fact-specification.application-creation.schemas\";\n\n/**\n * The STRICT contract a provider answers for the `document-facts` family.\n *\n * ## Why the family schema is not this contract\n *\n * `ApplicationDocumentFactSpecificationSchema` is what a HAND-AUTHORED file is parsed against, so it\n * accepts every authority kind, arbitrary namespaced refs, explicit versions and a lexically sorted\n * declaration list. A provider handed that same schema has to invent ref namespaces, mint version\n * numbers and sort its own output — three ways to fail on form rather than on substance, and one way\n * (`QUALIFIED_REVIEW`) to fabricate a named human reviewer that does not exist.\n *\n * So this contract asks for the SUBSTANCE — which fact, is it known, and what does it say — and the\n * runtime stamps every identity. Same split as `BusinessModelLiteSnapshotGenerationSchema`.\n *\n * ## Only ONE authority kind is generable, and the FAMILY now agrees\n *\n * This section described a limitation of the CONTRACT while the family it lands into accepted all\n * three kinds — so nothing stopped a human decision sharing the regenerated file, and the next\n * producer run deleted it. Since #192 the derived family accepts `APPLICATION_SPECIFICATION` only and\n * the other two live in `document-facts-authored`, which has no generation contract at all. What\n * follows is therefore the reasoning, not a rule held only here:\n *\n * - `APPLICATION_SPECIFICATION` — the accepted specification IS the authority. Generable, because the\n * producer's whole job is deriving facts from specifications the application already committed.\n * - `CREATOR_DECISION` — needs `decidedByRef` and `decidedAt`. A model must not name a human, and it\n * must not invent a decision INSTANT. Under `.claude/rules/one-source-of-truth.md` rule 7 the honest\n * instant is the COMMIT time and the honest author is the commit author, neither of which exists at\n * generation time. A normalizer cannot supply them either — it is pure and has no clock.\n * - `QUALIFIED_REVIEW` — needs a named reviewer, their qualifications and an independence disclosure.\n * Generating one would be the model asserting that a review happened.\n *\n * A fact that genuinely needs a human therefore stays ABSENT from the generated file rather than being\n * dressed in an authority nobody holds. That is not a gap in this contract — it is the designed\n * behaviour: an absent fact makes every clause resting on it refuse\n * (`validateComplianceDocumentCandidateFactBinding`), so the missing decision surfaces as a blocked\n * draft a human must resolve, instead of as confident prose. It stays absent from THIS family\n * permanently; answering it lands in the authored family, and a document reads both.\n */\n\nconst SemanticSlugSchema = z.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u, \"expected a kebab-case slug\");\nconst FactProseSchema = z.string().trim().min(1);\n\n/*\n * Resolution reuses the FAMILY's vocabulary — {@link ApplicationAssuranceDocumentFactContributionResolutionKind}.\n *\n * This file declared its own two-member copy until 2026-08-29, on the reasoning that the generation\n * contract asks for substance without the family's ref ceremony. That reasoning holds for the REFS and\n * not for the resolution: \"the provider states KNOWN\" and \"the application declares KNOWN\" are the same\n * closed vocabulary at two stages, and a second named source for it is what\n * `CLAUDE.md` forbids — one runtime source per vocabulary.\n *\n * It also cost something concrete. The landing renderer resolves a `z.literal(Enum.MEMBER)` by value\n * membership (a string primitive carries no link to its enum), so two exported enums sharing the value\n * `KNOWN` made the discriminator AMBIGUOUS and it was emitted as a bare string — which a nominal TS enum\n * refuses. The first `document-facts` file to land therefore did not compile in the application, and\n * this duplicate was one of the two reasons.\n */\n\nexport const ApplicationDocumentFactDeclarationGenerationSchema = z\n .strictObject({\n /** Stamped into `document-fact-declaration:<slug>` and `document-fact-authority:<slug>` by the runtime. */\n slug: SemanticSlugSchema,\n /** Stamped into `document-fact:<factSlug>`. This is the ref a document clause will cite. */\n factSlug: SemanticSlugSchema,\n /** Stamped into `sensitivity:<sensitivitySlug>`. */\n sensitivitySlug: SemanticSlugSchema,\n resolution: z.enum(ApplicationAssuranceDocumentFactContributionResolutionKind),\n /**\n * The fact itself, in prose, for a KNOWN resolution — `null` when the fact is not applicable.\n *\n * Nullable-and-required rather than optional, matching every sibling generation contract: an omitted\n * key and a considered \"there is none\" are different answers, and a provider that may drop a key\n * gives no way to tell them apart.\n */\n value: FactProseSchema.nullable(),\n /** Why the fact does not apply — `null` for a KNOWN resolution. Never a placeholder for an unknown. */\n reason: FactProseSchema.nullable(),\n })\n .superRefine((declaration, context) => {\n if (declaration.resolution === ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN) {\n if (declaration.value === null) {\n context.addIssue({ code: \"custom\", path: [\"value\"], message: \"a KNOWN fact must carry its value\" });\n }\n if (declaration.reason !== null) {\n context.addIssue({ code: \"custom\", path: [\"reason\"], message: \"a KNOWN fact has no not-applicable reason\" });\n }\n return;\n }\n if (declaration.reason === null) {\n context.addIssue({ code: \"custom\", path: [\"reason\"], message: \"a NOT_APPLICABLE fact must say why it does not apply\" });\n }\n if (declaration.value !== null) {\n context.addIssue({ code: \"custom\", path: [\"value\"], message: \"a NOT_APPLICABLE fact carries no value\" });\n }\n });\nexport type ApplicationDocumentFactDeclarationGeneration = z.infer<typeof ApplicationDocumentFactDeclarationGenerationSchema>;\n\nexport const ApplicationDocumentFactSpecificationGenerationSchema = z\n .strictObject({\n /**\n * The governance subject these facts speak for, as a slug — stamped into `operator:<slug>` and\n * `scope:<slug>`.\n *\n * ONE scope for the whole generated file, deliberately. The family permits per-declaration scopes so\n * a hand-authored file can carry operator facts beside tenant facts, but a producer that chose a\n * different subject per fact would be deciding shared-responsibility attribution — the thing\n * `compliance-document-system.md` is most emphatic must never be flattened or guessed. One\n * application-operator scope is the honest v1, and a second subject is a human's edit.\n */\n operatorSlug: SemanticSlugSchema,\n declarations: z.array(ApplicationDocumentFactDeclarationGenerationSchema).min(1),\n })\n .superRefine((generated, context) => {\n const seenSlugs = new Set<string>();\n const seenFactSlugs = new Set<string>();\n generated.declarations.forEach((declaration, index) => {\n if (seenSlugs.has(declaration.slug)) {\n context.addIssue({ code: \"custom\", path: [\"declarations\", index, \"slug\"], message: `duplicate declaration slug \"${declaration.slug}\"` });\n }\n seenSlugs.add(declaration.slug);\n // One scope for the whole file (above), so one answer per fact. Two declarations of the same fact\n // would be the file contradicting itself, and the family schema rejects it after stamping anyway —\n // catching it HERE means the model is told which slug collided rather than reading a path index.\n if (seenFactSlugs.has(declaration.factSlug)) {\n context.addIssue({\n code: \"custom\",\n path: [\"declarations\", index, \"factSlug\"],\n message: `\"${declaration.factSlug}\" is declared twice; one governance scope carries one answer per fact`,\n });\n }\n seenFactSlugs.add(declaration.factSlug);\n });\n });\nexport type ApplicationDocumentFactSpecificationGeneration = z.infer<typeof ApplicationDocumentFactSpecificationGenerationSchema>;\n\n/**\n * Normalize strict provider output into canonical persisted application truth.\n *\n * Three things the runtime does and the model is never asked to: stamp every namespaced ref and version,\n * attach the one governance scope, and SORT the declarations. The family requires them lexically sorted\n * by `<declarationRef>@<version>`, which is a canonicalization concern rather than a content one — asking\n * a provider to sort is asking it to fail on form.\n */\nexport function parseApplicationDocumentFactSpecificationGeneration(input: unknown): ApplicationDocumentFactSpecification {\n const generated = ApplicationDocumentFactSpecificationGenerationSchema.parse(input);\n const governanceScope = {\n subjectKind: \"APPLICATION_OPERATOR\",\n subjectRef: `operator:${generated.operatorSlug}`,\n scopeRef: `scope:${generated.operatorSlug}-application`,\n scopeVersion: 1,\n participantRefs: [],\n precedenceRuleRefs: [],\n };\n const declarations = generated.declarations\n .map((declaration) => ({\n declarationRef: `document-fact-declaration:${declaration.slug}`,\n declarationVersion: 1,\n factRef: `document-fact:${declaration.factSlug}`,\n factVersion: 1,\n governanceScope,\n sensitivityRef: `sensitivity:${declaration.sensitivitySlug}`,\n authority: {\n // The only kind a generator may honestly claim — see the file header.\n factAuthorityKind: \"APPLICATION_SPECIFICATION\",\n authorityRef: `document-fact-authority:${declaration.slug}`,\n authorityVersion: 1,\n },\n ...(declaration.resolution === ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN\n ? { resolutionKind: \"KNOWN\", value: declaration.value }\n : { resolutionKind: \"NOT_APPLICABLE\", reason: declaration.reason }),\n }))\n .sort((left, right) =>\n `${left.declarationRef}@${left.declarationVersion}` < `${right.declarationRef}@${right.declarationVersion}` ? -1 : 1,\n );\n return ApplicationDocumentFactSpecificationSchema.parse({\n schemaVersion: 1,\n specificationRef: `document-fact-specification:${generated.operatorSlug}`,\n specificationVersion: 1,\n declarations,\n });\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import type { FamilyAspectsDeclaration } from '../family-aspects.schemas';
2
+ /**
3
+ * The processor register's aspects — one row per party that holds this application's personal data.
4
+ *
5
+ * ## No business key, deliberately
6
+ *
7
+ * The row is a discriminated union whose two arms key on DIFFERENT fields: a configured provider by
8
+ * `providerRef`, an authored subprocessor by `subprocessorRef`. Those are addresses in different
9
+ * spaces — the schema's own uniqueness check keeps them in separate namespaces precisely so a hosting
10
+ * company sharing a slug with a configured provider is not refused — so there is no single field that
11
+ * identifies a row across the union. INDEXED is the honest identity; naming either arm's key would
12
+ * make half the rows unaddressable.
13
+ *
14
+ * Both refs are therefore declared as non-edge refs: they resolve into vocabularies (the application's
15
+ * configured providers, and a slug the operator coins), not into another aspect.
16
+ *
17
+ * `legalEntityName` headlines because it is the reviewable fact. "Anthropic" is a brand; a notice, a
18
+ * DPA and a supervisory authority all need the party an obligation actually binds.
19
+ */
20
+ export declare const PROCESSOR_REGISTER_FAMILY_ASPECTS: FamilyAspectsDeclaration;
21
+ //# sourceMappingURL=processor-register.family-aspects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processor-register.family-aspects.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/processor-register.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAI1E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iCAAiC,EAAE,wBAiB/C,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
2
+ import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
+ import { ApplicationProcessorDeclarationSchema } from './processor-register.schemas.js';
4
+ /**
5
+ * The processor register's aspects — one row per party that holds this application's personal data.
6
+ *
7
+ * ## No business key, deliberately
8
+ *
9
+ * The row is a discriminated union whose two arms key on DIFFERENT fields: a configured provider by
10
+ * `providerRef`, an authored subprocessor by `subprocessorRef`. Those are addresses in different
11
+ * spaces — the schema's own uniqueness check keeps them in separate namespaces precisely so a hosting
12
+ * company sharing a slug with a configured provider is not refused — so there is no single field that
13
+ * identifies a row across the union. INDEXED is the honest identity; naming either arm's key would
14
+ * make half the rows unaddressable.
15
+ *
16
+ * Both refs are therefore declared as non-edge refs: they resolve into vocabularies (the application's
17
+ * configured providers, and a slug the operator coins), not into another aspect.
18
+ *
19
+ * `legalEntityName` headlines because it is the reviewable fact. "Anthropic" is a brand; a notice, a
20
+ * DPA and a supervisory authority all need the party an obligation actually binds.
21
+ */
22
+ export const PROCESSOR_REGISTER_FAMILY_ASPECTS = {
23
+ schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.APPLICATION_PROCESSOR_REGISTER,
24
+ aspects: [
25
+ {
26
+ key: 'processor-register.processor',
27
+ snapshotPath: 'processors',
28
+ kind: FamilyAspectKind.COLLECTION,
29
+ // A discriminated union (CONFIGURED_PROVIDER | AUTHORED) — the drift pins read its MERGED shape.
30
+ itemSchema: ApplicationProcessorDeclarationSchema,
31
+ headlineField: 'legalEntityName',
32
+ edges: [],
33
+ nonEdgeRefFields: {
34
+ providerRef: 'the configured provider this entry describes — a composition key, not an aspect',
35
+ subprocessorRef: 'an operator-coined slug for a subprocessor nothing configures',
36
+ },
37
+ },
38
+ ],
39
+ };
40
+ //# sourceMappingURL=processor-register.family-aspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processor-register.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/processor-register.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,qCAAqC,EAAE,MAAM,8BAA8B,CAAC;AAErF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAA6B;IACzE,SAAS,EAAE,+CAA+C,CAAC,8BAA8B;IACzF,OAAO,EAAE;QACP;YACE,GAAG,EAAE,8BAA8B;YACnC,YAAY,EAAE,YAAY;YAC1B,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,iGAAiG;YACjG,UAAU,EAAE,qCAAqC;YACjD,aAAa,EAAE,iBAAiB;YAChC,KAAK,EAAE,EAAE;YACT,gBAAgB,EAAE;gBAChB,WAAW,EAAE,iFAAiF;gBAC9F,eAAe,EAAE,+DAA+D;aACjF;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 { ApplicationProcessorDeclarationSchema } from './processor-register.schemas';\n\n/**\n * The processor register's aspects — one row per party that holds this application's personal data.\n *\n * ## No business key, deliberately\n *\n * The row is a discriminated union whose two arms key on DIFFERENT fields: a configured provider by\n * `providerRef`, an authored subprocessor by `subprocessorRef`. Those are addresses in different\n * spaces — the schema's own uniqueness check keeps them in separate namespaces precisely so a hosting\n * company sharing a slug with a configured provider is not refused — so there is no single field that\n * identifies a row across the union. INDEXED is the honest identity; naming either arm's key would\n * make half the rows unaddressable.\n *\n * Both refs are therefore declared as non-edge refs: they resolve into vocabularies (the application's\n * configured providers, and a slug the operator coins), not into another aspect.\n *\n * `legalEntityName` headlines because it is the reviewable fact. \"Anthropic\" is a brand; a notice, a\n * DPA and a supervisory authority all need the party an obligation actually binds.\n */\nexport const PROCESSOR_REGISTER_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.APPLICATION_PROCESSOR_REGISTER,\n aspects: [\n {\n key: 'processor-register.processor',\n snapshotPath: 'processors',\n kind: FamilyAspectKind.COLLECTION,\n // A discriminated union (CONFIGURED_PROVIDER | AUTHORED) — the drift pins read its MERGED shape.\n itemSchema: ApplicationProcessorDeclarationSchema,\n headlineField: 'legalEntityName',\n edges: [],\n nonEdgeRefFields: {\n providerRef: 'the configured provider this entry describes — a composition key, not an aspect',\n subprocessorRef: 'an operator-coined slug for a subprocessor nothing configures',\n },\n },\n ],\n};\n"]}
@@ -3,7 +3,18 @@ import type { StructuralTranslationSlotSpecification, TranslationSlotSpecificati
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
  interface CompositeViewDefinitionSpecRef {
9
20
  translationRef: string;
@@ -1 +1 @@
1
- {"version":3,"file":"composite-view-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/composite-view-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EACV,sCAAsC,EACtC,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAElD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,8BAA8B;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;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AC,EAAE,sCAAsC,CAAC;CACvD;AAED,gFAAgF;AAChF,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC;AAC1F,8EAA8E;AAE9E,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAC,gCAAgC,EAAE,gBAAgB,CAAC,CAAC;AAEvG,wBAAgB,wCAAwC,CACtD,cAAc,EAAE,8BAA8B,EAC9C,oBAAoB,EAAE,MAAM,+BAA+B,GAC1D,gCAAgC,CASlC;AAED,wBAAgB,kCAAkC,CAChD,GAAG,cAAc,EAAE,gCAAgC,EAAE,GACpD,0BAA0B,CAa5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"composite-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/composite-view-specification.schemas.ts"],"names":[],"mappings":"AA4DA,MAAM,UAAU,wCAAwC,CACtD,cAA8C,EAC9C,oBAA2D;IAE3D,MAAM,aAAa,GAAqC;QACtD,cAAc,EAAE,cAAc,CAAC,cAAc;QAC7C,GAAG,oBAAoB,EAAE;KAC1B,CAAC;IAEF,kCAAkC,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IAElE,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,GAAG,cAAkD;IAErD,MAAM,MAAM,GAA+B,EAAE,CAAC;IAE9C,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,IAAI,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,KAAK,CACb,6EAA6E,aAAa,CAAC,cAAc,IAAI,CAC9G,CAAC;QACJ,CAAC;QACD,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC;IACvD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,kCAAkC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AACpE,MAAM,qCAAqC,GAA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C,mBAAmB,IAAI,EAAE,CAAC,CAAC,CAAC;IACvE,KAAK,MAAM,WAAW,IAAI,iBAAiB,EAAE,CAAC;QAC5C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CACb,+CAA+C,OAAO,6BAA6B,WAAW,+DAA+D,CAC9J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport type {\n StructuralTranslationSlotSpecification,\n TranslationSlotSpecificationMap,\n} from './translation-slot-specification.schemas';\n\ninterface PublicCodeSymbolRef {\n packageName: string;\n exportName: string;\n importPath?: string;\n}\n\ninterface CompositeViewDefinitionSpecRef {\n translationRef: string;\n sectionRefs?: string[];\n}\n\n/**\n * @wildo_source:part:start saas.specifications.composite-view-specification facet:layer:specification facet:family:views\n *\n * Composite view semantic overlay: `codeHandling`, section/translation slots, and keyed `CompositeViewSpecification` map.\n */\nexport interface CompositeViewSpecificationCodeHandling {\n /** Module/application owner that authored the view. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public symbol exposing the authored composite view component. */\n viewComponentSymbol?: PublicCodeSymbolRef;\n /** Public declarations where the composite view is wired into runtime registries. */\n declarationSymbols?: PublicCodeSymbolRef[];\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\nexport interface CompositeViewSpecificationConfig {\n /** Stable runtime translation identity for this composite surface. */\n translationRef: string;\n /** Why this composite surface exists from a product/workflow perspective. */\n purpose: string;\n /** Interaction role this composite plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this composite surface is the right destination. */\n useWhen?: string;\n /** Situations where another surface should be preferred. */\n avoidWhen?: string;\n /** Meaning of the composite-view-level translatable slots. */\n textSlots?: TranslationSlotSpecificationMap;\n /** Meaning of each declared section inside the composite. */\n sections?: Record<string, StructuralTranslationSlotSpecification>;\n /** Additional domain constraints that matter beyond raw runtime structure. */\n businessConstraints?: string[];\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: CompositeViewSpecificationCodeHandling;\n}\n\n/** Keyed by the stable runtime translation identity (for example `app.foo`). */\nexport type CompositeViewSpecification = Record<string, CompositeViewSpecificationConfig>;\n/** @wildo_source:part:end saas.specifications.composite-view-specification */\n\nexport type CompositeViewSpecificationDraft = Omit<CompositeViewSpecificationConfig, 'translationRef'>;\n\nexport function compositeViewSpecificationFromDefinition(\n viewDefinition: CompositeViewDefinitionSpecRef,\n specificationFactory: () => CompositeViewSpecificationDraft,\n): CompositeViewSpecificationConfig {\n const specification: CompositeViewSpecificationConfig = {\n translationRef: viewDefinition.translationRef,\n ...specificationFactory(),\n };\n\n validateCompositeViewSpecification(viewDefinition, specification);\n\n return specification;\n}\n\nexport function buildCompositeViewSpecificationMap(\n ...specifications: CompositeViewSpecificationConfig[]\n): CompositeViewSpecification {\n const result: CompositeViewSpecification = {};\n\n for (const specification of specifications) {\n if (result[specification.translationRef]) {\n throw new Error(\n `buildCompositeViewSpecificationMap(): duplicate composite translationRef \"${specification.translationRef}\".`,\n );\n }\n result[specification.translationRef] = specification;\n }\n\n return result;\n}\n\nconst COMPOSITE_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'];\nconst COMPOSITE_SECTION_REQUIRED_TEXT_SLOTS = ['title', 'description'];\n\nfunction validateCompositeViewSpecification(\n viewDefinition: CompositeViewDefinitionSpecRef,\n specification: CompositeViewSpecificationConfig,\n): void {\n validateRequiredTextSlots(\n `composite \"${viewDefinition.translationRef}\"`,\n specification.textSlots,\n COMPOSITE_VIEW_REQUIRED_TEXT_SLOTS,\n );\n const documentedSectionRefs = Object.keys(specification.sections ?? {});\n const declaredSectionRefs = new Set(viewDefinition.sectionRefs ?? []);\n\n for (const sectionRef of documentedSectionRefs) {\n if (!declaredSectionRefs.has(sectionRef)) {\n throw new Error(\n `compositeViewSpecificationFromDefinition(): composite \"${viewDefinition.translationRef}\" documents section \"${sectionRef}\" but the authored view definition does not declare it.`,\n );\n }\n }\n\n for (const sectionRef of declaredSectionRefs) {\n if (!documentedSectionRefs.includes(sectionRef)) {\n throw new Error(\n `compositeViewSpecificationFromDefinition(): composite \"${viewDefinition.translationRef}\" declares section \"${sectionRef}\" in the authored view definition but the semantic specification does not document it.`,\n );\n }\n }\n\n for (const [sectionRef, sectionSpecification] of Object.entries(specification.sections ?? {})) {\n validateRequiredTextSlots(\n `composite \"${viewDefinition.translationRef}\" section \"${sectionRef}\"`,\n sectionSpecification.textSlots,\n COMPOSITE_SECTION_REQUIRED_TEXT_SLOTS,\n );\n }\n}\n\nfunction validateRequiredTextSlots(\n subject: string,\n documentedTextSlots: TranslationSlotSpecificationMap | undefined,\n requiredTextSlots: string[],\n): void {\n const knownTextSlots = new Set(Object.keys(documentedTextSlots ?? {}));\n for (const textSlotKey of requiredTextSlots) {\n if (!knownTextSlots.has(textSlotKey)) {\n throw new Error(\n `compositeViewSpecificationFromDefinition(): ${subject} must document text slot \"${textSlotKey}\" so the generated labelling keys stay semantically grounded.`,\n );\n }\n }\n}\n"]}
1
+ {"version":3,"file":"composite-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/composite-view-specification.schemas.ts"],"names":[],"mappings":"AAuEA,MAAM,UAAU,wCAAwC,CACtD,cAA8C,EAC9C,oBAA2D;IAE3D,MAAM,aAAa,GAAqC;QACtD,cAAc,EAAE,cAAc,CAAC,cAAc;QAC7C,GAAG,oBAAoB,EAAE;KAC1B,CAAC;IAEF,kCAAkC,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IAElE,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,GAAG,cAAkD;IAErD,MAAM,MAAM,GAA+B,EAAE,CAAC;IAE9C,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,IAAI,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,KAAK,CACb,6EAA6E,aAAa,CAAC,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AC,cAAc,cAAc,UAAU,GAAG,EACtE,oBAAoB,CAAC,SAAS,EAC9B,qCAAqC,CACtC,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,yBAAyB,CAChC,OAAe,EACf,mBAAgE,EAChE,iBAA2B;IAE3B,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,CAAC;IACvE,KAAK,MAAM,WAAW,IAAI,iBAAiB,EAAE,CAAC;QAC5C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CACb,+CAA+C,OAAO,6BAA6B,WAAW,+DAA+D,CAC9J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport type {\n StructuralTranslationSlotSpecification,\n TranslationSlotSpecificationMap,\n} from './translation-slot-specification.schemas';\n\ninterface PublicCodeSymbolRef {\n packageName: string;\n exportName: string;\n /**\n * PUBLIC SUBPATH only — a subpath the owning package declares in\n * `package.json#exports`, so `${packageName}/${importPath}` resolves. For a module\n * that has no public door, author `filePathHint` instead (issue #150).\n */\n importPath?: string;\n /**\n * MODULE LOCATION inside the owning package — a navigation aid, never concatenated\n * onto `packageName`. See `CodeSymbolRef` in `@wildo-ai/zod-decorators` for the\n * canonical contract this narrows.\n */\n filePathHint?: string;\n}\n\ninterface CompositeViewDefinitionSpecRef {\n translationRef: string;\n sectionRefs?: string[];\n}\n\n/**\n * @wildo_source:part:start saas.specifications.composite-view-specification facet:layer:specification facet:family:views\n *\n * Composite view semantic overlay: `codeHandling`, section/translation slots, and keyed `CompositeViewSpecification` map.\n */\nexport interface CompositeViewSpecificationCodeHandling {\n /** Module/application owner that authored the view. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public symbol exposing the authored composite view component. */\n viewComponentSymbol?: PublicCodeSymbolRef;\n /** Public declarations where the composite view is wired into runtime registries. */\n declarationSymbols?: PublicCodeSymbolRef[];\n /** Extra caveats for coding/transposition consumers. */\n notes?: string[];\n}\n\nexport interface CompositeViewSpecificationConfig {\n /** Stable runtime translation identity for this composite surface. */\n translationRef: string;\n /** Why this composite surface exists from a product/workflow perspective. */\n purpose: string;\n /** Interaction role this composite plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this composite surface is the right destination. */\n useWhen?: string;\n /** Situations where another surface should be preferred. */\n avoidWhen?: string;\n /** Meaning of the composite-view-level translatable slots. */\n textSlots?: TranslationSlotSpecificationMap;\n /** Meaning of each declared section inside the composite. */\n sections?: Record<string, StructuralTranslationSlotSpecification>;\n /** Additional domain constraints that matter beyond raw runtime structure. */\n businessConstraints?: string[];\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: CompositeViewSpecificationCodeHandling;\n}\n\n/** Keyed by the stable runtime translation identity (for example `app.foo`). */\nexport type CompositeViewSpecification = Record<string, CompositeViewSpecificationConfig>;\n/** @wildo_source:part:end saas.specifications.composite-view-specification */\n\nexport type CompositeViewSpecificationDraft = Omit<CompositeViewSpecificationConfig, 'translationRef'>;\n\nexport function compositeViewSpecificationFromDefinition(\n viewDefinition: CompositeViewDefinitionSpecRef,\n specificationFactory: () => CompositeViewSpecificationDraft,\n): CompositeViewSpecificationConfig {\n const specification: CompositeViewSpecificationConfig = {\n translationRef: viewDefinition.translationRef,\n ...specificationFactory(),\n };\n\n validateCompositeViewSpecification(viewDefinition, specification);\n\n return specification;\n}\n\nexport function buildCompositeViewSpecificationMap(\n ...specifications: CompositeViewSpecificationConfig[]\n): CompositeViewSpecification {\n const result: CompositeViewSpecification = {};\n\n for (const specification of specifications) {\n if (result[specification.translationRef]) {\n throw new Error(\n `buildCompositeViewSpecificationMap(): duplicate composite translationRef \"${specification.translationRef}\".`,\n );\n }\n result[specification.translationRef] = specification;\n }\n\n return result;\n}\n\nconst COMPOSITE_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'];\nconst COMPOSITE_SECTION_REQUIRED_TEXT_SLOTS = ['title', 'description'];\n\nfunction validateCompositeViewSpecification(\n viewDefinition: CompositeViewDefinitionSpecRef,\n specification: CompositeViewSpecificationConfig,\n): void {\n validateRequiredTextSlots(\n `composite \"${viewDefinition.translationRef}\"`,\n specification.textSlots,\n COMPOSITE_VIEW_REQUIRED_TEXT_SLOTS,\n );\n const documentedSectionRefs = Object.keys(specification.sections ?? {});\n const declaredSectionRefs = new Set(viewDefinition.sectionRefs ?? []);\n\n for (const sectionRef of documentedSectionRefs) {\n if (!declaredSectionRefs.has(sectionRef)) {\n throw new Error(\n `compositeViewSpecificationFromDefinition(): composite \"${viewDefinition.translationRef}\" documents section \"${sectionRef}\" but the authored view definition does not declare it.`,\n );\n }\n }\n\n for (const sectionRef of declaredSectionRefs) {\n if (!documentedSectionRefs.includes(sectionRef)) {\n throw new Error(\n `compositeViewSpecificationFromDefinition(): composite \"${viewDefinition.translationRef}\" declares section \"${sectionRef}\" in the authored view definition but the semantic specification does not document it.`,\n );\n }\n }\n\n for (const [sectionRef, sectionSpecification] of Object.entries(specification.sections ?? {})) {\n validateRequiredTextSlots(\n `composite \"${viewDefinition.translationRef}\" section \"${sectionRef}\"`,\n sectionSpecification.textSlots,\n COMPOSITE_SECTION_REQUIRED_TEXT_SLOTS,\n );\n }\n}\n\nfunction validateRequiredTextSlots(\n subject: string,\n documentedTextSlots: TranslationSlotSpecificationMap | undefined,\n requiredTextSlots: string[],\n): void {\n const knownTextSlots = new Set(Object.keys(documentedTextSlots ?? {}));\n for (const textSlotKey of requiredTextSlots) {\n if (!knownTextSlots.has(textSlotKey)) {\n throw new Error(\n `compositeViewSpecificationFromDefinition(): ${subject} must document text slot \"${textSlotKey}\" so the generated labelling keys stay semantically grounded.`,\n );\n }\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { FamilyAspectsDeclaration } from '../family-aspects.schemas';
2
+ export declare const DOMAIN_PLAN_FAMILY_ASPECTS: FamilyAspectsDeclaration;
3
+ //# sourceMappingURL=domain-plan.family-aspects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain-plan.family-aspects.d.ts","sourceRoot":"","sources":["../../../../../src/_core/domain-plan/domain-plan.family-aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAK1E,eAAO,MAAM,0BAA0B,EAAE,wBA4BxC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { ApplicationSpecificationFamilySemanticSchemaRef } from '../../application-creation/application-specification-family-identity.application-creation.schemas.js';
2
+ import { FamilyAspectKind } from '../family-aspects.schemas.js';
3
+ import { ModuleBusinessSemanticsSchema } from '../business-semantics.specifications.schemas.js';
4
+ import { DomainRelationshipDraftSchema } from './domain-plan-output-set.schemas.js';
5
+ export const DOMAIN_PLAN_FAMILY_ASPECTS = {
6
+ schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.DOMAIN_PLAN_OUTPUT_SET,
7
+ aspects: [
8
+ {
9
+ key: 'domain-plan.module',
10
+ snapshotPath: 'modules',
11
+ kind: FamilyAspectKind.COLLECTION,
12
+ itemSchema: ModuleBusinessSemanticsSchema,
13
+ businessKey: 'relatedModuleId',
14
+ headlineField: 'relatedModuleId',
15
+ edges: [],
16
+ },
17
+ {
18
+ key: 'domain-plan.relationship',
19
+ snapshotPath: 'relationships',
20
+ kind: FamilyAspectKind.COLLECTION,
21
+ itemSchema: DomainRelationshipDraftSchema,
22
+ businessKey: 'relationshipRef',
23
+ headlineField: 'relationshipRef',
24
+ edges: [],
25
+ nonEdgeRefFields: {
26
+ sourceResourceRef: "an APPLICATION domain resource — the workbench's domain-model introspection surface, not a family aspect",
27
+ targetResourceRef: "an APPLICATION domain resource — same surface as sourceResourceRef",
28
+ },
29
+ },
30
+ ],
31
+ };
32
+ //# sourceMappingURL=domain-plan.family-aspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain-plan.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/domain-plan/domain-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,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEjF,MAAM,CAAC,MAAM,0BAA0B,GAA6B;IAClE,SAAS,EAAE,+CAA+C,CAAC,sBAAsB;IACjF,OAAO,EAAE;QACP;YACE,GAAG,EAAE,oBAAoB;YACzB,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,6BAA6B;YACzC,WAAW,EAAE,iBAAiB;YAC9B,aAAa,EAAE,iBAAiB;YAChC,KAAK,EAAE,EAAE;SACV;QACD;YACE,GAAG,EAAE,0BAA0B;YAC/B,YAAY,EAAE,eAAe;YAC7B,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,6BAA6B;YACzC,WAAW,EAAE,iBAAiB;YAC9B,aAAa,EAAE,iBAAiB;YAChC,KAAK,EAAE,EAAE;YACT,gBAAgB,EAAE;gBAChB,iBAAiB,EACf,0GAA0G;gBAC5G,iBAAiB,EACf,oEAAoE;aACvE;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 { ModuleBusinessSemanticsSchema } from '../business-semantics.specifications.schemas';\nimport { DomainRelationshipDraftSchema } from './domain-plan-output-set.schemas';\n\nexport const DOMAIN_PLAN_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.DOMAIN_PLAN_OUTPUT_SET,\n aspects: [\n {\n key: 'domain-plan.module',\n snapshotPath: 'modules',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: ModuleBusinessSemanticsSchema,\n businessKey: 'relatedModuleId',\n headlineField: 'relatedModuleId',\n edges: [],\n },\n {\n key: 'domain-plan.relationship',\n snapshotPath: 'relationships',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: DomainRelationshipDraftSchema,\n businessKey: 'relationshipRef',\n headlineField: 'relationshipRef',\n edges: [],\n nonEdgeRefFields: {\n sourceResourceRef:\n \"an APPLICATION domain resource — the workbench's domain-model introspection surface, not a family aspect\",\n targetResourceRef:\n \"an APPLICATION domain resource — same surface as sourceResourceRef\",\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
  interface ExecutionViewDefinitionSpecRef {
9
20
  resourceType: string;
@@ -1 +1 @@
1
- {"version":3,"file":"execution-view-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/execution-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,C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B,EAAE,MAAM,+BAA+B,GAC1D,gCAAgC,CAUlC;AAED,wBAAgB,kCAAkC,CAChD,GAAG,cAAc,EAAE,gCAAgC,EAAE,GACpD,0BAA0B,CAiB5B"}
1
+ {"version":3,"file":"execution-view-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/execution-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,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,8BAA8B;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,MAAM,WAAW,sCAAsC;IACrD,iEAAiE;IACjE,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC3C,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,gCAAgC;IAC/C,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,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,sCAAsC,CAAC;CACvD;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC;AAE1F,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,gCAAgC,EAChC,cAAc,GAAG,SAAS,CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,0CAA0C,CACxD,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,GACd,MAAM,CAER;AAED,wBAAgB,wCAAwC,CACtD,cAAc,EAAE,8BAA8B,EAC9C,oBAAoB,EAAE,MAAM,+BAA+B,GAC1D,gCAAgC,CAUlC;AAED,wBAAgB,kCAAkC,CAChD,GAAG,cAAc,EAAE,gCAAgC,EAAE,GACpD,0BAA0B,CAiB5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"execution-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/execution-view-specification.schemas.ts"],"names":[],"mappings":"AAwEA;;GAEG;AACH,MAAM,UAAU,0CAA0C,CACxD,YAAoB,EACpB,OAAe;IAEf,OAAO,aAAa,YAAY,IAAI,OAAO,EAAE,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,cAA8C,EAC9C,oBAA2D;IAE3D,MAAM,aAAa,GAAqC;QACtD,YAAY,EAAE,cAAc,CAAC,YAAY;QACzC,OAAO,EAAE,cAAc,CAAC,GAAG;QAC3B,GAAG,oBAAoB,EAAE;KAC1B,CAAC;IAEF,kCAAkC,CAAC,aAAa,CAAC,CAAC;IAElD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,GAAG,cAAkD;IAErD,MAAM,MAAM,GAA+B,EAAE,CAAC;IAE9C,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,MAAM,GAAG,GAAG,0CAA0C,CACpD,aAAa,CAAC,YAAY,EAC1B,aAAa,CAAC,OAAO,CACtB,CAAC;QACF,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CACb,gFAAgF,GAAG,IAAI,CACxF,CAAC;QACJ,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;IAC9B,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,kCAAkC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAEpE,SAAS,kCAAkC,CACzC,aAA+C;IAE/C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3E,KAAK,MAAM,WAAW,IAAI,kCAAkC,EAAE,CAAC;QAC7D,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CACb,0DAA0D,0CAA0C,CAClG,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\ninterface ExecutionViewDefinitionSpecRef {\n resourceType: string;\n ref: string;\n}\n\n/**\n * Import-oriented coding/transposition metadata for an execution view.\n *\n * Execution views are custom-renderer-first and always resource-owned.\n * `viewComponentSymbol` is a first-class concern here, unlike for chart\n * specifications where the rendered output is data-declarative.\n */\nexport interface ExecutionViewSpecificationCodeHandling {\n /** Module/application owner that authored the execution view. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public symbol exposing the authored execution renderer component. */\n viewComponentSymbol?: PublicCodeSymbolRef;\n /** Public declarations where the execution 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 execution view.\n *\n * Execution is resource-locked at the runtime schema level\n * (`scope: FrontendView_ScopeMode.RESOURCE`), so the specification contract\n * mirrors that constraint: every execution specification names its owning\n * `resourceType` and a `viewRef` local to that resource.\n */\nexport interface ExecutionViewSpecificationConfig {\n /** Stable resource type that owns this execution view. */\n resourceType: string;\n /** Stable runtime view reference local to the owning resource. */\n viewRef: string;\n /** Why this execution surface exists from a product/workflow perspective. */\n purpose: string;\n /** Interaction role this surface plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this 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?: ExecutionViewSpecificationCodeHandling;\n}\n\n/**\n * Keyed by `buildResourceExecutionViewSpecificationKey(resourceType, viewRef)`\n * (`resources.<resourceType>.<viewRef>`).\n */\nexport type ExecutionViewSpecification = Record<string, ExecutionViewSpecificationConfig>;\n\nexport type ExecutionViewSpecificationDraft = Omit<\n ExecutionViewSpecificationConfig,\n 'resourceType' | 'viewRef'\n>;\n\n/**\n * Build the namespaced specification key for a resource-owned execution view.\n */\nexport function buildResourceExecutionViewSpecificationKey(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\nexport function executionViewSpecificationFromDefinition(\n viewDefinition: ExecutionViewDefinitionSpecRef,\n specificationFactory: () => ExecutionViewSpecificationDraft,\n): ExecutionViewSpecificationConfig {\n const specification: ExecutionViewSpecificationConfig = {\n resourceType: viewDefinition.resourceType,\n viewRef: viewDefinition.ref,\n ...specificationFactory(),\n };\n\n validateExecutionViewSpecification(specification);\n\n return specification;\n}\n\nexport function buildExecutionViewSpecificationMap(\n ...specifications: ExecutionViewSpecificationConfig[]\n): ExecutionViewSpecification {\n const result: ExecutionViewSpecification = {};\n\n for (const specification of specifications) {\n const key = buildResourceExecutionViewSpecificationKey(\n specification.resourceType,\n specification.viewRef,\n );\n if (result[key]) {\n throw new Error(\n `buildExecutionViewSpecificationMap(): duplicate execution specification key \"${key}\".`,\n );\n }\n result[key] = specification;\n }\n\n return result;\n}\n\nconst EXECUTION_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'];\n\nfunction validateExecutionViewSpecification(\n specification: ExecutionViewSpecificationConfig,\n): void {\n const knownTextSlots = new Set(Object.keys(specification.textSlots ?? {}));\n for (const textSlotKey of EXECUTION_VIEW_REQUIRED_TEXT_SLOTS) {\n if (!knownTextSlots.has(textSlotKey)) {\n throw new Error(\n `executionViewSpecificationFromDefinition(): execution \"${buildResourceExecutionViewSpecificationKey(\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":"execution-view-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/execution-view-specification.schemas.ts"],"names":[],"mappings":"AAmFA;;GAEG;AACH,MAAM,UAAU,0CAA0C,CACxD,YAAoB,EACpB,OAAe;IAEf,OAAO,aAAa,YAAY,IAAI,OAAO,EAAE,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,cAA8C,EAC9C,oBAA2D;IAE3D,MAAM,aAAa,GAAqC;QACtD,YAAY,EAAE,cAAc,CAAC,YAAY;QACzC,OAAO,EAAE,cAAc,CAAC,GAAG;QAC3B,GAAG,oBAAoB,EAAE;KAC1B,CAAC;IAEF,kCAAkC,CAAC,aAAa,CAAC,CAAC;IAElD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,GAAG,cAAkD;IAErD,MAAM,MAAM,GAA+B,EAAE,CAAC;IAE9C,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,MAAM,GAAG,GAAG,0CAA0C,CACpD,aAAa,CAAC,YAAY,EAC1B,aAAa,CAAC,OAAO,CACtB,CAAC;QACF,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CACb,gFAAgF,GAAG,IAAI,CACxF,CAAC;QACJ,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;IAC9B,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,kCAAkC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAEpE,SAAS,kCAAkC,CACzC,aAA+C;IAE/C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3E,KAAK,MAAM,WAAW,IAAI,kCAAkC,EAAE,CAAC;QAC7D,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CACb,0DAA0D,0CAA0C,CAClG,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\ninterface ExecutionViewDefinitionSpecRef {\n resourceType: string;\n ref: string;\n}\n\n/**\n * Import-oriented coding/transposition metadata for an execution view.\n *\n * Execution views are custom-renderer-first and always resource-owned.\n * `viewComponentSymbol` is a first-class concern here, unlike for chart\n * specifications where the rendered output is data-declarative.\n */\nexport interface ExecutionViewSpecificationCodeHandling {\n /** Module/application owner that authored the execution view. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public symbol exposing the authored execution renderer component. */\n viewComponentSymbol?: PublicCodeSymbolRef;\n /** Public declarations where the execution 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 execution view.\n *\n * Execution is resource-locked at the runtime schema level\n * (`scope: FrontendView_ScopeMode.RESOURCE`), so the specification contract\n * mirrors that constraint: every execution specification names its owning\n * `resourceType` and a `viewRef` local to that resource.\n */\nexport interface ExecutionViewSpecificationConfig {\n /** Stable resource type that owns this execution view. */\n resourceType: string;\n /** Stable runtime view reference local to the owning resource. */\n viewRef: string;\n /** Why this execution surface exists from a product/workflow perspective. */\n purpose: string;\n /** Interaction role this surface plays in the surrounding UX. */\n uiRole: string;\n /** Situations where this 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?: ExecutionViewSpecificationCodeHandling;\n}\n\n/**\n * Keyed by `buildResourceExecutionViewSpecificationKey(resourceType, viewRef)`\n * (`resources.<resourceType>.<viewRef>`).\n */\nexport type ExecutionViewSpecification = Record<string, ExecutionViewSpecificationConfig>;\n\nexport type ExecutionViewSpecificationDraft = Omit<\n ExecutionViewSpecificationConfig,\n 'resourceType' | 'viewRef'\n>;\n\n/**\n * Build the namespaced specification key for a resource-owned execution view.\n */\nexport function buildResourceExecutionViewSpecificationKey(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\nexport function executionViewSpecificationFromDefinition(\n viewDefinition: ExecutionViewDefinitionSpecRef,\n specificationFactory: () => ExecutionViewSpecificationDraft,\n): ExecutionViewSpecificationConfig {\n const specification: ExecutionViewSpecificationConfig = {\n resourceType: viewDefinition.resourceType,\n viewRef: viewDefinition.ref,\n ...specificationFactory(),\n };\n\n validateExecutionViewSpecification(specification);\n\n return specification;\n}\n\nexport function buildExecutionViewSpecificationMap(\n ...specifications: ExecutionViewSpecificationConfig[]\n): ExecutionViewSpecification {\n const result: ExecutionViewSpecification = {};\n\n for (const specification of specifications) {\n const key = buildResourceExecutionViewSpecificationKey(\n specification.resourceType,\n specification.viewRef,\n );\n if (result[key]) {\n throw new Error(\n `buildExecutionViewSpecificationMap(): duplicate execution specification key \"${key}\".`,\n );\n }\n result[key] = specification;\n }\n\n return result;\n}\n\nconst EXECUTION_VIEW_REQUIRED_TEXT_SLOTS = ['title', 'description'];\n\nfunction validateExecutionViewSpecification(\n specification: ExecutionViewSpecificationConfig,\n): void {\n const knownTextSlots = new Set(Object.keys(specification.textSlots ?? {}));\n for (const textSlotKey of EXECUTION_VIEW_REQUIRED_TEXT_SLOTS) {\n if (!knownTextSlots.has(textSlotKey)) {\n throw new Error(\n `executionViewSpecificationFromDefinition(): execution \"${buildResourceExecutionViewSpecificationKey(\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"]}
@@ -0,0 +1,18 @@
1
+ import type { FamilyAspectsDeclaration } from './family-aspects.schemas';
2
+ /**
3
+ * The assembled family-aspects registry — every family's aspect declaration, keyed by the
4
+ * family's semantic `schemaRef`. See `family-aspects.schemas.ts` for the contract and for why
5
+ * the declarations live BESIDE their family's schemas rather than here.
6
+ *
7
+ * Every semantic family is declared. The count is deliberately not written here: it moves, and a
8
+ * number in prose has to be re-measured before it can be believed. One family is deliberately
9
+ * aspect-EMPTY (the assurance programme — see its declaration for why a versioned union refuses a
10
+ * single aspect shape), and the drift pins in `_core/__tests__/family-aspects.registry.test.ts` hold
11
+ * every declaration to the schemas it transcribes.
12
+ */
13
+ export declare const FAMILY_ASPECTS_REGISTRY: readonly FamilyAspectsDeclaration[];
14
+ /** Registry lookup by the family's semantic schemaRef (the artifact rows' `schemaRef` field). */
15
+ export declare function getFamilyAspectsBySchemaRef(schemaRef: string): FamilyAspectsDeclaration | undefined;
16
+ /** Flat lookup of one aspect declaration by its global key (`'market.icp'`). */
17
+ export declare function getFamilyAspectByKey(key: string): FamilyAspectsDeclaration['aspects'][number] | undefined;
18
+ //# sourceMappingURL=family-aspects.registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"family-aspects.registry.d.ts","sourceRoot":"","sources":["../../../../src/_core/family-aspects.registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAkBzE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,wBAAwB,EAkBtE,CAAC;AAEF,iGAAiG;AACjG,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAEnG;AAED,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,SAAS,CAMzG"}
@@ -0,0 +1,60 @@
1
+ import { VISION_FAMILY_ASPECTS } from './vision/vision.family-aspects.js';
2
+ import { MARKET_FAMILY_ASPECTS } from './market/market.family-aspects.js';
3
+ import { REQUIREMENTS_FAMILY_ASPECTS } from './requirements/requirements.family-aspects.js';
4
+ import { FEATURE_DRAFTS_FAMILY_ASPECTS } from './feature-drafts/feature-drafts.family-aspects.js';
5
+ import { ROADMAP_FAMILY_ASPECTS } from './roadmap/roadmap.family-aspects.js';
6
+ import { BUSINESS_MODEL_FAMILY_ASPECTS } from './business-model-lite/business-model.family-aspects.js';
7
+ import { BRAND_FAMILY_ASPECTS } from './brand/brand.family-aspects.js';
8
+ import { DOMAIN_PLAN_FAMILY_ASPECTS } from './domain-plan/domain-plan.family-aspects.js';
9
+ import { BUILD_PLAN_FAMILY_ASPECTS } from './build-plan/build-plan.family-aspects.js';
10
+ import { PLACEMENT_PLAN_FAMILY_ASPECTS } from './placement-plan/placement-plan.family-aspects.js';
11
+ import { COMPLIANCE_DOCUMENT_CANDIDATE_FAMILY_ASPECTS } from './compliance-documents/compliance-documents.family-aspects.js';
12
+ import { PROCESSOR_REGISTER_FAMILY_ASPECTS } from './compliance-documents/processor-register.family-aspects.js';
13
+ import { AUTHORED_DOCUMENT_FACTS_FAMILY_ASPECTS, DOCUMENT_FACTS_FAMILY_ASPECTS } from '../application-creation/document-facts.family-aspects.js';
14
+ import { DOCUMENT_RELEASE_POLICY_FAMILY_ASPECTS } from '../application-creation/document-release-policy.family-aspects.js';
15
+ import { DOCUMENT_PUBLICATION_FAMILY_ASPECTS } from '../assurance/document-publication.family-aspects.js';
16
+ import { ASSURANCE_PROGRAM_FAMILY_ASPECTS } from '../assurance/assurance-program.family-aspects.js';
17
+ /**
18
+ * The assembled family-aspects registry — every family's aspect declaration, keyed by the
19
+ * family's semantic `schemaRef`. See `family-aspects.schemas.ts` for the contract and for why
20
+ * the declarations live BESIDE their family's schemas rather than here.
21
+ *
22
+ * Every semantic family is declared. The count is deliberately not written here: it moves, and a
23
+ * number in prose has to be re-measured before it can be believed. One family is deliberately
24
+ * aspect-EMPTY (the assurance programme — see its declaration for why a versioned union refuses a
25
+ * single aspect shape), and the drift pins in `_core/__tests__/family-aspects.registry.test.ts` hold
26
+ * every declaration to the schemas it transcribes.
27
+ */
28
+ export const FAMILY_ASPECTS_REGISTRY = [
29
+ VISION_FAMILY_ASPECTS,
30
+ MARKET_FAMILY_ASPECTS,
31
+ REQUIREMENTS_FAMILY_ASPECTS,
32
+ FEATURE_DRAFTS_FAMILY_ASPECTS,
33
+ ROADMAP_FAMILY_ASPECTS,
34
+ BUSINESS_MODEL_FAMILY_ASPECTS,
35
+ BRAND_FAMILY_ASPECTS,
36
+ DOMAIN_PLAN_FAMILY_ASPECTS,
37
+ BUILD_PLAN_FAMILY_ASPECTS,
38
+ PLACEMENT_PLAN_FAMILY_ASPECTS,
39
+ COMPLIANCE_DOCUMENT_CANDIDATE_FAMILY_ASPECTS,
40
+ PROCESSOR_REGISTER_FAMILY_ASPECTS,
41
+ DOCUMENT_FACTS_FAMILY_ASPECTS,
42
+ AUTHORED_DOCUMENT_FACTS_FAMILY_ASPECTS,
43
+ DOCUMENT_RELEASE_POLICY_FAMILY_ASPECTS,
44
+ DOCUMENT_PUBLICATION_FAMILY_ASPECTS,
45
+ ASSURANCE_PROGRAM_FAMILY_ASPECTS,
46
+ ];
47
+ /** Registry lookup by the family's semantic schemaRef (the artifact rows' `schemaRef` field). */
48
+ export function getFamilyAspectsBySchemaRef(schemaRef) {
49
+ return FAMILY_ASPECTS_REGISTRY.find((declaration) => declaration.schemaRef === schemaRef);
50
+ }
51
+ /** Flat lookup of one aspect declaration by its global key (`'market.icp'`). */
52
+ export function getFamilyAspectByKey(key) {
53
+ for (const declaration of FAMILY_ASPECTS_REGISTRY) {
54
+ const aspect = declaration.aspects.find((entry) => entry.key === key);
55
+ if (aspect)
56
+ return aspect;
57
+ }
58
+ return undefined;
59
+ }
60
+ //# sourceMappingURL=family-aspects.registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"family-aspects.registry.js","sourceRoot":"","sources":["../../../../src/_core/family-aspects.registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,g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B,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;AAC5F,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,oBAAoB,CAAC,GAAW;IAC9C,KAAK,MAAM,WAAW,IAAI,uBAAuB,EAAE,CAAC;QAClD,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;QACtE,IAAI,MAAM;YAAE,OAAO,MAAM,CAAC;IAC5B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import type { FamilyAspectsDeclaration } from './family-aspects.schemas';\nimport { VISION_FAMILY_ASPECTS } from './vision/vision.family-aspects';\nimport { MARKET_FAMILY_ASPECTS } from './market/market.family-aspects';\nimport { REQUIREMENTS_FAMILY_ASPECTS } from './requirements/requirements.family-aspects';\nimport { FEATURE_DRAFTS_FAMILY_ASPECTS } from './feature-drafts/feature-drafts.family-aspects';\nimport { ROADMAP_FAMILY_ASPECTS } from './roadmap/roadmap.family-aspects';\nimport { BUSINESS_MODEL_FAMILY_ASPECTS } from './business-model-lite/business-model.family-aspects';\nimport { BRAND_FAMILY_ASPECTS } from './brand/brand.family-aspects';\nimport { DOMAIN_PLAN_FAMILY_ASPECTS } from './domain-plan/domain-plan.family-aspects';\nimport { BUILD_PLAN_FAMILY_ASPECTS } from './build-plan/build-plan.family-aspects';\nimport { PLACEMENT_PLAN_FAMILY_ASPECTS } from './placement-plan/placement-plan.family-aspects';\nimport { COMPLIANCE_DOCUMENT_CANDIDATE_FAMILY_ASPECTS } from './compliance-documents/compliance-documents.family-aspects';\nimport { PROCESSOR_REGISTER_FAMILY_ASPECTS } from './compliance-documents/processor-register.family-aspects';\nimport { AUTHORED_DOCUMENT_FACTS_FAMILY_ASPECTS, DOCUMENT_FACTS_FAMILY_ASPECTS } from '../application-creation/document-facts.family-aspects';\nimport { DOCUMENT_RELEASE_POLICY_FAMILY_ASPECTS } from '../application-creation/document-release-policy.family-aspects';\nimport { DOCUMENT_PUBLICATION_FAMILY_ASPECTS } from '../assurance/document-publication.family-aspects';\nimport { ASSURANCE_PROGRAM_FAMILY_ASPECTS } from '../assurance/assurance-program.family-aspects';\n\n/**\n * The assembled family-aspects registry — every family's aspect declaration, keyed by the\n * family's semantic `schemaRef`. See `family-aspects.schemas.ts` for the contract and for why\n * the declarations live BESIDE their family's schemas rather than here.\n *\n * Every semantic family is declared. The count is deliberately not written here: it moves, and a\n * number in prose has to be re-measured before it can be believed. One family is deliberately\n * aspect-EMPTY (the assurance programme — see its declaration for why a versioned union refuses a\n * single aspect shape), and the drift pins in `_core/__tests__/family-aspects.registry.test.ts` hold\n * every declaration to the schemas it transcribes.\n */\nexport const FAMILY_ASPECTS_REGISTRY: readonly FamilyAspectsDeclaration[] = [\n VISION_FAMILY_ASPECTS,\n MARKET_FAMILY_ASPECTS,\n REQUIREMENTS_FAMILY_ASPECTS,\n FEATURE_DRAFTS_FAMILY_ASPECTS,\n ROADMAP_FAMILY_ASPECTS,\n BUSINESS_MODEL_FAMILY_ASPECTS,\n BRAND_FAMILY_ASPECTS,\n DOMAIN_PLAN_FAMILY_ASPECTS,\n BUILD_PLAN_FAMILY_ASPECTS,\n PLACEMENT_PLAN_FAMILY_ASPECTS,\n COMPLIANCE_DOCUMENT_CANDIDATE_FAMILY_ASPECTS,\n PROCESSOR_REGISTER_FAMILY_ASPECTS,\n DOCUMENT_FACTS_FAMILY_ASPECTS,\n AUTHORED_DOCUMENT_FACTS_FAMILY_ASPECTS,\n DOCUMENT_RELEASE_POLICY_FAMILY_ASPECTS,\n DOCUMENT_PUBLICATION_FAMILY_ASPECTS,\n ASSURANCE_PROGRAM_FAMILY_ASPECTS,\n];\n\n/** Registry lookup by the family's semantic schemaRef (the artifact rows' `schemaRef` field). */\nexport function getFamilyAspectsBySchemaRef(schemaRef: string): FamilyAspectsDeclaration | undefined {\n return FAMILY_ASPECTS_REGISTRY.find((declaration) => declaration.schemaRef === schemaRef);\n}\n\n/** Flat lookup of one aspect declaration by its global key (`'market.icp'`). */\nexport function getFamilyAspectByKey(key: string): FamilyAspectsDeclaration['aspects'][number] | undefined {\n for (const declaration of FAMILY_ASPECTS_REGISTRY) {\n const aspect = declaration.aspects.find((entry) => entry.key === key);\n if (aspect) return aspect;\n }\n return undefined;\n}\n"]}