@wildo-ai/saas-specifications 1.1.3 → 1.1.5

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 (950) hide show
  1. package/dist/assurance/external-framework-mapping.json +1228 -0
  2. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +34 -0
  3. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -0
  4. package/dist/esm/_core/application-maturity/application-maturity-validation.js +66 -0
  5. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -0
  6. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts +3 -0
  7. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -0
  8. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +48 -0
  9. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -0
  10. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +201 -0
  11. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +306 -0
  13. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -0
  14. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +304 -0
  15. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -0
  16. package/dist/esm/_core/application-specification-family-identity.schemas.js +314 -0
  17. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -0
  18. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +2 -1
  19. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js +4 -1
  21. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js.map +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 +5 -4
  24. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
  25. package/dist/esm/_core/assertions/assertion-specification.schemas.js +4 -1
  26. package/dist/esm/_core/assertions/assertion-specification.schemas.js.map +1 -1
  27. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +5 -4
  28. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-asset.schemas.js +7 -4
  30. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  31. package/dist/esm/_core/brand/brand-audience.schemas.d.ts +31 -0
  32. package/dist/esm/_core/brand/brand-audience.schemas.d.ts.map +1 -0
  33. package/dist/esm/_core/brand/brand-audience.schemas.js +29 -0
  34. package/dist/esm/_core/brand/brand-audience.schemas.js.map +1 -0
  35. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +3 -2
  36. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
  37. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js +5 -2
  38. package/dist/esm/_core/brand/brand-authored-metadata.schemas.js.map +1 -1
  39. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +4 -4
  40. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +12 -9
  41. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
  42. package/dist/esm/_core/brand/brand-logo-direction.schemas.js +12 -7
  43. package/dist/esm/_core/brand/brand-logo-direction.schemas.js.map +1 -1
  44. package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
  45. package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
  46. package/dist/esm/_core/brand/brand-snapshot-validation.js +1 -8
  47. package/dist/esm/_core/brand/brand-snapshot-validation.js.map +1 -1
  48. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -12
  49. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/brand/brand-snapshot.schemas.js +7 -0
  51. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  52. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +2 -2
  53. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
  54. package/dist/esm/_core/brand/brand.family-aspects.js +12 -1
  55. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -1
  56. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +252 -2
  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 +19 -1
  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 +121 -1
  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 +215 -2
  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 +703 -14
  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 +536 -7
  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 +82 -2
  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 +3 -2
  72. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
  73. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js +5 -2
  74. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js.map +1 -1
  75. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +3 -3
  76. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +1 -1
  77. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -1
  78. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +4 -3
  79. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +4 -1
  81. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  82. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +36 -0
  83. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/business-semantics.specifications.schemas.js +52 -1
  85. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  86. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +22 -0
  87. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -0
  88. package/dist/esm/_core/capability-composition/capability-composition-validation.js +89 -0
  89. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -0
  90. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts +3 -0
  91. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts.map +1 -0
  92. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js +26 -0
  93. package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js.map +1 -0
  94. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +141 -0
  95. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -0
  96. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +147 -0
  97. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -0
  98. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +160 -0
  99. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +124 -4
  101. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  102. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +95 -0
  103. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -0
  104. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js +85 -0
  105. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js.map +1 -0
  106. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +743 -14
  107. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +699 -22
  109. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  110. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +98 -6
  111. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
  112. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +197 -8
  113. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -1
  114. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +64 -0
  115. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -0
  116. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +283 -0
  117. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -0
  118. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +30 -1
  120. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +1 -1
  122. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -1
  123. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +220 -4
  124. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  125. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +149 -2
  126. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  127. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +70 -3
  128. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  129. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +75 -3
  130. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  131. package/dist/esm/_core/composite-view-specification.schemas.d.ts +14 -0
  132. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  133. package/dist/esm/_core/composite-view-specification.schemas.js +13 -0
  134. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  135. package/dist/esm/_core/cross-registry-assertions.d.ts +6 -4
  136. package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
  137. package/dist/esm/_core/cross-registry-assertions.js +7 -5
  138. package/dist/esm/_core/cross-registry-assertions.js.map +1 -1
  139. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +5 -4
  140. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +5 -2
  142. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  143. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +30 -0
  144. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  145. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +99 -6
  146. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  147. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +58 -0
  148. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -0
  149. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +71 -0
  150. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -0
  151. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +37 -0
  152. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -0
  153. package/dist/esm/_core/experience-plan/experience-plan-validation.js +83 -0
  154. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -0
  155. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts +3 -0
  156. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -0
  157. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +78 -0
  158. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -0
  159. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +285 -0
  160. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -0
  161. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +293 -0
  162. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -0
  163. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +3 -2
  164. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js +5 -2
  166. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js.map +1 -1
  167. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +9 -2
  168. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  169. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +7 -0
  170. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  171. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts +18 -0
  172. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts.map +1 -0
  173. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js +21 -0
  174. package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js.map +1 -0
  175. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +19 -0
  176. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +23 -0
  178. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  179. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  180. package/dist/esm/_core/family-aspects.registry.js +22 -1
  181. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  182. package/dist/esm/_core/family-aspects.schemas.d.ts +64 -1
  183. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  184. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  185. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +27 -27
  186. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
  187. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +1 -1
  188. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
  189. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  190. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +6 -1
  191. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  192. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -15
  193. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  194. package/dist/esm/_core/guidance-flow-specification.schemas.js +12 -11
  195. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  196. package/dist/esm/_core/index.d.ts +16 -0
  197. package/dist/esm/_core/index.d.ts.map +1 -1
  198. package/dist/esm/_core/index.js +16 -0
  199. package/dist/esm/_core/index.js.map +1 -1
  200. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +52 -0
  201. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -0
  202. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +50 -0
  203. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -0
  204. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +27 -0
  205. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -0
  206. package/dist/esm/_core/integration-plan/integration-plan-validation.js +63 -0
  207. package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -0
  208. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts +3 -0
  209. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -0
  210. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +52 -0
  211. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -0
  212. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +168 -0
  213. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -0
  214. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +170 -0
  215. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -0
  216. package/dist/esm/_core/market/feature-benefit.schemas.d.ts +6 -5
  217. package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
  218. package/dist/esm/_core/market/feature-benefit.schemas.js +5 -2
  219. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  220. package/dist/esm/_core/market/market-alternative.schemas.d.ts +4 -3
  221. package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
  222. package/dist/esm/_core/market/market-alternative.schemas.js +4 -1
  223. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  224. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +11 -9
  225. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
  226. package/dist/esm/_core/market/market-authored-metadata.schemas.js +13 -10
  227. package/dist/esm/_core/market/market-authored-metadata.schemas.js.map +1 -1
  228. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +5 -4
  229. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
  230. package/dist/esm/_core/market/market-buying-journey.schemas.js +4 -1
  231. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  232. package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
  233. package/dist/esm/_core/market/market-channel.schemas.d.ts +6 -5
  234. package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
  235. package/dist/esm/_core/market/market-channel.schemas.js +6 -3
  236. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  237. package/dist/esm/_core/market/market-gain.schemas.d.ts +4 -3
  238. package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
  239. package/dist/esm/_core/market/market-gain.schemas.js +4 -1
  240. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  241. package/dist/esm/_core/market/market-icp.schemas.d.ts +12 -11
  242. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  243. package/dist/esm/_core/market/market-icp.schemas.js +12 -9
  244. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  245. package/dist/esm/_core/market/market-job.schemas.d.ts +4 -3
  246. package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
  247. package/dist/esm/_core/market/market-job.schemas.js +4 -1
  248. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  249. package/dist/esm/_core/market/market-message-template.schemas.d.ts +5 -4
  250. package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
  251. package/dist/esm/_core/market/market-message-template.schemas.js +5 -2
  252. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  253. package/dist/esm/_core/market/market-objection.schemas.d.ts +4 -3
  254. package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
  255. package/dist/esm/_core/market/market-objection.schemas.js +4 -1
  256. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  257. package/dist/esm/_core/market/market-pain.schemas.d.ts +4 -3
  258. package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
  259. package/dist/esm/_core/market/market-pain.schemas.js +4 -1
  260. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  261. package/dist/esm/_core/market/market-persona.schemas.d.ts +5 -4
  262. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  263. package/dist/esm/_core/market/market-persona.schemas.js +5 -2
  264. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  265. package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
  266. package/dist/esm/_core/market/market-proof.schemas.d.ts +4 -3
  267. package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
  268. package/dist/esm/_core/market/market-proof.schemas.js +4 -1
  269. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  270. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +54 -54
  271. package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
  272. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +4 -3
  273. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
  274. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +4 -1
  275. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  276. package/dist/esm/_core/market/market-trigger.schemas.d.ts +4 -3
  277. package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
  278. package/dist/esm/_core/market/market-trigger.schemas.js +4 -1
  279. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  280. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  281. package/dist/esm/_core/market/market.family-aspects.js +25 -1
  282. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  283. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +27 -22
  284. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  285. package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -12
  286. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  287. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +21 -21
  288. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +30 -16
  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 +34 -12
  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 +24 -1
  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 +78 -47
  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 +62 -24
  298. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  299. package/dist/esm/_core/provider-specification.schemas.d.ts +19 -0
  300. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
  301. package/dist/esm/_core/provider-specification.schemas.js +0 -20
  302. package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
  303. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
  304. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -2
  305. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +3 -2
  306. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
  307. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js +5 -2
  308. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js.map +1 -1
  309. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -4
  310. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  311. package/dist/esm/_core/requirements/requirements.family-aspects.js +3 -1
  312. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  313. package/dist/esm/_core/resource-specification.schemas.d.ts +8 -0
  314. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  315. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  316. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +3 -2
  317. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
  318. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js +5 -2
  319. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js.map +1 -1
  320. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +2 -2
  321. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +5 -0
  322. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  323. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js +1 -8
  324. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  325. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +2 -2
  326. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +1 -1
  327. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -1
  328. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  329. package/dist/esm/_core/utils/extract-field-specs.js +4 -2
  330. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  331. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +3 -2
  332. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
  333. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js +5 -2
  334. package/dist/esm/_core/vision/vision-authored-metadata.schemas.js.map +1 -1
  335. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +2 -2
  336. package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
  337. package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
  338. package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
  339. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
  340. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
  341. package/dist/esm/_core/vision/vision.family-aspects.js +1 -1
  342. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -1
  343. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +45 -0
  344. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -0
  345. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +55 -0
  346. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -0
  347. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +37 -0
  348. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -0
  349. package/dist/esm/_core/website-plan/website-plan-validation.js +77 -0
  350. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -0
  351. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts +3 -0
  352. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -0
  353. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +35 -0
  354. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -0
  355. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +194 -0
  356. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -0
  357. package/dist/esm/_core/website-plan/website-plan.schemas.js +193 -0
  358. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -0
  359. package/dist/esm/_core/zod-core-nameability.d.ts +47 -0
  360. package/dist/esm/_core/zod-core-nameability.d.ts.map +1 -0
  361. package/dist/esm/_core/zod-core-nameability.js +1 -0
  362. package/dist/esm/_core/zod-core-nameability.js.map +1 -0
  363. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +86 -0
  364. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -0
  365. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +96 -0
  366. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -0
  367. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +139 -34
  368. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  369. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +182 -11
  370. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  371. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +71 -2
  372. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  373. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +88 -1
  374. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  375. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts +14 -0
  376. package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts.map +1 -0
  377. package/dist/esm/application-creation/creator-inputs.family-aspects.js +17 -0
  378. package/dist/esm/application-creation/creator-inputs.family-aspects.js.map +1 -0
  379. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
  380. package/dist/esm/application-creation/document-facts.family-aspects.js +25 -1
  381. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -1
  382. package/dist/esm/application-creation/document-release-policy.family-aspects.js +1 -1
  383. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -1
  384. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +14 -48
  385. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  386. package/dist/esm/application-creation/journey.application-creation.schemas.js +52 -52
  387. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  388. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +209 -495
  389. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  390. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +257 -534
  391. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  392. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +10 -0
  393. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  394. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +10 -0
  395. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  396. package/dist/esm/application-creation.exports.d.ts +73 -8
  397. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  398. package/dist/esm/application-creation.exports.js +103 -8
  399. package/dist/esm/application-creation.exports.js.map +1 -1
  400. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +24 -0
  401. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +1 -0
  402. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +24 -0
  403. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -0
  404. package/dist/esm/assurance/application-document-publication.schemas.d.ts +49 -0
  405. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  406. package/dist/esm/assurance/application-document-publication.schemas.js +51 -0
  407. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  408. package/dist/esm/assurance/application-document-release-set.schemas.d.ts +161 -0
  409. package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -0
  410. package/dist/esm/assurance/application-document-release-set.schemas.js +138 -0
  411. package/dist/esm/assurance/application-document-release-set.schemas.js.map +1 -0
  412. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts +28 -0
  413. package/dist/esm/assurance/application-risk-register.family-aspects.d.ts.map +1 -0
  414. package/dist/esm/assurance/application-risk-register.family-aspects.js +58 -0
  415. package/dist/esm/assurance/application-risk-register.family-aspects.js.map +1 -0
  416. package/dist/esm/assurance/application-risk-register.schemas.d.ts +172 -0
  417. package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -0
  418. package/dist/esm/assurance/application-risk-register.schemas.js +192 -0
  419. package/dist/esm/assurance/application-risk-register.schemas.js.map +1 -0
  420. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +177 -0
  421. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -0
  422. package/dist/esm/assurance/application-risk-signals.derivations.js +229 -0
  423. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -0
  424. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +257 -13
  425. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  426. package/dist/esm/assurance/assurance-authority-basis.definitions.js +836 -69
  427. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  428. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +99 -33
  429. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  430. package/dist/esm/assurance/assurance-authority-basis.schemas.js +38 -1
  431. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  432. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
  433. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  434. package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
  435. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  436. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  437. package/dist/esm/assurance/assurance-document-system.definitions.js +99 -8
  438. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  439. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +133 -41
  440. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  441. package/dist/esm/assurance/assurance-document-system.schemas.js +60 -11
  442. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  443. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +470 -0
  444. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -0
  445. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +451 -0
  446. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -0
  447. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +0 -33
  448. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  449. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +3339 -159
  450. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  451. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +21 -0
  452. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  453. package/dist/esm/assurance/assurance-foundation.schemas.js +21 -0
  454. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  455. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +32 -2
  456. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  457. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +148 -5
  458. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  459. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +257 -14
  460. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  461. package/dist/esm/assurance/assurance-program-generation.schemas.js +588 -45
  462. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  463. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +32 -8
  464. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
  465. package/dist/esm/assurance/assurance-program.family-aspects.js +288 -10
  466. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  467. package/dist/esm/assurance/assurance-program.schemas.d.ts +1182 -333
  468. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  469. package/dist/esm/assurance/assurance-program.schemas.js +460 -68
  470. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  471. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  472. package/dist/esm/assurance/assurance-source-registry.definitions.js +70 -2
  473. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  474. package/dist/esm/assurance/assurance-sources.schemas.d.ts +17 -0
  475. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  476. package/dist/esm/assurance/assurance-sources.schemas.js +17 -0
  477. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  478. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  479. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +205 -3
  480. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  481. package/dist/esm/assurance/document-publication.family-aspects.js +1 -1
  482. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -1
  483. package/dist/esm/assurance/document-release-set.family-aspects.d.ts +11 -0
  484. package/dist/esm/assurance/document-release-set.family-aspects.d.ts.map +1 -0
  485. package/dist/esm/assurance/document-release-set.family-aspects.js +36 -0
  486. package/dist/esm/assurance/document-release-set.family-aspects.js.map +1 -0
  487. package/dist/esm/assurance/governed-document-release.d.ts +211 -0
  488. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -0
  489. package/dist/esm/assurance/governed-document-release.js +314 -0
  490. package/dist/esm/assurance/governed-document-release.js.map +1 -0
  491. package/dist/esm/assurance.exports.d.ts +5 -0
  492. package/dist/esm/assurance.exports.d.ts.map +1 -1
  493. package/dist/esm/assurance.exports.js +5 -0
  494. package/dist/esm/assurance.exports.js.map +1 -1
  495. package/dist/esm/companion-exports.d.ts +135 -11
  496. package/dist/esm/companion-exports.d.ts.map +1 -1
  497. package/dist/esm/companion-exports.js.map +1 -1
  498. package/dist/esm/engine/_bootstrap.d.ts +1 -1
  499. package/dist/esm/engine/_bootstrap.js +1 -1
  500. package/dist/esm/engine/_bootstrap.js.map +1 -1
  501. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +1 -1
  502. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
  503. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  504. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +0 -23
  505. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +110 -28
  507. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts +1 -1
  509. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +1 -1
  510. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  512. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +57 -0
  514. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +412 -0
  516. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/auth/resources/index.d.ts +2 -0
  518. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  519. package/dist/esm/engine/auth/resources/index.js +2 -0
  520. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  521. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +4 -4
  522. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  523. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +57 -6
  524. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  525. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts +9 -0
  526. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js +141 -0
  528. package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +4 -1
  530. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  531. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +10 -6
  532. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  533. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  534. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +5 -4
  535. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  536. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts +4 -0
  537. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js +129 -0
  539. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts +19 -7
  541. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +24 -13
  543. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +0 -40
  545. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  546. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +14 -27
  547. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  548. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +8 -2
  549. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  550. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +16 -3
  551. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  552. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +5 -2
  553. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  554. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +10 -16
  555. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  556. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +15 -5
  558. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts +9 -0
  560. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js +164 -0
  562. package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts +14 -0
  564. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts.map +1 -0
  565. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +124 -0
  566. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -0
  567. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts +9 -0
  568. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts.map +1 -0
  569. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js +123 -0
  570. package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js.map +1 -0
  571. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts +11 -0
  572. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts.map +1 -0
  573. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js +172 -0
  574. package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js.map +1 -0
  575. package/dist/esm/engine/billing/resources/index.d.ts +4 -0
  576. package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
  577. package/dist/esm/engine/billing/resources/index.js +4 -0
  578. package/dist/esm/engine/billing/resources/index.js.map +1 -1
  579. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +3 -3
  580. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +3 -3
  581. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  582. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  584. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +92 -36
  585. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  586. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +77 -0
  587. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
  588. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +375 -0
  589. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
  590. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +1 -1
  591. package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
  592. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  593. package/dist/esm/engine/compliance/resources/index.js +2 -0
  594. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  595. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +16 -0
  596. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +183 -0
  598. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -0
  599. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  600. package/dist/esm/engine/engine-resource-specifications.registry.js +28 -0
  601. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  602. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  603. package/dist/esm/engine/errors/error-messages.specification.js +123 -19
  604. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  605. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  606. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -1
  607. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  608. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +1 -0
  610. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  612. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  613. package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -1
  614. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  615. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  616. package/dist/esm/engine/files/resources/files.resource.specification.js +15 -3
  617. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  618. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -0
  619. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  620. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +1 -1
  621. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  622. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  623. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +14 -0
  624. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -0
  625. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +184 -0
  626. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -0
  627. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js +3 -3
  628. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js.map +1 -1
  629. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
  630. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js +3 -2
  631. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js.map +1 -1
  632. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
  633. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js +18 -0
  634. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js +21 -0
  638. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js +1 -1
  640. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js.map +1 -1
  641. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts +5 -0
  642. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -0
  643. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +82 -0
  644. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -0
  645. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  646. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +6 -5
  647. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  648. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts +4 -0
  649. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts.map +1 -0
  650. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js +22 -0
  651. package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js.map +1 -0
  652. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts +4 -0
  653. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts.map +1 -0
  654. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +22 -0
  655. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -0
  656. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts +5 -0
  657. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -0
  658. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +81 -0
  659. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -0
  660. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +4 -2
  662. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  663. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +4 -4
  664. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
  665. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js +3 -2
  667. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js.map +1 -1
  668. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js +4 -4
  669. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js +1 -1
  671. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js.map +1 -1
  672. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts +4 -0
  673. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts.map +1 -0
  674. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js +22 -0
  675. package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js.map +1 -0
  676. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
  679. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js +4 -4
  680. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js.map +1 -1
  681. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js +1 -1
  682. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js.map +1 -1
  683. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +4 -0
  684. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +1 -0
  685. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +21 -0
  686. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +1 -0
  687. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js +1 -1
  688. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js.map +1 -1
  689. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  690. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  691. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js +1 -1
  692. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js.map +1 -1
  693. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js +1 -1
  694. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js.map +1 -1
  695. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
  696. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js +20 -2
  697. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js.map +1 -1
  698. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts +5 -0
  699. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts.map +1 -0
  700. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js +177 -0
  701. package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js.map +1 -0
  702. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts +5 -0
  703. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts.map +1 -0
  704. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js +22 -0
  705. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js.map +1 -0
  706. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
  707. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js +10 -2
  708. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js.map +1 -1
  709. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts +5 -0
  710. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts.map +1 -0
  711. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js +166 -0
  712. package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js.map +1 -0
  713. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts +5 -0
  714. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts.map +1 -0
  715. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js +122 -0
  716. package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js.map +1 -0
  717. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts +5 -0
  718. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts.map +1 -0
  719. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js +152 -0
  720. package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js.map +1 -0
  721. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
  722. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js +13 -0
  723. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js.map +1 -1
  724. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  725. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  726. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts +5 -0
  727. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts.map +1 -0
  728. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js +92 -0
  729. package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js.map +1 -0
  730. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts +5 -0
  731. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -0
  732. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +29 -0
  733. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -0
  734. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js +1 -1
  735. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js.map +1 -1
  736. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js +1 -1
  737. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js.map +1 -1
  738. package/dist/esm/engine/frontend-components/index.d.ts +12 -0
  739. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  740. package/dist/esm/engine/frontend-components/index.js +40 -0
  741. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  742. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts +25 -1
  743. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
  744. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js +16 -2
  745. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js.map +1 -1
  746. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js +1 -1
  747. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js.map +1 -1
  748. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts +9 -0
  749. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
  750. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js +91 -7
  751. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js.map +1 -1
  752. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
  753. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js +9 -3
  754. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js.map +1 -1
  755. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
  756. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js +41 -1
  757. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js.map +1 -1
  758. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js +2 -2
  759. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js.map +1 -1
  760. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
  761. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js +19 -1
  762. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js.map +1 -1
  763. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js +3 -3
  764. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js.map +1 -1
  765. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +21 -1
  767. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  768. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +2 -0
  769. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  770. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -0
  771. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -0
  772. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +48 -0
  773. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -0
  774. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  775. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +3 -2
  776. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  777. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +77 -3
  778. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  779. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +11 -3
  780. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  781. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +26 -1
  782. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  783. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +17 -8
  784. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  785. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +49 -0
  786. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -0
  787. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +293 -0
  788. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -0
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +5 -5
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  791. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  792. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +6 -6
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  794. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +3 -3
  795. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  796. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  797. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
  798. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  799. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +3 -1
  800. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  801. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +27 -5
  802. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  803. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +1 -1
  804. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  805. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +31 -12
  806. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  807. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  808. package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
  809. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  810. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  811. package/dist/esm/engine/providers/apple.provider.specification.js +12 -1
  812. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  813. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
  814. package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
  815. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
  816. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/providers/github.provider.specification.js +12 -1
  818. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  819. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  820. package/dist/esm/engine/providers/google.provider.specification.js +12 -1
  821. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  822. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  823. package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
  824. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  825. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  826. package/dist/esm/engine/providers/microsoft.provider.specification.js +22 -1
  827. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  828. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
  830. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  831. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  832. package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
  833. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  834. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
  836. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
  837. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  838. package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
  839. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  840. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  841. package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
  842. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  843. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  844. package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
  845. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  846. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  847. package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
  848. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  849. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts +2 -0
  850. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts.map +1 -0
  851. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +21 -0
  852. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -0
  853. package/dist/esm/engine/roles/index.d.ts +4 -3
  854. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  855. package/dist/esm/engine/roles/index.js +6 -4
  856. package/dist/esm/engine/roles/index.js.map +1 -1
  857. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +5 -3
  858. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  860. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  861. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -1
  862. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -2
  864. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  865. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -0
  866. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  867. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -3
  868. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  869. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -2
  870. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -2
  871. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  872. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
  873. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +1 -1
  874. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  875. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
  876. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +3 -3
  877. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  878. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  879. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  880. package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
  881. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +1 -0
  883. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  884. package/dist/esm/engine/users/resources/users.resource.specification.js +2 -2
  885. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  886. package/dist/esm/index.d.ts +39 -0
  887. package/dist/esm/index.d.ts.map +1 -1
  888. package/dist/esm/index.js +39 -0
  889. package/dist/esm/index.js.map +1 -1
  890. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +134 -0
  891. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -0
  892. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +142 -0
  893. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -0
  894. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +35 -0
  895. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts.map +1 -0
  896. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js +45 -0
  897. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js.map +1 -0
  898. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts +33 -0
  899. package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts.map +1 -0
  900. package/dist/esm/technical-documentation/application-documentation-plan-validation.js +77 -0
  901. package/dist/esm/technical-documentation/application-documentation-plan-validation.js.map +1 -0
  902. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts +3 -0
  903. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts.map +1 -0
  904. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js +40 -0
  905. package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js.map +1 -0
  906. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +122 -0
  907. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -0
  908. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +138 -0
  909. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -0
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +7 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js +1 -1
  914. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js.map +1 -1
  915. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js +1 -1
  916. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js.map +1 -1
  917. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js +1 -1
  918. package/dist/esm/technical-documentation/technical-documentation-common.schemas.js.map +1 -1
  919. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js +1 -1
  920. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js.map +1 -1
  921. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js +1 -1
  922. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js.map +1 -1
  923. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js +1 -1
  924. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js.map +1 -1
  925. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +14 -0
  926. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  927. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +16 -3
  928. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  929. package/dist/esm/technical-documentation.exports.d.ts +4 -0
  930. package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
  931. package/dist/esm/technical-documentation.exports.js +24 -0
  932. package/dist/esm/technical-documentation.exports.js.map +1 -1
  933. package/dist/tsconfig.build.tsbuildinfo +1 -1
  934. package/package.json +8 -13
  935. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -103
  936. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +0 -1
  937. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js +0 -76
  938. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js.map +0 -1
  939. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +0 -108
  940. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +0 -1
  941. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +0 -119
  942. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +0 -1
  943. package/dist/esm/application-creation-playbook-runtime.exports.d.ts +0 -3
  944. package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +0 -1
  945. package/dist/esm/application-creation-playbook-runtime.exports.js +0 -3
  946. package/dist/esm/application-creation-playbook-runtime.exports.js.map +0 -1
  947. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
  948. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
  949. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
  950. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
@@ -133,7 +133,7 @@ function buildWebhookConfigBaseSpecification(resourceType, memberName) {
133
133
  },
134
134
  }),
135
135
  applicationPublicKeyPem: schemaShape.applicationPublicKeyPem.stringSpec({
136
- meaning: 'PEM public half of `JwtPrivateKeys.APPLICATION_WEBHOOK`, surfaced on READ so customers verify JWT `X-Webhook-Signature` bodies.',
136
+ meaning: 'PEM public half of `JwtPrivateKeys.APPLICATION_WEBHOOK`, surfaced on READ so customers verify JWT `x-wildo-webhook-signature` bodies.',
137
137
  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.',
138
138
  }),
139
139
  createdAt: schemaShape.createdAt.dateSpec({
@@ -203,7 +203,7 @@ function buildWebhookConfigBaseSpecification(resourceType, memberName) {
203
203
  [Op.UPDATE]: {
204
204
  purpose: 'Persist endpoint URL edits, enable toggles, and metadata updates for the current scope’s singleton.',
205
205
  outcome: 'The next M2M notification fire sees the new routing truth immediately after commit.',
206
- whenToUse: 'Use in admin “save endpoints” flows or through trusted automation, still via repository or dedicated controller surfaces rather than a generic public PUT API.',
206
+ 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.',
207
207
  responseStatuses: [
208
208
  { code: HttpResponseStatusCode.OK_200, meaning: 'The endpoint list / `enabled` toggles / metadata were persisted and the updated singleton config is returned.' },
209
209
  ],
@@ -226,12 +226,12 @@ function buildWebhookConfigBaseSpecification(resourceType, memberName) {
226
226
  },
227
227
  [WebhookConfig_Operations.TEST_ENDPOINT]: {
228
228
  operationId: WebhookConfig_Operations.TEST_ENDPOINT,
229
- purpose: 'Send a single synthetic request to a chosen `endpointId` to prove reachability and signature verification (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`.',
229
+ 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`.',
230
230
  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.',
231
231
  whenToUse: 'Run after any URL/secret/rotation event that could break downstream listeners.',
232
232
  importance: FieldSemanticImportance.PRIMARY,
233
233
  responseStatuses: [
234
- { code: HttpResponseStatusCode.OK_200, meaning: 'The synthetic request was attempted and a diagnostic result (reachability, response status, signature-verification outcome) 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.' },
234
+ { 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.' },
235
235
  ],
236
236
  errorScenarios: [
237
237
  { 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.' },
@@ -329,7 +329,7 @@ function buildWebhookConfigBaseSpecification(resourceType, memberName) {
329
329
  businessConstraints: [
330
330
  'Each scope owns at most one config row: treat this as a singleton resource, not a list resource with arbitrary many configs.',
331
331
  '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.',
332
- '`testEndpoint` probes travel the SAME signed transport as real deliveries (same key, same claim shape, same `X-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.',
332
+ '`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.',
333
333
  '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.',
334
334
  '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.',
335
335
  '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).',
@@ -369,7 +369,7 @@ function buildWebhookConfigSpecification(resourceType, memberName) {
369
369
  },
370
370
  },
371
371
  verification: {
372
- purpose: 'The derived `applicationPublicKeyPem` receivers use to verify the JWT `X-Webhook-Signature`.',
372
+ purpose: 'The derived `applicationPublicKeyPem` receivers use to verify the JWT `x-wildo-webhook-signature`.',
373
373
  whenToUse: 'When a receiver sets up or rotates signature verification.',
374
374
  textSlots: {
375
375
  title: { purpose: 'Label the signature-verification key block.' },
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-config.resource.specification.js","sourceRoot":"","sources":["../../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IACrI,OAAO,8CAA8C,CACnD,mCAAmC,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,6BAA6B,CAAC,KAAK,CAAC,CAAC,EAC9G,IAAI,EACJ,GAAG,EAAE,CAAC,CAAC;QACL,MAAM,EAAE;YACN,OAAO,EAAE,+NAA+N;YACxO,cAAc,EAAE,qJAAqJ;YACrK,QAAQ,EAAE;gBACR,MAAM,EAAE;oBACN,OAAO,EAAE,uEAAuE;oBAChF,SAAS,EAAE,2EAA2E;oBACtF,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE;wBAC7D,WAAW,EAAE,EAAE,OAAO,EAAE,0FAA0F,EAAE;qBACrH;iBACF;gBACD,SAAS,EAAE;oBACT,OAAO,EAAE,8FAA8F;oBACvG,SAAS,EAAE,0DAA0D;oBACrE,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE;wBAC/D,WAAW,EAAE,EAAE,OAAO,EAAE,+GAA+G,EAAE;qBAC1I;iBACF;gBACD,YAAY,EAAE;oBACZ,OAAO,EAAE,8FAA8F;oBACvG,SAAS,EAAE,4DAA4D;oBACvE,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE;wBACjE,WAAW,EAAE,EAAE,OAAO,EAAE,8FAA8F,EAAE;qBACzH;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, flags, created/updated timestamps).',\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-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).', errorCode: 'VALIDATION_FAILED' },\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.',\n whenToUse: 'Use in admin “save endpoints” flows or through trusted automation, still via repository or dedicated controller surfaces rather than a generic public PUT API.',\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 (e.g. a non-HTTPS URL or a duplicate endpoint id).', errorCode: 'VALIDATION_FAILED' },\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 prove reachability and signature verification (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, response status, signature-verification outcome) 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.', errorCode: 'VALIDATION_FAILED' },\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-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; 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.' },\n description: { purpose: 'Clarify that disabling stops new deliveries but keeps the endpoint configuration intact.' },\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.' },\n description: { purpose: 'Note that each enabled endpoint receives every dispatched event; disabled endpoints are skipped per delivery.' },\n },\n },\n verification: {\n purpose: 'The derived `applicationPublicKeyPem` receivers use to verify the JWT `X-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 description: { purpose: 'Read-only; the public half of the app webhook signing key, refreshed on read after rotation.' },\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,6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E;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE;wBAC/D,WAAW,EAAE,EAAE,OAAO,EAAE,+GAA+G,EAAE;qBAC1I;iBACF;gBACD,YAAY,EAAE;oBACZ,OAAO,EAAE,oGAAoG;oBAC7G,SAAS,EAAE,4DAA4D;oBACvE,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE;wBACjE,WAAW,EAAE,EAAE,OAAO,EAAE,8FAA8F,EAAE;qBACzH;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, flags, created/updated timestamps).',\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).', errorCode: 'VALIDATION_FAILED' },\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.',\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 (e.g. a non-HTTPS URL or a duplicate endpoint id).', errorCode: 'VALIDATION_FAILED' },\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.', errorCode: 'VALIDATION_FAILED' },\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; 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.' },\n description: { purpose: 'Clarify that disabling stops new deliveries but keeps the endpoint configuration intact.' },\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.' },\n description: { purpose: 'Note that each enabled endpoint receives every dispatched event; disabled endpoints are skipped per delivery.' },\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 description: { purpose: 'Read-only; the public half of the app webhook signing key, refreshed on read after rotation.' },\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"]}
@@ -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 value of the runtime `alertType` enum — `suspicious_login`, `password_changed`, `mfa_disabled`, `new_api_key`, or `other` — that needs account-owner awareness.',
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.',
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,7 +42,7 @@ 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, referencing the `alertType` category in natural language. The category is one of `suspicious_login`, `password_changed`, `mfa_disabled`, `new_api_key`, or `other` — translate each as a human sentence without broadening the semantics.',
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.',
46
46
  },
47
47
  eventDetailsLabel: {
48
48
  purpose: 'Label for the structured details block that surfaces timestamp and, when available, IP address and location.',
@@ -55,7 +55,7 @@ export const securityAlertSystemTemplateSpecification = systemEmailTemplateSpeci
55
55
  },
56
56
  },
57
57
  eventData: {
58
- purpose: 'Alert category, human-readable description, timestamp, optional IP and location, and the security-settings URL.',
58
+ purpose: 'Alert kind, the authenticator concerned for `authenticator_added`, `authenticator_removed` and `mfa_disabled` (optional), timestamp, optional IP and location, and an optional security-settings URL. There is no caller-written description: every sentence comes from the template labels, so it can be translated and reworded.',
59
59
  notes: ['Treat `alertType` as a translatable category identifier; do not surface the raw enum value.'],
60
60
  },
61
61
  businessConstraints: [
@@ -1 +1 @@
1
- {"version":3,"file":"security.system-emails.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/notifications/system-emails/security.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,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AAC,CAAC;IACL,OAAO,EAAE,oIAAoI;IAC7I,IAAI,EAAE,sJAAsJ;IAC5J,OAAO,EAAE,sGAAsG;IAC/G,SAAS,EAAE,+GAA+G;IAC1H,SAAS,EAAE;QACT,OAAO,EAAE;YACP,OAAO,EAAE,2EAA2E;SACrF;QACD,WAAW,EAAE;YACX,OAAO,EAAE,2EAA2E;SACrF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,2HAA2H;SACrI;QACD,kBAAkB,EAAE;YAClB,OAAO,EAAE,oHAAoH;SAC9H;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,+EAA+E;SACzF;QACD,mBAAmB,EAAE;YACnB,OAAO,EAAE,wGAAwG;SAClH;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,sGAAsG;QAC/G,KAAK,EAAE,CAAC,0GAA0G,CAAC;KACpH;IACD,mBAAmB,EAAE;QACnB,0FAA0F;KAC3F;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,sBAAsB,EAAE,wBAAwB;QAChD,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,yCAAyC,GAA6C;IACjG,wCAAwC;IACxC,yCAAyC;CAC1C,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 securityAlertSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.SECURITY_ALERT],\n () => ({\n 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.',\n tone: 'Authoritative, calm, and action-oriented — the recipient must trust the signal immediately without spiraling into panic.',\n useWhen: 'Use for any value of the runtime `alertType` enum — `suspicious_login`, `password_changed`, `mfa_disabled`, `new_api_key`, or `other` — that needs account-owner awareness.',\n avoidWhen: 'Do not use for routine device-login notifications; those live in the dedicated new-device-login template.',\n textSlots: {\n subject: {\n purpose: 'Signal that a security event was detected, without leaking exploitable detail in the inbox preview.',\n },\n previewText: {\n purpose: 'Short preview that names the alert category in generic terms and invites the recipient to open.',\n notes: ['Never include precise IP addresses, device fingerprints, or full alert descriptions in the preview.'],\n },\n body: {\n purpose: 'Short paragraph explaining what kind of event happened, referencing the `alertType` category in natural language. The category is one of `suspicious_login`, `password_changed`, `mfa_disabled`, `new_api_key`, or `other` — translate each as a human sentence without broadening the semantics.',\n },\n eventDetailsLabel: {\n purpose: 'Label for the structured details block that surfaces timestamp and, when available, IP address and location.',\n },\n ctaLabel: {\n purpose: 'Primary action label that sends the recipient to `eventData.securitySettingsUrl`.',\n },\n reassuranceFootnote: {\n purpose: 'Closing guidance for the \"this was me\" case that tells the recipient no further action is needed.',\n },\n },\n eventData: {\n purpose: 'Alert category, human-readable description, timestamp, optional IP and location, and the security-settings URL.',\n notes: ['Treat `alertType` as a translatable category identifier; do not surface the raw enum value.'],\n },\n businessConstraints: [\n 'Never expose session tokens, reset URLs, or credentials in this template; they belong to dedicated flows.',\n 'Always treat `ipAddress` and `location` as optional and omit them gracefully when absent.',\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 newDeviceLoginSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.NEW_DEVICE_LOGIN],\n () => ({\n 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.',\n tone: 'Informational and reassuring with a clear corrective action — most recipients just need acknowledgment, a minority need the revoke CTA to stand out.',\n useWhen: 'Use when a successful authentication came from a device signature the account has not seen recently.',\n avoidWhen: 'Do not use for failed login attempts or broader security alerts; those belong to the security-alert template.',\n textSlots: {\n subject: {\n purpose: 'Signal a new-device login without implying it was necessarily suspicious.',\n },\n previewText: {\n purpose: 'Short preview restating the event category and hinting at the revoke CTA.',\n },\n body: {\n purpose: 'Short paragraph summarizing the login event and giving the recipient a clear \"if this was you, no action needed\" framing.',\n },\n deviceDetailsLabel: {\n purpose: 'Label for the details block showing device type, browser, operating system, IP, optional location, and login time.',\n },\n ctaLabel: {\n purpose: 'Primary action label that sends the recipient to `eventData.revokeAccessUrl`.',\n },\n reassuranceFootnote: {\n purpose: 'Closing line for the recipient who recognizes the device, confirming that no further action is needed.',\n },\n },\n eventData: {\n purpose: 'Device signature (type, browser, OS), IP, optional location, login timestamp, and revoke-access URL.',\n notes: ['The `location` field is optional and sometimes coarse — do not imply exact-address accuracy in the copy.'],\n },\n businessConstraints: [\n 'Never include session tokens or credential URLs; the revoke flow handles access changes.',\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 securitySystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[] = [\n securityAlertSystemTemplateSpecification,\n newDeviceLoginSystemTemplateSpecification,\n];\n"]}
1
+ {"version":3,"file":"security.system-emails.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/notifications/system-emails/security.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,C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,OAAO,EAAE,2HAA2H;SACrI;QACD,kBAAkB,EAAE;YAClB,OAAO,EAAE,oHAAoH;SAC9H;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,+EAA+E;SACzF;QACD,mBAAmB,EAAE;YACnB,OAAO,EAAE,wGAAwG;SAClH;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,sGAAsG;QAC/G,KAAK,EAAE,CAAC,0GAA0G,CAAC;KACpH;IACD,mBAAmB,EAAE;QACnB,0FAA0F;KAC3F;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,sBAAsB,EAAE,wBAAwB;QAChD,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,yCAAyC,GAA6C;IACjG,wCAAwC;IACxC,yCAAyC;CAC1C,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 securityAlertSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.SECURITY_ALERT],\n () => ({\n 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.',\n tone: 'Authoritative, calm, and action-oriented — the recipient must trust the signal immediately without spiraling into panic.',\n 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.',\n avoidWhen: 'Do not use for routine device-login notifications; those live in the dedicated new-device-login template.',\n textSlots: {\n subject: {\n purpose: 'Signal that a security event was detected, without leaking exploitable detail in the inbox preview.',\n },\n previewText: {\n purpose: 'Short preview that names the alert category in generic terms and invites the recipient to open.',\n notes: ['Never include precise IP addresses, device fingerprints, or full alert descriptions in the preview.'],\n },\n body: {\n 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.',\n },\n eventDetailsLabel: {\n purpose: 'Label for the structured details block that surfaces timestamp and, when available, IP address and location.',\n },\n ctaLabel: {\n purpose: 'Primary action label that sends the recipient to `eventData.securitySettingsUrl`.',\n },\n reassuranceFootnote: {\n purpose: 'Closing guidance for the \"this was me\" case that tells the recipient no further action is needed.',\n },\n },\n eventData: {\n purpose: 'Alert kind, the authenticator concerned for `authenticator_added`, `authenticator_removed` and `mfa_disabled` (optional), timestamp, optional IP and location, and an optional security-settings URL. There is no caller-written description: every sentence comes from the template labels, so it can be translated and reworded.',\n notes: ['Treat `alertType` as a translatable category identifier; do not surface the raw enum value.'],\n },\n businessConstraints: [\n 'Never expose session tokens, reset URLs, or credentials in this template; they belong to dedicated flows.',\n 'Always treat `ipAddress` and `location` as optional and omit them gracefully when absent.',\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 newDeviceLoginSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.NEW_DEVICE_LOGIN],\n () => ({\n 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.',\n tone: 'Informational and reassuring with a clear corrective action — most recipients just need acknowledgment, a minority need the revoke CTA to stand out.',\n useWhen: 'Use when a successful authentication came from a device signature the account has not seen recently.',\n avoidWhen: 'Do not use for failed login attempts or broader security alerts; those belong to the security-alert template.',\n textSlots: {\n subject: {\n purpose: 'Signal a new-device login without implying it was necessarily suspicious.',\n },\n previewText: {\n purpose: 'Short preview restating the event category and hinting at the revoke CTA.',\n },\n body: {\n purpose: 'Short paragraph summarizing the login event and giving the recipient a clear \"if this was you, no action needed\" framing.',\n },\n deviceDetailsLabel: {\n purpose: 'Label for the details block showing device type, browser, operating system, IP, optional location, and login time.',\n },\n ctaLabel: {\n purpose: 'Primary action label that sends the recipient to `eventData.revokeAccessUrl`.',\n },\n reassuranceFootnote: {\n purpose: 'Closing line for the recipient who recognizes the device, confirming that no further action is needed.',\n },\n },\n eventData: {\n purpose: 'Device signature (type, browser, OS), IP, optional location, login timestamp, and revoke-access URL.',\n notes: ['The `location` field is optional and sometimes coarse — do not imply exact-address accuracy in the copy.'],\n },\n businessConstraints: [\n 'Never include session tokens or credential URLs; the revoke flow handles access changes.',\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 securitySystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[] = [\n securityAlertSystemTemplateSpecification,\n newDeviceLoginSystemTemplateSpecification,\n];\n"]}
@@ -1,7 +1,7 @@
1
1
  import { CORE_ORG_ROLES, CoreResourceOperation as Op, OrganizationMemberStatus, OrganizationMembers_Operations } from '@wildo-ai/saas-models';
2
2
  export declare const organizationMembersResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof OrganizationMembers_Operations, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST | Op.SEARCH | Op.COUNT, import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
3
3
  _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
4
- userId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>>;
4
+ userId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>>>;
5
5
  userEmail: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodEmail>>>>>>;
6
6
  organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
7
7
  roles: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodEnum<typeof CORE_ORG_ROLES>, import("zod").ZodString]>>>>>>;
@@ -194,7 +194,7 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
194
194
  founded: schemaShape.founded.dateSpec({ meaning: 'Date associated with the organization’s founding for profile and directory presentation.' }),
195
195
  address: schemaShape.address.objectSpec({ meaning: 'Primary organization address, including ISO two-letter country code and postal information.' }),
196
196
  timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA timezone used when organization-facing surfaces need a local time context.' }),
197
- branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon, colors, and custom-domain overrides. Omitted values fall back to application branding.' }),
197
+ branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon, colors, and custom-domain overrides. A verified organization domain can supply login branding independently of enabled SSO connections. The identification name comes from the organization record. Fallback depends on the consuming surface: authentication identification can use the application logo, while an omitted tenant primary color remains absent; it does not use the email-brand palette.' }),
198
198
  socialLinks: schemaShape.socialLinks.objectSpec({ meaning: 'Optional public profile URLs for the organization’s supported social and developer channels.' }),
199
199
  createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile record was created by the organization lifecycle.' }),
200
200
  updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored profile field was last changed.' }),
@@ -299,7 +299,7 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
299
299
  },
300
300
  businessConstraints: [
301
301
  'Each organization owns one profile. The framework creates it with the organization and removes it when the organization is deleted.',
302
- 'Organization-specific branding fields are overrides; when an override is absent, clients should use the application brand.',
302
+ 'Brand fallbacks depend on the consumer. Identification may supply the application logo; an omitted tenant color remains absent. The standard login card preserves application theme tokens and uses a supplied tenant primary color only as a decorative identity accent.',
303
303
  ],
304
304
  }), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS }), () => ({
305
305
  views: {
@@ -1 +1 @@
1
- {"version":3,"file":"organization-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AAClI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,yBAAyB,EACzB,8BAA8B,EAC9B,gBAAgB,EAChB,oBAAoB,EACpB,8DAA8D,IAAI,2BAA2B,GAC9F,MAAM,uBAAuB,CAAC;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AC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,SAAS,EAAE,mEAAmE,EAAE;QACjJ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,2DAA2D,EAAE;QAC9I,CAAC,8BAA8B,CAAC,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE,0DAA0D,EAAE,SAAS,EAAE,sCAAsC,EAAE;KAC7K;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationProfilesMainResourceUIBehavior as organizationProfilesUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationIndustry,\n OrganizationProfileSchema,\n OrganizationProfile_Operations,\n OrganizationSize,\n ResourcePrimaryScope,\n organizationProfileResourceConfiguration_InitializationFactory as organizationProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationProfilesResourceUIBehavior = organizationProfilesUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst ORGANIZATION_PROFILE_EXAMPLE = {\n _id: 'organization_profile_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n displayName: 'Acme Europe',\n domain: 'acme.example',\n phone: '+352 26 00 00 00',\n website: 'https://www.acme.example',\n description: 'European operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.MEDIUM,\n founded: '2018-06-14T00:00:00.000Z',\n address: {\n line1: '12 Boulevard Royal',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n timezone: 'Europe/Luxembourg',\n branding: {\n logo: 'https://cdn.acme.example/brand/logo.svg',\n favicon: 'https://cdn.acme.example/brand/favicon.png',\n primaryColor: '#635BFF',\n secondaryColor: '#0A2540',\n customDomain: 'workspace.acme.example',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-europe',\n github: 'https://github.com/acme-europe',\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 7,\n} as const;\n\nconst ORGANIZATION_PROFILE_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n organization: { _id: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PROFILE_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PROFILE_EXAMPLE._id,\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n displayName: ORGANIZATION_PROFILE_EXAMPLE.displayName,\n _version: ORGANIZATION_PROFILE_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE = {\n displayName: 'Acme Europe & Middle East',\n website: 'https://emea.acme.example',\n description: 'European and Middle East operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.LARGE,\n timezone: 'Europe/Luxembourg',\n address: {\n line1: '12 Boulevard Royal',\n line2: 'Floor 4',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-emea',\n github: 'https://github.com/acme-emea',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T08:45:00.000Z',\n _version: 8,\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE = {\n branding: {\n logo: 'https://cdn.acme.example/brand/logo-2026.svg',\n favicon: 'https://cdn.acme.example/brand/favicon-2026.png',\n primaryColor: '#4F46E5',\n secondaryColor: '#111827',\n customDomain: 'portal.acme.example',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n branding: ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE.branding,\n updatedAt: '2026-08-21T09:10:00.000Z',\n _version: 8,\n} as const;\n\nexport const organizationProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationProfilesResourceUIBehavior),\n resourceSpecification(\n organizationProfilesFactory,\n OrganizationProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Business identity and presentation metadata for one organization: company facts, location, branding, and social links.',\n businessRole: 'Gives authorized members and integrations one consistent organization profile for product surfaces, directories, and connected systems.',\n lifecycleRole: 'The profile is created with its organization, evolves through company and brand changes, and is removed with the owning organization.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationProfileResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\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: 'ORGANIZATION_PROFILES',\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: 'OrganizationProfile_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationProfilesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-profile record.',\n whyItMatters: 'Identifies this profile document independently from the organization id used to address the route.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization this public/directory profile describes.',\n whyItMatters: 'Ties branding and company facts to exactly one tenant so directory cards and connector metadata resolve per organization and cannot surface another tenant’s profile.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Customer-facing name when different from the canonical org `name`.' }),\n domain: schemaShape.domain.stringSpec({ meaning: 'Organization-owned internet domain used as profile and directory metadata; it is not an authentication-domain verification claim.' }),\n phone: schemaShape.phone.stringSpec({ meaning: 'Organization contact telephone number as entered by an authorized profile editor.' }),\n website: schemaShape.website.stringSpec({ meaning: 'Primary marketing or product URL for the tenant.' }),\n description: schemaShape.description.stringSpec({ meaning: 'Short organization description for about panels, directories, and connected systems.' }),\n industry: schemaShape.industry.enumSpec({\n meaning: 'Business sector classification for the tenant, used in directory facets and segmentation.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationIndustry',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationIndustry.TECHNOLOGY]: { meaning: 'Technology / software.' },\n [OrganizationIndustry.FINANCE]: { meaning: 'Finance, banking, or insurance.' },\n [OrganizationIndustry.HEALTHCARE]: { meaning: 'Healthcare and life sciences.' },\n [OrganizationIndustry.EDUCATION]: { meaning: 'Education and academia.' },\n [OrganizationIndustry.RETAIL]: { meaning: 'Retail and commerce.' },\n [OrganizationIndustry.MANUFACTURING]: { meaning: 'Manufacturing and industry.' },\n [OrganizationIndustry.CONSULTING]: { meaning: 'Professional services and consulting.' },\n [OrganizationIndustry.MEDIA]: { meaning: 'Media, entertainment, and publishing.' },\n [OrganizationIndustry.GOVERNMENT]: { meaning: 'Government and public sector.' },\n [OrganizationIndustry.NONPROFIT]: { meaning: 'Nonprofit and NGO.' },\n [OrganizationIndustry.OTHER]: { meaning: 'Any sector not covered by the named categories.' },\n },\n }),\n size: schemaShape.size.enumSpec({\n meaning: 'Employee-count band for the tenant, used for directory facets and plan/segment heuristics.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationSize',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationSize.STARTUP]: { meaning: 'Startup, roughly 1–10 employees.' },\n [OrganizationSize.SMALL]: { meaning: 'Small, roughly 11–50 employees.' },\n [OrganizationSize.MEDIUM]: { meaning: 'Medium, roughly 51–200 employees.' },\n [OrganizationSize.LARGE]: { meaning: 'Large, roughly 201–1000 employees.' },\n [OrganizationSize.ENTERPRISE]: { meaning: 'Enterprise, 1000+ employees.' },\n },\n }),\n founded: schemaShape.founded.dateSpec({ meaning: 'Date associated with the organization’s founding for profile and directory presentation.' }),\n address: schemaShape.address.objectSpec({ meaning: 'Primary organization address, including ISO two-letter country code and postal information.' }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA timezone used when organization-facing surfaces need a local time context.' }),\n branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon, colors, and custom-domain overrides. Omitted values fall back to application branding.' }),\n socialLinks: schemaShape.socialLinks.objectSpec({ meaning: 'Optional public profile URLs for the organization’s supported social and developer channels.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile record was created by the organization lifecycle.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored profile field was last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s complete profile.',\n outcome: 'The caller receives company facts, location, branding, social links, and the current resource version.',\n whenToUse: 'Use this representation when synchronizing a complete organization profile or rendering a full about/settings surface.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile was found and its directory/branding metadata is returned for the addressed organization.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record has been provisioned for the addressed organization in the caller’s scope.' },\n ],\n examples: [{\n title: 'Read the organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization profile with its configured relationship context.',\n outcome: 'The complete profile is returned with the related organization identifier when that relationship is available.',\n examples: [{\n title: 'Read the profile with organization context',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization-profile identity.',\n outcome: 'Only the profile id, organization id, display name, and current resource version are returned.',\n examples: [{\n title: 'Read the compact organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Update one or more editable organization-profile fields.',\n outcome: 'The stored profile is changed and the complete updated representation, including its new resource version, is returned.',\n whenToUse: 'Use this operation for company, classification, location, social-link, or combined profile changes. Use the branding operation when the request changes only the brand kit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation (e.g. a malformed `website` URL).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to update.' },\n ],\n examples: [{\n title: 'Update organization company and directory details',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization profile row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton profile row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization profile record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_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 [OrganizationProfile_Operations.UPDATE_BRANDING]: {\n operationId: OrganizationProfile_Operations.UPDATE_BRANDING,\n purpose: 'Replace the organization-specific logo, favicon, colors, and custom-domain overrides as one brand kit.',\n outcome: 'The brand kit is validated, stored, and returned inside the complete updated profile with its new resource version.',\n whenToUse: 'Use this operation for a branding-only change that should not carry unrelated company-profile fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The brand kit (colors, logo, favicon) was applied and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The branding bundle fails validation (e.g. an invalid color token or an unsupported logo/favicon asset reference).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-admin authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to apply branding to.' },\n ],\n examples: [{\n title: 'Replace the organization brand kit',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Each organization owns one profile. The framework creates it with the organization and removes it when the organization is deleted.',\n 'Organization-specific branding fields are overrides; when an override is absent, clients should use the application brand.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n views: {\n [Op.READ]: { purpose: 'Settings read for company/about panels.', whenToUse: 'Org profile in admin and member-visible about pages when exposed.' },\n [Op.UPDATE]: { purpose: 'General field edits in multi-section form.', whenToUse: 'IT and marketing co-own updates through governance roles.' },\n [OrganizationProfile_Operations.UPDATE_BRANDING]: { purpose: 'Branding wizard path separate from long-form text edits.', whenToUse: 'White-label and theme management UX.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"organization-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AAClI,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EAAE;wBACP,cAAc,EAAE,4BAA4B,CAAC,cAAc;wBAC3D,GAAG,6CAA6C;qBACjD;oBACD,QAAQ,EAAE,8CAA8C;oBACxD,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;YACF,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,qIAAqI;QACrI,2QAA2Q;KAC5Q;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,SAAS,EAAE,mEAAmE,EAAE;QACjJ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,2DAA2D,EAAE;QAC9I,CAAC,8BAA8B,CAAC,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE,0DAA0D,EAAE,SAAS,EAAE,sCAAsC,EAAE;KAC7K;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationProfilesMainResourceUIBehavior as organizationProfilesUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationIndustry,\n OrganizationProfileSchema,\n OrganizationProfile_Operations,\n OrganizationSize,\n ResourcePrimaryScope,\n organizationProfileResourceConfiguration_InitializationFactory as organizationProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationProfilesResourceUIBehavior = organizationProfilesUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst ORGANIZATION_PROFILE_EXAMPLE = {\n _id: 'organization_profile_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n displayName: 'Acme Europe',\n domain: 'acme.example',\n phone: '+352 26 00 00 00',\n website: 'https://www.acme.example',\n description: 'European operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.MEDIUM,\n founded: '2018-06-14T00:00:00.000Z',\n address: {\n line1: '12 Boulevard Royal',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n timezone: 'Europe/Luxembourg',\n branding: {\n logo: 'https://cdn.acme.example/brand/logo.svg',\n favicon: 'https://cdn.acme.example/brand/favicon.png',\n primaryColor: '#635BFF',\n secondaryColor: '#0A2540',\n customDomain: 'workspace.acme.example',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-europe',\n github: 'https://github.com/acme-europe',\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 7,\n} as const;\n\nconst ORGANIZATION_PROFILE_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n organization: { _id: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PROFILE_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PROFILE_EXAMPLE._id,\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n displayName: ORGANIZATION_PROFILE_EXAMPLE.displayName,\n _version: ORGANIZATION_PROFILE_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE = {\n displayName: 'Acme Europe & Middle East',\n website: 'https://emea.acme.example',\n description: 'European and Middle East operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.LARGE,\n timezone: 'Europe/Luxembourg',\n address: {\n line1: '12 Boulevard Royal',\n line2: 'Floor 4',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-emea',\n github: 'https://github.com/acme-emea',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T08:45:00.000Z',\n _version: 8,\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE = {\n branding: {\n logo: 'https://cdn.acme.example/brand/logo-2026.svg',\n favicon: 'https://cdn.acme.example/brand/favicon-2026.png',\n primaryColor: '#4F46E5',\n secondaryColor: '#111827',\n customDomain: 'portal.acme.example',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n branding: ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE.branding,\n updatedAt: '2026-08-21T09:10:00.000Z',\n _version: 8,\n} as const;\n\nexport const organizationProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationProfilesResourceUIBehavior),\n resourceSpecification(\n organizationProfilesFactory,\n OrganizationProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Business identity and presentation metadata for one organization: company facts, location, branding, and social links.',\n businessRole: 'Gives authorized members and integrations one consistent organization profile for product surfaces, directories, and connected systems.',\n lifecycleRole: 'The profile is created with its organization, evolves through company and brand changes, and is removed with the owning organization.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationProfileResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\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: 'ORGANIZATION_PROFILES',\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: 'OrganizationProfile_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationProfilesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-profile record.',\n whyItMatters: 'Identifies this profile document independently from the organization id used to address the route.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization this public/directory profile describes.',\n whyItMatters: 'Ties branding and company facts to exactly one tenant so directory cards and connector metadata resolve per organization and cannot surface another tenant’s profile.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Customer-facing name when different from the canonical org `name`.' }),\n domain: schemaShape.domain.stringSpec({ meaning: 'Organization-owned internet domain used as profile and directory metadata; it is not an authentication-domain verification claim.' }),\n phone: schemaShape.phone.stringSpec({ meaning: 'Organization contact telephone number as entered by an authorized profile editor.' }),\n website: schemaShape.website.stringSpec({ meaning: 'Primary marketing or product URL for the tenant.' }),\n description: schemaShape.description.stringSpec({ meaning: 'Short organization description for about panels, directories, and connected systems.' }),\n industry: schemaShape.industry.enumSpec({\n meaning: 'Business sector classification for the tenant, used in directory facets and segmentation.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationIndustry',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationIndustry.TECHNOLOGY]: { meaning: 'Technology / software.' },\n [OrganizationIndustry.FINANCE]: { meaning: 'Finance, banking, or insurance.' },\n [OrganizationIndustry.HEALTHCARE]: { meaning: 'Healthcare and life sciences.' },\n [OrganizationIndustry.EDUCATION]: { meaning: 'Education and academia.' },\n [OrganizationIndustry.RETAIL]: { meaning: 'Retail and commerce.' },\n [OrganizationIndustry.MANUFACTURING]: { meaning: 'Manufacturing and industry.' },\n [OrganizationIndustry.CONSULTING]: { meaning: 'Professional services and consulting.' },\n [OrganizationIndustry.MEDIA]: { meaning: 'Media, entertainment, and publishing.' },\n [OrganizationIndustry.GOVERNMENT]: { meaning: 'Government and public sector.' },\n [OrganizationIndustry.NONPROFIT]: { meaning: 'Nonprofit and NGO.' },\n [OrganizationIndustry.OTHER]: { meaning: 'Any sector not covered by the named categories.' },\n },\n }),\n size: schemaShape.size.enumSpec({\n meaning: 'Employee-count band for the tenant, used for directory facets and plan/segment heuristics.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationSize',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationSize.STARTUP]: { meaning: 'Startup, roughly 1–10 employees.' },\n [OrganizationSize.SMALL]: { meaning: 'Small, roughly 11–50 employees.' },\n [OrganizationSize.MEDIUM]: { meaning: 'Medium, roughly 51–200 employees.' },\n [OrganizationSize.LARGE]: { meaning: 'Large, roughly 201–1000 employees.' },\n [OrganizationSize.ENTERPRISE]: { meaning: 'Enterprise, 1000+ employees.' },\n },\n }),\n founded: schemaShape.founded.dateSpec({ meaning: 'Date associated with the organization’s founding for profile and directory presentation.' }),\n address: schemaShape.address.objectSpec({ meaning: 'Primary organization address, including ISO two-letter country code and postal information.' }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA timezone used when organization-facing surfaces need a local time context.' }),\n branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon, colors, and custom-domain overrides. A verified organization domain can supply login branding independently of enabled SSO connections. The identification name comes from the organization record. Fallback depends on the consuming surface: authentication identification can use the application logo, while an omitted tenant primary color remains absent; it does not use the email-brand palette.' }),\n socialLinks: schemaShape.socialLinks.objectSpec({ meaning: 'Optional public profile URLs for the organization’s supported social and developer channels.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile record was created by the organization lifecycle.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored profile field was last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s complete profile.',\n outcome: 'The caller receives company facts, location, branding, social links, and the current resource version.',\n whenToUse: 'Use this representation when synchronizing a complete organization profile or rendering a full about/settings surface.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile was found and its directory/branding metadata is returned for the addressed organization.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record has been provisioned for the addressed organization in the caller’s scope.' },\n ],\n examples: [{\n title: 'Read the organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization profile with its configured relationship context.',\n outcome: 'The complete profile is returned with the related organization identifier when that relationship is available.',\n examples: [{\n title: 'Read the profile with organization context',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization-profile identity.',\n outcome: 'Only the profile id, organization id, display name, and current resource version are returned.',\n examples: [{\n title: 'Read the compact organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Update one or more editable organization-profile fields.',\n outcome: 'The stored profile is changed and the complete updated representation, including its new resource version, is returned.',\n whenToUse: 'Use this operation for company, classification, location, social-link, or combined profile changes. Use the branding operation when the request changes only the brand kit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation (e.g. a malformed `website` URL).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to update.' },\n ],\n examples: [{\n title: 'Update organization company and directory details',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization profile row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton profile row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization profile record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_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 [OrganizationProfile_Operations.UPDATE_BRANDING]: {\n operationId: OrganizationProfile_Operations.UPDATE_BRANDING,\n purpose: 'Replace the organization-specific logo, favicon, colors, and custom-domain overrides as one brand kit.',\n outcome: 'The brand kit is validated, stored, and returned inside the complete updated profile with its new resource version.',\n whenToUse: 'Use this operation for a branding-only change that should not carry unrelated company-profile fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The brand kit (colors, logo, favicon) was applied and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The branding bundle fails validation (e.g. an invalid color token or an unsupported logo/favicon asset reference).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-admin authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to apply branding to.' },\n ],\n examples: [{\n title: 'Replace the organization brand kit',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Each organization owns one profile. The framework creates it with the organization and removes it when the organization is deleted.',\n 'Brand fallbacks depend on the consumer. Identification may supply the application logo; an omitted tenant color remains absent. The standard login card preserves application theme tokens and uses a supplied tenant primary color only as a decorative identity accent.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n views: {\n [Op.READ]: { purpose: 'Settings read for company/about panels.', whenToUse: 'Org profile in admin and member-visible about pages when exposed.' },\n [Op.UPDATE]: { purpose: 'General field edits in multi-section form.', whenToUse: 'IT and marketing co-own updates through governance roles.' },\n [OrganizationProfile_Operations.UPDATE_BRANDING]: { purpose: 'Branding wizard path separate from long-form text edits.', whenToUse: 'White-label and theme management UX.' },\n },\n }),\n);\n"]}
@@ -1,4 +1,4 @@
1
- import { CoreResourceOperation as Op, OrganizationUnitStatus, OrganizationUnitType, OrganizationUnit_Operations, OrganizationUnit_PermissionInheritanceType } from '@wildo-ai/saas-models';
1
+ import { CoreResourceOperation as Op, ExternalIdentitySource, OrganizationUnitStatus, OrganizationUnitType, OrganizationUnit_Operations, OrganizationUnit_PermissionInheritanceType } from '@wildo-ai/saas-models';
2
2
  export declare const organizationUnitsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof OrganizationUnit_Operations, Op.READ | Op.UPDATE | Op.DELETE | Op.CREATE | Op.LIST | Op.SEARCH, import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
3
3
  _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
4
4
  organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
@@ -9,6 +9,8 @@ export declare const organizationUnitsResourceSpecification: import("../../../_c
9
9
  name: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
10
10
  code: import("zod").ZodOptional<import("zod").ZodString>;
11
11
  type: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodEnum<typeof OrganizationUnitType>>>>;
12
+ externalSource: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodEnum<typeof ExternalIdentitySource>>>>>>;
13
+ externalId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>;
12
14
  createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
13
15
  updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
14
16
  }, import("zod/v4/core").$strip>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"organization-units.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-units.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAK3B,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,0CAA0C,EAG3C,MAAM,uBAAuB,CAAC;AAiD/B,eAAO,MAAM,sCAAsC;;;;;;;;;;;;kCAmZlD,CAAC"}
1
+ {"version":3,"file":"organization-units.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-units.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,sBAAsB,EAEtB,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,0CAA0C,EAG3C,MAAM,uBAAuB,CAAC;AAiD/B,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;kCAyalD,CAAC"}