@wildo-ai/saas-specifications 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (928) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/index.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
  7. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  8. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
  9. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  10. package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
  11. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  12. package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
  13. package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
  14. package/dist/esm/_core/brand/brand-name-choice.js +144 -24
  15. package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
  16. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
  17. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
  19. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
  21. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
  23. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  24. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
  25. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  26. package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
  27. package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
  28. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
  29. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
  31. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  32. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
  33. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  35. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  36. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
  37. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
  39. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  40. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +21 -3
  41. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  42. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +411 -13
  43. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
  45. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  46. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
  47. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  48. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
  49. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
  51. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  52. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +6 -0
  53. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  54. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
  55. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  56. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +1 -0
  57. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
  59. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
  61. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  62. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
  63. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  64. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  65. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  66. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  67. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  68. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  69. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  70. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
  71. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +66 -2
  73. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  74. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +42 -2
  75. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  76. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
  77. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  78. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
  79. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  81. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  82. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  83. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  85. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  86. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  87. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  88. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  89. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  90. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
  91. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  92. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
  93. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  94. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  95. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  97. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  98. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
  100. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -1
  102. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  103. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +41 -1
  104. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  105. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -1
  106. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  107. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +134 -9
  108. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  109. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
  110. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
  112. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  113. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
  114. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  115. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
  116. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  117. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
  118. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
  120. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
  122. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  123. package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
  124. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  125. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  126. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
  127. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  128. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
  129. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  130. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
  131. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  132. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
  133. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  135. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  136. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  137. package/dist/esm/_core/family-aspects.registry.js +2 -0
  138. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  139. package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
  140. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/family-aspects.schemas.js +20 -0
  142. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  143. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +6 -6
  144. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  145. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  146. package/dist/esm/_core/index.d.ts +6 -0
  147. package/dist/esm/_core/index.d.ts.map +1 -1
  148. package/dist/esm/_core/index.js +6 -0
  149. package/dist/esm/_core/index.js.map +1 -1
  150. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
  151. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  153. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  154. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  155. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
  156. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
  158. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  159. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  160. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  162. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  163. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
  164. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  166. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  167. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  168. package/dist/esm/_core/market/market.family-aspects.js +4 -1
  169. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  170. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
  171. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  172. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +6 -3
  173. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  174. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -1
  175. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  176. package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
  177. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  178. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  179. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +9 -0
  180. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  181. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
  182. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  183. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
  184. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  185. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
  186. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
  188. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  189. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -0
  190. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  191. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +2 -0
  192. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  193. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
  194. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
  195. package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
  196. package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
  197. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
  198. package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
  199. package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
  200. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -0
  201. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  202. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +12 -1
  203. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  204. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
  205. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  206. package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
  207. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  208. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
  209. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  210. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
  211. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  212. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  213. package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
  214. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  215. package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
  216. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  217. package/dist/esm/_core/resource-specification.schemas.js +73 -13
  218. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  219. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
  220. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  221. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  222. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  223. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  224. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  225. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  226. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  227. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
  228. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  229. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  230. package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
  231. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  232. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
  233. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  234. package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
  235. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  236. package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
  237. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  238. package/dist/esm/_core/service-method/service-method-validation.js +75 -0
  239. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  240. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  241. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  242. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  243. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  244. package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
  245. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  246. package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
  247. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  248. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
  249. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  250. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  251. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  252. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
  253. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  254. package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
  255. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  256. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  257. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
  258. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  259. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
  260. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  261. package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
  262. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  263. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
  264. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  265. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
  266. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  267. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
  268. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  269. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
  270. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  271. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
  272. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  273. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  274. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  275. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
  276. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  277. package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
  278. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  279. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
  280. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  281. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
  282. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
  283. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  284. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  285. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  286. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  287. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
  288. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  289. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
  290. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  291. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
  292. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  293. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
  294. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  295. package/dist/esm/application-creation.exports.d.ts +7 -0
  296. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  297. package/dist/esm/application-creation.exports.js +7 -0
  298. package/dist/esm/application-creation.exports.js.map +1 -1
  299. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
  300. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  301. package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
  302. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  303. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  304. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  305. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  306. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  307. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
  308. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  309. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
  310. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  311. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
  312. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  313. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  314. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  315. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  316. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  317. package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
  318. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  319. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
  320. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  321. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  322. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  323. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
  324. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  325. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
  326. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  327. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  328. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
  329. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  330. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  331. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  332. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  333. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  334. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  335. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  336. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
  337. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  338. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  339. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  340. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  341. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  342. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
  343. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  344. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
  345. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  346. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
  347. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  348. package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
  349. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  350. package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
  351. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  352. package/dist/esm/assurance/assurance-program.schemas.js +255 -14
  353. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  354. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  355. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  356. package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
  357. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  358. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  359. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  360. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
  361. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  362. package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
  363. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  364. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  365. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  366. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  367. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
  368. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  369. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  370. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  371. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  372. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  373. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  374. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  375. package/dist/esm/assurance/governed-document-release.js +3 -1
  376. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  377. package/dist/esm/assurance.exports.d.ts +4 -0
  378. package/dist/esm/assurance.exports.d.ts.map +1 -1
  379. package/dist/esm/assurance.exports.js +4 -0
  380. package/dist/esm/assurance.exports.js.map +1 -1
  381. package/dist/esm/companion-exports.d.ts +9 -1
  382. package/dist/esm/companion-exports.d.ts.map +1 -1
  383. package/dist/esm/companion-exports.js.map +1 -1
  384. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -1
  385. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +33 -5
  387. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +9 -12
  390. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +1 -1
  392. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +60 -6
  394. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  395. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  396. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  397. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  398. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/applications/resources/applications.resource.specification.js +2 -2
  400. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  401. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +12 -4
  402. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  403. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +46 -10
  404. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  405. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
  406. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  408. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +40 -11
  412. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -1
  414. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  415. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +44 -3
  416. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  417. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
  418. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  419. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +40 -8
  420. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  421. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +14 -8
  422. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  423. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +72 -19
  424. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  425. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +2 -2
  426. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  427. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +6 -6
  428. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  429. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  430. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  431. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
  432. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  433. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -2
  435. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  436. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
  437. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -1
  438. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  439. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +68 -12
  440. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  441. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  442. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
  443. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  444. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -1
  445. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +11 -7
  447. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  448. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
  449. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  450. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
  451. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  452. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
  453. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
  455. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  456. package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
  457. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  458. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  459. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  460. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
  461. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  462. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
  463. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  464. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
  465. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +1 -1
  466. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +4 -0
  468. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +4 -1
  470. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
  472. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
  474. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  475. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
  476. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  477. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
  478. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  479. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
  480. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +19 -13
  482. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  483. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
  484. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
  486. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  488. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  489. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  490. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  491. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
  492. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  494. package/dist/esm/engine/engine-resource-specifications.registry.js +55 -11
  495. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  496. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/errors/error-messages.specification.js +300 -5
  498. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  499. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  500. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  501. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  502. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  503. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  505. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  506. package/dist/esm/engine/features/index.d.ts +4 -2
  507. package/dist/esm/engine/features/index.d.ts.map +1 -1
  508. package/dist/esm/engine/features/index.js +6 -4
  509. package/dist/esm/engine/features/index.js.map +1 -1
  510. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
  511. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  512. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
  514. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  515. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -1
  516. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/files/resources/files.resource.specification.js +24 -3
  518. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  519. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  520. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
  521. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  522. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
  523. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  524. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  525. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  527. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  528. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  529. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  531. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  532. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  533. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  535. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  536. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  537. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  539. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  542. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  543. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  544. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  545. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
  546. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  547. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  548. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  549. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  550. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  551. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
  552. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +118 -18
  554. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  555. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
  556. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
  558. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  560. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  562. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  565. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  566. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  568. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  569. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  570. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  571. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  572. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  573. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  574. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  575. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
  576. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  577. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  578. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  579. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  580. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  581. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  582. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  583. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  584. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  585. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  586. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  587. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  588. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  589. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  591. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  592. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +6 -0
  594. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  595. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  596. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  598. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  599. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  601. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  602. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  603. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  604. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  606. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  607. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  609. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  610. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  611. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  612. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  613. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  614. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  615. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  616. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  617. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  618. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  619. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  620. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +3 -2
  622. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  623. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  624. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  625. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  626. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  628. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  629. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  630. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  632. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  633. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  634. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
  638. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  641. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  642. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  644. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  645. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  646. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  647. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  648. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  649. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  650. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  651. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  652. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  653. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  654. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  655. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  657. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  658. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  659. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  660. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  661. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  662. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  663. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  664. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  665. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  666. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  667. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  668. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  669. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  671. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  672. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  673. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  674. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  675. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  676. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
  679. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  680. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
  681. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  682. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
  683. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  684. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
  685. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  686. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
  687. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  688. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  689. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  690. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  691. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  692. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  693. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  694. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  695. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  696. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  698. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  699. package/dist/esm/engine/frontend-components/index.d.ts +7 -0
  700. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  701. package/dist/esm/engine/frontend-components/index.js +29 -0
  702. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  703. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  704. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  705. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  706. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  707. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  708. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  709. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  710. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  711. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  712. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
  713. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  714. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  715. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  716. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  717. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  718. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
  720. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  721. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  722. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  723. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  724. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  725. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  726. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  727. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  728. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
  729. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
  730. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
  731. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
  732. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  734. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  737. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  739. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  740. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  741. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  742. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  743. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  744. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  745. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  746. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  747. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  748. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  749. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  750. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  752. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  753. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  755. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  756. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
  757. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  758. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
  759. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  760. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  761. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  762. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  764. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
  766. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  767. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
  768. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  769. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  770. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  771. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  772. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  773. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  774. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  775. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
  776. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  777. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
  778. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
  779. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
  781. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +33 -7
  783. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +16 -14
  785. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +56 -53
  787. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  788. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -2
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -4
  791. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  792. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +2 -2
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
  794. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  795. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +3 -3
  796. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  797. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  798. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  800. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  801. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  802. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  803. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  804. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  805. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  806. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  808. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  809. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  810. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  811. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  812. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  813. package/dist/esm/engine/organizations/resources/index.js +1 -2
  814. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  815. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
  816. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +114 -51
  818. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  819. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
  820. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  821. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  822. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  823. package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
  824. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  825. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
  826. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  827. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +1 -1
  828. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +6 -4
  830. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  831. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -2
  832. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  833. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
  834. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
  836. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  837. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  838. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  839. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  840. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  841. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  842. package/dist/esm/engine/providers/github.provider.specification.js +8 -5
  843. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  844. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  845. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  846. package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
  847. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  848. package/dist/esm/engine/providers/index.d.ts +2 -0
  849. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  850. package/dist/esm/engine/providers/index.js +5 -1
  851. package/dist/esm/engine/providers/index.js.map +1 -1
  852. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  853. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
  855. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  856. package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
  857. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  858. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/providers/resend.provider.specification.js +8 -6
  860. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  861. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  862. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  863. package/dist/esm/engine/roles/index.d.ts +2 -2
  864. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  865. package/dist/esm/engine/roles/index.js +5 -5
  866. package/dist/esm/engine/roles/index.js.map +1 -1
  867. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  868. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  869. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  870. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  871. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  872. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  873. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  874. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  875. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
  876. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  878. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  879. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +3 -3
  880. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  881. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  883. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  884. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  885. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  886. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  887. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  888. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
  889. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  890. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
  891. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  892. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
  893. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  894. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +3 -3
  895. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  896. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +1 -1
  897. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  898. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -0
  899. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  900. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +6 -2
  901. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  902. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  903. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  904. package/dist/esm/engine/users/resources/user-self.resource.specification.js +33 -0
  905. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  906. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -1
  907. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  908. package/dist/esm/engine/users/resources/users.resource.specification.js +10 -4
  909. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/package.json +8 -8
  914. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  915. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  916. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  917. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  918. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  919. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  920. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  921. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  922. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  923. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  924. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  925. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  926. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  927. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  928. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
@@ -174,6 +174,40 @@ export declare function deriveMcpExposureSignal(input: {
174
174
  ownOperations: number;
175
175
  inheritedExposed: number;
176
176
  }): DerivedRiskSignal;
177
+ /**
178
+ * Count `chatCommand` declarations for {@link deriveChatCommandExposureSignal}: the application's own split into writes
179
+ * and reads by the kind each runs as (`chatCommandKindOf`, the reading startup's declaration check makes), and what it
180
+ * inherits (the engine-inclusive count minus its own, clamped at zero). A declaration no kind fits is refused at startup
181
+ * and runs nothing, so it counts as nothing. The ONE count: the companion's risk-signals behavior and the assurance
182
+ * report both call it, so the two homes cannot count differently.
183
+ */
184
+ export declare function countChatCommandExposure(input: {
185
+ ownResources: readonly {
186
+ readonly configuration?: unknown;
187
+ }[];
188
+ allResources: readonly {
189
+ readonly configuration?: unknown;
190
+ }[];
191
+ }): {
192
+ ownChatCommandWrites: number;
193
+ ownChatCommandReads: number;
194
+ inheritedChatCommands: number;
195
+ };
196
+ /**
197
+ * What a person can run from Slack or Teams as a chat command (#2666 S7, slice review F2).
198
+ *
199
+ * An application CHOOSES this exposure, operation by operation, with `chatCommand` on an operation, and nothing is
200
+ * reachable without it: the vendor endpoints exist only once a chat provider is installed, and they run nothing that is
201
+ * not declared. So, unlike MCP, zero is an absence: no request path from a chat reaches an operation. What a command
202
+ * runs is always authorized as the linked member's own request, so the count says where a vendor's request can start
203
+ * an operation, never that anyone gains authority. Writes and reads are counted apart: a write changes a record from a
204
+ * chat line, a read shows records in it.
205
+ */
206
+ export declare function deriveChatCommandExposureSignal(input: {
207
+ ownChatCommandWrites: number;
208
+ ownChatCommandReads: number;
209
+ inheritedChatCommands: number;
210
+ }): DerivedRiskSignal;
177
211
  /**
178
212
  * Where the brand's chosen NAME stands against its minimal trademark screening.
179
213
  *
@@ -185,8 +219,8 @@ export declare function deriveMcpExposureSignal(input: {
185
219
  * - No brand name yet: nothing to be exposed by, and not an absence either — the name is still to come.
186
220
  * - Cleared: screened in every declared jurisdiction and class with no conflict found. Still a screening, not
187
221
  * a clearance, which the observation says.
188
- * - Screening incomplete, kept despite a conflict, or never screened: the exposure is PRESENT, with the
189
- * conflicting marks or the uncovered jurisdictions in `detail`.
222
+ * - Screening incomplete, read by no register, kept despite a conflict, or never screened: the exposure is
223
+ * PRESENT, with the conflicting marks, the collisions and the uncovered jurisdictions in `detail`.
190
224
  */
191
225
  export declare function deriveBrandNameTrademarkSignal(input: {
192
226
  readonly brand: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"application-risk-signals.derivations.d.ts","sourceRoot":"","sources":["../../../../src/assurance/application-risk-signals.derivations.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAatG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;GAIG;AACH,oBAAY,cAAc;IACxB,oBAAoB,yBAAyB;IAC7C,2BAA2B,gCAAgC;CAC5D;AAED,wGAAwG;AACxG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3F,kGAAkG;IAClG,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;;;;;;;OAOG;IACH,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACtD;AAwBD;;;;;;;GAOG;AACH,wB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,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;CACjC,GAAG,iBAAiB,CA4DpB"}
1
+ {"version":3,"file":"application-risk-signals.derivations.d.ts","sourceRoot":"","sources":["../../../../src/assurance/application-risk-signals.derivations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgE,KAAK,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAa1I;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;GAIG;AACH,oBAAY,cAAc;IACxB,oBAAoB,yBAAyB;IAC7C,2BAA2B,gCAAgC;CAC5D;AAED,wGAAwG;AACxG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3F,kGAAkG;IAClG,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;;;;;;;OAOG;IACH,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACtD;AAwBD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAAE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG,iBAAi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mB,EAAE,MAAM,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAA;CAAE,CAY/F;AAED;;;;;;;;;GASG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;CAC/B,GAAG,iBAAiB,CAcpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE;IACpD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;CACjC,GAAG,iBAAiB,CAgEpB"}
@@ -1,7 +1,7 @@
1
- import { ApplicationRiskSignalRef } from "@wildo-ai/saas-models";
1
+ import { ApplicationRiskSignalRef, ChatCommandKind, chatCommandKindOf } from "@wildo-ai/saas-models";
2
2
  import { BrandSnapshotSchema } from "../_core/brand/brand-snapshot.schemas.js";
3
3
  import { BrandNameScreeningSchema, deriveBrandNameTrademarkOutcome, uncoveredBrandNameJurisdictions, } from "../_core/brand/brand-name-screening.schemas.js";
4
- import { BrandNameChoiceStanding, deriveBrandNameChoiceStanding, marketCompetitorNames, readCreatorBrandNameDecisions } from "../_core/brand/brand-name-choice.js";
4
+ import { BrandNameChoiceStanding, brandNameCandidateCollisions, deriveBrandNameChoiceStanding, marketCompetitorNames, readCreatorBrandNameDecisions } from "../_core/brand/brand-name-choice.js";
5
5
  import { ApplicationSpecificationFamily } from "../_core/application-specification-family-identity.schemas.js";
6
6
  import { ApplicationCreatorInputsSchema } from "../application-creation/application-creator-inputs.application-creation.schemas.js";
7
7
  import { resolveNotApplicableFamilies } from "../application-creation/application-line.application-creation.schemas.js";
@@ -232,6 +232,50 @@ export function deriveMcpExposureSignal(input) {
232
232
  detail: { ownExposed: input.ownExposed, ownOperations: input.ownOperations, inheritedExposed: input.inheritedExposed },
233
233
  });
234
234
  }
235
+ /**
236
+ * Count `chatCommand` declarations for {@link deriveChatCommandExposureSignal}: the application's own split into writes
237
+ * and reads by the kind each runs as (`chatCommandKindOf`, the reading startup's declaration check makes), and what it
238
+ * inherits (the engine-inclusive count minus its own, clamped at zero). A declaration no kind fits is refused at startup
239
+ * and runs nothing, so it counts as nothing. The ONE count: the companion's risk-signals behavior and the assurance
240
+ * report both call it, so the two homes cannot count differently.
241
+ */
242
+ export function countChatCommandExposure(input) {
243
+ const kindsIn = (resources) => resources.flatMap((entry) => (entry.configuration?.operations ?? [])
244
+ .filter((operation) => operation?.chatCommand !== undefined)
245
+ .map((operation) => chatCommandKindOf(operation))
246
+ .filter((kind) => kind !== undefined));
247
+ const own = kindsIn(input.ownResources);
248
+ return {
249
+ ownChatCommandWrites: own.filter((kind) => kind === ChatCommandKind.WRITE).length,
250
+ ownChatCommandReads: own.filter((kind) => kind !== ChatCommandKind.WRITE).length,
251
+ inheritedChatCommands: Math.max(kindsIn(input.allResources).length - own.length, 0),
252
+ };
253
+ }
254
+ /**
255
+ * What a person can run from Slack or Teams as a chat command (#2666 S7, slice review F2).
256
+ *
257
+ * An application CHOOSES this exposure, operation by operation, with `chatCommand` on an operation, and nothing is
258
+ * reachable without it: the vendor endpoints exist only once a chat provider is installed, and they run nothing that is
259
+ * not declared. So, unlike MCP, zero is an absence: no request path from a chat reaches an operation. What a command
260
+ * runs is always authorized as the linked member's own request, so the count says where a vendor's request can start
261
+ * an operation, never that anyone gains authority. Writes and reads are counted apart: a write changes a record from a
262
+ * chat line, a read shows records in it.
263
+ */
264
+ export function deriveChatCommandExposureSignal(input) {
265
+ const own = input.ownChatCommandWrites + input.ownChatCommandReads;
266
+ const total = own + input.inheritedChatCommands;
267
+ return signal({
268
+ ref: ApplicationRiskSignalRef.EXTERNAL_EXPOSURE_CHAT_COMMANDS,
269
+ home: RiskSignalHome.APPLICATION_EVALUATION_TIME,
270
+ observation: total === 0
271
+ ? "No operation declares `chatCommand`, so a person can run nothing of this application from Slack or Teams."
272
+ : `${total} operation(s) can be run from Slack or Teams as a chat command — ${input.ownChatCommandWrites} of this application's own that write and ${input.ownChatCommandReads} that read, plus ${input.inheritedChatCommands} it inherits from the engine. Each runs as the linked member's own request.`,
273
+ provenance: { inputs: ["operation.chatCommand on materialized resource configurations"], derivation: "per-operation declarations over the application-only and engine-inclusive registries" },
274
+ absent: total === 0,
275
+ avoidableExposure: avoidable(total > 0, "operations a person can run from a chat"),
276
+ detail: { ownChatCommandWrites: input.ownChatCommandWrites, ownChatCommandReads: input.ownChatCommandReads, inheritedChatCommands: input.inheritedChatCommands },
277
+ });
278
+ }
235
279
  /**
236
280
  * Where the brand's chosen NAME stands against its minimal trademark screening.
237
281
  *
@@ -243,8 +287,8 @@ export function deriveMcpExposureSignal(input) {
243
287
  * - No brand name yet: nothing to be exposed by, and not an absence either — the name is still to come.
244
288
  * - Cleared: screened in every declared jurisdiction and class with no conflict found. Still a screening, not
245
289
  * a clearance, which the observation says.
246
- * - Screening incomplete, kept despite a conflict, or never screened: the exposure is PRESENT, with the
247
- * conflicting marks or the uncovered jurisdictions in `detail`.
290
+ * - Screening incomplete, read by no register, kept despite a conflict, or never screened: the exposure is
291
+ * PRESENT, with the conflicting marks, the collisions and the uncovered jurisdictions in `detail`.
248
292
  */
249
293
  export function deriveBrandNameTrademarkSignal(input) {
250
294
  const provenance = {
@@ -284,11 +328,14 @@ export function deriveBrandNameTrademarkSignal(input) {
284
328
  });
285
329
  const conflictingMarks = (candidate?.trademarkQueries ?? []).flatMap((query) => query.conflictingMarks.map((mark) => ({ mark: mark.mark, register: query.register, status: mark.status, sourceUrl: mark.sourceUrl })));
286
330
  const uncovered = screening && candidate ? [...uncoveredBrandNameJurisdictions(screening, candidate)] : [];
331
+ const competitorNames = marketCompetitorNames(alternatives);
332
+ const collisions = candidate ? brandNameCandidateCollisions(candidate, competitorNames).map((collision) => ({ name: collision.name, source: collision.source, sourceUrl: collision.sourceUrl ?? null })) : [];
287
333
  const observation = {
288
334
  [BrandNameChoiceStanding.CLEARED]: `The brand name "${brandName}" was screened in every declared jurisdiction and class with no live conflicting mark found — a minimal screening, not a legal clearance.`,
289
335
  [BrandNameChoiceStanding.SCREENING_INCOMPLETE]: `The brand name "${brandName}" was screened incompletely: not cleared in ${uncovered.join(", ") || "a register that could not be read"}.`,
290
336
  [BrandNameChoiceStanding.KEPT_DESPITE_CONFLICT]: `The brand name "${brandName}" was kept although its screening found ${conflictingMarks.length > 0 ? `${conflictingMarks.length} live conflicting mark(s)` : "a named competitor with the same or a close name"}.`,
291
337
  [BrandNameChoiceStanding.CONFLICT_UNACKNOWLEDGED]: `The screening now finds ${conflictingMarks.length > 0 ? `${conflictingMarks.length} live conflicting mark(s)` : "a named competitor with the same or a close name"} for the brand name "${brandName}", and nobody chose to keep it despite that.`,
338
+ [BrandNameChoiceStanding.NO_REGISTER_READ]: `The brand name "${brandName}" is on a screening that read no trademark register at all: nothing is known about conflicting marks in ${uncovered.join(", ") || "any jurisdiction"}.`,
292
339
  [BrandNameChoiceStanding.NOT_SCREENED]: `The brand name "${brandName}" has never been screened against the trademark registers.`,
293
340
  }[standing];
294
341
  return signal({
@@ -302,6 +349,7 @@ export function deriveBrandNameTrademarkSignal(input) {
302
349
  candidateRef: candidate?.ref ?? null,
303
350
  trademarkOutcome: screening && candidate ? deriveBrandNameTrademarkOutcome(screening, candidate) : null,
304
351
  conflictingMarks,
352
+ collisions,
305
353
  uncoveredJurisdictions: uncovered,
306
354
  },
307
355
  avoidableExposure: avoidable(standing !== BrandNameChoiceStanding.CLEARED, "a brand name not cleared by its trademark screening"),
@@ -1 +1 @@
1
- {"version":3,"file":"application-risk-signals.derivations.js","sourceRoot":"","sources":["../../../../src/assurance/application-risk-signals.derivations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAuC,MAAM,uBAAuB,CAAC;AAEtG,OAAO,E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,IAAI;YACvG,gBAAgB;YAChB,sBAAsB,EAAE,SAAS;SAClC;QACD,iBAAiB,EAAE,SAAS,CAAC,QAAQ,KAAK,uBAAuB,CAAC,OAAO,EAAE,qDAAqD,CAAC;KAClI,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { ApplicationRiskSignalRef, type UnansweredPersonalDataResource } from \"@wildo-ai/saas-models\";\n\nimport { BrandSnapshotSchema } from \"../_core/brand/brand-snapshot.schemas\";\nimport {\n BrandNameScreeningSchema,\n deriveBrandNameTrademarkOutcome,\n uncoveredBrandNameJurisdictions,\n} from \"../_core/brand/brand-name-screening.schemas\";\nimport { BrandNameChoiceStanding, deriveBrandNameChoiceStanding, marketCompetitorNames, readCreatorBrandNameDecisions } from \"../_core/brand/brand-name-choice\";\nimport { ApplicationSpecificationFamily } from \"../_core/application-specification-family-identity.schemas\";\nimport { ApplicationCreatorInputsSchema } from \"../application-creation/application-creator-inputs.application-creation.schemas\";\nimport { resolveNotApplicableFamilies } from \"../application-creation/application-line.application-creation.schemas\";\n\n/**\n * The DERIVED risk signals (#300 Layer 1), as pure functions of what an application declares.\n *\n * ## Why they live in the engine\n *\n * They were authored in `scripts/assurance/report-risk-signals.mjs` and were reachable only there,\n * which made the `top_down.risk-register` method's derived half permanently absent: that playbook is\n * a tool-less structured generation, it says \"if signals were not supplied to this run…\", and\n * nothing has ever supplied them (#1435). The creation lane may not depend on the assurance plane —\n * `application-creation-directive.md` keeps that street one-way, and those scripts carry hard exits\n * that are right for an auditor's tool and wrong inside a run that must not stop — so the shared\n * thing had to move to where BOTH may read it. The engine is that place: every input is an engine\n * vocabulary or an application declaration, and both consumers already depend on the engine.\n *\n * The alternative was a second derivation in the companion. Rejected: two sets of observation\n * sentences about the same measurement is exactly the duplication that drifts invisibly, and the\n * script's own `assertSignalVocabularyMatches` exists because its author had already met the\n * transcription half of that problem.\n *\n * ## The one thing this layer must never become\n *\n * > *\"The derived layer emits SIGNALS with provenance, never risk conclusions. Marker density\n * > measures annotation effort, not control strength; capability enablement measures surface, not\n * > exposure severity. Auto-computing a risk SCORE from proxies recreates the false-agreement\n * > failure with more math and more confidence.\"*\n *\n * So nothing here multiplies, weights, ranks or totals a proxy into a number that reads as risk.\n * Every signal is a measured fact plus the inputs it came from; what it MEANS is Layer 3's question,\n * answered by a pass that reads the signals in context and is reviewed.\n *\n * ## The refs are the ENUM, not literals\n *\n * The script transcribed `ApplicationRiskSignalRef`'s values as string literals and guarded the\n * transcription with a two-way drift assertion. Keying on the enum removes the transcription\n * instead of checking it — the guard stays useful for the OTHER half of its job, which is refusing\n * a declared member that no signal measures.\n */\n\n/**\n * The two computation times. Never merged: a signal recomputed in the wrong home is a wrong answer\n * that looks right — the framework half needs engine SOURCE, which a deployed application cannot\n * see, and the application half needs the application's own configuration.\n */\nexport enum RiskSignalHome {\n FRAMEWORK_BUILD_TIME = \"FRAMEWORK_BUILD_TIME\",\n APPLICATION_EVALUATION_TIME = \"APPLICATION_EVALUATION_TIME\",\n}\n\n/** What a signal can contradict, where the question \"is the exposure present?\" is answerable at all. */\nexport interface AvoidableExposure {\n readonly present: boolean;\n readonly what: string;\n}\n\n/**\n * One derived signal.\n *\n * `observation` is a FACT. There is deliberately no `score`, `weight`, `level` or `severity` field —\n * adding one is how this layer stops being a derivation and starts being an unreviewed conclusion.\n */\nexport interface DerivedRiskSignal {\n readonly signalRef: string;\n readonly home: RiskSignalHome;\n readonly observation: string;\n readonly provenance: { readonly inputs?: readonly string[]; readonly derivation?: string };\n /** A COMPUTED absence — the exposure is structurally not there — never \"nobody wrote it down\". */\n readonly absent: boolean;\n readonly detail: unknown;\n /**\n * `{ present, what }` where the question is answerable, `null` where it is not — and the null is a\n * decision rather than an omission. \"Is the exposure present?\" is sharp for a vendor-hosted\n * provider or an operation reachable over MCP, and genuinely ambiguous for the capability surface\n * (is an ENABLED capability an exposure, or is a disabled one an absence?) and for the\n * personal-data inventory (every application processes some personal data; the exposure is which\n * kind, not whether).\n */\n readonly avoidableExposure: AvoidableExposure | null;\n}\n\nfunction signal(input: {\n ref: ApplicationRiskSignalRef;\n home: RiskSignalHome;\n observation: string;\n provenance: DerivedRiskSignal[\"provenance\"];\n absent?: boolean;\n detail?: unknown;\n avoidableExposure?: AvoidableExposure | null;\n}): DerivedRiskSignal {\n return {\n signalRef: `risk-signal:${input.ref}`,\n home: input.home,\n observation: input.observation,\n provenance: input.provenance,\n absent: input.absent ?? false,\n detail: input.detail ?? null,\n avoidableExposure: input.avoidableExposure ?? null,\n };\n}\n\nconst avoidable = (present: boolean, what: string): AvoidableExposure => ({ present, what });\n\n/**\n * Which engine capabilities this application turned on — TOTAL over the vocabulary.\n *\n * Total rather than a list of what is enabled, following `undeclaredRetentionClasses`' pattern: a\n * capability added to the vocabulary tomorrow is reported as not-enabled by every existing\n * application rather than silently omitted. The DISABLED half is the part a static register cannot\n * state — a capability that is off forecloses the exposures that ride it.\n */\nexport function deriveCapabilitySignal(input: { enabledRefs: ReadonlySet<string>; allRefs: readonly string[] }): DerivedRiskSignal {\n const enabled = [...input.enabledRefs].sort();\n const disabled = input.allRefs.filter((ref) => !input.enabledRefs.has(ref)).sort();\n return signal({\n ref: ApplicationRiskSignalRef.CAPABILITY_SURFACE,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: `${enabled.length} of ${input.allRefs.length} engine capabilities are enabled; ${disabled.length} are off and the exposures that ride them are structurally absent.`,\n provenance: { inputs: [\"wildo.saas.config.ts engineCapabilities\", \"EngineCapability vocabulary\"], derivation: \"total over the vocabulary, enabled vs not\" },\n detail: { enabled, disabled },\n });\n}\n\n/**\n * Which retention classes the application declared a period for, and which it has not.\n *\n * Reuses the engine's OWN `undeclaredRetentionClasses` rather than re-deriving it: a predicate\n * re-implemented in a script drifts, and the evidence would then describe the script.\n */\nexport function deriveRetentionSignal(input: { declaredClasses: readonly string[]; undeclared: readonly string[] }): DerivedRiskSignal {\n return signal({\n ref: ApplicationRiskSignalRef.RETENTION_DECLARATION,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: input.undeclared.length === 0\n ? `Every retention class the vocabulary carries has a declared period (${input.declaredClasses.length}).`\n : `${input.declaredClasses.length} retention class(es) declared, ${input.undeclared.length} with no declared period.`,\n provenance: { inputs: [\"the application ApplicationRetentionSchedule\", \"DataRetentionClass vocabulary\"], derivation: \"engine undeclaredRetentionClasses\" },\n absent: input.undeclared.length === 0,\n avoidableExposure: avoidable(input.undeclared.length > 0, \"retention classes with no declared period\"),\n detail: { declared: input.declaredClasses, undeclared: input.undeclared },\n });\n}\n\n/**\n * Vendor-hosted versus self-hosted providers — the third-party-processor exposure.\n *\n * #300's own example of a computed absence: an application with no vendor-hosted provider has NO\n * third-party-processor exposure, and a static register cannot honestly say that — it can only fail\n * to mention it.\n *\n * UNDECLARED is not ABSENT, and conflating them is the one way this signal can lie. The compliance\n * choice is an operator DECLARATION (`deploymentModel`), required even when a provider supports only\n * one model, because whether personal data leaves the operator's control is the single most\n * consequential fact a notice states about a provider. A provider that declares nothing has not told\n * us it is self-hosted; it has told us nothing. Reporting zero vendor-hosted providers as a computed\n * absence there would turn a MISSING DECLARATION into evidence of no exposure — the exact inversion\n * this derived layer exists to avoid, and the more dangerous one, because a static register at least\n * cannot claim it.\n *\n * Measured on Wonder Todos, which is why this paragraph exists: its three configured providers\n * include two obvious vendor-hosted LLM APIs and declare no deployment model at all. An earlier\n * version reported \"third-party-processor exposure is computed ABSENT\".\n */\nexport function deriveProviderHostingSignal(input: {\n vendorHosted: readonly string[];\n selfHosted: readonly string[];\n undeclared: readonly string[];\n}): DerivedRiskSignal {\n const total = input.vendorHosted.length + input.selfHosted.length + input.undeclared.length;\n const detail = { vendorHosted: input.vendorHosted, selfHosted: input.selfHosted, undeclared: input.undeclared };\n if (input.undeclared.length > 0) {\n return signal({\n ref: ApplicationRiskSignalRef.PROVIDER_HOSTING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: `${input.undeclared.length} of ${total} configured provider(s) declare no deployment model, so third-party-processor exposure is UNDETERMINED — an undeclared choice is not a computed absence.`,\n provenance: { inputs: [\"the application providerComplianceChoices\", \"the application providerConfigurations as the configured population\"], derivation: \"engine vendorHostedProviderRefs, and the configured providers it names nothing for\" },\n absent: false,\n // UNDETERMINED, so the avoidable question is unanswerable here: treating it as 'exposure\n // absent' would let a declared posture of AVOIDED pass unchallenged on exactly the\n // application that declared nothing.\n avoidableExposure: null,\n detail,\n });\n }\n return signal({\n ref: ApplicationRiskSignalRef.PROVIDER_HOSTING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: input.vendorHosted.length === 0\n ? `Every configured provider (${total}) declares a deployment model and NONE is vendor-hosted, so third-party-processor exposure is computed ABSENT rather than unstated.`\n : `${input.vendorHosted.length} of ${total} configured provider(s) are vendor-hosted, each a third-party processor.`,\n provenance: { inputs: [\"the application providerComplianceChoices\"], derivation: \"engine vendorHostedProviderRefs\" },\n absent: input.vendorHosted.length === 0,\n avoidableExposure: avoidable(input.vendorHosted.length > 0, \"vendor-hosted providers, each a third-party processor\"),\n detail,\n });\n}\n\n/**\n * Which personal-data categories this application's OWN resources declare, totalled over the vocabulary.\n *\n * Derived from the application's schemas rather than from anything anyone typed about them:\n * `resolveResourcePersonalDataCategories` reads the `.dataCategories()` declarations off each\n * resource's main schema, which is the same source the subject-export and impersonalization\n * machinery reads.\n *\n * SPECIAL CATEGORY is reported separately and deliberately. It is not \"more\" personal data on a\n * scale — it is data that needs a condition beyond the ordinary lawful basis before it may be\n * processed at all, so folding it into a count would lose the only distinction that changes what an\n * operator must have. Still a SIGNAL: that special-category data is declared is a fact, not a finding.\n *\n * Engine resources are excluded from the denominator on the engine's own reasoning: an application\n * author cannot change their posture, and including them would put permanent entries in front of\n * every reader of a report about THEIR application.\n */\nexport function derivePersonalDataSignals(input: {\n declaredCategories: readonly string[];\n allCategories: readonly string[];\n specialCategories: readonly string[];\n /**\n * The resources that said nothing, as `collectApplicationResourcesWithNoPersonalDataDeclaration`\n * returns them — carried through to `detail` whole rather than counted away, because WHICH\n * resources are silent is the only actionable half of this signal.\n */\n unanswered: readonly UnansweredPersonalDataResource[];\n applicationResourceCount: number;\n}): readonly DerivedRiskSignal[] {\n const declared = [...new Set(input.declaredCategories)].sort();\n const undeclared = input.allCategories.filter((category) => !declared.includes(category)).sort();\n const special = declared.filter((category) => input.specialCategories.includes(category)).sort();\n return [\n signal({\n ref: ApplicationRiskSignalRef.PERSONAL_DATA_INVENTORY,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: declared.length === 0\n ? `No application resource declares a personal-data category (${input.allCategories.length} in the vocabulary), so the data-sensitivity surface is UNDECLARED rather than empty.`\n : `${declared.length} of ${input.allCategories.length} personal-data categories are declared across this application's own resources; ${undeclared.length} are not present.`\n + (special.length === 0 ? \" None is a special category.\" : ` ${special.length} of them are SPECIAL CATEGORY, which needs a processing condition beyond the ordinary lawful basis.`),\n provenance: { inputs: [\".dataCategories() declarations on application resource schemas\", \"PersonalDataCategory vocabulary\"], derivation: \"engine resolveResourcePersonalDataCategories, totalled over the vocabulary\" },\n // Never an absence: nothing declared means nobody said, which is the opposite of nothing held.\n absent: false,\n detail: { declared, undeclared, specialCategory: special },\n }),\n signal({\n ref: ApplicationRiskSignalRef.PERSONAL_DATA_DECLARATION_GAP,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: input.unanswered.length === 0\n ? `All ${input.applicationResourceCount} of this application's own resources have answered the personal-data question.`\n : `${input.unanswered.length} of ${input.applicationResourceCount} of this application's own resources have said NOTHING about personal data — no retention treatment, no data-subject policy, no subject-export posture and no declared category.`,\n provenance: { inputs: [\"application resource configurations\"], derivation: \"engine collectApplicationResourcesWithNoPersonalDataDeclaration\" },\n absent: input.unanswered.length === 0,\n avoidableExposure: avoidable(input.unanswered.length > 0, \"resources that have said nothing about personal data\"),\n detail: input.unanswered,\n }),\n ];\n}\n\n/**\n * What an external agent can reach through the MCP transport.\n *\n * \"External-client risk classes present or structurally absent\" needed correcting against the code\n * before it could be derived. **The default `/mcp` and `/a2a` transports are mounted for EVERY\n * application** — the resource-server registry says so at its own site — so the transport is never\n * structurally absent and an application never chose it.\n *\n * What an application DOES choose is what is reachable through it: `mcp: { exposed: true }` on a\n * resource OPERATION, which is the whole of it. Zero exposed operations is therefore a real and\n * useful answer: the door is open and the room is empty.\n *\n * Engine and application operations are counted apart for the same reason the personal-data gap\n * separates them — an application author chooses one set and inherits the other — but BOTH are\n * reported, because an external agent reaches whatever is exposed regardless of who declared it.\n */\nexport function deriveMcpExposureSignal(input: {\n ownExposed: number;\n ownOperations: number;\n inheritedExposed: number;\n}): DerivedRiskSignal {\n const total = input.ownExposed + input.inheritedExposed;\n return signal({\n ref: ApplicationRiskSignalRef.EXTERNAL_EXPOSURE_MCP,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: total === 0\n ? \"The MCP transport is mounted (it is implicit for every application) and NO operation declares `mcp.exposed`, so an external agent reaches nothing through it.\"\n : `${total} operation(s) are reachable by an external agent over MCP — ${input.ownExposed} of this application's own ${input.ownOperations}, plus ${input.inheritedExposed} it inherits from the engine. The transport itself is implicit for every application and is not a choice this one made.`,\n provenance: { inputs: [\"operation.mcp.exposed on materialized resource configurations\", \"the implicit default MCP surface\"], derivation: \"per-operation declarations over the application-only and engine-inclusive registries\" },\n // Never an absence: the transport is mounted either way, so \"nothing exposed\" is an empty room\n // rather than a missing door — and the two carry different consequences.\n absent: false,\n // Sharp, unlike the transport question: an operation is reachable or it is not. An application\n // CAN avoid this exposure — by exposing nothing — and that claim is checkable.\n avoidableExposure: avoidable(total > 0, \"operations reachable by an external agent over MCP\"),\n detail: { ownExposed: input.ownExposed, ownOperations: input.ownOperations, inheritedExposed: input.inheritedExposed },\n });\n}\n\n/**\n * Where the brand's chosen NAME stands against its minimal trademark screening.\n *\n * Takes the RAW landed values (brand, screening, market, dossier) and parses them itself, so the companion\n * and the assurance report — the two homes that read this — cannot compute it differently. Standing comes\n * from `deriveBrandNameChoiceStanding`, the same function the coherence report and the brand-name choice use.\n *\n * - The line carries no brand (an internal tool): a COMPUTED absence.\n * - No brand name yet: nothing to be exposed by, and not an absence either — the name is still to come.\n * - Cleared: screened in every declared jurisdiction and class with no conflict found. Still a screening, not\n * a clearance, which the observation says.\n * - Screening incomplete, kept despite a conflict, or never screened: the exposure is PRESENT, with the\n * conflicting marks or the uncovered jurisdictions in `detail`.\n */\nexport function deriveBrandNameTrademarkSignal(input: {\n readonly brand: unknown;\n readonly screening: unknown;\n readonly market: unknown;\n readonly creatorInputs: unknown;\n}): DerivedRiskSignal {\n const provenance = {\n inputs: [\"brand-brief (name)\", \"brand-name-screening\", \"market-snapshot (alternatives)\", \"creator-inputs (application line)\"],\n derivation: \"the brand name matched to its screened candidate; standing derived from the candidate's register queries\",\n };\n const dossier = ApplicationCreatorInputsSchema.safeParse(input.creatorInputs);\n if (resolveNotApplicableFamilies(dossier.success ? dossier.data : undefined).has(ApplicationSpecificationFamily.BRAND_BRIEF)) {\n return signal({\n ref: ApplicationRiskSignalRef.BRAND_NAME_TRADEMARK_STANDING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: \"This application's line carries no brand, so there is no brand name to screen.\",\n provenance,\n absent: true,\n avoidableExposure: avoidable(false, \"a brand name not cleared by its trademark screening\"),\n });\n }\n const brand = BrandSnapshotSchema.safeParse(input.brand);\n if (!brand.success) {\n return signal({\n ref: ApplicationRiskSignalRef.BRAND_NAME_TRADEMARK_STANDING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: \"No brand name has been chosen yet, so there is no name to stand against a trademark screening.\",\n provenance,\n avoidableExposure: avoidable(false, \"a brand name not cleared by its trademark screening\"),\n });\n }\n const parsedScreening = BrandNameScreeningSchema.safeParse(input.screening);\n const screening = parsedScreening.success ? parsedScreening.data : undefined;\n const alternatives = (input.market as { alternatives?: Parameters<typeof marketCompetitorNames>[0] } | undefined)?.alternatives;\n const brandName = brand.data.name.brandName;\n const { standing, candidate } = deriveBrandNameChoiceStanding({\n brandName,\n screening,\n competitorNames: marketCompetitorNames(alternatives),\n chosenBrandNameAnswer: readCreatorBrandNameDecisions(dossier.success ? dossier.data : undefined).chosenBrandNameAnswer,\n });\n const conflictingMarks = (candidate?.trademarkQueries ?? []).flatMap((query) => query.conflictingMarks.map((mark) => ({ mark: mark.mark, register: query.register, status: mark.status, sourceUrl: mark.sourceUrl })));\n const uncovered = screening && candidate ? [...uncoveredBrandNameJurisdictions(screening, candidate)] : [];\n const observation = {\n [BrandNameChoiceStanding.CLEARED]: `The brand name \"${brandName}\" was screened in every declared jurisdiction and class with no live conflicting mark found — a minimal screening, not a legal clearance.`,\n [BrandNameChoiceStanding.SCREENING_INCOMPLETE]: `The brand name \"${brandName}\" was screened incompletely: not cleared in ${uncovered.join(\", \") || \"a register that could not be read\"}.`,\n [BrandNameChoiceStanding.KEPT_DESPITE_CONFLICT]: `The brand name \"${brandName}\" was kept although its screening found ${conflictingMarks.length > 0 ? `${conflictingMarks.length} live conflicting mark(s)` : \"a named competitor with the same or a close name\"}.`,\n [BrandNameChoiceStanding.CONFLICT_UNACKNOWLEDGED]: `The screening now finds ${conflictingMarks.length > 0 ? `${conflictingMarks.length} live conflicting mark(s)` : \"a named competitor with the same or a close name\"} for the brand name \"${brandName}\", and nobody chose to keep it despite that.`,\n [BrandNameChoiceStanding.NOT_SCREENED]: `The brand name \"${brandName}\" has never been screened against the trademark registers.`,\n }[standing];\n return signal({\n ref: ApplicationRiskSignalRef.BRAND_NAME_TRADEMARK_STANDING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation,\n provenance,\n detail: {\n brandName,\n standing,\n candidateRef: candidate?.ref ?? null,\n trademarkOutcome: screening && candidate ? deriveBrandNameTrademarkOutcome(screening, candidate) : null,\n conflictingMarks,\n uncoveredJurisdictions: uncovered,\n },\n avoidableExposure: avoidable(standing !== BrandNameChoiceStanding.CLEARED, \"a brand name not cleared by its trademark screening\"),\n });\n}\n"]}
1
+ {"version":3,"file":"application-risk-signals.derivations.js","sourceRoot":"","sources":["../../../../src/assurance/application-risk-signals.derivations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,iBAAiB,EAAuC,MAAM,uBAAuB,CAAC;AAE1I,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAC9L,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAE,8BAA8B,EAAE,MAAM,iFAAiF,CAAC;AACjI,OAAO,EAAE,4BAA4B,EAAE,MAAM,uEAAuE,CAAC;AAErH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;GAIG;AACH,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+DAA6C,CAAA;IAC7C,6EAA2D,CAAA;AAC7D,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAiCD,SAAS,MAAM,CAAC,KAQf;IACC,OAAO;QACL,SAAS,EAAE,eAAe,KAAK,CAAC,GAAG,EAAE;QACrC,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,KAAK;QAC7B,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,IAAI;QAC5B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,IAAI,IAAI;KACnD,CAAC;AACJ,CAAC;AAED,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,IAAY,EAAqB,EAAE,CAAC,CAAC,EAAE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CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;YACvG,gBAAgB;YAChB,UAAU;YACV,sBAAsB,EAAE,SAAS;SAClC;QACD,iBAAiB,EAAE,SAAS,CAAC,QAAQ,KAAK,uBAAuB,CAAC,OAAO,EAAE,qDAAqD,CAAC;KAClI,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { ApplicationRiskSignalRef, ChatCommandKind, chatCommandKindOf, type UnansweredPersonalDataResource } from \"@wildo-ai/saas-models\";\n\nimport { BrandSnapshotSchema } from \"../_core/brand/brand-snapshot.schemas\";\nimport {\n BrandNameScreeningSchema,\n deriveBrandNameTrademarkOutcome,\n uncoveredBrandNameJurisdictions,\n} from \"../_core/brand/brand-name-screening.schemas\";\nimport { BrandNameChoiceStanding, brandNameCandidateCollisions, deriveBrandNameChoiceStanding, marketCompetitorNames, readCreatorBrandNameDecisions } from \"../_core/brand/brand-name-choice\";\nimport { ApplicationSpecificationFamily } from \"../_core/application-specification-family-identity.schemas\";\nimport { ApplicationCreatorInputsSchema } from \"../application-creation/application-creator-inputs.application-creation.schemas\";\nimport { resolveNotApplicableFamilies } from \"../application-creation/application-line.application-creation.schemas\";\n\n/**\n * The DERIVED risk signals (#300 Layer 1), as pure functions of what an application declares.\n *\n * ## Why they live in the engine\n *\n * They were authored in `scripts/assurance/report-risk-signals.mjs` and were reachable only there,\n * which made the `top_down.risk-register` method's derived half permanently absent: that playbook is\n * a tool-less structured generation, it says \"if signals were not supplied to this run…\", and\n * nothing has ever supplied them (#1435). The creation lane may not depend on the assurance plane —\n * `application-creation-directive.md` keeps that street one-way, and those scripts carry hard exits\n * that are right for an auditor's tool and wrong inside a run that must not stop — so the shared\n * thing had to move to where BOTH may read it. The engine is that place: every input is an engine\n * vocabulary or an application declaration, and both consumers already depend on the engine.\n *\n * The alternative was a second derivation in the companion. Rejected: two sets of observation\n * sentences about the same measurement is exactly the duplication that drifts invisibly, and the\n * script's own `assertSignalVocabularyMatches` exists because its author had already met the\n * transcription half of that problem.\n *\n * ## The one thing this layer must never become\n *\n * > *\"The derived layer emits SIGNALS with provenance, never risk conclusions. Marker density\n * > measures annotation effort, not control strength; capability enablement measures surface, not\n * > exposure severity. Auto-computing a risk SCORE from proxies recreates the false-agreement\n * > failure with more math and more confidence.\"*\n *\n * So nothing here multiplies, weights, ranks or totals a proxy into a number that reads as risk.\n * Every signal is a measured fact plus the inputs it came from; what it MEANS is Layer 3's question,\n * answered by a pass that reads the signals in context and is reviewed.\n *\n * ## The refs are the ENUM, not literals\n *\n * The script transcribed `ApplicationRiskSignalRef`'s values as string literals and guarded the\n * transcription with a two-way drift assertion. Keying on the enum removes the transcription\n * instead of checking it — the guard stays useful for the OTHER half of its job, which is refusing\n * a declared member that no signal measures.\n */\n\n/**\n * The two computation times. Never merged: a signal recomputed in the wrong home is a wrong answer\n * that looks right — the framework half needs engine SOURCE, which a deployed application cannot\n * see, and the application half needs the application's own configuration.\n */\nexport enum RiskSignalHome {\n FRAMEWORK_BUILD_TIME = \"FRAMEWORK_BUILD_TIME\",\n APPLICATION_EVALUATION_TIME = \"APPLICATION_EVALUATION_TIME\",\n}\n\n/** What a signal can contradict, where the question \"is the exposure present?\" is answerable at all. */\nexport interface AvoidableExposure {\n readonly present: boolean;\n readonly what: string;\n}\n\n/**\n * One derived signal.\n *\n * `observation` is a FACT. There is deliberately no `score`, `weight`, `level` or `severity` field —\n * adding one is how this layer stops being a derivation and starts being an unreviewed conclusion.\n */\nexport interface DerivedRiskSignal {\n readonly signalRef: string;\n readonly home: RiskSignalHome;\n readonly observation: string;\n readonly provenance: { readonly inputs?: readonly string[]; readonly derivation?: string };\n /** A COMPUTED absence — the exposure is structurally not there — never \"nobody wrote it down\". */\n readonly absent: boolean;\n readonly detail: unknown;\n /**\n * `{ present, what }` where the question is answerable, `null` where it is not — and the null is a\n * decision rather than an omission. \"Is the exposure present?\" is sharp for a vendor-hosted\n * provider or an operation reachable over MCP, and genuinely ambiguous for the capability surface\n * (is an ENABLED capability an exposure, or is a disabled one an absence?) and for the\n * personal-data inventory (every application processes some personal data; the exposure is which\n * kind, not whether).\n */\n readonly avoidableExposure: AvoidableExposure | null;\n}\n\nfunction signal(input: {\n ref: ApplicationRiskSignalRef;\n home: RiskSignalHome;\n observation: string;\n provenance: DerivedRiskSignal[\"provenance\"];\n absent?: boolean;\n detail?: unknown;\n avoidableExposure?: AvoidableExposure | null;\n}): DerivedRiskSignal {\n return {\n signalRef: `risk-signal:${input.ref}`,\n home: input.home,\n observation: input.observation,\n provenance: input.provenance,\n absent: input.absent ?? false,\n detail: input.detail ?? null,\n avoidableExposure: input.avoidableExposure ?? null,\n };\n}\n\nconst avoidable = (present: boolean, what: string): AvoidableExposure => ({ present, what });\n\n/**\n * Which engine capabilities this application turned on — TOTAL over the vocabulary.\n *\n * Total rather than a list of what is enabled, following `undeclaredRetentionClasses`' pattern: a\n * capability added to the vocabulary tomorrow is reported as not-enabled by every existing\n * application rather than silently omitted. The DISABLED half is the part a static register cannot\n * state — a capability that is off forecloses the exposures that ride it.\n */\nexport function deriveCapabilitySignal(input: { enabledRefs: ReadonlySet<string>; allRefs: readonly string[] }): DerivedRiskSignal {\n const enabled = [...input.enabledRefs].sort();\n const disabled = input.allRefs.filter((ref) => !input.enabledRefs.has(ref)).sort();\n return signal({\n ref: ApplicationRiskSignalRef.CAPABILITY_SURFACE,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: `${enabled.length} of ${input.allRefs.length} engine capabilities are enabled; ${disabled.length} are off and the exposures that ride them are structurally absent.`,\n provenance: { inputs: [\"wildo.saas.config.ts engineCapabilities\", \"EngineCapability vocabulary\"], derivation: \"total over the vocabulary, enabled vs not\" },\n detail: { enabled, disabled },\n });\n}\n\n/**\n * Which retention classes the application declared a period for, and which it has not.\n *\n * Reuses the engine's OWN `undeclaredRetentionClasses` rather than re-deriving it: a predicate\n * re-implemented in a script drifts, and the evidence would then describe the script.\n */\nexport function deriveRetentionSignal(input: { declaredClasses: readonly string[]; undeclared: readonly string[] }): DerivedRiskSignal {\n return signal({\n ref: ApplicationRiskSignalRef.RETENTION_DECLARATION,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: input.undeclared.length === 0\n ? `Every retention class the vocabulary carries has a declared period (${input.declaredClasses.length}).`\n : `${input.declaredClasses.length} retention class(es) declared, ${input.undeclared.length} with no declared period.`,\n provenance: { inputs: [\"the application ApplicationRetentionSchedule\", \"DataRetentionClass vocabulary\"], derivation: \"engine undeclaredRetentionClasses\" },\n absent: input.undeclared.length === 0,\n avoidableExposure: avoidable(input.undeclared.length > 0, \"retention classes with no declared period\"),\n detail: { declared: input.declaredClasses, undeclared: input.undeclared },\n });\n}\n\n/**\n * Vendor-hosted versus self-hosted providers — the third-party-processor exposure.\n *\n * #300's own example of a computed absence: an application with no vendor-hosted provider has NO\n * third-party-processor exposure, and a static register cannot honestly say that — it can only fail\n * to mention it.\n *\n * UNDECLARED is not ABSENT, and conflating them is the one way this signal can lie. The compliance\n * choice is an operator DECLARATION (`deploymentModel`), required even when a provider supports only\n * one model, because whether personal data leaves the operator's control is the single most\n * consequential fact a notice states about a provider. A provider that declares nothing has not told\n * us it is self-hosted; it has told us nothing. Reporting zero vendor-hosted providers as a computed\n * absence there would turn a MISSING DECLARATION into evidence of no exposure — the exact inversion\n * this derived layer exists to avoid, and the more dangerous one, because a static register at least\n * cannot claim it.\n *\n * Measured on Wonder Todos, which is why this paragraph exists: its three configured providers\n * include two obvious vendor-hosted LLM APIs and declare no deployment model at all. An earlier\n * version reported \"third-party-processor exposure is computed ABSENT\".\n */\nexport function deriveProviderHostingSignal(input: {\n vendorHosted: readonly string[];\n selfHosted: readonly string[];\n undeclared: readonly string[];\n}): DerivedRiskSignal {\n const total = input.vendorHosted.length + input.selfHosted.length + input.undeclared.length;\n const detail = { vendorHosted: input.vendorHosted, selfHosted: input.selfHosted, undeclared: input.undeclared };\n if (input.undeclared.length > 0) {\n return signal({\n ref: ApplicationRiskSignalRef.PROVIDER_HOSTING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: `${input.undeclared.length} of ${total} configured provider(s) declare no deployment model, so third-party-processor exposure is UNDETERMINED — an undeclared choice is not a computed absence.`,\n provenance: { inputs: [\"the application providerComplianceChoices\", \"the application providerConfigurations as the configured population\"], derivation: \"engine vendorHostedProviderRefs, and the configured providers it names nothing for\" },\n absent: false,\n // UNDETERMINED, so the avoidable question is unanswerable here: treating it as 'exposure\n // absent' would let a declared posture of AVOIDED pass unchallenged on exactly the\n // application that declared nothing.\n avoidableExposure: null,\n detail,\n });\n }\n return signal({\n ref: ApplicationRiskSignalRef.PROVIDER_HOSTING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: input.vendorHosted.length === 0\n ? `Every configured provider (${total}) declares a deployment model and NONE is vendor-hosted, so third-party-processor exposure is computed ABSENT rather than unstated.`\n : `${input.vendorHosted.length} of ${total} configured provider(s) are vendor-hosted, each a third-party processor.`,\n provenance: { inputs: [\"the application providerComplianceChoices\"], derivation: \"engine vendorHostedProviderRefs\" },\n absent: input.vendorHosted.length === 0,\n avoidableExposure: avoidable(input.vendorHosted.length > 0, \"vendor-hosted providers, each a third-party processor\"),\n detail,\n });\n}\n\n/**\n * Which personal-data categories this application's OWN resources declare, totalled over the vocabulary.\n *\n * Derived from the application's schemas rather than from anything anyone typed about them:\n * `resolveResourcePersonalDataCategories` reads the `.dataCategories()` declarations off each\n * resource's main schema, which is the same source the subject-export and impersonalization\n * machinery reads.\n *\n * SPECIAL CATEGORY is reported separately and deliberately. It is not \"more\" personal data on a\n * scale — it is data that needs a condition beyond the ordinary lawful basis before it may be\n * processed at all, so folding it into a count would lose the only distinction that changes what an\n * operator must have. Still a SIGNAL: that special-category data is declared is a fact, not a finding.\n *\n * Engine resources are excluded from the denominator on the engine's own reasoning: an application\n * author cannot change their posture, and including them would put permanent entries in front of\n * every reader of a report about THEIR application.\n */\nexport function derivePersonalDataSignals(input: {\n declaredCategories: readonly string[];\n allCategories: readonly string[];\n specialCategories: readonly string[];\n /**\n * The resources that said nothing, as `collectApplicationResourcesWithNoPersonalDataDeclaration`\n * returns them — carried through to `detail` whole rather than counted away, because WHICH\n * resources are silent is the only actionable half of this signal.\n */\n unanswered: readonly UnansweredPersonalDataResource[];\n applicationResourceCount: number;\n}): readonly DerivedRiskSignal[] {\n const declared = [...new Set(input.declaredCategories)].sort();\n const undeclared = input.allCategories.filter((category) => !declared.includes(category)).sort();\n const special = declared.filter((category) => input.specialCategories.includes(category)).sort();\n return [\n signal({\n ref: ApplicationRiskSignalRef.PERSONAL_DATA_INVENTORY,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: declared.length === 0\n ? `No application resource declares a personal-data category (${input.allCategories.length} in the vocabulary), so the data-sensitivity surface is UNDECLARED rather than empty.`\n : `${declared.length} of ${input.allCategories.length} personal-data categories are declared across this application's own resources; ${undeclared.length} are not present.`\n + (special.length === 0 ? \" None is a special category.\" : ` ${special.length} of them are SPECIAL CATEGORY, which needs a processing condition beyond the ordinary lawful basis.`),\n provenance: { inputs: [\".dataCategories() declarations on application resource schemas\", \"PersonalDataCategory vocabulary\"], derivation: \"engine resolveResourcePersonalDataCategories, totalled over the vocabulary\" },\n // Never an absence: nothing declared means nobody said, which is the opposite of nothing held.\n absent: false,\n detail: { declared, undeclared, specialCategory: special },\n }),\n signal({\n ref: ApplicationRiskSignalRef.PERSONAL_DATA_DECLARATION_GAP,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: input.unanswered.length === 0\n ? `All ${input.applicationResourceCount} of this application's own resources have answered the personal-data question.`\n : `${input.unanswered.length} of ${input.applicationResourceCount} of this application's own resources have said NOTHING about personal data — no retention treatment, no data-subject policy, no subject-export posture and no declared category.`,\n provenance: { inputs: [\"application resource configurations\"], derivation: \"engine collectApplicationResourcesWithNoPersonalDataDeclaration\" },\n absent: input.unanswered.length === 0,\n avoidableExposure: avoidable(input.unanswered.length > 0, \"resources that have said nothing about personal data\"),\n detail: input.unanswered,\n }),\n ];\n}\n\n/**\n * What an external agent can reach through the MCP transport.\n *\n * \"External-client risk classes present or structurally absent\" needed correcting against the code\n * before it could be derived. **The default `/mcp` and `/a2a` transports are mounted for EVERY\n * application** — the resource-server registry says so at its own site — so the transport is never\n * structurally absent and an application never chose it.\n *\n * What an application DOES choose is what is reachable through it: `mcp: { exposed: true }` on a\n * resource OPERATION, which is the whole of it. Zero exposed operations is therefore a real and\n * useful answer: the door is open and the room is empty.\n *\n * Engine and application operations are counted apart for the same reason the personal-data gap\n * separates them — an application author chooses one set and inherits the other — but BOTH are\n * reported, because an external agent reaches whatever is exposed regardless of who declared it.\n */\nexport function deriveMcpExposureSignal(input: {\n ownExposed: number;\n ownOperations: number;\n inheritedExposed: number;\n}): DerivedRiskSignal {\n const total = input.ownExposed + input.inheritedExposed;\n return signal({\n ref: ApplicationRiskSignalRef.EXTERNAL_EXPOSURE_MCP,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: total === 0\n ? \"The MCP transport is mounted (it is implicit for every application) and NO operation declares `mcp.exposed`, so an external agent reaches nothing through it.\"\n : `${total} operation(s) are reachable by an external agent over MCP — ${input.ownExposed} of this application's own ${input.ownOperations}, plus ${input.inheritedExposed} it inherits from the engine. The transport itself is implicit for every application and is not a choice this one made.`,\n provenance: { inputs: [\"operation.mcp.exposed on materialized resource configurations\", \"the implicit default MCP surface\"], derivation: \"per-operation declarations over the application-only and engine-inclusive registries\" },\n // Never an absence: the transport is mounted either way, so \"nothing exposed\" is an empty room\n // rather than a missing door — and the two carry different consequences.\n absent: false,\n // Sharp, unlike the transport question: an operation is reachable or it is not. An application\n // CAN avoid this exposure — by exposing nothing — and that claim is checkable.\n avoidableExposure: avoidable(total > 0, \"operations reachable by an external agent over MCP\"),\n detail: { ownExposed: input.ownExposed, ownOperations: input.ownOperations, inheritedExposed: input.inheritedExposed },\n });\n}\n\n/**\n * Count `chatCommand` declarations for {@link deriveChatCommandExposureSignal}: the application's own split into writes\n * and reads by the kind each runs as (`chatCommandKindOf`, the reading startup's declaration check makes), and what it\n * inherits (the engine-inclusive count minus its own, clamped at zero). A declaration no kind fits is refused at startup\n * and runs nothing, so it counts as nothing. The ONE count: the companion's risk-signals behavior and the assurance\n * report both call it, so the two homes cannot count differently.\n */\nexport function countChatCommandExposure(input: {\n ownResources: readonly { readonly configuration?: unknown }[];\n allResources: readonly { readonly configuration?: unknown }[];\n}): { ownChatCommandWrites: number; ownChatCommandReads: number; inheritedChatCommands: number } {\n const kindsIn = (resources: readonly { readonly configuration?: unknown }[]): ChatCommandKind[] => resources.flatMap((entry) =>\n ((entry.configuration as { operations?: readonly unknown[] } | null | undefined)?.operations ?? [])\n .filter((operation) => (operation as { chatCommand?: unknown } | null)?.chatCommand !== undefined)\n .map((operation) => chatCommandKindOf(operation as { operationIdentifier?: unknown }))\n .filter((kind): kind is ChatCommandKind => kind !== undefined));\n const own = kindsIn(input.ownResources);\n return {\n ownChatCommandWrites: own.filter((kind) => kind === ChatCommandKind.WRITE).length,\n ownChatCommandReads: own.filter((kind) => kind !== ChatCommandKind.WRITE).length,\n inheritedChatCommands: Math.max(kindsIn(input.allResources).length - own.length, 0),\n };\n}\n\n/**\n * What a person can run from Slack or Teams as a chat command (#2666 S7, slice review F2).\n *\n * An application CHOOSES this exposure, operation by operation, with `chatCommand` on an operation, and nothing is\n * reachable without it: the vendor endpoints exist only once a chat provider is installed, and they run nothing that is\n * not declared. So, unlike MCP, zero is an absence: no request path from a chat reaches an operation. What a command\n * runs is always authorized as the linked member's own request, so the count says where a vendor's request can start\n * an operation, never that anyone gains authority. Writes and reads are counted apart: a write changes a record from a\n * chat line, a read shows records in it.\n */\nexport function deriveChatCommandExposureSignal(input: {\n ownChatCommandWrites: number;\n ownChatCommandReads: number;\n inheritedChatCommands: number;\n}): DerivedRiskSignal {\n const own = input.ownChatCommandWrites + input.ownChatCommandReads;\n const total = own + input.inheritedChatCommands;\n return signal({\n ref: ApplicationRiskSignalRef.EXTERNAL_EXPOSURE_CHAT_COMMANDS,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: total === 0\n ? \"No operation declares `chatCommand`, so a person can run nothing of this application from Slack or Teams.\"\n : `${total} operation(s) can be run from Slack or Teams as a chat command — ${input.ownChatCommandWrites} of this application's own that write and ${input.ownChatCommandReads} that read, plus ${input.inheritedChatCommands} it inherits from the engine. Each runs as the linked member's own request.`,\n provenance: { inputs: [\"operation.chatCommand on materialized resource configurations\"], derivation: \"per-operation declarations over the application-only and engine-inclusive registries\" },\n absent: total === 0,\n avoidableExposure: avoidable(total > 0, \"operations a person can run from a chat\"),\n detail: { ownChatCommandWrites: input.ownChatCommandWrites, ownChatCommandReads: input.ownChatCommandReads, inheritedChatCommands: input.inheritedChatCommands },\n });\n}\n\n/**\n * Where the brand's chosen NAME stands against its minimal trademark screening.\n *\n * Takes the RAW landed values (brand, screening, market, dossier) and parses them itself, so the companion\n * and the assurance report — the two homes that read this — cannot compute it differently. Standing comes\n * from `deriveBrandNameChoiceStanding`, the same function the coherence report and the brand-name choice use.\n *\n * - The line carries no brand (an internal tool): a COMPUTED absence.\n * - No brand name yet: nothing to be exposed by, and not an absence either — the name is still to come.\n * - Cleared: screened in every declared jurisdiction and class with no conflict found. Still a screening, not\n * a clearance, which the observation says.\n * - Screening incomplete, read by no register, kept despite a conflict, or never screened: the exposure is\n * PRESENT, with the conflicting marks, the collisions and the uncovered jurisdictions in `detail`.\n */\nexport function deriveBrandNameTrademarkSignal(input: {\n readonly brand: unknown;\n readonly screening: unknown;\n readonly market: unknown;\n readonly creatorInputs: unknown;\n}): DerivedRiskSignal {\n const provenance = {\n inputs: [\"brand-brief (name)\", \"brand-name-screening\", \"market-snapshot (alternatives)\", \"creator-inputs (application line)\"],\n derivation: \"the brand name matched to its screened candidate; standing derived from the candidate's register queries\",\n };\n const dossier = ApplicationCreatorInputsSchema.safeParse(input.creatorInputs);\n if (resolveNotApplicableFamilies(dossier.success ? dossier.data : undefined).has(ApplicationSpecificationFamily.BRAND_BRIEF)) {\n return signal({\n ref: ApplicationRiskSignalRef.BRAND_NAME_TRADEMARK_STANDING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: \"This application's line carries no brand, so there is no brand name to screen.\",\n provenance,\n absent: true,\n avoidableExposure: avoidable(false, \"a brand name not cleared by its trademark screening\"),\n });\n }\n const brand = BrandSnapshotSchema.safeParse(input.brand);\n if (!brand.success) {\n return signal({\n ref: ApplicationRiskSignalRef.BRAND_NAME_TRADEMARK_STANDING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation: \"No brand name has been chosen yet, so there is no name to stand against a trademark screening.\",\n provenance,\n avoidableExposure: avoidable(false, \"a brand name not cleared by its trademark screening\"),\n });\n }\n const parsedScreening = BrandNameScreeningSchema.safeParse(input.screening);\n const screening = parsedScreening.success ? parsedScreening.data : undefined;\n const alternatives = (input.market as { alternatives?: Parameters<typeof marketCompetitorNames>[0] } | undefined)?.alternatives;\n const brandName = brand.data.name.brandName;\n const { standing, candidate } = deriveBrandNameChoiceStanding({\n brandName,\n screening,\n competitorNames: marketCompetitorNames(alternatives),\n chosenBrandNameAnswer: readCreatorBrandNameDecisions(dossier.success ? dossier.data : undefined).chosenBrandNameAnswer,\n });\n const conflictingMarks = (candidate?.trademarkQueries ?? []).flatMap((query) => query.conflictingMarks.map((mark) => ({ mark: mark.mark, register: query.register, status: mark.status, sourceUrl: mark.sourceUrl })));\n const uncovered = screening && candidate ? [...uncoveredBrandNameJurisdictions(screening, candidate)] : [];\n const competitorNames = marketCompetitorNames(alternatives);\n const collisions = candidate ? brandNameCandidateCollisions(candidate, competitorNames).map((collision) => ({ name: collision.name, source: collision.source, sourceUrl: collision.sourceUrl ?? null })) : [];\n const observation = ({\n [BrandNameChoiceStanding.CLEARED]: `The brand name \"${brandName}\" was screened in every declared jurisdiction and class with no live conflicting mark found — a minimal screening, not a legal clearance.`,\n [BrandNameChoiceStanding.SCREENING_INCOMPLETE]: `The brand name \"${brandName}\" was screened incompletely: not cleared in ${uncovered.join(\", \") || \"a register that could not be read\"}.`,\n [BrandNameChoiceStanding.KEPT_DESPITE_CONFLICT]: `The brand name \"${brandName}\" was kept although its screening found ${conflictingMarks.length > 0 ? `${conflictingMarks.length} live conflicting mark(s)` : \"a named competitor with the same or a close name\"}.`,\n [BrandNameChoiceStanding.CONFLICT_UNACKNOWLEDGED]: `The screening now finds ${conflictingMarks.length > 0 ? `${conflictingMarks.length} live conflicting mark(s)` : \"a named competitor with the same or a close name\"} for the brand name \"${brandName}\", and nobody chose to keep it despite that.`,\n [BrandNameChoiceStanding.NO_REGISTER_READ]: `The brand name \"${brandName}\" is on a screening that read no trademark register at all: nothing is known about conflicting marks in ${uncovered.join(\", \") || \"any jurisdiction\"}.`,\n [BrandNameChoiceStanding.NOT_SCREENED]: `The brand name \"${brandName}\" has never been screened against the trademark registers.`,\n } satisfies Record<BrandNameChoiceStanding, string>)[standing];\n return signal({\n ref: ApplicationRiskSignalRef.BRAND_NAME_TRADEMARK_STANDING,\n home: RiskSignalHome.APPLICATION_EVALUATION_TIME,\n observation,\n provenance,\n detail: {\n brandName,\n standing,\n candidateRef: candidate?.ref ?? null,\n trademarkOutcome: screening && candidate ? deriveBrandNameTrademarkOutcome(screening, candidate) : null,\n conflictingMarks,\n collisions,\n uncoveredJurisdictions: uncovered,\n },\n avoidableExposure: avoidable(standing !== BrandNameChoiceStanding.CLEARED, \"a brand name not cleared by its trademark screening\"),\n });\n}\n"]}
@@ -0,0 +1,38 @@
1
+ import type { AssuranceSourceRequirementAnswer } from "./assurance-program.schemas";
2
+ /**
3
+ * How an SP 800-53A assessment-procedure row gets its grade (#2956, moved here in its review, L1).
4
+ *
5
+ * SP 800-53A's procedure for a control assesses that control and nothing else, so a procedure row answers exactly as much
6
+ * of its requirement as the SP 800-53 row of the same control answers of its own: the twin carries the control's grade by
7
+ * construction instead of a second grade a reviewer could let drift. A module of its own, which no `*.exports.ts`
8
+ * re-exports, so its refusals can be tested on planted twins without composing a basis.
9
+ */
10
+ /** The source of the controls an SP 800-53A row twins. */
11
+ export declare const ASSESSED_CONTROL_SOURCE_REF = "source:nist-sp-800-53-rev-5-release-5.2.0";
12
+ export interface AssessmentTwinObjective {
13
+ readonly objectiveRef: string;
14
+ readonly objectiveVersion: number;
15
+ }
16
+ /** An SP 800-53A row before it is graded: its slug and the objective it is reviewed against. */
17
+ export interface AssessmentTwin {
18
+ readonly requirementRef: string;
19
+ readonly objective: AssessmentTwinObjective;
20
+ }
21
+ /** A reviewed row a twin may resolve to: only an SP 800-53 row of the same control and the same objective qualifies. */
22
+ export interface AssessedControlRow {
23
+ readonly source: {
24
+ readonly sourceRef: string;
25
+ };
26
+ readonly requirementRef: string;
27
+ readonly objective: AssessmentTwinObjective;
28
+ readonly answer: AssuranceSourceRequirementAnswer;
29
+ }
30
+ /** The SP 800-53 row slug a twin assesses, or `undefined` when the slug is not a twin's. */
31
+ export declare function assessedControlRefOf(twinRequirementRef: string): string | undefined;
32
+ /**
33
+ * The grade a twin carries: its control row's `answer`. Throws when the slug is not a twin's, when no SP 800-53 row has
34
+ * the twinned slug, or when that row answers another objective or another version of it, because each of those is a twin
35
+ * of nothing and a basis that composed it would grade a requirement nobody reviewed.
36
+ */
37
+ export declare function resolveAssessmentTwinAnswer(twin: AssessmentTwin, controls: readonly AssessedControlRow[]): AssuranceSourceRequirementAnswer;
38
+ //# sourceMappingURL=assurance-assessment-twins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assurance-assessment-twins.d.ts","sourceRoot":"","sources":["../../../../src/assurance/assurance-assessment-twins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAEpF;;;;;;;GAOG;AAEH,0DAA0D;AAC1D,eAAO,MAAM,2BAA2B,8CAA8C,CAAC;AAKvF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC;AAED,gGAAgG;AAChG,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;CAC7C;AAED,wHAAwH;AACxH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,gCAAgC,CAAC;CACnD;AAED,4FAA4F;AAC5F,wBAAgB,oBAAoB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGnF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GAAG,gCAAgC,CAY3I"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * How an SP 800-53A assessment-procedure row gets its grade (#2956, moved here in its review, L1).
3
+ *
4
+ * SP 800-53A's procedure for a control assesses that control and nothing else, so a procedure row answers exactly as much
5
+ * of its requirement as the SP 800-53 row of the same control answers of its own: the twin carries the control's grade by
6
+ * construction instead of a second grade a reviewer could let drift. A module of its own, which no `*.exports.ts`
7
+ * re-exports, so its refusals can be tested on planted twins without composing a basis.
8
+ */
9
+ /** The source of the controls an SP 800-53A row twins. */
10
+ export const ASSESSED_CONTROL_SOURCE_REF = "source:nist-sp-800-53-rev-5-release-5.2.0";
11
+ /** The slug shape of an SP 800-53A procedure row, `nist-800-53a-<x>-assessment`, whose control is `nist-800-53-<x>`. */
12
+ const ASSESSMENT_TWIN_SLUG = /^source-requirement:nist-800-53a-(.+)-assessment$/u;
13
+ /** The SP 800-53 row slug a twin assesses, or `undefined` when the slug is not a twin's. */
14
+ export function assessedControlRefOf(twinRequirementRef) {
15
+ const match = ASSESSMENT_TWIN_SLUG.exec(twinRequirementRef);
16
+ return match ? `source-requirement:nist-800-53-${match[1]}` : undefined;
17
+ }
18
+ /**
19
+ * The grade a twin carries: its control row's `answer`. Throws when the slug is not a twin's, when no SP 800-53 row has
20
+ * the twinned slug, or when that row answers another objective or another version of it, because each of those is a twin
21
+ * of nothing and a basis that composed it would grade a requirement nobody reviewed.
22
+ */
23
+ export function resolveAssessmentTwinAnswer(twin, controls) {
24
+ const controlRef = assessedControlRefOf(twin.requirementRef);
25
+ if (controlRef === undefined)
26
+ throw new Error(`${twin.requirementRef} is not an SP 800-53A procedure row (nist-800-53a-<control>-assessment).`);
27
+ const control = controls.find((row) => row.source.sourceRef === ASSESSED_CONTROL_SOURCE_REF && row.requirementRef === controlRef);
28
+ if (!control)
29
+ throw new Error(`The SP 800-53A row ${twin.requirementRef} twins no SP 800-53 row (${controlRef}).`);
30
+ if (control.objective.objectiveRef !== twin.objective.objectiveRef || control.objective.objectiveVersion !== twin.objective.objectiveVersion) {
31
+ throw new Error(`The SP 800-53A row ${twin.requirementRef} names ${twin.objective.objectiveRef}@${twin.objective.objectiveVersion}, and its control ${controlRef} `
32
+ + `answers ${control.objective.objectiveRef}@${control.objective.objectiveVersion}.`);
33
+ }
34
+ return control.answer;
35
+ }
36
+ //# sourceMappingURL=assurance-assessment-twins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assurance-assessment-twins.js","sourceRoot":"","sources":["../../../../src/assurance/assurance-assessment-twins.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,0DAA0D;AAC1D,MAAM,CAAC,MAAM,2BAA2B,GAAG,2CAA2C,CAAC;AAEvF,wHAAwH;AACxH,MAAM,oBAAoB,GAAG,oDAAoD,CAAC;AAqBlF,4FAA4F;AAC5F,MAAM,UAAU,oBAAoB,CAAC,kBAA0B;IAC7D,MAAM,KAAK,GAAG,oBAAoB,CAAC,IA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procedure row gets its grade (#2956, moved here in its review, L1).\n *\n * SP 800-53A's procedure for a control assesses that control and nothing else, so a procedure row answers exactly as much\n * of its requirement as the SP 800-53 row of the same control answers of its own: the twin carries the control's grade by\n * construction instead of a second grade a reviewer could let drift. A module of its own, which no `*.exports.ts`\n * re-exports, so its refusals can be tested on planted twins without composing a basis.\n */\n\n/** The source of the controls an SP 800-53A row twins. */\nexport const ASSESSED_CONTROL_SOURCE_REF = \"source:nist-sp-800-53-rev-5-release-5.2.0\";\n\n/** The slug shape of an SP 800-53A procedure row, `nist-800-53a-<x>-assessment`, whose control is `nist-800-53-<x>`. */\nconst ASSESSMENT_TWIN_SLUG = /^source-requirement:nist-800-53a-(.+)-assessment$/u;\n\nexport interface AssessmentTwinObjective {\n readonly objectiveRef: string;\n readonly objectiveVersion: number;\n}\n\n/** An SP 800-53A row before it is graded: its slug and the objective it is reviewed against. */\nexport interface AssessmentTwin {\n readonly requirementRef: string;\n readonly objective: AssessmentTwinObjective;\n}\n\n/** A reviewed row a twin may resolve to: only an SP 800-53 row of the same control and the same objective qualifies. */\nexport interface AssessedControlRow {\n readonly source: { readonly sourceRef: string };\n readonly requirementRef: string;\n readonly objective: AssessmentTwinObjective;\n readonly answer: AssuranceSourceRequirementAnswer;\n}\n\n/** The SP 800-53 row slug a twin assesses, or `undefined` when the slug is not a twin's. */\nexport function assessedControlRefOf(twinRequirementRef: string): string | undefined {\n const match = ASSESSMENT_TWIN_SLUG.exec(twinRequirementRef);\n return match ? `source-requirement:nist-800-53-${match[1]}` : undefined;\n}\n\n/**\n * The grade a twin carries: its control row's `answer`. Throws when the slug is not a twin's, when no SP 800-53 row has\n * the twinned slug, or when that row answers another objective or another version of it, because each of those is a twin\n * of nothing and a basis that composed it would grade a requirement nobody reviewed.\n */\nexport function resolveAssessmentTwinAnswer(twin: AssessmentTwin, controls: readonly AssessedControlRow[]): AssuranceSourceRequirementAnswer {\n const controlRef = assessedControlRefOf(twin.requirementRef);\n if (controlRef === undefined) throw new Error(`${twin.requirementRef} is not an SP 800-53A procedure row (nist-800-53a-<control>-assessment).`);\n const control = controls.find((row) => row.source.sourceRef === ASSESSED_CONTROL_SOURCE_REF && row.requirementRef === controlRef);\n if (!control) throw new Error(`The SP 800-53A row ${twin.requirementRef} twins no SP 800-53 row (${controlRef}).`);\n if (control.objective.objectiveRef !== twin.objective.objectiveRef || control.objective.objectiveVersion !== twin.objective.objectiveVersion) {\n throw new Error(\n `The SP 800-53A row ${twin.requirementRef} names ${twin.objective.objectiveRef}@${twin.objective.objectiveVersion}, and its control ${controlRef} `\n + `answers ${control.objective.objectiveRef}@${control.objective.objectiveVersion}.`,\n );\n }\n return control.answer;\n}\n"]}