@wildo-ai/saas-specifications 1.1.1 → 1.1.3

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 (633) hide show
  1. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
  2. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  3. package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
  4. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  5. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
  6. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  7. package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
  8. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  9. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
  10. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  11. package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
  12. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  13. package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
  14. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
  15. package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
  16. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
  17. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
  19. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
  21. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
  23. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
  25. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
  26. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
  27. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
  28. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
  30. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  31. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
  32. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  33. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  34. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
  35. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
  36. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
  37. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
  38. package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
  39. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  40. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  41. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
  42. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  43. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
  44. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  45. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +178 -2
  46. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +115 -9
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
  50. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
  51. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
  52. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
  53. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  54. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
  55. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  56. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
  57. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
  58. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
  59. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
  60. package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
  61. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  62. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  63. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
  64. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
  65. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
  66. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
  67. package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
  68. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  69. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  70. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
  71. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
  73. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  74. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
  75. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
  76. package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
  77. package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
  78. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
  79. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
  81. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  82. package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
  83. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
  84. package/dist/esm/_core/family-aspects.registry.js +60 -0
  85. package/dist/esm/_core/family-aspects.registry.js.map +1 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
  87. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
  88. package/dist/esm/_core/family-aspects.schemas.js +15 -0
  89. package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
  91. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
  92. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
  93. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
  94. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
  95. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
  97. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
  98. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
  99. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
  103. package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
  104. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
  105. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  106. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  107. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
  108. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  109. package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
  110. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  111. package/dist/esm/_core/index.d.ts +3 -0
  112. package/dist/esm/_core/index.d.ts.map +1 -1
  113. package/dist/esm/_core/index.js +3 -0
  114. package/dist/esm/_core/index.js.map +1 -1
  115. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
  116. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  117. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
  118. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  119. package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
  120. package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
  121. package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
  122. package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
  123. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
  124. package/dist/esm/_core/market/market.family-aspects.js +227 -0
  125. package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
  126. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
  127. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  128. package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
  129. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  130. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
  132. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  133. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
  134. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  135. package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
  136. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  137. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
  138. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
  139. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
  140. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
  141. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
  142. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  143. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
  144. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  145. package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
  146. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
  147. package/dist/esm/_core/provider-specification.schemas.js +144 -0
  148. package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
  149. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  150. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
  151. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  152. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
  153. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  154. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  155. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
  156. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
  157. package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
  158. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
  159. package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
  160. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  162. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  163. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
  164. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  165. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
  166. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  167. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  168. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
  169. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
  170. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
  171. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
  172. package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
  173. package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
  174. package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
  175. package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
  176. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
  178. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  179. package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
  180. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
  181. package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
  182. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
  183. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
  184. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
  185. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +193 -38
  186. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  187. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +157 -57
  188. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  189. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
  190. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
  191. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
  193. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  194. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
  195. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  196. package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
  197. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
  198. package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
  199. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
  200. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
  201. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
  202. package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
  203. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
  204. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
  205. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  206. package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
  207. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  208. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +101 -85
  209. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  210. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +171 -86
  211. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  212. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
  213. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  214. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  215. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  216. package/dist/esm/application-creation.exports.d.ts +11 -0
  217. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  218. package/dist/esm/application-creation.exports.js +11 -0
  219. package/dist/esm/application-creation.exports.js.map +1 -1
  220. package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
  221. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
  223. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +999 -2
  225. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  226. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2127 -61
  227. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  228. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +26 -0
  229. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  230. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  231. package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
  232. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  233. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
  234. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  235. package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
  236. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  237. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
  238. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
  239. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
  240. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
  241. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
  242. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
  243. package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
  244. package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
  245. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
  246. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  247. package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
  248. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  249. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +78 -1
  250. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  251. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +562 -5
  252. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  253. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +148 -0
  254. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
  255. package/dist/esm/assurance/assurance-program-generation.schemas.js +385 -0
  256. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
  257. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
  258. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
  259. package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
  260. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
  261. package/dist/esm/assurance/assurance-program.schemas.d.ts +474 -14
  262. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  263. package/dist/esm/assurance/assurance-program.schemas.js +319 -8
  264. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  265. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
  266. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  267. package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
  268. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  269. package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
  270. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  271. package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
  272. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  273. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
  274. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
  275. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
  276. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
  277. package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
  278. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
  279. package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
  280. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
  281. package/dist/esm/assurance.exports.d.ts +2 -0
  282. package/dist/esm/assurance.exports.d.ts.map +1 -1
  283. package/dist/esm/assurance.exports.js +2 -0
  284. package/dist/esm/assurance.exports.js.map +1 -1
  285. package/dist/esm/companion-exports.d.ts +26 -8
  286. package/dist/esm/companion-exports.d.ts.map +1 -1
  287. package/dist/esm/companion-exports.js.map +1 -1
  288. package/dist/esm/engine/_bootstrap.js +3 -1
  289. package/dist/esm/engine/_bootstrap.js.map +1 -1
  290. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +15 -1
  292. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +4 -2
  295. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
  297. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +17 -3
  299. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +12 -10
  302. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -2
  305. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
  307. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
  308. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
  309. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
  310. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
  311. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  312. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +3 -1
  313. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  314. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +15 -1
  316. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
  318. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  319. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +17 -3
  320. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  321. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
  322. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
  323. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
  324. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
  325. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
  326. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  327. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +6 -4
  328. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  329. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  330. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +4 -2
  331. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  332. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +8 -6
  334. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +11 -9
  337. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  339. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +8 -6
  340. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  341. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
  342. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  343. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +106 -10
  344. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  345. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
  346. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  347. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
  348. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  349. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
  350. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
  351. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
  352. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
  353. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
  354. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +6 -3
  356. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  357. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
  358. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  359. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +4 -2
  360. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  361. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
  362. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  363. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -3
  364. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  365. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  366. package/dist/esm/engine/billing/resources/prices.resource.specification.js +10 -8
  367. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  368. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  369. package/dist/esm/engine/billing/resources/products.resource.specification.js +10 -8
  370. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  371. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +16 -12
  373. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  374. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  375. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +10 -8
  376. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  377. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
  378. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  379. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +8 -3
  380. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +13 -9
  382. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  383. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +30 -11
  384. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  385. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +10 -8
  387. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
  389. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  390. package/dist/esm/engine/engine-resource-specifications.registry.js +11 -2
  391. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  392. package/dist/esm/engine/engine-resource-sub-domain.d.ts +83 -0
  393. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
  394. package/dist/esm/engine/engine-resource-sub-domain.js +153 -0
  395. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
  396. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  397. package/dist/esm/engine/errors/error-messages.specification.js +44 -1
  398. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  399. package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
  400. package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
  401. package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
  402. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  403. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  404. package/dist/esm/engine/features/resources/application-features.resource.specification.js +5 -3
  405. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  406. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +5 -3
  408. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/features/resources/user-features.resource.specification.js +5 -3
  412. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  414. package/dist/esm/engine/files/resources/files.resource.specification.js +12 -10
  415. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  416. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
  417. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  418. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +22 -10
  419. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  420. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
  421. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  422. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -4
  423. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  424. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
  425. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +4 -2
  427. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  428. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  429. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  430. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
  431. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
  433. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
  434. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
  435. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
  436. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
  437. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
  438. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
  439. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
  440. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  441. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
  442. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
  444. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
  445. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
  446. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
  447. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
  448. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
  449. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
  450. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
  451. package/dist/esm/engine/frontend-components/index.d.ts +0 -2
  452. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  453. package/dist/esm/engine/frontend-components/index.js +4 -6
  454. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  455. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
  456. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  457. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +15 -12
  458. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  459. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
  460. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +12 -9
  462. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +9 -1
  464. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  465. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +9 -6
  466. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/index.d.ts +2 -0
  468. package/dist/esm/engine/index.d.ts.map +1 -1
  469. package/dist/esm/engine/index.js +2 -0
  470. package/dist/esm/engine/index.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +19 -17
  473. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  474. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  475. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -7
  476. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  477. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  478. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +10 -8
  479. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  480. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
  481. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  482. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +12 -5
  483. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  484. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -15
  486. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  488. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  489. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +14 -10
  490. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  491. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  492. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +31 -6
  493. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  494. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  495. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  496. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +11 -9
  497. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  498. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  499. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -3
  500. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  501. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  502. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +6 -4
  503. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  504. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  505. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -2
  506. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  507. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  508. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +3 -1
  509. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  510. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  511. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
  512. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  514. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +9 -7
  515. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  516. package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
  517. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
  518. package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
  519. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
  520. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
  521. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
  522. package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
  523. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
  524. package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
  525. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
  527. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
  528. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
  529. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
  531. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
  532. package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
  533. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/providers/github.provider.specification.js +30 -0
  535. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
  536. package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
  537. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/providers/google.provider.specification.js +34 -0
  539. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
  540. package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
  541. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
  542. package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
  543. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
  544. package/dist/esm/engine/providers/index.d.ts +23 -0
  545. package/dist/esm/engine/providers/index.d.ts.map +1 -0
  546. package/dist/esm/engine/providers/index.js +37 -0
  547. package/dist/esm/engine/providers/index.js.map +1 -0
  548. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
  549. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
  550. package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
  551. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
  552. package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
  553. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
  554. package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
  555. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
  556. package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
  557. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
  558. package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
  559. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
  560. package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
  561. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
  562. package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
  563. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
  564. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
  565. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
  566. package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
  567. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
  568. package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
  569. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
  570. package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
  571. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
  572. package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
  573. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
  574. package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
  575. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
  576. package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
  577. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
  578. package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
  579. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
  580. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +9 -7
  582. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
  584. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +11 -9
  586. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  587. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
  588. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +4 -2
  590. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  591. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  592. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +10 -8
  594. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  595. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
  596. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +6 -4
  598. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  599. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
  600. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +4 -2
  602. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  603. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +5 -5
  604. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +15 -11
  606. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  607. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
  608. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +3 -1
  610. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  612. package/dist/esm/engine/users/resources/user-self.resource.specification.js +11 -9
  613. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  614. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  615. package/dist/esm/engine/users/resources/users.resource.specification.js +95 -0
  616. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  617. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
  618. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  619. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +451 -25
  620. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  621. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
  622. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  623. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +37 -1
  624. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  625. package/dist/tsconfig.build.tsbuildinfo +1 -0
  626. package/package.json +8 -8
  627. package/dist/esm/.builder.pid +0 -9
  628. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
  629. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
  630. package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
  631. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
  632. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
  633. package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"organization-notifications.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-notifications.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,IAAI,yCAAyC,EAAE,MAAM,8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BAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,8GAA8G,EAAE;aACjK;YACD,2JAA2J;YAC3J,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,+LAA+L;KAChM;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,gFAAgF;IAChF,6EAA6E;IAC7E,4EAA4E;IAC5E,8EAA8E;IAC9E,gFAAgF;IAChF,oEAAoE;IACpE,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC5H,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,SAAS,EAAE,oDAAoD,EAAE;KAClJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationNotificationsMainResourceUIBehavior as organizationNotificationsUIBehaviorSource } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationNotificationsSchema,\n ResourcePrimaryScope,\n organizationNotificationsResourceConfiguration_InitializationFactory as organizationNotificationsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\ntype Cfg = ReturnType<typeof organizationNotificationsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationNotificationsResourceUIBehavior = organizationNotificationsUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_NOTIFICATIONS_EXAMPLE = {\n _id: 'organization_notifications_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n emailNotifications: {\n defaultEmailAddress: 'operations@acme.example',\n billingAddress: 'billing@acme.example',\n securityAddress: 'security@acme.example',\n administrativeAddress: 'administration@acme.example',\n usersManagementAddress: 'identity@acme.example',\n billing: true,\n administrative: true,\n security: true,\n usersManagement: false,\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 3,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n organization: { _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE._id,\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n emailNotifications: ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n _version: ORGANIZATION_NOTIFICATIONS_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE = {\n emailNotifications: {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n defaultEmailAddress: 'service-operations@acme.example',\n usersManagement: true,\n },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:35:00.000Z',\n _version: 4,\n} as const;\n\nexport const organizationNotificationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationNotificationsResourceUIBehavior),\n resourceSpecification(\n organizationNotificationsFactory,\n OrganizationNotificationsSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization email destinations and enablement switches for billing, security, administration, and user-management notices.',\n businessRole: 'Keeps operational notices routed to the teams responsible for each category, independently of individual member preferences.',\n lifecycleRole: 'Changes when category ownership moves to another mailbox or the organization enables or disables a notice category.',\n audience: LabelAudience.END_USER,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationNotificationsSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationNotificationsResourceConfiguration_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_NOTIFICATIONS',\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 },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationNotificationsMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: ['No custom operations. READ/UPDATE are the member-facing surface; CREATE is INTERNAL_CALL (seeds the row via the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle — INTERNAL_CALL because `createAsSystem` resolves the seed op through the service tier, which rejects REPOSITORY_ONLY) and DELETE is REPOSITORY_ONLY (tears it down via the paired `onParentDelete` cascade, which runs at the repository tier), neither an addressable route.'],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization notification-routing record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose notification-routing table this row configures.',\n whyItMatters: 'Scopes the routing map to one tenant so billing/security/admin notices for an org resolve to that org’s configured addresses and never leak across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n emailNotifications: schemaShape.emailNotifications.objectSpec({\n meaning: 'Per-category email addresses and enablement switches for billing, administration, security, and user-management notices.',\n whyItMatters: 'A category-specific address takes precedence for that category; the default address provides the general destination when a dedicated one is not configured.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization notification-routing record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any routing address or category switch last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s email routing addresses and category switches.',\n outcome: 'The caller can determine the configured destination and enabled state for billing, administrative, security, and user-management notices.',\n whenToUse: 'Use this operation when showing notification settings or checking where an organization-level notice will be routed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s notification routing map (per-category addresses and opt-ins) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete routing record with its organization relationship context.',\n outcome: 'The routing configuration and related organization identifier are returned together.',\n examples: [{\n title: 'Read notification routing with organization context',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact notification-routing representation.',\n outcome: 'The record identity, organization, complete category-routing block, and resource version are returned.',\n examples: [{\n title: 'Read compact organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org notification-routing row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled routing table exists for the tenant so downstream email fan-out resolves per-category opt-ins without a missing-row fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A notification-routing row was created for the organization with its `emailNotifications` block defaulted (category opt-ins on, addresses unset).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded routing payload fails `OrganizationNotificationsSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A notification-routing row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Replace the organization’s category addresses and notification switches.',\n outcome: 'Subsequent organization notices use the updated routing configuration.',\n whenToUse: 'Use this operation when responsibility for billing, security, administration, or user management moves to a different mailbox, or when a category is enabled or disabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The notification routing map was updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A routing address is malformed or a category toggle fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to change notification routing.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Update organization notification destinations',\n request: {\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the notification-routing configuration was saved.',\n tone: 'Brief and operational; the confirmation should avoid repeating email addresses unnecessarily.',\n textSlots: { title: { purpose: 'Short success headline for the saved-routing confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization administrator who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization notification-routing row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton routing 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 notification-routing row 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 },\n businessConstraints: [\n 'The routing record configures destinations; updating it emits only an in-product success confirmation and does not itself send a billing, security, administrative, or user-management email.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // `views` documents FRONTEND operation semantics — only ops the merged frontend\n // configuration surfaces belong here. CREATE is an INTERNAL_CALL system-seed\n // (see config `variantType: INTERNAL_CALL` + the operations[CREATE] backend\n // semantics below), so it is NOT surfaced to the frontend and must not appear\n // in `views` — `validateFrontendSpecificationAgainstConfiguration` fails closed\n // on a views-documented op that no merged frontend config surfaces.\n views: {\n [Op.READ]: { purpose: 'Read-only org notification routing panel.', whenToUse: 'Org admin settings and compliance reviews.' },\n [Op.UPDATE]: { purpose: 'Editable org notification routing when roles permit.', whenToUse: 'Hand-offs between finance, IT, and security teams.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"organization-notifications.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-notifications.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,IAAI,yCAAyC,EAAE,MAAM,8BAA8B,CAAC;AAC5I,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAC3B,+BAA+B,EAC/B,oBAAoB,EACpB,oEAAoE,IAAI,gCAAgC,GACzG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAM3E,MAAM,2CAA2C,GAAG,yCAInD,CAAC;AAEF,MAAM,kCAAkC,GAAG;IACzC,GAAG,EAAE,uCAAuC;IAC5C,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE;QAClB,mBAAmB,EAAE,yBAAyB;QAC9C,cAAc,EAAE,sBAAsB;QACtC,eAAe,EAAE,uBAAuB;QACxC,qBAAqB,EAAE,6BAA6B;QACpD,sBAAsB,EAAE,uBAAuB;QAC/C,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;QACp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,kDAAkD;oBAC5D,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;YACF,cAAc,EAAE;gBACd,YAAY,EAAE;oBACZ,OAAO,EAAE,2EAA2E;oBACpF,IAAI,EAAE,+FAA+F;oBACrG,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,4DAA4D,EAAE,EAAE;oBAC/F,UAAU,EAAE,CAAC;4BACX,QAAQ,EAAE,oEAAoE;4BAC9E,SAAS,EAAE,0BAA0B,CAAC,SAAS;4BAC/C,UAAU,EAAE,2BAA2B,CAAC,iBAAiB;yBAC1D,CAAC;iBACH;aACF;YACD,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,uJAAuJ;YAChK,OAAO,EAAE,qIAAqI;YAC9I,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,iHAAiH,EAAE;aACpK;YACD,2JAA2J;YAC3J,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,+LAA+L;KAChM;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,gFAAgF;IAChF,6EAA6E;IAC7E,4EAA4E;IAC5E,8EAA8E;IAC9E,gFAAgF;IAChF,oEAAoE;IACpE,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC5H,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,SAAS,EAAE,oDAAoD,EAAE;KAClJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationNotificationsMainResourceUIBehavior as organizationNotificationsUIBehaviorSource } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationNotificationsSchema,\n ResourcePrimaryScope,\n organizationNotificationsResourceConfiguration_InitializationFactory as organizationNotificationsFactory,\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 organizationNotificationsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationNotificationsResourceUIBehavior = organizationNotificationsUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_NOTIFICATIONS_EXAMPLE = {\n _id: 'organization_notifications_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n emailNotifications: {\n defaultEmailAddress: 'operations@acme.example',\n billingAddress: 'billing@acme.example',\n securityAddress: 'security@acme.example',\n administrativeAddress: 'administration@acme.example',\n usersManagementAddress: 'identity@acme.example',\n billing: true,\n administrative: true,\n security: true,\n usersManagement: false,\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 3,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n organization: { _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE._id,\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n emailNotifications: ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n _version: ORGANIZATION_NOTIFICATIONS_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE = {\n emailNotifications: {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n defaultEmailAddress: 'service-operations@acme.example',\n usersManagement: true,\n },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:35:00.000Z',\n _version: 4,\n} as const;\n\nexport const organizationNotificationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationNotificationsResourceUIBehavior),\n resourceSpecification(\n organizationNotificationsFactory,\n OrganizationNotificationsSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization email destinations and enablement switches for billing, security, administration, and user-management notices.',\n businessRole: 'Keeps operational notices routed to the teams responsible for each category, independently of individual member preferences.',\n lifecycleRole: 'Changes when category ownership moves to another mailbox or the organization enables or disables a notice category.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationNotificationsSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationNotificationsResourceConfiguration_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_NOTIFICATIONS',\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 },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationNotificationsMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: ['No custom operations. READ/UPDATE are the member-facing surface; CREATE is INTERNAL_CALL (seeds the row via the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle — INTERNAL_CALL because `createAsSystem` resolves the seed op through the service tier, which rejects REPOSITORY_ONLY) and DELETE is REPOSITORY_ONLY (tears it down via the paired `onParentDelete` cascade, which runs at the repository tier), neither an addressable route.'],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization notification-routing record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose notification-routing table this record configures.',\n whyItMatters: 'Scopes the routing map to one tenant so billing/security/admin notices for an org resolve to that org’s configured addresses and never leak across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n emailNotifications: schemaShape.emailNotifications.objectSpec({\n meaning: 'Per-category email addresses and enablement switches for billing, administration, security, and user-management notices.',\n whyItMatters: 'A category-specific address takes precedence for that category; the default address provides the general destination when a dedicated one is not configured.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization notification-routing record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any routing address or category switch last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s email routing addresses and category switches.',\n outcome: 'The caller can determine the configured destination and enabled state for billing, administrative, security, and user-management notices.',\n whenToUse: 'Use this operation when showing notification settings or checking where an organization-level notice will be routed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s notification routing map (per-category addresses and opt-ins) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete routing record with its organization relationship context.',\n outcome: 'The routing configuration and related organization identifier are returned together.',\n examples: [{\n title: 'Read notification routing with organization context',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact notification-routing representation.',\n outcome: 'The record identity, organization, complete category-routing block, and resource version are returned.',\n examples: [{\n title: 'Read compact organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org notification-routing row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled routing table exists for the tenant so downstream email fan-out resolves per-category opt-ins without a missing-row fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A notification-routing record was created for the organization with its `emailNotifications` block defaulted (category opt-ins on, addresses unset).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded routing payload fails `OrganizationNotificationsSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A notification-routing row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Replace the organization’s category addresses and notification switches.',\n outcome: 'Subsequent organization notices use the updated routing configuration.',\n whenToUse: 'Use this operation when responsibility for billing, security, administration, or user management moves to a different mailbox, or when a category is enabled or disabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The notification routing map was updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A routing address is malformed or a category toggle fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to change notification routing.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Update organization notification destinations',\n request: {\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the notification-routing configuration was saved.',\n tone: 'Brief and operational; the confirmation should avoid repeating email addresses unnecessarily.',\n textSlots: { title: { purpose: 'Short success headline for the saved-routing confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization administrator who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization notification-routing row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton routing 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 notification-routing 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 },\n businessConstraints: [\n 'The routing record configures destinations; updating it emits only an in-product success confirmation and does not itself send a billing, security, administrative, or user-management email.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // `views` documents FRONTEND operation semantics — only ops the merged frontend\n // configuration surfaces belong here. CREATE is an INTERNAL_CALL system-seed\n // (see config `variantType: INTERNAL_CALL` + the operations[CREATE] backend\n // semantics below), so it is NOT surfaced to the frontend and must not appear\n // in `views` — `validateFrontendSpecificationAgainstConfiguration` fails closed\n // on a views-documented op that no merged frontend config surfaces.\n views: {\n [Op.READ]: { purpose: 'Read-only org notification routing panel.', whenToUse: 'Org admin settings and compliance reviews.' },\n [Op.UPDATE]: { purpose: 'Editable org notification routing when roles permit.', whenToUse: 'Hand-offs between finance, IT, and security teams.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"organization-preferences.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-preferences.resource.specification.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAiB,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAO/G,OAAO,EAGL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAwE/B,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;iCA0SxD,CAAC"}
1
+ {"version":3,"file":"organization-preferences.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-preferences.resource.specification.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAiB,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAO/G,OAAO,EAGL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAyE/B,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;iCA2SxD,CAAC"}
@@ -3,6 +3,7 @@ import { AvailableLanguage, DateFormat, LabelAudience, TimeFormat } from '@wildo
3
3
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
4
4
  import { CoreUserNotificationChannel, CoreUserNotificationTarget, CoreResourceOperation as Op, OrganizationPreferencesSchema, ResourcePrimaryScope, organizationPreferencesResourceConfiguration_InitializationFactory as organizationPreferencesFactory, } from '@wildo-ai/saas-models';
5
5
  import { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
6
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
6
7
  const organizationPreferencesResourceUIBehavior = organizationPreferencesUIBehaviorSource;
7
8
  const ORGANIZATION_PREFERENCES_EXAMPLE = {
8
9
  _id: 'organization_preferences_01JEXAMPLE',
@@ -58,6 +59,7 @@ export const organizationPreferencesResourceSpecification = resourceSpecificatio
58
59
  businessRole: 'Gives members and integrations one consistent locale, timezone, language, and email-preference policy for the organization.',
59
60
  lifecycleRole: 'Changes when the organization enters a new region, supports another language, or revises its member override policy.',
60
61
  audience: LabelAudience.ADMIN,
62
+ subDomain: EngineResourceSubDomain.ORGANIZATIONS,
61
63
  codeHandling: {
62
64
  mainSchema: {
63
65
  packageName: '@wildo-ai/saas-models',
@@ -101,11 +103,11 @@ export const organizationPreferencesResourceSpecification = resourceSpecificatio
101
103
  meaning: 'Stable identifier of the organization-preferences record.',
102
104
  }),
103
105
  organizationId: schemaShape.organizationId.foreignKeySpec({
104
- meaning: 'The organization whose regional defaults and language policy this row holds.',
106
+ meaning: 'The organization whose regional defaults and language policy this record holds.',
105
107
  whyItMatters: 'Anchors the preferences to one tenant so locale/date/time defaults and member-override policy resolve per organization and never bleed across tenants.',
106
108
  importance: FieldSemanticImportance.PRIMARY,
107
109
  }),
108
- timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA-style timezone for org-wide scheduling surfaces.' }),
110
+ timezone: schemaShape.timezone.stringSpec({ meaning: 'The organization\u2019s timezone: org-wide scheduling surfaces use it, and it is the DEFAULT every member sees rendered dates and times in until they set one of their own. Together with `locale`, `dateFormat` and `timeFormat` it forms the layer between a member\u2019s own regional choices and the framework floor, resolved one field at a time \u2014 so a member who overrode only the date format still reads times in the organization\u2019s zone.' }),
109
111
  locale: schemaShape.locale.enumSpec({
110
112
  meaning: 'Default product locale for the organization — drives copy selection and formatting when a member has not overridden it.',
111
113
  importance: FieldSemanticImportance.PRIMARY,
@@ -277,7 +279,7 @@ export const organizationPreferencesResourceSpecification = resourceSpecificatio
277
279
  purpose: 'System-seed the org preferences row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_PREFERENCES `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',
278
280
  outcome: 'A defaults-filled preferences row exists for the tenant so regional/locale reads resolve without a lazy fallback.',
279
281
  responseStatuses: [
280
- { code: HttpResponseStatusCode.CREATED_201, meaning: 'A preferences row was created for the organization with schema defaults (timezone, locale, supported languages, override policy).' },
282
+ { code: HttpResponseStatusCode.CREATED_201, meaning: 'A preferences record was created for the organization with schema defaults (timezone, locale, supported languages, override policy).' },
281
283
  ],
282
284
  errorScenarios: [
283
285
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded preferences payload fails `OrganizationPreferencesSchema` validation.', errorCode: 'VALIDATION_FAILED' },
@@ -324,7 +326,7 @@ export const organizationPreferencesResourceSpecification = resourceSpecificatio
324
326
  purpose: 'Repository-only teardown of the organization preferences row when its owning organization is deleted (composition `onParentDelete` cascade).',
325
327
  outcome: 'The eager-seeded singleton preferences row is removed together with the organization — the composition part does not outlive its whole.',
326
328
  responseStatuses: [
327
- { code: HttpResponseStatusCode.OK_200, meaning: 'The organization preferences row was deleted as part of the owning organization’s deletion cascade.' },
329
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The organization preferences record was deleted as part of the owning organization’s deletion cascade.' },
328
330
  ],
329
331
  // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
330
332
  idempotent: true,
@@ -1 +1 @@
1
- {"version":3,"file":"organization-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6CAA6C,IAAI,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AACxI,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAE/G,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,kEAAkE,IAAI,8BAA8B,GACrG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAMrC,MAAM,yCAAyC,GAAG,uCAIjD,CAAC;AAEF,MAAM,gCAAgC,GAAG;IACvC,GAAG,EAAE,qCAAqC;IAC1C,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAA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E;IAC/E,6EAA6E;IAC7E,0DAA0D;IAC1D,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,SAAS,EAAE,6DAA6D,EAAE;QACvI,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,6DAA6D,EAAE;KACjJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationPreferencesMainResourceUIBehavior as organizationPreferencesUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { AvailableLanguage, DateFormat, LabelAudience, TimeFormat } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationPreferencesSchema,\n ResourcePrimaryScope,\n organizationPreferencesResourceConfiguration_InitializationFactory as organizationPreferencesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\ntype Cfg = ReturnType<typeof organizationPreferencesFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationPreferencesResourceUIBehavior = organizationPreferencesUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_PREFERENCES_EXAMPLE = {\n _id: 'organization_preferences_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n timezone: 'Europe/Luxembourg',\n locale: AvailableLanguage.EN_GB,\n dateFormat: DateFormat.EU_LONG,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.EN_GB,\n supportedLanguages: [AvailableLanguage.EN_GB, AvailableLanguage.FR, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: false,\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 4,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n organization: { _id: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PREFERENCES_EXAMPLE._id,\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n timezone: ORGANIZATION_PREFERENCES_EXAMPLE.timezone,\n locale: ORGANIZATION_PREFERENCES_EXAMPLE.locale,\n languagePreferences: ORGANIZATION_PREFERENCES_EXAMPLE.languagePreferences,\n _version: ORGANIZATION_PREFERENCES_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE = {\n timezone: 'Europe/Paris',\n locale: AvailableLanguage.FR,\n dateFormat: DateFormat.EU_SHORT,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.FR,\n supportedLanguages: [AvailableLanguage.FR, AvailableLanguage.EN_GB, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: true,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:15:00.000Z',\n _version: 5,\n} as const;\n\nexport const organizationPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationPreferencesResourceUIBehavior),\n resourceSpecification(\n organizationPreferencesFactory,\n OrganizationPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization-wide regional and language defaults, formatting conventions, and member override policy.',\n businessRole: 'Gives members and integrations one consistent locale, timezone, language, and email-preference policy for the organization.',\n lifecycleRole: 'Changes when the organization enters a new region, supports another language, or revises its member override policy.',\n audience: LabelAudience.ADMIN,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationPreferencesResourceConfiguration_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_PREFERENCES',\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 },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationPreferencesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-preferences record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose regional defaults and language policy this row holds.',\n whyItMatters: 'Anchors the preferences to one tenant so locale/date/time defaults and member-override policy resolve per organization and never bleed across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA-style timezone for org-wide scheduling surfaces.' }),\n locale: schemaShape.locale.enumSpec({\n meaning: 'Default product locale for the organization — drives copy selection and formatting when a member has not overridden it.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'AvailableLanguage',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AvailableLanguage.EN]: { meaning: 'English (United States).' },\n [AvailableLanguage.EN_GB]: { meaning: 'English (United Kingdom).' },\n [AvailableLanguage.EN_CA]: { meaning: 'English (Canada).' },\n [AvailableLanguage.EN_AU]: { meaning: 'English (Australia).' },\n [AvailableLanguage.ES]: { meaning: 'Spanish (Spain).' },\n [AvailableLanguage.ES_MX]: { meaning: 'Spanish (Mexico).' },\n [AvailableLanguage.ES_AR]: { meaning: 'Spanish (Argentina).' },\n [AvailableLanguage.ES_CO]: { meaning: 'Spanish (Colombia).' },\n [AvailableLanguage.FR]: { meaning: 'French (France).' },\n [AvailableLanguage.FR_CA]: { meaning: 'French (Canada).' },\n [AvailableLanguage.DE]: { meaning: 'German.' },\n [AvailableLanguage.DE_AT]: { meaning: 'German (Austria).' },\n [AvailableLanguage.DE_CH]: { meaning: 'German (Switzerland).' },\n [AvailableLanguage.PT]: { meaning: 'Portuguese (Portugal).' },\n [AvailableLanguage.PT_BR]: { meaning: 'Portuguese (Brazil).' },\n [AvailableLanguage.IT]: { meaning: 'Italian.' },\n [AvailableLanguage.NL]: { meaning: 'Dutch.' },\n [AvailableLanguage.RU]: { meaning: 'Russian.' },\n [AvailableLanguage.ZH]: { meaning: 'Chinese (Simplified).' },\n [AvailableLanguage.ZH_CN]: { meaning: 'Chinese (Simplified, China).' },\n [AvailableLanguage.ZH_TW]: { meaning: 'Chinese (Traditional, Taiwan).' },\n [AvailableLanguage.ZH_HK]: { meaning: 'Chinese (Traditional, Hong Kong).' },\n [AvailableLanguage.JA]: { meaning: 'Japanese.' },\n [AvailableLanguage.KO]: { meaning: 'Korean.' },\n [AvailableLanguage.AR]: { meaning: 'Arabic.' },\n [AvailableLanguage.HI]: { meaning: 'Hindi.' },\n [AvailableLanguage.SV]: { meaning: 'Swedish.' },\n [AvailableLanguage.NO]: { meaning: 'Norwegian.' },\n [AvailableLanguage.DA]: { meaning: 'Danish.' },\n [AvailableLanguage.FI]: { meaning: 'Finnish.' },\n [AvailableLanguage.PL]: { meaning: 'Polish.' },\n [AvailableLanguage.CS]: { meaning: 'Czech.' },\n [AvailableLanguage.HU]: { meaning: 'Hungarian.' },\n [AvailableLanguage.RO]: { meaning: 'Romanian.' },\n [AvailableLanguage.BG]: { meaning: 'Bulgarian.' },\n [AvailableLanguage.HR]: { meaning: 'Croatian.' },\n [AvailableLanguage.SK]: { meaning: 'Slovak.' },\n [AvailableLanguage.SL]: { meaning: 'Slovenian.' },\n [AvailableLanguage.LT]: { meaning: 'Lithuanian.' },\n [AvailableLanguage.LV]: { meaning: 'Latvian.' },\n [AvailableLanguage.ET]: { meaning: 'Estonian.' },\n [AvailableLanguage.EL]: { meaning: 'Greek.' },\n [AvailableLanguage.TR]: { meaning: 'Turkish.' },\n [AvailableLanguage.TH]: { meaning: 'Thai.' },\n [AvailableLanguage.VI]: { meaning: 'Vietnamese.' },\n [AvailableLanguage.ID]: { meaning: 'Indonesian.' },\n [AvailableLanguage.MS]: { meaning: 'Malay.' },\n [AvailableLanguage.TA]: { meaning: 'Tamil.' },\n [AvailableLanguage.BN]: { meaning: 'Bengali.' },\n [AvailableLanguage.UR]: { meaning: 'Urdu.' },\n [AvailableLanguage.FA]: { meaning: 'Persian / Farsi.' },\n [AvailableLanguage.HE]: { meaning: 'Hebrew.' },\n [AvailableLanguage.SW]: { meaning: 'Swahili.' },\n [AvailableLanguage.AF]: { meaning: 'Afrikaans.' },\n [AvailableLanguage.AM]: { meaning: 'Amharic.' },\n [AvailableLanguage.IS]: { meaning: 'Icelandic.' },\n [AvailableLanguage.MT]: { meaning: 'Maltese.' },\n [AvailableLanguage.GA]: { meaning: 'Irish.' },\n [AvailableLanguage.CY]: { meaning: 'Welsh.' },\n [AvailableLanguage.EU]: { meaning: 'Basque.' },\n [AvailableLanguage.CA]: { meaning: 'Catalan.' },\n [AvailableLanguage.GL]: { meaning: 'Galician.' },\n },\n }),\n dateFormat: schemaShape.dateFormat.enumSpec({\n meaning: 'Default date-rendering pattern applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'DateFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DateFormat.LOCALE_DEFAULT]: { meaning: 'Locale-driven medium date rendered by `Intl.DateTimeFormat` in the viewer\\'s resolved locale (e.g. `Aug 18, 2026` / `18 août 2026`); the engine fallback when no preference is expressed.' },\n [DateFormat.ISO_8601]: { meaning: 'ISO 8601 date, `YYYY-MM-DD`.' },\n [DateFormat.ISO_DATETIME]: { meaning: 'ISO 8601 date-time, `YYYY-MM-DD HH:mm:ss`.' },\n [DateFormat.US_SHORT]: { meaning: 'US short, `MM/DD/YYYY`.' },\n [DateFormat.US_LONG]: { meaning: 'US long, `MMMM DD, YYYY`.' },\n [DateFormat.US_MEDIUM]: { meaning: 'US medium, `MMM DD, YYYY`.' },\n [DateFormat.EU_SHORT]: { meaning: 'European short, `DD/MM/YYYY`.' },\n [DateFormat.EU_LONG]: { meaning: 'European long, `DD MMMM YYYY`.' },\n [DateFormat.EU_MEDIUM]: { meaning: 'European medium, `DD MMM YYYY`.' },\n [DateFormat.DOT_SEPARATED]: { meaning: 'Dot-separated, `DD.MM.YYYY`.' },\n [DateFormat.DASH_SEPARATED]: { meaning: 'Dash-separated, `DD-MM-YYYY`.' },\n [DateFormat.REVERSE_SLASH]: { meaning: 'Reverse slash, `YYYY/MM/DD`.' },\n [DateFormat.COMPACT_US]: { meaning: 'Compact US, `M/D/YY`.' },\n [DateFormat.COMPACT_EU]: { meaning: 'Compact European, `D/M/YY`.' },\n [DateFormat.COMPACT_ISO]: { meaning: 'Compact ISO, `YY-MM-DD`.' },\n },\n }),\n timeFormat: schemaShape.timeFormat.enumSpec({\n meaning: 'Default clock convention (12- vs 24-hour) applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'TimeFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [TimeFormat.TWELVE_HOUR]: { meaning: '12-hour clock with AM/PM.' },\n [TimeFormat.TWENTY_FOUR_HOUR]: { meaning: '24-hour clock.' },\n },\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'Organization language policy: primary language, supported language set, and whether members may choose a different language.',\n whyItMatters: 'Clients use this policy to offer only supported languages and to decide whether a member-level selection is allowed.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n allowMemberEmailOverride: schemaShape.allowMemberEmailOverride.booleanSpec({\n meaning: 'Whether members may choose email-delivery preferences that differ from the organization default.',\n whyItMatters: 'When false, clients should present organization policy as enforced rather than offering an ineffective member override.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization-preferences record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored organization preference last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s effective regional and language defaults.',\n outcome: 'The caller receives the timezone, locale, formatting rules, supported-language policy, and member email-override policy.',\n whenToUse: 'Use this operation before formatting organization-wide dates and times or presenting member language and email-preference controls.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s regional defaults (timezone, locale, supported languages, override policy) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization regional and language preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete preferences record with its organization relationship context.',\n outcome: 'The preferences and the related organization identifier are returned together.',\n examples: [{\n title: 'Read organization preferences with context',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact regional and language-policy representation.',\n outcome: 'The record identity, organization, timezone, locale, language policy, and resource version are returned.',\n examples: [{\n title: 'Read compact organization preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org preferences row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_PREFERENCES `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled preferences row exists for the tenant so regional/locale reads resolve without a lazy fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A preferences row was created for the organization with schema defaults (timezone, locale, supported languages, override policy).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded preferences payload fails `OrganizationPreferencesSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A preferences row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Update the organization’s regional, language, and member email-override defaults.',\n outcome: 'The updated preferences become the organization defaults for clients and new member sessions.',\n whenToUse: 'Use this operation when the organization changes operating region, supported languages, formatting conventions, or member override policy.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The regional defaults and enforcement flags were updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The timezone, locale, or supported-language list fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required to change organization-wide preferences.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Change organization locale and language policy',\n request: {\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the organization preferences were saved.',\n tone: 'Brief and operational; the confirmation should not restate the full policy payload.',\n textSlots: { title: { purpose: 'Short success headline for the saved-preferences confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization manager who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization preferences row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton preferences 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 preferences row 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 },\n businessConstraints: [\n 'Organization preferences supply defaults. A member preference may replace them only where the organization policy explicitly permits an override.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // CREATE is an INTERNAL_CALL system-seed (not surfaced to the frontend), so it\n // must not appear in the `views` (frontend semantics) slice — see the same fix\n // and rationale in organization-notifications.resource.specification.ts. Its\n // backend semantics live in the `operations` block above.\n views: {\n [Op.READ]: { purpose: 'Org regional settings read surface.', whenToUse: 'Check effective defaults before support tickets and audits.' },\n [Op.UPDATE]: { purpose: 'Org admin controlled regional stack edits.', whenToUse: 'New market launches and contract-mandated language support.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"organization-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6CAA6C,IAAI,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AACxI,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAE/G,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,kEAAkE,IAAI,8BAA8B,GACrG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAM3E,MAAM,yCAAyC,GAAG,uCAIjD,CAAC;AAEF,MAAM,gCAAgC,GAAG;IACvC,GAAG,EAAE,qCAAqC;IAC1C,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,mBAAmB;IA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L,+EAA+E;IAC/E,+EAA+E;IAC/E,6EAA6E;IAC7E,0DAA0D;IAC1D,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,SAAS,EAAE,6DAA6D,EAAE;QACvI,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,6DAA6D,EAAE;KACjJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationPreferencesMainResourceUIBehavior as organizationPreferencesUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { AvailableLanguage, DateFormat, LabelAudience, TimeFormat } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationPreferencesSchema,\n ResourcePrimaryScope,\n organizationPreferencesResourceConfiguration_InitializationFactory as organizationPreferencesFactory,\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 organizationPreferencesFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationPreferencesResourceUIBehavior = organizationPreferencesUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_PREFERENCES_EXAMPLE = {\n _id: 'organization_preferences_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n timezone: 'Europe/Luxembourg',\n locale: AvailableLanguage.EN_GB,\n dateFormat: DateFormat.EU_LONG,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.EN_GB,\n supportedLanguages: [AvailableLanguage.EN_GB, AvailableLanguage.FR, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: false,\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 4,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n organization: { _id: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PREFERENCES_EXAMPLE._id,\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n timezone: ORGANIZATION_PREFERENCES_EXAMPLE.timezone,\n locale: ORGANIZATION_PREFERENCES_EXAMPLE.locale,\n languagePreferences: ORGANIZATION_PREFERENCES_EXAMPLE.languagePreferences,\n _version: ORGANIZATION_PREFERENCES_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE = {\n timezone: 'Europe/Paris',\n locale: AvailableLanguage.FR,\n dateFormat: DateFormat.EU_SHORT,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.FR,\n supportedLanguages: [AvailableLanguage.FR, AvailableLanguage.EN_GB, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: true,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:15:00.000Z',\n _version: 5,\n} as const;\n\nexport const organizationPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationPreferencesResourceUIBehavior),\n resourceSpecification(\n organizationPreferencesFactory,\n OrganizationPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization-wide regional and language defaults, formatting conventions, and member override policy.',\n businessRole: 'Gives members and integrations one consistent locale, timezone, language, and email-preference policy for the organization.',\n lifecycleRole: 'Changes when the organization enters a new region, supports another language, or revises its member override policy.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationPreferencesResourceConfiguration_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_PREFERENCES',\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 },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationPreferencesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-preferences record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose regional defaults and language policy this record holds.',\n whyItMatters: 'Anchors the preferences to one tenant so locale/date/time defaults and member-override policy resolve per organization and never bleed across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'The organization\\u2019s timezone: org-wide scheduling surfaces use it, and it is the DEFAULT every member sees rendered dates and times in until they set one of their own. Together with `locale`, `dateFormat` and `timeFormat` it forms the layer between a member\\u2019s own regional choices and the framework floor, resolved one field at a time \\u2014 so a member who overrode only the date format still reads times in the organization\\u2019s zone.' }),\n locale: schemaShape.locale.enumSpec({\n meaning: 'Default product locale for the organization — drives copy selection and formatting when a member has not overridden it.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'AvailableLanguage',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AvailableLanguage.EN]: { meaning: 'English (United States).' },\n [AvailableLanguage.EN_GB]: { meaning: 'English (United Kingdom).' },\n [AvailableLanguage.EN_CA]: { meaning: 'English (Canada).' },\n [AvailableLanguage.EN_AU]: { meaning: 'English (Australia).' },\n [AvailableLanguage.ES]: { meaning: 'Spanish (Spain).' },\n [AvailableLanguage.ES_MX]: { meaning: 'Spanish (Mexico).' },\n [AvailableLanguage.ES_AR]: { meaning: 'Spanish (Argentina).' },\n [AvailableLanguage.ES_CO]: { meaning: 'Spanish (Colombia).' },\n [AvailableLanguage.FR]: { meaning: 'French (France).' },\n [AvailableLanguage.FR_CA]: { meaning: 'French (Canada).' },\n [AvailableLanguage.DE]: { meaning: 'German.' },\n [AvailableLanguage.DE_AT]: { meaning: 'German (Austria).' },\n [AvailableLanguage.DE_CH]: { meaning: 'German (Switzerland).' },\n [AvailableLanguage.PT]: { meaning: 'Portuguese (Portugal).' },\n [AvailableLanguage.PT_BR]: { meaning: 'Portuguese (Brazil).' },\n [AvailableLanguage.IT]: { meaning: 'Italian.' },\n [AvailableLanguage.NL]: { meaning: 'Dutch.' },\n [AvailableLanguage.RU]: { meaning: 'Russian.' },\n [AvailableLanguage.ZH]: { meaning: 'Chinese (Simplified).' },\n [AvailableLanguage.ZH_CN]: { meaning: 'Chinese (Simplified, China).' },\n [AvailableLanguage.ZH_TW]: { meaning: 'Chinese (Traditional, Taiwan).' },\n [AvailableLanguage.ZH_HK]: { meaning: 'Chinese (Traditional, Hong Kong).' },\n [AvailableLanguage.JA]: { meaning: 'Japanese.' },\n [AvailableLanguage.KO]: { meaning: 'Korean.' },\n [AvailableLanguage.AR]: { meaning: 'Arabic.' },\n [AvailableLanguage.HI]: { meaning: 'Hindi.' },\n [AvailableLanguage.SV]: { meaning: 'Swedish.' },\n [AvailableLanguage.NO]: { meaning: 'Norwegian.' },\n [AvailableLanguage.DA]: { meaning: 'Danish.' },\n [AvailableLanguage.FI]: { meaning: 'Finnish.' },\n [AvailableLanguage.PL]: { meaning: 'Polish.' },\n [AvailableLanguage.CS]: { meaning: 'Czech.' },\n [AvailableLanguage.HU]: { meaning: 'Hungarian.' },\n [AvailableLanguage.RO]: { meaning: 'Romanian.' },\n [AvailableLanguage.BG]: { meaning: 'Bulgarian.' },\n [AvailableLanguage.HR]: { meaning: 'Croatian.' },\n [AvailableLanguage.SK]: { meaning: 'Slovak.' },\n [AvailableLanguage.SL]: { meaning: 'Slovenian.' },\n [AvailableLanguage.LT]: { meaning: 'Lithuanian.' },\n [AvailableLanguage.LV]: { meaning: 'Latvian.' },\n [AvailableLanguage.ET]: { meaning: 'Estonian.' },\n [AvailableLanguage.EL]: { meaning: 'Greek.' },\n [AvailableLanguage.TR]: { meaning: 'Turkish.' },\n [AvailableLanguage.TH]: { meaning: 'Thai.' },\n [AvailableLanguage.VI]: { meaning: 'Vietnamese.' },\n [AvailableLanguage.ID]: { meaning: 'Indonesian.' },\n [AvailableLanguage.MS]: { meaning: 'Malay.' },\n [AvailableLanguage.TA]: { meaning: 'Tamil.' },\n [AvailableLanguage.BN]: { meaning: 'Bengali.' },\n [AvailableLanguage.UR]: { meaning: 'Urdu.' },\n [AvailableLanguage.FA]: { meaning: 'Persian / Farsi.' },\n [AvailableLanguage.HE]: { meaning: 'Hebrew.' },\n [AvailableLanguage.SW]: { meaning: 'Swahili.' },\n [AvailableLanguage.AF]: { meaning: 'Afrikaans.' },\n [AvailableLanguage.AM]: { meaning: 'Amharic.' },\n [AvailableLanguage.IS]: { meaning: 'Icelandic.' },\n [AvailableLanguage.MT]: { meaning: 'Maltese.' },\n [AvailableLanguage.GA]: { meaning: 'Irish.' },\n [AvailableLanguage.CY]: { meaning: 'Welsh.' },\n [AvailableLanguage.EU]: { meaning: 'Basque.' },\n [AvailableLanguage.CA]: { meaning: 'Catalan.' },\n [AvailableLanguage.GL]: { meaning: 'Galician.' },\n },\n }),\n dateFormat: schemaShape.dateFormat.enumSpec({\n meaning: 'Default date-rendering pattern applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'DateFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DateFormat.LOCALE_DEFAULT]: { meaning: 'Locale-driven medium date rendered by `Intl.DateTimeFormat` in the viewer\\'s resolved locale (e.g. `Aug 18, 2026` / `18 août 2026`); the engine fallback when no preference is expressed.' },\n [DateFormat.ISO_8601]: { meaning: 'ISO 8601 date, `YYYY-MM-DD`.' },\n [DateFormat.ISO_DATETIME]: { meaning: 'ISO 8601 date-time, `YYYY-MM-DD HH:mm:ss`.' },\n [DateFormat.US_SHORT]: { meaning: 'US short, `MM/DD/YYYY`.' },\n [DateFormat.US_LONG]: { meaning: 'US long, `MMMM DD, YYYY`.' },\n [DateFormat.US_MEDIUM]: { meaning: 'US medium, `MMM DD, YYYY`.' },\n [DateFormat.EU_SHORT]: { meaning: 'European short, `DD/MM/YYYY`.' },\n [DateFormat.EU_LONG]: { meaning: 'European long, `DD MMMM YYYY`.' },\n [DateFormat.EU_MEDIUM]: { meaning: 'European medium, `DD MMM YYYY`.' },\n [DateFormat.DOT_SEPARATED]: { meaning: 'Dot-separated, `DD.MM.YYYY`.' },\n [DateFormat.DASH_SEPARATED]: { meaning: 'Dash-separated, `DD-MM-YYYY`.' },\n [DateFormat.REVERSE_SLASH]: { meaning: 'Reverse slash, `YYYY/MM/DD`.' },\n [DateFormat.COMPACT_US]: { meaning: 'Compact US, `M/D/YY`.' },\n [DateFormat.COMPACT_EU]: { meaning: 'Compact European, `D/M/YY`.' },\n [DateFormat.COMPACT_ISO]: { meaning: 'Compact ISO, `YY-MM-DD`.' },\n },\n }),\n timeFormat: schemaShape.timeFormat.enumSpec({\n meaning: 'Default clock convention (12- vs 24-hour) applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'TimeFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [TimeFormat.TWELVE_HOUR]: { meaning: '12-hour clock with AM/PM.' },\n [TimeFormat.TWENTY_FOUR_HOUR]: { meaning: '24-hour clock.' },\n },\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'Organization language policy: primary language, supported language set, and whether members may choose a different language.',\n whyItMatters: 'Clients use this policy to offer only supported languages and to decide whether a member-level selection is allowed.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n allowMemberEmailOverride: schemaShape.allowMemberEmailOverride.booleanSpec({\n meaning: 'Whether members may choose email-delivery preferences that differ from the organization default.',\n whyItMatters: 'When false, clients should present organization policy as enforced rather than offering an ineffective member override.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization-preferences record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored organization preference last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s effective regional and language defaults.',\n outcome: 'The caller receives the timezone, locale, formatting rules, supported-language policy, and member email-override policy.',\n whenToUse: 'Use this operation before formatting organization-wide dates and times or presenting member language and email-preference controls.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s regional defaults (timezone, locale, supported languages, override policy) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization regional and language preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete preferences record with its organization relationship context.',\n outcome: 'The preferences and the related organization identifier are returned together.',\n examples: [{\n title: 'Read organization preferences with context',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact regional and language-policy representation.',\n outcome: 'The record identity, organization, timezone, locale, language policy, and resource version are returned.',\n examples: [{\n title: 'Read compact organization preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org preferences row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_PREFERENCES `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled preferences row exists for the tenant so regional/locale reads resolve without a lazy fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A preferences record was created for the organization with schema defaults (timezone, locale, supported languages, override policy).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded preferences payload fails `OrganizationPreferencesSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A preferences row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Update the organization’s regional, language, and member email-override defaults.',\n outcome: 'The updated preferences become the organization defaults for clients and new member sessions.',\n whenToUse: 'Use this operation when the organization changes operating region, supported languages, formatting conventions, or member override policy.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The regional defaults and enforcement flags were updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The timezone, locale, or supported-language list fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required to change organization-wide preferences.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Change organization locale and language policy',\n request: {\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the organization preferences were saved.',\n tone: 'Brief and operational; the confirmation should not restate the full policy payload.',\n textSlots: { title: { purpose: 'Short success headline for the saved-preferences confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization manager who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization preferences row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton preferences 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 preferences 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 },\n businessConstraints: [\n 'Organization preferences supply defaults. A member preference may replace them only where the organization policy explicitly permits an override.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // CREATE is an INTERNAL_CALL system-seed (not surfaced to the frontend), so it\n // must not appear in the `views` (frontend semantics) slice — see the same fix\n // and rationale in organization-notifications.resource.specification.ts. Its\n // backend semantics live in the `operations` block above.\n views: {\n [Op.READ]: { purpose: 'Org regional settings read surface.', whenToUse: 'Check effective defaults before support tickets and audits.' },\n [Op.UPDATE]: { purpose: 'Org admin controlled regional stack edits.', whenToUse: 'New market launches and contract-mandated language support.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"organization-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EAEpB,8BAA8B,EAC9B,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAyG/B,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmOrD,CAAC"}
1
+ {"version":3,"file":"organization-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EAEpB,8BAA8B,EAC9B,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AA0G/B,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAoOrD,CAAC"}
@@ -3,6 +3,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
3
3
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
4
4
  import { CoreResourceOperation as Op, OrganizationIndustry, OrganizationProfileSchema, OrganizationProfile_Operations, OrganizationSize, ResourcePrimaryScope, organizationProfileResourceConfiguration_InitializationFactory as organizationProfilesFactory, } from '@wildo-ai/saas-models';
5
5
  import { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
6
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
6
7
  const organizationProfilesResourceUIBehavior = organizationProfilesUIBehaviorSource;
7
8
  const ORGANIZATION_PROFILE_EXAMPLE = {
8
9
  _id: 'organization_profile_01JEXAMPLE',
@@ -92,6 +93,7 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
92
93
  businessRole: 'Gives authorized members and integrations one consistent organization profile for product surfaces, directories, and connected systems.',
93
94
  lifecycleRole: 'The profile is created with its organization, evolves through company and brand changes, and is removed with the owning organization.',
94
95
  audience: LabelAudience.ADMIN,
96
+ subDomain: EngineResourceSubDomain.ORGANIZATIONS,
95
97
  codeHandling: {
96
98
  mainSchema: {
97
99
  packageName: '@wildo-ai/saas-models',
@@ -194,7 +196,7 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
194
196
  timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA timezone used when organization-facing surfaces need a local time context.' }),
195
197
  branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon, colors, and custom-domain overrides. Omitted values fall back to application branding.' }),
196
198
  socialLinks: schemaShape.socialLinks.objectSpec({ meaning: 'Optional public profile URLs for the organization’s supported social and developer channels.' }),
197
- createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile row was created by the organization lifecycle.' }),
199
+ createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile record was created by the organization lifecycle.' }),
198
200
  updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored profile field was last changed.' }),
199
201
  },
200
202
  operations: {
@@ -265,7 +267,7 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
265
267
  purpose: 'Repository-only teardown of the organization profile row when its owning organization is deleted (composition `onParentDelete` cascade).',
266
268
  outcome: 'The eager-seeded singleton profile row is removed together with the organization — the composition part does not outlive its whole.',
267
269
  responseStatuses: [
268
- { code: HttpResponseStatusCode.OK_200, meaning: 'The organization profile row was deleted as part of the owning organization’s deletion cascade.' },
270
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The organization profile record was deleted as part of the owning organization’s deletion cascade.' },
269
271
  ],
270
272
  // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
271
273
  idempotent: true,
@@ -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;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAOrC,MAAM,sCAAsC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,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';\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 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 row 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 row 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,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,C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B,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. 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 +1 @@
1
- {"version":3,"file":"organization-unit-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-unit-members.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,4CAA4C;;;;;;;;kCA4SxD,CAAC"}
1
+ {"version":3,"file":"organization-unit-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-unit-members.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,4CAA4C;;;;;;;;kCA6SxD,CAAC"}
@@ -13,11 +13,13 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
13
13
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
14
14
  import { CORE_ORG_ROLES, CoreResourceOperation as Op, OrganizationUnitMemberSchema, ResourcePrimaryScope, organizationUnitMemberResourceConfiguration_InitializationFactory as organizationUnitMembersFactory, } from '@wildo-ai/saas-models';
15
15
  import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
16
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
16
17
  export const organizationUnitMembersResourceSpecification = resourceSpecification(organizationUnitMembersFactory, OrganizationUnitMemberSchema, ({ schemaShape }) => ({
17
18
  purpose: 'Junction between an organization MEMBERSHIP and an organization UNIT: "this member holds this role inside this unit of the org chart".',
18
19
  businessRole: 'The per-unit half of a member’s authority, complementing the organization-wide `roles` array on the membership row. Replaced an embedded array on `ORGANIZATION_MEMBERS` so unit assignment became queryable on every persistence adapter, cascade-governed, and unique per (member, unit).',
19
20
  lifecycleRole: 'Created when an org admin assigns a member to a unit; the role may be re-graded in place; deleted on revocation, and cascade-deleted with the owning membership or the tenant.',
20
21
  audience: LabelAudience.ADMIN,
22
+ subDomain: EngineResourceSubDomain.ORGANIZATIONS,
21
23
  codeHandling: {
22
24
  mainSchema: {
23
25
  packageName: '@wildo-ai/saas-models',
@@ -82,7 +84,7 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
82
84
  operations: {
83
85
  [Op.CREATE]: {
84
86
  purpose: 'Assign a member to an organization unit with a role.',
85
- outcome: 'The member holds the given role inside that unit, and an `organization_unit_member_role_changed` audit event records the grant against an empty baseline. The event is an AUTHORIZATION-category record rather than org-chart bookkeeping because the assigned role is live authority: it is emitted into the member’s `initiatorRoles` carrying an `organizationUnitId` discriminator that narrows it to this one unit.',
87
+ outcome: 'The member holds the given role inside that unit, and an `organization_unit_member_role_changed` audit event records the grant against an empty baseline. The event is an AUTHORIZATION-category record rather than org-chart bookkeeping because the assigned role is live authority: it is emitted into the member’s `initiatorRoles` carrying an `organizationUnitId` that narrows it to this one unit.',
86
88
  responseStatuses: [
87
89
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'The assignment was created and is returned.' },
88
90
  ],