@wildo-ai/saas-specifications 1.1.5 → 1.1.6

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 (677) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
  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 +14 -13
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
  6. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
  8. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
  10. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/index.js +34 -13
  12. package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
  14. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
  15. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
  16. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
  17. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
  18. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
  19. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
  21. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
  23. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
  25. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
  27. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
  29. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  30. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
  31. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
  33. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
  36. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  37. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
  38. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  40. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
  41. package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
  42. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
  43. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
  44. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
  46. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  51. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
  52. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  53. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
  54. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  55. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
  56. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  57. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
  58. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  59. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
  60. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
  61. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
  62. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
  63. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
  64. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
  65. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
  66. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
  67. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
  68. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
  69. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
  70. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
  71. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
  72. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
  73. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
  74. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
  75. package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
  76. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  77. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
  78. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  79. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
  80. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  81. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
  82. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
  84. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
  92. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  95. package/dist/esm/_core/index.d.ts +3 -0
  96. package/dist/esm/_core/index.d.ts.map +1 -1
  97. package/dist/esm/_core/index.js +3 -0
  98. package/dist/esm/_core/index.js.map +1 -1
  99. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
  100. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
  102. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  103. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  104. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
  105. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  106. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
  107. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
  109. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  110. package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
  111. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  112. package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
  113. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  114. package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
  115. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  116. package/dist/esm/_core/market/market-category.schemas.js +2 -2
  117. package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
  118. package/dist/esm/_core/market/market-channel.schemas.js +2 -2
  119. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  120. package/dist/esm/_core/market/market-gain.schemas.js +2 -2
  121. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  122. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-icp.schemas.js +2 -2
  124. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  125. package/dist/esm/_core/market/market-job.schemas.js +2 -2
  126. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  127. package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
  128. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  129. package/dist/esm/_core/market/market-objection.schemas.js +2 -2
  130. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  131. package/dist/esm/_core/market/market-pain.schemas.js +2 -2
  132. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  133. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-persona.schemas.js +2 -2
  135. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  136. package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
  137. package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
  138. package/dist/esm/_core/market/market-proof.schemas.js +2 -2
  139. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  140. package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
  141. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-references.schemas.js +6 -0
  143. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  144. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
  145. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
  146. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  147. package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
  148. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market.family-aspects.js +1 -1
  150. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  151. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
  153. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  154. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
  155. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
  157. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
  159. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  160. package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
  161. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/resource-specification.schemas.js +110 -24
  163. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
  165. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
  166. package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
  167. package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
  168. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
  169. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
  171. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  172. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
  173. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  174. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
  175. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  176. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
  177. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  178. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
  179. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  180. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
  181. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
  182. package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
  183. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
  184. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
  185. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
  186. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
  187. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
  188. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
  189. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  190. package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
  191. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
  193. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
  194. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
  195. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
  196. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
  197. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
  199. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  200. package/dist/esm/application-creation.exports.d.ts +7 -0
  201. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  202. package/dist/esm/application-creation.exports.js +7 -0
  203. package/dist/esm/application-creation.exports.js.map +1 -1
  204. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
  205. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
  206. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
  207. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
  208. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  209. package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
  210. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  211. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
  212. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  213. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
  214. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  215. package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
  216. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  217. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  218. package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
  219. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  220. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
  221. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
  223. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  225. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
  226. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  227. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
  228. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
  230. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  231. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
  233. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
  235. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
  237. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  238. package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
  239. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  240. package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
  241. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program.schemas.js +107 -14
  243. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  244. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  245. package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
  246. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  247. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  248. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
  249. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  250. package/dist/esm/assurance/governed-document-release.d.ts +7 -0
  251. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  252. package/dist/esm/assurance/governed-document-release.js +11 -2
  253. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  254. package/dist/esm/companion-exports.d.ts +6 -5
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
  258. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  259. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
  266. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
  269. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  271. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
  272. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  276. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
  277. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
  281. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
  283. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
  285. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
  287. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
  292. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
  295. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  297. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
  299. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
  302. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
  305. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
  308. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
  310. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  311. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
  312. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
  314. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
  316. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
  319. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
  321. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
  323. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  324. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
  325. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
  327. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
  330. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
  332. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
  334. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
  337. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
  339. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  340. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
  341. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  342. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
  343. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  344. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
  345. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  346. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
  347. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  348. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
  349. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
  351. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  352. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
  353. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  354. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
  355. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  356. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  357. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  358. package/dist/esm/engine/compliance/resources/index.js +1 -0
  359. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  360. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
  361. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
  362. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
  363. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
  364. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
  365. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
  366. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
  367. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
  368. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  369. package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
  370. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  371. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/errors/error-messages.specification.js +69 -0
  373. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  374. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
  375. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  376. package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
  377. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
  379. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
  380. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
  382. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  383. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
  386. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
  389. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
  391. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  392. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
  393. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
  394. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
  395. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
  396. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
  397. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
  399. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
  402. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
  404. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
  405. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
  406. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
  407. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
  408. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
  409. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
  410. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
  411. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
  412. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
  414. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
  419. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
  420. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
  421. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
  422. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
  423. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
  424. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
  430. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  433. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
  434. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  435. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  436. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  437. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
  438. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
  439. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
  440. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
  441. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  442. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
  444. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  445. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
  447. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
  448. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
  449. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  450. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  451. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/index.js +3 -0
  453. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  454. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
  455. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  456. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
  457. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
  458. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
  459. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
  460. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
  462. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  464. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  465. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
  467. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  468. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
  470. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  473. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
  474. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
  475. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
  476. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
  477. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
  478. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
  479. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
  480. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
  481. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
  482. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
  483. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
  484. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
  485. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
  486. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
  487. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
  488. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
  489. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
  490. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
  492. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
  494. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
  495. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
  496. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
  497. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
  499. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  500. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
  501. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
  502. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
  503. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
  504. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
  505. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
  507. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +8 -8
  509. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  510. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
  512. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
  514. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
  516. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
  518. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
  520. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
  521. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
  522. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
  523. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
  524. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
  525. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
  526. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
  528. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
  530. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  531. package/dist/esm/engine/notifications/resources/index.js +1 -0
  532. package/dist/esm/engine/notifications/resources/index.js.map +1 -1
  533. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
  534. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
  536. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  537. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
  539. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  540. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
  541. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
  543. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
  545. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
  546. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
  547. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
  548. package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
  549. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  550. package/dist/esm/engine/notifications/system-emails/index.js +4 -2
  551. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  552. package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
  553. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  554. package/dist/esm/engine/organizations/resources/index.js +2 -0
  555. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  556. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
  557. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
  559. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  560. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
  561. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  562. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
  563. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  564. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
  565. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
  567. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  568. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
  570. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
  573. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  574. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
  575. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
  577. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  578. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
  579. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
  580. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
  581. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
  582. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
  583. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
  584. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
  585. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
  586. package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
  587. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  588. package/dist/esm/engine/providers/github.provider.specification.js +1 -1
  589. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  590. package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
  591. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
  592. package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
  593. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
  594. package/dist/esm/engine/providers/google.provider.specification.js +1 -1
  595. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  596. package/dist/esm/engine/providers/index.d.ts +2 -0
  597. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  598. package/dist/esm/engine/providers/index.js +5 -1
  599. package/dist/esm/engine/providers/index.js.map +1 -1
  600. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
  602. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  603. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
  604. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
  605. package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
  606. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
  607. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
  609. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  610. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
  612. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  613. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
  614. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
  615. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
  616. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
  617. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
  618. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
  619. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
  620. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
  621. package/dist/esm/engine/roles/index.d.ts +13 -5
  622. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  623. package/dist/esm/engine/roles/index.js +19 -6
  624. package/dist/esm/engine/roles/index.js.map +1 -1
  625. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
  626. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
  628. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
  629. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
  630. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
  632. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
  633. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
  634. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
  635. package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
  636. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
  637. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  638. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  639. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  640. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  641. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
  642. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  643. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
  644. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  645. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  646. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  647. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
  648. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  649. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
  650. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  651. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
  652. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  653. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
  654. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
  656. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  657. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
  658. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  659. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
  660. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
  662. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  663. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
  664. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  665. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
  667. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  668. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
  669. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
  671. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  672. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  673. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
  674. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  675. package/dist/tsconfig.build.tsbuildinfo +1 -1
  676. package/package.json +8 -8
  677. package/dist/assurance/external-framework-mapping.json +0 -1228
@@ -1,6 +1,8 @@
1
- import { type ApplicationOperatorComplianceIdentity, type ApplicationProviderComplianceChoices, type ApplicationRetentionSchedule, type ErasureRetentionMode } from "@wildo-ai/saas-models";
1
+ import { DataRetentionClass, type ApplicationOperatorComplianceIdentity, type OperatorLawfulBasis, type ApplicationProviderComplianceChoices, type RetentionEnforcementEvidence, type ApplicationRetentionSchedule, type ErasureRetentionMode, type ResourceRetentionBinding, type ResourceStatutoryRetention, type SystemOfRecordPersonalDataOrigin } from "@wildo-ai/saas-models";
2
2
  import { ApplicationAssuranceDocumentFactContributionResolutionKind, ComputedDocumentFact, type ApplicationDerivedDocumentFactDeclaration, type ApplicationDocumentFactSpecification } from "../../application-creation/application-document-fact-specification.application-creation.schemas";
3
3
  import { type ApplicationProcessorRegister } from "./processor-register.schemas";
4
+ import { type RecipientPopulation } from "./recipient-population.schemas";
5
+ import { SystemOfRecordDataFlowKind, type SystemOfRecordDataFlow } from "./recipient-disclosures.schemas";
4
6
  /**
5
7
  * Computing the {@link ComputedDocumentFact} members, and laying them over the facts a file declares.
6
8
  *
@@ -17,11 +19,30 @@ export interface ApplicationDocumentFactComputationInputs {
17
19
  readonly operatorComplianceIdentity: ApplicationOperatorComplianceIdentity | undefined;
18
20
  readonly processorRegister: ApplicationProcessorRegister | undefined;
19
21
  /**
20
- * The providers bound to a RUNTIME scope. A provider reached only by the build-time companion is not
21
- * in the path of any user's data and must not be passed here.
22
+ * WHO receives personal data, from {@link computeRecipientPopulation} — the same population the evidence
23
+ * collector and the drafting brief read, so the three cannot disagree about who a recipient is (#1707).
22
24
  */
23
- readonly runtimeScopedProviderRefs: readonly string[];
24
- readonly providerComplianceChoices: ApplicationProviderComplianceChoices | undefined;
25
+ readonly recipientPopulation: RecipientPopulation;
26
+ /**
27
+ * The system-of-record flows every resource declares (#1709), read off the materialized resources. OPTIONAL:
28
+ * `undefined` means they could not be read, and each system-of-record recipient then reports its categories as not
29
+ * derivable rather than as none.
30
+ */
31
+ readonly systemOfRecordFlows?: readonly SystemOfRecordDataFlow[] | undefined;
32
+ /**
33
+ * The `systemsOfRecord.<name>.vendor` of each declared instance (#1745), from {@link systemOfRecordVendorsOf} — what
34
+ * the `system-of-record-sources` fact names beside the instance. OPTIONAL: an instance absent here is stated with no
35
+ * vendor rather than guessed.
36
+ */
37
+ readonly systemOfRecordVendors?: Readonly<Record<string, string>> | undefined;
38
+ /**
39
+ * The `systemsOfRecord.<name>.personalDataOrigin` of each instance that declares one (#1745), from
40
+ * `systemOfRecordPersonalDataOriginsOf` — whether its personal data can have come from publicly accessible sources.
41
+ * An instance absent here has not stated it, and its sources carry no origin, so the notice marks it owed.
42
+ */
43
+ readonly systemOfRecordPersonalDataOrigins?: Readonly<Record<string, SystemOfRecordPersonalDataOrigin>> | undefined;
44
+ /** `providerComplianceChoices`, read for the purposes each recipient links to (#1709). */
45
+ readonly providerComplianceChoices?: ApplicationProviderComplianceChoices | undefined;
25
46
  /** `dataRetention` — the period per data class. Partial by design; absent means no schedule was declared. */
26
47
  readonly retentionSchedule: ApplicationRetentionSchedule | undefined;
27
48
  /**
@@ -29,36 +50,140 @@ export interface ApplicationDocumentFactComputationInputs {
29
50
  * could not be read, which is not the same as "none declared" and must answer nothing.
30
51
  */
31
52
  readonly resourceErasureTreatments: readonly ResourceErasureTreatment[] | undefined;
53
+ /**
54
+ * How long each resource's rows are kept, as the resources declare it (#1613): its retention-class
55
+ * binding, and whether a fixed `.ttl()` deletes its rows instead. OPTIONAL and separate from the
56
+ * erasure treatments on purpose — the two are different axes. `undefined` means the bindings could not
57
+ * be read, and the fact then states no mechanism rather than claiming none exists.
58
+ */
59
+ readonly resourceRetentionBindings?: readonly ResourceRetentionBindingFact[] | undefined;
32
60
  /** The `operatingJurisdictions` slugs — where the data comes FROM. `undefined` when none are declared. */
33
61
  readonly operatingJurisdictionSlugs: readonly string[] | undefined;
62
+ /**
63
+ * The retention-enforcement records of a window, as the evidence door answered them and the assurance
64
+ * collector recorded them (#1636). OPTIONAL: `undefined` means no evidence was readable, and the
65
+ * `retention-enforcement` fact then answers nothing — its clause is marked owed rather than claiming either
66
+ * enforcement or its absence.
67
+ */
68
+ readonly retentionEnforcementEvidence?: RetentionEnforcementEvidence | undefined;
34
69
  }
35
70
  /** One resource's declared erasure treatment. `erasureRetentionMode` is absent when the resource declares none. */
36
71
  export interface ResourceErasureTreatment {
37
72
  readonly resourceType: string;
38
73
  readonly erasureRetentionMode?: ErasureRetentionMode;
74
+ /**
75
+ * The statute that keeps the rows through an erasure (#1635). Present only where the resource declares
76
+ * `retentionPolicy.statutoryRetention`; an erasure then restricts those rows until their period ends.
77
+ */
78
+ readonly statutoryRetention?: ResourceStatutoryRetention;
79
+ }
80
+ /** One resource's retention binding, as the retention-rules fact reads it. */
81
+ export interface ResourceRetentionBindingFact {
82
+ readonly resourceType: string;
83
+ readonly retentionBinding?: ResourceRetentionBinding;
84
+ readonly declaresRowTtl: boolean;
85
+ }
86
+ /**
87
+ * WHAT deletes data of a declared class when its period ends — the mechanism a retention clause may name.
88
+ *
89
+ * A statement about the application's CONFIGURATION (which mechanism the declarations wire up), not
90
+ * runtime evidence that the mechanism ran: that is `ComputedDocumentFact.RETENTION_ENFORCEMENT`, computed
91
+ * from the sweep's records (#1636). An empty list here means no mechanism is even wired for the class — a
92
+ * notice must not describe a period nothing applies.
93
+ */
94
+ export declare enum RetentionPeriodMechanism {
95
+ /** At least one resource binds the class; the retention-class sweep deletes its rows past the period. */
96
+ RETENTION_CLASS_SWEEP = "RETENTION_CLASS_SWEEP",
97
+ /** The FILES class: file bytes released from their rows are destroyed by the files cleanup after the period. */
98
+ FILES_CLEANUP = "FILES_CLEANUP",
99
+ /**
100
+ * The AUDIT_LOGS class: the audit trail is IMMUTABLE and never deleted; the period is its live-store
101
+ * horizon, after which records are copied to the audit archive. A notice must not say audit records
102
+ * are deleted.
103
+ */
104
+ AUDIT_ARCHIVAL = "AUDIT_ARCHIVAL"
39
105
  }
106
+ /** The mechanisms that act on a declared class, given which resources bind it. Pure, so it is pinned directly. */
107
+ export declare function retentionPeriodMechanisms(dataClass: DataRetentionClass, boundResourceCount: number): RetentionPeriodMechanism[];
40
108
  /** One computed fact's answer. Always KNOWN: a fact whose inputs are absent produces no answer at all. */
41
109
  export interface ComputedDocumentFactAnswer {
42
110
  readonly fact: ComputedDocumentFact;
43
111
  readonly value: DocumentFactValue;
112
+ /**
113
+ * For a fact computed from RECORDS (`RUNTIME_EVIDENCE` in {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}):
114
+ * the instant the evidence describes up to. Required for such a fact, absent for every other.
115
+ */
116
+ readonly observedAt?: string;
117
+ }
118
+ /** One source of personal data the application did not collect from the person: one resource bound to, or piped from, a system of record. */
119
+ export interface SystemOfRecordSource {
120
+ readonly system: string;
121
+ /** `systemsOfRecord.<name>.vendor`, or `null` when the instance declares none. */
122
+ readonly vendor: string | null;
123
+ readonly resourceType: string;
124
+ readonly flowKind: SystemOfRecordDataFlowKind;
125
+ /**
126
+ * The instance's declared `personalDataOrigin` — the Art. 14(2)(f) "publicly accessible sources" half. ABSENT when the
127
+ * instance states none: that half is then owed, and is never read as "not from public sources".
128
+ */
129
+ readonly personalDataOrigin?: SystemOfRecordPersonalDataOrigin;
130
+ readonly categories: readonly string[];
131
+ readonly uncategorizedPersonalFields: readonly string[];
132
+ readonly purposes: readonly {
133
+ readonly purposeRef: string;
134
+ readonly purpose: string;
135
+ readonly basis: string;
136
+ }[];
137
+ readonly purposeRefsNamingNoPurpose: readonly string[];
138
+ /** `true` for a pipeline (a local copy), `false` for a read-through binding (nothing kept locally). */
139
+ readonly copiedLocally: boolean;
140
+ /** For a copy, when the bindings were read: no retention class and no `.ttl()` (#1613). Absent otherwise. */
141
+ readonly keptUntilErased?: boolean;
142
+ /** For a copy bound to a retention class, that class. */
143
+ readonly retentionClass?: string;
44
144
  }
45
- /** Every computed fact the inputs can answer, in vocabulary order. */
46
- export declare function computeApplicationDocumentFacts(inputs: ApplicationDocumentFactComputationInputs): readonly ComputedDocumentFactAnswer[];
47
145
  /**
48
- * The derived facts with the computed ones laid over them — what a reader of the application's facts sees.
146
+ * Where personal data the application did NOT collect from the person comes from: every resource bound to, or piped
147
+ * from, a declared system of record (#1745) — the ONE derivation the `system-of-record-sources` fact and the evidence
148
+ * collector both call, so what a notice states and what the evidence measures cannot disagree.
49
149
  *
50
- * A computed answer REPLACES any declaration of the same fact, whatever its scope. A stored copy is refused
51
- * by the family validator, so replacing it is not a precedence rule: the stored copy is never the answer.
52
- * Declared facts pass through untouched, and the computed declarations adopt the stored file's governance
53
- * scope and specification ref, so one document reads one scope.
150
+ * A notice owes, for such data, "from which source the personal data originate, and if applicable, whether it came
151
+ * from publicly accessible sources", beside the categories and the purposes and legal basis for the processing.
152
+ * spec-cite: GDPR Art. 14(2)(f), 14(1)(c) and 14(1)(d), https://gdpr-info.eu/art-14-gdpr/.
54
153
  *
55
- * ## Only over a family that exists
154
+ * Every part of an entry is a declaration or follows from one:
155
+ * - the SOURCE is the instance the binding names, with its declared vendor — the PROXIMATE source, a deployment the
156
+ * operator runs and reads with its own service identity (#1049 Q2);
157
+ * - the CATEGORIES are the `.dataCategories()` of the fields that come from it ({@link SystemOfRecordDataFlow}), and
158
+ * personal fields that name none are named, so a list that is incomplete says so;
159
+ * - the PURPOSES are the ones the binding links (`binding.purposeRefs`), resolved against the lawful bases; a flow that
160
+ * links none states no purpose, and a ref naming no declared purpose is reported as a broken link;
161
+ * - for a PIPELINE (a local copy), whether the copied rows are kept until erased — no retention class and no `.ttl()`
162
+ * (#1613), which is exactly where a copy of a record the source keeps for years goes unnoticed. A read-through
163
+ * binding keeps nothing locally, so it states `copiedLocally: false` instead.
56
164
  *
57
- * `stored` is required. An application that has not produced its facts yet has nothing to enrich, and a
58
- * facts set synthesized from the computed ones alone would change what every reader concludes: "no facts
59
- * produced yet" makes a citation check skip, while "declares only these two" makes it refuse every other
60
- * citation. The computed facts join the application's facts; they do not stand in for them.
165
+ * A flow that carries no personal data is not a source of personal data and is left out.
166
+ *
167
+ * Whether the data ORIGINATED from publicly accessible sources (the second half of Art. 14(2)(f)) is not a property of
168
+ * the binding: an ERP contact may have been entered from a public register or website. The operator states it per
169
+ * instance (`systemsOfRecord.<name>.personalDataOrigin`) and the entry carries that declaration; an instance stating
170
+ * none gives an entry with no origin, and a notice marks that half owed. Rejected: a constant
171
+ * `publiclyAccessibleSource: false`, which would state a legal fact about the data's origin that nothing derives.
172
+ *
173
+ * Answers `[]` when no system of record is declared — a true statement, not a gap, since no binding can name an
174
+ * undeclared instance. Answers `undefined` when instances are declared and the flows could not be read: an empty list
175
+ * then would say "nothing is obtained from them" about an application whose declarations were simply not read.
61
176
  */
177
+ export declare function deriveSystemOfRecordSources(inputs: {
178
+ readonly recipientPopulation: RecipientPopulation;
179
+ readonly systemOfRecordFlows: readonly SystemOfRecordDataFlow[] | undefined;
180
+ readonly systemOfRecordVendors: Readonly<Record<string, string>> | undefined;
181
+ readonly systemOfRecordPersonalDataOrigins?: Readonly<Record<string, SystemOfRecordPersonalDataOrigin>> | undefined;
182
+ readonly lawfulBases: readonly OperatorLawfulBasis[] | undefined;
183
+ readonly resourceRetentionBindings?: readonly ResourceRetentionBindingFact[] | undefined;
184
+ }): readonly SystemOfRecordSource[] | undefined;
185
+ /** Every computed fact the inputs can answer, in vocabulary order. */
186
+ export declare function computeApplicationDocumentFacts(inputs: ApplicationDocumentFactComputationInputs): readonly ComputedDocumentFactAnswer[];
62
187
  export declare function overlayComputedDocumentFacts(stored: ApplicationDocumentFactSpecification, answers: readonly ComputedDocumentFactAnswer[]): ApplicationDocumentFactSpecification;
63
188
  export {};
64
189
  //# sourceMappingURL=computed-document-facts.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"computed-document-facts.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/computed-document-facts.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,qCAAqC,EAC1C,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,0DAA0D,EAE1D,oBAAoB,EACpB,KAAK,yCAAyC,EAC9C,KAAK,oCAAoC,EAC1C,MAAM,iGAAiG,CAAC;AAEzG,OAAO,EAKL,KAAK,4BAA4B,EAClC,MAAM,8BAA8B,CAAC;AAEtC;;;;;;GAMG;AAEH,0DAA0D;AAC1D,KAAK,iBAAiB,GAAG,OAAO,CAC9B,yCAAyC,EACzC;IAAE,cAAc,EAAE,0DAA0D,CAAC,KAAK,CAAA;CAAE,CACrF,CAAC,OAAO,CAAC,CAAC;AAEX,uHAAuH;AACvH,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,0BAA0B,EAAE,qCAAqC,GAAG,SAAS,CAAC;IACvF,QAAQ,CAAC,iBAAiB,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACrE;;;OAGG;IACH,QAAQ,CAAC,yBAAyB,EAAE,SAAS,MAAM,EAAE,CAAC;IACtD,QAAQ,CAAC,yBAAyB,EAAE,oCAAoC,GAAG,SAAS,CAAC;IACrF,6GAA6G;IAC7G,QAAQ,CAAC,iBAAiB,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACrE;;;OAGG;IACH,QAAQ,CAAC,yBAAyB,EAAE,SAAS,wBAAwB,EAAE,GAAG,SAAS,CAAC;IACpF,0GAA0G;IAC1G,QAAQ,CAAC,0BAA0B,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CACpE;AAED,mHAAmH;AACnH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CACtD;AAED,0GAA0G;AAC1G,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;CACnC;AA2ND,sEAAsE;AACtE,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,wCAAwC,GAAG,SAAS,0BAA0B,EAAE,CAavI;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,oCAAoC,EAC5C,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAC7C,oCAAoC,CAkCtC"}
1
+ {"version":3,"file":"computed-document-facts.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/computed-document-facts.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,kBAAkB,EAIlB,KAAK,qCAAqC,EAC1C,KAAK,mBAAmB,EACxB,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACtC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,0DAA0D,EAG1D,oBAAoB,EAEpB,KAAK,yCAAyC,EAC9C,KAAK,oCAAoC,EAC1C,MAAM,iGAAiG,CAAC;AAEzG,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAoE,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC5I,OAAO,EAA8B,0BAA0B,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAGtI;;;;;;GAMG;AAEH,0DAA0D;AAC1D,KAAK,iBAAiB,GAAG,OAAO,CAC9B,yCAAyC,EACzC;IAAE,cAAc,EAAE,0DAA0D,CAAC,KAAK,CAAA;CAAE,CACrF,CAAC,OAAO,CAAC,CAAC;AAEX,uHAAuH;AACvH,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,0BAA0B,EAAE,qCAAqC,GAAG,SAAS,CAAC;IACvF,QAAQ,CAAC,iBAAiB,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACrE;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAClD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,sBAAsB,EAAE,GAAG,SAAS,CAAC;IAC7E;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAC9E;;;;OAIG;IACH,QAAQ,CAAC,iCAAiC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC,GAAG,SAAS,CAAC;IACpH,0FAA0F;IAC1F,QAAQ,CAAC,yBAAyB,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;IACtF,6GAA6G;IAC7G,QAAQ,CAAC,iBAAiB,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACrE;;;OAGG;IACH,QAAQ,CAAC,yBAAyB,EAAE,SAAS,wBAAwB,EAAE,GAAG,SAAS,CAAC;IACpF;;;;;OAKG;IACH,QAAQ,CAAC,yBAAyB,CAAC,EAAE,SAAS,4BAA4B,EAAE,GAAG,SAAS,CAAC;IACzF,0GAA0G;IAC1G,QAAQ,CAAC,0BAA0B,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACnE;;;;;OAKG;IACH,QAAQ,CAAC,4BAA4B,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CAClF;AAED,mHAAmH;AACnH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IACrD;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CAC1D;AAED,8EAA8E;AAC9E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IACrD,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,oBAAY,wBAAwB;IAClC,yGAAyG;IACzG,qBAAqB,0BAA0B;IAC/C,gHAAgH;IAChH,aAAa,kBAAkB;IAC/B;;;;OAIG;IACH,cAAc,mBAAmB;CAClC;AAED,kHAAkH;AAClH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,GAAG,wBAAwB,EAAE,CAM/H;AAED,0GAA0G;AAC1G,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAoUD,6IAA6I;AAC7I,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAC9C;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,gCAAgC,CAAC;IAC/D,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,2BAA2B,EAAE,SAAS,MAAM,EAAE,CAAC;IACxD,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChH,QAAQ,CAAC,0BAA0B,EAAE,SAAS,MAAM,EAAE,CAAC;IACvD,uGAAuG;IACvG,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,6GAA6G;IAC7G,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,yDAAyD;IACzD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAClD,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAClD,QAAQ,CAAC,mBAAmB,EAAE,SAAS,sBAAsB,EAAE,GAAG,SAAS,CAAC;IAC5E,QAAQ,CAAC,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAC7E,QAAQ,CAAC,iCAAiC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC,GAAG,SAAS,CAAC;IACpH,QAAQ,CAAC,WAAW,EAAE,SAAS,mBAAmB,EAAE,GAAG,SAAS,CAAC;IACjE,QAAQ,CAAC,yBAAyB,CAAC,EAAE,SAAS,4BAA4B,EAAE,GAAG,SAAS,CAAC;CAC1F,GAAG,SAAS,oBAAoB,EAAE,GAAG,SAAS,CAoC9C;AAgBD,sEAAsE;AACtE,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,wCAAwC,GAAG,SAAS,0BAA0B,EAAE,CAiBvI;AA+BD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,oCAAoC,EAC5C,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAC7C,oCAAoC,CA4CtC"}
@@ -1,7 +1,42 @@
1
- import { complaintRouteUnderRegime, dataProtectionRegimeOf, OperatorProcessingRole, rightsUnderRegime, subjectRequestResponderFor, undeclaredRetentionClasses, } from "@wildo-ai/saas-models";
2
- import { ApplicationAssuranceDocumentFactContributionResolutionKind, ApplicationDocumentFactSpecificationSchema, ComputedDocumentFact, } from "../../application-creation/application-document-fact-specification.application-creation.schemas.js";
1
+ import { complaintRouteUnderRegime, dataProtectionRegimeOf, OperatorProcessingRole, rightsUnderRegime, subjectRequestResponderFor, DataRetentionClass, undeclaredRetentionClasses, isKeptUntilErased, RETENTION_CLASS_SWEEP_INTERVAL_MS, } from "@wildo-ai/saas-models";
2
+ import { ApplicationAssuranceDocumentFactContributionResolutionKind, ApplicationDocumentFactSpecificationSchema, COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS, ComputedDocumentFact, computedDocumentFactOf, } from "../../application-creation/application-document-fact-specification.application-creation.schemas.js";
3
3
  import { AssuranceDocumentFactAuthorityKind } from "../../assurance.exports.js";
4
- import { classifyConfiguredProviderRecipients, processorProcessingRegions, ProcessorRegisterEntryKind, ProcessorTransferDeterminationKind, } from "./processor-register.schemas.js";
4
+ import { processorProcessingRegions, ProcessorRegisterEntryKind, ProcessorTransferDeterminationKind, } from "./processor-register.schemas.js";
5
+ import { joinRecipientPopulationToRegister, RecipientPopulationMemberKind } from "./recipient-population.schemas.js";
6
+ import { deriveRecipientDisclosures, SystemOfRecordDataFlowKind } from "./recipient-disclosures.schemas.js";
7
+ import { deriveRetentionEnforcementFacts } from "./retention-enforcement-facts.schemas.js";
8
+ /**
9
+ * WHAT deletes data of a declared class when its period ends — the mechanism a retention clause may name.
10
+ *
11
+ * A statement about the application's CONFIGURATION (which mechanism the declarations wire up), not
12
+ * runtime evidence that the mechanism ran: that is `ComputedDocumentFact.RETENTION_ENFORCEMENT`, computed
13
+ * from the sweep's records (#1636). An empty list here means no mechanism is even wired for the class — a
14
+ * notice must not describe a period nothing applies.
15
+ */
16
+ export var RetentionPeriodMechanism;
17
+ (function (RetentionPeriodMechanism) {
18
+ /** At least one resource binds the class; the retention-class sweep deletes its rows past the period. */
19
+ RetentionPeriodMechanism["RETENTION_CLASS_SWEEP"] = "RETENTION_CLASS_SWEEP";
20
+ /** The FILES class: file bytes released from their rows are destroyed by the files cleanup after the period. */
21
+ RetentionPeriodMechanism["FILES_CLEANUP"] = "FILES_CLEANUP";
22
+ /**
23
+ * The AUDIT_LOGS class: the audit trail is IMMUTABLE and never deleted; the period is its live-store
24
+ * horizon, after which records are copied to the audit archive. A notice must not say audit records
25
+ * are deleted.
26
+ */
27
+ RetentionPeriodMechanism["AUDIT_ARCHIVAL"] = "AUDIT_ARCHIVAL";
28
+ })(RetentionPeriodMechanism || (RetentionPeriodMechanism = {}));
29
+ /** The mechanisms that act on a declared class, given which resources bind it. Pure, so it is pinned directly. */
30
+ export function retentionPeriodMechanisms(dataClass, boundResourceCount) {
31
+ const mechanisms = [];
32
+ if (boundResourceCount > 0)
33
+ mechanisms.push(RetentionPeriodMechanism.RETENTION_CLASS_SWEEP);
34
+ if (dataClass === DataRetentionClass.FILES)
35
+ mechanisms.push(RetentionPeriodMechanism.FILES_CLEANUP);
36
+ if (dataClass === DataRetentionClass.AUDIT_LOGS)
37
+ mechanisms.push(RetentionPeriodMechanism.AUDIT_ARCHIVAL);
38
+ return mechanisms;
39
+ }
5
40
  /**
6
41
  * How public each computed fact is. Every one is published in a privacy notice, so every one is public;
7
42
  * the table exists so a member added later must state its own sensitivity rather than inherit one.
@@ -13,6 +48,10 @@ const COMPUTED_DOCUMENT_FACT_SENSITIVITY_REFS = {
13
48
  [ComputedDocumentFact.RETENTION_RULES]: "sensitivity:public",
14
49
  [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: "sensitivity:public",
15
50
  [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: "sensitivity:public",
51
+ // Counts and resource types, published in the notice's retention section.
52
+ [ComputedDocumentFact.RETENTION_ENFORCEMENT]: "sensitivity:public",
53
+ // Instance names, vendors, resource types and categories, published in the notice's data-and-sources section.
54
+ [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: "sensitivity:public",
16
55
  };
17
56
  /**
18
57
  * The operator as controller or processor, and how a person reaches it about privacy.
@@ -48,17 +87,21 @@ function computeControllerAndContact(identity) {
48
87
  * and an answer computed from it would state "no recipients" about an application whose recipients
49
88
  * are simply undeclared.
50
89
  *
51
- * With a register, the gaps are part of the answer rather than a reason to withhold it. A provider
52
- * that is configured but has no established identity is IN USE, and saying so is true. A register entry
53
- * for a provider no longer configured is named so a drafter does not publish it. A self-hosted provider
54
- * is named as operator-run, so it is never mistaken for a third party. The classification is
55
- * {@link classifyConfiguredProviderRecipients}, the same one the drafter's brief renders.
90
+ * With a register, the gaps are part of the answer rather than a reason to withhold it. An operator
91
+ * sub-processor with no established identity is IN USE, and saying so is true. A register entry that no
92
+ * data path reaches is named so a drafter does not publish it. A self-hosted provider is named as
93
+ * operator-run, so it is never mistaken for a third party. A TENANT recipient — a vendor reached only
94
+ * through a tenant's or a person's own connected account — is named separately: it is the tenant's vendor,
95
+ * not the operator's sub-processor, and a register entry for one is named as a misstatement. A declared
96
+ * member no data path reaches is named so it is neither published nor lost. The classification is
97
+ * {@link joinRecipientPopulationToRegister} over {@link computeRecipientPopulation}, the same one the
98
+ * drafter's brief renders and the evidence collector measures.
56
99
  */
57
100
  function computeRecipientsAndProcessors(inputs) {
58
101
  const register = inputs.processorRegister;
59
102
  if (register === undefined)
60
103
  return undefined;
61
- const classification = classifyConfiguredProviderRecipients(inputs.runtimeScopedProviderRefs, register, inputs.providerComplianceChoices);
104
+ const classification = joinRecipientPopulationToRegister(inputs.recipientPopulation, register);
62
105
  return {
63
106
  // A JSON round trip rather than a hand-listed projection: the register is already JSON-shaped, and a
64
107
  // field added to it later must reach the fact without an edit here. It also drops absent optional keys.
@@ -67,6 +110,21 @@ function computeRecipientsAndProcessors(inputs) {
67
110
  configuredProvidersWithoutEstablishedIdentity: [...classification.undeclaredProviderRefs],
68
111
  registeredProvidersNotConfigured: [...classification.staleProviderRefs],
69
112
  operatorRunProviderRefs: [...classification.operatorRunProviderRefs],
113
+ tenantRecipientRefs: [...classification.tenantRecipientRefs],
114
+ registeredTenantRecipientRefs: [...classification.registeredTenantRecipientRefs],
115
+ declaredWithoutDataPathRefs: [...classification.declaredWithoutDataPathRefs],
116
+ /*
117
+ * Per recipient: the categories its DECLARED flows carry, and the purposes its choice links to (#1709). A
118
+ * recipient whose flow declares no field map carries `categoriesNotDerivable` — the notice must say what is
119
+ * not established rather than list nothing. The law asks for categories of data and of recipients (GDPR Art.
120
+ * 30(1)(c), (d); Art. 13(1)(e)); stating which reach which is the practice that keeps them consistent.
121
+ */
122
+ recipientDisclosures: JSON.parse(JSON.stringify(deriveRecipientDisclosures({
123
+ population: inputs.recipientPopulation,
124
+ systemOfRecordFlows: inputs.systemOfRecordFlows,
125
+ providerComplianceChoices: inputs.providerComplianceChoices,
126
+ lawfulBases: inputs.operatorComplianceIdentity?.lawfulBases,
127
+ }))),
70
128
  };
71
129
  }
72
130
  /**
@@ -82,6 +140,8 @@ function computeLawfulBases(identity) {
82
140
  return {
83
141
  bases: identity.lawfulBases.map((entry) => ({
84
142
  purpose: entry.purpose,
143
+ // The stable id recipients link to (#1709), so a drafter can join a recipient's purposes to this list.
144
+ ...(entry.purposeRef === undefined ? {} : { purposeRef: entry.purposeRef }),
85
145
  basis: entry.basis,
86
146
  ...(entry.assessmentNote === undefined ? {} : { assessmentNote: entry.assessmentNote }),
87
147
  })),
@@ -102,6 +162,11 @@ function computeLawfulBases(identity) {
102
162
  * as complete without it is the failure above). With both, undeclared classes and resources declaring no
103
163
  * treatment are PART of the answer, named, exactly as the recipients fact names its gaps: the schedule is
104
164
  * partial on purpose and a notice marks the rest as owed.
165
+ *
166
+ * When the resources' retention bindings were readable (#1613), each period also names the resources bound
167
+ * to it and the {@link RetentionPeriodMechanism}s that act on it — an EMPTY list is "declared, not yet
168
+ * enforced", so a notice never describes a period nothing applies — and the resources bound to no class are
169
+ * named, because they are kept until erased and nobody decided otherwise.
105
170
  */
106
171
  function computeRetentionRules(inputs) {
107
172
  const schedule = inputs.retentionSchedule;
@@ -109,15 +174,52 @@ function computeRetentionRules(inputs) {
109
174
  if (schedule === undefined || treatments === undefined)
110
175
  return undefined;
111
176
  const byResource = [...treatments].sort((left, right) => (left.resourceType < right.resourceType ? -1 : 1));
177
+ // #1613: which resources bind each class, and which bind nothing. Only when the bindings were readable —
178
+ // otherwise the fact names no mechanism rather than implying none exists.
179
+ const bindings = inputs.resourceRetentionBindings;
180
+ const boundByClass = new Map();
181
+ for (const binding of bindings ?? []) {
182
+ if (!binding.retentionBinding)
183
+ continue;
184
+ const list = boundByClass.get(binding.retentionBinding.retentionClass) ?? [];
185
+ list.push(binding.resourceType);
186
+ boundByClass.set(binding.retentionBinding.retentionClass, list);
187
+ }
112
188
  return {
113
189
  periods: Object.entries(schedule)
114
190
  .filter((entry) => entry[1] !== undefined)
115
- .map(([dataClass, period]) => ({ dataClass, retentionDays: period.retentionDays, rationale: period.rationale }))
191
+ .map(([dataClass, period]) => {
192
+ const bound = [...(boundByClass.get(dataClass) ?? [])].sort();
193
+ return {
194
+ dataClass,
195
+ retentionDays: period.retentionDays,
196
+ rationale: period.rationale,
197
+ ...(bindings === undefined ? {} : {
198
+ boundResourceTypes: bound,
199
+ mechanisms: retentionPeriodMechanisms(dataClass, bound.length),
200
+ }),
201
+ };
202
+ })
116
203
  .sort((left, right) => (left.dataClass < right.dataClass ? -1 : 1)),
204
+ ...(bindings === undefined ? {} : {
205
+ // Kept until erased: no class binding and no `.ttl()`. Undecided, and named so it stays visible.
206
+ resourcesBoundToNoRetentionClass: bindings
207
+ .filter(isKeptUntilErased)
208
+ .map((binding) => binding.resourceType)
209
+ .sort(),
210
+ }),
117
211
  classesWithoutDeclaredPeriod: [...undeclaredRetentionClasses(schedule)],
118
212
  erasureTreatments: byResource
119
213
  .filter((treatment) => treatment.erasureRetentionMode !== undefined)
120
- .map((treatment) => ({ resourceType: treatment.resourceType, erasureRetentionMode: treatment.erasureRetentionMode })),
214
+ .map((treatment) => ({
215
+ resourceType: treatment.resourceType,
216
+ erasureRetentionMode: treatment.erasureRetentionMode,
217
+ // #1635: the rows are kept RESTRICTED through an erasure because a statute requires it, until the period
218
+ // ends. The notice names the ground and the law; it never says the erasure is refused because of them.
219
+ ...(treatment.statutoryRetention === undefined
220
+ ? {}
221
+ : { statutoryRetention: { ground: treatment.statutoryRetention.ground, rationale: treatment.statutoryRetention.rationale } }),
222
+ })),
121
223
  resourcesWithoutDeclaredErasureTreatment: byResource
122
224
  .filter((treatment) => treatment.erasureRetentionMode === undefined)
123
225
  .map((treatment) => treatment.resourceType),
@@ -147,7 +249,7 @@ function computeInternationalTransfers(inputs) {
147
249
  if (register === undefined || origins === undefined)
148
250
  return undefined;
149
251
  const refOf = (processor) => processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? processor.providerRef : processor.subprocessorRef;
150
- const classification = classifyConfiguredProviderRecipients(inputs.runtimeScopedProviderRefs, register, inputs.providerComplianceChoices);
252
+ const classification = joinRecipientPopulationToRegister(inputs.recipientPopulation, register);
151
253
  const safeguardGaps = [];
152
254
  for (const processor of register.processors) {
153
255
  const determination = processor.transferDetermination;
@@ -218,19 +320,146 @@ function computeRightsAndComplaintRoute(inputs) {
218
320
  responseOwnership: responsibility.map((entry) => ({ dataScope: entry.dataScope, respondedBy: entry.respondedBy })),
219
321
  };
220
322
  }
323
+ /**
324
+ * Per declared class, whether its period is ENFORCED, only DECLARED, or FAILING — read from the records the
325
+ * retention-class sweep wrote (#1636). The first `RUNTIME_EVIDENCE` answer.
326
+ *
327
+ * Answers nothing unless the schedule, the bindings AND the evidence were all readable: without the schedule
328
+ * there is no declared class to speak of, without the bindings "no bound resource" cannot be told from "could
329
+ * not read them", and without the evidence nothing is known about what the product did. Each absence leaves the
330
+ * fact absent, so the clause resting on it is marked owed rather than reading "declared, not enforced" about an
331
+ * application whose records simply were not collected.
332
+ */
333
+ function computeRetentionEnforcement(inputs) {
334
+ const evidence = inputs.retentionEnforcementEvidence;
335
+ if (inputs.retentionSchedule === undefined || inputs.resourceRetentionBindings === undefined || evidence === undefined)
336
+ return undefined;
337
+ const observedAt = new Date(evidence.window.to);
338
+ if (Number.isNaN(observedAt.getTime()))
339
+ return undefined;
340
+ const facts = deriveRetentionEnforcementFacts({
341
+ evidence,
342
+ schedule: inputs.retentionSchedule,
343
+ bindings: inputs.resourceRetentionBindings,
344
+ observedAt,
345
+ sweepIntervalMs: RETENTION_CLASS_SWEEP_INTERVAL_MS,
346
+ });
347
+ // Per class, the mechanisms that act on it and that these records CANNOT evidence (#1636 review): the audit trail
348
+ // is archived, never swept, and file bytes are destroyed by the files cleanup. So ENFORCED on AUDIT_LOGS or FILES
349
+ // speaks only for the resources bound to the class — the side tables — and a notice must not read it as covering
350
+ // the audit trail or the stored files. Derived from `retentionPeriodMechanisms`, the same table retention-rules uses.
351
+ const classes = facts.classes.map((entry) => ({
352
+ ...entry,
353
+ mechanismsNotEvidencedByTheseRecords: retentionPeriodMechanisms(entry.dataClass, entry.boundResourceTypes.length)
354
+ .filter((mechanism) => mechanism !== RetentionPeriodMechanism.RETENTION_CLASS_SWEEP),
355
+ }));
356
+ // A JSON round trip: the derivation's answer is JSON-shaped by construction and drops absent optional keys.
357
+ return {
358
+ fact: ComputedDocumentFact.RETENTION_ENFORCEMENT,
359
+ value: JSON.parse(JSON.stringify({ ...facts, classes })),
360
+ observedAt: facts.observedAt,
361
+ };
362
+ }
363
+ /**
364
+ * Where personal data the application did NOT collect from the person comes from: every resource bound to, or piped
365
+ * from, a declared system of record (#1745) — the ONE derivation the `system-of-record-sources` fact and the evidence
366
+ * collector both call, so what a notice states and what the evidence measures cannot disagree.
367
+ *
368
+ * A notice owes, for such data, "from which source the personal data originate, and if applicable, whether it came
369
+ * from publicly accessible sources", beside the categories and the purposes and legal basis for the processing.
370
+ * spec-cite: GDPR Art. 14(2)(f), 14(1)(c) and 14(1)(d), https://gdpr-info.eu/art-14-gdpr/.
371
+ *
372
+ * Every part of an entry is a declaration or follows from one:
373
+ * - the SOURCE is the instance the binding names, with its declared vendor — the PROXIMATE source, a deployment the
374
+ * operator runs and reads with its own service identity (#1049 Q2);
375
+ * - the CATEGORIES are the `.dataCategories()` of the fields that come from it ({@link SystemOfRecordDataFlow}), and
376
+ * personal fields that name none are named, so a list that is incomplete says so;
377
+ * - the PURPOSES are the ones the binding links (`binding.purposeRefs`), resolved against the lawful bases; a flow that
378
+ * links none states no purpose, and a ref naming no declared purpose is reported as a broken link;
379
+ * - for a PIPELINE (a local copy), whether the copied rows are kept until erased — no retention class and no `.ttl()`
380
+ * (#1613), which is exactly where a copy of a record the source keeps for years goes unnoticed. A read-through
381
+ * binding keeps nothing locally, so it states `copiedLocally: false` instead.
382
+ *
383
+ * A flow that carries no personal data is not a source of personal data and is left out.
384
+ *
385
+ * Whether the data ORIGINATED from publicly accessible sources (the second half of Art. 14(2)(f)) is not a property of
386
+ * the binding: an ERP contact may have been entered from a public register or website. The operator states it per
387
+ * instance (`systemsOfRecord.<name>.personalDataOrigin`) and the entry carries that declaration; an instance stating
388
+ * none gives an entry with no origin, and a notice marks that half owed. Rejected: a constant
389
+ * `publiclyAccessibleSource: false`, which would state a legal fact about the data's origin that nothing derives.
390
+ *
391
+ * Answers `[]` when no system of record is declared — a true statement, not a gap, since no binding can name an
392
+ * undeclared instance. Answers `undefined` when instances are declared and the flows could not be read: an empty list
393
+ * then would say "nothing is obtained from them" about an application whose declarations were simply not read.
394
+ */
395
+ export function deriveSystemOfRecordSources(inputs) {
396
+ const declaresInstance = inputs.recipientPopulation.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD);
397
+ if (!declaresInstance)
398
+ return [];
399
+ const flows = inputs.systemOfRecordFlows;
400
+ if (flows === undefined)
401
+ return undefined;
402
+ const basesByRef = new Map((inputs.lawfulBases ?? []).flatMap((entry) => (entry.purposeRef === undefined ? [] : [[entry.purposeRef, entry]])));
403
+ const bindingByResource = inputs.resourceRetentionBindings === undefined ? undefined
404
+ : new Map(inputs.resourceRetentionBindings.map((binding) => [binding.resourceType, binding]));
405
+ return flows
406
+ .filter((flow) => flow.categories.length > 0 || flow.uncategorizedPersonalFields.length > 0)
407
+ .map((flow) => {
408
+ const copied = flow.kind === SystemOfRecordDataFlowKind.PIPELINE;
409
+ const binding = bindingByResource?.get(flow.resourceType);
410
+ const personalDataOrigin = inputs.systemOfRecordPersonalDataOrigins?.[flow.system];
411
+ return {
412
+ system: flow.system,
413
+ vendor: inputs.systemOfRecordVendors?.[flow.system] ?? null,
414
+ resourceType: flow.resourceType,
415
+ flowKind: flow.kind,
416
+ ...(personalDataOrigin === undefined ? {} : { personalDataOrigin }),
417
+ categories: [...flow.categories],
418
+ uncategorizedPersonalFields: [...flow.uncategorizedPersonalFields],
419
+ purposes: flow.purposeRefs.flatMap((purposeRef) => {
420
+ const basis = basesByRef.get(purposeRef);
421
+ return basis === undefined ? [] : [{ purposeRef, purpose: basis.purpose, basis: basis.basis }];
422
+ }),
423
+ purposeRefsNamingNoPurpose: flow.purposeRefs.filter((purposeRef) => !basesByRef.has(purposeRef)),
424
+ copiedLocally: copied,
425
+ // Only for a copy, and only when the bindings were readable: otherwise "kept until erased" cannot be told from
426
+ // "not read", and the key is absent rather than false.
427
+ ...(copied && binding !== undefined
428
+ ? { keptUntilErased: isKeptUntilErased(binding), ...(binding.retentionBinding === undefined ? {} : { retentionClass: binding.retentionBinding.retentionClass }) }
429
+ : {}),
430
+ };
431
+ })
432
+ .sort((left, right) => (`${left.system}/${left.resourceType}/${left.flowKind}` < `${right.system}/${right.resourceType}/${right.flowKind}` ? -1 : 1));
433
+ }
434
+ /** The `system-of-record-sources` fact: {@link deriveSystemOfRecordSources}, JSON-shaped. */
435
+ function computeSystemOfRecordSources(inputs) {
436
+ const sources = deriveSystemOfRecordSources({
437
+ recipientPopulation: inputs.recipientPopulation,
438
+ systemOfRecordFlows: inputs.systemOfRecordFlows,
439
+ systemOfRecordVendors: inputs.systemOfRecordVendors,
440
+ systemOfRecordPersonalDataOrigins: inputs.systemOfRecordPersonalDataOrigins,
441
+ lawfulBases: inputs.operatorComplianceIdentity?.lawfulBases,
442
+ resourceRetentionBindings: inputs.resourceRetentionBindings,
443
+ });
444
+ // A JSON round trip: the derivation's answer is JSON-shaped by construction and drops absent optional keys.
445
+ return sources === undefined ? undefined : JSON.parse(JSON.stringify({ sources }));
446
+ }
221
447
  /** Every computed fact the inputs can answer, in vocabulary order. */
222
448
  export function computeApplicationDocumentFacts(inputs) {
449
+ const declared = (fact, value) => value === undefined ? undefined : { fact, value };
223
450
  const computers = {
224
- [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: () => computeControllerAndContact(inputs.operatorComplianceIdentity),
225
- [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: () => computeRecipientsAndProcessors(inputs),
226
- [ComputedDocumentFact.LAWFUL_BASES]: () => computeLawfulBases(inputs.operatorComplianceIdentity),
227
- [ComputedDocumentFact.RETENTION_RULES]: () => computeRetentionRules(inputs),
228
- [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: () => computeInternationalTransfers(inputs),
229
- [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: () => computeRightsAndComplaintRoute(inputs),
451
+ [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: () => declared(ComputedDocumentFact.CONTROLLER_AND_CONTACT, computeControllerAndContact(inputs.operatorComplianceIdentity)),
452
+ [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: () => declared(ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS, computeRecipientsAndProcessors(inputs)),
453
+ [ComputedDocumentFact.LAWFUL_BASES]: () => declared(ComputedDocumentFact.LAWFUL_BASES, computeLawfulBases(inputs.operatorComplianceIdentity)),
454
+ [ComputedDocumentFact.RETENTION_RULES]: () => declared(ComputedDocumentFact.RETENTION_RULES, computeRetentionRules(inputs)),
455
+ [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: () => declared(ComputedDocumentFact.INTERNATIONAL_TRANSFERS, computeInternationalTransfers(inputs)),
456
+ [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: () => declared(ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE, computeRightsAndComplaintRoute(inputs)),
457
+ [ComputedDocumentFact.RETENTION_ENFORCEMENT]: () => computeRetentionEnforcement(inputs),
458
+ [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: () => declared(ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES, computeSystemOfRecordSources(inputs)),
230
459
  };
231
460
  return Object.values(ComputedDocumentFact).flatMap((fact) => {
232
- const value = computers[fact]();
233
- return value === undefined ? [] : [{ fact, value }];
461
+ const answer = computers[fact]();
462
+ return answer === undefined ? [] : [answer];
234
463
  });
235
464
  }
236
465
  /**
@@ -248,15 +477,45 @@ export function computeApplicationDocumentFacts(inputs) {
248
477
  * produced yet" makes a citation check skip, while "declares only these two" makes it refuse every other
249
478
  * citation. The computed facts join the application's facts; they do not stand in for them.
250
479
  */
480
+ /**
481
+ * The authority a computed answer is stamped with: the fact's tier from {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS},
482
+ * never a default. A RUNTIME_EVIDENCE fact carries the instant its evidence describes; one produced without
483
+ * that instant is a defect in its computation and is refused here rather than stamped as specification.
484
+ */
485
+ function computedFactAuthority(answer) {
486
+ const common = { authorityRef: `document-fact-authority:${answer.fact}`, authorityVersion: 1 };
487
+ if (COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS[answer.fact] === AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE) {
488
+ if (answer.observedAt === undefined)
489
+ throw new Error(`Computed fact "${answer.fact}" is runtime evidence and was produced without its observedAt instant`);
490
+ return { factAuthorityKind: AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE, ...common, observedAt: answer.observedAt };
491
+ }
492
+ return { factAuthorityKind: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION, ...common };
493
+ }
251
494
  export function overlayComputedDocumentFacts(stored, answers) {
252
- if (answers.length === 0)
253
- return stored;
254
495
  const declarationRefOf = (fact) => `document-fact-declaration:${fact}`;
255
- const computedFactRefs = new Set(answers.map((answer) => `document-fact:${answer.fact}`));
256
- const computedDeclarationRefs = new Set(answers.map((answer) => declarationRefOf(answer.fact)));
496
+ const everyComputedDeclarationRef = new Set(Object.values(ComputedDocumentFact).map(declarationRefOf));
497
+ // A stored copy of ANY computed fact is dropped, answered or not (#1636 review). It used to be dropped only
498
+ // when the runtime had an answer to replace it with, so an unanswered fact let the copy through — and for
499
+ // `retention-enforcement` that is a typed "ENFORCED" under RUNTIME_EVIDENCE authority reaching a notice
500
+ // whose records were never collected. A stored copy is never the answer; absent is.
501
+ const isComputedCopy = (declaration) => computedDocumentFactOf(declaration.factRef) !== undefined || everyComputedDeclarationRef.has(declaration.declarationRef);
502
+ if (answers.length === 0 && !stored.declarations.some(isComputedCopy))
503
+ return stored;
257
504
  // The family schema requires at least one declaration, so a parsed specification always has a first.
258
505
  const governanceScope = stored.declarations[0].governanceScope;
259
- const kept = stored.declarations.filter((declaration) => !computedFactRefs.has(declaration.factRef) && !computedDeclarationRefs.has(declaration.declarationRef));
506
+ let kept = stored.declarations.filter((declaration) => !isComputedCopy(declaration));
507
+ if (kept.length === 0 && answers.length === 0) {
508
+ // Degenerate: the file holds nothing but copies of computed facts, and nothing was computed. The family
509
+ // cannot be empty, so keep the copies that claim no runtime evidence (the validator reports them at every
510
+ // landing) and never one that claims RUNTIME_EVIDENCE. A file of runtime-evidence copies alone is returned
511
+ // as it is — the one residual, and one only a hand edit could produce (landing validation reports it as
512
+ // DOCUMENT_FACT_IS_COMPUTED). It exists because the stored-file schema must admit RUNTIME_EVIDENCE for the
513
+ // overlaid view to validate; the clean closure is a separate schema for the overlaid view, keeping that tier
514
+ // out of the stored-file schema — not done yet, and recorded here rather than left implicit.
515
+ kept = stored.declarations.filter((declaration) => declaration.authority?.factAuthorityKind !== AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE);
516
+ if (kept.length === 0)
517
+ return stored;
518
+ }
260
519
  const computed = answers.map((answer) => ({
261
520
  declarationRef: declarationRefOf(answer.fact),
262
521
  declarationVersion: 1,
@@ -264,11 +523,7 @@ export function overlayComputedDocumentFacts(stored, answers) {
264
523
  factVersion: 1,
265
524
  governanceScope,
266
525
  sensitivityRef: COMPUTED_DOCUMENT_FACT_SENSITIVITY_REFS[answer.fact],
267
- authority: {
268
- factAuthorityKind: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION,
269
- authorityRef: `document-fact-authority:${answer.fact}`,
270
- authorityVersion: 1,
271
- },
526
+ authority: computedFactAuthority(answer),
272
527
  resolutionKind: ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN,
273
528
  value: answer.value,
274
529
  }));