@wildo-ai/saas-specifications 1.1.10 → 1.1.12

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 (1329) 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-validation.d.ts +5 -0
  7. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -1
  8. package/dist/esm/_core/application-maturity/application-maturity-validation.js +13 -0
  9. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
  10. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -1
  11. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +5 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -1
  13. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +34 -40
  14. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -1
  15. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +26 -2
  16. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  17. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +20 -0
  18. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  19. package/dist/esm/_core/application-specification-family-identity.schemas.js +20 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  21. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +1 -1
  22. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
  23. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +4 -4
  24. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -4
  25. package/dist/esm/_core/brand/brand-audience.schemas.d.ts +2 -2
  26. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +2 -2
  27. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +8 -4
  28. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-generation.schemas.js +11 -1
  30. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  31. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +4 -4
  32. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +25 -22
  33. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +6 -4
  35. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  36. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +25 -1
  37. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  38. package/dist/esm/_core/brand/brand-name-screening-validation.js +77 -1
  39. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  40. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +34 -32
  41. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  42. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +67 -35
  43. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/brand/brand-name-screening.schemas.js +65 -8
  45. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  46. package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
  47. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +14 -14
  48. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +27 -9
  49. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  51. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  52. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts +52 -0
  53. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts.map +1 -0
  54. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js +325 -0
  55. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js.map +1 -0
  56. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +225 -108
  57. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +39 -2
  59. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  60. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +112 -8
  61. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  62. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +249 -12
  63. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  64. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +506 -344
  65. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +425 -13
  67. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  68. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  69. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +11 -4
  70. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  71. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +2 -2
  72. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +5 -21
  73. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  74. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +16 -6
  75. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  76. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +12 -5
  77. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  78. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +32 -9
  79. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  80. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +30 -5
  81. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  82. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js +28 -2
  83. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js.map +1 -1
  84. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +6 -5
  85. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  86. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +19 -9
  87. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  88. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +12 -33
  89. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  90. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  91. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  92. package/dist/esm/_core/chart-view-specification.schemas.d.ts +19 -3
  93. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  94. package/dist/esm/_core/chart-view-specification.schemas.js +7 -3
  95. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  96. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  97. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  98. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  99. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  100. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +0 -298
  101. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +1 -6
  103. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -1
  104. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +3 -619
  105. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  106. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +14 -2
  107. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  108. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +1 -1
  109. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +60 -7
  110. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +137 -12
  112. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  113. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts +0 -32
  114. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  115. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +2 -2
  116. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  117. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +50 -12
  118. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +166 -13
  120. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  121. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +35 -148
  122. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  124. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  125. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  126. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  127. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  128. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  129. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  130. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  132. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  133. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +2 -24
  134. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  135. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +18 -2
  136. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  137. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +4 -0
  138. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -1
  139. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +6 -0
  140. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -1
  141. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  142. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  143. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  144. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  145. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts +26 -0
  146. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts.map +1 -0
  147. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js +44 -0
  148. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js.map +1 -0
  149. package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts +34 -0
  150. package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts.map +1 -0
  151. package/dist/esm/_core/compliance-posture/compliance-posture-validation.js +47 -0
  152. package/dist/esm/_core/compliance-posture/compliance-posture-validation.js.map +1 -0
  153. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts +4 -0
  154. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts.map +1 -0
  155. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js +19 -0
  156. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js.map +1 -0
  157. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts +88 -0
  158. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts.map +1 -0
  159. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js +78 -0
  160. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js.map +1 -0
  161. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/composite-view-specification.schemas.js +2 -2
  163. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/data-seed-specification.schemas.d.ts +2 -0
  165. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  166. package/dist/esm/_core/data-seed-specification.schemas.js +10 -1
  167. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  168. package/dist/esm/_core/definition-specification-validators.d.ts +2 -3
  169. package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
  170. package/dist/esm/_core/definition-specification-validators.js +2 -3
  171. package/dist/esm/_core/definition-specification-validators.js.map +1 -1
  172. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +44 -19
  173. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  174. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +75 -2
  175. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  176. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +93 -1
  177. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  178. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +369 -2
  179. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  180. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +412 -5
  181. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  182. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +429 -0
  183. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  184. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +18 -1
  185. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  186. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +88 -2
  187. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  188. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  189. package/dist/esm/_core/execution-view-specification.schemas.js +2 -2
  190. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  191. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +20 -9
  192. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  193. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +3 -0
  194. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  195. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +25 -1
  196. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  197. package/dist/esm/_core/experience-plan/experience-plan-validation.js +57 -0
  198. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  199. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  200. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +23 -4
  201. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  202. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +96 -131
  203. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  204. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +144 -1
  205. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  206. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +2 -2
  207. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +15 -8
  208. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  209. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  210. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  211. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  212. package/dist/esm/_core/family-aspects.registry.js +4 -0
  213. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  214. package/dist/esm/_core/family-aspects.schemas.d.ts +12 -1
  215. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  216. package/dist/esm/_core/family-aspects.schemas.js +11 -0
  217. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  218. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +37 -53
  219. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
  220. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
  221. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +0 -14
  222. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  223. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  224. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  225. package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
  226. package/dist/esm/_core/feature-specification.schemas.js +5 -4
  227. package/dist/esm/_core/feature-specification.schemas.js.map +1 -1
  228. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  229. package/dist/esm/_core/flows-actors-view-specification.schemas.js +2 -2
  230. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  231. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  232. package/dist/esm/_core/full-custom-view-specification.schemas.js +2 -2
  233. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  234. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +1 -3
  235. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  236. package/dist/esm/_core/guidance-flow-specification.schemas.js +10 -12
  237. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  238. package/dist/esm/_core/index.d.ts +12 -0
  239. package/dist/esm/_core/index.d.ts.map +1 -1
  240. package/dist/esm/_core/index.js +12 -0
  241. package/dist/esm/_core/index.js.map +1 -1
  242. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +8 -4
  243. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  244. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  245. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  246. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  247. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +19 -51
  248. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  249. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +29 -10
  250. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  251. package/dist/esm/_core/market/feature-benefit.schemas.d.ts +5 -5
  252. package/dist/esm/_core/market/market-alternative.schemas.d.ts +3 -3
  253. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +2 -2
  254. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +4 -4
  255. package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
  256. package/dist/esm/_core/market/market-channel.schemas.d.ts +5 -5
  257. package/dist/esm/_core/market/market-gain.schemas.d.ts +3 -3
  258. package/dist/esm/_core/market/market-icp.schemas.d.ts +11 -11
  259. package/dist/esm/_core/market/market-job.schemas.d.ts +3 -3
  260. package/dist/esm/_core/market/market-message-template.schemas.d.ts +4 -4
  261. package/dist/esm/_core/market/market-objection.schemas.d.ts +3 -3
  262. package/dist/esm/_core/market/market-pain.schemas.d.ts +3 -3
  263. package/dist/esm/_core/market/market-persona.schemas.d.ts +4 -4
  264. package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
  265. package/dist/esm/_core/market/market-proof.schemas.d.ts +3 -3
  266. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  267. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  268. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  269. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  270. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +80 -106
  271. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  272. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  273. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  274. package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
  275. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +3 -3
  276. package/dist/esm/_core/market/market-trigger.schemas.d.ts +3 -3
  277. package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
  278. package/dist/esm/_core/milestone-specification.schemas.js +5 -4
  279. package/dist/esm/_core/milestone-specification.schemas.js.map +1 -1
  280. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +0 -2
  281. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  282. package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -8
  283. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  284. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +32 -27
  285. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  286. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +3 -3
  287. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  288. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -2
  289. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  290. package/dist/esm/_core/placement-plan/placement-plan-validation.js +42 -9
  291. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  292. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  293. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +16 -4
  294. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  295. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +84 -90
  296. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  297. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +90 -13
  298. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  299. package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
  300. package/dist/esm/_core/product-specification.schemas.js +5 -4
  301. package/dist/esm/_core/product-specification.schemas.js.map +1 -1
  302. package/dist/esm/_core/required-features-specification.schemas.d.ts +1 -5
  303. package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
  304. package/dist/esm/_core/required-features-specification.schemas.js +1 -5
  305. package/dist/esm/_core/required-features-specification.schemas.js.map +1 -1
  306. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
  307. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +6 -6
  308. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +4 -4
  309. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  310. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +2 -2
  311. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +0 -4
  312. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  313. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +6 -15
  314. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  315. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +2 -3
  316. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  317. package/dist/esm/_core/resource-specification.schemas.d.ts +76 -18
  318. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  319. package/dist/esm/_core/resource-specification.schemas.js +168 -60
  320. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  321. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +2 -2
  322. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +3 -18
  323. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  324. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  325. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  326. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  327. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  328. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  329. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  330. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +3 -3
  331. package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
  332. package/dist/esm/_core/role-specification.schemas.js +5 -4
  333. package/dist/esm/_core/role-specification.schemas.js.map +1 -1
  334. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  335. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  336. package/dist/esm/_core/service-method/service-method-derivation.js +415 -0
  337. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  338. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +87 -0
  339. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  340. package/dist/esm/_core/service-method/service-method-generation.schemas.js +30 -0
  341. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  342. package/dist/esm/_core/service-method/service-method-validation.d.ts +45 -0
  343. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  344. package/dist/esm/_core/service-method/service-method-validation.js +102 -0
  345. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  346. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  347. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  348. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  349. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  350. package/dist/esm/_core/service-method/service-method.schemas.d.ts +356 -0
  351. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  352. package/dist/esm/_core/service-method/service-method.schemas.js +416 -0
  353. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  354. package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
  355. package/dist/esm/_core/sidebar-section-specification.schemas.js +2 -2
  356. package/dist/esm/_core/sidebar-section-specification.schemas.js.map +1 -1
  357. package/dist/esm/_core/specification-definition-faults.d.ts +160 -0
  358. package/dist/esm/_core/specification-definition-faults.d.ts.map +1 -0
  359. package/dist/esm/_core/specification-definition-faults.js +283 -0
  360. package/dist/esm/_core/specification-definition-faults.js.map +1 -0
  361. package/dist/esm/_core/specification-module-faults.d.ts +271 -0
  362. package/dist/esm/_core/specification-module-faults.d.ts.map +1 -0
  363. package/dist/esm/_core/specification-module-faults.js +655 -0
  364. package/dist/esm/_core/specification-module-faults.js.map +1 -0
  365. package/dist/esm/_core/translation-glossary.schemas.d.ts +79 -0
  366. package/dist/esm/_core/translation-glossary.schemas.d.ts.map +1 -0
  367. package/dist/esm/_core/translation-glossary.schemas.js +98 -0
  368. package/dist/esm/_core/translation-glossary.schemas.js.map +1 -0
  369. package/dist/esm/_core/utils/extract-field-specs.d.ts +25 -0
  370. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  371. package/dist/esm/_core/utils/extract-field-specs.js +6 -1
  372. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  373. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +2 -2
  374. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +6 -4
  375. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
  376. package/dist/esm/_core/vision/vision-constraint.schemas.js +4 -2
  377. package/dist/esm/_core/vision/vision-constraint.schemas.js.map +1 -1
  378. package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
  379. package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
  380. package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
  381. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts +15 -9
  382. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  383. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +30 -20
  384. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  385. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
  386. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
  387. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +31 -7
  388. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  389. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  390. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  391. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +24 -4
  392. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  393. package/dist/esm/_core/website-plan/website-plan-validation.js +84 -7
  394. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  395. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  396. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +2 -1
  397. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  398. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +424 -120
  399. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  400. package/dist/esm/_core/website-plan/website-plan.schemas.js +687 -32
  401. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  402. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +90 -0
  403. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  404. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +104 -0
  405. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  406. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +110 -127
  407. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  408. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +122 -16
  409. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  410. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts +22 -0
  411. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts.map +1 -0
  412. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js +23 -0
  413. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js.map +1 -0
  414. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts +50 -0
  415. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts.map +1 -0
  416. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js +33 -0
  417. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js.map +1 -0
  418. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +57 -41
  419. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  420. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  421. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  422. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -11
  423. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  424. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +206 -10
  425. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  426. package/dist/esm/application-creation/application-line.application-creation.schemas.js +226 -9
  427. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  428. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  429. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  430. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  431. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  432. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +42 -41
  433. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  434. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +79 -23
  435. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  436. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -2
  437. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  438. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  439. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  440. package/dist/esm/application-creation.exports.d.ts +13 -0
  441. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  442. package/dist/esm/application-creation.exports.js +15 -0
  443. package/dist/esm/application-creation.exports.js.map +1 -1
  444. package/dist/esm/assurance/application-document-publication.schemas.d.ts +0 -12
  445. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  446. package/dist/esm/assurance/application-document-release-set.schemas.d.ts +1 -9
  447. package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -1
  448. package/dist/esm/assurance/application-risk-register.schemas.d.ts +10 -73
  449. package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -1
  450. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +34 -0
  451. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  452. package/dist/esm/assurance/application-risk-signals.derivations.js +45 -1
  453. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  454. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  455. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  456. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  457. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  458. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +632 -19
  459. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  460. package/dist/esm/assurance/assurance-authority-basis.definitions.js +3000 -1063
  461. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  462. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +27 -22
  463. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  464. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  465. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  466. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  467. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  468. package/dist/esm/assurance/assurance-document-system.definitions.js +168 -29
  469. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  470. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +34 -112
  471. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  472. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  473. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  474. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +121 -114
  475. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  476. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +142 -7
  477. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  478. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  479. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1746 -116
  480. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  481. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +0 -11
  482. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  483. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  484. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  485. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  486. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  487. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  488. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  489. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +354 -5
  490. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  491. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  492. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  493. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  494. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  495. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +422 -0
  496. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  497. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +886 -0
  498. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  499. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +61 -182
  500. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  501. package/dist/esm/assurance/assurance-program-generation.schemas.js +180 -22
  502. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  503. package/dist/esm/assurance/assurance-program-obligation-standing.d.ts +107 -0
  504. package/dist/esm/assurance/assurance-program-obligation-standing.d.ts.map +1 -0
  505. package/dist/esm/assurance/assurance-program-obligation-standing.js +153 -0
  506. package/dist/esm/assurance/assurance-program-obligation-standing.js.map +1 -0
  507. package/dist/esm/assurance/assurance-program.schemas.d.ts +373 -1165
  508. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  509. package/dist/esm/assurance/assurance-program.schemas.js +267 -18
  510. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  511. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  512. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  513. package/dist/esm/assurance/assurance-source-registry.definitions.js +277 -23
  514. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  515. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  516. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  517. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +246 -0
  518. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  519. package/dist/esm/assurance/assurance-sources.schemas.d.ts +84 -24
  520. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  521. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  522. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  523. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  524. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +372 -17
  525. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  526. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  527. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  528. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  529. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  530. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  531. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  532. package/dist/esm/assurance/governed-document-release.js +10 -4
  533. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  534. package/dist/esm/assurance.exports.d.ts +5 -0
  535. package/dist/esm/assurance.exports.d.ts.map +1 -1
  536. package/dist/esm/assurance.exports.js +5 -0
  537. package/dist/esm/assurance.exports.js.map +1 -1
  538. package/dist/esm/companion-exports.d.ts +39 -3
  539. package/dist/esm/companion-exports.d.ts.map +1 -1
  540. package/dist/esm/companion-exports.js +61 -0
  541. package/dist/esm/companion-exports.js.map +1 -1
  542. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +16 -16
  543. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  544. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +37 -11
  545. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  546. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +3 -3
  547. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  548. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +10 -13
  549. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  550. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +19 -19
  551. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  552. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +64 -12
  553. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  554. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts +4 -4
  555. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  556. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  557. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +7 -6
  558. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  559. package/dist/esm/engine/applications/resources/applications.resource.specification.js +7 -7
  560. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  561. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +20 -12
  562. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  563. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +51 -14
  564. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  565. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts +26 -0
  566. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts.map +1 -0
  567. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js +112 -0
  568. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js.map +1 -0
  569. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +4 -4
  570. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/auth/resources/index.d.ts +0 -2
  572. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  573. package/dist/esm/engine/auth/resources/index.js +0 -2
  574. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  575. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +13 -12
  576. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  577. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  578. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  579. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +16 -16
  580. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +44 -17
  582. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +20 -20
  584. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +48 -9
  586. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  587. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +25 -21
  588. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +44 -12
  590. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  591. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +20 -14
  592. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +73 -20
  594. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  595. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +22 -22
  596. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +15 -14
  598. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  599. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +9 -8
  600. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +20 -16
  602. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  603. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +40 -40
  604. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +135 -16
  606. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  607. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +108 -108
  608. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +80 -20
  610. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts +17 -0
  612. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts.map +1 -0
  613. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js +85 -0
  614. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js.map +1 -0
  615. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +21 -19
  616. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  617. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +14 -10
  618. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  619. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +14 -12
  620. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -2
  622. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  623. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +20 -20
  624. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +1 -1
  625. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  626. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +22 -20
  627. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  628. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +9 -8
  629. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  630. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +8 -8
  631. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  632. package/dist/esm/engine/billing/resources/prices.resource.specification.js +11 -10
  633. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  634. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +16 -16
  635. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  636. package/dist/esm/engine/billing/resources/products.resource.specification.js +11 -10
  637. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  638. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts +11 -11
  639. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +31 -29
  641. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  642. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +22 -21
  643. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  644. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -6
  645. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  646. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +48 -48
  647. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  648. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +112 -26
  649. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  650. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +30 -26
  651. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  652. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +5 -2
  653. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  654. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +37 -25
  655. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +50 -12
  657. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  658. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +78 -0
  659. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  660. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +213 -0
  661. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  662. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +33 -23
  663. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  664. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +61 -21
  665. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  666. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts +39 -0
  667. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts.map +1 -0
  668. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js +533 -0
  669. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map +1 -0
  670. package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
  671. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  672. package/dist/esm/engine/compliance/resources/index.js +2 -0
  673. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  674. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +21 -16
  675. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  676. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +17 -6
  677. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  678. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  679. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  680. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  681. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  682. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +13 -11
  683. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -1
  684. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +9 -1
  685. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  686. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts +27 -0
  687. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -0
  688. package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-dlq.resource.specification.js +24 -19
  689. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map +1 -0
  690. package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
  691. package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.js +1 -1
  692. package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
  693. package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.d.ts +18 -18
  694. package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.d.ts.map +1 -0
  695. package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.js +2 -2
  696. package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.js.map +1 -0
  697. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts +45 -0
  698. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts.map +1 -0
  699. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js +224 -0
  700. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js.map +1 -0
  701. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +1 -1
  702. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -1
  703. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +3 -2
  704. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -1
  705. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  706. package/dist/esm/engine/engine-resource-specifications.registry.js +82 -20
  707. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  708. package/dist/esm/engine/engine-resource-sub-domain.d.ts +7 -3
  709. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
  710. package/dist/esm/engine/engine-resource-sub-domain.js +8 -4
  711. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
  712. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  713. package/dist/esm/engine/errors/error-messages.specification.js +359 -5
  714. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  715. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  716. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  717. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  718. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  719. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  720. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  721. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  722. package/dist/esm/engine/features/index.d.ts +4 -2
  723. package/dist/esm/engine/features/index.d.ts.map +1 -1
  724. package/dist/esm/engine/features/index.js +6 -4
  725. package/dist/esm/engine/features/index.js.map +1 -1
  726. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js +1 -1
  727. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js.map +1 -1
  728. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +7 -7
  729. package/dist/esm/engine/features/resources/application-features.resource.specification.js +8 -8
  730. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  731. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +7 -7
  732. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +37 -18
  734. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +7 -7
  736. package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -4
  737. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +27 -24
  739. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  740. package/dist/esm/engine/files/resources/files.resource.specification.js +30 -8
  741. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  742. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +30 -30
  743. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  744. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +32 -4
  745. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  746. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +18 -18
  747. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +7 -7
  748. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  749. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  750. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  751. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  752. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  753. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  754. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  755. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  756. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  757. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  758. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  759. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  760. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  761. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  762. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  764. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  767. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  768. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  769. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  770. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +97 -0
  771. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  772. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  773. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  774. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  775. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  776. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +229 -178
  777. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  778. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +126 -22
  779. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +60 -54
  781. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +23 -8
  783. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  785. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  786. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  787. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  788. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  789. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  790. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  791. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  792. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  793. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  794. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  795. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  796. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  797. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  798. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  799. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  800. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +240 -0
  801. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  802. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  803. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  804. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  805. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  806. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  807. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  808. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  809. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  810. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  811. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  812. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  813. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  814. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  815. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  816. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  817. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  818. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +9 -3
  819. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  820. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  821. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  822. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  823. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  824. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  825. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  826. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  827. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  828. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  829. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  830. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  831. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  832. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  833. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  834. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  835. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  836. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  837. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  838. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  839. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  840. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  841. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  842. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  843. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  844. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  845. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  846. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +7 -5
  847. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  848. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +1 -1
  849. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -1
  850. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  851. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  852. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  853. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  855. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  856. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  857. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  858. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  859. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  860. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  861. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  862. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +3 -2
  864. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -1
  865. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js +1 -1
  866. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js.map +1 -1
  867. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js +1 -1
  868. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js.map +1 -1
  869. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.js +1 -1
  870. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.js.map +1 -1
  871. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  872. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  873. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  874. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +3 -3
  875. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
  876. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  878. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  879. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  880. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  881. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  882. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  883. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  884. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  885. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  886. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  887. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  888. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  889. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  890. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  891. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  892. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  893. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  894. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  895. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  896. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  897. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  898. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  899. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  900. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  901. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  902. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  903. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  904. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  905. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  906. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  907. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  908. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  909. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  910. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
  911. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.js +1 -0
  912. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.js.map +1 -1
  913. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
  914. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.js +3 -0
  915. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.js.map +1 -1
  916. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  917. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  918. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
  919. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +4 -1
  920. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  921. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
  922. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +4 -1
  923. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  924. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
  925. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +4 -1
  926. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  927. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
  928. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +4 -1
  929. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  930. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
  931. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.js +3 -0
  932. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.js.map +1 -1
  933. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
  934. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +4 -1
  935. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  936. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
  937. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.js +3 -0
  938. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.js.map +1 -1
  939. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
  940. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.js +1 -0
  941. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.js.map +1 -1
  942. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  943. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  944. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
  945. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.js +1 -0
  946. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.js.map +1 -1
  947. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
  948. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.js +1 -0
  949. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.js.map +1 -1
  950. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  951. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  952. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  953. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  954. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
  955. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.js +3 -0
  956. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.js.map +1 -1
  957. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
  958. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.js +3 -0
  959. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.js.map +1 -1
  960. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
  961. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.js +3 -0
  962. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.js.map +1 -1
  963. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
  964. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.js +3 -0
  965. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.js.map +1 -1
  966. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  967. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  968. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js +1 -1
  969. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js.map +1 -1
  970. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  971. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  972. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  973. package/dist/esm/engine/frontend-components/index.d.ts +6 -0
  974. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  975. package/dist/esm/engine/frontend-components/index.js +26 -0
  976. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  977. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  978. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  979. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  980. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  981. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  982. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  983. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  984. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
  985. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +12 -0
  986. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  987. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js +1 -1
  988. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js.map +1 -1
  989. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  990. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  991. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
  992. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +7 -3
  993. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  994. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js +1 -1
  995. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js.map +1 -1
  996. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
  997. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.js +1 -0
  998. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.js.map +1 -1
  999. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  1000. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  1001. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  1002. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  1003. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  1004. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +5 -3
  1005. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  1006. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +16 -14
  1007. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  1008. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  1009. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  1010. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +18 -16
  1011. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  1012. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +20 -18
  1013. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  1014. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  1015. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  1016. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  1017. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  1018. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  1019. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  1020. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  1021. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  1022. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  1023. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  1024. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  1025. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  1026. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  1027. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  1028. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  1029. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  1030. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  1031. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  1032. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  1033. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  1034. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  1035. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  1036. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  1037. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  1038. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  1039. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  1040. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  1041. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  1042. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  1043. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  1044. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  1045. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts +10 -0
  1046. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts.map +1 -0
  1047. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js +155 -0
  1048. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js.map +1 -0
  1049. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts +9 -0
  1050. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts.map +1 -0
  1051. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js +155 -0
  1052. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js.map +1 -0
  1053. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +37 -19
  1054. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  1055. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +14 -14
  1056. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  1057. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  1058. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  1059. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  1060. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  1061. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  1062. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +15 -15
  1063. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  1064. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +45 -16
  1065. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  1066. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  1067. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  1068. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  1069. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  1070. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  1071. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  1072. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +183 -0
  1073. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  1074. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +52 -50
  1075. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -1
  1076. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +18 -10
  1077. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  1078. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +86 -53
  1079. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  1080. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +78 -17
  1081. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  1082. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +85 -83
  1083. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  1084. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +59 -55
  1085. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  1086. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +30 -26
  1087. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  1088. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +38 -20
  1089. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  1090. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +12 -14
  1091. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  1092. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +0 -2
  1093. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  1094. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts +56 -0
  1095. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts.map +1 -0
  1096. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js +277 -0
  1097. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js.map +1 -0
  1098. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +20 -16
  1099. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  1100. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +13 -8
  1101. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  1102. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  1103. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  1104. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  1105. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  1106. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  1107. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  1108. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  1109. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  1110. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  1111. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  1112. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  1113. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  1114. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  1115. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  1116. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  1117. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  1118. package/dist/esm/engine/organizations/resources/index.js +1 -2
  1119. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  1120. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts +33 -0
  1121. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts.map +1 -0
  1122. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js +195 -0
  1123. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js.map +1 -0
  1124. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +19 -18
  1125. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  1126. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +129 -64
  1127. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  1128. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts +7 -7
  1129. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  1130. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -1
  1131. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  1132. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts +13 -13
  1133. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +12 -11
  1134. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  1135. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  1136. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  1137. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts +128 -0
  1138. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  1139. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +653 -0
  1140. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  1141. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +9 -9
  1142. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  1143. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +15 -17
  1144. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  1145. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +14 -14
  1146. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  1147. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +5 -5
  1148. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  1149. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +18 -13
  1150. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  1151. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +111 -43
  1152. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  1153. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  1154. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  1155. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  1156. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  1157. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  1158. package/dist/esm/engine/providers/anthropic.provider.specification.js +18 -3
  1159. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  1160. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  1161. package/dist/esm/engine/providers/apple.provider.specification.js +6 -2
  1162. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  1163. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  1164. package/dist/esm/engine/providers/github.provider.specification.js +18 -7
  1165. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  1166. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  1167. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  1168. package/dist/esm/engine/providers/google-drive.provider.specification.js +48 -0
  1169. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  1170. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -1
  1171. package/dist/esm/engine/providers/google-places.provider.specification.js +5 -2
  1172. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -1
  1173. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  1174. package/dist/esm/engine/providers/google.provider.specification.js +8 -2
  1175. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  1176. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  1177. package/dist/esm/engine/providers/grok.provider.specification.js +14 -3
  1178. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  1179. package/dist/esm/engine/providers/index.d.ts +2 -0
  1180. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  1181. package/dist/esm/engine/providers/index.js +5 -1
  1182. package/dist/esm/engine/providers/index.js.map +1 -1
  1183. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  1184. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  1185. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +55 -0
  1186. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  1187. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  1188. package/dist/esm/engine/providers/microsoft.provider.specification.js +26 -3
  1189. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  1190. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  1191. package/dist/esm/engine/providers/mistral.provider.specification.js +20 -5
  1192. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  1193. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  1194. package/dist/esm/engine/providers/openai.provider.specification.js +30 -3
  1195. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  1196. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  1197. package/dist/esm/engine/providers/perplexity.provider.specification.js +13 -2
  1198. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  1199. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -1
  1200. package/dist/esm/engine/providers/recaptcha.provider.specification.js +8 -3
  1201. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -1
  1202. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  1203. package/dist/esm/engine/providers/resend.provider.specification.js +27 -10
  1204. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  1205. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  1206. package/dist/esm/engine/providers/stripe.provider.specification.js +19 -3
  1207. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  1208. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  1209. package/dist/esm/engine/providers/twilio.provider.specification.js +21 -6
  1210. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  1211. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  1212. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  1213. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts +2 -0
  1214. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts.map +1 -0
  1215. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js +21 -0
  1216. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js.map +1 -0
  1217. package/dist/esm/engine/roles/index.d.ts +8 -7
  1218. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  1219. package/dist/esm/engine/roles/index.js +13 -10
  1220. package/dist/esm/engine/roles/index.js.map +1 -1
  1221. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  1222. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  1223. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  1224. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  1225. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  1226. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  1227. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  1228. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  1229. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts +2 -0
  1230. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts.map +1 -0
  1231. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js +21 -0
  1232. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js.map +1 -0
  1233. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +13 -12
  1234. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  1235. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  1236. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  1237. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +12 -12
  1238. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  1239. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +4 -3
  1240. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  1241. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -3
  1242. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  1243. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +15 -15
  1244. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  1245. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  1246. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +17 -17
  1247. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  1248. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  1249. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  1250. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -0
  1251. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  1252. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +4 -0
  1253. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  1254. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +25 -20
  1255. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  1256. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +8 -8
  1257. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  1258. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +8 -8
  1259. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +3 -3
  1260. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  1261. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +25 -20
  1262. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  1263. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +7 -2
  1264. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  1265. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +8 -8
  1266. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +2 -2
  1267. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  1268. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +11 -9
  1269. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  1270. package/dist/esm/engine/users/resources/user-self.resource.specification.js +46 -7
  1271. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  1272. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts +3 -0
  1273. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
  1274. package/dist/esm/engine/users/resources/users-api-reference.examples.js +3 -0
  1275. package/dist/esm/engine/users/resources/users-api-reference.examples.js.map +1 -1
  1276. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +12 -10
  1277. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  1278. package/dist/esm/engine/users/resources/users.resource.specification.js +26 -15
  1279. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  1280. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +63 -29
  1281. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -1
  1282. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +75 -11
  1283. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -1
  1284. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +2 -2
  1285. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +2 -30
  1286. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -1
  1287. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +2 -2
  1288. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -1
  1289. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  1290. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +51 -24
  1291. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  1292. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts +0 -31
  1293. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
  1294. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts +0 -11
  1295. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
  1296. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts +0 -20
  1297. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
  1298. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts +0 -3
  1299. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
  1300. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts +0 -24
  1301. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
  1302. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +0 -12
  1303. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  1304. package/dist/tsconfig.build.tsbuildinfo +1 -1
  1305. package/package.json +11 -11
  1306. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts +0 -35
  1307. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +0 -1
  1308. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +0 -1
  1309. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +0 -1
  1310. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +0 -1
  1311. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +0 -1
  1312. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +0 -1
  1313. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  1314. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  1315. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  1316. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  1317. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  1318. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  1319. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  1320. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  1321. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +0 -106
  1322. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  1323. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  1324. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  1325. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  1326. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  1327. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  1328. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
  1329. /package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-config.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/resources/webhook-config.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,GAClC,MAAM,u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AA8F;oBACvG,SAAS,EAAE,0DAA0D;oBACrE,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,4FAA4F,EAAE;qBACjH;iBACF;gBACD,YAAY,EAAE;oBACZ,OAAO,EAAE,oGAAoG;oBAC7G,SAAS,EAAE,4DAA4D;oBACvE,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE;qBAClE;iBACF;aACF;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,8CAA8C,GAAG,+BAA+B,CAC3F,gBAAgB,CAAC,2BAA2B,EAC5C,6BAA6B,CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,6CAA6C,GAAG,+BAA+B,CAC1F,gBAAgB,CAAC,0BAA0B,EAC3C,4BAA4B,CAC7B,CAAC","sourcesContent":["/**\n * Resources: `organizationWebhookConfig` + `applicationWebhookConfig` — Wildo SaaS engine specification (backend-only).\n *\n * Polymorphic ORG + APP pair sharing `WebhookConfigBaseSchema` and `webhookConfigPolymorphicFactories` (one spec export per\n * `CoreResourceType`, single authoring file, SSO-style split exports).\n *\n * Inputs:\n * - Base schema: engine/saas-models/src/notifications/m2m/webhook-config.shared.schemas.ts → `WebhookConfigBaseSchema`\n * - Polymorphic map: `webhookConfigPolymorphicFactories` (same file family as\n * `webhook-config.shared.resources-config.schemas.ts`)\n * - Custom operations: `WebhookConfig_Operations` (`testEndpoint` synthetic delivery)\n * - UI presets: `webhooksMainPresets` / `webhooksAdminPresets`\n * (engine/presets-components/src/config/resources/webhooks.resource-presets.tsx) —\n * sectioned READ layout (`status` / `endpoints` / `verification`), surfaced in the\n * org Settings Hub `webhooks` section. The spec is frontend-configured (mirrors the\n * SIEM config): the `frontend.layout.sections` documented below MUST equal the\n * preset's `layout.refs.sections` — `validateStructuralSlotDescriptions` enforces\n * the match bidirectionally at companion load. Edit both sides together.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n WebhookConfig_Operations,\n WebhookConfigBaseSchema,\n WebhookEndpointProbeOutcome,\n webhookConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport { webhooksAdminPresets, webhooksMainPresets } from '@wildo-ai/presets-components';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype WebhookConfigResourceType =\n | CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG\n | CoreResourceType.APPLICATION_WEBHOOK_CONFIG;\n\ntype WebhookConfigResourceTypeMember = 'ORGANIZATION_WEBHOOK_CONFIG' | 'APPLICATION_WEBHOOK_CONFIG';\n\nconst webhookConfigResourcePrimaryScope: Record<WebhookConfigResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_WEBHOOK_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\ntype WebhookCfg = ReturnType<\n (typeof webhookConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG]\n>;\ntype WebhookConfigCustomOp = NonNullable<WebhookCfg['customOperation']>;\n// Derive from the factory's coreOperations so the spec tracks config changes\n// (e.g. the REPOSITORY_ONLY DELETE for the onParentDelete cascade) automatically,\n// rather than a hand-maintained union that silently drifts out of sync.\ntype WebhookConfigCoreOp = WebhookCfg['coreOperations'][number];\ntype WebhookConfigMain = typeof WebhookConfigBaseSchema;\n\ntype WebhookFrontend = ResourceUIBehaviorConfig<WebhookConfigCustomOp, WebhookConfigCoreOp, WebhookConfigMain>;\n\n/**\n * Extract the merged ui-behavior for one webhook-config variant from a presets\n * bundle. The presets declare both scope variants (ORG addressable, APP demoted),\n * so this resolves either; a missing entry is an authoring error, surfaced loudly.\n */\nfunction resolveWebhookConfigUI(\n source: Partial<Record<string, unknown>>,\n resourceType: WebhookConfigResourceType,\n sourceName: string,\n): WebhookFrontend {\n const ui = source[resourceType] as WebhookFrontend | undefined;\n if (!ui) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return ui;\n}\n\nfunction buildWebhookConfigBaseSpecification(\n resourceType: WebhookConfigResourceType,\n memberName: WebhookConfigResourceTypeMember,\n): ResourceSpecificationConfig<WebhookConfigCustomOp, WebhookConfigCoreOp, WebhookConfigMain> {\n const isOrganizationScope = resourceType === CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG;\n const scopeLabel = isOrganizationScope ? 'organization' : 'application';\n const scopeId = isOrganizationScope ? 'org_acme' : 'app_wonder_todos';\n const scopeFieldName = isOrganizationScope ? 'organizationId' : 'applicationId';\n const readExample = {\n _id: 'whc_01HX2EXAMPLE',\n enabled: true,\n endpoints: [\n {\n id: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n description: 'Primary partner listener',\n enabled: true,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n ],\n applicationPublicKeyPem: '-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AEXAMPLE\\n-----END PUBLIC KEY-----',\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n [scopeFieldName]: scopeId,\n };\n\n return resourceSpecification<WebhookConfigCustomOp, WebhookConfigCoreOp, WebhookConfigMain>(\n webhookConfigPolymorphicFactories[resourceType],\n WebhookConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Store tenant-level M2M webhook configuration (endpoints, master enable flag, and derived verification material) for outbound `WEBHOOK_ORGANIZATION` or `WEBHOOK_APPLICATION` delivery.',\n businessRole: 'Singleton-per-scope config row that the dispatcher and admin UI use to know where to POST JSON payloads and which endpoints are still enabled.',\n lifecycleRole: 'Seeded as a REPOSITORY-only create per org/app, then maintained by admins (UPDATE) and read for diagnostics; test deliveries exercise connectivity without writing delivery log rows.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'WebhookConfigBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'webhookConfigPolymorphicFactories',\n symbolKind: CodeSymbolKind.FACTORY,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'WebhookConfig_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'Factory entry is selected by `webhookConfigPolymorphicFactories[CoreResourceType.*]`; `identifierField: \"collectionKey\"` follows the engine polymorphic map convention (see SSO + billing polymorphic specs).',\n 'The runtime injects the scope FK (`organizationId` or `applicationId`) — never list those columns on the base Zod object.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Singleton document id for the webhook config record in this scope’s MongoDB collection.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'Global kill-switch: when `false`, the dispatcher does not attempt deliveries regardless of per-endpoint flags.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n endpoints: schemaShape.endpoints.arraySpec({\n meaning: 'Admin-configured destination URLs, each with its own `enabled` bit and `endpointId` for delivery-log provenance.',\n whyItMatters: 'M2M events fan out to every enabled row; disabled endpoints are skipped per dispatch.',\n elementMeaning: 'One `WebhookEndpointSchema` (id, url, description, enabled flag, created/updated timestamps). The id and both timestamps are set by the server on save: a new endpoint sent without an id is assigned one, `createdAt` is kept from the stored endpoint with the same id, and `updatedAt` moves only when that endpoint\\u2019s url, description or switch changed.',\n elementType: {\n notes: [\n 'Element schema: `WebhookEndpointSchema` in `engine/saas-models/src/notifications/m2m/webhook-config.shared.schemas.ts`.',\n ],\n },\n }),\n applicationPublicKeyPem: schemaShape.applicationPublicKeyPem.stringSpec({\n meaning: 'PEM public half of `JwtPrivateKeys.APPLICATION_WEBHOOK`, surfaced on READ so customers verify JWT `x-wildo-webhook-signature` bodies.',\n whyItMatters: 'Downstream verifiers need the public key without out-of-band secret sharing; key rotation re-reads from app config on every READ per postfix hook.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the singleton config record was first inserted.',\n temporalRole: 'creation',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the record last changed (endpoint list edits, `enabled` toggles, or hook refreshes).',\n temporalRole: 'modified',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Return the org- or app-scoped config including endpoints and the derived public key material.',\n outcome: 'Admins and automated smoke tests can verify the runtime wiring before shipping traffic.',\n whenToUse: 'Use from admin UIs, CLI diagnostics, and health checks; requires org-admin or app-super-admin roles per variant.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The singleton webhook config for this scope is returned, including the endpoint list and the derived `applicationPublicKeyPem` for signature verification.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No webhook config has been seeded for this org/app scope yet (the singleton row does not exist).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin (ORG variant) or app-super-admin (APP variant) role required to read webhook configuration.' },\n ],\n idempotent: true,\n examples: [\n {\n title: `Read the active ${scopeLabel} webhook configuration`,\n response: readExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.CREATE]: {\n purpose: 'Seed the singleton config document when a new org/app is provisioned and the collection is empty.',\n outcome: 'A baseline disabled config exists so the dispatcher can load structured rows without null-check sprawl.',\n whenToUse: 'Repository-only path — not an HTTP public create; used by system seeds or platform bootstrap runs.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The baseline (disabled) singleton config record was seeded for this scope and returned. Internal/service write path — system seeds or platform bootstrap run this, not a public HTTP create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seed payload fails schema validation (e.g. a non-HTTPS endpoint URL or a malformed endpoint entry).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system/non-admin caller attempts to seed the config row.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A webhook config already exists for this scope — the resource is a singleton-per-scope, so a second seed collides with the existing row.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Seed a disabled webhook config with one endpoint',\n request: {\n enabled: false,\n endpoints: [\n { url: 'https://hooks.example.com/wildo', description: 'Primary partner listener', enabled: true },\n ],\n },\n response: {\n _id: 'whc_01HX2…',\n enabled: false,\n endpoints: [\n { id: 'whe_01HX2…', url: 'https://hooks.example.com/wildo', enabled: true },\n ],\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Persist endpoint URL edits, enable toggles, and metadata updates for the current scope’s singleton.',\n outcome: 'The next M2M notification fire sees the new routing truth immediately after commit. The endpoint list is replaced whole, and before it is stored each endpoint is matched to the stored one with the same id: that endpoint keeps its `createdAt`, and its `updatedAt` advances only if its url, description or switch changed. A new endpoint is stamped with the save time, and assigned an id when it arrives without one. Timestamps a client sends are ignored. Saving a plaintext `http://` destination is allowed and logs a warning naming its host.',\n whenToUse: 'Use in admin “save endpoints” flows or through trusted automation. This IS the generic PUT, and it is the only caller: the variant was REPOSITORY_ONLY — route-less — with no engine service reaching it either, so the pane that exists to edit these endpoints could not save. Gated on org-admin / app-super-admin.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The endpoint list / `enabled` toggles / metadata were persisted and the updated singleton config is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited endpoints or flags fail schema validation: an endpoint URL that is not a URL, a description over 500 characters, or two endpoints sharing an id. A plaintext `http://` URL is not refused.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin / app-super-admin role required to change webhook configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No webhook config has been seeded for this scope to update.' },\n ],\n idempotent: true,\n rateLimitNote: 'Endpoint edits can rotate the signing key material read on every READ; throttle rapid save cycles so downstream verifiers are not churned by repeated key changes.',\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the webhook config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The webhook config record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [WebhookConfig_Operations.TEST_ENDPOINT]: {\n operationId: WebhookConfig_Operations.TEST_ENDPOINT,\n purpose: 'Send a single synthetic request to a chosen `endpointId` to check reachability and the receiver response (does not create `M2MWebhookDeliveryLog` rows). Borrows UPDATE (a `PUT` on the custom-op sub-path) rather than READ: no row is written, but a live signed request leaves the platform, and a `GET` for that was a contradiction the generated contract had to spell out as `x-idempotent: false`.',\n outcome: 'Admins can validate connectivity in isolation before real notification traffic is enabled. The response is a diagnostic — `outcome` (`accepted` / `rejected` / `unreachable` / `not_sent`), plus response status, truncated response body, failure reason, duration, the probe’s `signatureJti` for correlation against the consumer’s own logs, and `transportIsPlaintext` — NOT the configuration row. `transportIsPlaintext` is independent of `outcome`: an endpoint on `http://` can answer `accepted` and still be sending the delivery signature in the clear, where it is readable and replayable until it expires. Plaintext endpoints are admitted deliberately (see `WebhookEndpointSchema.url`), so this probe is where that admission is surfaced to the admin who can act on it.',\n whenToUse: 'Run after any URL/secret/rotation event that could break downstream listeners.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The synthetic request was attempted and a diagnostic result (reachability and response status; signature verification is only established if the receiver performs it) is returned — a transport-level failure at the customer endpoint is still a 200 carrying the diagnostic, not an API error. `not_sent` likewise answers 200: the payload could not be signed, which is a platform-side key fault reported distinctly so it is never misread as a broken customer endpoint.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No webhook config exists for this scope, or the supplied `endpointId` is not present in the config’s endpoint list.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin / app-super-admin role required to fire a test delivery.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'No `endpointId` was supplied, or the stored endpoint is incomplete (e.g. missing URL), so no meaningful test can be sent.' },\n { code: HttpResponseStatusCode.TOO_MANY_REQUESTS_429, when: 'The per-endpoint probe budget for the current window is exhausted. Also returned when the rate-limit store is unreachable: this operation fails CLOSED, because running an egress primitive unmetered is worse than refusing it.' },\n ],\n idempotent: false,\n rateLimitNote: 'ENFORCED, not advisory: at most 5 probes per endpoint per 60s, keyed on scope + `endpointId` (the resource being protected is the customer’s listener, which does not care which admin is iterating). Exceeding it returns 429 with `retryAfterSeconds`.',\n examples: [\n {\n title: 'Endpoint accepts the signed probe',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.ACCEPTED,\n responseStatus: 202,\n responseBodyTruncated: 'queued',\n durationMs: 84,\n signatureJti: 'probe_01HX2ACCEPTED',\n attemptedAt: '2026-06-14T12:05:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Endpoint rejects the signed probe',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.REJECTED,\n responseStatus: 401,\n responseBodyTruncated: 'invalid signature',\n durationMs: 61,\n signatureJti: 'probe_01HX2REJECTED',\n attemptedAt: '2026-06-14T12:06:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Endpoint cannot be reached',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.UNREACHABLE,\n failureReason: 'fetch failed: connect ECONNREFUSED',\n durationMs: 10003,\n signatureJti: 'probe_01HX2UNREACHABLE',\n attemptedAt: '2026-06-14T12:07:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Probe is not sent because signing fails',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.NOT_SENT,\n failureReason: 'JWT signing failed: application webhook key unavailable',\n durationMs: 0,\n signatureJti: 'probe_01HX2NOTSENT',\n attemptedAt: '2026-06-14T12:08:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Endpoint accepts the probe, but over plaintext HTTP',\n request: { endpointId: 'whe_legacy_plaintext' },\n response: {\n endpointId: 'whe_legacy_plaintext',\n url: 'http://legacy.example.com/wildo',\n // The case this field exists for (#492). A working endpoint AND a credential on the\n // wire — `ACCEPTED` is the truthful outcome, and reporting the exposure as a failure\n // would be false, so the two are stated separately.\n transportIsPlaintext: true,\n outcome: WebhookEndpointProbeOutcome.ACCEPTED,\n responseStatus: 200,\n responseBodyTruncated: 'ok',\n durationMs: 77,\n signatureJti: 'probe_01HX2PLAINTEXT',\n attemptedAt: '2026-06-14T12:09:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Each scope owns at most one config row: treat this as a singleton resource, not a list resource with arbitrary many configs.',\n 'Because deliveries are multi-endpoint, keep endpoint ids stable: deleting an endpoint that still has log rows will break referential explainability in the delivery log view.',\n '`testEndpoint` probes travel the SAME signed transport as real deliveries (same key, same claim shape, same `x-wildo-webhook-signature` header). That is the point: a probe reaching the endpoint by a separate code path would attest to that path rather than to the delivery path. Do not give the probe its own HTTP client.',\n 'Probe traffic is marked synthetic on BOTH the body (`synthetic: true` plus explanatory text) and the signed claims, so a consumer can hard-refuse it on the verified envelope rather than on body text. Wildo is POSTing to a customer’s production listener; a probe indistinguishable from a real event invites consumers to act on a fake one.',\n 'A DISABLED endpoint is still probed. \"Validate before enabling\" is the primary workflow this operation exists for, and refusing would force an admin to enable an unverified URL in order to verify it.',\n 'Every attempt — successful or not — is recorded as a `WEBHOOK_ENDPOINT_TEST_DISPATCHED` audit event carrying the actor, scope, endpoint, outcome and destination HOST (never the full URL: customer endpoint paths routinely embed per-tenant tokens, and audit rows replicate to the org SIEM and the immutable store).',\n ],\n }),\n { resourcePrimaryScope: webhookConfigResourcePrimaryScope[resourceType] },\n );\n}\n\n/**\n * Compose the backend-semantics base with the frontend ui-behavior so the spec\n * can DOCUMENT the sectioned READ layout the preset declares. The section refs\n * (`status` / `endpoints` / `verification`) MUST equal the preset's\n * `layout.refs.sections` for this resource — `validateStructuralSlotDescriptions`\n * enforces the match bidirectionally at companion load (mirrors the SIEM config).\n */\nfunction buildWebhookConfigSpecification(\n resourceType: WebhookConfigResourceType,\n memberName: WebhookConfigResourceTypeMember,\n) {\n const base = buildWebhookConfigBaseSpecification(resourceType, memberName);\n const main = resolveWebhookConfigUI(webhooksMainPresets as Partial<Record<string, unknown>>, resourceType, 'webhooksMainPresets');\n const admin = resolveWebhookConfigUI(webhooksAdminPresets as Partial<Record<string, unknown>>, resourceType, 'webhooksAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n layout: {\n purpose: 'The webhook config READ groups the singleton into `status`, `endpoints`, and `verification` sections so an admin reasons about the integration top-down: is it on, where does it deliver, how do receivers verify signatures.',\n displayPurpose: 'Read template renders the same three sections in that order, none with a description: the one-switch `status` card has no heading (the switch\\'s label says it), the `endpoints` heading names the list so the list itself is unlabelled, and the public key sits under its label at full width. Timestamps and the surrogate id are intentionally omitted from the curated admin read.',\n sections: {\n status: {\n purpose: 'The master `enabled` kill-switch for outbound delivery in this scope.',\n whenToUse: 'First decision: pause or resume all deliveries without editing endpoints.',\n textSlots: {\n title: { purpose: 'Name the “deliveries on / paused” card. Not rendered on the read page, where the switch\\'s own label says it.' },\n },\n },\n endpoints: {\n purpose: 'The admin-configured destination URLs, each with its own enable bit and stable `endpointId`.',\n whenToUse: 'Adding, disabling, or auditing where M2M events fan out.',\n textSlots: {\n title: { purpose: 'Label the destinations / endpoints block; the list beneath it carries no label of its own.' },\n },\n },\n verification: {\n purpose: 'The derived `applicationPublicKeyPem` receivers use to verify the JWT `x-wildo-webhook-signature`.',\n whenToUse: 'When a receiver sets up or rotates signature verification.',\n textSlots: {\n title: { purpose: 'Label the signature-verification key block.' },\n },\n },\n },\n },\n }),\n );\n}\n\nexport const organizationWebhookConfigResourceSpecification = buildWebhookConfigSpecification(\n CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG,\n 'ORGANIZATION_WEBHOOK_CONFIG',\n);\n\nexport const applicationWebhookConfigResourceSpecification = buildWebhookConfigSpecification(\n CoreResourceType.APPLICATION_WEBHOOK_CONFIG,\n 'APPLICATION_WEBHOOK_CONFIG',\n);\n"]}
1
+ {"version":3,"file":"webhook-config.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/resources/webhook-config.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEzF,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAQ3E,MAAM,iCAAiC,GAA4D;IACjG,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,EAAE,oBAAoB,CAAC,aAAa;IAClF,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,EAAE,oBAAoB,CAAC,WAAW;CAChF,CAAC;AAcF;;;;GAIG;AACH,SAAS,sBAAsB,CAC7B,MAAwC,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AED,MAAM,CAAC,MAAM,8CAA8C,GAAG,+BAA+B,CAC3F,gBAAgB,CAAC,2BAA2B,EAC5C,6BAA6B,CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,6CAA6C,GAAG,+BAA+B,CAC1F,gBAAgB,CAAC,0BAA0B,EAC3C,4BAA4B,CAC7B,CAAC","sourcesContent":["/**\n * Resources: `organizationWebhookConfig` + `applicationWebhookConfig` — Wildo SaaS engine specification (backend-only).\n *\n * Polymorphic ORG + APP pair sharing `WebhookConfigBaseSchema` and `webhookConfigPolymorphicFactories` (one spec export per\n * `CoreResourceType`, single authoring file, SSO-style split exports).\n *\n * Inputs:\n * - Base schema: engine/saas-models/src/notifications/m2m/webhook-config.shared.schemas.ts → `WebhookConfigBaseSchema`\n * - Polymorphic map: `webhookConfigPolymorphicFactories` (same file family as\n * `webhook-config.shared.resources-config.schemas.ts`)\n * - Custom operations: `WebhookConfig_Operations` (`testEndpoint` synthetic delivery)\n * - UI presets: `webhooksMainPresets` / `webhooksAdminPresets`\n * (engine/presets-components/src/config/resources/webhooks.resource-presets.tsx) —\n * sectioned READ layout (`status` / `endpoints` / `verification`), surfaced in the\n * org Settings Hub `webhooks` section. The spec is frontend-configured (mirrors the\n * SIEM config): the `frontend.layout.sections` documented below MUST equal the\n * preset's `layout.refs.sections` — `validateStructuralSlotDescriptions` enforces\n * the match bidirectionally at companion load. Edit both sides together.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n WebhookConfig_Operations,\n WebhookConfigBaseSchema,\n WebhookEndpointProbeOutcome,\n webhookConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport { webhooksAdminPresets, webhooksMainPresets } from '@wildo-ai/presets-components';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype WebhookConfigResourceType =\n | CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG\n | CoreResourceType.APPLICATION_WEBHOOK_CONFIG;\n\ntype WebhookConfigResourceTypeMember = 'ORGANIZATION_WEBHOOK_CONFIG' | 'APPLICATION_WEBHOOK_CONFIG';\n\nconst webhookConfigResourcePrimaryScope: Record<WebhookConfigResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_WEBHOOK_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\ntype WebhookCfg = ReturnType<\n (typeof webhookConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG]\n>;\ntype WebhookConfigCustomOp = NonNullable<WebhookCfg['customOperation']>;\n// Derive from the factory's coreOperations so the spec tracks config changes\n// (e.g. the REPOSITORY_ONLY DELETE for the onParentDelete cascade) automatically,\n// rather than a hand-maintained union that silently drifts out of sync.\ntype WebhookConfigCoreOp = WebhookCfg['coreOperations'][number];\ntype WebhookConfigMain = typeof WebhookConfigBaseSchema;\n\ntype WebhookFrontend = ResourceUIBehaviorConfig<WebhookConfigCustomOp, WebhookConfigCoreOp, WebhookConfigMain>;\n\n/**\n * Extract the merged ui-behavior for one webhook-config variant from a presets\n * bundle. The presets declare both scope variants (ORG addressable, APP demoted),\n * so this resolves either; a missing entry is an authoring error, surfaced loudly.\n */\nfunction resolveWebhookConfigUI(\n source: Partial<Record<string, unknown>>,\n resourceType: WebhookConfigResourceType,\n sourceName: string,\n): WebhookFrontend {\n const ui = source[resourceType] as WebhookFrontend | undefined;\n if (!ui) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return ui;\n}\n\nfunction buildWebhookConfigBaseSpecification(\n resourceType: WebhookConfigResourceType,\n memberName: WebhookConfigResourceTypeMember,\n): ResourceSpecificationConfig<WebhookConfigCustomOp, WebhookConfigCoreOp, WebhookConfigMain> {\n const isOrganizationScope = resourceType === CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG;\n const scopeLabel = isOrganizationScope ? 'organization' : 'application';\n const scopeId = isOrganizationScope ? 'org_acme' : 'app_wonder_todos';\n const scopeFieldName = isOrganizationScope ? 'organizationId' : 'applicationId';\n const readExample = {\n _id: 'whc_01HX2EXAMPLE',\n enabled: true,\n endpoints: [\n {\n id: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n description: 'Primary partner listener',\n enabled: true,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n ],\n applicationPublicKeyPem: '-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AEXAMPLE\\n-----END PUBLIC KEY-----',\n applicationVerificationJwks: '{\"keys\":[{\"kty\":\"EC\",\"crv\":\"P-256\",\"x\":\"EXAMPLE_X\",\"y\":\"EXAMPLE_Y\",\"kid\":\"EXAMPLE_KID\",\"use\":\"sig\",\"alg\":\"ES256\"}]}',\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n [scopeFieldName]: scopeId,\n };\n\n return resourceSpecification<WebhookConfigCustomOp, WebhookConfigCoreOp, WebhookConfigMain>(\n webhookConfigPolymorphicFactories[resourceType],\n WebhookConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Hold the outbound webhook settings of an organization or of the application (the endpoints events are delivered to, and the switch that turns delivery on and off), and return the public key a receiver uses to verify each delivery.',\n businessRole: 'Singleton-per-scope config row that the dispatcher and admin UI use to know where to POST JSON payloads and which endpoints are still enabled.',\n lifecycleRole: 'Seeded by a route-less create per org/app (or materialised through the system door when an administrator first saves for a scope with no row), then maintained by admins (UPDATE) and read for diagnostics; test deliveries exercise connectivity without writing delivery log rows.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'WebhookConfigBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'webhookConfigPolymorphicFactories',\n symbolKind: CodeSymbolKind.FACTORY,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'WebhookConfig_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'Factory entry is selected by `webhookConfigPolymorphicFactories[CoreResourceType.*]`; `identifierField: \"collectionKey\"` follows the engine polymorphic map convention (see SSO + billing polymorphic specs).',\n 'The runtime injects the scope FK (`organizationId` or `applicationId`) — never list those columns on the base Zod object.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Singleton document id for the webhook config record in this scope’s MongoDB collection.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'Global kill-switch: when `false`, the dispatcher does not attempt deliveries regardless of per-endpoint flags.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n endpoints: schemaShape.endpoints.arraySpec({\n meaning: 'Admin-configured destination URLs, each with its own `enabled` bit and `endpointId` for delivery-log provenance.',\n whyItMatters: 'M2M events fan out to every enabled row; disabled endpoints are skipped per dispatch.',\n elementMeaning: 'One endpoint: its id, url, description, enabled flag and created/updated timestamps. The id and both timestamps are set by the server on save: a new endpoint sent without an id is assigned one, `createdAt` is kept from the stored endpoint with the same id, and `updatedAt` moves only when that endpoint\\u2019s url, description or switch changed.',\n elementType: {\n notes: [\n 'Element schema: `WebhookEndpointSchema` in `engine/saas-models/src/notifications/m2m/webhook-config.shared.schemas.ts`.',\n ],\n },\n }),\n applicationPublicKeyPem: schemaShape.applicationPublicKeyPem.stringSpec({\n meaning: 'The public key, in PEM, that verifies the signed JWT each delivery carries in its `x-wildo-webhook-signature` header. Returned on read.',\n whyItMatters: 'A receiver verifies deliveries with this key alone, with no shared secret. It is read from the current signing key on every read, so a rotated key is returned at once.',\n }),\n applicationVerificationJwks: schemaShape.applicationVerificationJwks.stringSpec({\n meaning: 'Every key a delivery may be signed with, as a JSON Web Key Set: the current key, a key staged to replace it, and the keys a rotation retired, until what they signed has expired. Each key\\u2019s `kid` is the one a delivery\\u2019s token names. Computed on read, never stored.',\n whyItMatters: 'A receiver that keeps this set verifies every delivery across a key rotation: it holds the next key before the first delivery signed with it, and a retried delivery signed with the previous key still verifies.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the singleton config record was first inserted.',\n temporalRole: 'creation',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the record last changed (endpoint list edits, `enabled` toggles, or hook refreshes).',\n temporalRole: 'modified',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Return the org- or app-scoped config including endpoints and the derived public key material.',\n outcome: 'Admins and automated smoke tests can verify the runtime wiring before shipping traffic.',\n whenToUse: 'Use from admin UIs, CLI diagnostics, and health checks; requires org-admin or app-super-admin roles per variant.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The singleton webhook config for this scope is returned, including the endpoint list and the derived `applicationPublicKeyPem` for signature verification.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No webhook config has been seeded for this org/app scope yet (the singleton row does not exist).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin (ORG variant) or app-super-admin (APP variant) role required to read webhook configuration.' },\n ],\n idempotent: true,\n examples: [\n {\n title: `Read the active ${scopeLabel} webhook configuration`,\n response: readExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.CREATE]: {\n purpose: 'Seed the singleton config document when a new org/app is provisioned and the collection is empty.',\n outcome: 'A baseline disabled config exists so the dispatcher can load structured rows without null-check sprawl.',\n whenToUse: 'Route-less INTERNAL_CALL path — not an HTTP public create; used by system seeds, platform bootstrap runs, and the system door the context-addressed singleton seam writes through.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The baseline (disabled) singleton config record was seeded for this scope and returned. Internal/service write path — system seeds or platform bootstrap run this, not a public HTTP create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seed payload fails schema validation (e.g. a non-HTTPS endpoint URL or a malformed endpoint entry).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system/non-admin caller attempts to seed the config row.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A webhook config already exists for this scope — the resource is a singleton-per-scope, so a second seed collides with the existing row.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Seed a disabled webhook config with one endpoint',\n request: {\n enabled: false,\n endpoints: [\n { url: 'https://hooks.example.com/wildo', description: 'Primary partner listener', enabled: true },\n ],\n },\n response: {\n _id: 'whc_01HX2…',\n enabled: false,\n endpoints: [\n { id: 'whe_01HX2…', url: 'https://hooks.example.com/wildo', enabled: true },\n ],\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Persist endpoint URL edits, enable toggles, and metadata updates for the current scope’s singleton.',\n outcome: 'The next M2M notification fire sees the new routing truth immediately after commit. The endpoint list is replaced whole, and before it is stored each endpoint is matched to the stored one with the same id: that endpoint keeps its `createdAt`, and its `updatedAt` advances only if its url, description or switch changed. A new endpoint is stamped with the save time, and assigned an id when it arrives without one. Timestamps a client sends are ignored. Saving a plaintext `http://` destination is allowed and logs a warning naming its host.',\n whenToUse: 'Use in admin “save endpoints” flows or through trusted automation. This IS the generic PUT, and it is the only caller: the variant was REPOSITORY_ONLY — route-less — with no engine service reaching it either, so the pane that exists to edit these endpoints could not save. Gated on org-admin / app-super-admin.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The endpoint list / `enabled` toggles / metadata were persisted and the updated singleton config is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited endpoints or flags fail schema validation: an endpoint URL that is not a URL, a description over 500 characters, or two endpoints sharing an id. A plaintext `http://` URL is not refused.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin / app-super-admin role required to change webhook configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No webhook config has been seeded for this scope to update.' },\n ],\n idempotent: true,\n rateLimitNote: 'Endpoint edits can rotate the signing key material read on every READ; throttle rapid save cycles so downstream verifiers are not churned by repeated key changes.',\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the webhook config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The webhook config record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [WebhookConfig_Operations.TEST_ENDPOINT]: {\n operationId: WebhookConfig_Operations.TEST_ENDPOINT,\n purpose: 'Send a single synthetic request to a chosen `endpointId` to check reachability and the receiver response (does not create `M2MWebhookDeliveryLog` rows). Borrows UPDATE (a `PUT` on the custom-op sub-path) rather than READ: no row is written, but a live signed request leaves the platform, and a `GET` for that was a contradiction the generated contract had to spell out as `x-idempotent: false`.',\n outcome: 'Admins can validate connectivity in isolation before real notification traffic is enabled. The response is a diagnostic — `outcome` (`accepted` / `rejected` / `unreachable` / `not_sent`), plus response status, truncated response body, failure reason, duration, the probe’s `signatureJti` for correlation against the consumer’s own logs, and `transportIsPlaintext` — NOT the configuration row. `transportIsPlaintext` is independent of `outcome`: an endpoint on `http://` can answer `accepted` and still be sending the delivery signature in the clear, where it is readable and replayable until it expires. Plaintext endpoints are admitted deliberately (see `WebhookEndpointSchema.url`), so this probe is where that admission is surfaced to the admin who can act on it.',\n whenToUse: 'Run after any URL/secret/rotation event that could break downstream listeners.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The synthetic request was attempted and a diagnostic result (reachability and response status; signature verification is only established if the receiver performs it) is returned — a transport-level failure at the customer endpoint is still a 200 carrying the diagnostic, not an API error. `not_sent` likewise answers 200: the payload could not be signed, which is a platform-side key fault reported distinctly so it is never misread as a broken customer endpoint.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No webhook config exists for this scope, or the supplied `endpointId` is not present in the config’s endpoint list.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin / app-super-admin role required to fire a test delivery, or the scope does not hold the webhook-delivery entitlement (`FEATURE_NOT_AVAILABLE`): a test delivery uses the capability, so a lapsed scope keeps its configuration and cannot send.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'No `endpointId` was supplied, or the stored endpoint is incomplete (e.g. missing URL), so no meaningful test can be sent.' },\n { code: HttpResponseStatusCode.TOO_MANY_REQUESTS_429, when: 'The per-endpoint probe budget for the current window is exhausted. Also returned when the rate-limit store is unreachable: this operation fails CLOSED, because running an egress primitive unmetered is worse than refusing it.' },\n ],\n idempotent: false,\n rateLimitNote: 'ENFORCED, not advisory: at most 5 probes per endpoint per 60s, keyed on scope + `endpointId` (the resource being protected is the customer’s listener, which does not care which admin is iterating). Exceeding it returns 429 with `retryAfterSeconds`.',\n examples: [\n {\n title: 'Endpoint accepts the signed probe',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.ACCEPTED,\n responseStatus: 202,\n responseBodyTruncated: 'queued',\n durationMs: 84,\n signatureJti: 'probe_01HX2ACCEPTED',\n attemptedAt: '2026-06-14T12:05:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Endpoint rejects the signed probe',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.REJECTED,\n responseStatus: 401,\n responseBodyTruncated: 'invalid signature',\n durationMs: 61,\n signatureJti: 'probe_01HX2REJECTED',\n attemptedAt: '2026-06-14T12:06:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Endpoint cannot be reached',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.UNREACHABLE,\n failureReason: 'fetch failed: connect ECONNREFUSED',\n durationMs: 10003,\n signatureJti: 'probe_01HX2UNREACHABLE',\n attemptedAt: '2026-06-14T12:07:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Probe is not sent because signing fails',\n request: { endpointId: 'whe_primary_partner' },\n response: {\n endpointId: 'whe_primary_partner',\n url: 'https://hooks.example.com/wildo',\n transportIsPlaintext: false,\n outcome: WebhookEndpointProbeOutcome.NOT_SENT,\n failureReason: 'JWT signing failed: application webhook key unavailable',\n durationMs: 0,\n signatureJti: 'probe_01HX2NOTSENT',\n attemptedAt: '2026-06-14T12:08:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'Endpoint accepts the probe, but over plaintext HTTP',\n request: { endpointId: 'whe_legacy_plaintext' },\n response: {\n endpointId: 'whe_legacy_plaintext',\n url: 'http://legacy.example.com/wildo',\n // The case this field exists for (#492). A working endpoint AND a credential on the\n // wire — `ACCEPTED` is the truthful outcome, and reporting the exposure as a failure\n // would be false, so the two are stated separately.\n transportIsPlaintext: true,\n outcome: WebhookEndpointProbeOutcome.ACCEPTED,\n responseStatus: 200,\n responseBodyTruncated: 'ok',\n durationMs: 77,\n signatureJti: 'probe_01HX2PLAINTEXT',\n attemptedAt: '2026-06-14T12:09:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Each scope owns at most one config row: treat this as a singleton resource, not a list resource with arbitrary many configs.',\n 'Because deliveries are multi-endpoint, keep endpoint ids stable: deleting an endpoint that still has log rows will break referential explainability in the delivery log view.',\n '`testEndpoint` probes travel the SAME signed transport as real deliveries (same key, same claim shape, same `x-wildo-webhook-signature` header). That is the point: a probe reaching the endpoint by a separate code path would attest to that path rather than to the delivery path. Do not give the probe its own HTTP client.',\n 'Probe traffic is marked synthetic on BOTH the body (`synthetic: true` plus explanatory text) and the signed claims, so a consumer can hard-refuse it on the verified envelope rather than on body text. Wildo is POSTing to a customer’s production listener; a probe indistinguishable from a real event invites consumers to act on a fake one.',\n 'A DISABLED endpoint is still probed. \"Validate before enabling\" is the primary workflow this operation exists for, and refusing would force an admin to enable an unverified URL in order to verify it.',\n 'Every attempt — successful or not — is recorded as a `WEBHOOK_ENDPOINT_TEST_DISPATCHED` audit event carrying the actor, scope, endpoint, outcome and destination HOST (never the full URL: customer endpoint paths routinely embed per-tenant tokens, and audit rows replicate to the org SIEM and the immutable store).',\n ],\n }),\n { resourcePrimaryScope: webhookConfigResourcePrimaryScope[resourceType] },\n );\n}\n\n/**\n * Compose the backend-semantics base with the frontend ui-behavior so the spec\n * can DOCUMENT the sectioned READ layout the preset declares. The section refs\n * (`status` / `endpoints` / `verification`) MUST equal the preset's\n * `layout.refs.sections` for this resource — `validateStructuralSlotDescriptions`\n * enforces the match bidirectionally at companion load (mirrors the SIEM config).\n */\nfunction buildWebhookConfigSpecification(\n resourceType: WebhookConfigResourceType,\n memberName: WebhookConfigResourceTypeMember,\n) {\n const base = buildWebhookConfigBaseSpecification(resourceType, memberName);\n const main = resolveWebhookConfigUI(webhooksMainPresets as Partial<Record<string, unknown>>, resourceType, 'webhooksMainPresets');\n const admin = resolveWebhookConfigUI(webhooksAdminPresets as Partial<Record<string, unknown>>, resourceType, 'webhooksAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n layout: {\n purpose: 'The webhook config READ groups the singleton into `status`, `endpoints`, and `verification` sections so an admin reasons about the integration top-down: is it on, where does it deliver, how do receivers verify signatures.',\n displayPurpose: 'Read template renders the same three sections in that order, none with a description: the one-switch `status` card has no heading (the switch\\'s label says it), the `endpoints` heading names the list so the list itself is unlabelled, and the public key sits under its label at full width. Timestamps and the surrogate id are intentionally omitted from the curated admin read.',\n sections: {\n status: {\n purpose: 'The master `enabled` kill-switch for outbound delivery in this scope.',\n whenToUse: 'First decision: pause or resume all deliveries without editing endpoints.',\n textSlots: {\n title: { purpose: 'Name the “deliveries on / paused” card. Not rendered on the read page, where the switch\\'s own label says it.' },\n },\n },\n endpoints: {\n purpose: 'The admin-configured destination URLs, each with its own enable bit and stable `endpointId`.',\n whenToUse: 'Adding, disabling, or auditing where M2M events fan out.',\n textSlots: {\n title: { purpose: 'Label the destinations / endpoints block; the list beneath it carries no label of its own.' },\n },\n },\n verification: {\n purpose: 'The keys receivers verify the JWT `x-wildo-webhook-signature` with: the current `applicationPublicKeyPem`, and `applicationVerificationJwks`, every key a delivery may be signed with across a rotation.',\n whenToUse: 'When a receiver sets up or rotates signature verification.',\n textSlots: {\n title: { purpose: 'Label the signature-verification key block.' },\n },\n },\n },\n },\n }),\n );\n}\n\nexport const organizationWebhookConfigResourceSpecification = buildWebhookConfigSpecification(\n CoreResourceType.ORGANIZATION_WEBHOOK_CONFIG,\n 'ORGANIZATION_WEBHOOK_CONFIG',\n);\n\nexport const applicationWebhookConfigResourceSpecification = buildWebhookConfigSpecification(\n CoreResourceType.APPLICATION_WEBHOOK_CONFIG,\n 'APPLICATION_WEBHOOK_CONFIG',\n);\n"]}
@@ -1,4 +1,5 @@
1
1
  import { type SystemEmailTemplateSpecificationConfig } from '../../../_core';
2
2
  export declare const humanDecisionDeadlineSystemTemplateSpecification: SystemEmailTemplateSpecificationConfig;
3
+ export declare const operationApprovalEndedSystemTemplateSpecification: SystemEmailTemplateSpecificationConfig;
3
4
  export declare const humanDecisionSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[];
4
5
  //# sourceMappingURL=human-decision.system-emails.specification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"human-decision.system-emails.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/human-decision.system-emails.specification.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,sCAAsC,EAC5C,MAAM,6BAA6B,CAAC;AAuBrC,eAAO,MAAM,gDAAgD,wCAuC5D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,sCAAsC,EAElG,CAAC"}
1
+ {"version":3,"file":"human-decision.system-emails.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/human-decision.system-emails.specification.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,sCAAsC,EAC5C,MAAM,6BAA6B,CAAC;AAuBrC,eAAO,MAAM,gDAAgD,wCAuC5D,CAAC;AAEF,eAAO,MAAM,iDAAiD,wCA0C7D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,sCAAsC,EAGlG,CAAC"}
@@ -23,7 +23,7 @@ export const humanDecisionDeadlineSystemTemplateSpecification = systemEmailTempl
23
23
  purpose: 'Remind the people who may answer a pending decision on an agent\'s action that it is waiting, before or after a service-target deadline, or tell the one person a deadline rule just moved it to.',
24
24
  tone: 'Brief, factual and courteous — a reminder among colleagues, never an alarm and never a reproach.',
25
25
  useWhen: 'Sent by the decision-deadline sweep (#1628) at a stage the gate arms: `claim_warning` and `decision_warning` before the CLAIM or DECISION deadline, `claim_missed` and `decision_missed` once it passed, and with `reassignedToYou` when the stage\'s REASSIGN rule moved the decision to the recipient.',
26
- avoidWhen: 'Do not use to announce a newly raised decision (the inbox and the routed-decision socket event do that), nor to report how a decision ended.',
26
+ avoidWhen: 'Do not use to announce a newly raised decision (the inbox and the routed-decision socket event do that), nor to report how a decision ended (the person whose held operation ended is told by `system.operation_approval_ended`).',
27
27
  textSlots: {
28
28
  subject: {
29
29
  purpose: 'Say that a decision is waiting for the recipient, in the words the labels author for the stage.',
@@ -39,7 +39,7 @@ export const humanDecisionDeadlineSystemTemplateSpecification = systemEmailTempl
39
39
  purpose: 'Labels for the gated action (tool name), the deadline and the lapse instant.',
40
40
  },
41
41
  ctaLabel: {
42
- purpose: 'Primary action label that opens the application at `eventData.appUrl`, where the decision waits in the recipient\'s inbox.',
42
+ purpose: 'Primary action label that opens the application\'s decision inbox page at `eventData.appUrl`, where the decision waits.',
43
43
  },
44
44
  },
45
45
  eventData: {
@@ -56,7 +56,48 @@ export const humanDecisionDeadlineSystemTemplateSpecification = systemEmailTempl
56
56
  eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,
57
57
  },
58
58
  }));
59
+ export const operationApprovalEndedSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(SystemEmailTemplateRegistry[SystemEmailTemplateRef.OPERATION_APPROVAL_ENDED], () => ({
60
+ purpose: 'Tell the person who asked for an operation that required another person\'s approval how their request ended: applied, rejected, expired with nobody answering, or approved and then unable to run.',
61
+ tone: 'Brief and factual. Good news is stated plainly; a refusal or an expiry is stated without blame, and says what the reader can do next.',
62
+ useWhen: 'Sent once, after the ending is committed, by the operation-approval decision host (#2813), for every ending the requester did not cause: `applied`, `rejected`, `lapsed`, `failed_requester_authority_lapsed`, `failed_operation_refused`.',
63
+ avoidWhen: 'Never for a withdrawal (the requester did it themselves), never to the approvers (the decision inbox and the deadline reminders reach them), and never while the request is still waiting.',
64
+ textSlots: {
65
+ subject: {
66
+ purpose: 'Say how the request ended and name the operation by its title (`{operation}`).',
67
+ },
68
+ previewText: {
69
+ purpose: 'Short preview repeating the heading.',
70
+ },
71
+ body: {
72
+ purpose: 'One paragraph per ending: what happened, whether anything was applied, and for every ending but `applied`, that the reader may ask again.',
73
+ notes: [
74
+ 'Only `applied` may say the operation ran. Every other ending must say that nothing was applied.',
75
+ '`failed_requester_authority_lapsed` says the reader no longer holds the access the operation needs; `failed_operation_refused` says the operation could not run as asked (the record may have changed, or the request no longer fits its rules).',
76
+ ],
77
+ },
78
+ detailsLabel: {
79
+ purpose: 'Label for the operation\'s title.',
80
+ },
81
+ ctaLabel: {
82
+ purpose: 'Primary action label: opens the record\'s page at `eventData.recordUrl` when there is one (the record an approved create made, or the one an update was asked on), else the application at `eventData.appUrl`.',
83
+ },
84
+ },
85
+ eventData: {
86
+ purpose: 'The ending, the operation\'s title in the recipient\'s language, the decision id, and optional application and record-page URLs. The record is named by its link, never by its values.',
87
+ notes: ['Treat `ending` as a translatable category identifier; the words come from the template labels keyed by `OperationApprovalEnding`.'],
88
+ },
89
+ businessConstraints: [
90
+ 'Never include the values the request carried: a request can hold personal or confidential data, and the email reaches a mailbox.',
91
+ 'Sent only to the person who asked, never to the approvers or to an organization-wide list.',
92
+ ],
93
+ codeHandling: {
94
+ definitionOwner: ENGINE_OWNER_REF,
95
+ templateRefDeclaration: TEMPLATE_REF_DECLARATION,
96
+ eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,
97
+ },
98
+ }));
59
99
  export const humanDecisionSystemEmailTemplateSpecifications = [
60
100
  humanDecisionDeadlineSystemTemplateSpecification,
101
+ operationApprovalEndedSystemTemplateSpecification,
61
102
  ];
62
103
  //# sourceMappingURL=human-decision.system-emails.specification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"human-decision.system-emails.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/human-decision.system-emails.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,GAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iDAAiD,EACjD,sBAAsB,GAGvB,MAAM,6BAA6B,CAAC;AAErC,yHAAyH;AACzH,MAAM,gBAAgB,GAA0B;IAC9C,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,sBAAsB,CAAC,MAAM;CACzC,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,wBAAwB;IACpC,UAAU,EAAE,cAAc,CAAC,IAAI;IAC/B,eAAe,EAAE,mBAAmB,CAAC,eAAe;CACrD,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,6BAA6B;IACzC,UAAU,EAAE,cAAc,CAAC,MAAM;IACjC,eAAe,EAAE,mBAAmB,CAAC,YAAY;IACjD,KAAK,EAAE,CAAC,mGAAmG,CAAC;CAC7G,CAAC;AAEF,MAAM,CAAC,MAAM,gDAAgD,GAAG,iDAAiD,CAC/G,2BAA2B,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,EAC3E,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,mMAAmM;IAC5M,IAAI,EAAE,kGAAkG;IACxG,OAAO,EAAE,0SAA0S;IACnT,SAAS,EAAE,8IAA8I;IACzJ,SAAS,EAAE;QACT,OAAO,EAAE;YACP,OAAO,EAAE,iGAAiG;SAC3G;QACD,WAAW,EAAE;YACX,OAAO,EAAE,gDAAgD;SAC1D;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,6OAA6O;YACtP,KAAK,EAAE,CAAC,iIAAiI,CAAC;SAC3I;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,8EAA8E;SACxF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,4HAA4H;SACtI;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,2LAA2L;QACpM,KAAK,EAAE,CAAC,8HAA8H,CAAC;KACxI;IACD,mBAAmB,EAAE;QACnB,0LAA0L;QAC1L,qJAAqJ;KACtJ;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,sBAAsB,EAAE,wBAAwB;QAChD,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GAA6C;IACtG,gDAAgD;CACjD,CAAC","sourcesContent":["import {\n CodeDeclarationKind,\n CodeSymbolKind,\n type CodeSymbolRef,\n} from '@wildo-ai/zod-decorators';\nimport {\n SystemEmailTemplateRef,\n SystemEmailTemplateRegistry,\n} from '@wildo-ai/saas-models';\nimport {\n systemEmailTemplateSpecificationFromRegistryEntry,\n SpecificationOwnerKind,\n type SpecificationOwnerRef,\n type SystemEmailTemplateSpecificationConfig,\n} from '~wildo-specifications/_core';\n\n/** Owner ref for engine-shipped system-email template specifications (see `security.system-emails.specification.ts`). */\nconst ENGINE_OWNER_REF: SpecificationOwnerRef = {\n ownerId: 'engine',\n ownerKind: SpecificationOwnerKind.ENGINE,\n};\n\nconst TEMPLATE_REF_DECLARATION: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRef',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n};\n\nconst EVENT_DATA_SCHEMA_SYMBOL: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRegistry',\n symbolKind: CodeSymbolKind.CONFIG,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n notes: ['Look up the entry by `SystemEmailTemplateRef.*` to reach the `eventDataSchema` for this template.'],\n};\n\nexport const humanDecisionDeadlineSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.HUMAN_DECISION_DEADLINE],\n () => ({\n purpose: 'Remind the people who may answer a pending decision on an agent\\'s action that it is waiting, before or after a service-target deadline, or tell the one person a deadline rule just moved it to.',\n tone: 'Brief, factual and courteous — a reminder among colleagues, never an alarm and never a reproach.',\n useWhen: 'Sent by the decision-deadline sweep (#1628) at a stage the gate arms: `claim_warning` and `decision_warning` before the CLAIM or DECISION deadline, `claim_missed` and `decision_missed` once it passed, and with `reassignedToYou` when the stage\\'s REASSIGN rule moved the decision to the recipient.',\n avoidWhen: 'Do not use to announce a newly raised decision (the inbox and the routed-decision socket event do that), nor to report how a decision ended.',\n textSlots: {\n subject: {\n purpose: 'Say that a decision is waiting for the recipient, in the words the labels author for the stage.',\n },\n previewText: {\n purpose: 'Short preview naming the stage in plain terms.',\n },\n body: {\n purpose: 'One paragraph per stage: a WARNING says the deadline is near; a MISSED stage says it passed and that the decision can still be answered until it lapses; a reassignment says it was moved to the recipient because nobody answered in time.',\n notes: ['Never state or imply that the decision was approved, rejected or cancelled: a deadline changes who is asked, never the outcome.'],\n },\n detailsLabel: {\n purpose: 'Labels for the gated action (tool name), the deadline and the lapse instant.',\n },\n ctaLabel: {\n purpose: 'Primary action label that opens the application at `eventData.appUrl`, where the decision waits in the recipient\\'s inbox.',\n },\n },\n eventData: {\n purpose: 'The stage, whether the decision was moved to the recipient, the decision id, the gated tool name, the deadline, the lapse instant and an optional inbox URL. Never the tool\\'s arguments.',\n notes: ['Treat `stage` as a translatable category identifier; the words come from the template labels keyed by `ReviewDeadlineStage`.'],\n },\n businessConstraints: [\n 'Never include the proposed tool arguments or anything from the conversation: the email reaches a mailbox, and the decision card behind the link is the only place the proposal is shown.',\n 'Sent only to the route\\'s candidates at the moment the stage fires (and to the gate owner at a DECISION stage), never to an organization-wide list.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const humanDecisionSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[] = [\n humanDecisionDeadlineSystemTemplateSpecification,\n];\n"]}
1
+ {"version":3,"file":"human-decision.system-emails.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/human-decision.system-emails.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,GAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iDAAiD,EACjD,sBAAsB,GAGvB,MAAM,6BAA6B,CAAC;AAErC,yHAAyH;AACzH,MAAM,gBAAgB,GAA0B;IAC9C,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,sBAAsB,CAAC,MAAM;CACzC,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,wBAAwB;IACpC,UAAU,EAAE,cAAc,CAAC,IAAI;IAC/B,eAAe,EAAE,mBAAmB,CAAC,eAAe;CACrD,CAAC;AAEF,MAAM,w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,EAAE,4LAA4L;IACvM,SAAS,EAAE;QACT,OAAO,EAAE;YACP,OAAO,EAAE,gFAAgF;SAC1F;QACD,WAAW,EAAE;YACX,OAAO,EAAE,sCAAsC;SAChD;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,2IAA2I;YACpJ,KAAK,EAAE;gBACL,iGAAiG;gBACjG,kPAAkP;aACnP;SACF;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,mCAAmC;SAC7C;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,gNAAgN;SAC1N;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,wLAAwL;QACjM,KAAK,EAAE,CAAC,mIAAmI,CAAC;KAC7I;IACD,mBAAmB,EAAE;QACnB,kIAAkI;QAClI,4FAA4F;KAC7F;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,sBAAsB,EAAE,wBAAwB;QAChD,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GAA6C;IACtG,gDAAgD;IAChD,iDAAiD;CAClD,CAAC","sourcesContent":["import {\n CodeDeclarationKind,\n CodeSymbolKind,\n type CodeSymbolRef,\n} from '@wildo-ai/zod-decorators';\nimport {\n SystemEmailTemplateRef,\n SystemEmailTemplateRegistry,\n} from '@wildo-ai/saas-models';\nimport {\n systemEmailTemplateSpecificationFromRegistryEntry,\n SpecificationOwnerKind,\n type SpecificationOwnerRef,\n type SystemEmailTemplateSpecificationConfig,\n} from '~wildo-specifications/_core';\n\n/** Owner ref for engine-shipped system-email template specifications (see `security.system-emails.specification.ts`). */\nconst ENGINE_OWNER_REF: SpecificationOwnerRef = {\n ownerId: 'engine',\n ownerKind: SpecificationOwnerKind.ENGINE,\n};\n\nconst TEMPLATE_REF_DECLARATION: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRef',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n};\n\nconst EVENT_DATA_SCHEMA_SYMBOL: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRegistry',\n symbolKind: CodeSymbolKind.CONFIG,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n notes: ['Look up the entry by `SystemEmailTemplateRef.*` to reach the `eventDataSchema` for this template.'],\n};\n\nexport const humanDecisionDeadlineSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.HUMAN_DECISION_DEADLINE],\n () => ({\n purpose: 'Remind the people who may answer a pending decision on an agent\\'s action that it is waiting, before or after a service-target deadline, or tell the one person a deadline rule just moved it to.',\n tone: 'Brief, factual and courteous — a reminder among colleagues, never an alarm and never a reproach.',\n useWhen: 'Sent by the decision-deadline sweep (#1628) at a stage the gate arms: `claim_warning` and `decision_warning` before the CLAIM or DECISION deadline, `claim_missed` and `decision_missed` once it passed, and with `reassignedToYou` when the stage\\'s REASSIGN rule moved the decision to the recipient.',\n avoidWhen: 'Do not use to announce a newly raised decision (the inbox and the routed-decision socket event do that), nor to report how a decision ended (the person whose held operation ended is told by `system.operation_approval_ended`).',\n textSlots: {\n subject: {\n purpose: 'Say that a decision is waiting for the recipient, in the words the labels author for the stage.',\n },\n previewText: {\n purpose: 'Short preview naming the stage in plain terms.',\n },\n body: {\n purpose: 'One paragraph per stage: a WARNING says the deadline is near; a MISSED stage says it passed and that the decision can still be answered until it lapses; a reassignment says it was moved to the recipient because nobody answered in time.',\n notes: ['Never state or imply that the decision was approved, rejected or cancelled: a deadline changes who is asked, never the outcome.'],\n },\n detailsLabel: {\n purpose: 'Labels for the gated action (tool name), the deadline and the lapse instant.',\n },\n ctaLabel: {\n purpose: 'Primary action label that opens the application\\'s decision inbox page at `eventData.appUrl`, where the decision waits.',\n },\n },\n eventData: {\n purpose: 'The stage, whether the decision was moved to the recipient, the decision id, the gated tool name, the deadline, the lapse instant and an optional inbox URL. Never the tool\\'s arguments.',\n notes: ['Treat `stage` as a translatable category identifier; the words come from the template labels keyed by `ReviewDeadlineStage`.'],\n },\n businessConstraints: [\n 'Never include the proposed tool arguments or anything from the conversation: the email reaches a mailbox, and the decision card behind the link is the only place the proposal is shown.',\n 'Sent only to the route\\'s candidates at the moment the stage fires (and to the gate owner at a DECISION stage), never to an organization-wide list.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const operationApprovalEndedSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.OPERATION_APPROVAL_ENDED],\n () => ({\n purpose: 'Tell the person who asked for an operation that required another person\\'s approval how their request ended: applied, rejected, expired with nobody answering, or approved and then unable to run.',\n tone: 'Brief and factual. Good news is stated plainly; a refusal or an expiry is stated without blame, and says what the reader can do next.',\n useWhen: 'Sent once, after the ending is committed, by the operation-approval decision host (#2813), for every ending the requester did not cause: `applied`, `rejected`, `lapsed`, `failed_requester_authority_lapsed`, `failed_operation_refused`.',\n avoidWhen: 'Never for a withdrawal (the requester did it themselves), never to the approvers (the decision inbox and the deadline reminders reach them), and never while the request is still waiting.',\n textSlots: {\n subject: {\n purpose: 'Say how the request ended and name the operation by its title (`{operation}`).',\n },\n previewText: {\n purpose: 'Short preview repeating the heading.',\n },\n body: {\n purpose: 'One paragraph per ending: what happened, whether anything was applied, and for every ending but `applied`, that the reader may ask again.',\n notes: [\n 'Only `applied` may say the operation ran. Every other ending must say that nothing was applied.',\n '`failed_requester_authority_lapsed` says the reader no longer holds the access the operation needs; `failed_operation_refused` says the operation could not run as asked (the record may have changed, or the request no longer fits its rules).',\n ],\n },\n detailsLabel: {\n purpose: 'Label for the operation\\'s title.',\n },\n ctaLabel: {\n purpose: 'Primary action label: opens the record\\'s page at `eventData.recordUrl` when there is one (the record an approved create made, or the one an update was asked on), else the application at `eventData.appUrl`.',\n },\n },\n eventData: {\n purpose: 'The ending, the operation\\'s title in the recipient\\'s language, the decision id, and optional application and record-page URLs. The record is named by its link, never by its values.',\n notes: ['Treat `ending` as a translatable category identifier; the words come from the template labels keyed by `OperationApprovalEnding`.'],\n },\n businessConstraints: [\n 'Never include the values the request carried: a request can hold personal or confidential data, and the email reaches a mailbox.',\n 'Sent only to the person who asked, never to the approvers or to an organization-wide list.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const humanDecisionSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[] = [\n humanDecisionDeadlineSystemTemplateSpecification,\n operationApprovalEndedSystemTemplateSpecification,\n];\n"]}
@@ -1,7 +1,6 @@
1
1
  export * from './authentication.system-emails.specification';
2
2
  export * from './organization.system-emails.specification';
3
3
  export * from './security.system-emails.specification';
4
- export * from './subscription.system-emails.specification';
5
4
  export * from './human-decision.system-emails.specification';
6
5
  /**
7
6
  * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAOA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,wEAMnD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAMA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,wEAKnD,CAAC"}
@@ -2,12 +2,10 @@ import { buildSystemEmailTemplateSpecificationMap } from '../../../_core/index.j
2
2
  import { authenticationSystemEmailTemplateSpecifications } from './authentication.system-emails.specification.js';
3
3
  import { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification.js';
4
4
  import { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification.js';
5
- import { subscriptionSystemEmailTemplateSpecifications } from './subscription.system-emails.specification.js';
6
5
  import { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification.js';
7
6
  export * from './authentication.system-emails.specification.js';
8
7
  export * from './organization.system-emails.specification.js';
9
8
  export * from './security.system-emails.specification.js';
10
- export * from './subscription.system-emails.specification.js';
11
9
  export * from './human-decision.system-emails.specification.js';
12
10
  /**
13
11
  * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.
@@ -16,5 +14,5 @@ export * from './human-decision.system-emails.specification.js';
16
14
  * system email-template surface, but the engine already provides a complete
17
15
  * baseline keyed by `SystemEmailTemplateRef.*`.
18
16
  */
19
- export const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(...authenticationSystemEmailTemplateSpecifications, ...organizationSystemEmailTemplateSpecifications, ...subscriptionSystemEmailTemplateSpecifications, ...securitySystemEmailTemplateSpecifications, ...humanDecisionSystemEmailTemplateSpecifications);
17
+ export const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(...authenticationSystemEmailTemplateSpecifications, ...organizationSystemEmailTemplateSpecifications, ...securitySystemEmailTemplateSpecifications, ...humanDecisionSystemEmailTemplateSpecifications);
20
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,+CAA+C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,8CAA8C,EAAE,MAAM,8CAA8C,CAAC;AAE9G,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,wCAAwC,CAC7F,GAAG,+CAA+C,EAClD,GAAG,6CAA6C,EAChD,GAAG,6CAA6C,EAChD,GAAG,yCAAyC,EAC5C,GAAG,8CAA8C,CAClD,CAAC","sourcesContent":["import { buildSystemEmailTemplateSpecificationMap } from '~wildo-specifications/_core';\nimport { authenticationSystemEmailTemplateSpecifications } from './authentication.system-emails.specification';\nimport { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification';\nimport { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification';\nimport { subscriptionSystemEmailTemplateSpecifications } from './subscription.system-emails.specification';\nimport { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification';\n\nexport * from './authentication.system-emails.specification';\nexport * from './organization.system-emails.specification';\nexport * from './security.system-emails.specification';\nexport * from './subscription.system-emails.specification';\nexport * from './human-decision.system-emails.specification';\n\n/**\n * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.\n *\n * Applications can merge their own additions into this map when extending the\n * system email-template surface, but the engine already provides a complete\n * baseline keyed by `SystemEmailTemplateRef.*`.\n */\nexport const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(\n ...authenticationSystemEmailTemplateSpecifications,\n ...organizationSystemEmailTemplateSpecifications,\n ...subscriptionSystemEmailTemplateSpecifications,\n ...securitySystemEmailTemplateSpecifications,\n ...humanDecisionSystemEmailTemplateSpecifications,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,+CAA+C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,8CAA8C,EAAE,MAAM,8CAA8C,CAAC;AAE9G,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,wCAAwC,CAC7F,GAAG,+CAA+C,EAClD,GAAG,6CAA6C,EAChD,GAAG,yCAAyC,EAC5C,GAAG,8CAA8C,CAClD,CAAC","sourcesContent":["import { buildSystemEmailTemplateSpecificationMap } from '~wildo-specifications/_core';\nimport { authenticationSystemEmailTemplateSpecifications } from './authentication.system-emails.specification';\nimport { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification';\nimport { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification';\nimport { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification';\n\nexport * from './authentication.system-emails.specification';\nexport * from './organization.system-emails.specification';\nexport * from './security.system-emails.specification';\nexport * from './human-decision.system-emails.specification';\n\n/**\n * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.\n *\n * Applications can merge their own additions into this map when extending the\n * system email-template surface, but the engine already provides a complete\n * baseline keyed by `SystemEmailTemplateRef.*`.\n */\nexport const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(\n ...authenticationSystemEmailTemplateSpecifications,\n ...organizationSystemEmailTemplateSpecifications,\n ...securitySystemEmailTemplateSpecifications,\n ...humanDecisionSystemEmailTemplateSpecifications,\n);\n"]}
@@ -1,5 +1,5 @@
1
1
  import { type SystemEmailTemplateSpecificationConfig } from '../../../_core';
2
- export declare const organizationInvitationSystemTemplateSpecification: SystemEmailTemplateSpecificationConfig;
2
+ export declare const relationshipInvitationSystemTemplateSpecification: SystemEmailTemplateSpecificationConfig;
3
3
  export declare const organizationMemberRemovedSystemTemplateSpecification: SystemEmailTemplateSpecificationConfig;
4
4
  export declare const organizationSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[];
5
5
  //# sourceMappingURL=organization.system-emails.specification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.system-emails.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/organization.system-emails.specification.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,sCAAsC,EAC5C,MAAM,6BAA6B,CAAC;AAgCrC,eAAO,MAAM,iDAAiD,wCAsC7D,CAAC;AAEF,eAAO,MAAM,oDAAoD,wCAmChE,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,sCAAsC,EAGjG,CAAC"}
1
+ {"version":3,"file":"organization.system-emails.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/organization.system-emails.specification.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,sCAAsC,EAC5C,MAAM,6BAA6B,CAAC;AAgCrC,eAAO,MAAM,iDAAiD,wCAgD7D,CAAC;AAEF,eAAO,MAAM,oDAAoD,wCAmChE,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,sCAAsC,EAGjG,CAAC"}
@@ -28,35 +28,45 @@ const EVENT_DATA_SCHEMA_SYMBOL = {
28
28
  declarationKind: CodeDeclarationKind.CONST_OBJECT,
29
29
  notes: ['Look up the entry by `SystemEmailTemplateRef.*` to reach the `eventDataSchema` for this template.'],
30
30
  };
31
- export const organizationInvitationSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(SystemEmailTemplateRegistry[SystemEmailTemplateRef.ORGANIZATION_INVITATION], () => ({
32
- purpose: 'Invite a person to join an organization with a specific role and give them a one-click path to accept before the invitation expires.',
33
- tone: 'Inviting, professional, and organization-aware — the sender identity and organization context must feel trustworthy.',
34
- useWhen: 'Use when an organization administrator explicitly invites a new member, whether they already have an account or not.',
35
- avoidWhen: 'Do not use for role changes on existing members; those belong to a different lifecycle surface.',
31
+ export const relationshipInvitationSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(SystemEmailTemplateRegistry[SystemEmailTemplateRef.RELATIONSHIP_INVITATION], () => ({
32
+ purpose: 'Tell a person that another organization wants to work in their organization, under a relationship it proposes — a firm inviting a client, for example — and give them both ways in: the sign-up page with their address filled in, for a person with no account (#2618), and the sign-in page leading to their invitations, for a person who already has one and chooses there which organization receives the proposal (#2716).',
33
+ tone: 'Professional and plain, from the inviting organization\'s side: an introduction, not a marketing message, and never an account notice.',
34
+ useWhen: 'Sent once when an administrator of the representing organization invites the owner of a granting organization by email (`relationshipInvitations` `invite`, under a relationship kind that declares `invitations`), to the invited address only.',
35
+ avoidWhen: 'Do not use to invite someone into the REPRESENTING organization itself (that is the organization invitation), nor to tell an existing organization about a proposal — a proposal waits in the granting organization.',
36
36
  textSlots: {
37
37
  subject: {
38
- purpose: 'Signal that a specific organization is inviting the recipient to join with a named role.',
39
- notes: ['Prefer including the organization name so the inbox shows who is inviting them.'],
38
+ purpose: 'Name the inviting organization and say it invites the recipient to work with it on the application.',
40
39
  },
41
40
  previewText: {
42
- purpose: 'Restate the inviter and organization, and hint at the expiration window.',
41
+ purpose: 'Restate the inviting organization and that it would like to work with the recipient.',
43
42
  },
44
43
  body: {
45
- purpose: 'Paragraph explaining who invited the recipient, which organization, and what role they are being offered.',
44
+ purpose: 'Who invites (the inviting organization, by `eventData.representingOrganizationName`), why (`eventData.purpose`, quoted), and what happens next for a person new to the application: create the account with this address and confirm it, then the inviting organization\'s proposal waits in the new organization for the recipient to accept or decline.',
45
+ notes: [
46
+ 'Say plainly that nothing is shared with the inviting organization until the recipient accepts its proposal.',
47
+ 'Say that the address the recipient signs up with must be this one, because the proposal is delivered to it.',
48
+ ],
46
49
  },
47
50
  ctaLabel: {
48
- purpose: 'Primary action label that sends the recipient to `eventData.acceptUrl`.',
51
+ purpose: 'Primary action label that opens `eventData.signUpUrl`.',
52
+ },
53
+ existingAccountNotice: {
54
+ purpose: 'For a person who already has an account with this address: sign in and open their invitations, where they choose which of their organizations receives the inviting organization\'s proposal, or decline it.',
55
+ notes: ['Conditional in meaning, never in delivery: the same sentence goes to every recipient, so it must not read as a statement that the recipient has an account.'],
56
+ },
57
+ secondaryCtaLabel: {
58
+ purpose: 'Secondary action label that opens `eventData.signInUrl`.',
49
59
  },
50
60
  expirationNotice: {
51
- purpose: 'Reminder about `eventData.expiresInDays` so the recipient understands the invitation window.',
61
+ purpose: 'That the invitation lapses after `eventData.expiresInDays` days, and that ignoring the email is safe.',
52
62
  },
53
63
  },
54
64
  eventData: {
55
- purpose: 'All details needed to personalize the invitation: inviter, organization, role, accept URL, and expiration window.',
65
+ purpose: 'The inviting organization\'s name, its stated purpose, the sign-up URL with the address filled in, the sign-in URL returning to the account\'s Invitations panel, and the validity in days.',
56
66
  },
57
67
  businessConstraints: [
58
- 'Never surface internal member identifiers (user IDs) in the user-facing copy.',
59
- 'Role names must come from the application role registry; do not hard-code or translate them differently from in-product labels.',
68
+ 'Never imply the recipient has an account, or has none, or that anything was shared: the email may reach someone who never acts, and the inviting organization must not learn which kind of recipient it reached (#2716). Every recipient gets the same email.',
69
+ 'Sent in the application\'s primary language: no language of the recipient\'s is known, or may be looked up, for the same reason.',
60
70
  ],
61
71
  codeHandling: {
62
72
  definitionOwner: ENGINE_OWNER_REF,
@@ -98,7 +108,7 @@ export const organizationMemberRemovedSystemTemplateSpecification = systemEmailT
98
108
  },
99
109
  }));
100
110
  export const organizationSystemEmailTemplateSpecifications = [
101
- organizationInvitationSystemTemplateSpecification,
111
+ relationshipInvitationSystemTemplateSpecification,
102
112
  organizationMemberRemovedSystemTemplateSpecification,
103
113
  ];
104
114
  //# sourceMappingURL=organization.system-emails.specification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.system-emails.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/organization.system-emails.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,GAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iDAAiD,EACjD,sBAAsB,GAGvB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,gBAAgB,GAA0B;IAC9C,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,sBAAsB,CAAC,MAAM;CACzC,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,wBAAwB;IACpC,UAAU,EAAE,cAAc,CAAC,IAAI;IAC/B,eAAe,EAAE,mBAAmB,CAAC,eAAe;CACrD,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,6BAA6B;IACzC,UAAU,EAAE,cAAc,CAAC,MAAM;IACjC,eAAe,EAAE,mBAAmB,CAAC,YAAY;IACjD,KAAK,EAAE,CAAC,mGAAmG,CAAC;CAC7G,CAAC;AAEF,MAAM,CAAC,MAAM,iDAAiD,GAAG,iDAAiD,CAChH,2BAA2B,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,EAC3E,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,sIAAsI;IAC/I,IAAI,EAAE,sHAAsH;IAC5H,O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jC,sBAAsB,EAAE,wBAAwB;QAChD,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,6CAA6C,GAA6C;IACrG,iDAAiD;IACjD,oDAAoD;CACrD,CAAC","sourcesContent":["import {\n CodeDeclarationKind,\n CodeSymbolKind,\n type CodeSymbolRef,\n} from '@wildo-ai/zod-decorators';\nimport {\n SystemEmailTemplateRef,\n SystemEmailTemplateRegistry,\n} from '@wildo-ai/saas-models';\nimport {\n systemEmailTemplateSpecificationFromRegistryEntry,\n SpecificationOwnerKind,\n type SpecificationOwnerRef,\n type SystemEmailTemplateSpecificationConfig,\n} from '~wildo-specifications/_core';\n\n/**\n * Owner ref for engine-shipped system-email template specifications.\n *\n * Mirrors the engine-author bucket used by `engine/features/_engine-feature-shared.ts`\n * and `engine/roles/_engine-role-shared.ts`. Kept inlined per family for\n * grep-friendliness — every engine spec family declares its own typed\n * `ENGINE_OWNER_REF` constant rather than sharing a single import, so a\n * grep for `ENGINE_OWNER_REF` in any one family file lands on the local\n * source-of-truth without crossing module boundaries.\n */\nconst ENGINE_OWNER_REF: SpecificationOwnerRef = {\n ownerId: 'engine',\n ownerKind: SpecificationOwnerKind.ENGINE,\n};\n\nconst TEMPLATE_REF_DECLARATION: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRef',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n};\n\nconst EVENT_DATA_SCHEMA_SYMBOL: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRegistry',\n symbolKind: CodeSymbolKind.CONFIG,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n notes: ['Look up the entry by `SystemEmailTemplateRef.*` to reach the `eventDataSchema` for this template.'],\n};\n\nexport const organizationInvitationSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.ORGANIZATION_INVITATION],\n () => ({\n purpose: 'Invite a person to join an organization with a specific role and give them a one-click path to accept before the invitation expires.',\n tone: 'Inviting, professional, and organization-aware — the sender identity and organization context must feel trustworthy.',\n useWhen: 'Use when an organization administrator explicitly invites a new member, whether they already have an account or not.',\n avoidWhen: 'Do not use for role changes on existing members; those belong to a different lifecycle surface.',\n textSlots: {\n subject: {\n purpose: 'Signal that a specific organization is inviting the recipient to join with a named role.',\n notes: ['Prefer including the organization name so the inbox shows who is inviting them.'],\n },\n previewText: {\n purpose: 'Restate the inviter and organization, and hint at the expiration window.',\n },\n body: {\n purpose: 'Paragraph explaining who invited the recipient, which organization, and what role they are being offered.',\n },\n ctaLabel: {\n purpose: 'Primary action label that sends the recipient to `eventData.acceptUrl`.',\n },\n expirationNotice: {\n purpose: 'Reminder about `eventData.expiresInDays` so the recipient understands the invitation window.',\n },\n },\n eventData: {\n purpose: 'All details needed to personalize the invitation: inviter, organization, role, accept URL, and expiration window.',\n },\n businessConstraints: [\n 'Never surface internal member identifiers (user IDs) in the user-facing copy.',\n 'Role names must come from the application role registry; do not hard-code or translate them differently from in-product labels.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const organizationMemberRemovedSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.ORGANIZATION_MEMBER_REMOVED],\n () => ({\n purpose: 'Inform the recipient that they were removed from an organization and, when appropriate, explain what happens next to the data they owned or consumed there.',\n tone: 'Respectful, factual, and low-emotion — removal can be sensitive, so the copy must stay neutral and avoid blaming language.',\n useWhen: 'Use whenever an organization member is removed, whether by an administrator or by policy automation.',\n avoidWhen: 'Do not use when the member leaves voluntarily; that deserves its own lifecycle message if present.',\n textSlots: {\n subject: {\n purpose: 'Signal that the recipient has lost access to the organization, without using harsh or accusatory framing.',\n },\n previewText: {\n purpose: 'Restate the removal fact and name the organization so the recipient can triage quickly.',\n },\n body: {\n purpose: 'Short paragraph naming the organization, optionally the admin who performed the removal, and any optional reason.',\n notes: ['Gracefully omit optional `removedByName` / `reason` fragments when the runtime payload does not provide them.'],\n },\n nextStepsHint: {\n purpose: 'Closing paragraph hinting at what happens to the data the recipient had in the organization or how to reach support if they believe this was a mistake.',\n },\n },\n eventData: {\n purpose: 'Organization name plus optional actor name and reason string.',\n },\n businessConstraints: [\n 'Never expose internal IDs, IPs, or policy identifiers in the user-facing copy.',\n 'Always treat `reason` and `removedByName` as optional; the copy must work without them.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const organizationSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[] = [\n organizationInvitationSystemTemplateSpecification,\n organizationMemberRemovedSystemTemplateSpecification,\n];\n"]}
1
+ {"version":3,"file":"organization.system-emails.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/organization.system-emails.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,GAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iDAAiD,EACjD,sBAAsB,GAGvB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,gBAAgB,GAA0B;IAC9C,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,sBAAsB,CAAC,MAAM;CACzC,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,wBAAwB;IACpC,UAAU,EAAE,cAAc,CAAC,I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GAAG,iDAAiD,CACnH,2BAA2B,CAAC,sBAAsB,CAAC,2BAA2B,CAAC,EAC/E,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,6JAA6J;IACtK,IAAI,EAAE,4HAA4H;IAClI,OAAO,EAAE,sGAAsG;IAC/G,SAAS,EAAE,oGAAoG;IAC/G,SAAS,EAAE;QACT,OAAO,EAAE;YACP,OAAO,EAAE,2GAA2G;SACrH;QACD,WAAW,EAAE;YACX,OAAO,EAAE,yFAAyF;SACnG;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,mHAAmH;YAC5H,KAAK,EAAE,CAAC,+GAA+G,CAAC;SACzH;QACD,aAAa,EAAE;YACb,OAAO,EAAE,yJAAyJ;SACnK;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,+DAA+D;KACzE;IACD,mBAAmB,EAAE;QACnB,gFAAgF;QAChF,yFAAyF;KAC1F;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,sBAAsB,EAAE,wBAAwB;QAChD,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,6CAA6C,GAA6C;IACrG,iDAAiD;IACjD,oDAAoD;CACrD,CAAC","sourcesContent":["import {\n CodeDeclarationKind,\n CodeSymbolKind,\n type CodeSymbolRef,\n} from '@wildo-ai/zod-decorators';\nimport {\n SystemEmailTemplateRef,\n SystemEmailTemplateRegistry,\n} from '@wildo-ai/saas-models';\nimport {\n systemEmailTemplateSpecificationFromRegistryEntry,\n SpecificationOwnerKind,\n type SpecificationOwnerRef,\n type SystemEmailTemplateSpecificationConfig,\n} from '~wildo-specifications/_core';\n\n/**\n * Owner ref for engine-shipped system-email template specifications.\n *\n * Mirrors the engine-author bucket used by `engine/features/_engine-feature-shared.ts`\n * and `engine/roles/_engine-role-shared.ts`. Kept inlined per family for\n * grep-friendliness — every engine spec family declares its own typed\n * `ENGINE_OWNER_REF` constant rather than sharing a single import, so a\n * grep for `ENGINE_OWNER_REF` in any one family file lands on the local\n * source-of-truth without crossing module boundaries.\n */\nconst ENGINE_OWNER_REF: SpecificationOwnerRef = {\n ownerId: 'engine',\n ownerKind: SpecificationOwnerKind.ENGINE,\n};\n\nconst TEMPLATE_REF_DECLARATION: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRef',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n};\n\nconst EVENT_DATA_SCHEMA_SYMBOL: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRegistry',\n symbolKind: CodeSymbolKind.CONFIG,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n notes: ['Look up the entry by `SystemEmailTemplateRef.*` to reach the `eventDataSchema` for this template.'],\n};\n\nexport const relationshipInvitationSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.RELATIONSHIP_INVITATION],\n () => ({\n purpose: 'Tell a person that another organization wants to work in their organization, under a relationship it proposes — a firm inviting a client, for example — and give them both ways in: the sign-up page with their address filled in, for a person with no account (#2618), and the sign-in page leading to their invitations, for a person who already has one and chooses there which organization receives the proposal (#2716).',\n tone: 'Professional and plain, from the inviting organization\\'s side: an introduction, not a marketing message, and never an account notice.',\n useWhen: 'Sent once when an administrator of the representing organization invites the owner of a granting organization by email (`relationshipInvitations` `invite`, under a relationship kind that declares `invitations`), to the invited address only.',\n avoidWhen: 'Do not use to invite someone into the REPRESENTING organization itself (that is the organization invitation), nor to tell an existing organization about a proposal — a proposal waits in the granting organization.',\n textSlots: {\n subject: {\n purpose: 'Name the inviting organization and say it invites the recipient to work with it on the application.',\n },\n previewText: {\n purpose: 'Restate the inviting organization and that it would like to work with the recipient.',\n },\n body: {\n purpose: 'Who invites (the inviting organization, by `eventData.representingOrganizationName`), why (`eventData.purpose`, quoted), and what happens next for a person new to the application: create the account with this address and confirm it, then the inviting organization\\'s proposal waits in the new organization for the recipient to accept or decline.',\n notes: [\n 'Say plainly that nothing is shared with the inviting organization until the recipient accepts its proposal.',\n 'Say that the address the recipient signs up with must be this one, because the proposal is delivered to it.',\n ],\n },\n ctaLabel: {\n purpose: 'Primary action label that opens `eventData.signUpUrl`.',\n },\n existingAccountNotice: {\n purpose: 'For a person who already has an account with this address: sign in and open their invitations, where they choose which of their organizations receives the inviting organization\\'s proposal, or decline it.',\n notes: ['Conditional in meaning, never in delivery: the same sentence goes to every recipient, so it must not read as a statement that the recipient has an account.'],\n },\n secondaryCtaLabel: {\n purpose: 'Secondary action label that opens `eventData.signInUrl`.',\n },\n expirationNotice: {\n purpose: 'That the invitation lapses after `eventData.expiresInDays` days, and that ignoring the email is safe.',\n },\n },\n eventData: {\n purpose: 'The inviting organization\\'s name, its stated purpose, the sign-up URL with the address filled in, the sign-in URL returning to the account\\'s Invitations panel, and the validity in days.',\n },\n businessConstraints: [\n 'Never imply the recipient has an account, or has none, or that anything was shared: the email may reach someone who never acts, and the inviting organization must not learn which kind of recipient it reached (#2716). Every recipient gets the same email.',\n 'Sent in the application\\'s primary language: no language of the recipient\\'s is known, or may be looked up, for the same reason.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const organizationMemberRemovedSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.ORGANIZATION_MEMBER_REMOVED],\n () => ({\n purpose: 'Inform the recipient that they were removed from an organization and, when appropriate, explain what happens next to the data they owned or consumed there.',\n tone: 'Respectful, factual, and low-emotion — removal can be sensitive, so the copy must stay neutral and avoid blaming language.',\n useWhen: 'Use whenever an organization member is removed, whether by an administrator or by policy automation.',\n avoidWhen: 'Do not use when the member leaves voluntarily; that deserves its own lifecycle message if present.',\n textSlots: {\n subject: {\n purpose: 'Signal that the recipient has lost access to the organization, without using harsh or accusatory framing.',\n },\n previewText: {\n purpose: 'Restate the removal fact and name the organization so the recipient can triage quickly.',\n },\n body: {\n purpose: 'Short paragraph naming the organization, optionally the admin who performed the removal, and any optional reason.',\n notes: ['Gracefully omit optional `removedByName` / `reason` fragments when the runtime payload does not provide them.'],\n },\n nextStepsHint: {\n purpose: 'Closing paragraph hinting at what happens to the data the recipient had in the organization or how to reach support if they believe this was a mistake.',\n },\n },\n eventData: {\n purpose: 'Organization name plus optional actor name and reason string.',\n },\n businessConstraints: [\n 'Never expose internal IDs, IPs, or policy identifiers in the user-facing copy.',\n 'Always treat `reason` and `removedByName` as optional; the copy must work without them.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const organizationSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[] = [\n relationshipInvitationSystemTemplateSpecification,\n organizationMemberRemovedSystemTemplateSpecification,\n];\n"]}
@@ -31,7 +31,7 @@ const EVENT_DATA_SCHEMA_SYMBOL = {
31
31
  export const securityAlertSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(SystemEmailTemplateRegistry[SystemEmailTemplateRef.SECURITY_ALERT], () => ({
32
32
  purpose: 'Tell the account owner that a sensitive security event just happened on their account and help them react quickly if it was not them.',
33
33
  tone: 'Authoritative, calm, and action-oriented — the recipient must trust the signal immediately without spiraling into panic.',
34
- useWhen: 'Use for any `SecurityAlertType` that needs account-owner awareness. Sent today, always after the change is made and never failing it: `authenticator_added` when a way to sign in is added to an existing account (passkey registration, TOTP confirmation, phone confirmation, a password set, a social account auto-linked by its verified email, an enterprise identity newly linked to an already-active account), as NIST SP 800-63B-4 Sec. 4.1.2.1 requires; `authenticator_removed` when the account holder removes a passkey or unlinks an identity, `mfa_disabled` when they turn TOTP off, and `password_changed` on an in-session change or a completed reset, the notice Sec. 4.5 recommends. `suspicious_login`, `new_api_key` and `other` have words but no sender yet.',
34
+ useWhen: 'Use for any `SecurityAlertType` that needs account-owner awareness. Sent today, always after the change is made and never failing it: `authenticator_added` when a way to sign in is added to an existing account (passkey registration, TOTP confirmation, phone confirmation, a password set, a social account auto-linked by its verified email, an enterprise identity newly linked to an already-active account), as NIST SP 800-63B-4 Sec. 4.1.2.1 requires; `authenticator_removed` when the account holder removes a passkey or unlinks an identity, `mfa_disabled` when they turn TOTP off, and `password_changed` on an in-session change or a completed reset, the notice Sec. 4.5 recommends; `chat_account_linked` when a member completes a chat-account link (`chatIdentityLinks.completeLink`), since from then on what that Slack or Teams account approves or asks for runs with the member\'s permissions, and its button opens the member\'s chat accounts, where they unlink it. `suspicious_login`, `new_api_key` and `other` have words but no sender yet.',
35
35
  avoidWhen: 'Do not use for routine device-login notifications; those live in the dedicated new-device-login template.',
36
36
  textSlots: {
37
37
  subject: {
@@ -42,13 +42,13 @@ export const securityAlertSystemTemplateSpecification = systemEmailTemplateSpeci
42
42
  notes: ['Never include precise IP addresses, device fingerprints, or full alert descriptions in the preview.'],
43
43
  },
44
44
  body: {
45
- purpose: 'Short paragraph explaining what kind of event happened, in the words the template labels author for each `SecurityAlertType` (`suspicious_login`, `password_changed`, `mfa_disabled`, `new_api_key`, `authenticator_added`, `authenticator_removed`, `other`). For `authenticator_added` and `authenticator_removed` it names which authenticator, from `eventData.authMethod`, and says "a sign-in method" when the sender cannot name one. Never broaden a kind\'s meaning.',
45
+ purpose: 'Short paragraph explaining what kind of event happened, in the words the template labels author for each `SecurityAlertType` (`suspicious_login`, `password_changed`, `mfa_disabled`, `new_api_key`, `authenticator_added`, `authenticator_removed`, `chat_account_linked`, `other`). For `authenticator_added` and `authenticator_removed` it names which authenticator, from `eventData.authMethod`, and says "a sign-in method" when the sender cannot name one. Never broaden a kind\'s meaning.',
46
46
  },
47
47
  eventDetailsLabel: {
48
48
  purpose: 'Label for the structured details block that surfaces timestamp and, when available, IP address and location.',
49
49
  },
50
50
  ctaLabel: {
51
- purpose: 'Primary action label that sends the recipient to `eventData.securitySettingsUrl`.',
51
+ purpose: 'Primary action label that sends the recipient to `eventData.securitySettingsUrl`: the settings home, or the page where they undo what the alert reports (their chat accounts, for `chat_account_linked`).',
52
52
  },
53
53
  reassuranceFootnote: {
54
54
  purpose: 'Closing guidance for the "this was me" case that tells the recipient no further action is needed.',
@@ -69,36 +69,36 @@ export const securityAlertSystemTemplateSpecification = systemEmailTemplateSpeci
69
69
  },
70
70
  }));
71
71
  export const newDeviceLoginSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(SystemEmailTemplateRegistry[SystemEmailTemplateRef.NEW_DEVICE_LOGIN], () => ({
72
- purpose: 'Let the account owner confirm that a login from a new device was legitimate, and offer a fast path to revoke access if it was not.',
73
- tone: 'Informational and reassuring with a clear corrective action — most recipients just need acknowledgment, a minority need the revoke CTA to stand out.',
74
- useWhen: 'Use when a successful authentication came from a device signature the account has not seen recently.',
72
+ purpose: 'Tell the account holder that someone just signed in to their account from a browser or device they have not used, so a sign-in they did not make is noticed, and send them to where they can sign that session out.',
73
+ tone: 'Informational and reassuring with a clear corrective action — most recipients just need acknowledgment, a minority need the link to sign the session out to stand out.',
74
+ useWhen: 'Sent by the engine when a session starts from a client the account has not signed in from in the last 180 days, and the account already knows another client (the account\'s first sign-in raises nothing). A client is the install when the application identifies one (`x-client-instance-id`), otherwise the browser family and the operating-system family.',
75
75
  avoidWhen: 'Do not use for failed login attempts or broader security alerts; those belong to the security-alert template.',
76
76
  textSlots: {
77
77
  subject: {
78
- purpose: 'Signal a new-device login without implying it was necessarily suspicious.',
78
+ purpose: 'Signal a sign-in from a new browser or device without implying it was necessarily suspicious.',
79
79
  },
80
80
  previewText: {
81
- purpose: 'Short preview restating the event category and hinting at the revoke CTA.',
81
+ purpose: 'Short preview restating the event and hinting at where to sign the session out.',
82
82
  },
83
83
  body: {
84
84
  purpose: 'Short paragraph summarizing the login event and giving the recipient a clear "if this was you, no action needed" framing.',
85
85
  },
86
86
  deviceDetailsLabel: {
87
- purpose: 'Label for the details block showing device type, browser, operating system, IP, optional location, and login time.',
87
+ purpose: 'Label for the details block showing the browser, the operating system, the address and the time of the sign-in.',
88
88
  },
89
89
  ctaLabel: {
90
- purpose: 'Primary action label that sends the recipient to `eventData.revokeAccessUrl`.',
90
+ purpose: 'Primary action label that sends the recipient to `eventData.securitySettingsUrl`, the settings where their sessions are listed and can be signed out.',
91
91
  },
92
92
  reassuranceFootnote: {
93
93
  purpose: 'Closing line for the recipient who recognizes the device, confirming that no further action is needed.',
94
94
  },
95
95
  },
96
96
  eventData: {
97
- purpose: 'Device signature (type, browser, OS), IP, optional location, login timestamp, and revoke-access URL.',
98
- notes: ['The `location` field is optional and sometimes coarse — do not imply exact-address accuracy in the copy.'],
97
+ purpose: 'The browser family and operating-system family the session signed in from (values of `SessionClientBrowser` and `SessionClientOperatingSystem`, shown through `vocabularyWord`), its address, the time, and the settings URL.',
98
+ notes: ['There is no device name and no location: nothing records either, so the copy must not promise them.', 'The address is the one the application sees behind its proxies; do not present it as a place.'],
99
99
  },
100
100
  businessConstraints: [
101
- 'Never include session tokens or credential URLs; the revoke flow handles access changes.',
101
+ 'Never include session tokens or credential URLs; signing a session out happens in the security settings the email links to.',
102
102
  ],
103
103
  codeHandling: {
104
104
  definitionOwner: ENGINE_OWNER_REF,