@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,8 +1,8 @@
1
- import { ProviderDeploymentModel } from "@wildo-ai/saas-models";
2
1
  import { z } from "zod";
3
2
  // Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —
4
3
  // never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.
5
4
  import '@wildo-ai/zod-decorators';
5
+ import { establishedProviderComplianceProfile, oldestProviderComplianceEvidenceDate, } from '@wildo-ai/saas-models';
6
6
  /** @wildo_source:part:start saas.specifications.processor-register facet:layer:shared facet:audience:app-developer */
7
7
  /**
8
8
  * **Who else processes personal data, under what legal identity, and where.**
@@ -30,6 +30,18 @@ import '@wildo-ai/zod-decorators';
30
30
  * So the register is authored beside the application's other specifications and read from there. What
31
31
  * the framework contributes is the QUESTION and the gap report, never the answer.
32
32
  *
33
+ * ## Researched vendor facts are SUGGESTIONS, adopted only by the operator's commit (decided 2026-09-25, #1744)
34
+ *
35
+ * The framework does research the vendors applications actually declare — legal entity, processing regions,
36
+ * sub-processor list, data processing agreement — and ships each fact on the provider's compliance profile with the
37
+ * page it was read from and the date (`evidence`, #1708). Those facts are SUGGESTIONS: the brief offers them beside an
38
+ * undeclared entry as the question to answer, and nothing reaches a document until the operator checks the page,
39
+ * copies the fact into THIS register and commits it. The commit is the adoption (`one-source-of-truth.md` rule 2);
40
+ * the framework's statement stays "this is what we read, on this date, at this URL". Rejected: publishing the facts
41
+ * straight into computed document facts, which would make the framework the author of a legal statement in someone
42
+ * else's notice, and could not be walked back once a notice carried it; and shipping no facts at all, which leaves
43
+ * every operator to research every vendor alone. A stale suggestion is caught by `complianceFactStaleness`.
44
+ *
33
45
  * ## Absence is a gap with a NAME, because the configured set is already known
34
46
  *
35
47
  * The application's composition already lists its configured providers. Comparing that list against
@@ -195,6 +207,32 @@ export const ProcessorTransferDeterminationSchema = z.discriminatedUnion("kind",
195
207
  }
196
208
  }),
197
209
  ]);
210
+ /**
211
+ * Whether THIS operator has a data processing agreement with the processor — the operator's fact, never the vendor's
212
+ * (#1709). A vendor OFFERING a DPA is a suggestion its compliance profile may carry (`dataProcessingAgreementUrl`);
213
+ * whether this operator is bound by one is not something the framework can know.
214
+ *
215
+ * spec-cite: GDPR Art. 28(3), https://gdpr-info.eu/art-28-gdpr/ — "Processing by a processor shall be governed by a
216
+ * contract or other legal act under Union or Member State law, that is binding on the processor with regard to the
217
+ * controller".
218
+ */
219
+ export var DataProcessingAgreementStatus;
220
+ (function (DataProcessingAgreementStatus) {
221
+ /** A DPA the operator and the processor both signed. */
222
+ DataProcessingAgreementStatus["SIGNED"] = "SIGNED";
223
+ /** The processor's standard DPA forms part of the terms the operator accepted (the common self-serve case). */
224
+ DataProcessingAgreementStatus["INCORPORATED_IN_TERMS"] = "INCORPORATED_IN_TERMS";
225
+ /** No DPA governs this processing yet. Stated, so it reads as a gap rather than an omission. */
226
+ DataProcessingAgreementStatus["NOT_IN_PLACE"] = "NOT_IN_PLACE";
227
+ })(DataProcessingAgreementStatus || (DataProcessingAgreementStatus = {}));
228
+ /** The operator's DPA with one processor. See {@link DataProcessingAgreementStatus}. */
229
+ export const ProcessorDataProcessingAgreementSchema = z.strictObject({
230
+ status: z.enum(DataProcessingAgreementStatus).systemEnum("DataProcessingAgreementStatus"),
231
+ /** When it took effect, `YYYY-MM-DD`, where the operator knows it. */
232
+ effectiveFrom: z.iso.date().optional(),
233
+ /** Where the operator's copy or the incorporated terms can be found — a URL or an internal reference. */
234
+ reference: z.string().trim().min(1).optional(),
235
+ });
198
236
  const ProcessorIdentityFieldsSchema = z.object({
199
237
  /**
200
238
  * The processor's LEGAL entity — the party a data-protection obligation actually binds.
@@ -227,6 +265,18 @@ const ProcessorIdentityFieldsSchema = z.object({
227
265
  subprocessors: z.array(ProcessorSubprocessorSchema),
228
266
  /** Whether reaching this processor is an international transfer, and under what. See {@link ProcessorTransferDeterminationSchema}. */
229
267
  transferDetermination: ProcessorTransferDeterminationSchema.optional(),
268
+ /**
269
+ * The DPA that governs this processing, as THIS operator stands with the processor (#1709). Absent means nobody
270
+ * has recorded it — reported as outstanding by {@link processorAgreementStanding}, never read as "not required".
271
+ */
272
+ dataProcessingAgreement: ProcessorDataProcessingAgreementSchema.optional(),
273
+ /**
274
+ * How long the processor keeps the data it receives, in the terms of THIS operator's arrangement (#1709) — "deleted
275
+ * within 30 days of account termination". Free text in the processor's words, because retention is set by the
276
+ * contract and the product tier, and differs between two operators of the same vendor. Absent means nobody has
277
+ * recorded it, which {@link processorAgreementStanding} names.
278
+ */
279
+ vendorRetention: z.string().trim().min(1).optional(),
230
280
  });
231
281
  /** One entry in the register — a configured provider, or a subprocessor nothing configures. */
232
282
  export const ApplicationProcessorDeclarationSchema = z.discriminatedUnion("kind", [
@@ -279,6 +329,31 @@ export const ApplicationProcessorRegisterSchema = z
279
329
  .strictObject({
280
330
  schemaVersion: z.literal(1),
281
331
  processors: z.array(ApplicationProcessorDeclarationSchema),
332
+ /**
333
+ * When the operator last CHECKED this register against the vendors' own pages, and how long it lets that check
334
+ * stand (#1708).
335
+ *
336
+ * A register is a set of vendor facts with a shelf life — sub-processor lists change on a vendor's notice, legal
337
+ * entities reorganise — and until this field the only date anywhere was a comment ("Verified 2026-09-01") that
338
+ * nothing could read. With it, {@link complianceFactStaleness} names the register, and every framework-suggested
339
+ * vendor fact, that has outlived the interval the application chose. Reported, never refused.
340
+ *
341
+ * Optional: an absent verification is reported as UNDATED, which is the truthful state of a register nobody has
342
+ * dated. The interval is the application's own policy; the framework supplies no default, because how often a
343
+ * vendor register is re-checked is the operator's answer to its own risk, not a fact the framework holds.
344
+ *
345
+ * Typed by the operator rather than derived, and the derivation was considered: the register file's last commit
346
+ * time is when it last CHANGED, and a re-verification that finds nothing to change leaves no commit. Only the
347
+ * person who checked the vendors' pages can say when they did.
348
+ */
349
+ verification: z
350
+ .strictObject({
351
+ /** The day the operator last checked every entry against the vendor's own pages, `YYYY-MM-DD`. */
352
+ verifiedAt: z.iso.date(),
353
+ /** How many days a check stands before the register — and the vendor facts it relies on — is reported stale. */
354
+ reverificationIntervalDays: z.number().int().positive(),
355
+ })
356
+ .optional(),
282
357
  })
283
358
  .superRefine((register, context) => {
284
359
  /*
@@ -404,28 +479,100 @@ export function processorRefsNotConfigured(configuredProviderRefs, register) {
404
479
  .map((processor) => processor.providerRef)
405
480
  .filter((providerRef) => !configured.has(providerRef));
406
481
  }
482
+ /*
483
+ * WHICH configured providers are recipients, and which of those the register has not established, is no longer
484
+ * answered here. `classifyConfiguredProviderRecipients` took the population as a list of refs, and its three
485
+ * readers each built that list differently — capability-bearing providers only in the evidence collector, top-level
486
+ * runtime scopes only in the brief and the computed facts, systems of record in none (#1707). The population and
487
+ * its join to this register are now ONE function pair in `recipient-population.schemas.ts`:
488
+ * `computeRecipientPopulation` and `joinRecipientPopulationToRegister`.
489
+ */
490
+ /**
491
+ * Whether a dated compliance fact is still inside the interval the application declared (#1708).
492
+ */
493
+ export var ComplianceFactCurrency;
494
+ (function (ComplianceFactCurrency) {
495
+ /** Checked within the declared interval. */
496
+ ComplianceFactCurrency["CURRENT"] = "CURRENT";
497
+ /** Checked longer ago than the declared interval: re-check it against the vendor's page. */
498
+ ComplianceFactCurrency["STALE"] = "STALE";
499
+ /** Carries no date at all, so its age cannot be known. */
500
+ ComplianceFactCurrency["UNDATED"] = "UNDATED";
501
+ /** Dated, but the application declares no interval, so nothing says how old is too old. */
502
+ ComplianceFactCurrency["NO_INTERVAL_DECLARED"] = "NO_INTERVAL_DECLARED";
503
+ })(ComplianceFactCurrency || (ComplianceFactCurrency = {}));
504
+ const MILLISECONDS_PER_DAY = 86_400_000;
505
+ function ageOf(verifiedAt, asOf, intervalDays) {
506
+ if (verifiedAt === null)
507
+ return { verifiedAt, ageDays: null, currency: ComplianceFactCurrency.UNDATED };
508
+ const ageDays = Math.floor((Date.parse(`${asOf}T00:00:00Z`) - Date.parse(`${verifiedAt}T00:00:00Z`)) / MILLISECONDS_PER_DAY);
509
+ if (intervalDays === null)
510
+ return { verifiedAt, ageDays, currency: ComplianceFactCurrency.NO_INTERVAL_DECLARED };
511
+ return { verifiedAt, ageDays, currency: ageDays > intervalDays ? ComplianceFactCurrency.STALE : ComplianceFactCurrency.CURRENT };
512
+ }
513
+ /**
514
+ * Which compliance facts have outlived the interval the application declared (#1708) — DERIVED, never asked.
515
+ *
516
+ * Two populations, one interval: the operator's own register (its `verification.verifiedAt`) and the vendor facts
517
+ * the framework suggests (each established profile's oldest `evidence[].verifiedAt`). The interval is the register's
518
+ * `reverificationIntervalDays`, because how old is too old is the operator's policy for both; with none declared,
519
+ * ages are still reported and nothing is called stale.
520
+ *
521
+ * `asOf` is a `YYYY-MM-DD` day supplied by the caller (the run's own instant), so the report is a pure function of
522
+ * its inputs and a test can pin it. A report, never a refusal (`application-creation-directive.md`).
523
+ *
524
+ * assurance-control: WILDO.PRIVACY.THIRD_PARTY_PROCESSING — processor facts older than the operator's own
525
+ * re-verification interval are named, so a notice does not keep stating a vendor arrangement nobody re-checked.
526
+ */
527
+ export function complianceFactStaleness(params) {
528
+ const intervalDays = params.register?.verification?.reverificationIntervalDays ?? null;
529
+ const register = ageOf(params.register?.verification?.verifiedAt ?? null, params.asOf, intervalDays);
530
+ const providerProfiles = [...new Set(params.providerRefs)].sort().flatMap((providerRef) => {
531
+ const established = establishedProviderComplianceProfile(params.profilesByProviderRef[providerRef]);
532
+ return established === null ? [] : [{ providerRef, ...ageOf(oldestProviderComplianceEvidenceDate(established), params.asOf, intervalDays) }];
533
+ });
534
+ return {
535
+ asOf: params.asOf,
536
+ reverificationIntervalDays: intervalDays,
537
+ register,
538
+ providerProfiles,
539
+ registerStale: register.currency === ComplianceFactCurrency.STALE,
540
+ staleProviderRefs: providerProfiles.filter((entry) => entry.currency === ComplianceFactCurrency.STALE).map((entry) => entry.providerRef),
541
+ undatedProviderRefs: providerProfiles.filter((entry) => entry.currency === ComplianceFactCurrency.UNDATED).map((entry) => entry.providerRef),
542
+ };
543
+ }
407
544
  /**
408
- * Which configured providers are recipients, and which of those the register has not established.
545
+ * The register's contractual standing — which processors a recorded DPA governs, which the operator says none does,
546
+ * and which nobody has recorded (#1709).
547
+ *
548
+ * Only the operator can know whether it is bound by a DPA, so this READS what the register states and names what it
549
+ * does not; it never infers a status from a vendor offering one. An absent register yields an empty report — the
550
+ * missing register is already named by the population join, and saying it twice would read as two findings.
551
+ *
552
+ * A report, never a refusal (`application-creation-directive.md`): a processing activity with no DPA is the
553
+ * operator's gap to close, and naming it is what lets them.
409
554
  *
410
- * One function, because two readers need the same answer: the drafter's brief renders it, and the
411
- * computed `recipients-and-processors` fact states it. Before this existed the brief held the rule
412
- * inline, and a second copy would have been free to disagree about a self-hosted provider, which is
413
- * exactly the disagreement wildo-ai/wildo-ai#208 recorded between two renderers in one section.
555
+ * spec-cite: GDPR Art. 28(3), https://gdpr-info.eu/art-28-gdpr/ — "Processing by a processor shall be governed by a
556
+ * contract or other legal act under Union or Member State law, that is binding on the processor with regard to the
557
+ * controller".
414
558
  *
415
- * Only an EXPLICIT `SELF_HOSTED` choice excludes a provider. A provider with no choice stays a recipient
416
- * candidate: absence means nobody has answered, and assuming self-hosted would silence that gap.
417
- * `configuredProviderRefs` must be the RUNTIME-scoped providers; a build-time companion provider is not in
418
- * the path of anyone's data. Order follows the configured list, so the answer reads like the composition.
559
+ * assurance-control: WILDO.PRIVACY.THIRD_PARTY_PROCESSING — a processor with no recorded or no in-place DPA is named,
560
+ * so an unrecorded contractual basis does not read as a governed one.
419
561
  */
420
- export function classifyConfiguredProviderRecipients(configuredProviderRefs, register, choices) {
421
- const operatorRunRefs = new Set(Object.entries(choices ?? {})
422
- .filter(([, choice]) => choice.deploymentModel === ProviderDeploymentModel.SELF_HOSTED)
423
- .map(([providerRef]) => providerRef));
424
- const recipientCandidateRefs = configuredProviderRefs.filter((providerRef) => !operatorRunRefs.has(providerRef));
562
+ export function processorAgreementStanding(register) {
563
+ const entries = (register?.processors ?? [])
564
+ .map((processor) => ({
565
+ ref: processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? processor.providerRef : processor.subprocessorRef,
566
+ entryKind: processor.kind,
567
+ dataProcessingAgreement: processor.dataProcessingAgreement?.status ?? null,
568
+ vendorRetention: processor.vendorRetention ?? null,
569
+ }))
570
+ .sort((left, right) => left.ref.localeCompare(right.ref));
425
571
  return {
426
- operatorRunProviderRefs: configuredProviderRefs.filter((providerRef) => operatorRunRefs.has(providerRef)),
427
- undeclaredProviderRefs: undeclaredProcessorRefs(recipientCandidateRefs, register),
428
- staleProviderRefs: processorRefsNotConfigured(recipientCandidateRefs, register),
572
+ entries,
573
+ agreementUnrecordedRefs: entries.filter((entry) => entry.dataProcessingAgreement === null).map((entry) => entry.ref),
574
+ agreementNotInPlaceRefs: entries.filter((entry) => entry.dataProcessingAgreement === DataProcessingAgreementStatus.NOT_IN_PLACE).map((entry) => entry.ref),
575
+ vendorRetentionUnrecordedRefs: entries.filter((entry) => entry.vendorRetention === null).map((entry) => entry.ref),
429
576
  };
430
577
  }
431
578
  //# sourceMappingURL=processor-register.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"processor-register.schemas.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AE,CAAC,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzG,sBAAsB,EAAE,uBAAuB,CAAC,sBAAsB,EAAE,QAAQ,CAAC;QACjF,iBAAiB,EAAE,0BAA0B,CAAC,sBAAsB,EAAE,QAAQ,CAAC;KAChF,CAAC;AACJ,CAAC","sourcesContent":["import { ProviderDeploymentModel, type ApplicationProviderComplianceChoices } from \"@wildo-ai/saas-models\";\nimport { z } from \"zod\";\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\n/** @wildo_source:part:start saas.specifications.processor-register facet:layer:shared facet:audience:app-developer */\n/**\n * **Who else processes personal data, under what legal identity, and where.**\n *\n * ## The gap this closes\n *\n * A configured provider establishes THAT a third party is involved and WHAT FUNCTION it performs —\n * `EngineCapability` gives email delivery, storage, payments, LLM inference, observability. It gives\n * none of the three things a reader of a privacy notice needs: the processor's legal identity, the\n * region it processes in, and its own subprocessors (issue #88).\n *\n * That gap blocks two concerns rather than one, and the second cannot be answered independently: an\n * international-transfer statement is a statement about WHERE a recipient processes, so a provider\n * carrying no region cannot support one.\n *\n * ## Declared by the APPLICATION, not derived from the provider\n *\n * A provider's legal entity is a fact about a vendor, and it is tempting to put it on the provider\n * definition so every application inherits it. It is not carried there, deliberately: what a document\n * must state is the arrangement THIS operator has — which vendor, in which region, under which\n * contract — and two applications using the same vendor can honestly differ on all three. A\n * framework-supplied identity would also be a fact the framework cannot keep true: vendors reorganise,\n * and a stale legal entity in a published notice is worse than an absent one.\n *\n * So the register is authored beside the application's other specifications and read from there. What\n * the framework contributes is the QUESTION and the gap report, never the answer.\n *\n * ## Absence is a gap with a NAME, because the configured set is already known\n *\n * The application's composition already lists its configured providers. Comparing that list against\n * this register turns \"processor identities are not established\" into \"`anthropic` is configured and\n * undeclared\" — a gap an operator can act on, per provider, rather than a sentence they cannot.\n *\n * See {@link undeclaredProcessorRefs}. An entry ABSENT from the register means nobody has established\n * that processor's identity; it never means the provider is not in use.\n */\n\n/**\n * One subprocessor a declared processor uses in turn.\n *\n * Carried because a privacy notice's recipient statement is only as true as its deepest hop: a\n * customer's data reaching a vendor's own hosting provider is a disclosure, and a notice naming only\n * the first hop understates who holds the data.\n */\nexport const ProcessorSubprocessorSchema = z.strictObject({\n /** The subprocessor's name as the processor discloses it. */\n name: z.string().trim().min(1),\n /**\n * Where this subprocessor processes, as the processor discloses it.\n *\n * Required: a subprocessor with no location cannot support the transfer statement that is the whole\n * reason for following the chain this far.\n */\n processingRegions: z.array(z.string().trim().min(1)).min(1),\n});\nexport type ProcessorSubprocessor = z.infer<typeof ProcessorSubprocessorSchema>;\n\n/**\n * WHICH KIND of subprocessor an entry describes.\n *\n * **Providers are a SUBSET of subprocessors, and this register was built as if they were the whole\n * set.** Every entry keyed on `providerRef` and the schema enforced one entry per provider, which\n * made it structurally unable to hold a subprocessor the application does not configure as a\n * provider — a hosting company, a CDN, a support tool, an accountant. Those are processors under\n * Art. 28 and belong in the same register a notice reads (issue #130).\n *\n * The discriminator exists because the two arms differ in what can be CHECKED, not merely in shape.\n * A configured-provider entry joins to the application's composition, so a claim about a provider it\n * does not configure is detectable and a configured provider with no entry is a reportable gap. An\n * authored entry joins to nothing: no configuration mentions the operator's hosting company, so the\n * framework can neither confirm it nor notice its absence. Collapsing them would present an\n * unverifiable claim with the same authority as a checkable one.\n */\nexport enum ProcessorRegisterEntryKind {\n /** A provider the application configures. Joins to `providerRef`, and its absence is reportable. */\n CONFIGURED_PROVIDER = \"CONFIGURED_PROVIDER\",\n /** A subprocessor nothing in the configuration mentions. Unverifiable by construction, and stated as authored. */\n AUTHORED = \"AUTHORED\",\n}\n\n/**\n * The instrument that makes a transfer of personal data out of its origin jurisdiction lawful.\n *\n * spec-cite: GDPR Chapter V — Art. 45 (adequacy), Art. 46(2)(b)–(f) (appropriate safeguards), Art. 47 (binding\n * corporate rules), Art. 49(1) (derogations). The UK GDPR keeps the same structure, so one vocabulary serves\n * both; the INSTRUMENT that fills a member differs by jurisdiction (the EU clauses, the UK Addendum), which is\n * why each safeguard names its instrument in prose beside the member.\n *\n * Recorded, never computed (#126): which mechanism applies is a legal determination with a shelf life —\n * an adequacy decision can be struck down while the vendor stays where it is — so the framework offers the\n * place to write it down and derives nothing from a region.\n */\nexport enum InternationalTransferMechanism {\n /** Art. 45 — the destination is covered by an adequacy decision (for the United States, the Data Privacy Framework, for a certified recipient). */\n ADEQUACY_DECISION = \"ADEQUACY_DECISION\",\n /** Art. 46(2)(c)/(d) — standard data protection clauses, or a jurisdiction's equivalent (the UK Addendum to them). */\n STANDARD_CONTRACTUAL_CLAUSES = \"STANDARD_CONTRACTUAL_CLAUSES\",\n /** Art. 46(2)(b) and Art. 47 — binding corporate rules approved for the recipient's group. */\n BINDING_CORPORATE_RULES = \"BINDING_CORPORATE_RULES\",\n /** Art. 46(2)(e) — an approved code of conduct with binding commitments of the recipient. */\n APPROVED_CODE_OF_CONDUCT = \"APPROVED_CODE_OF_CONDUCT\",\n /** Art. 46(2)(f) — an approved certification with binding commitments of the recipient. */\n APPROVED_CERTIFICATION = \"APPROVED_CERTIFICATION\",\n /** Art. 49 — a derogation for a specific situation. Requires {@link InternationalTransferDerogation}. */\n DEROGATION = \"DEROGATION\",\n}\n\n/** Which Art. 49 derogation a {@link InternationalTransferMechanism.DEROGATION} relies on. spec-cite: GDPR Art. 49(1). */\nexport enum InternationalTransferDerogation {\n /** Art. 49(1)(a) — explicit consent after being informed of the risks. */\n EXPLICIT_CONSENT = \"EXPLICIT_CONSENT\",\n /** Art. 49(1)(b) — necessary for a contract with the data subject. */\n CONTRACT_WITH_SUBJECT = \"CONTRACT_WITH_SUBJECT\",\n /** Art. 49(1)(c) — necessary for a contract concluded in the subject's interest with another party. */\n CONTRACT_IN_SUBJECT_INTEREST = \"CONTRACT_IN_SUBJECT_INTEREST\",\n /** Art. 49(1)(d) — important reasons of public interest. */\n PUBLIC_INTEREST = \"PUBLIC_INTEREST\",\n /** Art. 49(1)(e) — establishment, exercise or defence of legal claims. */\n LEGAL_CLAIMS = \"LEGAL_CLAIMS\",\n /** Art. 49(1)(f) — vital interests where the subject cannot consent. */\n VITAL_INTERESTS = \"VITAL_INTERESTS\",\n /** Art. 49(1)(g) — a transfer from a public register. */\n PUBLIC_REGISTER = \"PUBLIC_REGISTER\",\n /** Art. 49(1), second subparagraph — compelling legitimate interests, for a non-repetitive transfer. */\n COMPELLING_LEGITIMATE_INTERESTS = \"COMPELLING_LEGITIMATE_INTERESTS\",\n}\n\n/**\n * Whether reaching this processor moves personal data out of the jurisdiction it came from.\n *\n * A DETERMINATION, recorded by the operator, because regions are free text: nothing can compare\n * `United States` or `eu-west-1` with a declared operating jurisdiction, so the framework cannot tell a\n * domestic processor from a foreign one and does not guess.\n */\nexport enum ProcessorTransferDeterminationKind {\n /** Every region this processor (and its subprocessors) uses lies within the jurisdictions the data comes from. */\n NO_TRANSFER = \"NO_TRANSFER\",\n /** Personal data leaves its origin jurisdiction to reach this processor, under the safeguards named. */\n TRANSFER = \"TRANSFER\",\n}\n\n/** The safeguard one origin jurisdiction's data travels under. */\nexport const ProcessorTransferSafeguardSchema = z\n .strictObject({\n /** The jurisdiction the data leaves — one of the application's `operatingJurisdictions`. */\n originJurisdictionSlug: z.string().trim().min(1),\n mechanism: z.enum(InternationalTransferMechanism).systemEnum(\"InternationalTransferMechanism\"),\n /** Required with {@link InternationalTransferMechanism.DEROGATION}, refused otherwise. */\n derogation: z.enum(InternationalTransferDerogation).systemEnum(\"InternationalTransferDerogation\").optional(),\n /**\n * The instrument, as a reader could look it up: \"EU SCCs (Commission Decision 2021/914), Module Two\",\n * \"UK Addendum to the EU SCCs\", \"EU-US Data Privacy Framework — recipient certified\". A mechanism\n * member alone tells a reader the article, not the document that binds the recipient.\n */\n instrument: z.string().trim().min(1),\n })\n .superRefine((safeguard, context) => {\n const isDerogation = safeguard.mechanism === InternationalTransferMechanism.DEROGATION;\n if (isDerogation !== (safeguard.derogation !== undefined)) {\n context.addIssue({\n code: \"custom\",\n path: [\"derogation\"],\n message: isDerogation ? \"a derogation must name which Art. 49 ground it relies on\" : \"only a DEROGATION mechanism names a derogation\",\n });\n }\n });\nexport type ProcessorTransferSafeguard = z.infer<typeof ProcessorTransferSafeguardSchema>;\n\n/**\n * The operator's transfer determination for one register entry.\n *\n * Carried by the ENTRY, not the provider, and not per subprocessor: a vendor's regions change when it opens\n * a data centre, a mechanism changes when a court rules, and the processor's own contract is what binds its\n * onward transfers to its subprocessors — so the determination for reaching this processor covers the chain\n * behind it. It is OPTIONAL, and absence means \"not determined\": the `international-transfers` fact then\n * answers nothing, because a register with an undetermined entry cannot support either \"no transfer\" or a\n * list of safeguards.\n */\nexport const ProcessorTransferDeterminationSchema = z.discriminatedUnion(\"kind\", [\n z.strictObject({\n kind: z.literal(ProcessorTransferDeterminationKind.NO_TRANSFER).systemEnum(\"ProcessorTransferDeterminationKind\"),\n /** Why none of the regions is outside the origin jurisdictions — the comparison the framework cannot make. */\n rationale: z.string().trim().min(1),\n }),\n z\n .strictObject({\n kind: z.literal(ProcessorTransferDeterminationKind.TRANSFER).systemEnum(\"ProcessorTransferDeterminationKind\"),\n /** One safeguard per origin jurisdiction whose data reaches this processor. */\n safeguards: z.array(ProcessorTransferSafeguardSchema).min(1),\n })\n .superRefine((determination, context) => {\n const origins = determination.safeguards.map((safeguard) => safeguard.originJurisdictionSlug);\n if (new Set(origins).size !== origins.length) {\n context.addIssue({ code: \"custom\", path: [\"safeguards\"], message: \"one safeguard per origin jurisdiction\" });\n }\n }),\n]);\nexport type ProcessorTransferDetermination = z.infer<typeof ProcessorTransferDeterminationSchema>;\n\nconst ProcessorIdentityFieldsSchema = z.object({\n /**\n * The processor's LEGAL entity — the party a data-protection obligation actually binds.\n *\n * Not the brand. \"Anthropic\" is a product name; a notice, a DPA and a supervisory authority all need\n * the entity that signs.\n */\n legalEntityName: z.string().trim().min(1),\n /**\n * Where this processor processes personal data for this application.\n *\n * A LIST at the processor level rather than per capability. The issue that opened this suggested\n * per-capability regions, \"where a provider offers regional endpoints\" — declined for the reason\n * that settled the retention schedule the same day: an operator decides a small number of things and\n * defends them, and a granularity nobody maintains produces a register that is precise and wrong.\n * An operator using one vendor in two regions declares both, which is what a notice states anyway.\n *\n * Free text rather than a closed vocabulary: region names are genuinely open (`eu-west-1`, `EU`,\n * `Ireland`, `United States`), and a fixed list would be wrong for the next vendor.\n */\n processingRegions: z.array(z.string().trim().min(1)).min(1),\n /**\n * The processor's own subprocessors.\n *\n * EMPTY is a real answer — \"this processor discloses no subprocessors\" — and it is available only\n * because the whole entry is an authored declaration. An operator who has not checked omits the\n * ENTRY, not this field, keeping one clean absence axis: present means established, absent means\n * nobody has looked.\n */\n subprocessors: z.array(ProcessorSubprocessorSchema),\n /** Whether reaching this processor is an international transfer, and under what. See {@link ProcessorTransferDeterminationSchema}. */\n transferDetermination: ProcessorTransferDeterminationSchema.optional(),\n});\n\n/** One entry in the register — a configured provider, or a subprocessor nothing configures. */\nexport const ApplicationProcessorDeclarationSchema = z.discriminatedUnion(\"kind\", [\n ProcessorIdentityFieldsSchema.extend({\n kind: z.literal(ProcessorRegisterEntryKind.CONFIGURED_PROVIDER).systemEnum('ProcessorRegisterEntryKind'),\n /**\n * The configured provider this describes — the same ref the application's composition uses.\n *\n * The join is what makes this arm checkable: a declaration naming a provider the application does\n * not configure describes a relationship it does not have, and a configured provider with no\n * declaration is the gap {@link undeclaredProcessorRefs} reports.\n */\n providerRef: z.string().trim().min(1),\n /**\n * Why this processor is used, where the capability does not already say.\n *\n * OPTIONAL on this arm alone, and the asymmetry is the point: a configured provider's purpose is\n * implied by the capability it serves — `AI_LLM` takes prompt content, `EMAIL` takes recipient\n * addresses — so restating it is a second authority for one fact. Supply it only where the\n * capability under-describes what this particular vendor does for this application.\n */\n purpose: z.string().trim().min(1).optional(),\n }).strict(),\n ProcessorIdentityFieldsSchema.extend({\n kind: z.literal(ProcessorRegisterEntryKind.AUTHORED).systemEnum('ProcessorRegisterEntryKind'),\n /**\n * A stable slug for a subprocessor the configuration never mentions — `hosting`, `cdn`,\n * `support-desk`. Its own key, because there is no `providerRef` to borrow.\n */\n subprocessorRef: z.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),\n /**\n * Why this subprocessor is used. REQUIRED here, because nothing else can say.\n *\n * The configured-provider arm can lean on its capability; this arm has no capability, no\n * configuration and no runtime binding to imply anything. Without a purpose the entry is a name\n * and a region, which tells a reader that someone else holds their data and not what for.\n */\n purpose: z.string().trim().min(1),\n }).strict(),\n]);\nexport type ApplicationProcessorDeclaration = z.infer<typeof ApplicationProcessorDeclarationSchema>;\n\n/**\n * The application's accepted processor register.\n *\n * Deliberately NOT requiring an entry per configured provider. Requiring completeness would make the\n * register unauthorable until every vendor had been researched, which is the blocking this whole\n * capability exists to remove — a partial register is useful, and its holes are reported rather than\n * hidden.\n */\nexport const ApplicationProcessorRegisterSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n processors: z.array(ApplicationProcessorDeclarationSchema),\n })\n .superRefine((register, context) => {\n /*\n * Uniqueness PER ARM, on each arm's own key.\n *\n * Not one shared namespace: a `providerRef` and a `subprocessorRef` are addresses in different\n * spaces, and colliding them would refuse an application whose hosting company happens to share a\n * slug with a provider it configures — a refusal with no compliance meaning at all.\n */\n const seenProviderRefs = new Set<string>();\n const seenSubprocessorRefs = new Set<string>();\n\n register.processors.forEach((processor, index) => {\n if (processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER) {\n if (seenProviderRefs.has(processor.providerRef)) {\n context.addIssue({\n code: \"custom\",\n path: [\"processors\", index, \"providerRef\"],\n message: `\"${processor.providerRef}\" is declared twice; one provider carries one processor identity`,\n });\n }\n seenProviderRefs.add(processor.providerRef);\n return;\n }\n\n if (seenSubprocessorRefs.has(processor.subprocessorRef)) {\n context.addIssue({\n code: \"custom\",\n path: [\"processors\", index, \"subprocessorRef\"],\n message: `\"${processor.subprocessorRef}\" is declared twice; one subprocessor carries one identity`,\n });\n }\n seenSubprocessorRefs.add(processor.subprocessorRef);\n });\n });\nexport type ApplicationProcessorRegister = z.infer<typeof ApplicationProcessorRegisterSchema>;\n/** @wildo_source:part:end saas.specifications.processor-register */\n\n/**\n * Every region personal data reaches THROUGH A DECLARED PROCESSOR, across both arms and their own\n * subprocessors (issue #126).\n *\n * ## What this establishes, and the narrower claim it supports\n *\n * The transfer concern asks whether personal data leaves its origin jurisdiction. That question has\n * three inputs and the framework holds exactly one of them: WHERE declared processors process. The\n * other two — which jurisdiction is the origin, and which mechanism makes a given transfer lawful —\n * are a legal determination with a shelf life, deliberately not modelled (adequacy decisions move by\n * court ruling, so a list baked into the engine would go stale silently and emit a false statement).\n *\n * So this supports one derivable statement and it is narrower than \"no transfers\": when the register\n * declares NO processor at all, no personal data reaches a third party, therefore none is transferred\n * THROUGH ONE. What that does NOT establish is the operator's own processing — its infrastructure,\n * its staff, its own establishment — which is why a document must state the residual rather than\n * round the answer up to \"we do not transfer data internationally\".\n *\n * ## Why subprocessors count\n *\n * A processor's own subprocessors are where data actually lands, and the chain is exactly what makes\n * a transfer statement hard: an operator in France using a French vendor that runs on a US cloud has\n * a transfer, and reading only the vendor's region would miss it. Both levels contribute here for\n * that reason.\n *\n * Regions are returned deduplicated and sorted, so the same register produces the same sentence\n * between runs.\n */\nexport function processorProcessingRegions(\n register: ApplicationProcessorRegister | undefined,\n): readonly string[] {\n const regions = (register?.processors ?? []).flatMap((processor) => [\n ...processor.processingRegions,\n ...processor.subprocessors.flatMap((subprocessor) => subprocessor.processingRegions),\n ]);\n return [...new Set(regions)].sort();\n}\n\n/**\n * True when the register establishes that NO processor receives personal data.\n *\n * The one transfer statement derivable without a jurisdiction comparison, and it is deliberately\n * about the REGISTER rather than about the world: an EMPTY register means the operator declared no\n * processors, while an ABSENT register means nobody has looked. Those are opposite states and the\n * function refuses to conflate them — absent returns `false`, because \"nobody checked\" must never\n * produce \"nothing is transferred\".\n *\n * That distinction is the whole reason the register's own schema does not require an entry per\n * configured provider: a partial register is useful and its holes are reported, but a MISSING one\n * cannot support a negative claim about anything.\n */\nexport function registerEstablishesNoProcessorRecipients(\n register: ApplicationProcessorRegister | undefined,\n): boolean {\n return register !== undefined && register.processors.length === 0;\n}\n\n/**\n * The entries that JOIN to a configured provider — the only arm either gap function can reason about.\n *\n * Both functions compare the register against the application's configured provider set, and an\n * AUTHORED entry is by construction not in that set: nothing configures the operator's hosting\n * company. Before the register grew its second arm they iterated every entry and read `providerRef`\n * off it, which the compiler now refuses — and rightly, because the answer would have been wrong in\n * both directions at once. Every authored entry would have been reported as \"naming a provider the\n * application does not configure\", and the real gap list would have been drowned in false ones.\n *\n * Extracted rather than inlined twice so the two functions cannot drift about what they are\n * comparing.\n */\nfunction configuredProviderEntries(\n register: ApplicationProcessorRegister | undefined,\n): ReadonlyArray<Extract<ApplicationProcessorDeclaration, { kind: ProcessorRegisterEntryKind.CONFIGURED_PROVIDER }>> {\n return (register?.processors ?? []).filter(\n (processor): processor is Extract<ApplicationProcessorDeclaration, { kind: ProcessorRegisterEntryKind.CONFIGURED_PROVIDER }> =>\n processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER,\n );\n}\n\n/**\n * Configured providers the register does not account for — the gap, per provider.\n *\n * Takes the configured set as an argument rather than reading it, so the same function serves the\n * companion (which reads the live composition) and a test (which supplies one). Order follows the\n * CONFIGURED list, so the answer is stable and reads like the composition it is about.\n */\nexport function undeclaredProcessorRefs(\n configuredProviderRefs: readonly string[],\n register: ApplicationProcessorRegister | undefined,\n): readonly string[] {\n const declared = new Set(configuredProviderEntries(register).map((processor) => processor.providerRef));\n return configuredProviderRefs.filter((providerRef) => !declared.has(providerRef));\n}\n\n/**\n * Declared processors naming a provider the application does not configure.\n *\n * The opposite error, and it is quieter: an entry left behind after a vendor was dropped keeps a\n * recipient in the notice that receives nothing. Reported rather than refused — a register is edited\n * by hand, and a stale entry is a thing to notice, not a reason to reject the file.\n */\nexport function processorRefsNotConfigured(\n configuredProviderRefs: readonly string[],\n register: ApplicationProcessorRegister | undefined,\n): readonly string[] {\n const configured = new Set(configuredProviderRefs);\n return configuredProviderEntries(register)\n .map((processor) => processor.providerRef)\n .filter((providerRef) => !configured.has(providerRef));\n}\n\n/** The configured providers, sorted by what the register and the deployment choices establish about each. */\nexport interface ConfiguredProviderRecipientClassification {\n /** Providers the operator declared `SELF_HOSTED`. No data leaves the operator, so none is a recipient. */\n readonly operatorRunProviderRefs: readonly string[];\n /** Recipient candidates with no register entry: in use, identity not established. */\n readonly undeclaredProviderRefs: readonly string[];\n /** Register entries naming a provider no recipient candidate configures, which must not be published as recipients. */\n readonly staleProviderRefs: readonly string[];\n}\n\n/**\n * Which configured providers are recipients, and which of those the register has not established.\n *\n * One function, because two readers need the same answer: the drafter's brief renders it, and the\n * computed `recipients-and-processors` fact states it. Before this existed the brief held the rule\n * inline, and a second copy would have been free to disagree about a self-hosted provider, which is\n * exactly the disagreement wildo-ai/wildo-ai#208 recorded between two renderers in one section.\n *\n * Only an EXPLICIT `SELF_HOSTED` choice excludes a provider. A provider with no choice stays a recipient\n * candidate: absence means nobody has answered, and assuming self-hosted would silence that gap.\n * `configuredProviderRefs` must be the RUNTIME-scoped providers; a build-time companion provider is not in\n * the path of anyone's data. Order follows the configured list, so the answer reads like the composition.\n */\nexport function classifyConfiguredProviderRecipients(\n configuredProviderRefs: readonly string[],\n register: ApplicationProcessorRegister | undefined,\n choices: ApplicationProviderComplianceChoices | undefined,\n): ConfiguredProviderRecipientClassification {\n const operatorRunRefs = new Set(\n Object.entries(choices ?? {})\n .filter(([, choice]) => choice.deploymentModel === ProviderDeploymentModel.SELF_HOSTED)\n .map(([providerRef]) => providerRef),\n );\n const recipientCandidateRefs = configuredProviderRefs.filter((providerRef) => !operatorRunRefs.has(providerRef));\n return {\n operatorRunProviderRefs: configuredProviderRefs.filter((providerRef) => operatorRunRefs.has(providerRef)),\n undeclaredProviderRefs: undeclaredProcessorRefs(recipientCandidateRefs, register),\n staleProviderRefs: processorRefsNotConfigured(recipientCandidateRefs, register),\n };\n}\n"]}
1
+ {"version":3,"file":"processor-register.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/processor-register.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAClC,OAAO,EACL,oCAAoC,EACpC,oCAAoC,GAErC,MAAM,uBAAuB,CAAC;AAE/B,sHAAsH;AACtH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,YAAY,CAAC;IACxD,6DAA6D;IAC7D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B;;;;;OAKG;IACH,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5D,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,oGAAoG;IACpG,yEAA2C,CAAA;IAC3C,kHAAkH;IAClH,mDAAqB,CAAA;AACvB,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,8BAaX;AAbD,WAAY,8BAA8B;IACxC,mJAAmJ;IACnJ,yEAAuC,CAAA;IACvC,sHAAsH;IACtH,+FAA6D,CAAA;IAC7D,8FAA8F;IAC9F,qFAAmD,CAAA;IACnD,6FAA6F;IAC7F,uFAAqD,CAAA;IACrD,2FAA2F;IAC3F,m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AAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;QACpH,uBAAuB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,uBAAuB,KAAK,6BAA6B,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;QAC1J,6BAA6B,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;KACnH,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\nimport {\n establishedProviderComplianceProfile,\n oldestProviderComplianceEvidenceDate,\n type ProviderComplianceProfile,\n} from '@wildo-ai/saas-models';\n\n/** @wildo_source:part:start saas.specifications.processor-register facet:layer:shared facet:audience:app-developer */\n/**\n * **Who else processes personal data, under what legal identity, and where.**\n *\n * ## The gap this closes\n *\n * A configured provider establishes THAT a third party is involved and WHAT FUNCTION it performs —\n * `EngineCapability` gives email delivery, storage, payments, LLM inference, observability. It gives\n * none of the three things a reader of a privacy notice needs: the processor's legal identity, the\n * region it processes in, and its own subprocessors (issue #88).\n *\n * That gap blocks two concerns rather than one, and the second cannot be answered independently: an\n * international-transfer statement is a statement about WHERE a recipient processes, so a provider\n * carrying no region cannot support one.\n *\n * ## Declared by the APPLICATION, not derived from the provider\n *\n * A provider's legal entity is a fact about a vendor, and it is tempting to put it on the provider\n * definition so every application inherits it. It is not carried there, deliberately: what a document\n * must state is the arrangement THIS operator has — which vendor, in which region, under which\n * contract — and two applications using the same vendor can honestly differ on all three. A\n * framework-supplied identity would also be a fact the framework cannot keep true: vendors reorganise,\n * and a stale legal entity in a published notice is worse than an absent one.\n *\n * So the register is authored beside the application's other specifications and read from there. What\n * the framework contributes is the QUESTION and the gap report, never the answer.\n *\n * ## Researched vendor facts are SUGGESTIONS, adopted only by the operator's commit (decided 2026-09-25, #1744)\n *\n * The framework does research the vendors applications actually declare — legal entity, processing regions,\n * sub-processor list, data processing agreement — and ships each fact on the provider's compliance profile with the\n * page it was read from and the date (`evidence`, #1708). Those facts are SUGGESTIONS: the brief offers them beside an\n * undeclared entry as the question to answer, and nothing reaches a document until the operator checks the page,\n * copies the fact into THIS register and commits it. The commit is the adoption (`one-source-of-truth.md` rule 2);\n * the framework's statement stays \"this is what we read, on this date, at this URL\". Rejected: publishing the facts\n * straight into computed document facts, which would make the framework the author of a legal statement in someone\n * else's notice, and could not be walked back once a notice carried it; and shipping no facts at all, which leaves\n * every operator to research every vendor alone. A stale suggestion is caught by `complianceFactStaleness`.\n *\n * ## Absence is a gap with a NAME, because the configured set is already known\n *\n * The application's composition already lists its configured providers. Comparing that list against\n * this register turns \"processor identities are not established\" into \"`anthropic` is configured and\n * undeclared\" — a gap an operator can act on, per provider, rather than a sentence they cannot.\n *\n * See {@link undeclaredProcessorRefs}. An entry ABSENT from the register means nobody has established\n * that processor's identity; it never means the provider is not in use.\n */\n\n/**\n * One subprocessor a declared processor uses in turn.\n *\n * Carried because a privacy notice's recipient statement is only as true as its deepest hop: a\n * customer's data reaching a vendor's own hosting provider is a disclosure, and a notice naming only\n * the first hop understates who holds the data.\n */\nexport const ProcessorSubprocessorSchema = z.strictObject({\n /** The subprocessor's name as the processor discloses it. */\n name: z.string().trim().min(1),\n /**\n * Where this subprocessor processes, as the processor discloses it.\n *\n * Required: a subprocessor with no location cannot support the transfer statement that is the whole\n * reason for following the chain this far.\n */\n processingRegions: z.array(z.string().trim().min(1)).min(1),\n});\nexport type ProcessorSubprocessor = z.infer<typeof ProcessorSubprocessorSchema>;\n\n/**\n * WHICH KIND of subprocessor an entry describes.\n *\n * **Providers are a SUBSET of subprocessors, and this register was built as if they were the whole\n * set.** Every entry keyed on `providerRef` and the schema enforced one entry per provider, which\n * made it structurally unable to hold a subprocessor the application does not configure as a\n * provider — a hosting company, a CDN, a support tool, an accountant. Those are processors under\n * Art. 28 and belong in the same register a notice reads (issue #130).\n *\n * The discriminator exists because the two arms differ in what can be CHECKED, not merely in shape.\n * A configured-provider entry joins to the application's composition, so a claim about a provider it\n * does not configure is detectable and a configured provider with no entry is a reportable gap. An\n * authored entry joins to nothing: no configuration mentions the operator's hosting company, so the\n * framework can neither confirm it nor notice its absence. Collapsing them would present an\n * unverifiable claim with the same authority as a checkable one.\n */\nexport enum ProcessorRegisterEntryKind {\n /** A provider the application configures. Joins to `providerRef`, and its absence is reportable. */\n CONFIGURED_PROVIDER = \"CONFIGURED_PROVIDER\",\n /** A subprocessor nothing in the configuration mentions. Unverifiable by construction, and stated as authored. */\n AUTHORED = \"AUTHORED\",\n}\n\n/**\n * The instrument that makes a transfer of personal data out of its origin jurisdiction lawful.\n *\n * spec-cite: GDPR Chapter V — Art. 45 (adequacy), Art. 46(2)(b)–(f) (appropriate safeguards), Art. 47 (binding\n * corporate rules), Art. 49(1) (derogations). The UK GDPR keeps the same structure, so one vocabulary serves\n * both; the INSTRUMENT that fills a member differs by jurisdiction (the EU clauses, the UK Addendum), which is\n * why each safeguard names its instrument in prose beside the member.\n *\n * Recorded, never computed (#126): which mechanism applies is a legal determination with a shelf life —\n * an adequacy decision can be struck down while the vendor stays where it is — so the framework offers the\n * place to write it down and derives nothing from a region.\n */\nexport enum InternationalTransferMechanism {\n /** Art. 45 — the destination is covered by an adequacy decision (for the United States, the Data Privacy Framework, for a certified recipient). */\n ADEQUACY_DECISION = \"ADEQUACY_DECISION\",\n /** Art. 46(2)(c)/(d) — standard data protection clauses, or a jurisdiction's equivalent (the UK Addendum to them). */\n STANDARD_CONTRACTUAL_CLAUSES = \"STANDARD_CONTRACTUAL_CLAUSES\",\n /** Art. 46(2)(b) and Art. 47 — binding corporate rules approved for the recipient's group. */\n BINDING_CORPORATE_RULES = \"BINDING_CORPORATE_RULES\",\n /** Art. 46(2)(e) — an approved code of conduct with binding commitments of the recipient. */\n APPROVED_CODE_OF_CONDUCT = \"APPROVED_CODE_OF_CONDUCT\",\n /** Art. 46(2)(f) — an approved certification with binding commitments of the recipient. */\n APPROVED_CERTIFICATION = \"APPROVED_CERTIFICATION\",\n /** Art. 49 — a derogation for a specific situation. Requires {@link InternationalTransferDerogation}. */\n DEROGATION = \"DEROGATION\",\n}\n\n/** Which Art. 49 derogation a {@link InternationalTransferMechanism.DEROGATION} relies on. spec-cite: GDPR Art. 49(1). */\nexport enum InternationalTransferDerogation {\n /** Art. 49(1)(a) — explicit consent after being informed of the risks. */\n EXPLICIT_CONSENT = \"EXPLICIT_CONSENT\",\n /** Art. 49(1)(b) — necessary for a contract with the data subject. */\n CONTRACT_WITH_SUBJECT = \"CONTRACT_WITH_SUBJECT\",\n /** Art. 49(1)(c) — necessary for a contract concluded in the subject's interest with another party. */\n CONTRACT_IN_SUBJECT_INTEREST = \"CONTRACT_IN_SUBJECT_INTEREST\",\n /** Art. 49(1)(d) — important reasons of public interest. */\n PUBLIC_INTEREST = \"PUBLIC_INTEREST\",\n /** Art. 49(1)(e) — establishment, exercise or defence of legal claims. */\n LEGAL_CLAIMS = \"LEGAL_CLAIMS\",\n /** Art. 49(1)(f) — vital interests where the subject cannot consent. */\n VITAL_INTERESTS = \"VITAL_INTERESTS\",\n /** Art. 49(1)(g) — a transfer from a public register. */\n PUBLIC_REGISTER = \"PUBLIC_REGISTER\",\n /** Art. 49(1), second subparagraph — compelling legitimate interests, for a non-repetitive transfer. */\n COMPELLING_LEGITIMATE_INTERESTS = \"COMPELLING_LEGITIMATE_INTERESTS\",\n}\n\n/**\n * Whether reaching this processor moves personal data out of the jurisdiction it came from.\n *\n * A DETERMINATION, recorded by the operator, because regions are free text: nothing can compare\n * `United States` or `eu-west-1` with a declared operating jurisdiction, so the framework cannot tell a\n * domestic processor from a foreign one and does not guess.\n */\nexport enum ProcessorTransferDeterminationKind {\n /** Every region this processor (and its subprocessors) uses lies within the jurisdictions the data comes from. */\n NO_TRANSFER = \"NO_TRANSFER\",\n /** Personal data leaves its origin jurisdiction to reach this processor, under the safeguards named. */\n TRANSFER = \"TRANSFER\",\n}\n\n/** The safeguard one origin jurisdiction's data travels under. */\nexport const ProcessorTransferSafeguardSchema = z\n .strictObject({\n /** The jurisdiction the data leaves — one of the application's `operatingJurisdictions`. */\n originJurisdictionSlug: z.string().trim().min(1),\n mechanism: z.enum(InternationalTransferMechanism).systemEnum(\"InternationalTransferMechanism\"),\n /** Required with {@link InternationalTransferMechanism.DEROGATION}, refused otherwise. */\n derogation: z.enum(InternationalTransferDerogation).systemEnum(\"InternationalTransferDerogation\").optional(),\n /**\n * The instrument, as a reader could look it up: \"EU SCCs (Commission Decision 2021/914), Module Two\",\n * \"UK Addendum to the EU SCCs\", \"EU-US Data Privacy Framework — recipient certified\". A mechanism\n * member alone tells a reader the article, not the document that binds the recipient.\n */\n instrument: z.string().trim().min(1),\n })\n .superRefine((safeguard, context) => {\n const isDerogation = safeguard.mechanism === InternationalTransferMechanism.DEROGATION;\n if (isDerogation !== (safeguard.derogation !== undefined)) {\n context.addIssue({\n code: \"custom\",\n path: [\"derogation\"],\n message: isDerogation ? \"a derogation must name which Art. 49 ground it relies on\" : \"only a DEROGATION mechanism names a derogation\",\n });\n }\n });\nexport type ProcessorTransferSafeguard = z.infer<typeof ProcessorTransferSafeguardSchema>;\n\n/**\n * The operator's transfer determination for one register entry.\n *\n * Carried by the ENTRY, not the provider, and not per subprocessor: a vendor's regions change when it opens\n * a data centre, a mechanism changes when a court rules, and the processor's own contract is what binds its\n * onward transfers to its subprocessors — so the determination for reaching this processor covers the chain\n * behind it. It is OPTIONAL, and absence means \"not determined\": the `international-transfers` fact then\n * answers nothing, because a register with an undetermined entry cannot support either \"no transfer\" or a\n * list of safeguards.\n */\nexport const ProcessorTransferDeterminationSchema = z.discriminatedUnion(\"kind\", [\n z.strictObject({\n kind: z.literal(ProcessorTransferDeterminationKind.NO_TRANSFER).systemEnum(\"ProcessorTransferDeterminationKind\"),\n /** Why none of the regions is outside the origin jurisdictions — the comparison the framework cannot make. */\n rationale: z.string().trim().min(1),\n }),\n z\n .strictObject({\n kind: z.literal(ProcessorTransferDeterminationKind.TRANSFER).systemEnum(\"ProcessorTransferDeterminationKind\"),\n /** One safeguard per origin jurisdiction whose data reaches this processor. */\n safeguards: z.array(ProcessorTransferSafeguardSchema).min(1),\n })\n .superRefine((determination, context) => {\n const origins = determination.safeguards.map((safeguard) => safeguard.originJurisdictionSlug);\n if (new Set(origins).size !== origins.length) {\n context.addIssue({ code: \"custom\", path: [\"safeguards\"], message: \"one safeguard per origin jurisdiction\" });\n }\n }),\n]);\nexport type ProcessorTransferDetermination = z.infer<typeof ProcessorTransferDeterminationSchema>;\n\n/**\n * Whether THIS operator has a data processing agreement with the processor — the operator's fact, never the vendor's\n * (#1709). A vendor OFFERING a DPA is a suggestion its compliance profile may carry (`dataProcessingAgreementUrl`);\n * whether this operator is bound by one is not something the framework can know.\n *\n * spec-cite: GDPR Art. 28(3), https://gdpr-info.eu/art-28-gdpr/ — \"Processing by a processor shall be governed by a\n * contract or other legal act under Union or Member State law, that is binding on the processor with regard to the\n * controller\".\n */\nexport enum DataProcessingAgreementStatus {\n /** A DPA the operator and the processor both signed. */\n SIGNED = \"SIGNED\",\n /** The processor's standard DPA forms part of the terms the operator accepted (the common self-serve case). */\n INCORPORATED_IN_TERMS = \"INCORPORATED_IN_TERMS\",\n /** No DPA governs this processing yet. Stated, so it reads as a gap rather than an omission. */\n NOT_IN_PLACE = \"NOT_IN_PLACE\",\n}\n\n/** The operator's DPA with one processor. See {@link DataProcessingAgreementStatus}. */\nexport const ProcessorDataProcessingAgreementSchema = z.strictObject({\n status: z.enum(DataProcessingAgreementStatus).systemEnum(\"DataProcessingAgreementStatus\"),\n /** When it took effect, `YYYY-MM-DD`, where the operator knows it. */\n effectiveFrom: z.iso.date().optional(),\n /** Where the operator's copy or the incorporated terms can be found — a URL or an internal reference. */\n reference: z.string().trim().min(1).optional(),\n});\nexport type ProcessorDataProcessingAgreement = z.infer<typeof ProcessorDataProcessingAgreementSchema>;\n\nconst ProcessorIdentityFieldsSchema = z.object({\n /**\n * The processor's LEGAL entity — the party a data-protection obligation actually binds.\n *\n * Not the brand. \"Anthropic\" is a product name; a notice, a DPA and a supervisory authority all need\n * the entity that signs.\n */\n legalEntityName: z.string().trim().min(1),\n /**\n * Where this processor processes personal data for this application.\n *\n * A LIST at the processor level rather than per capability. The issue that opened this suggested\n * per-capability regions, \"where a provider offers regional endpoints\" — declined for the reason\n * that settled the retention schedule the same day: an operator decides a small number of things and\n * defends them, and a granularity nobody maintains produces a register that is precise and wrong.\n * An operator using one vendor in two regions declares both, which is what a notice states anyway.\n *\n * Free text rather than a closed vocabulary: region names are genuinely open (`eu-west-1`, `EU`,\n * `Ireland`, `United States`), and a fixed list would be wrong for the next vendor.\n */\n processingRegions: z.array(z.string().trim().min(1)).min(1),\n /**\n * The processor's own subprocessors.\n *\n * EMPTY is a real answer — \"this processor discloses no subprocessors\" — and it is available only\n * because the whole entry is an authored declaration. An operator who has not checked omits the\n * ENTRY, not this field, keeping one clean absence axis: present means established, absent means\n * nobody has looked.\n */\n subprocessors: z.array(ProcessorSubprocessorSchema),\n /** Whether reaching this processor is an international transfer, and under what. See {@link ProcessorTransferDeterminationSchema}. */\n transferDetermination: ProcessorTransferDeterminationSchema.optional(),\n /**\n * The DPA that governs this processing, as THIS operator stands with the processor (#1709). Absent means nobody\n * has recorded it — reported as outstanding by {@link processorAgreementStanding}, never read as \"not required\".\n */\n dataProcessingAgreement: ProcessorDataProcessingAgreementSchema.optional(),\n /**\n * How long the processor keeps the data it receives, in the terms of THIS operator's arrangement (#1709) — \"deleted\n * within 30 days of account termination\". Free text in the processor's words, because retention is set by the\n * contract and the product tier, and differs between two operators of the same vendor. Absent means nobody has\n * recorded it, which {@link processorAgreementStanding} names.\n */\n vendorRetention: z.string().trim().min(1).optional(),\n});\n\n/** One entry in the register — a configured provider, or a subprocessor nothing configures. */\nexport const ApplicationProcessorDeclarationSchema = z.discriminatedUnion(\"kind\", [\n ProcessorIdentityFieldsSchema.extend({\n kind: z.literal(ProcessorRegisterEntryKind.CONFIGURED_PROVIDER).systemEnum('ProcessorRegisterEntryKind'),\n /**\n * The configured provider this describes — the same ref the application's composition uses.\n *\n * The join is what makes this arm checkable: a declaration naming a provider the application does\n * not configure describes a relationship it does not have, and a configured provider with no\n * declaration is the gap {@link undeclaredProcessorRefs} reports.\n */\n providerRef: z.string().trim().min(1),\n /**\n * Why this processor is used, where the capability does not already say.\n *\n * OPTIONAL on this arm alone, and the asymmetry is the point: a configured provider's purpose is\n * implied by the capability it serves — `AI_LLM` takes prompt content, `EMAIL` takes recipient\n * addresses — so restating it is a second authority for one fact. Supply it only where the\n * capability under-describes what this particular vendor does for this application.\n */\n purpose: z.string().trim().min(1).optional(),\n }).strict(),\n ProcessorIdentityFieldsSchema.extend({\n kind: z.literal(ProcessorRegisterEntryKind.AUTHORED).systemEnum('ProcessorRegisterEntryKind'),\n /**\n * A stable slug for a subprocessor the configuration never mentions — `hosting`, `cdn`,\n * `support-desk`. Its own key, because there is no `providerRef` to borrow.\n */\n subprocessorRef: z.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),\n /**\n * Why this subprocessor is used. REQUIRED here, because nothing else can say.\n *\n * The configured-provider arm can lean on its capability; this arm has no capability, no\n * configuration and no runtime binding to imply anything. Without a purpose the entry is a name\n * and a region, which tells a reader that someone else holds their data and not what for.\n */\n purpose: z.string().trim().min(1),\n }).strict(),\n]);\nexport type ApplicationProcessorDeclaration = z.infer<typeof ApplicationProcessorDeclarationSchema>;\n\n/**\n * The application's accepted processor register.\n *\n * Deliberately NOT requiring an entry per configured provider. Requiring completeness would make the\n * register unauthorable until every vendor had been researched, which is the blocking this whole\n * capability exists to remove — a partial register is useful, and its holes are reported rather than\n * hidden.\n */\nexport const ApplicationProcessorRegisterSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n processors: z.array(ApplicationProcessorDeclarationSchema),\n /**\n * When the operator last CHECKED this register against the vendors' own pages, and how long it lets that check\n * stand (#1708).\n *\n * A register is a set of vendor facts with a shelf life — sub-processor lists change on a vendor's notice, legal\n * entities reorganise — and until this field the only date anywhere was a comment (\"Verified 2026-09-01\") that\n * nothing could read. With it, {@link complianceFactStaleness} names the register, and every framework-suggested\n * vendor fact, that has outlived the interval the application chose. Reported, never refused.\n *\n * Optional: an absent verification is reported as UNDATED, which is the truthful state of a register nobody has\n * dated. The interval is the application's own policy; the framework supplies no default, because how often a\n * vendor register is re-checked is the operator's answer to its own risk, not a fact the framework holds.\n *\n * Typed by the operator rather than derived, and the derivation was considered: the register file's last commit\n * time is when it last CHANGED, and a re-verification that finds nothing to change leaves no commit. Only the\n * person who checked the vendors' pages can say when they did.\n */\n verification: z\n .strictObject({\n /** The day the operator last checked every entry against the vendor's own pages, `YYYY-MM-DD`. */\n verifiedAt: z.iso.date(),\n /** How many days a check stands before the register — and the vendor facts it relies on — is reported stale. */\n reverificationIntervalDays: z.number().int().positive(),\n })\n .optional(),\n })\n .superRefine((register, context) => {\n /*\n * Uniqueness PER ARM, on each arm's own key.\n *\n * Not one shared namespace: a `providerRef` and a `subprocessorRef` are addresses in different\n * spaces, and colliding them would refuse an application whose hosting company happens to share a\n * slug with a provider it configures — a refusal with no compliance meaning at all.\n */\n const seenProviderRefs = new Set<string>();\n const seenSubprocessorRefs = new Set<string>();\n\n register.processors.forEach((processor, index) => {\n if (processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER) {\n if (seenProviderRefs.has(processor.providerRef)) {\n context.addIssue({\n code: \"custom\",\n path: [\"processors\", index, \"providerRef\"],\n message: `\"${processor.providerRef}\" is declared twice; one provider carries one processor identity`,\n });\n }\n seenProviderRefs.add(processor.providerRef);\n return;\n }\n\n if (seenSubprocessorRefs.has(processor.subprocessorRef)) {\n context.addIssue({\n code: \"custom\",\n path: [\"processors\", index, \"subprocessorRef\"],\n message: `\"${processor.subprocessorRef}\" is declared twice; one subprocessor carries one identity`,\n });\n }\n seenSubprocessorRefs.add(processor.subprocessorRef);\n });\n });\nexport type ApplicationProcessorRegister = z.infer<typeof ApplicationProcessorRegisterSchema>;\n/** @wildo_source:part:end saas.specifications.processor-register */\n\n/**\n * Every region personal data reaches THROUGH A DECLARED PROCESSOR, across both arms and their own\n * subprocessors (issue #126).\n *\n * ## What this establishes, and the narrower claim it supports\n *\n * The transfer concern asks whether personal data leaves its origin jurisdiction. That question has\n * three inputs and the framework holds exactly one of them: WHERE declared processors process. The\n * other two — which jurisdiction is the origin, and which mechanism makes a given transfer lawful —\n * are a legal determination with a shelf life, deliberately not modelled (adequacy decisions move by\n * court ruling, so a list baked into the engine would go stale silently and emit a false statement).\n *\n * So this supports one derivable statement and it is narrower than \"no transfers\": when the register\n * declares NO processor at all, no personal data reaches a third party, therefore none is transferred\n * THROUGH ONE. What that does NOT establish is the operator's own processing — its infrastructure,\n * its staff, its own establishment — which is why a document must state the residual rather than\n * round the answer up to \"we do not transfer data internationally\".\n *\n * ## Why subprocessors count\n *\n * A processor's own subprocessors are where data actually lands, and the chain is exactly what makes\n * a transfer statement hard: an operator in France using a French vendor that runs on a US cloud has\n * a transfer, and reading only the vendor's region would miss it. Both levels contribute here for\n * that reason.\n *\n * Regions are returned deduplicated and sorted, so the same register produces the same sentence\n * between runs.\n */\nexport function processorProcessingRegions(\n register: ApplicationProcessorRegister | undefined,\n): readonly string[] {\n const regions = (register?.processors ?? []).flatMap((processor) => [\n ...processor.processingRegions,\n ...processor.subprocessors.flatMap((subprocessor) => subprocessor.processingRegions),\n ]);\n return [...new Set(regions)].sort();\n}\n\n/**\n * True when the register establishes that NO processor receives personal data.\n *\n * The one transfer statement derivable without a jurisdiction comparison, and it is deliberately\n * about the REGISTER rather than about the world: an EMPTY register means the operator declared no\n * processors, while an ABSENT register means nobody has looked. Those are opposite states and the\n * function refuses to conflate them — absent returns `false`, because \"nobody checked\" must never\n * produce \"nothing is transferred\".\n *\n * That distinction is the whole reason the register's own schema does not require an entry per\n * configured provider: a partial register is useful and its holes are reported, but a MISSING one\n * cannot support a negative claim about anything.\n */\nexport function registerEstablishesNoProcessorRecipients(\n register: ApplicationProcessorRegister | undefined,\n): boolean {\n return register !== undefined && register.processors.length === 0;\n}\n\n/**\n * The entries that JOIN to a configured provider — the only arm either gap function can reason about.\n *\n * Both functions compare the register against the application's configured provider set, and an\n * AUTHORED entry is by construction not in that set: nothing configures the operator's hosting\n * company. Before the register grew its second arm they iterated every entry and read `providerRef`\n * off it, which the compiler now refuses — and rightly, because the answer would have been wrong in\n * both directions at once. Every authored entry would have been reported as \"naming a provider the\n * application does not configure\", and the real gap list would have been drowned in false ones.\n *\n * Extracted rather than inlined twice so the two functions cannot drift about what they are\n * comparing.\n */\nfunction configuredProviderEntries(\n register: ApplicationProcessorRegister | undefined,\n): ReadonlyArray<Extract<ApplicationProcessorDeclaration, { kind: ProcessorRegisterEntryKind.CONFIGURED_PROVIDER }>> {\n return (register?.processors ?? []).filter(\n (processor): processor is Extract<ApplicationProcessorDeclaration, { kind: ProcessorRegisterEntryKind.CONFIGURED_PROVIDER }> =>\n processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER,\n );\n}\n\n/**\n * Configured providers the register does not account for — the gap, per provider.\n *\n * Takes the configured set as an argument rather than reading it, so the same function serves the\n * companion (which reads the live composition) and a test (which supplies one). Order follows the\n * CONFIGURED list, so the answer is stable and reads like the composition it is about.\n */\nexport function undeclaredProcessorRefs(\n configuredProviderRefs: readonly string[],\n register: ApplicationProcessorRegister | undefined,\n): readonly string[] {\n const declared = new Set(configuredProviderEntries(register).map((processor) => processor.providerRef));\n return configuredProviderRefs.filter((providerRef) => !declared.has(providerRef));\n}\n\n/**\n * Declared processors naming a provider the application does not configure.\n *\n * The opposite error, and it is quieter: an entry left behind after a vendor was dropped keeps a\n * recipient in the notice that receives nothing. Reported rather than refused — a register is edited\n * by hand, and a stale entry is a thing to notice, not a reason to reject the file.\n */\nexport function processorRefsNotConfigured(\n configuredProviderRefs: readonly string[],\n register: ApplicationProcessorRegister | undefined,\n): readonly string[] {\n const configured = new Set(configuredProviderRefs);\n return configuredProviderEntries(register)\n .map((processor) => processor.providerRef)\n .filter((providerRef) => !configured.has(providerRef));\n}\n\n/*\n * WHICH configured providers are recipients, and which of those the register has not established, is no longer\n * answered here. `classifyConfiguredProviderRecipients` took the population as a list of refs, and its three\n * readers each built that list differently — capability-bearing providers only in the evidence collector, top-level\n * runtime scopes only in the brief and the computed facts, systems of record in none (#1707). The population and\n * its join to this register are now ONE function pair in `recipient-population.schemas.ts`:\n * `computeRecipientPopulation` and `joinRecipientPopulationToRegister`.\n */\n\n/**\n * Whether a dated compliance fact is still inside the interval the application declared (#1708).\n */\nexport enum ComplianceFactCurrency {\n /** Checked within the declared interval. */\n CURRENT = \"CURRENT\",\n /** Checked longer ago than the declared interval: re-check it against the vendor's page. */\n STALE = \"STALE\",\n /** Carries no date at all, so its age cannot be known. */\n UNDATED = \"UNDATED\",\n /** Dated, but the application declares no interval, so nothing says how old is too old. */\n NO_INTERVAL_DECLARED = \"NO_INTERVAL_DECLARED\",\n}\n\n/** One dated fact's currency. */\nexport interface ComplianceFactAge {\n readonly verifiedAt: string | null;\n readonly ageDays: number | null;\n readonly currency: ComplianceFactCurrency;\n}\n\n/** The staleness report: the register's own date, and every established vendor profile a reader relies on. */\nexport interface ComplianceFactStalenessReport {\n readonly asOf: string;\n readonly reverificationIntervalDays: number | null;\n readonly register: ComplianceFactAge;\n /** Per provider ref with an ESTABLISHED profile, dated by its OLDEST evidence. Sorted by ref. */\n readonly providerProfiles: readonly ({ readonly providerRef: string } & ComplianceFactAge)[];\n /** True when the register's own verification is {@link ComplianceFactCurrency.STALE}. */\n readonly registerStale: boolean;\n /** The provider refs whose profile is {@link ComplianceFactCurrency.STALE}. */\n readonly staleProviderRefs: readonly string[];\n /** The provider refs whose ESTABLISHED profile cites no evidence at all, so its age cannot be known. */\n readonly undatedProviderRefs: readonly string[];\n}\n\nconst MILLISECONDS_PER_DAY = 86_400_000;\n\nfunction ageOf(verifiedAt: string | null, asOf: string, intervalDays: number | null): ComplianceFactAge {\n if (verifiedAt === null) return { verifiedAt, ageDays: null, currency: ComplianceFactCurrency.UNDATED };\n const ageDays = Math.floor((Date.parse(`${asOf}T00:00:00Z`) - Date.parse(`${verifiedAt}T00:00:00Z`)) / MILLISECONDS_PER_DAY);\n if (intervalDays === null) return { verifiedAt, ageDays, currency: ComplianceFactCurrency.NO_INTERVAL_DECLARED };\n return { verifiedAt, ageDays, currency: ageDays > intervalDays ? ComplianceFactCurrency.STALE : ComplianceFactCurrency.CURRENT };\n}\n\n/**\n * Which compliance facts have outlived the interval the application declared (#1708) — DERIVED, never asked.\n *\n * Two populations, one interval: the operator's own register (its `verification.verifiedAt`) and the vendor facts\n * the framework suggests (each established profile's oldest `evidence[].verifiedAt`). The interval is the register's\n * `reverificationIntervalDays`, because how old is too old is the operator's policy for both; with none declared,\n * ages are still reported and nothing is called stale.\n *\n * `asOf` is a `YYYY-MM-DD` day supplied by the caller (the run's own instant), so the report is a pure function of\n * its inputs and a test can pin it. A report, never a refusal (`application-creation-directive.md`).\n *\n * assurance-control: WILDO.PRIVACY.THIRD_PARTY_PROCESSING — processor facts older than the operator's own\n * re-verification interval are named, so a notice does not keep stating a vendor arrangement nobody re-checked.\n */\nexport function complianceFactStaleness(params: {\n readonly register: ApplicationProcessorRegister | undefined;\n readonly profilesByProviderRef: Readonly<Record<string, ProviderComplianceProfile>>;\n /** The provider refs a reader relies on — the population's members. Profiles of other refs are not reported. */\n readonly providerRefs: readonly string[];\n readonly asOf: string;\n}): ComplianceFactStalenessReport {\n const intervalDays = params.register?.verification?.reverificationIntervalDays ?? null;\n const register = ageOf(params.register?.verification?.verifiedAt ?? null, params.asOf, intervalDays);\n const providerProfiles = [...new Set(params.providerRefs)].sort().flatMap((providerRef) => {\n const established = establishedProviderComplianceProfile(params.profilesByProviderRef[providerRef]);\n return established === null ? [] : [{ providerRef, ...ageOf(oldestProviderComplianceEvidenceDate(established), params.asOf, intervalDays) }];\n });\n return {\n asOf: params.asOf,\n reverificationIntervalDays: intervalDays,\n register,\n providerProfiles,\n registerStale: register.currency === ComplianceFactCurrency.STALE,\n staleProviderRefs: providerProfiles.filter((entry) => entry.currency === ComplianceFactCurrency.STALE).map((entry) => entry.providerRef),\n undatedProviderRefs: providerProfiles.filter((entry) => entry.currency === ComplianceFactCurrency.UNDATED).map((entry) => entry.providerRef),\n };\n}\n\n/** One register entry's contractual standing: its DPA and its recorded retention, as the operator stated them. */\nexport interface ProcessorAgreementStandingEntry {\n /** `providerRef` for a configured provider, `subprocessorRef` for an authored entry. */\n readonly ref: string;\n readonly entryKind: ProcessorRegisterEntryKind;\n /** `null` when the operator has not recorded a DPA — outstanding, never \"not required\". */\n readonly dataProcessingAgreement: DataProcessingAgreementStatus | null;\n readonly vendorRetention: string | null;\n}\n\n/** Which processors are governed by a recorded agreement, and which are not (#1709). */\nexport interface ProcessorAgreementStandingReport {\n /** Every register entry, sorted by ref. */\n readonly entries: readonly ProcessorAgreementStandingEntry[];\n /** Entries with NO DPA recorded — the question is open. */\n readonly agreementUnrecordedRefs: readonly string[];\n /** Entries the operator states have NO DPA in place — an Art. 28(3) gap, stated as such. */\n readonly agreementNotInPlaceRefs: readonly string[];\n /** Entries with no vendor retention recorded. */\n readonly vendorRetentionUnrecordedRefs: readonly string[];\n}\n\n/**\n * The register's contractual standing — which processors a recorded DPA governs, which the operator says none does,\n * and which nobody has recorded (#1709).\n *\n * Only the operator can know whether it is bound by a DPA, so this READS what the register states and names what it\n * does not; it never infers a status from a vendor offering one. An absent register yields an empty report — the\n * missing register is already named by the population join, and saying it twice would read as two findings.\n *\n * A report, never a refusal (`application-creation-directive.md`): a processing activity with no DPA is the\n * operator's gap to close, and naming it is what lets them.\n *\n * spec-cite: GDPR Art. 28(3), https://gdpr-info.eu/art-28-gdpr/ — \"Processing by a processor shall be governed by a\n * contract or other legal act under Union or Member State law, that is binding on the processor with regard to the\n * controller\".\n *\n * assurance-control: WILDO.PRIVACY.THIRD_PARTY_PROCESSING — a processor with no recorded or no in-place DPA is named,\n * so an unrecorded contractual basis does not read as a governed one.\n */\nexport function processorAgreementStanding(register: ApplicationProcessorRegister | undefined): ProcessorAgreementStandingReport {\n const entries = (register?.processors ?? [])\n .map((processor): ProcessorAgreementStandingEntry => ({\n ref: processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? processor.providerRef : processor.subprocessorRef,\n entryKind: processor.kind,\n dataProcessingAgreement: processor.dataProcessingAgreement?.status ?? null,\n vendorRetention: processor.vendorRetention ?? null,\n }))\n .sort((left, right) => left.ref.localeCompare(right.ref));\n return {\n entries,\n agreementUnrecordedRefs: entries.filter((entry) => entry.dataProcessingAgreement === null).map((entry) => entry.ref),\n agreementNotInPlaceRefs: entries.filter((entry) => entry.dataProcessingAgreement === DataProcessingAgreementStatus.NOT_IN_PLACE).map((entry) => entry.ref),\n vendorRetentionUnrecordedRefs: entries.filter((entry) => entry.vendorRetention === null).map((entry) => entry.ref),\n };\n}\n"]}
@@ -0,0 +1,139 @@
1
+ import { PersonalDataCategory, RecipientCategoriesNotDerivableReason, type ApplicationProviderComplianceChoices, type LawfulBasis, type OperatorLawfulBasis } from "@wildo-ai/saas-models";
2
+ import { RecipientPopulationClass, RecipientPopulationMemberKind, type RecipientPopulation } from "./recipient-population.schemas";
3
+ /**
4
+ * **What each recipient RECEIVES, and for which purpose** — derived from the flows the application declares (#1709).
5
+ *
6
+ * A record of processing states the categories of personal data and the categories of recipients (GDPR Art.
7
+ * 30(1)(c) and (d)), and a notice names the recipients (Art. 13(1)(e)). The law asks for the two lists, not for a
8
+ * cross-reference between them; saying which categories reach which recipient is the practice that keeps the two
9
+ * lists consistent, and it is what an operator needs to answer a data subject's "who has my data". Until this
10
+ * existed, it rested on free text an operator typed.
11
+ * spec-cite: GDPR Art. 30, https://gdpr-info.eu/art-30-gdpr/ — "(c) a description of the categories of data subjects
12
+ * and of the categories of personal data; (d) the categories of recipients to whom the personal data have been or
13
+ * will be disclosed".
14
+ *
15
+ * ## Derived from DECLARED FLOWS only, and a flow nobody declared is a marked gap
16
+ *
17
+ * Three kinds of flow say which data reaches a vendor, and each is read where it is declared:
18
+ *
19
+ * - an ENGINE CAPABILITY (or a capability ROLE the engine wires): the engine composes the call, so the categories are
20
+ * the engine's own statement, `PROVIDER_CAPABILITY_DISCLOSURES` in `@wildo-ai/saas-models`;
21
+ * - a SYSTEM OF RECORD: every resource bound to the instance (a read-through binding) or piped from it, with the
22
+ * `.dataCategories()` of the fields that flow — {@link SystemOfRecordDataFlow}, read off the materialized resources;
23
+ * - anything else — a generated typed client, a browser operation, code the scan could not read — carries no static
24
+ * field-to-input map, so its categories are NOT DERIVABLE. That is reported per recipient, never as an empty answer
25
+ * and never as a guess.
26
+ *
27
+ * ## A pipeline is a SOURCE today, and it is counted as what the instance holds
28
+ *
29
+ * `ExternalDataPipelineDirection` has one member, INBOUND: a pipeline copies rows FROM the system of record. Its
30
+ * mapped categories are therefore data the instance HOLDS and the application receives from it, not data disclosed to
31
+ * it. They are counted on the instance anyway, because the instance is the application's processor for those rows
32
+ * (it holds them on the operator's account) and a processor's record must name them. When an OUTBOUND direction
33
+ * exists, this is where source and recipient part ways.
34
+ *
35
+ * ## Purposes are LINKED, never inferred
36
+ *
37
+ * A recipient serves the purposes its compliance choice names (`providerComplianceChoices.<ref>.purposeRefs`), each a
38
+ * `purposeRef` of `operatorComplianceIdentity.lawfulBases`. A system of record ALSO serves the purposes its bindings
39
+ * and pipelines link (`binding.purposeRefs`, #1745): the flow is where the purpose of a copy is declared, per resource.
40
+ * A recipient that names none is reported as such; a ref naming no declared purpose is reported as a broken link.
41
+ * Nothing here decides a purpose on the operator's behalf.
42
+ *
43
+ * Report-only, like the population it reads: it never refuses (`application-creation-directive.md`).
44
+ */
45
+ /** @wildo_source:part:start saas.specifications.recipient-disclosures facet:layer:shared facet:audience:app-developer */
46
+ /** How a resource exchanges data with a system-of-record instance. */
47
+ export declare enum SystemOfRecordDataFlowKind {
48
+ /** A read-through binding: the resource's rows live in the system of record, every field maps by name or by map. */
49
+ READ_THROUGH_BINDING = "read-through-binding",
50
+ /** A pipeline copies the mapped fields between the system of record and a local resource. */
51
+ PIPELINE = "pipeline"
52
+ }
53
+ /** One resource's declared exchange with a system-of-record instance, with the categories of the fields that flow. */
54
+ export interface SystemOfRecordDataFlow {
55
+ /** The `systemsOfRecord.<name>` instance. */
56
+ readonly system: string;
57
+ readonly resourceType: string;
58
+ readonly kind: SystemOfRecordDataFlowKind;
59
+ /** The `.dataCategories()` of the fields that flow, in enum order. Empty when none of them declares one. */
60
+ readonly categories: readonly PersonalDataCategory[];
61
+ /**
62
+ * Flowing fields the application already declares personal (a scrub treatment, a provenance) with NO category: they
63
+ * reach the instance and name no category, so the instance's categories are incomplete. Empty when there are none.
64
+ */
65
+ readonly uncategorizedPersonalFields: readonly string[];
66
+ /**
67
+ * The processing purposes the binding links this flow to (`binding.purposeRefs`, #1745), sorted and deduplicated.
68
+ * Empty when it links none — which is reported where the purposes are read, never filled in.
69
+ */
70
+ readonly purposeRefs: readonly string[];
71
+ }
72
+ /** What one recipient receives, and for which purposes. */
73
+ export interface RecipientDisclosure {
74
+ readonly ref: string;
75
+ readonly kind: RecipientPopulationMemberKind;
76
+ readonly populationClass: RecipientPopulationClass;
77
+ /** The categories the declared flows carry to it, in enum order. */
78
+ readonly categories: readonly PersonalDataCategory[];
79
+ /**
80
+ * Every reason the categories are not all known — some path declares no field map, a flowing field has no category.
81
+ * `categories` is then what the DECLARED paths carry, and a notice must say the rest is not established. Empty when
82
+ * the declared flows account for everything.
83
+ */
84
+ readonly categoriesNotDerivable: readonly RecipientCategoriesNotDerivableReason[];
85
+ /**
86
+ * True when `categories` includes free text a person wrote (`USER_CONTENT`), which can carry any other category — so
87
+ * the list is a FLOOR of what reaches the vendor, and a notice must not conclude nothing else does.
88
+ */
89
+ readonly categoriesAreAFloor: boolean;
90
+ /** The declared flows the categories come from — `capability:EMAIL_TRANSACTIONAL`, `pipeline:contacts`, … */
91
+ readonly derivedFrom: readonly string[];
92
+ /** The purposes the recipient's compliance choice links to, resolved against the declared lawful bases. */
93
+ readonly purposes: readonly {
94
+ readonly purposeRef: string;
95
+ readonly purpose: string;
96
+ readonly basis: LawfulBasis;
97
+ }[];
98
+ /** `purposeRefs` the choice names that no lawful basis carries — a broken link, reported. */
99
+ readonly purposeRefsNamingNoPurpose: readonly string[];
100
+ }
101
+ /** @wildo_source:part:end saas.specifications.recipient-disclosures */
102
+ /**
103
+ * The system-of-record flows one resource declares, read off its materialized configuration — the one function the
104
+ * companion's facts and the evidence collector both call, so they cannot disagree about what flows.
105
+ *
106
+ * - A read-through binding (`httpApiBinding`) keeps the resource's rows IN the system of record: every field maps to
107
+ * a remote field (by name, or through `fieldMappings`), so the vendor holds every category the resource declares.
108
+ * - A pipeline (`externalDataPipeline`) moves only its MAPPED fields: the categories of the local fields its remote
109
+ * field, remote reference and declared-expression entries (#1685) write. A constant entry carries no remote data and
110
+ * does not count.
111
+ *
112
+ * Structural input, so a configuration of any generic instantiation passes without this module taking a view on it.
113
+ */
114
+ export declare function systemOfRecordFlowsOfResource(resourceType: string, configuration: {
115
+ readonly mainSchema?: unknown;
116
+ readonly httpApiBinding?: {
117
+ readonly system: string;
118
+ readonly purposeRefs?: readonly string[];
119
+ };
120
+ readonly externalDataPipeline?: {
121
+ readonly binding: {
122
+ readonly system: string;
123
+ readonly purposeRefs?: readonly string[];
124
+ };
125
+ readonly mapping: readonly {
126
+ readonly kind: string;
127
+ readonly localField: string;
128
+ }[];
129
+ };
130
+ }): readonly SystemOfRecordDataFlow[];
131
+ /** Every recipient's disclosure — operator sub-processors and tenant recipients — sorted by ref. */
132
+ export declare function deriveRecipientDisclosures(inputs: {
133
+ readonly population: RecipientPopulation;
134
+ /** `undefined` when the resource configurations could not be read, which every system-of-record member reports. */
135
+ readonly systemOfRecordFlows: readonly SystemOfRecordDataFlow[] | undefined;
136
+ readonly providerComplianceChoices: ApplicationProviderComplianceChoices | undefined;
137
+ readonly lawfulBases: readonly OperatorLawfulBasis[] | undefined;
138
+ }): readonly RecipientDisclosure[];
139
+ //# sourceMappingURL=recipient-disclosures.schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recipient-disclosures.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/recipient-disclosures.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oBAAoB,EACpB,qCAAqC,EAIrC,KAAK,oCAAoC,EACzC,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEL,wBAAwB,EACxB,6BAA6B,EAC7B,KAAK,mBAAmB,EACzB,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,yHAAyH;AAEzH,sEAAsE;AACtE,oBAAY,0BAA0B;IACpC,oHAAoH;IACpH,oBAAoB,yBAAyB;IAC7C,6FAA6F;IAC7F,QAAQ,aAAa;CACtB;AAED,sHAAsH;AACtH,MAAM,WAAW,sBAAsB;IACrC,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,0BAA0B,CAAC;IAC1C,4GAA4G;IAC5G,QAAQ,CAAC,UAAU,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACrD;;;OAGG;IACH,QAAQ,CAAC,2BAA2B,EAAE,SAAS,MAAM,EAAE,CAAC;IACxD;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAA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