@wildo-ai/saas-specifications 1.1.9 → 1.1.11

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 (928) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/index.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
  7. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  8. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
  9. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  10. package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
  11. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  12. package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
  13. package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
  14. package/dist/esm/_core/brand/brand-name-choice.js +144 -24
  15. package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
  16. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
  17. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
  19. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
  21. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
  23. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  24. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
  25. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  26. package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
  27. package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
  28. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
  29. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
  31. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  32. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
  33. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  35. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  36. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
  37. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
  39. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  40. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +21 -3
  41. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  42. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +411 -13
  43. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
  45. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  46. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
  47. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  48. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
  49. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
  51. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  52. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +6 -0
  53. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  54. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
  55. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  56. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +1 -0
  57. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
  59. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
  61. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  62. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
  63. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  64. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  65. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  66. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  67. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  68. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  69. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  70. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
  71. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +66 -2
  73. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  74. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +42 -2
  75. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  76. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
  77. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  78. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
  79. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  81. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  82. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  83. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  85. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  86. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  87. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  88. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  89. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  90. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
  91. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  92. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
  93. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  94. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  95. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  97. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  98. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
  100. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -1
  102. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  103. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +41 -1
  104. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  105. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -1
  106. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  107. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +134 -9
  108. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  109. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
  110. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
  112. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  113. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
  114. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  115. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
  116. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  117. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
  118. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
  120. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
  122. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  123. package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
  124. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  125. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  126. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
  127. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  128. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
  129. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  130. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
  131. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  132. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
  133. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  135. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  136. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  137. package/dist/esm/_core/family-aspects.registry.js +2 -0
  138. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  139. package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
  140. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/family-aspects.schemas.js +20 -0
  142. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  143. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +6 -6
  144. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  145. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  146. package/dist/esm/_core/index.d.ts +6 -0
  147. package/dist/esm/_core/index.d.ts.map +1 -1
  148. package/dist/esm/_core/index.js +6 -0
  149. package/dist/esm/_core/index.js.map +1 -1
  150. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
  151. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  153. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  154. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  155. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
  156. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
  158. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  159. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  160. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  162. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  163. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
  164. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  166. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  167. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  168. package/dist/esm/_core/market/market.family-aspects.js +4 -1
  169. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  170. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
  171. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  172. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +6 -3
  173. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  174. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -1
  175. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  176. package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
  177. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  178. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  179. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +9 -0
  180. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  181. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
  182. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  183. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
  184. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  185. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
  186. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
  188. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  189. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -0
  190. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  191. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +2 -0
  192. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  193. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
  194. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
  195. package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
  196. package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
  197. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
  198. package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
  199. package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
  200. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -0
  201. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  202. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +12 -1
  203. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  204. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
  205. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  206. package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
  207. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  208. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
  209. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  210. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
  211. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  212. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  213. package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
  214. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  215. package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
  216. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  217. package/dist/esm/_core/resource-specification.schemas.js +73 -13
  218. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  219. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
  220. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  221. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  222. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  223. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  224. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  225. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  226. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  227. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
  228. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  229. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  230. package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
  231. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  232. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
  233. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  234. package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
  235. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  236. package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
  237. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  238. package/dist/esm/_core/service-method/service-method-validation.js +75 -0
  239. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  240. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  241. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  242. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  243. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  244. package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
  245. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  246. package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
  247. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  248. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
  249. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  250. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  251. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  252. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
  253. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  254. package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
  255. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  256. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  257. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
  258. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  259. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
  260. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  261. package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
  262. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  263. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
  264. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  265. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
  266. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  267. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
  268. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  269. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
  270. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  271. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
  272. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  273. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  274. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  275. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
  276. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  277. package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
  278. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  279. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
  280. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  281. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
  282. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
  283. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  284. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  285. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  286. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  287. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
  288. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  289. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
  290. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  291. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
  292. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  293. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
  294. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  295. package/dist/esm/application-creation.exports.d.ts +7 -0
  296. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  297. package/dist/esm/application-creation.exports.js +7 -0
  298. package/dist/esm/application-creation.exports.js.map +1 -1
  299. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
  300. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  301. package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
  302. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  303. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  304. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  305. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  306. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  307. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
  308. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  309. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
  310. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  311. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
  312. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  313. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  314. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  315. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  316. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  317. package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
  318. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  319. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
  320. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  321. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  322. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  323. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
  324. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  325. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
  326. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  327. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  328. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
  329. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  330. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  331. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  332. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  333. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  334. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  335. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  336. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
  337. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  338. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  339. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  340. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  341. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  342. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
  343. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  344. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
  345. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  346. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
  347. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  348. package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
  349. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  350. package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
  351. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  352. package/dist/esm/assurance/assurance-program.schemas.js +255 -14
  353. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  354. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  355. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  356. package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
  357. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  358. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  359. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  360. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
  361. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  362. package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
  363. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  364. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  365. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  366. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  367. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
  368. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  369. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  370. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  371. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  372. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  373. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  374. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  375. package/dist/esm/assurance/governed-document-release.js +3 -1
  376. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  377. package/dist/esm/assurance.exports.d.ts +4 -0
  378. package/dist/esm/assurance.exports.d.ts.map +1 -1
  379. package/dist/esm/assurance.exports.js +4 -0
  380. package/dist/esm/assurance.exports.js.map +1 -1
  381. package/dist/esm/companion-exports.d.ts +9 -1
  382. package/dist/esm/companion-exports.d.ts.map +1 -1
  383. package/dist/esm/companion-exports.js.map +1 -1
  384. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -1
  385. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +33 -5
  387. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +9 -12
  390. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +1 -1
  392. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +60 -6
  394. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  395. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  396. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  397. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  398. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/applications/resources/applications.resource.specification.js +2 -2
  400. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  401. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +12 -4
  402. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  403. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +46 -10
  404. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  405. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
  406. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  408. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +40 -11
  412. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -1
  414. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  415. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +44 -3
  416. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  417. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
  418. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  419. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +40 -8
  420. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  421. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +14 -8
  422. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  423. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +72 -19
  424. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  425. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +2 -2
  426. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  427. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +6 -6
  428. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  429. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  430. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  431. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
  432. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  433. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -2
  435. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  436. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
  437. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -1
  438. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  439. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +68 -12
  440. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  441. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  442. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
  443. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  444. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -1
  445. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +11 -7
  447. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  448. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
  449. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  450. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
  451. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  452. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
  453. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
  455. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  456. package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
  457. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  458. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  459. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  460. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
  461. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  462. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
  463. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  464. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
  465. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +1 -1
  466. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +4 -0
  468. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +4 -1
  470. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
  472. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
  474. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  475. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
  476. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  477. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
  478. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  479. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
  480. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +19 -13
  482. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  483. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
  484. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
  486. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  488. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  489. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  490. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  491. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
  492. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  494. package/dist/esm/engine/engine-resource-specifications.registry.js +55 -11
  495. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  496. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/errors/error-messages.specification.js +300 -5
  498. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  499. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  500. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  501. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  502. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  503. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  505. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  506. package/dist/esm/engine/features/index.d.ts +4 -2
  507. package/dist/esm/engine/features/index.d.ts.map +1 -1
  508. package/dist/esm/engine/features/index.js +6 -4
  509. package/dist/esm/engine/features/index.js.map +1 -1
  510. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
  511. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  512. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
  514. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  515. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -1
  516. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/files/resources/files.resource.specification.js +24 -3
  518. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  519. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  520. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
  521. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  522. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
  523. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  524. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  525. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  527. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  528. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  529. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  531. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  532. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  533. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  535. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  536. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  537. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  539. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  542. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  543. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  544. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  545. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
  546. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  547. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  548. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  549. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  550. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  551. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
  552. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +118 -18
  554. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  555. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
  556. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
  558. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  560. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  562. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  565. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  566. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  568. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  569. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  570. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  571. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  572. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  573. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  574. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  575. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
  576. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  577. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  578. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  579. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  580. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  581. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  582. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  583. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  584. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  585. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  586. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  587. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  588. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  589. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  591. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  592. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +6 -0
  594. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  595. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  596. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  598. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  599. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  601. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  602. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  603. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  604. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  606. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  607. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  609. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  610. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  611. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  612. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  613. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  614. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  615. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  616. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  617. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  618. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  619. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  620. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +3 -2
  622. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  623. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  624. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  625. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  626. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  628. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  629. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  630. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  632. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  633. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  634. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
  638. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  641. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  642. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  644. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  645. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  646. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  647. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  648. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  649. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  650. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  651. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  652. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  653. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  654. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  655. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  657. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  658. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  659. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  660. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  661. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  662. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  663. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  664. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  665. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  666. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  667. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  668. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  669. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  671. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  672. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  673. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  674. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  675. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  676. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
  679. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  680. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
  681. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  682. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
  683. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  684. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
  685. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  686. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
  687. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  688. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  689. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  690. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  691. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  692. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  693. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  694. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  695. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  696. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  698. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  699. package/dist/esm/engine/frontend-components/index.d.ts +7 -0
  700. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  701. package/dist/esm/engine/frontend-components/index.js +29 -0
  702. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  703. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  704. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  705. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  706. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  707. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  708. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  709. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  710. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  711. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  712. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
  713. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  714. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  715. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  716. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  717. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  718. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
  720. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  721. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  722. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  723. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  724. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  725. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  726. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  727. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  728. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
  729. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
  730. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
  731. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
  732. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  734. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  737. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  739. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  740. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  741. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  742. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  743. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  744. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  745. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  746. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  747. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  748. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  749. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  750. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  752. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  753. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  755. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  756. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
  757. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  758. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
  759. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  760. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  761. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  762. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  764. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
  766. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  767. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
  768. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  769. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  770. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  771. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  772. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  773. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  774. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  775. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
  776. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  777. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
  778. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
  779. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
  781. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +33 -7
  783. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +16 -14
  785. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +56 -53
  787. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  788. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -2
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -4
  791. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  792. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +2 -2
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
  794. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  795. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +3 -3
  796. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  797. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  798. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  800. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  801. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  802. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  803. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  804. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  805. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  806. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  808. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  809. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  810. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  811. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  812. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  813. package/dist/esm/engine/organizations/resources/index.js +1 -2
  814. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  815. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
  816. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +114 -51
  818. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  819. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
  820. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  821. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  822. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  823. package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
  824. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  825. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
  826. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  827. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +1 -1
  828. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +6 -4
  830. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  831. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -2
  832. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  833. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
  834. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
  836. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  837. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  838. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  839. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  840. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  841. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  842. package/dist/esm/engine/providers/github.provider.specification.js +8 -5
  843. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  844. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  845. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  846. package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
  847. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  848. package/dist/esm/engine/providers/index.d.ts +2 -0
  849. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  850. package/dist/esm/engine/providers/index.js +5 -1
  851. package/dist/esm/engine/providers/index.js.map +1 -1
  852. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  853. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
  855. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  856. package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
  857. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  858. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/providers/resend.provider.specification.js +8 -6
  860. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  861. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  862. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  863. package/dist/esm/engine/roles/index.d.ts +2 -2
  864. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  865. package/dist/esm/engine/roles/index.js +5 -5
  866. package/dist/esm/engine/roles/index.js.map +1 -1
  867. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  868. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  869. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  870. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  871. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  872. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  873. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  874. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  875. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
  876. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  878. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  879. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +3 -3
  880. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  881. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  883. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  884. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  885. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  886. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  887. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  888. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
  889. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  890. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
  891. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  892. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
  893. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  894. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +3 -3
  895. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  896. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +1 -1
  897. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  898. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -0
  899. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  900. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +6 -2
  901. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  902. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  903. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  904. package/dist/esm/engine/users/resources/user-self.resource.specification.js +33 -0
  905. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  906. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -1
  907. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  908. package/dist/esm/engine/users/resources/users.resource.specification.js +10 -4
  909. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/package.json +8 -8
  914. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  915. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  916. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  917. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  918. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  919. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  920. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  921. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  922. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  923. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  924. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  925. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  926. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  927. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  928. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
@@ -0,0 +1,83 @@
1
+ import { GovernedDocumentAudienceKind } from "@wildo-ai/saas-models";
2
+ import type { ApplicationCreatorInputs } from "../application-creation/application-creator-inputs.application-creation.schemas";
3
+ import { ApplicationOrganizationStructure } from "../application-creation/application-line.application-creation.schemas";
4
+ import type { AssuranceDocumentDefinition } from "./assurance-document-system.schemas";
5
+ /**
6
+ * Who an application's privacy notice is addressed to, by how its organizations are arranged (#1649).
7
+ *
8
+ * TOTAL over {@link ApplicationOrganizationStructure} by its type, so an arrangement added tomorrow does not compile
9
+ * until somebody says whom its notice addresses.
10
+ *
11
+ * - `SINGLE_OWNER` (an internal tool): one organization owns the application and its members are the users, so the
12
+ * people the notice concerns are that organization's staff. WORKFORCE.
13
+ * - `CUSTOMER_TENANTS` (a B2B SaaS): the users belong to customer organizations nobody in the application owns, and
14
+ * anyone can sign up. PUBLIC_GENERAL, the audience every notice had before lines existed.
15
+ * - `OPERATOR_WITH_CLIENTS` (a service firm): one organization runs the application, but the people whose data it holds
16
+ * are mostly its CLIENTS' people, who sign up on their own. PUBLIC_GENERAL. The firm's own staff are data subjects
17
+ * too, and their employer informs them through its workforce channels about every system it runs; the application's
18
+ * notice is the one its clients read. Keyed on the arrangement rather than on "one organization operates it" for
19
+ * exactly this reason: being operated by one organization does not make the data subjects its workforce.
20
+ *
21
+ * What a WORKFORCE notice changes is the reader, and through the reader the content: a lawful basis is usually the
22
+ * employment contract or a legal obligation rather than consent, the recipients include the employer's own HR and
23
+ * payroll processors when the application shares with them, and the notice reaches staff through the employer as well
24
+ * as through the application. Consent is the exception at work: Recital 43 states the general rule that consent is no
25
+ * valid ground where there is a clear imbalance between the person and the controller (its example is a public
26
+ * authority), and the EDPB applies it to employment: an employee can rarely refuse an employer without fear of
27
+ * detriment, so for most processing at work the basis cannot be consent, which holds only in exceptional circumstances.
28
+ * spec-cite: GDPR (EU) 2016/679 Recital 43; Art. 6(1)(b)-(c); Art. 13(1)(c) and (e).
29
+ * spec-cite: EDPB Guidelines 05/2020 on consent v1.1, §3.1.1 "Imbalance of power", paras 21-22, https://www.edpb.europa.eu/system/files/documents/files/file1/edpb_guidelines_202005_consent_en.pdf
30
+ */
31
+ export declare const PRIVACY_NOTICE_AUDIENCE_BY_ORGANIZATION_STRUCTURE: Readonly<Record<ApplicationOrganizationStructure, GovernedDocumentAudienceKind>>;
32
+ /**
33
+ * The audiences THIS application's copy of a governed document addresses (#1649).
34
+ *
35
+ * A catalog definition lists the audiences the document may address; for the privacy notice that is both
36
+ * PUBLIC_GENERAL and WORKFORCE, and which one applies is a fact about the application, not about the document. Every
37
+ * reader that records an audience (the release a composition produces, the documentation requirement a programme
38
+ * derives, the briefs the drafting and fact playbooks read) calls this, so they cannot disagree, and none copies the
39
+ * definition's list, which would claim both audiences for every application.
40
+ *
41
+ * Every other definition addresses one fixed set, returned as the definition states it.
42
+ *
43
+ * ## No line declared
44
+ *
45
+ * `undefined` reads as `CUSTOMER_TENANTS`: an application with no declared line is one created before lines existed,
46
+ * and the B2B line "reproduces that catalog exactly" (`ApplicationLine.B2B_SAAS`), PUBLIC_GENERAL included. It is not a
47
+ * guess that the line is B2B; it keeps the audience every such application's notice already had until the creator
48
+ * answers the line question, at which point the next read derives the line's own audience.
49
+ *
50
+ * ## The public `/privacy` route stays mounted on every line (decided by practice, #1649)
51
+ *
52
+ * A WORKFORCE notice is still served at `/privacy`, without a session. The information is owed at the time data is
53
+ * obtained from the staff member (Art. 13(1)) and, for data the application receives from elsewhere, such as the
54
+ * company's identity provider that provisions the account, within a reasonable period and at the latest at the first
55
+ * communication with the person (Art. 14(3)(a)-(b)). For an internal tool both moments are the staff member's first
56
+ * sign-in, before any session exists, so a route behind sign-in could not carry the notice to that moment. Art. 12(1)
57
+ * allows the information to be given by electronic means.
58
+ *
59
+ * Rejected: unmounting the route for an internal tool, which would also need line knowledge in the frontend runtime,
60
+ * which no browser bundle carries; and gating it behind a session, for the timing reason above. The employer may ALSO
61
+ * give the notice through its intranet or onboarding; the route is the application's own delivery point, not a
62
+ * substitute for those.
63
+ *
64
+ * The screens an application shows before a session exists LINK the route (#2976), on every line: sign-in, and the
65
+ * accept-invitation screen an invited member meets first. Neither the registration form (provisioned staff do not
66
+ * register) nor the consent panel (it renders behind sign-in) reaches those staff first. The link is drawn while the
67
+ * application serves the notice (a release in force, or the draft of a never-released notice, under its approval gate),
68
+ * read through `resolveServedPublicGovernedDocumentPath` in `@wildo-ai/saas-models`, which the consent panel reads
69
+ * too; an application that serves no notice draws no link, because the page would answer "unavailable".
70
+ *
71
+ * A sign-in the identity provider starts (an SSO connection with `saml.allowIdpInitiated`) opens the signed-in
72
+ * application without rendering either screen, and the consent panel links the notice only while it asks a decision.
73
+ * So the signed-in application's account menu draws the same link, through the same function (#2983); the one shell
74
+ * without it is the kiosk preset, which renders no account menu and no sign-out either.
75
+ * spec-cite: GDPR (EU) 2016/679 Art. 12(1); Art. 13(1); Art. 14(3)(a)-(b), https://gdpr-info.eu/art-14-gdpr/
76
+ *
77
+ * Throws when the derived audience is not one the definition admits: that is a catalog defect, and the catalog test
78
+ * pins that it cannot happen for the shipped catalog.
79
+ */
80
+ export declare function deriveGovernedDocumentAudienceKinds(definition: Pick<AssuranceDocumentDefinition, "identity" | "audienceKinds">, organizationStructure: ApplicationOrganizationStructure | undefined): GovernedDocumentAudienceKind[];
81
+ /** {@link deriveGovernedDocumentAudienceKinds} for an application read from its dossier, the only place its line lives. */
82
+ export declare function resolveGovernedDocumentAudienceKinds(definition: Pick<AssuranceDocumentDefinition, "identity" | "audienceKinds">, creatorInputs: ApplicationCreatorInputs | undefined): GovernedDocumentAudienceKind[];
83
+ //# sourceMappingURL=governed-document-audience.derivations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"governed-document-audience.derivations.d.ts","sourceRoot":"","sources":["../../../../src/assurance/governed-document-audience.derivations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AAChI,OAAO,EACL,gCAAgC,EAEjC,MAAM,uEAAuE,CAAC;AAE/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,iDAAiD,EAAE,QAAQ,CAAC,MAAM,CAAC,gCAAgC,EAAE,4BAA4B,CAAC,CAK3I,CAAC;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,IAAI,CAAC,2BAA2B,EAAE,UAAU,GAAG,eAAe,CAAC,EAC3E,qBAAqB,EAAE,gCAAgC,GAAG,SAAS,GAClE,4BAA4B,EAAE,CAUhC;AAED,2HAA2H;AAC3H,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,IAAI,CAAC,2BAA2B,EAAE,UAAU,GAAG,eAAe,CAAC,EAC3E,aAAa,EAAE,wBAAwB,GAAG,SAAS,GAClD,4BAA4B,EAAE,CAEhC"}
@@ -0,0 +1,97 @@
1
+ import { GovernedDocumentAudienceKind } from "@wildo-ai/saas-models";
2
+ import { ApplicationOrganizationStructure, resolveApplicationOrganizationStructure, } from "../application-creation/application-line.application-creation.schemas.js";
3
+ import { DOCUMENT_DEFINITION_PRIVACY_NOTICE_REF } from "./assurance-document-system.definitions.js";
4
+ /**
5
+ * Who an application's privacy notice is addressed to, by how its organizations are arranged (#1649).
6
+ *
7
+ * TOTAL over {@link ApplicationOrganizationStructure} by its type, so an arrangement added tomorrow does not compile
8
+ * until somebody says whom its notice addresses.
9
+ *
10
+ * - `SINGLE_OWNER` (an internal tool): one organization owns the application and its members are the users, so the
11
+ * people the notice concerns are that organization's staff. WORKFORCE.
12
+ * - `CUSTOMER_TENANTS` (a B2B SaaS): the users belong to customer organizations nobody in the application owns, and
13
+ * anyone can sign up. PUBLIC_GENERAL, the audience every notice had before lines existed.
14
+ * - `OPERATOR_WITH_CLIENTS` (a service firm): one organization runs the application, but the people whose data it holds
15
+ * are mostly its CLIENTS' people, who sign up on their own. PUBLIC_GENERAL. The firm's own staff are data subjects
16
+ * too, and their employer informs them through its workforce channels about every system it runs; the application's
17
+ * notice is the one its clients read. Keyed on the arrangement rather than on "one organization operates it" for
18
+ * exactly this reason: being operated by one organization does not make the data subjects its workforce.
19
+ *
20
+ * What a WORKFORCE notice changes is the reader, and through the reader the content: a lawful basis is usually the
21
+ * employment contract or a legal obligation rather than consent, the recipients include the employer's own HR and
22
+ * payroll processors when the application shares with them, and the notice reaches staff through the employer as well
23
+ * as through the application. Consent is the exception at work: Recital 43 states the general rule that consent is no
24
+ * valid ground where there is a clear imbalance between the person and the controller (its example is a public
25
+ * authority), and the EDPB applies it to employment: an employee can rarely refuse an employer without fear of
26
+ * detriment, so for most processing at work the basis cannot be consent, which holds only in exceptional circumstances.
27
+ * spec-cite: GDPR (EU) 2016/679 Recital 43; Art. 6(1)(b)-(c); Art. 13(1)(c) and (e).
28
+ * spec-cite: EDPB Guidelines 05/2020 on consent v1.1, §3.1.1 "Imbalance of power", paras 21-22, https://www.edpb.europa.eu/system/files/documents/files/file1/edpb_guidelines_202005_consent_en.pdf
29
+ */
30
+ export const PRIVACY_NOTICE_AUDIENCE_BY_ORGANIZATION_STRUCTURE = Object.freeze({
31
+ [ApplicationOrganizationStructure.CUSTOMER_TENANTS]: GovernedDocumentAudienceKind.PUBLIC_GENERAL,
32
+ [ApplicationOrganizationStructure.SINGLE_OWNER]: GovernedDocumentAudienceKind.WORKFORCE,
33
+ [ApplicationOrganizationStructure.OPERATOR_WITH_CLIENTS]: GovernedDocumentAudienceKind.PUBLIC_GENERAL,
34
+ });
35
+ /**
36
+ * The audiences THIS application's copy of a governed document addresses (#1649).
37
+ *
38
+ * A catalog definition lists the audiences the document may address; for the privacy notice that is both
39
+ * PUBLIC_GENERAL and WORKFORCE, and which one applies is a fact about the application, not about the document. Every
40
+ * reader that records an audience (the release a composition produces, the documentation requirement a programme
41
+ * derives, the briefs the drafting and fact playbooks read) calls this, so they cannot disagree, and none copies the
42
+ * definition's list, which would claim both audiences for every application.
43
+ *
44
+ * Every other definition addresses one fixed set, returned as the definition states it.
45
+ *
46
+ * ## No line declared
47
+ *
48
+ * `undefined` reads as `CUSTOMER_TENANTS`: an application with no declared line is one created before lines existed,
49
+ * and the B2B line "reproduces that catalog exactly" (`ApplicationLine.B2B_SAAS`), PUBLIC_GENERAL included. It is not a
50
+ * guess that the line is B2B; it keeps the audience every such application's notice already had until the creator
51
+ * answers the line question, at which point the next read derives the line's own audience.
52
+ *
53
+ * ## The public `/privacy` route stays mounted on every line (decided by practice, #1649)
54
+ *
55
+ * A WORKFORCE notice is still served at `/privacy`, without a session. The information is owed at the time data is
56
+ * obtained from the staff member (Art. 13(1)) and, for data the application receives from elsewhere, such as the
57
+ * company's identity provider that provisions the account, within a reasonable period and at the latest at the first
58
+ * communication with the person (Art. 14(3)(a)-(b)). For an internal tool both moments are the staff member's first
59
+ * sign-in, before any session exists, so a route behind sign-in could not carry the notice to that moment. Art. 12(1)
60
+ * allows the information to be given by electronic means.
61
+ *
62
+ * Rejected: unmounting the route for an internal tool, which would also need line knowledge in the frontend runtime,
63
+ * which no browser bundle carries; and gating it behind a session, for the timing reason above. The employer may ALSO
64
+ * give the notice through its intranet or onboarding; the route is the application's own delivery point, not a
65
+ * substitute for those.
66
+ *
67
+ * The screens an application shows before a session exists LINK the route (#2976), on every line: sign-in, and the
68
+ * accept-invitation screen an invited member meets first. Neither the registration form (provisioned staff do not
69
+ * register) nor the consent panel (it renders behind sign-in) reaches those staff first. The link is drawn while the
70
+ * application serves the notice (a release in force, or the draft of a never-released notice, under its approval gate),
71
+ * read through `resolveServedPublicGovernedDocumentPath` in `@wildo-ai/saas-models`, which the consent panel reads
72
+ * too; an application that serves no notice draws no link, because the page would answer "unavailable".
73
+ *
74
+ * A sign-in the identity provider starts (an SSO connection with `saml.allowIdpInitiated`) opens the signed-in
75
+ * application without rendering either screen, and the consent panel links the notice only while it asks a decision.
76
+ * So the signed-in application's account menu draws the same link, through the same function (#2983); the one shell
77
+ * without it is the kiosk preset, which renders no account menu and no sign-out either.
78
+ * spec-cite: GDPR (EU) 2016/679 Art. 12(1); Art. 13(1); Art. 14(3)(a)-(b), https://gdpr-info.eu/art-14-gdpr/
79
+ *
80
+ * Throws when the derived audience is not one the definition admits: that is a catalog defect, and the catalog test
81
+ * pins that it cannot happen for the shipped catalog.
82
+ */
83
+ export function deriveGovernedDocumentAudienceKinds(definition, organizationStructure) {
84
+ if (String(definition.identity.definitionRef) !== DOCUMENT_DEFINITION_PRIVACY_NOTICE_REF)
85
+ return [...definition.audienceKinds];
86
+ const audience = PRIVACY_NOTICE_AUDIENCE_BY_ORGANIZATION_STRUCTURE[organizationStructure ?? ApplicationOrganizationStructure.CUSTOMER_TENANTS];
87
+ if (!definition.audienceKinds.includes(audience)) {
88
+ throw new Error(`The privacy notice definition admits [${definition.audienceKinds.join(", ")}] but an application arranged as `
89
+ + `${organizationStructure ?? "undeclared"} addresses ${audience}; the catalog must admit every audience the derivation can produce.`);
90
+ }
91
+ return [audience];
92
+ }
93
+ /** {@link deriveGovernedDocumentAudienceKinds} for an application read from its dossier, the only place its line lives. */
94
+ export function resolveGovernedDocumentAudienceKinds(definition, creatorInputs) {
95
+ return deriveGovernedDocumentAudienceKinds(definition, resolveApplicationOrganizationStructure(creatorInputs));
96
+ }
97
+ //# sourceMappingURL=governed-document-audience.derivations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"governed-document-audience.derivations.js","sourceRoot":"","sources":["../../../../src/assurance/governed-document-audience.derivations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAGrE,OAAO,EACL,gCAAgC,EAChC,uCAAuC,GACxC,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AAGjG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,iDAAiD,GAC5D,MAAM,CAAC,MAAM,CAAC;IACZ,CAAC,gCAAgC,CAAC,gBAAgB,CAAC,EAAE,4BAA4B,CAAC,cAAc;IAChG,CAAC,gCAAgC,CAAC,YAAY,CAAC,EAAE,4BAA4B,CAAC,SAAS;IACvF,CAAC,gCAAgC,CAAC,qBAAqB,CAAC,EAAE,4BAA4B,CAAC,cAAc;CACtG,CAAC,CAAC;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,mCAAmC,CACjD,UAA2E,EAC3E,qBAAmE;IAEnE,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,sCAAsC;QAAE,OAAO,CAAC,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC/H,MAAM,QAAQ,GAAG,iDAAiD,CAAC,qBAAqB,IAAI,gCAAgC,CAAC,gBAAgB,CAAC,CAAC;IAC/I,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjD,MAAM,IAAI,KAAK,CACb,yCAAyC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,mCAAmC;cAC3G,GAAG,qBAAqB,IAAI,YAAY,cAAc,QAAQ,qEAAqE,CACxI,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,QAAQ,CAAC,CAAC;AACpB,CAAC;AAED,2HAA2H;AAC3H,MAAM,UAAU,oCAAoC,CAClD,UAA2E,EAC3E,aAAmD;IAEnD,OAAO,mCAAmC,CAAC,UAAU,EAAE,uCAAuC,CAAC,aAAa,CAAC,CAAC,CAAC;AACjH,CAAC","sourcesContent":["import { GovernedDocumentAudienceKind } from \"@wildo-ai/saas-models\";\n\nimport type { ApplicationCreatorInputs } from \"../application-creation/application-creator-inputs.application-creation.schemas\";\nimport {\n ApplicationOrganizationStructure,\n resolveApplicationOrganizationStructure,\n} from \"../application-creation/application-line.application-creation.schemas\";\nimport { DOCUMENT_DEFINITION_PRIVACY_NOTICE_REF } from \"./assurance-document-system.definitions\";\nimport type { AssuranceDocumentDefinition } from \"./assurance-document-system.schemas\";\n\n/**\n * Who an application's privacy notice is addressed to, by how its organizations are arranged (#1649).\n *\n * TOTAL over {@link ApplicationOrganizationStructure} by its type, so an arrangement added tomorrow does not compile\n * until somebody says whom its notice addresses.\n *\n * - `SINGLE_OWNER` (an internal tool): one organization owns the application and its members are the users, so the\n * people the notice concerns are that organization's staff. WORKFORCE.\n * - `CUSTOMER_TENANTS` (a B2B SaaS): the users belong to customer organizations nobody in the application owns, and\n * anyone can sign up. PUBLIC_GENERAL, the audience every notice had before lines existed.\n * - `OPERATOR_WITH_CLIENTS` (a service firm): one organization runs the application, but the people whose data it holds\n * are mostly its CLIENTS' people, who sign up on their own. PUBLIC_GENERAL. The firm's own staff are data subjects\n * too, and their employer informs them through its workforce channels about every system it runs; the application's\n * notice is the one its clients read. Keyed on the arrangement rather than on \"one organization operates it\" for\n * exactly this reason: being operated by one organization does not make the data subjects its workforce.\n *\n * What a WORKFORCE notice changes is the reader, and through the reader the content: a lawful basis is usually the\n * employment contract or a legal obligation rather than consent, the recipients include the employer's own HR and\n * payroll processors when the application shares with them, and the notice reaches staff through the employer as well\n * as through the application. Consent is the exception at work: Recital 43 states the general rule that consent is no\n * valid ground where there is a clear imbalance between the person and the controller (its example is a public\n * authority), and the EDPB applies it to employment: an employee can rarely refuse an employer without fear of\n * detriment, so for most processing at work the basis cannot be consent, which holds only in exceptional circumstances.\n * spec-cite: GDPR (EU) 2016/679 Recital 43; Art. 6(1)(b)-(c); Art. 13(1)(c) and (e).\n * spec-cite: EDPB Guidelines 05/2020 on consent v1.1, §3.1.1 \"Imbalance of power\", paras 21-22, https://www.edpb.europa.eu/system/files/documents/files/file1/edpb_guidelines_202005_consent_en.pdf\n */\nexport const PRIVACY_NOTICE_AUDIENCE_BY_ORGANIZATION_STRUCTURE: Readonly<Record<ApplicationOrganizationStructure, GovernedDocumentAudienceKind>> =\n Object.freeze({\n [ApplicationOrganizationStructure.CUSTOMER_TENANTS]: GovernedDocumentAudienceKind.PUBLIC_GENERAL,\n [ApplicationOrganizationStructure.SINGLE_OWNER]: GovernedDocumentAudienceKind.WORKFORCE,\n [ApplicationOrganizationStructure.OPERATOR_WITH_CLIENTS]: GovernedDocumentAudienceKind.PUBLIC_GENERAL,\n });\n\n/**\n * The audiences THIS application's copy of a governed document addresses (#1649).\n *\n * A catalog definition lists the audiences the document may address; for the privacy notice that is both\n * PUBLIC_GENERAL and WORKFORCE, and which one applies is a fact about the application, not about the document. Every\n * reader that records an audience (the release a composition produces, the documentation requirement a programme\n * derives, the briefs the drafting and fact playbooks read) calls this, so they cannot disagree, and none copies the\n * definition's list, which would claim both audiences for every application.\n *\n * Every other definition addresses one fixed set, returned as the definition states it.\n *\n * ## No line declared\n *\n * `undefined` reads as `CUSTOMER_TENANTS`: an application with no declared line is one created before lines existed,\n * and the B2B line \"reproduces that catalog exactly\" (`ApplicationLine.B2B_SAAS`), PUBLIC_GENERAL included. It is not a\n * guess that the line is B2B; it keeps the audience every such application's notice already had until the creator\n * answers the line question, at which point the next read derives the line's own audience.\n *\n * ## The public `/privacy` route stays mounted on every line (decided by practice, #1649)\n *\n * A WORKFORCE notice is still served at `/privacy`, without a session. The information is owed at the time data is\n * obtained from the staff member (Art. 13(1)) and, for data the application receives from elsewhere, such as the\n * company's identity provider that provisions the account, within a reasonable period and at the latest at the first\n * communication with the person (Art. 14(3)(a)-(b)). For an internal tool both moments are the staff member's first\n * sign-in, before any session exists, so a route behind sign-in could not carry the notice to that moment. Art. 12(1)\n * allows the information to be given by electronic means.\n *\n * Rejected: unmounting the route for an internal tool, which would also need line knowledge in the frontend runtime,\n * which no browser bundle carries; and gating it behind a session, for the timing reason above. The employer may ALSO\n * give the notice through its intranet or onboarding; the route is the application's own delivery point, not a\n * substitute for those.\n *\n * The screens an application shows before a session exists LINK the route (#2976), on every line: sign-in, and the\n * accept-invitation screen an invited member meets first. Neither the registration form (provisioned staff do not\n * register) nor the consent panel (it renders behind sign-in) reaches those staff first. The link is drawn while the\n * application serves the notice (a release in force, or the draft of a never-released notice, under its approval gate),\n * read through `resolveServedPublicGovernedDocumentPath` in `@wildo-ai/saas-models`, which the consent panel reads\n * too; an application that serves no notice draws no link, because the page would answer \"unavailable\".\n *\n * A sign-in the identity provider starts (an SSO connection with `saml.allowIdpInitiated`) opens the signed-in\n * application without rendering either screen, and the consent panel links the notice only while it asks a decision.\n * So the signed-in application's account menu draws the same link, through the same function (#2983); the one shell\n * without it is the kiosk preset, which renders no account menu and no sign-out either.\n * spec-cite: GDPR (EU) 2016/679 Art. 12(1); Art. 13(1); Art. 14(3)(a)-(b), https://gdpr-info.eu/art-14-gdpr/\n *\n * Throws when the derived audience is not one the definition admits: that is a catalog defect, and the catalog test\n * pins that it cannot happen for the shipped catalog.\n */\nexport function deriveGovernedDocumentAudienceKinds(\n definition: Pick<AssuranceDocumentDefinition, \"identity\" | \"audienceKinds\">,\n organizationStructure: ApplicationOrganizationStructure | undefined,\n): GovernedDocumentAudienceKind[] {\n if (String(definition.identity.definitionRef) !== DOCUMENT_DEFINITION_PRIVACY_NOTICE_REF) return [...definition.audienceKinds];\n const audience = PRIVACY_NOTICE_AUDIENCE_BY_ORGANIZATION_STRUCTURE[organizationStructure ?? ApplicationOrganizationStructure.CUSTOMER_TENANTS];\n if (!definition.audienceKinds.includes(audience)) {\n throw new Error(\n `The privacy notice definition admits [${definition.audienceKinds.join(\", \")}] but an application arranged as `\n + `${organizationStructure ?? \"undeclared\"} addresses ${audience}; the catalog must admit every audience the derivation can produce.`,\n );\n }\n return [audience];\n}\n\n/** {@link deriveGovernedDocumentAudienceKinds} for an application read from its dossier, the only place its line lives. */\nexport function resolveGovernedDocumentAudienceKinds(\n definition: Pick<AssuranceDocumentDefinition, \"identity\" | \"audienceKinds\">,\n creatorInputs: ApplicationCreatorInputs | undefined,\n): GovernedDocumentAudienceKind[] {\n return deriveGovernedDocumentAudienceKinds(definition, resolveApplicationOrganizationStructure(creatorInputs));\n}\n"]}
@@ -3,6 +3,7 @@ import { type ApplicationDocumentReleasePolicySelectionV1 } from "../application
3
3
  import { type ComplianceDocumentCandidate } from "../_core/compliance-documents/compliance-document-candidate.schemas";
4
4
  import type { AssuranceDocumentPublicationVariant } from "./application-document-publication.schemas";
5
5
  import type { AssuranceDocumentDefinition } from "./assurance-document-system.schemas";
6
+ import type { ApplicationCreatorInputs } from "../application-creation/application-creator-inputs.application-creation.schemas";
6
7
  /**
7
8
  * Where `wildo config document-releases` writes the runtime releases module, relative to the application root — the
8
9
  * module `saas-config.backend.ts` composes into `compliance.governedDocumentReleases` (the registration acceptance
@@ -102,8 +103,21 @@ export interface GovernedDocumentReleaseAdvisory {
102
103
  }
103
104
  /** What a human actually decides. Everything else on the record is derived from the accepted definition. */
104
105
  export interface GovernedDocumentReleaseComposition {
105
- /** The framework-accepted definition. Supplies class, audiences, channels and permitted interactions. */
106
+ /** The framework-accepted definition. Supplies class, channels and permitted interactions, and the audiences it may address. */
106
107
  readonly definition: AssuranceDocumentDefinition;
108
+ /**
109
+ * The application's dossier (its `creator-inputs` family), from which the release's AUDIENCE is derived (#1649).
110
+ *
111
+ * The privacy notice's definition admits two audiences, and which one this application's notice addresses follows
112
+ * from its line: the staff of the one organization that owns an internal tool, the general public otherwise. So the
113
+ * release cannot copy the definition's list, and the audience is not the composer's to state either: it is derived
114
+ * from the dossier by `resolveGovernedDocumentAudienceKinds`, the same function the programme and the drafting
115
+ * briefs read.
116
+ *
117
+ * REQUIRED, with `undefined` as an answer: a composition that left the key out would silently compose the B2B
118
+ * audience for an internal tool. `undefined` means the application holds no dossier, which reads as no declared line.
119
+ */
120
+ readonly creatorInputs: ApplicationCreatorInputs | undefined;
107
121
  /** The approved draft whose content this release publishes. */
108
122
  readonly candidate: ComplianceDocumentCandidate;
109
123
  /** The exact locale x jurisdiction combination being published. */
@@ -1 +1 @@
1
- {"version":3,"file":"governed-document-release.d.ts","sourceRoot":"","sources":["../../../../src/assurance/governed-document-release.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,wCAAwC,EAE7C,KAAK,2CAA2C,EAChD,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACrC,MAAM,uBAAuB,CAAC;AAgB/B,OAAO,EAEL,KAAK,2CAA2C,EACjD,MAAM,wGAAwG,CAAC;AAChH,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEtG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,kDAAkD,4DAA4D,CAAC;AA+C5H,kHAAkH;AAClH,wBAAgB,+CAA+C,CAC7D,SAAS,EAAE,2BAA2B,EACtC,WAAW,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACrF,6BAA6B,CAE/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,oBAAY,2CAA2C;IACrD,6EAA6E;IAC7E,2BAA2B,gCAAgC;IAC3D,iFAAiF;IACjF,qBAAqB,0BAA0B;IAC/C,iGAAiG;IACjG,+BAA+B,oCAAoC;IACnE,2EAA2E;IAC3E,gCAAgC,qCAAqC;IACrE,wEAAwE;IACxE,2BAA2B,gCAAgC;IAC3D,6FAA6F;IAC7F,oCAAoC,yCAAyC;IAC7E,4EAA4E;IAC5E,sBAAsB,2BAA2B;CAClD;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,CAAC,IAAI,EAAE,2CAA2C,CAAC;IAC3D,QAAQ,CAAC,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,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,kCAAkC,GAC9C;IACD,QAAQ,CAAC,OAAO,EAAE,uBAAuB,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,SAAS,uCAAuC,EAAE,CAAC;IACpE,QAAQ,CAAC,UAAU,EAAE,SAAS,+BAA+B,EAAE,CAAC;CACjE,CAyHA;AAED,yGAAyG;AACzG,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,SAAS,uBAAuB,EAAE,EAC5C,KAAK,EAAE,4BAA4B,GAClC,uBAAuB,GAAG,SAAS,CAiBrC;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,SAAS,uBAAuB,EAAE,GAC3C,uBAAuB,GAAG,SAAS,CAOrC;AACD,oFAAoF"}
1
+ {"version":3,"file":"governed-document-release.d.ts","sourceRoot":"","sources":["../../../../src/assurance/governed-document-release.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,wCAAwC,EAE7C,KAAK,2CAA2C,EAChD,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACrC,MAAM,uBAAuB,CAAC;AAgB/B,OAAO,EAEL,KAAK,2CAA2C,EACjD,MAAM,wGAAwG,CAAC;AAChH,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,KAAK,EA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C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,SAAS,uBAAuB,EAAE,EAC5C,KAAK,EAAE,4BAA4B,GAClC,uBAAuB,GAAG,SAAS,CAiBrC;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,SAAS,uBAAuB,EAAE,GAC3C,uBAAuB,GAAG,SAAS,CAOrC;AACD,oFAAoF"}
@@ -16,6 +16,7 @@ import { GOVERNED_DOCUMENT_PUBLIC_CONTENT_MEDIA_TYPE, governedDocumentReleaseIsI
16
16
  import { ApplicationDocumentReleasePolicyLane, } from "../application-creation/application-document-release-policy-specification.application-creation.schemas.js";
17
17
  import { ComplianceStatementCompleteness, } from "../_core/compliance-documents/compliance-document-candidate.schemas.js";
18
18
  import { assuranceDocumentPublicationVariantKey } from "./application-document-publication.schemas.js";
19
+ import { resolveGovernedDocumentAudienceKinds } from "./governed-document-audience.derivations.js";
19
20
  /**
20
21
  * Where `wildo config document-releases` writes the runtime releases module, relative to the application root — the
21
22
  * module `saas-config.backend.ts` composes into `compliance.governedDocumentReleases` (the registration acceptance
@@ -234,7 +235,8 @@ export function composeGovernedDocumentRelease(composition) {
234
235
  governanceScope: composition.governanceScope,
235
236
  // DERIVED, every one of them — see this module's header.
236
237
  documentClass: definition.documentClass,
237
- audienceKinds: [...definition.audienceKinds],
238
+ // Derived for THIS application from its line (#1649): the definition lists every audience the document may address.
239
+ audienceKinds: resolveGovernedDocumentAudienceKinds(definition, composition.creatorInputs),
238
240
  publicationChannelKinds: [...definition.publicationChannelKinds],
239
241
  allowedInteractionKinds: [...definition.allowedInteractionKinds],
240
242
  locale: variant.locale,
@@ -1 +1 @@
1
- {"version":3,"file":"governed-document-release.js","sourceRoot":"","sources":["../../../../src/assurance/governed-document-release.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2CAA2C,EAC3C,gCAAgC,EAChC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,6BAA6B,GAO9B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,oCAAoC,GAErC,MAAM,wGAAwG,CAAC;AAChH,OAAO,EACL,+BAA+B,GAEhC,MAAM,qEAAqE,CAAC;AAE7E,OAAO,EAAE,sCAAsC,EAAE,MAAM,4CAA4C,CAAC;AAGpG;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAG,yDAAyD,CAAC;AAE5H;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,kBAAkB,CACzB,SAAsC,EACtC,WAAsF;IAEtF,OAAO;QACL,aAAa,EAAE,CAAU;QACzB,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,MAAM,EAAE,WAAW,CAAC,MAAM;QAC1B,gBAAgB,EAAE,CAAC,GAAG,WAAW,CAAC,gBAAgB,CAAC;QACnD,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAC7C,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACtC,MAAM,CAAC,YAAY,KAAK,+BAA+B,CAAC,OAAO;gBAC7D,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,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AAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC3C,QAA4C;IAE5C,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACvF,IAAI,WAAW,KAAK,CAAC;YAAE,OAAO,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;QACnE,OAAO,SAAS,CAAC,QAAQ,CAAC,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IACjG,CAAC,CAAC,CAAC;AACL,CAAC;AACD,oFAAoF","sourcesContent":["import {\n GOVERNED_DOCUMENT_PUBLIC_CONTENT_MEDIA_TYPE,\n governedDocumentReleaseIsInForce,\n GovernedDocumentPublicClauseStanding,\n GovernedDocumentPublicContentSchema,\n GovernedDocumentReleaseApprovalState,\n GovernedDocumentReleaseSchema,\n type GovernedDocumentApprovalDecisionIdentity,\n type GovernedDocumentGovernanceSubjectKind,\n type GovernedDocumentMaterialityDecisionIdentity,\n type GovernedDocumentPublicContent,\n type GovernedDocumentRelease,\n type GovernedDocumentReleaseIdentity,\n} from \"@wildo-ai/saas-models\";\n\n/*\n * CROSSING into `application-creation/`, deliberately and in the established direction — two\n * `*.family-aspects.ts` files here already do it, and nothing in `application-creation/` imports\n * back. The release POLICY is the thing that decides whether releasing is permitted at all, so a\n * composer that could not see it would be the hole rather than the fix.\n *\n * Known shape, stated rather than left implicit: `GovernedDocumentReleaseComposition` is exported\n * from the `assurance` subpath and reaches `ApplicationDocumentReleasePolicyLane`, a NOMINAL enum\n * that subpath does not publish (the ROOT and `application-creation` do). `check:package-entrypoints`\n * reports no finding for this file, and in practice a caller cannot HOLD a policy selection without\n * having resolved the `application-creation` surface that owns the family — there is nowhere else to\n * obtain one. If rule 7 ever does report it, the answer is the root-only probe that rule prescribes,\n * not a re-export: a second door onto one room is what `root-barrel-overlap` refuses.\n */\nimport {\n ApplicationDocumentReleasePolicyLane,\n type ApplicationDocumentReleasePolicySelectionV1,\n} from \"../application-creation/application-document-release-policy-specification.application-creation.schemas\";\nimport {\n ComplianceStatementCompleteness,\n type ComplianceDocumentCandidate,\n} from \"../_core/compliance-documents/compliance-document-candidate.schemas\";\nimport type { AssuranceDocumentPublicationVariant } from \"./application-document-publication.schemas\";\nimport { assuranceDocumentPublicationVariantKey } from \"./application-document-publication.schemas\";\nimport type { AssuranceDocumentDefinition } from \"./assurance-document-system.schemas\";\n\n/**\n * Where `wildo config document-releases` writes the runtime releases module, relative to the application root — the\n * module `saas-config.backend.ts` composes into `compliance.governedDocumentReleases` (the registration acceptance\n * control) and `compliance.publicDocuments`. Beside `brand-assets.generated.ts`.\n *\n * Here rather than in the CLI generator because two processes read it: the generator writes it, and the companion's\n * launch list reads whether it exists (#2238). The `SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH` precedent.\n */\nexport const GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH = \"backend-api/src/governed-document-releases.generated.ts\";\n\n/**\n * The public text a draft becomes — what a release carries, and what a page shows for a document\n * that was never released (wildo-ai/wildo-ai#968).\n *\n * An ALLOW-LIST, like every other public projection in this lane. A candidate clause carries fact\n * refs, source-policy refs, claim-guard refs, blueprint joins and — when it is incomplete — who closes\n * the gap and how (`closedBy`: issue refs, owners). None of that is the reader's. What survives is the\n * structure (sections and clauses, by ref and order), the prose, and the clause's STANDING: a clause\n * the drafter could not establish is marked `NOT_YET_ESTABLISHED` with the drafter's own `needs` text,\n * never passed off as settled and never dropped.\n *\n * The language and jurisdictions come from the PUBLICATION, not the draft: a candidate may leave both\n * open, and the release (or the application's declared variant, for an unreleased draft) is what\n * decides them. The composer refuses a candidate that contradicts its variant before this runs.\n *\n * Returns the unparsed shape so the composer can validate it inside the release record and report a\n * failure as an issue; {@link projectComplianceDocumentCandidatePublicContent} is the validating form.\n */\nfunction draftPublicContent(\n candidate: ComplianceDocumentCandidate,\n publication: { readonly locale: string; readonly jurisdictionRefs: readonly string[] },\n) {\n return {\n schemaVersion: 1 as const,\n title: candidate.title,\n locale: publication.locale,\n jurisdictionRefs: [...publication.jurisdictionRefs],\n sections: candidate.sections.map((section) => ({\n sectionRef: section.sectionRef,\n order: section.order,\n title: section.title,\n clauses: section.clauses.map((clause) =>\n clause.completeness === ComplianceStatementCompleteness.DERIVED\n ? { clauseRef: clause.clauseRef, order: clause.order, bodyMarkdown: clause.bodyMarkdown, standing: GovernedDocumentPublicClauseStanding.ESTABLISHED }\n : {\n clauseRef: clause.clauseRef,\n order: clause.order,\n bodyMarkdown: clause.bodyMarkdown,\n standing: GovernedDocumentPublicClauseStanding.NOT_YET_ESTABLISHED,\n missingInformation: clause.incompleteness?.needs,\n }),\n })),\n };\n}\n\n/** Validating form of the draft-to-public-text projection. Throws when the result is not valid public content. */\nexport function projectComplianceDocumentCandidatePublicContent(\n candidate: ComplianceDocumentCandidate,\n publication: { readonly locale: string; readonly jurisdictionRefs: readonly string[] },\n): GovernedDocumentPublicContent {\n return GovernedDocumentPublicContentSchema.parse(draftPublicContent(candidate, publication));\n}\n\n/**\n * @wildo_source:part:start saas.specifications.governed-document-release.contract facet:layer:specification facet:family:assurance\n *\n * Turning an APPROVED DRAFT into a RELEASE — the step whose absence meant a\n * drafted governed document could never become a published one (issue #245).\n *\n * The lane could draft: an application holds a real\n * `ComplianceDocumentCandidate` with its sections, clauses and prose. What it\n * had no way to do was say *this draft, in this language, for these\n * jurisdictions, is approved and takes effect on this date* — measured\n * 2026-09-02 and re-measured 2026-09-11, `GovernedDocumentReleaseSchema`\n * appeared in exactly two files, its own definition and its unit test, and\n * nothing anywhere constructed one.\n *\n * **This is a composition, not a custody protocol, and the distinction is the\n * whole design.** `0924c256` removed the previous publication lane — \"a sealed\n * machine that had never run\" — and said what should replace it: *\"A governed\n * document is a file; publishing one is a commit. When an application has a\n * document to serve, serving is rebuilt from files — a read, not a custody\n * protocol.\"* So there is no bundle here, no digest, no content-addressed\n * store and no byte-exact retrieval transport. A release is a record an\n * application COMMITS, and {@link resolveEffectiveDocumentRelease} is the read.\n *\n * **Most of a release is DERIVED rather than authored**, which is the other\n * half of the design. The accepted `AssuranceDocumentDefinition` already\n * decides the document's class, who it addresses, which channels may carry it\n * and which interactions it permits — so asking an author to restate them\n * would invite five ways to disagree with the catalog, and the disagreement\n * would be invisible. What is genuinely a human decision is the narrow part:\n * which draft, which variant, which approval, and when it takes effect.\n */\nexport enum GovernedDocumentReleaseCompositionIssueKind {\n /** The candidate drafts a different document from the one being released. */\n CANDIDATE_DOCUMENT_MISMATCH = \"CANDIDATE_DOCUMENT_MISMATCH\",\n /** The requested variant is not one the application declared it publishes in. */\n VARIANT_NOT_PUBLISHED = \"VARIANT_NOT_PUBLISHED\",\n /** The candidate states a locale or jurisdictions that contradict the variant being released. */\n CANDIDATE_VARIANT_CONTRADICTION = \"CANDIDATE_VARIANT_CONTRADICTION\",\n /** The governance subject is not one the document's definition governs. */\n GOVERNANCE_SUBJECT_NOT_PERMITTED = \"GOVERNANCE_SUBJECT_NOT_PERMITTED\",\n /** A release that replaces another must supersede the SAME document. */\n REPLACES_DIFFERENT_DOCUMENT = \"REPLACES_DIFFERENT_DOCUMENT\",\n /** The release policy consulted governs a different document from the one being released. */\n RELEASE_POLICY_FOR_OTHER_REQUIREMENT = \"RELEASE_POLICY_FOR_OTHER_REQUIREMENT\",\n /** The composed record does not satisfy `GovernedDocumentReleaseSchema`. */\n RELEASE_RECORD_INVALID = \"RELEASE_RECORD_INVALID\",\n}\n\nexport interface GovernedDocumentReleaseCompositionIssue {\n readonly kind: GovernedDocumentReleaseCompositionIssueKind;\n readonly message: string;\n}\n\n/**\n * What is TRUE about a composed release that a human must eventually act on — never a reason to\n * refuse composing it.\n *\n * The split from {@link GovernedDocumentReleaseCompositionIssueKind} is the design, not a severity\n * scale. An ISSUE means the record would be FALSE: it names a document the candidate does not draft,\n * or publishes an `en-GB` draft as `fr-FR`. An ADVISORY means the record is TRUE and the workflow is\n * not finished — nobody has approved it yet, or the application's own policy keeps this document in\n * the draft-only lane.\n *\n * Wildo is agent-first, so the second kind may never stop the mechanism. A compliance workflow\n * standing in front of application creation is exactly the shape this framework refuses: the system\n * must WORK first, and\n * restrictions arrive later as judge-style guards rather than ceremony wired into the mechanism.\n */\nexport enum GovernedDocumentReleaseAdvisoryKind {\n /** Composed without an approval decision. The release says so in `approvalState`. */\n NOT_APPROVED = \"NOT_APPROVED\",\n /**\n * The application's accepted policy keeps this document in the DRAFT_ONLY lane.\n *\n * It refused composition until 2026-09-11, and that was the error this whole split corrects: a\n * lane an application chose for its OWN document became a wall in front of its own build. The\n * release is composed, marked UNAPPROVED, and the lane is reported — so the decision to serve it\n * is taken where serving happens, which is Gate 3's to arm.\n */\n POLICY_IS_DRAFT_ONLY = \"POLICY_IS_DRAFT_ONLY\",\n}\n\nexport interface GovernedDocumentReleaseAdvisory {\n readonly kind: GovernedDocumentReleaseAdvisoryKind;\n readonly message: string;\n}\n\n/** What a human actually decides. Everything else on the record is derived from the accepted definition. */\nexport interface GovernedDocumentReleaseComposition {\n /** The framework-accepted definition. Supplies class, audiences, channels and permitted interactions. */\n readonly definition: AssuranceDocumentDefinition;\n /** The approved draft whose content this release publishes. */\n readonly candidate: ComplianceDocumentCandidate;\n /** The exact locale x jurisdiction combination being published. */\n readonly variant: AssuranceDocumentPublicationVariant;\n /** Every variant the application declared it publishes in; the variant above must be one of them. */\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n /**\n * The application's accepted release-policy selection for THIS document's requirement.\n *\n * REQUIRED, because releasing is the act that policy exists to govern. `DRAFT_ONLY` means the\n * document \"may be generated and retained, but cannot be released or published\" — a sentence with\n * no effect unless something refuses, and the only place that can refuse is here. An optional\n * input would have made the strictest lane the easiest one to skip: omit the field, get a release.\n *\n * The other two lanes do not branch here. Whether an operator attestation or a qualified review\n * actually happened is recorded in `approvalDecisions`, and the selection's own schema already\n * requires an attested lane to carry its explicit limitations.\n */\n readonly releasePolicy: ApplicationDocumentReleasePolicySelectionV1;\n /** The requirement the policy must govern — the join is by requirement, never by document ref. */\n readonly requirement: { readonly requirementRef: string; readonly requirementVersion: number };\n readonly identity: GovernedDocumentReleaseIdentity;\n readonly governanceScope: GovernedDocumentRelease[\"governanceScope\"];\n /**\n * The approvals retained for this release, if any yet.\n *\n * EMPTY is a first-class answer, not a missing input: it composes an UNAPPROVED release and an\n * advisory saying so. Requiring one here would mean an application could only hold a release by\n * forging an approval identity, which is worse than having none.\n */\n readonly approvalDecisions: readonly GovernedDocumentApprovalDecisionIdentity[];\n readonly issuedAt: string;\n readonly effectiveAt: string;\n readonly expiresAt?: string;\n /**\n * Superseding another release, stated ONCE as the materiality decision.\n *\n * The release record carries both `replacesRelease` and `materialityDecision`, and its schema\n * requires them to be present together AND to name the same previous release. So the caller gives\n * the decision and `replacesRelease` is DERIVED from `previousRelease` — two fields that must\n * agree are not two decisions, and asking for both would only create a way to disagree.\n *\n * The decision itself is the governance question a replacement owes: did the change matter enough\n * that the audience must meet the document again? `requiredInteractionKinds` is where that lands.\n */\n readonly supersedes?: GovernedDocumentMaterialityDecisionIdentity;\n}\nconst sorted = (values: readonly string[]): string[] => [...values].sort();\nconst sameSet = (left: readonly string[], right: readonly string[]): boolean =>\n left.length === right.length && sorted(left).every((value, index) => value === sorted(right)[index]);\n\n/**\n * Compose one release, or report why the parts do not agree.\n *\n * Returns issues rather than throwing, following the `_core` validator convention: a caller\n * assembling several releases wants all the disagreements at once, not the first one.\n */\nexport function composeGovernedDocumentRelease(\n composition: GovernedDocumentReleaseComposition,\n): {\n readonly release: GovernedDocumentRelease | undefined;\n readonly issues: readonly GovernedDocumentReleaseCompositionIssue[];\n readonly advisories: readonly GovernedDocumentReleaseAdvisory[];\n} {\n const issues: GovernedDocumentReleaseCompositionIssue[] = [];\n const advisories: GovernedDocumentReleaseAdvisory[] = [];\n const { candidate, variant, identity, definition } = composition;\n\n if (candidate.documentRef !== identity.document.documentRef) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.CANDIDATE_DOCUMENT_MISMATCH,\n message: `candidate drafts \"${candidate.documentRef}\" but the release identifies \"${identity.document.documentRef}\"`,\n });\n }\n\n if (composition.releasePolicy.requirementRef !== composition.requirement.requirementRef\n || composition.releasePolicy.requirementVersion !== composition.requirement.requirementVersion) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.RELEASE_POLICY_FOR_OTHER_REQUIREMENT,\n message: `release policy governs \"${composition.releasePolicy.requirementRef}@${composition.releasePolicy.requirementVersion}\" `\n + `but this release is for \"${composition.requirement.requirementRef}@${composition.requirement.requirementVersion}\"`,\n });\n }\n if (composition.releasePolicy.lane === ApplicationDocumentReleasePolicyLane.DRAFT_ONLY) {\n advisories.push({\n kind: GovernedDocumentReleaseAdvisoryKind.POLICY_IS_DRAFT_ONLY,\n message: `the accepted release policy puts \"${composition.requirement.requirementRef}\" in the DRAFT_ONLY lane: compose and retain it, but nothing may serve it as published`,\n });\n }\n\n const variantKey = assuranceDocumentPublicationVariantKey(variant);\n if (!composition.publishedVariants.some((published) => assuranceDocumentPublicationVariantKey(published) === variantKey)) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.VARIANT_NOT_PUBLISHED,\n message: `variant \"${variantKey}\" is not among the variants the application declared it publishes in`,\n });\n }\n\n /*\n * A candidate MAY leave locale and jurisdictions open — that is deliberate upstream, so a draft can\n * exist before the routing decision. What it may not do is state them and DISAGREE: releasing an\n * `en-GB` draft as the `fr-FR` variant would publish text under a claim it does not make.\n */\n if (candidate.locale !== undefined && candidate.locale !== variant.locale) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.CANDIDATE_VARIANT_CONTRADICTION,\n message: `candidate states locale \"${candidate.locale}\" but the release publishes \"${variant.locale}\"`,\n });\n }\n if (candidate.jurisdictionRefs !== undefined && !sameSet(candidate.jurisdictionRefs, variant.jurisdictionRefs)) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.CANDIDATE_VARIANT_CONTRADICTION,\n message: `candidate states jurisdictions [${sorted(candidate.jurisdictionRefs).join(\", \")}] but the release publishes [${sorted(variant.jurisdictionRefs).join(\", \")}]`,\n });\n }\n\n if (!definition.governanceSubjectKinds.includes(composition.governanceScope.subjectKind as GovernedDocumentGovernanceSubjectKind)) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.GOVERNANCE_SUBJECT_NOT_PERMITTED,\n message: `definition \"${definition.identity.definitionRef}\" governs [${definition.governanceSubjectKinds.join(\", \")}], not \"${composition.governanceScope.subjectKind}\"`,\n });\n }\n\n const replacesRelease: GovernedDocumentReleaseIdentity | undefined = composition.supersedes?.previousRelease;\n if (replacesRelease !== undefined && replacesRelease.document.documentRef !== identity.document.documentRef) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.REPLACES_DIFFERENT_DOCUMENT,\n message: `a release may only supersede the same document: replacing \"${replacesRelease.document.documentRef}\" with \"${identity.document.documentRef}\"`,\n });\n }\n\n const approvalState = composition.approvalDecisions.length > 0\n ? GovernedDocumentReleaseApprovalState.APPROVED\n : GovernedDocumentReleaseApprovalState.UNAPPROVED;\n if (approvalState === GovernedDocumentReleaseApprovalState.UNAPPROVED) {\n advisories.push({\n kind: GovernedDocumentReleaseAdvisoryKind.NOT_APPROVED,\n message: `no approval decision is retained for \"${identity.document.documentRef}\"; the release is composed and marked UNAPPROVED`,\n });\n }\n\n // ONLY incoherence stops here. Everything above that is workflow travels with the release.\n if (issues.length > 0) return { release: undefined, issues, advisories };\n\n const parsed = GovernedDocumentReleaseSchema.safeParse({\n schemaVersion: 1,\n identity,\n definition: definition.identity,\n governanceScope: composition.governanceScope,\n // DERIVED, every one of them — see this module's header.\n documentClass: definition.documentClass,\n audienceKinds: [...definition.audienceKinds],\n publicationChannelKinds: [...definition.publicationChannelKinds],\n allowedInteractionKinds: [...definition.allowedInteractionKinds],\n locale: variant.locale,\n jurisdictionRefs: [...variant.jurisdictionRefs],\n /*\n * The text this release publishes, CAPTURED here (#968). Every later read of the release — the\n * one in force, the one it superseded, the one scheduled next — shows the text it was composed\n * with, not whatever the draft says by then. That only holds if the composed record is what gets\n * committed; recomposing from the live draft on every import re-captures today's text.\n */\n content: draftPublicContent(candidate, variant),\n // The shape of `content` above — not a caller's choice, so not an input.\n contentMediaType: GOVERNED_DOCUMENT_PUBLIC_CONTENT_MEDIA_TYPE,\n issuedAt: composition.issuedAt,\n effectiveAt: composition.effectiveAt,\n ...(composition.expiresAt === undefined ? {} : { expiresAt: composition.expiresAt }),\n approvalDecisions: [...composition.approvalDecisions],\n approvalState,\n // Both, or neither — and both from ONE input, so the schema's pairing rule cannot be violated here.\n ...(composition.supersedes === undefined ? {} : { replacesRelease, materialityDecision: composition.supersedes }),\n });\n if (!parsed.success) {\n return {\n release: undefined,\n issues: [{\n kind: GovernedDocumentReleaseCompositionIssueKind.RELEASE_RECORD_INVALID,\n message: parsed.error.issues.map((issue) => `${issue.path.join(\".\") || \"<root>\"}: ${issue.message}`).join(\"; \"),\n }],\n advisories,\n };\n }\n return { release: parsed.data, issues: [], advisories };\n}\n\n/** What a reader knows: which document, in which language, for which jurisdictions, at which instant. */\nexport interface GovernedDocumentReleaseQuery {\n readonly documentRef: string;\n readonly locale: string;\n readonly jurisdictionRefs: readonly string[];\n /** ISO-8601. The instant the answer is wanted FOR — usually now, but a past instant is what an audit asks. */\n readonly at: string;\n /**\n * ⚠️ THE GATE POINT, and it is OFF by default. Deliberately.\n *\n * Serving an UNAPPROVED release to a real reader is a legally-binding statement leaving the\n * system, which `one-source-of-truth.md` D5 names as a critical gate point — and says such points\n * stay MARKED in every mechanism, notifying and proceeding under the current autonomy posture,\n * with ARMING them part of Gate 3's membership test (\"an application may face a real user\").\n *\n * So this defaults to `false`: an application under construction reads its own documents, and a\n * compliance workflow may not stand in front of the mechanism that builds it. Every returned\n * release carries `approvalState`, so a caller always knows what it has.\n *\n * A surface that genuinely faces a real user passes `true`. When Gate 3 is armed, what changes is\n * that passing it stops being the caller's choice — not that this parameter appears.\n */\n readonly requireApproved?: boolean;\n}\n\n/**\n * THE READ — which release is in force for one document, variant and instant.\n *\n * This is the half `0924c256` asked for when it deleted the custody machine: serving rebuilt as a\n * read over committed files. It takes the releases an application has committed and answers from\n * them alone; there is no store to consult and nothing to retrieve.\n *\n * What decides:\n *\n * - the variant must match EXACTLY. Locale and jurisdictions are one inseparable pair, and nothing\n * here recombines them — an `en-GB` release for `jurisdiction:gb` is not an answer for\n * `jurisdiction:eu`, even though both are `en-GB`;\n * - `effectiveAt` must not be in the future and `expiresAt`, when present, must not have passed.\n * A release that has been ISSUED is not yet in force; the difference is the whole point of\n * carrying both dates;\n * - of those in force, the one that took effect LAST wins, and `releaseVersion` breaks a tie. Two\n * releases sharing an instant is an authoring fault rather than a question, and answering\n * deterministically is better than answering arbitrarily.\n *\n * It does NOT filter by approval unless asked to — see `requireApproved`, which is the marked gate\n * point and is off by default. An application being built must be able to read what it has.\n *\n * Returns `undefined` when nothing is in force, and a caller must treat that as \"this application\n * publishes no such document here yet\" rather than as an error — for most of an application's life\n * that is the true answer, and it is the state every consumer meets first.\n */\nexport function resolveEffectiveDocumentRelease(\n releases: readonly GovernedDocumentRelease[],\n query: GovernedDocumentReleaseQuery,\n): GovernedDocumentRelease | undefined {\n const at = Date.parse(query.at);\n if (Number.isNaN(at)) return undefined;\n const inForce = releases.filter((release) =>\n (query.requireApproved !== true || release.approvalState === GovernedDocumentReleaseApprovalState.APPROVED)\n && release.identity.document.documentRef === query.documentRef\n && release.locale === query.locale\n && sameSet(release.jurisdictionRefs, query.jurisdictionRefs)\n /*\n * The interval question is ONE implementation, in `saas-models`, shared with the record side\n * (`composeGovernedDocumentInteraction`). It was written out here and again there, and two\n * copies of a half-open interval is precisely where a `<=`/`<` slip lives — which would mean a\n * surface offering a release that the recorder then refuses as out of force, or worse, the\n * reverse.\n */\n && governedDocumentReleaseIsInForce(release, query.at));\n return latestGovernedDocumentRelease(inForce);\n}\n\n/**\n * Of several releases, the one that takes effect LAST, with `releaseVersion` breaking a tie — the\n * precedence {@link resolveEffectiveDocumentRelease} applies among the releases in force, named once so\n * every other reader that must pick \"the\" release of a document picks it the same way. `undefined` for\n * an empty list.\n */\nexport function latestGovernedDocumentRelease(\n releases: readonly GovernedDocumentRelease[],\n): GovernedDocumentRelease | undefined {\n if (releases.length === 0) return undefined;\n return releases.reduce((winner, candidate) => {\n const byEffective = Date.parse(candidate.effectiveAt) - Date.parse(winner.effectiveAt);\n if (byEffective !== 0) return byEffective > 0 ? candidate : winner;\n return candidate.identity.releaseVersion > winner.identity.releaseVersion ? candidate : winner;\n });\n}\n/** @wildo_source:part:end saas.specifications.governed-document-release.contract */\n"]}
1
+ {"version":3,"file":"governed-document-release.js","sourceRoot":"","sources":["../../../../src/assurance/governed-document-release.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2CAA2C,EAC3C,gCAAgC,EAChC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,6BAA6B,GAO9B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,oCAAoC,GAErC,MAAM,wGAAwG,CAAC;AAChH,OAAO,EACL,+BAA+B,GAEhC,MAAM,qEAAqE,CAAC;AAE7E,OAAO,EAAE,sCAAsC,EAAE,MAAM,4CAA4C,CAAC;AAGpG,OAAO,EAAE,oCAAoC,EAAE,MAAM,0CAA0C,CAAC;AAEhG;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAG,yDAAyD,CAAC;AAE5H;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,kB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CAAC;AACD,oFAAoF","sourcesContent":["import {\n GOVERNED_DOCUMENT_PUBLIC_CONTENT_MEDIA_TYPE,\n governedDocumentReleaseIsInForce,\n GovernedDocumentPublicClauseStanding,\n GovernedDocumentPublicContentSchema,\n GovernedDocumentReleaseApprovalState,\n GovernedDocumentReleaseSchema,\n type GovernedDocumentApprovalDecisionIdentity,\n type GovernedDocumentGovernanceSubjectKind,\n type GovernedDocumentMaterialityDecisionIdentity,\n type GovernedDocumentPublicContent,\n type GovernedDocumentRelease,\n type GovernedDocumentReleaseIdentity,\n} from \"@wildo-ai/saas-models\";\n\n/*\n * CROSSING into `application-creation/`, deliberately and in the established direction — two\n * `*.family-aspects.ts` files here already do it, and nothing in `application-creation/` imports\n * back. The release POLICY is the thing that decides whether releasing is permitted at all, so a\n * composer that could not see it would be the hole rather than the fix.\n *\n * Known shape, stated rather than left implicit: `GovernedDocumentReleaseComposition` is exported\n * from the `assurance` subpath and reaches `ApplicationDocumentReleasePolicyLane`, a NOMINAL enum\n * that subpath does not publish (the ROOT and `application-creation` do). `check:package-entrypoints`\n * reports no finding for this file, and in practice a caller cannot HOLD a policy selection without\n * having resolved the `application-creation` surface that owns the family — there is nowhere else to\n * obtain one. If rule 7 ever does report it, the answer is the root-only probe that rule prescribes,\n * not a re-export: a second door onto one room is what `root-barrel-overlap` refuses.\n */\nimport {\n ApplicationDocumentReleasePolicyLane,\n type ApplicationDocumentReleasePolicySelectionV1,\n} from \"../application-creation/application-document-release-policy-specification.application-creation.schemas\";\nimport {\n ComplianceStatementCompleteness,\n type ComplianceDocumentCandidate,\n} from \"../_core/compliance-documents/compliance-document-candidate.schemas\";\nimport type { AssuranceDocumentPublicationVariant } from \"./application-document-publication.schemas\";\nimport { assuranceDocumentPublicationVariantKey } from \"./application-document-publication.schemas\";\nimport type { AssuranceDocumentDefinition } from \"./assurance-document-system.schemas\";\nimport type { ApplicationCreatorInputs } from \"../application-creation/application-creator-inputs.application-creation.schemas\";\nimport { resolveGovernedDocumentAudienceKinds } from \"./governed-document-audience.derivations\";\n\n/**\n * Where `wildo config document-releases` writes the runtime releases module, relative to the application root — the\n * module `saas-config.backend.ts` composes into `compliance.governedDocumentReleases` (the registration acceptance\n * control) and `compliance.publicDocuments`. Beside `brand-assets.generated.ts`.\n *\n * Here rather than in the CLI generator because two processes read it: the generator writes it, and the companion's\n * launch list reads whether it exists (#2238). The `SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH` precedent.\n */\nexport const GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH = \"backend-api/src/governed-document-releases.generated.ts\";\n\n/**\n * The public text a draft becomes — what a release carries, and what a page shows for a document\n * that was never released (wildo-ai/wildo-ai#968).\n *\n * An ALLOW-LIST, like every other public projection in this lane. A candidate clause carries fact\n * refs, source-policy refs, claim-guard refs, blueprint joins and — when it is incomplete — who closes\n * the gap and how (`closedBy`: issue refs, owners). None of that is the reader's. What survives is the\n * structure (sections and clauses, by ref and order), the prose, and the clause's STANDING: a clause\n * the drafter could not establish is marked `NOT_YET_ESTABLISHED` with the drafter's own `needs` text,\n * never passed off as settled and never dropped.\n *\n * The language and jurisdictions come from the PUBLICATION, not the draft: a candidate may leave both\n * open, and the release (or the application's declared variant, for an unreleased draft) is what\n * decides them. The composer refuses a candidate that contradicts its variant before this runs.\n *\n * Returns the unparsed shape so the composer can validate it inside the release record and report a\n * failure as an issue; {@link projectComplianceDocumentCandidatePublicContent} is the validating form.\n */\nfunction draftPublicContent(\n candidate: ComplianceDocumentCandidate,\n publication: { readonly locale: string; readonly jurisdictionRefs: readonly string[] },\n) {\n return {\n schemaVersion: 1 as const,\n title: candidate.title,\n locale: publication.locale,\n jurisdictionRefs: [...publication.jurisdictionRefs],\n sections: candidate.sections.map((section) => ({\n sectionRef: section.sectionRef,\n order: section.order,\n title: section.title,\n clauses: section.clauses.map((clause) =>\n clause.completeness === ComplianceStatementCompleteness.DERIVED\n ? { clauseRef: clause.clauseRef, order: clause.order, bodyMarkdown: clause.bodyMarkdown, standing: GovernedDocumentPublicClauseStanding.ESTABLISHED }\n : {\n clauseRef: clause.clauseRef,\n order: clause.order,\n bodyMarkdown: clause.bodyMarkdown,\n standing: GovernedDocumentPublicClauseStanding.NOT_YET_ESTABLISHED,\n missingInformation: clause.incompleteness?.needs,\n }),\n })),\n };\n}\n\n/** Validating form of the draft-to-public-text projection. Throws when the result is not valid public content. */\nexport function projectComplianceDocumentCandidatePublicContent(\n candidate: ComplianceDocumentCandidate,\n publication: { readonly locale: string; readonly jurisdictionRefs: readonly string[] },\n): GovernedDocumentPublicContent {\n return GovernedDocumentPublicContentSchema.parse(draftPublicContent(candidate, publication));\n}\n\n/**\n * @wildo_source:part:start saas.specifications.governed-document-release.contract facet:layer:specification facet:family:assurance\n *\n * Turning an APPROVED DRAFT into a RELEASE — the step whose absence meant a\n * drafted governed document could never become a published one (issue #245).\n *\n * The lane could draft: an application holds a real\n * `ComplianceDocumentCandidate` with its sections, clauses and prose. What it\n * had no way to do was say *this draft, in this language, for these\n * jurisdictions, is approved and takes effect on this date* — measured\n * 2026-09-02 and re-measured 2026-09-11, `GovernedDocumentReleaseSchema`\n * appeared in exactly two files, its own definition and its unit test, and\n * nothing anywhere constructed one.\n *\n * **This is a composition, not a custody protocol, and the distinction is the\n * whole design.** `0924c256` removed the previous publication lane — \"a sealed\n * machine that had never run\" — and said what should replace it: *\"A governed\n * document is a file; publishing one is a commit. When an application has a\n * document to serve, serving is rebuilt from files — a read, not a custody\n * protocol.\"* So there is no bundle here, no digest, no content-addressed\n * store and no byte-exact retrieval transport. A release is a record an\n * application COMMITS, and {@link resolveEffectiveDocumentRelease} is the read.\n *\n * **Most of a release is DERIVED rather than authored**, which is the other\n * half of the design. The accepted `AssuranceDocumentDefinition` already\n * decides the document's class, who it addresses, which channels may carry it\n * and which interactions it permits — so asking an author to restate them\n * would invite five ways to disagree with the catalog, and the disagreement\n * would be invisible. What is genuinely a human decision is the narrow part:\n * which draft, which variant, which approval, and when it takes effect.\n */\nexport enum GovernedDocumentReleaseCompositionIssueKind {\n /** The candidate drafts a different document from the one being released. */\n CANDIDATE_DOCUMENT_MISMATCH = \"CANDIDATE_DOCUMENT_MISMATCH\",\n /** The requested variant is not one the application declared it publishes in. */\n VARIANT_NOT_PUBLISHED = \"VARIANT_NOT_PUBLISHED\",\n /** The candidate states a locale or jurisdictions that contradict the variant being released. */\n CANDIDATE_VARIANT_CONTRADICTION = \"CANDIDATE_VARIANT_CONTRADICTION\",\n /** The governance subject is not one the document's definition governs. */\n GOVERNANCE_SUBJECT_NOT_PERMITTED = \"GOVERNANCE_SUBJECT_NOT_PERMITTED\",\n /** A release that replaces another must supersede the SAME document. */\n REPLACES_DIFFERENT_DOCUMENT = \"REPLACES_DIFFERENT_DOCUMENT\",\n /** The release policy consulted governs a different document from the one being released. */\n RELEASE_POLICY_FOR_OTHER_REQUIREMENT = \"RELEASE_POLICY_FOR_OTHER_REQUIREMENT\",\n /** The composed record does not satisfy `GovernedDocumentReleaseSchema`. */\n RELEASE_RECORD_INVALID = \"RELEASE_RECORD_INVALID\",\n}\n\nexport interface GovernedDocumentReleaseCompositionIssue {\n readonly kind: GovernedDocumentReleaseCompositionIssueKind;\n readonly message: string;\n}\n\n/**\n * What is TRUE about a composed release that a human must eventually act on — never a reason to\n * refuse composing it.\n *\n * The split from {@link GovernedDocumentReleaseCompositionIssueKind} is the design, not a severity\n * scale. An ISSUE means the record would be FALSE: it names a document the candidate does not draft,\n * or publishes an `en-GB` draft as `fr-FR`. An ADVISORY means the record is TRUE and the workflow is\n * not finished — nobody has approved it yet, or the application's own policy keeps this document in\n * the draft-only lane.\n *\n * Wildo is agent-first, so the second kind may never stop the mechanism. A compliance workflow\n * standing in front of application creation is exactly the shape this framework refuses: the system\n * must WORK first, and\n * restrictions arrive later as judge-style guards rather than ceremony wired into the mechanism.\n */\nexport enum GovernedDocumentReleaseAdvisoryKind {\n /** Composed without an approval decision. The release says so in `approvalState`. */\n NOT_APPROVED = \"NOT_APPROVED\",\n /**\n * The application's accepted policy keeps this document in the DRAFT_ONLY lane.\n *\n * It refused composition until 2026-09-11, and that was the error this whole split corrects: a\n * lane an application chose for its OWN document became a wall in front of its own build. The\n * release is composed, marked UNAPPROVED, and the lane is reported — so the decision to serve it\n * is taken where serving happens, which is Gate 3's to arm.\n */\n POLICY_IS_DRAFT_ONLY = \"POLICY_IS_DRAFT_ONLY\",\n}\n\nexport interface GovernedDocumentReleaseAdvisory {\n readonly kind: GovernedDocumentReleaseAdvisoryKind;\n readonly message: string;\n}\n\n/** What a human actually decides. Everything else on the record is derived from the accepted definition. */\nexport interface GovernedDocumentReleaseComposition {\n /** The framework-accepted definition. Supplies class, channels and permitted interactions, and the audiences it may address. */\n readonly definition: AssuranceDocumentDefinition;\n /**\n * The application's dossier (its `creator-inputs` family), from which the release's AUDIENCE is derived (#1649).\n *\n * The privacy notice's definition admits two audiences, and which one this application's notice addresses follows\n * from its line: the staff of the one organization that owns an internal tool, the general public otherwise. So the\n * release cannot copy the definition's list, and the audience is not the composer's to state either: it is derived\n * from the dossier by `resolveGovernedDocumentAudienceKinds`, the same function the programme and the drafting\n * briefs read.\n *\n * REQUIRED, with `undefined` as an answer: a composition that left the key out would silently compose the B2B\n * audience for an internal tool. `undefined` means the application holds no dossier, which reads as no declared line.\n */\n readonly creatorInputs: ApplicationCreatorInputs | undefined;\n /** The approved draft whose content this release publishes. */\n readonly candidate: ComplianceDocumentCandidate;\n /** The exact locale x jurisdiction combination being published. */\n readonly variant: AssuranceDocumentPublicationVariant;\n /** Every variant the application declared it publishes in; the variant above must be one of them. */\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n /**\n * The application's accepted release-policy selection for THIS document's requirement.\n *\n * REQUIRED, because releasing is the act that policy exists to govern. `DRAFT_ONLY` means the\n * document \"may be generated and retained, but cannot be released or published\" — a sentence with\n * no effect unless something refuses, and the only place that can refuse is here. An optional\n * input would have made the strictest lane the easiest one to skip: omit the field, get a release.\n *\n * The other two lanes do not branch here. Whether an operator attestation or a qualified review\n * actually happened is recorded in `approvalDecisions`, and the selection's own schema already\n * requires an attested lane to carry its explicit limitations.\n */\n readonly releasePolicy: ApplicationDocumentReleasePolicySelectionV1;\n /** The requirement the policy must govern — the join is by requirement, never by document ref. */\n readonly requirement: { readonly requirementRef: string; readonly requirementVersion: number };\n readonly identity: GovernedDocumentReleaseIdentity;\n readonly governanceScope: GovernedDocumentRelease[\"governanceScope\"];\n /**\n * The approvals retained for this release, if any yet.\n *\n * EMPTY is a first-class answer, not a missing input: it composes an UNAPPROVED release and an\n * advisory saying so. Requiring one here would mean an application could only hold a release by\n * forging an approval identity, which is worse than having none.\n */\n readonly approvalDecisions: readonly GovernedDocumentApprovalDecisionIdentity[];\n readonly issuedAt: string;\n readonly effectiveAt: string;\n readonly expiresAt?: string;\n /**\n * Superseding another release, stated ONCE as the materiality decision.\n *\n * The release record carries both `replacesRelease` and `materialityDecision`, and its schema\n * requires them to be present together AND to name the same previous release. So the caller gives\n * the decision and `replacesRelease` is DERIVED from `previousRelease` — two fields that must\n * agree are not two decisions, and asking for both would only create a way to disagree.\n *\n * The decision itself is the governance question a replacement owes: did the change matter enough\n * that the audience must meet the document again? `requiredInteractionKinds` is where that lands.\n */\n readonly supersedes?: GovernedDocumentMaterialityDecisionIdentity;\n}\nconst sorted = (values: readonly string[]): string[] => [...values].sort();\nconst sameSet = (left: readonly string[], right: readonly string[]): boolean =>\n left.length === right.length && sorted(left).every((value, index) => value === sorted(right)[index]);\n\n/**\n * Compose one release, or report why the parts do not agree.\n *\n * Returns issues rather than throwing, following the `_core` validator convention: a caller\n * assembling several releases wants all the disagreements at once, not the first one.\n */\nexport function composeGovernedDocumentRelease(\n composition: GovernedDocumentReleaseComposition,\n): {\n readonly release: GovernedDocumentRelease | undefined;\n readonly issues: readonly GovernedDocumentReleaseCompositionIssue[];\n readonly advisories: readonly GovernedDocumentReleaseAdvisory[];\n} {\n const issues: GovernedDocumentReleaseCompositionIssue[] = [];\n const advisories: GovernedDocumentReleaseAdvisory[] = [];\n const { candidate, variant, identity, definition } = composition;\n\n if (candidate.documentRef !== identity.document.documentRef) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.CANDIDATE_DOCUMENT_MISMATCH,\n message: `candidate drafts \"${candidate.documentRef}\" but the release identifies \"${identity.document.documentRef}\"`,\n });\n }\n\n if (composition.releasePolicy.requirementRef !== composition.requirement.requirementRef\n || composition.releasePolicy.requirementVersion !== composition.requirement.requirementVersion) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.RELEASE_POLICY_FOR_OTHER_REQUIREMENT,\n message: `release policy governs \"${composition.releasePolicy.requirementRef}@${composition.releasePolicy.requirementVersion}\" `\n + `but this release is for \"${composition.requirement.requirementRef}@${composition.requirement.requirementVersion}\"`,\n });\n }\n if (composition.releasePolicy.lane === ApplicationDocumentReleasePolicyLane.DRAFT_ONLY) {\n advisories.push({\n kind: GovernedDocumentReleaseAdvisoryKind.POLICY_IS_DRAFT_ONLY,\n message: `the accepted release policy puts \"${composition.requirement.requirementRef}\" in the DRAFT_ONLY lane: compose and retain it, but nothing may serve it as published`,\n });\n }\n\n const variantKey = assuranceDocumentPublicationVariantKey(variant);\n if (!composition.publishedVariants.some((published) => assuranceDocumentPublicationVariantKey(published) === variantKey)) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.VARIANT_NOT_PUBLISHED,\n message: `variant \"${variantKey}\" is not among the variants the application declared it publishes in`,\n });\n }\n\n /*\n * A candidate MAY leave locale and jurisdictions open — that is deliberate upstream, so a draft can\n * exist before the routing decision. What it may not do is state them and DISAGREE: releasing an\n * `en-GB` draft as the `fr-FR` variant would publish text under a claim it does not make.\n */\n if (candidate.locale !== undefined && candidate.locale !== variant.locale) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.CANDIDATE_VARIANT_CONTRADICTION,\n message: `candidate states locale \"${candidate.locale}\" but the release publishes \"${variant.locale}\"`,\n });\n }\n if (candidate.jurisdictionRefs !== undefined && !sameSet(candidate.jurisdictionRefs, variant.jurisdictionRefs)) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.CANDIDATE_VARIANT_CONTRADICTION,\n message: `candidate states jurisdictions [${sorted(candidate.jurisdictionRefs).join(\", \")}] but the release publishes [${sorted(variant.jurisdictionRefs).join(\", \")}]`,\n });\n }\n\n if (!definition.governanceSubjectKinds.includes(composition.governanceScope.subjectKind as GovernedDocumentGovernanceSubjectKind)) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.GOVERNANCE_SUBJECT_NOT_PERMITTED,\n message: `definition \"${definition.identity.definitionRef}\" governs [${definition.governanceSubjectKinds.join(\", \")}], not \"${composition.governanceScope.subjectKind}\"`,\n });\n }\n\n const replacesRelease: GovernedDocumentReleaseIdentity | undefined = composition.supersedes?.previousRelease;\n if (replacesRelease !== undefined && replacesRelease.document.documentRef !== identity.document.documentRef) {\n issues.push({\n kind: GovernedDocumentReleaseCompositionIssueKind.REPLACES_DIFFERENT_DOCUMENT,\n message: `a release may only supersede the same document: replacing \"${replacesRelease.document.documentRef}\" with \"${identity.document.documentRef}\"`,\n });\n }\n\n const approvalState = composition.approvalDecisions.length > 0\n ? GovernedDocumentReleaseApprovalState.APPROVED\n : GovernedDocumentReleaseApprovalState.UNAPPROVED;\n if (approvalState === GovernedDocumentReleaseApprovalState.UNAPPROVED) {\n advisories.push({\n kind: GovernedDocumentReleaseAdvisoryKind.NOT_APPROVED,\n message: `no approval decision is retained for \"${identity.document.documentRef}\"; the release is composed and marked UNAPPROVED`,\n });\n }\n\n // ONLY incoherence stops here. Everything above that is workflow travels with the release.\n if (issues.length > 0) return { release: undefined, issues, advisories };\n\n const parsed = GovernedDocumentReleaseSchema.safeParse({\n schemaVersion: 1,\n identity,\n definition: definition.identity,\n governanceScope: composition.governanceScope,\n // DERIVED, every one of them — see this module's header.\n documentClass: definition.documentClass,\n // Derived for THIS application from its line (#1649): the definition lists every audience the document may address.\n audienceKinds: resolveGovernedDocumentAudienceKinds(definition, composition.creatorInputs),\n publicationChannelKinds: [...definition.publicationChannelKinds],\n allowedInteractionKinds: [...definition.allowedInteractionKinds],\n locale: variant.locale,\n jurisdictionRefs: [...variant.jurisdictionRefs],\n /*\n * The text this release publishes, CAPTURED here (#968). Every later read of the release — the\n * one in force, the one it superseded, the one scheduled next — shows the text it was composed\n * with, not whatever the draft says by then. That only holds if the composed record is what gets\n * committed; recomposing from the live draft on every import re-captures today's text.\n */\n content: draftPublicContent(candidate, variant),\n // The shape of `content` above — not a caller's choice, so not an input.\n contentMediaType: GOVERNED_DOCUMENT_PUBLIC_CONTENT_MEDIA_TYPE,\n issuedAt: composition.issuedAt,\n effectiveAt: composition.effectiveAt,\n ...(composition.expiresAt === undefined ? {} : { expiresAt: composition.expiresAt }),\n approvalDecisions: [...composition.approvalDecisions],\n approvalState,\n // Both, or neither — and both from ONE input, so the schema's pairing rule cannot be violated here.\n ...(composition.supersedes === undefined ? {} : { replacesRelease, materialityDecision: composition.supersedes }),\n });\n if (!parsed.success) {\n return {\n release: undefined,\n issues: [{\n kind: GovernedDocumentReleaseCompositionIssueKind.RELEASE_RECORD_INVALID,\n message: parsed.error.issues.map((issue) => `${issue.path.join(\".\") || \"<root>\"}: ${issue.message}`).join(\"; \"),\n }],\n advisories,\n };\n }\n return { release: parsed.data, issues: [], advisories };\n}\n\n/** What a reader knows: which document, in which language, for which jurisdictions, at which instant. */\nexport interface GovernedDocumentReleaseQuery {\n readonly documentRef: string;\n readonly locale: string;\n readonly jurisdictionRefs: readonly string[];\n /** ISO-8601. The instant the answer is wanted FOR — usually now, but a past instant is what an audit asks. */\n readonly at: string;\n /**\n * ⚠️ THE GATE POINT, and it is OFF by default. Deliberately.\n *\n * Serving an UNAPPROVED release to a real reader is a legally-binding statement leaving the\n * system, which `one-source-of-truth.md` D5 names as a critical gate point — and says such points\n * stay MARKED in every mechanism, notifying and proceeding under the current autonomy posture,\n * with ARMING them part of Gate 3's membership test (\"an application may face a real user\").\n *\n * So this defaults to `false`: an application under construction reads its own documents, and a\n * compliance workflow may not stand in front of the mechanism that builds it. Every returned\n * release carries `approvalState`, so a caller always knows what it has.\n *\n * A surface that genuinely faces a real user passes `true`. When Gate 3 is armed, what changes is\n * that passing it stops being the caller's choice — not that this parameter appears.\n */\n readonly requireApproved?: boolean;\n}\n\n/**\n * THE READ — which release is in force for one document, variant and instant.\n *\n * This is the half `0924c256` asked for when it deleted the custody machine: serving rebuilt as a\n * read over committed files. It takes the releases an application has committed and answers from\n * them alone; there is no store to consult and nothing to retrieve.\n *\n * What decides:\n *\n * - the variant must match EXACTLY. Locale and jurisdictions are one inseparable pair, and nothing\n * here recombines them — an `en-GB` release for `jurisdiction:gb` is not an answer for\n * `jurisdiction:eu`, even though both are `en-GB`;\n * - `effectiveAt` must not be in the future and `expiresAt`, when present, must not have passed.\n * A release that has been ISSUED is not yet in force; the difference is the whole point of\n * carrying both dates;\n * - of those in force, the one that took effect LAST wins, and `releaseVersion` breaks a tie. Two\n * releases sharing an instant is an authoring fault rather than a question, and answering\n * deterministically is better than answering arbitrarily.\n *\n * It does NOT filter by approval unless asked to — see `requireApproved`, which is the marked gate\n * point and is off by default. An application being built must be able to read what it has.\n *\n * Returns `undefined` when nothing is in force, and a caller must treat that as \"this application\n * publishes no such document here yet\" rather than as an error — for most of an application's life\n * that is the true answer, and it is the state every consumer meets first.\n */\nexport function resolveEffectiveDocumentRelease(\n releases: readonly GovernedDocumentRelease[],\n query: GovernedDocumentReleaseQuery,\n): GovernedDocumentRelease | undefined {\n const at = Date.parse(query.at);\n if (Number.isNaN(at)) return undefined;\n const inForce = releases.filter((release) =>\n (query.requireApproved !== true || release.approvalState === GovernedDocumentReleaseApprovalState.APPROVED)\n && release.identity.document.documentRef === query.documentRef\n && release.locale === query.locale\n && sameSet(release.jurisdictionRefs, query.jurisdictionRefs)\n /*\n * The interval question is ONE implementation, in `saas-models`, shared with the record side\n * (`composeGovernedDocumentInteraction`). It was written out here and again there, and two\n * copies of a half-open interval is precisely where a `<=`/`<` slip lives — which would mean a\n * surface offering a release that the recorder then refuses as out of force, or worse, the\n * reverse.\n */\n && governedDocumentReleaseIsInForce(release, query.at));\n return latestGovernedDocumentRelease(inForce);\n}\n\n/**\n * Of several releases, the one that takes effect LAST, with `releaseVersion` breaking a tie — the\n * precedence {@link resolveEffectiveDocumentRelease} applies among the releases in force, named once so\n * every other reader that must pick \"the\" release of a document picks it the same way. `undefined` for\n * an empty list.\n */\nexport function latestGovernedDocumentRelease(\n releases: readonly GovernedDocumentRelease[],\n): GovernedDocumentRelease | undefined {\n if (releases.length === 0) return undefined;\n return releases.reduce((winner, candidate) => {\n const byEffective = Date.parse(candidate.effectiveAt) - Date.parse(winner.effectiveAt);\n if (byEffective !== 0) return byEffective > 0 ? candidate : winner;\n return candidate.identity.releaseVersion > winner.identity.releaseVersion ? candidate : winner;\n });\n}\n/** @wildo_source:part:end saas.specifications.governed-document-release.contract */\n"]}
@@ -20,6 +20,7 @@
20
20
  export * from "./assurance/assurance-foundation.schemas";
21
21
  export * from "./assurance/assurance-sources.schemas";
22
22
  export * from "./assurance/assurance-source-registry.definitions";
23
+ export * from "./assurance/assurance-source-requirement-inventory.definitions";
23
24
  export * from "./assurance/assurance-objective-catalog.definitions";
24
25
  export * from "./assurance/assurance-document-system.schemas";
25
26
  export * from "./assurance/assurance-document-system.definitions";
@@ -29,10 +30,13 @@ export * from "./assurance/assurance-evidence-judgement.schemas";
29
30
  export * from "./assurance/assurance-program-generation.schemas";
30
31
  export * from "./assurance/assurance-authority-basis.schemas";
31
32
  export * from "./assurance/assurance-authority-basis.definitions";
33
+ export * from "./assurance/assurance-host-implementation-artifacts";
32
34
  export * from "./assurance/assurance-external-framework-mapping";
35
+ export * from "./assurance/assurance-open-compliance-coverage-pack";
33
36
  export * from "./assurance/application-document-publication.schemas";
34
37
  export * from "./assurance/application-risk-register.schemas";
35
38
  export * from "./assurance/application-risk-signals.derivations";
36
39
  export * from "./assurance/application-document-release-set.schemas";
37
40
  export * from "./assurance/governed-document-release";
41
+ export * from "./assurance/governed-document-audience.derivations";
38
42
  //# sourceMappingURL=assurance.exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assurance.exports.d.ts","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uCAAuC,CAAC"}
1
+ {"version":3,"file":"assurance.exports.d.ts","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC"}
@@ -20,6 +20,7 @@
20
20
  export * from "./assurance/assurance-foundation.schemas.js";
21
21
  export * from "./assurance/assurance-sources.schemas.js";
22
22
  export * from "./assurance/assurance-source-registry.definitions.js";
23
+ export * from "./assurance/assurance-source-requirement-inventory.definitions.js";
23
24
  export * from "./assurance/assurance-objective-catalog.definitions.js";
24
25
  export * from "./assurance/assurance-document-system.schemas.js";
25
26
  export * from "./assurance/assurance-document-system.definitions.js";
@@ -29,10 +30,13 @@ export * from "./assurance/assurance-evidence-judgement.schemas.js";
29
30
  export * from "./assurance/assurance-program-generation.schemas.js";
30
31
  export * from "./assurance/assurance-authority-basis.schemas.js";
31
32
  export * from "./assurance/assurance-authority-basis.definitions.js";
33
+ export * from "./assurance/assurance-host-implementation-artifacts.js";
32
34
  export * from "./assurance/assurance-external-framework-mapping.js";
35
+ export * from "./assurance/assurance-open-compliance-coverage-pack.js";
33
36
  export * from "./assurance/application-document-publication.schemas.js";
34
37
  export * from "./assurance/application-risk-register.schemas.js";
35
38
  export * from "./assurance/application-risk-signals.derivations.js";
36
39
  export * from "./assurance/application-document-release-set.schemas.js";
37
40
  export * from "./assurance/governed-document-release.js";
41
+ export * from "./assurance/governed-document-audience.derivations.js";
38
42
  //# sourceMappingURL=assurance.exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assurance.exports.js","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uCAAuC,CAAC","sourcesContent":["/**\n * entrypoint-closure-waiver: MEASURED SAFE 2026-08-13, and NOT for the usual \"structural types\n * only\" reason — the types crossing here are nominal `enum`s.\n *\n * This barrel is reachable from the package ROOT because `index.ts` re-exports\n * `application-creation.exports`, and five `application-creation/**` schemas import from here\n * (`AssuranceDocumentFactAuthorityKind` feeds the root-exported\n * `ApplicationDocumentFactDeclarationAuthoritySchema`). Measurement: a root-only consumer importing\n * ONLY `@wildo-ai/saas-specifications`, deriving from those schemas and compiling with\n * `declaration: true`, is clean under both source-condition and dist resolution. The emitted `.d.ts`\n * names `import(\"@wildo-ai/saas-specifications/assurance\").AssuranceDocumentFactAuthorityKind` — a\n * portable public specifier, not a `node_modules/.../dist/esm/...` path.\n *\n * BEFORE \"tidying\" the intra-package `../assurance.exports` imports in `application-creation/**`\n * into direct source imports — which `package-public-entrypoints.md` does ask for — RE-RUN that\n * probe. Those six importers are what puts this barrel in the consumer's program, and it is not\n * established that the enum stays nameable without it. A correct-looking cleanup could reintroduce\n * the exact TS2742/TS2883 class this waiver records as absent.\n */\nexport * from \"./assurance/assurance-foundation.schemas\";\nexport * from \"./assurance/assurance-sources.schemas\";\nexport * from \"./assurance/assurance-source-registry.definitions\";\nexport * from \"./assurance/assurance-objective-catalog.definitions\";\nexport * from \"./assurance/assurance-document-system.schemas\";\nexport * from \"./assurance/assurance-document-system.definitions\";\nexport * from \"./assurance/assurance-document-blueprint-selection\";\nexport * from \"./assurance/assurance-program.schemas\";\nexport * from \"./assurance/assurance-evidence-judgement.schemas\";\nexport * from \"./assurance/assurance-program-generation.schemas\";\nexport * from \"./assurance/assurance-authority-basis.schemas\";\nexport * from \"./assurance/assurance-authority-basis.definitions\";\nexport * from \"./assurance/assurance-external-framework-mapping\";\nexport * from \"./assurance/application-document-publication.schemas\";\nexport * from \"./assurance/application-risk-register.schemas\";\nexport * from \"./assurance/application-risk-signals.derivations\";\nexport * from \"./assurance/application-document-release-set.schemas\";\nexport * from \"./assurance/governed-document-release\";\n"]}
1
+ {"version":3,"file":"assurance.exports.js","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC","sourcesContent":["/**\n * entrypoint-closure-waiver: MEASURED SAFE 2026-08-13, and NOT for the usual \"structural types\n * only\" reason — the types crossing here are nominal `enum`s.\n *\n * This barrel is reachable from the package ROOT because `index.ts` re-exports\n * `application-creation.exports`, and five `application-creation/**` schemas import from here\n * (`AssuranceDocumentFactAuthorityKind` feeds the root-exported\n * `ApplicationDocumentFactDeclarationAuthoritySchema`). Measurement: a root-only consumer importing\n * ONLY `@wildo-ai/saas-specifications`, deriving from those schemas and compiling with\n * `declaration: true`, is clean under both source-condition and dist resolution. The emitted `.d.ts`\n * names `import(\"@wildo-ai/saas-specifications/assurance\").AssuranceDocumentFactAuthorityKind` — a\n * portable public specifier, not a `node_modules/.../dist/esm/...` path.\n *\n * BEFORE \"tidying\" the intra-package `../assurance.exports` imports in `application-creation/**`\n * into direct source imports — which `package-public-entrypoints.md` does ask for — RE-RUN that\n * probe. Those six importers are what puts this barrel in the consumer's program, and it is not\n * established that the enum stays nameable without it. A correct-looking cleanup could reintroduce\n * the exact TS2742/TS2883 class this waiver records as absent.\n */\nexport * from \"./assurance/assurance-foundation.schemas\";\nexport * from \"./assurance/assurance-sources.schemas\";\nexport * from \"./assurance/assurance-source-registry.definitions\";\nexport * from \"./assurance/assurance-source-requirement-inventory.definitions\";\nexport * from \"./assurance/assurance-objective-catalog.definitions\";\nexport * from \"./assurance/assurance-document-system.schemas\";\nexport * from \"./assurance/assurance-document-system.definitions\";\nexport * from \"./assurance/assurance-document-blueprint-selection\";\nexport * from \"./assurance/assurance-program.schemas\";\nexport * from \"./assurance/assurance-evidence-judgement.schemas\";\nexport * from \"./assurance/assurance-program-generation.schemas\";\nexport * from \"./assurance/assurance-authority-basis.schemas\";\nexport * from \"./assurance/assurance-authority-basis.definitions\";\nexport * from \"./assurance/assurance-host-implementation-artifacts\";\nexport * from \"./assurance/assurance-external-framework-mapping\";\nexport * from \"./assurance/assurance-open-compliance-coverage-pack\";\nexport * from \"./assurance/application-document-publication.schemas\";\nexport * from \"./assurance/application-risk-register.schemas\";\nexport * from \"./assurance/application-risk-signals.derivations\";\nexport * from \"./assurance/application-document-release-set.schemas\";\nexport * from \"./assurance/governed-document-release\";\nexport * from \"./assurance/governed-document-audience.derivations\";\n"]}
@@ -38,6 +38,7 @@ import type { ApplicationDocumentationChapterSet } from './technical-documentati
38
38
  import type { IntegrationPlan } from './_core/integration-plan/integration-plan.schemas';
39
39
  import type { ApplicationMaturity } from './_core/application-maturity/application-maturity.schemas';
40
40
  import type { BrandNameScreening } from './_core/brand/brand-name-screening.schemas';
41
+ import type { ServiceMethod } from './_core/service-method/service-method.schemas';
41
42
  import type { ApplicationDocumentReleasePolicySpecification } from './application-creation/application-document-release-policy-specification.application-creation.schemas';
42
43
  import type { ApplicationDocumentReleaseSet } from './assurance/application-document-release-set.schemas';
43
44
  import type { GovernedDocumentReleaseComposition } from './assurance/governed-document-release';
@@ -48,7 +49,7 @@ export * from './technical-documentation/engine-documentation-specification-cata
48
49
  *
49
50
  * Typed companion export surface: registries of resource specs, definitions, and view specs the dev companion materializes.
50
51
  */
51
- export interface SpecificationsCompanionExports<TResourceSpecifications = ResourceSpecification, TBusinessSemanticsSnapshot = BusinessSemanticsSnapshotDeclaration, TFeatureSpecifications = FeatureSpecification, TMilestoneSpecifications = MilestoneSpecification, TProductSpecifications = ProductSpecification, TRoleSpecifications = RoleSpecification, TFrontendComponentSpecifications = FrontendComponentSpecification, TCompositeViewSpecifications = CompositeViewSpecification, TFullCustomViewSpecifications = FullCustomViewSpecification, TFlowsActorsViewSpecifications = FlowsActorsViewSpecification, TChartViewSpecifications = ChartViewSpecification, TExecutionViewSpecifications = ExecutionViewSpecification, TSystemEmailTemplateSpecifications = SystemEmailTemplateSpecification, TOnboardingViewSpecifications = OnboardingViewSpecification, TGuidanceFlowSpecifications = GuidanceFlowSpecification, TDataSeedSpecifications = DataSeedSpecification, TMarketSnapshot = MarketSnapshot, TCatalogSpecifications = CatalogSpecifications, TSidebarSectionSpecifications = SidebarSectionSpecification, TAssertionSpecifications = AssertionSpecificationSnapshot, TVisionSnapshot = VisionSnapshot, TRequirementsSnapshot = RequirementsSnapshot, TRoadmapSnapshot = RoadmapSnapshot, TBuildPlanTaskGraph = BuildPlanTaskGraph, TPlacementPlan = PlacementPlan, TDomainPlanOutputSet = DomainPlanOutputSet, TBusinessModelLiteSnapshot = BusinessModelLiteSnapshot, TBrandSnapshot = BrandSnapshot, TExpertPersonaCharters = ExpertPersonaCharter[], TFeatureSpecificationDrafts = FeatureSpecificationDrafts, TComplianceSpecification = AssuranceProgramSpecification, TDocumentPublicationSpecification = ApplicationDocumentPublicationSpecification, TDocumentFactSpecification = ApplicationDocumentFactSpecification, TDocumentReleasePolicySpecification = ApplicationDocumentReleasePolicySpecification, TDocumentReleaseSet = ApplicationDocumentReleaseSet, TProcessorRegister = ApplicationProcessorRegister, TAuthoredDocumentFactSpecification = ApplicationAuthoredDocumentFactSpecification, TDocumentReleaseCompositions = readonly GovernedDocumentReleaseComposition[], TRiskRegister = ApplicationRiskRegister, TCreatorInputs = ApplicationCreatorInputs, TCapabilityComposition = CapabilityComposition, TWebsitePlan = WebsitePlan, TExperiencePlan = ExperiencePlan, TApplicationDocumentationPlan = ApplicationDocumentationPlan, TIntegrationPlan = IntegrationPlan, TApplicationMaturity = ApplicationMaturity, TBrandNameScreening = BrandNameScreening> {
52
+ export interface SpecificationsCompanionExports<TResourceSpecifications = ResourceSpecification, TBusinessSemanticsSnapshot = BusinessSemanticsSnapshotDeclaration, TFeatureSpecifications = FeatureSpecification, TMilestoneSpecifications = MilestoneSpecification, TProductSpecifications = ProductSpecification, TRoleSpecifications = RoleSpecification, TFrontendComponentSpecifications = FrontendComponentSpecification, TCompositeViewSpecifications = CompositeViewSpecification, TFullCustomViewSpecifications = FullCustomViewSpecification, TFlowsActorsViewSpecifications = FlowsActorsViewSpecification, TChartViewSpecifications = ChartViewSpecification, TExecutionViewSpecifications = ExecutionViewSpecification, TSystemEmailTemplateSpecifications = SystemEmailTemplateSpecification, TOnboardingViewSpecifications = OnboardingViewSpecification, TGuidanceFlowSpecifications = GuidanceFlowSpecification, TDataSeedSpecifications = DataSeedSpecification, TMarketSnapshot = MarketSnapshot, TCatalogSpecifications = CatalogSpecifications, TSidebarSectionSpecifications = SidebarSectionSpecification, TAssertionSpecifications = AssertionSpecificationSnapshot, TVisionSnapshot = VisionSnapshot, TRequirementsSnapshot = RequirementsSnapshot, TRoadmapSnapshot = RoadmapSnapshot, TBuildPlanTaskGraph = BuildPlanTaskGraph, TPlacementPlan = PlacementPlan, TDomainPlanOutputSet = DomainPlanOutputSet, TBusinessModelLiteSnapshot = BusinessModelLiteSnapshot, TBrandSnapshot = BrandSnapshot, TExpertPersonaCharters = ExpertPersonaCharter[], TFeatureSpecificationDrafts = FeatureSpecificationDrafts, TComplianceSpecification = AssuranceProgramSpecification, TDocumentPublicationSpecification = ApplicationDocumentPublicationSpecification, TDocumentFactSpecification = ApplicationDocumentFactSpecification, TDocumentReleasePolicySpecification = ApplicationDocumentReleasePolicySpecification, TDocumentReleaseSet = ApplicationDocumentReleaseSet, TProcessorRegister = ApplicationProcessorRegister, TAuthoredDocumentFactSpecification = ApplicationAuthoredDocumentFactSpecification, TDocumentReleaseCompositions = readonly GovernedDocumentReleaseComposition[], TRiskRegister = ApplicationRiskRegister, TCreatorInputs = ApplicationCreatorInputs, TCapabilityComposition = CapabilityComposition, TWebsitePlan = WebsitePlan, TExperiencePlan = ExperiencePlan, TApplicationDocumentationPlan = ApplicationDocumentationPlan, TIntegrationPlan = IntegrationPlan, TApplicationMaturity = ApplicationMaturity, TBrandNameScreening = BrandNameScreening, TServiceMethod = ServiceMethod> {
52
53
  resourceSpecifications: TResourceSpecifications;
53
54
  applicationBusinessSemanticsSnapshot?: TBusinessSemanticsSnapshot;
54
55
  /**
@@ -579,6 +580,13 @@ export interface SpecificationsCompanionExports<TResourceSpecifications = Resour
579
580
  * brand name stands. A screening, never a legal clearance opinion.
580
581
  */
581
582
  brandNameScreening?: TBrandNameScreening;
583
+ /**
584
+ * THE FIRM'S METHOD (#2305) — the services the firm delivers and, for each, the case it is worked in: stages, the
585
+ * steps agents, people and the client take, the decisions only a qualified person may take, deliverables, evidence
586
+ * retention and pricing; with the qualifications, the review calendar and the correction reasons. Produced by the
587
+ * playbook `top_down.service-method`, or authored by hand; the domain plan and the build plan derive from it.
588
+ */
589
+ serviceMethod?: TServiceMethod;
582
590
  }
583
591
  /**
584
592
  * Aggregate of every catalog vocabulary an app can wire on the