@wildo-ai/saas-specifications 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (928) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/index.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
  7. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  8. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
  9. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  10. package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
  11. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  12. package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
  13. package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
  14. package/dist/esm/_core/brand/brand-name-choice.js +144 -24
  15. package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
  16. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
  17. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
  19. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
  21. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
  23. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  24. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
  25. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  26. package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
  27. package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
  28. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
  29. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
  31. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  32. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
  33. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  35. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  36. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
  37. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
  39. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  40. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +21 -3
  41. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  42. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +411 -13
  43. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
  45. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  46. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
  47. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  48. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
  49. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
  51. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  52. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +6 -0
  53. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  54. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
  55. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  56. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +1 -0
  57. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
  59. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
  61. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  62. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
  63. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  64. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  65. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  66. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  67. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  68. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  69. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  70. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
  71. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +66 -2
  73. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  74. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +42 -2
  75. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  76. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
  77. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  78. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
  79. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  81. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  82. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  83. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  85. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  86. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  87. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  88. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  89. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  90. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
  91. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  92. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
  93. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  94. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  95. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  97. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  98. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
  100. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -1
  102. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  103. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +41 -1
  104. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  105. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -1
  106. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  107. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +134 -9
  108. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  109. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
  110. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
  112. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  113. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
  114. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  115. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
  116. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  117. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
  118. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
  120. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
  122. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  123. package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
  124. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  125. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  126. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
  127. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  128. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
  129. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  130. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
  131. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  132. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
  133. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  135. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  136. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  137. package/dist/esm/_core/family-aspects.registry.js +2 -0
  138. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  139. package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
  140. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/family-aspects.schemas.js +20 -0
  142. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  143. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +6 -6
  144. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  145. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  146. package/dist/esm/_core/index.d.ts +6 -0
  147. package/dist/esm/_core/index.d.ts.map +1 -1
  148. package/dist/esm/_core/index.js +6 -0
  149. package/dist/esm/_core/index.js.map +1 -1
  150. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
  151. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  153. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  154. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  155. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
  156. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
  158. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  159. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  160. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  162. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  163. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
  164. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  166. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  167. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  168. package/dist/esm/_core/market/market.family-aspects.js +4 -1
  169. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  170. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
  171. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  172. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +6 -3
  173. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  174. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -1
  175. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  176. package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
  177. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  178. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  179. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +9 -0
  180. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  181. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
  182. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  183. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
  184. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  185. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
  186. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
  188. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  189. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -0
  190. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  191. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +2 -0
  192. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  193. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
  194. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
  195. package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
  196. package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
  197. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
  198. package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
  199. package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
  200. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -0
  201. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  202. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +12 -1
  203. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  204. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
  205. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  206. package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
  207. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  208. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
  209. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  210. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
  211. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  212. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  213. package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
  214. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  215. package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
  216. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  217. package/dist/esm/_core/resource-specification.schemas.js +73 -13
  218. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  219. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
  220. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  221. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  222. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  223. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  224. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  225. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  226. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  227. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
  228. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  229. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  230. package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
  231. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  232. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
  233. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  234. package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
  235. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  236. package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
  237. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  238. package/dist/esm/_core/service-method/service-method-validation.js +75 -0
  239. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  240. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  241. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  242. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  243. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  244. package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
  245. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  246. package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
  247. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  248. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
  249. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  250. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  251. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  252. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
  253. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  254. package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
  255. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  256. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  257. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
  258. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  259. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
  260. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  261. package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
  262. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  263. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
  264. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  265. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
  266. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  267. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
  268. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  269. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
  270. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  271. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
  272. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  273. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  274. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  275. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
  276. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  277. package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
  278. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  279. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
  280. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  281. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
  282. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
  283. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  284. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  285. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  286. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  287. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
  288. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  289. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
  290. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  291. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
  292. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  293. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
  294. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  295. package/dist/esm/application-creation.exports.d.ts +7 -0
  296. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  297. package/dist/esm/application-creation.exports.js +7 -0
  298. package/dist/esm/application-creation.exports.js.map +1 -1
  299. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
  300. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  301. package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
  302. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  303. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  304. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  305. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  306. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  307. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
  308. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  309. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
  310. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  311. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
  312. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  313. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  314. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  315. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  316. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  317. package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
  318. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  319. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
  320. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  321. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  322. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  323. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
  324. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  325. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
  326. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  327. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  328. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
  329. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  330. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  331. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  332. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  333. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  334. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  335. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  336. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
  337. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  338. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  339. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  340. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  341. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  342. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
  343. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  344. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
  345. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  346. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
  347. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  348. package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
  349. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  350. package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
  351. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  352. package/dist/esm/assurance/assurance-program.schemas.js +255 -14
  353. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  354. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  355. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  356. package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
  357. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  358. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  359. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  360. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
  361. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  362. package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
  363. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  364. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  365. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  366. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  367. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
  368. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  369. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  370. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  371. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  372. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  373. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  374. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  375. package/dist/esm/assurance/governed-document-release.js +3 -1
  376. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  377. package/dist/esm/assurance.exports.d.ts +4 -0
  378. package/dist/esm/assurance.exports.d.ts.map +1 -1
  379. package/dist/esm/assurance.exports.js +4 -0
  380. package/dist/esm/assurance.exports.js.map +1 -1
  381. package/dist/esm/companion-exports.d.ts +9 -1
  382. package/dist/esm/companion-exports.d.ts.map +1 -1
  383. package/dist/esm/companion-exports.js.map +1 -1
  384. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -1
  385. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +33 -5
  387. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +9 -12
  390. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +1 -1
  392. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +60 -6
  394. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  395. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  396. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  397. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  398. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/applications/resources/applications.resource.specification.js +2 -2
  400. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  401. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +12 -4
  402. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  403. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +46 -10
  404. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  405. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
  406. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  408. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +40 -11
  412. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -1
  414. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  415. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +44 -3
  416. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  417. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
  418. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  419. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +40 -8
  420. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  421. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +14 -8
  422. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  423. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +72 -19
  424. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  425. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +2 -2
  426. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  427. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +6 -6
  428. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  429. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  430. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  431. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
  432. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  433. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -2
  435. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  436. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
  437. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -1
  438. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  439. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +68 -12
  440. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  441. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  442. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
  443. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  444. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -1
  445. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +11 -7
  447. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  448. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
  449. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  450. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
  451. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  452. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
  453. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
  455. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  456. package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
  457. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  458. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  459. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  460. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
  461. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  462. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
  463. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  464. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
  465. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +1 -1
  466. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +4 -0
  468. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +4 -1
  470. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
  472. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
  474. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  475. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
  476. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  477. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
  478. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  479. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
  480. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +19 -13
  482. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  483. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
  484. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
  486. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  488. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  489. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  490. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  491. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
  492. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  494. package/dist/esm/engine/engine-resource-specifications.registry.js +55 -11
  495. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  496. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/errors/error-messages.specification.js +300 -5
  498. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  499. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  500. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  501. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  502. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  503. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  505. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  506. package/dist/esm/engine/features/index.d.ts +4 -2
  507. package/dist/esm/engine/features/index.d.ts.map +1 -1
  508. package/dist/esm/engine/features/index.js +6 -4
  509. package/dist/esm/engine/features/index.js.map +1 -1
  510. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
  511. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  512. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
  514. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  515. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -1
  516. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/files/resources/files.resource.specification.js +24 -3
  518. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  519. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  520. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
  521. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  522. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
  523. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  524. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  525. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  527. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  528. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  529. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  531. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  532. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  533. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  535. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  536. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  537. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  539. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  542. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  543. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  544. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  545. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
  546. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  547. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  548. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  549. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  550. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  551. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
  552. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +118 -18
  554. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  555. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
  556. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
  558. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  560. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  562. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  565. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  566. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  568. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  569. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  570. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  571. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  572. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  573. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  574. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  575. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
  576. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  577. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  578. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  579. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  580. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  581. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  582. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  583. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  584. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  585. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  586. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  587. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  588. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  589. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  591. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  592. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +6 -0
  594. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  595. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  596. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  598. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  599. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  601. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  602. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  603. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  604. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  606. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  607. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  609. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  610. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  611. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  612. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  613. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  614. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  615. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  616. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  617. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  618. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  619. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  620. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +3 -2
  622. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  623. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  624. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  625. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  626. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  628. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  629. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  630. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  632. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  633. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  634. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
  638. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  641. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  642. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  644. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  645. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  646. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  647. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  648. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  649. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  650. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  651. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  652. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  653. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  654. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  655. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  657. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  658. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  659. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  660. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  661. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  662. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  663. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  664. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  665. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  666. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  667. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  668. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  669. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  671. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  672. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  673. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  674. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  675. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  676. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
  679. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  680. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
  681. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  682. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
  683. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  684. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
  685. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  686. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
  687. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  688. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  689. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  690. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  691. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  692. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  693. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  694. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  695. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  696. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  698. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  699. package/dist/esm/engine/frontend-components/index.d.ts +7 -0
  700. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  701. package/dist/esm/engine/frontend-components/index.js +29 -0
  702. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  703. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  704. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  705. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  706. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  707. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  708. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  709. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  710. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  711. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  712. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
  713. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  714. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  715. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  716. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  717. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  718. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
  720. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  721. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  722. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  723. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  724. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  725. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  726. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  727. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  728. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
  729. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
  730. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
  731. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
  732. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  734. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  737. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  739. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  740. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  741. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  742. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  743. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  744. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  745. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  746. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  747. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  748. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  749. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  750. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  752. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  753. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  755. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  756. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
  757. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  758. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
  759. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  760. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  761. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  762. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  764. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
  766. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  767. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
  768. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  769. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  770. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  771. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  772. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  773. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  774. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  775. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
  776. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  777. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
  778. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
  779. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
  781. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +33 -7
  783. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +16 -14
  785. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +56 -53
  787. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  788. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -2
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -4
  791. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  792. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +2 -2
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
  794. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  795. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +3 -3
  796. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  797. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  798. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  800. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  801. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  802. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  803. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  804. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  805. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  806. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  808. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  809. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  810. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  811. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  812. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  813. package/dist/esm/engine/organizations/resources/index.js +1 -2
  814. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  815. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
  816. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +114 -51
  818. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  819. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
  820. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  821. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  822. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  823. package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
  824. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  825. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
  826. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  827. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +1 -1
  828. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +6 -4
  830. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  831. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -2
  832. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  833. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
  834. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
  836. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  837. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  838. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  839. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  840. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  841. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  842. package/dist/esm/engine/providers/github.provider.specification.js +8 -5
  843. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  844. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  845. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  846. package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
  847. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  848. package/dist/esm/engine/providers/index.d.ts +2 -0
  849. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  850. package/dist/esm/engine/providers/index.js +5 -1
  851. package/dist/esm/engine/providers/index.js.map +1 -1
  852. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  853. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
  855. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  856. package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
  857. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  858. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/providers/resend.provider.specification.js +8 -6
  860. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  861. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  862. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  863. package/dist/esm/engine/roles/index.d.ts +2 -2
  864. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  865. package/dist/esm/engine/roles/index.js +5 -5
  866. package/dist/esm/engine/roles/index.js.map +1 -1
  867. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  868. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  869. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  870. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  871. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  872. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  873. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  874. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  875. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
  876. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  878. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  879. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +3 -3
  880. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  881. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  883. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  884. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  885. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  886. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  887. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  888. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
  889. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  890. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
  891. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  892. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
  893. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  894. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +3 -3
  895. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  896. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +1 -1
  897. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  898. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -0
  899. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  900. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +6 -2
  901. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  902. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  903. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  904. package/dist/esm/engine/users/resources/user-self.resource.specification.js +33 -0
  905. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  906. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -1
  907. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  908. package/dist/esm/engine/users/resources/users.resource.specification.js +10 -4
  909. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/package.json +8 -8
  914. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  915. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  916. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  917. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  918. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  919. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  920. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  921. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  922. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  923. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  924. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  925. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  926. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  927. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  928. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-relationships.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-relationships.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,8BAA8B,EAC9B,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,kCAAkC,EAClC,iCAAiC,EACjC,iCAAiC,EACjC,iCAAiC,EACjC,uCAAuC,EACvC,uEAAuE,EACvE,gCAAgC,EAChC,sCAAsC,EACtC,8BAA8B,EAC9B,8BAA8B,EAC9B,oCAAoC,EACpC,oBAAoB,EACpB,gCAAgC,EAChC,oEAAoE,EACpE,sEAAsE,EACtE,oEAAoE,EACpE,4BAA4B,EAC5B,4BAA4B,EAC5B,kCAAkC,EAClC,kEAAkE,GACnE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iDAAiD,EAAE,MAAM,8BAA8B,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,8CAA8C,EAAE,MAAM,6BAA6B,CAAC;AAC3K,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,YAAY,GAAG,CAAC,UAAkB,EAAE,UAA0B,EAAE,eAAoC,EAAE,EAAE,CAAC,CAAC;IAC9G,WAAW,EAAE,uBAAuB,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe;CAC9E,CAAC,CAAC;AACH,MAAM,eAAe,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;AAEnI,MAAM,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,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,+TAA+T,EAAE;aACrX;YACD,UAAU,EAAE,KAAK;SAClB;QACD,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE;YAC3C,WAAW,EAAE,kCAAkC,CAAC,MAAM;YACtD,OAAO,EAAE,qDAAqD;YAC9D,OAAO,EAAE,0GAA0G;YACnH,SAAS,EAAE,kGAAkG;YAC7G,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;YAChF,cAAc,EAAE,cAAc,CAAC,SAAS,CAAC;YACzC,UAAU,EAAE,KAAK;SAClB;KACF;IACD,mBAAmB,EAAE;QACnB,4MAA4M;QAC5M,4OAA4O;QAC5O,6IAA6I;QAC7I,+OAA+O;KAChP;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resources: `organizationRelationships`, `organizationRepresentations`, `representativeAssignments`, and the\n * representing organization's `relationshipInvitations` (#2618) — Wildo SaaS engine specifications (#1597,\n * organization-scoped, backend verbs + two screens).\n *\n * Inputs:\n * - Schemas + vocabulary: engine/saas-models/src/organizations/organization-relationships.shared.schemas.ts\n * - Factories: engine/saas-models/src/organizations/organization-relationships.shared.resources-config.schemas.ts\n *\n * The three resources are one mechanism seen from two tenants. The relationship lives in the GRANTING\n * organization (the party that holds, scopes and ends it); the representation mirror and the representative\n * assignments live in the REPRESENTING organization. Firm serves client is one relationship kind among those an\n * application declares (#2722). Each side's verbs run inside its own tenant and the counterpart row is written by\n * the system in the same transaction — no verb crosses a tenant boundary through a request.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n RepresentativeAssignmentSchema,\n RepresentativeAssignmentStatus,\n RepresentativeAssignments_Operations,\n RepresentativeAdmissionPolicy,\n RepresentativeApprovalDenialReason,\n DelegatedAdministrativeCapability,\n RelationshipCapabilityGrantSchema,\n RelationshipCapabilityGrantStatus,\n RelationshipCapabilityGrants_Operations,\n relationshipCapabilityGrantsResourceConfiguration_InitializationFactory,\n OrganizationRepresentationSchema,\n OrganizationRepresentations_Operations,\n OrganizationRelationshipSchema,\n OrganizationRelationshipStatus,\n OrganizationRelationships_Operations,\n RelationshipMfaTrust,\n RepresentativeActivityDisclosure,\n representativeAssignmentsResourceConfiguration_InitializationFactory,\n organizationRepresentationsResourceConfiguration_InitializationFactory,\n organizationRelationshipsResourceConfiguration_InitializationFactory,\n RelationshipInvitationSchema,\n RelationshipInvitationStatus,\n RelationshipInvitations_Operations,\n relationshipInvitationsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { organizationRepresentationsMainResourceUIBehavior } from '@wildo-ai/presets-components';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst modelsExport = (exportName: string, symbolKind: CodeSymbolKind, declarationKind: CodeDeclarationKind) => ({\n packageName: '@wildo-ai/saas-models', exportName, symbolKind, declarationKind,\n});\nconst enumDeclaration = (exportName: string) => modelsExport(exportName, CodeSymbolKind.ENUM, CodeDeclarationKind.TYPESCRIPT_ENUM);\n\nconst STATUS_VALUES = {\n [OrganizationRelationshipStatus.PROPOSED]: { meaning: 'Proposed by one side, awaiting the other. Confers nothing.' },\n [OrganizationRelationshipStatus.ACTIVE]: { meaning: 'Accepted. The representing organization\\'s assigned representatives reach the granting organization — re-checked on every request, and only while `endsAt` is absent or in the future.' },\n [OrganizationRelationshipStatus.SUSPENDED]: { meaning: 'Paused by the granting organization. Confers nothing; `resume` returns it to ACTIVE.' },\n [OrganizationRelationshipStatus.DECLINED]: { meaning: 'The granting organization refused the representing organization\\'s proposal. Terminal.' },\n [OrganizationRelationshipStatus.WITHDRAWN]: { meaning: 'The representing organization ended it, or withdrew its own proposal. Terminal.' },\n [OrganizationRelationshipStatus.TERMINATED]: { meaning: 'The granting organization ended it. Terminal.' },\n [OrganizationRelationshipStatus.EXPIRED]: { meaning: 'Relabelled by the expiry sweep after `endsAt`. Terminal bookkeeping — access already stopped at `endsAt`, which is what admission reads.' },\n};\n\n/** How the representing organization's representatives are admitted (#1612) — the granting organization's choice, on the relationship and in the representing organization's mirror. */\nconst REPRESENTATIVE_ADMISSION_POLICY_VALUES = {\n [RepresentativeAdmissionPolicy.ADMITTED_ON_DESIGNATION]: { meaning: 'Every representative the representing organization assigns is admitted by the relationship itself — a relationship membership is created at assignment.' },\n [RepresentativeAdmissionPolicy.GRANTOR_APPROVES_EACH]: { meaning: 'Each assigned representative waits for the approval of one of the granting organization\\'s administrators (a decision in the reviewers\\' inbox) and gets no membership until approved.' },\n};\n\nconst decisionErrors = (live: string) => [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization role this verb requires.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such record is visible in the caller\\'s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: `The relationship is not ${live}.` },\n];\n\nexport const organizationRelationshipsResourceSpecification = resourceSpecification(\n organizationRelationshipsResourceConfiguration_InitializationFactory,\n OrganizationRelationshipSchema,\n ({ schemaShape }) => ({\n purpose: 'Let an organization enter, scope and end a relationship with another organization whose representatives act inside it, under a relationship kind the application declares (e.g. a firm doing its work).',\n businessRole: 'The granting organization\\'s record of which organization may reach it, in which role, over which organization units, until when, and who decided each step.',\n lifecycleRole: 'Either side proposes; the other side accepts (the granting organization\\'s owner, with step-up, when the representing organization proposed). The granting organization can suspend, resume, amend the scope and terminate at any time; the representing organization can withdraw. A term (`endsAt`) ends reach the moment it passes. Terminal relationships stay as access-review history.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: modelsExport('OrganizationRelationshipSchema', CodeSymbolKind.SCHEMA, CodeDeclarationKind.ZOD_SCHEMA),\n resourceFactory: modelsExport('organizationRelationshipsResourceConfiguration_InitializationFactory', CodeSymbolKind.FACTORY, CodeDeclarationKind.FUNCTION),\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_RELATIONSHIPS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('OrganizationRelationships_Operations') },\n notes: [\n 'No public CREATE or UPDATE. The INTERNAL_CALL CREATE / UPDATE variants are the system door the REPRESENTING organization\\'s verbs write this row through (on its own representation), inside the same transaction.',\n 'Authority is NOT decided here. The execution-context live filter re-derives a representative\\'s authority from this row on every request (status, `endsAt`, the representative\\'s membership in the representing organization, their assignment, and that the relationship\\'s kind is still declared and still offers this `role` between the two organization types), so ending a relationship — or withdrawing a role from the kind\\'s `confers.roles` — takes effect on the next request.',\n 'Every transition emits `ORGANIZATION_RELATIONSHIP_LIFECYCLE` to BOTH organizations\\' trails; admitting or removing a machine client emits `RELATIONSHIP_MACHINE_CLIENT_ADMISSION_CHANGED`.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one relationship.', whyItMatters: 'Every relationship membership and assignment names it; the audit trail reconstructs the relationship\\'s whole life from it.', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The GRANTING organization — the scope anchor.', whyItMatters: 'The relationship is the granting organization\\'s to accept, scope and end, so it lives in the granting organization\\'s tenant.', importance: FieldSemanticImportance.PRIMARY }),\n kind: schemaShape.kind.stringSpec({\n meaning: 'The relationship kind this is an instance of — a key of the application\\'s `organizationRelationships` declaration (#2722).',\n whyItMatters: 'The kind decides what the relationship may confer, who may propose it, and what its representatives see of this organization\\'s own records (`tenantRecords`). Fixed at the proposal: named by the proposer, or the only kind that admits the two organizations\\' types. A kind the declaration no longer carries leaves the relationship dormant — it confers nothing until the kind is declared again.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n representingOrganizationId: schemaShape.representingOrganizationId.stringSpec({ meaning: 'The REPRESENTING organization.', whyItMatters: 'A plain id, never a navigable edge into another tenant. The live filter requires each representative to be an active member of it.', importance: FieldSemanticImportance.PRIMARY }),\n representingOrganizationName: schemaShape.representingOrganizationName.stringSpec({ meaning: 'The representing organization\\'s name when the relationship was proposed.', whyItMatters: 'A snapshot, because the granting organization cannot read the representing organization\\'s row; it is also the name the granting organization agreed to. Display only.' }),\n status: schemaShape.status.enumSpec({ meaning: 'Where the relationship stands.', whyItMatters: 'Only ACTIVE confers, and only with `endsAt` checked alongside it.', importance: FieldSemanticImportance.PRIMARY, enumDeclaration: enumDeclaration('OrganizationRelationshipStatus'), values: STATUS_VALUES }),\n role: schemaShape.role.stringSpec({ meaning: 'The role every assigned representative holds in the granting organization.', whyItMatters: 'One of the relationship kind\\'s `confers.roles`, and offered by this organization\\'s type; startup refuses any role leading up to ORG_ADMIN. The live filter emits THIS value, never the membership row\\'s copy — and only while the declaration still offers it; `resume` re-validates it like `accept`.', importance: FieldSemanticImportance.PRIMARY }),\n organizationUnitIds: schemaShape.organizationUnitIds.arraySpec({ meaning: 'Relationship scope. Absent or empty ⇒ organization-wide.', elementMeaning: 'One organization unit of the granting organization.', whyItMatters: 'When present the representatives are UNIT-ONLY principals: they reach resources that narrow by unit (confined to these units) and resources the application declared readable organization-wide for representatives (`relationshipOrganizationWideAccess`), and nothing else.' }),\n endsAt: schemaShape.endsAt.dateSpec({ meaning: 'When reach ends. Absent ⇒ open-ended.', whyItMatters: 'The live filter compares against it directly, so reach ends at this instant whether or not the expiry sweep has relabelled the row.', temporalRole: 'expiration' }),\n purpose: schemaShape.purpose.stringSpec({ meaning: 'Why the relationship exists.', whyItMatters: 'Required. It is what the granting organization\\'s third-party processing register derives the representing organization\\'s processing purpose from. Scrubbed on erasure.' }),\n admittedMachineClientIds: schemaShape.admittedMachineClientIds.arraySpec({ meaning: 'OAuth clients owned by the representing organization that the granting organization admits into its organization.', elementMeaning: 'One OAuth client id owned by the representing organization.', whyItMatters: 'A listed client authenticating by client credentials receives the relationship\\'s role here, re-checked per request; removing it takes effect on the next request.' }),\n representativeAdmissionPolicy: schemaShape.representativeAdmissionPolicy.enumSpec({\n meaning: 'Whether each representative the representing organization assigns must first be approved by one of your administrators (#1612).',\n whyItMatters: 'The granting organization\\'s choice, never the representing organization\\'s: set by an owner when proposing or accepting, changed later by an administrator, and starting from the kind\\'s `granting.organizationTypes.<this organization\\'s type>.defaultRepresentativeAdmissionPolicy` when nobody chose. A change is not retroactive — representatives already admitted stay admitted.',\n enumDeclaration: enumDeclaration('RepresentativeAdmissionPolicy'),\n values: REPRESENTATIVE_ADMISSION_POLICY_VALUES,\n }),\n admittedAutonomousAgents: schemaShape.admittedAutonomousAgents.arraySpec({ meaning: 'Which of the representing organization\\'s autonomous agents the granting organization lets each admitted machine client run in its organization (#1611).', elementMeaning: 'One admitted machine client and the agent refs the granting organization chose for it.', whyItMatters: 'An agent runs here only when the representing organization binds it to its machine client AND the granting organization chose it here: a representing organization adding an agent to its own machine client never starts it, spends this organization\\'s budget, or routes decisions to its reviewers without that choice. None by default.' }),\n representingMfaTrust: schemaShape.representingMfaTrust.enumSpec({\n meaning: 'Whether a second factor the REPRESENTING organization\\'s enterprise identity provider reports for its representatives satisfies your organization\\'s multi-factor requirement (#1633).',\n whyItMatters: 'Your organization type\\'s authentication policy is evaluated for every request a representative makes here, never at their login. By default the representative proves a factor to this application (step-up, once per session). An owner may instead accept what the representing organization\\'s SSO asserted at sign-in — only a second factor Wildo can name (`hwk`, `otp`, `sms`), only from that organization\\'s organization-scoped connection, and never re-emitted as this application\\'s own `amr`.',\n enumDeclaration: enumDeclaration('RelationshipMfaTrust'),\n values: {\n [RelationshipMfaTrust.NOT_TRUSTED]: { meaning: 'Default. The representative proves your required factor to this application, once per session.' },\n [RelationshipMfaTrust.TRUST_REPRESENTING_IDP_MFA]: { meaning: 'A second factor asserted by the representing organization\\'s enterprise identity provider at the representative\\'s sign-in satisfies your requirement. The session records which IdP satisfied it.' },\n },\n }),\n representativeActivityDisclosure: schemaShape.representativeActivityDisclosure.enumSpec({\n meaning: 'How much of the audit rows the representatives\\' acts wrote in your organization the REPRESENTING organization\\'s administrators may read (#2874).',\n whyItMatters: 'Those rows are your records, and they also say what the representing organization\\'s own people did, which it must be able to account for. So it always reads who did what, where and when, and reads the rows\\' content only when you say so. Applies to every row already written, from the next read on, and only while the relationship confers (active and within its term).',\n enumDeclaration: enumDeclaration('RepresentativeActivityDisclosure'),\n values: {\n [RepresentativeActivityDisclosure.METADATA]: { meaning: 'Default. The representing organization reads each row\\'s identity, time, actor, risk, whether the act succeeded and which operation reached which record, never the event\\'s own data.' },\n [RepresentativeActivityDisclosure.FULL]: { meaning: 'The representing organization reads the whole rows, the event\\'s own data included.' },\n },\n }),\n proposedByOrganizationId: schemaShape.proposedByOrganizationId.stringSpec({ meaning: 'Which side proposed.', whyItMatters: 'The OTHER side accepts — a side can never accept its own proposal.' }),\n proposedByUserId: schemaShape.proposedByUserId.stringSpec({ meaning: 'The person who proposed.' }),\n acceptedByUserId: schemaShape.acceptedByUserId.stringSpec({ meaning: 'The person who accepted — on the granting side, an owner who passed step-up.' }),\n acceptedAt: schemaShape.acceptedAt.dateSpec({ meaning: 'When the relationship was accepted.', temporalRole: 'occurred' }),\n endedByUserId: schemaShape.endedByUserId.stringSpec({ meaning: 'Who ended it, when a person did.' }),\n proposedByName: schemaShape.proposedByName.stringSpec({ meaning: 'The person who proposed, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).', whyItMatters: 'Only the granting organization reads this row; it is already told who the representing side\\'s people are.' }),\n acceptedByName: schemaShape.acceptedByName.stringSpec({ meaning: 'The person who accepted, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).' }),\n endedByName: schemaShape.endedByName.stringSpec({ meaning: 'Who ended it, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).' }),\n endedAt: schemaShape.endedAt.dateSpec({ meaning: 'When it reached a terminal status.', whyItMatters: 'The retention start point for the record.', temporalRole: 'occurred' }),\n decisionReason: schemaShape.decisionReason.stringSpec({ meaning: 'The reason given for the LAST decision on the relationship (accept, decline, suspend, resume, terminate, withdraw). A decision given without a reason clears it. Scrubbed on erasure.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the relationship was proposed.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When it last changed — always a lifecycle decision, since there is no generic update.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: { purpose: 'Inspect one relationship of your organization.', outcome: 'The relationship with its scope, term and decision history.', whenToUse: 'An administrator reviews which other organization can reach this one and on what terms.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The relationship.' }], errorScenarios: decisionErrors('readable'), idempotent: true },\n [Op.LIST]: { purpose: 'List your organization\\'s relationships.', outcome: 'A page of relationships, live and ended.', whenToUse: 'The Relationships settings section and access reviews.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page.' }], idempotent: true },\n [Op.COUNT]: { purpose: 'Count your organization\\'s relationships.', outcome: 'A total.', whenToUse: 'Dashboards.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The count.' }], idempotent: true },\n [Op.DELETE]: { purpose: 'PURGE ONLY — removed with the granting organization. No client door.', outcome: 'The row is hard-deleted by the tenant purge cascade.', whenToUse: 'Never directly.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Removed with its tenant; not observable over HTTP.' }], idempotent: true },\n [OrganizationRelationships_Operations.PROPOSE]: {\n operationId: OrganizationRelationships_Operations.PROPOSE,\n purpose: 'Propose a relationship with an organization whose representatives will act in yours. The default variant names it by `representingOrganizationId`; the `withOperator` variant names none and asks the organization that operates the application (#2618) — possible only under a relationship kind whose one representing type is the operator\\'s (#2722).',\n outcome: 'A PROPOSED relationship in your organization and its mirror in the representing organization. Nothing is conferred until the representing organization accepts; your proposal is your owner\\'s consent. The representing organization\\'s owners and administrators are emailed.',\n whenToUse: 'Your organization engages another organization whose representatives will work inside it — a firm doing its work, a partner. Use `withOperator` when the application\\'s operator IS the representing party (an accounting firm running its own platform): there is one organization to ask, and nothing to name.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The proposal was recorded.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an owner of the organization, or step-up authentication is required.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The representing organization does not exist or no longer confers authority.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A live relationship already links the two organizations (in either direction, for a mutual kind), the kind does not let your side propose (`RELATIONSHIP_KIND_NOT_PROPOSED_BY_THIS_SIDE`), no relationship kind admits the two organizations\\' types (or the kind named does not), several kinds do and none was named (`RELATIONSHIP_KIND_REQUIRED`), the role is not one the kind confers and your organization\\'s type offers, a unit is not yours, or the kind keeps its relationships organization-wide and units were named (`RELATIONSHIP_KIND_CONFERS_NO_UNIT_SCOPE`). On `withOperator`, also when no relationship kind makes the application\\'s operator the one representing party, or its organization cannot be resolved (`RELATIONSHIP_OPERATOR_UNAVAILABLE`).' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: 'RELATIONSHIP_KIND_NOT_PROPOSED_BY_THIS_SIDE', when: 'The kind does not let your side propose a relationship: only the other side may.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: 'RELATIONSHIP_KIND_REQUIRED', when: 'Several relationship kinds admit the two organizations\\' types and the proposal names none: name the kind.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: 'RELATIONSHIP_KIND_CONFERS_NO_UNIT_SCOPE', when: 'The kind keeps its relationships organization-wide, so units cannot be named.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: 'RELATIONSHIP_OPERATOR_UNAVAILABLE', when: 'On `withOperator`: no relationship kind makes the application\\'s operator the one representing party, or its organization cannot be resolved.' },\n ],\n idempotent: false,\n },\n [OrganizationRelationships_Operations.ACCEPT]: { operationId: OrganizationRelationships_Operations.ACCEPT, purpose: 'Accept the representing organization\\'s proposal, and choose whether each representative it assigns needs your approval (`representativeAdmissionPolicy`).', outcome: 'The relationship becomes ACTIVE; the representing organization can assign representatives, who are admitted at once or wait for your approval as you chose. The representing organization\\'s owners and administrators are emailed.', whenToUse: 'An owner has reviewed the representing organization, the role, the scope and the term.', importance: FieldSemanticImportance.PRIMARY, responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Accepted.' }], errorScenarios: decisionErrors('a proposal the representing organization made'), idempotent: false },\n [OrganizationRelationships_Operations.DECLINE]: { operationId: OrganizationRelationships_Operations.DECLINE, purpose: 'Decline the representing organization\\'s proposal.', outcome: 'The relationship becomes DECLINED. The representing organization\\'s owners and administrators are emailed.', whenToUse: 'The organization does not enter a relationship with this one.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Declined.' }], errorScenarios: decisionErrors('a proposal the representing organization made'), idempotent: false },\n [OrganizationRelationships_Operations.SUSPEND]: { operationId: OrganizationRelationships_Operations.SUSPEND, purpose: 'Pause a relationship.', outcome: 'SUSPENDED: no representative or machine client of the representing organization reaches the organization, from the next request. The representing organization\\'s owners and administrators are emailed.', whenToUse: 'Access must stop now but the relationship is expected to resume.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Suspended.' }], errorScenarios: decisionErrors('ACTIVE'), idempotent: false },\n [OrganizationRelationships_Operations.RESUME]: { operationId: OrganizationRelationships_Operations.RESUME, purpose: 'Resume a suspended relationship.', outcome: 'ACTIVE again. The representing organization\\'s owners and administrators are emailed.', whenToUse: 'The reason for the suspension is resolved.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Resumed.' }], errorScenarios: decisionErrors('SUSPENDED'), idempotent: false },\n [OrganizationRelationships_Operations.TERMINATE]: { operationId: OrganizationRelationships_Operations.TERMINATE, purpose: 'End a relationship, or withdraw your own proposal.', outcome: 'TERMINATED: every assignment ends and every relationship membership becomes INACTIVE; reach ends on the next request. The representing organization\\'s owners and administrators are emailed.', whenToUse: 'The relationship is over.', importance: FieldSemanticImportance.PRIMARY, responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Terminated.' }], errorScenarios: decisionErrors('live'), idempotent: false },\n [OrganizationRelationships_Operations.AMEND_SCOPE]: { operationId: OrganizationRelationships_Operations.AMEND_SCOPE, purpose: 'Change the role, the organization units or the term. `clearOrganizationUnitIds` widens to the whole organization; `clearEndsAt` (or `endsAt: null`) makes the relationship open-ended.', outcome: 'The new scope applies to every assigned representative on their next request, and the representing organization\\'s mirror shows it in the same transaction. Narrowing to organization units revokes every capability lent through the relationship (#1631), since none can be carried by a unit-scoped relationship. The representing organization\\'s owners and administrators are emailed.', whenToUse: 'The relationship widens, narrows or is extended. Only an owner, with step-up; the representing organization cannot widen what you granted.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Amended.' }], errorScenarios: [...decisionErrors('ACTIVE or SUSPENDED'), { code: HttpResponseStatusCode.CONFLICT_409, when: 'The amendment confines the relationship to organization units, and its kind keeps it organization-wide (`RELATIONSHIP_KIND_CONFERS_NO_UNIT_SCOPE`); or the role is not one the kind confers.' }], idempotent: false },\n [OrganizationRelationships_Operations.END_FOR_REMOVED_PARTY]: {\n operationId: OrganizationRelationships_Operations.END_FOR_REMOVED_PARTY,\n purpose: 'INTERNAL — a party organization is being deleted, and the relationship ends inside that deletion (#2794).',\n outcome: 'TERMINATED when the granting organization went, WITHDRAWN when the representing one did: the mirror follows, assignments end, relationship memberships become INACTIVE, the decisions raised through it end, and the lifecycle row in both trails names no acting organization (neither party acted) and the person who deleted, if any. The remaining party\\'s owners and administrators are emailed.',\n whenToUse: 'Never by a person or by application code: the organization delete runs it for each live relationship of the organization it removes.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Ended; not observable over HTTP.' }],\n errorScenarios: decisionErrors('live'),\n idempotent: false,\n },\n [OrganizationRelationships_Operations.END_WITH_RECIPROCAL]: {\n operationId: OrganizationRelationships_Operations.END_WITH_RECIPROCAL,\n purpose: 'INTERNAL — the other direction of a mutual relationship ended, and this one ends with it, in the same transaction (#2722, #2796).',\n outcome: 'This direction ends as the cause implies (WITHDRAWN when the other was terminated or declined, TERMINATED when it was withdrawn, EXPIRED when it expired; a direction still proposed is WITHDRAWN instead, or DECLINED when the other was withdrawn): the mirror follows, assignments end, relationship memberships become INACTIVE, both trails record it naming the organization that acted, and the organization that did not act is emailed (both, for an expiry).',\n whenToUse: 'Never by a person or by application code: every verb that ends a direction of a mutual relationship runs it on the other direction.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Ended; not observable over HTTP.' }],\n errorScenarios: decisionErrors('live'),\n idempotent: false,\n },\n [OrganizationRelationships_Operations.RECORD_PARTY_STATUS_STANDING]: {\n operationId: OrganizationRelationships_Operations.RECORD_PARTY_STATUS_STANDING,\n purpose: 'INTERNAL — one party organization stopped operating (suspended, closed, marked for deletion) or operates again, and the relationship stopped conferring or confers again (#2795).',\n outcome: 'Nothing about the move is stored on the relationship (whether it confers is derived from both organizations\\' statuses on every request); `DORMANT_BY_PARTY_STATUS` or `REVIVED_BY_PARTY_STATUS` is recorded in both trails, and the organization whose status did not change is emailed, told whether the other was suspended, is being deleted (the relationship ends with the purge unless it is restored), or operates again.',\n whenToUse: 'Never by a person or by application code: an organization\\'s suspend, activate, requestDeletion and restore run it for each relationship a status change across the conferring line moves.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Recorded; not observable over HTTP.' }],\n idempotent: false,\n },\n [OrganizationRelationships_Operations.RECORD_TYPE_CHANGE_STANDING]: {\n operationId: OrganizationRelationships_Operations.RECORD_TYPE_CHANGE_STANDING,\n purpose: 'INTERNAL — one party\\'s type changed, and the relationship stopped conferring or confers again (#2611, #2794).',\n outcome: 'Nothing about the move is stored on the relationship (whether it confers is derived from the declarations on every request); `DORMANT_BY_TYPE_CHANGE` or `REVIVED_BY_TYPE_CHANGE` is recorded in both trails, naming the person who changed the type, and the owners and administrators of the party whose type did NOT change are emailed.',\n whenToUse: 'Never by a person or by application code: an operator\\'s type change and an owner promotion run it for each relationship they move.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Recorded; not observable over HTTP.' }],\n idempotent: false,\n },\n [OrganizationRelationships_Operations.ADMIT_MACHINE_CLIENT]: { operationId: OrganizationRelationships_Operations.ADMIT_MACHINE_CLIENT, purpose: 'Admit one of the representing organization\\'s OAuth clients into your organization, and choose which of its autonomous agents the client may run here.', outcome: 'The client, authenticating by client credentials, holds the relationship\\'s role here while the relationship is live; the agents named in `autonomousAgentRefs` (none if omitted) may run here on your budget, replacing any earlier choice.', whenToUse: 'The representing organization runs automation (an agent) that works on your data, or you want to change which of its agents may.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Admitted.' }], errorScenarios: decisionErrors('live, or the OAuth client is not an ACTIVE client owned by the representing organization'), idempotent: true },\n [OrganizationRelationships_Operations.SET_REPRESENTATIVE_ADMISSION_POLICY]: {\n operationId: OrganizationRelationships_Operations.SET_REPRESENTATIVE_ADMISSION_POLICY,\n purpose: 'Choose whether each representative the representing organization assigns must first be approved by one of your administrators.',\n outcome: 'The relationship\\'s `representativeAdmissionPolicy` changes for assignments made from now on; the representing organization\\'s mirror shows it. Representatives already admitted keep their membership, and approvals already waiting stay in the inbox.',\n whenToUse: 'Your organization starts (or stops) vetting each person another organization sends — conflict checks, regulated roles.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Changed.' }],\n errorScenarios: decisionErrors('live'),\n idempotent: true,\n },\n [OrganizationRelationships_Operations.SET_REPRESENTING_MFA_TRUST]: {\n operationId: OrganizationRelationships_Operations.SET_REPRESENTING_MFA_TRUST,\n purpose: 'Choose whether the representing organization\\'s enterprise identity provider\\'s second factor satisfies your organization\\'s multi-factor requirement.',\n outcome: 'The relationship\\'s `representingMfaTrust` changes; it applies to the representatives\\' next request. Recorded as `RELATIONSHIP_MFA_TRUST_CHANGED` in both organizations\\' trails.',\n whenToUse: 'You have reviewed the representing organization\\'s identity provider and accept its MFA, or you withdraw that acceptance. Only an owner, with step-up.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Changed.' }],\n errorScenarios: [\n ...decisionErrors('live (PROPOSED, ACTIVE or SUSPENDED)'),\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Trusting, under a relationship kind that declares `confers.representingMfaTrust: false` (`RELATIONSHIP_KIND_FORBIDS_MFA_TRUST`). Withdrawing trust is never refused.' },\n ],\n idempotent: true,\n },\n [OrganizationRelationships_Operations.SET_REPRESENTATIVE_ACTIVITY_DISCLOSURE]: {\n operationId: OrganizationRelationships_Operations.SET_REPRESENTATIVE_ACTIVITY_DISCLOSURE,\n purpose: 'Choose how much of the audit rows the representatives\\' acts wrote in your organization the representing organization\\'s administrators may read.',\n outcome: 'The relationship\\'s `representativeActivityDisclosure` changes, and the representing organization\\'s representative-activity read applies it to every row from its next read. Recorded as `RELATIONSHIP_REPRESENTATIVE_ACTIVITY_DISCLOSURE_CHANGED` in both organizations\\' trails.',\n whenToUse: 'The representing organization needs the content of what its people did here (a dispute, a quality review, its own client reporting), or you withdraw that. An administrator.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Changed.' }],\n errorScenarios: decisionErrors('live (PROPOSED, ACTIVE or SUSPENDED)'),\n idempotent: true,\n },\n [OrganizationRelationships_Operations.SHARE_RECORD]: {\n operationId: OrganizationRelationships_Operations.SHARE_RECORD,\n purpose: 'Share one of your organization\\'s records with this relationship\\'s representatives (#2722).',\n outcome: 'The record, named by `resourceType` and `recordId`, becomes visible to this relationship\\'s representatives even though another relationship created it, or your kind lets them see only what you share. Recorded as `RELATIONSHIP_RECORD_SHARE_CHANGED` in your trail, naming the record.',\n whenToUse: 'Two organizations both work for you and one needs to see a specific piece of the other\\'s work, or a partner organization is given a specific record. An administrator.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Shared. Sharing a record already shared changes nothing.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such relationship, or no such record of that resource in your organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The relationship does not confer now (it is proposed, suspended, ended or past its term), or the resource cannot be shared: it is not one of your organization\\'s separated records, or its rows issue authority (`RELATIONSHIP_RECORD_NOT_SHAREABLE`).' },\n ],\n idempotent: true,\n },\n [OrganizationRelationships_Operations.UNSHARE_RECORD]: {\n operationId: OrganizationRelationships_Operations.UNSHARE_RECORD,\n purpose: 'Withdraw a record you shared with this relationship.',\n outcome: 'The record stops being visible to this relationship\\'s representatives from their next read, unless their relationship created it. Recorded as `RELATIONSHIP_RECORD_SHARE_CHANGED`.',\n whenToUse: 'The reason for sharing has passed. Works in any state of the relationship, so a share can always be taken back. An administrator.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Withdrawn. Withdrawing a share that does not exist changes nothing.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such relationship, or no such record of that resource in your organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: 'RELATIONSHIP_RECORD_NOT_SHAREABLE', when: 'The resource cannot be shared (`RELATIONSHIP_RECORD_NOT_SHAREABLE`).' },\n ],\n idempotent: true,\n },\n [OrganizationRelationships_Operations.READ_RECORD_SHARING]: {\n operationId: OrganizationRelationships_Operations.READ_RECORD_SHARING,\n purpose: 'Read whose one of your organization\\'s records is and which relationships it is shared with (#2736).',\n outcome: 'The relationship the record was created through (none when it is your organization\\'s own), the relationships you shared it with, and whether the application declares this kind of record common to every relationship (then a share changes nothing). The record\\'s own response never carries these: a representative reading a shared record must not learn which other relationships it reaches.',\n whenToUse: 'Before sharing a record or withdrawing a share, to show what is already shared. An administrator.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The record\\'s provenance and shares.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such record of that resource in your organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: 'RELATIONSHIP_RECORD_NOT_SHAREABLE', when: 'The resource cannot be shared (`RELATIONSHIP_RECORD_NOT_SHAREABLE`).' },\n ],\n idempotent: true,\n },\n [OrganizationRelationships_Operations.REMOVE_MACHINE_CLIENT]: { operationId: OrganizationRelationships_Operations.REMOVE_MACHINE_CLIENT, purpose: 'Remove an admitted OAuth client of the representing organization.', outcome: 'It no longer reaches your organization, from the next request.', whenToUse: 'The automation is retired or no longer trusted.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Removed.' }], idempotent: true },\n },\n businessConstraints: [\n 'At most one PROPOSED, ACTIVE or SUSPENDED relationship per ordered pair of organizations, whatever its kind — including when both sides propose at the same moment: every proposal writes the granting organization\\'s serialization token inside its transaction before checking, so two concurrent proposals collide and one is refused. Every other decision on the granting organization\\'s relationships (accept, decline, suspend, resume, terminate, withdraw, expire, amendScope, machine clients, assign, unassign) writes the same token and then re-reads what it decides on, so two decisions at the same moment are applied one after the other — a resume racing a terminate cannot turn a TERMINATED relationship back to ACTIVE.',\n 'A side never accepts its own proposal. The granting organization accepts the representing organization\\'s proposal as an owner with step-up; the representing organization accepts the granting organization\\'s proposal, whose proposal was the granting owner\\'s consent.',\n 'A kind\\'s `proposedBy` decides which sides may propose; a side it leaves out is refused (`RELATIONSHIP_KIND_NOT_PROPOSED_BY_THIS_SIDE`), at the proposal and again at acceptance.',\n 'A kind\\'s `confers` may also cap what a granting organization chooses: `unitScope: false` keeps every relationship of the kind organization-wide (confining one is refused, `RELATIONSHIP_KIND_CONFERS_NO_UNIT_SCOPE`); `lendableCapabilities` lists the capabilities it may lend; `representingMfaTrust: false` forbids trusting the representing organization\\'s MFA. All three are read on every request: a relationship, a grant or a trust made before the kind forbade it stays recorded and confers nothing until the declaration allows it again.',\n 'A relationship of a `mutual` kind is one agreement with two directions, each opened by its own granting organization\\'s owner with step-up. The acceptance that opens one PROPOSES the other in the other organization (with its mirror in this one), for that organization\\'s owner to accept, so a tenant is never opened by the other organization\\'s acceptance nor by an administrator on the representing side; either direction ending, for any reason, ends the other in the same transaction (a still-proposed one is withdrawn or declined); each direction\\'s role, units, admission, term and suspension stay its granting organization\\'s own. While one direction lives, no relationship of any kind may link the two organizations in either direction.',\n 'When a relationship ends, is suspended or has its scope amended, its representatives\\' open real-time connections are disconnected after the commit, so they reconnect against what it now confers.',\n 'A relationship never confers administration of the granting organization: startup refuses a kind whose conferred roles lead up to ORG_ADMIN, or include a delegated capability role (a capability is lent by a dated grant, never conferred for the life of a relationship).',\n 'A record created in this organization through a relationship is visible to the organization\\'s own members and to that relationship\\'s representatives, and to another relationship only when the organization shares it (`shareRecord`). A representative standing here only through relationships therefore never sees another relationship\\'s work; whether they see the organization\\'s own records is the kind\\'s `tenantRecords`. Decided at every read from the caller\\'s own role entries, never from the request.',\n 'Authority is re-derived on every request from this row, the representative\\'s membership in the representing organization and their assignment — the status label and the expiry sweep are records, not the control.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n/**\n * The representing organization's clients (#2589). Documented against its frontend layout because a client's page carries\n * two sections of its own, the team and the mailboxes, whose headings the label pipeline words from these slots.\n */\nexport const organizationRepresentationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationRepresentationsMainResourceUIBehavior),\n resourceSpecification(\n organizationRepresentationsResourceConfiguration_InitializationFactory,\n OrganizationRepresentationSchema,\n ({ schemaShape }) => ({\n purpose: 'Give a representing organization its own view of the relationships in which it represents another organization, and the verbs that side owns: propose, accept the granting organization\\'s proposal, withdraw.',\n businessRole: 'The representing organization\\'s CLIENTS: the organizations it represents, shown to people as \"Clients\", one row being a \"Client relationship\" (#2589). A system-written mirror of each relationship, kept in the representing organization\\'s tenant so it never needs to read the granting organization\\'s. An application whose relationship kind is not a service relationship rewords \"Clients\" through its own labels.',\n lifecycleRole: 'Created with every proposal (either side\\'s) and updated in the same transaction as every relationship transition.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: modelsExport('OrganizationRepresentationSchema', CodeSymbolKind.SCHEMA, CodeDeclarationKind.ZOD_SCHEMA),\n resourceFactory: modelsExport('organizationRepresentationsResourceConfiguration_InitializationFactory', CodeSymbolKind.FACTORY, CodeDeclarationKind.FUNCTION),\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_REPRESENTATIONS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('OrganizationRepresentations_Operations') },\n notes: [\n 'The relationship is the record of truth; this row reflects it. The representing side\\'s verbs decide on the RELATIONSHIP and write it through the system door, then update this mirror.',\n 'Reach is by assignment (#2589): the organization\\'s administrators and owners read every client; every other role, a manager included, reads only the clients they hold an ACTIVE representative assignment for (`ENGINE_ORGANIZATION_ASSIGNED_ROWS`), decided per request in the repository filter, so REST, MCP, A2A and context population agree. Ending an assignment withdraws the client on the next request.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of the representing organization\\'s view of one relationship.', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The REPRESENTING organization — the scope anchor.', importance: FieldSemanticImportance.PRIMARY }),\n grantingOrganizationId: schemaShape.grantingOrganizationId.stringSpec({ meaning: 'The granting organization.', importance: FieldSemanticImportance.PRIMARY }),\n organizationRelationshipId: schemaShape.organizationRelationshipId.stringSpec({ meaning: 'The relationship this mirrors, in the granting organization\\'s tenant. One mirror per relationship.' }),\n status: schemaShape.status.enumSpec({ meaning: 'The relationship\\'s status, as last written.', importance: FieldSemanticImportance.PRIMARY, enumDeclaration: enumDeclaration('OrganizationRelationshipStatus'), values: STATUS_VALUES }),\n kind: schemaShape.kind.stringSpec({ meaning: 'The relationship kind, copied from the relationship (#2722).', whyItMatters: 'The representing side reads its own record and never the granting tenant\\'s, so the kind it acts under is mirrored here.' }),\n role: schemaShape.role.stringSpec({ meaning: 'The role the representing organization\\'s representatives hold in the granting organization.' }),\n scopedToOrganizationUnits: schemaShape.scopedToOrganizationUnits.booleanSpec({ meaning: 'Whether the granting organization limited the relationship to some of its units.', whyItMatters: 'The unit ids themselves stay in the granting organization\\'s tenant.' }),\n endsAt: schemaShape.endsAt.dateSpec({ meaning: 'The relationship\\'s term.', temporalRole: 'expiration' }),\n purpose: schemaShape.purpose.stringSpec({ meaning: 'Why the relationship exists.' }),\n proposedByOrganizationId: schemaShape.proposedByOrganizationId.stringSpec({ meaning: 'Which side proposed.' }),\n grantingOrganizationName: schemaShape.grantingOrganizationName.stringSpec({\n meaning: 'Display copy of the granting organization\\'s name, refreshed at each transition — but only once the granting organization has consented to the representing organization knowing it: it proposed to this organization, or accepted this organization\\'s proposal.',\n whyItMatters: 'A representing organization can propose to any organization whose id it knows. Absent while its proposal is pending and after a decline, so a proposal is never a way to learn a tenant\\'s name; screens fall back to the id. The one exception is the second direction of a mutual relationship, named while still proposed: the two organizations already dealt with each other in the first direction.',\n }),\n delegatedCapabilities: schemaShape.delegatedCapabilities.arraySpec({\n meaning: 'The administrative capabilities the granting organization currently lends the representing organization, with when each ends (#1631).',\n elementMeaning: 'One lent capability and its end.',\n whyItMatters: 'The representing organization cannot read the granting organization\\'s grants; this is how it knows what its representatives may administer there. System-written on every grant and revocation; the representing organization can never grant, widen or extend one.',\n }),\n representativeAdmissionPolicy: schemaShape.representativeAdmissionPolicy.enumSpec({\n meaning: 'Whether the granting organization approves each representative before they are admitted (#1612), mirrored from the relationship.',\n whyItMatters: 'Tells the representing organization before it assigns whether the representative will wait for the granting organization. Read-only here: no verb of the representing side writes it.',\n enumDeclaration: enumDeclaration('RepresentativeAdmissionPolicy'),\n values: REPRESENTATIVE_ADMISSION_POLICY_VALUES,\n }),\n endedAt: schemaShape.endedAt.dateSpec({ meaning: 'When the relationship ended.', temporalRole: 'occurred' }),\n decisionReason: schemaShape.decisionReason.stringSpec({ meaning: 'The reason given for the LAST decision on the relationship, mirrored from it; a decision given without a reason clears it.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the relationship was proposed.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When it last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: { purpose: 'Inspect one representation of your organization: a relationship in which it represents another organization.', outcome: 'The representation.', whenToUse: 'A client\\'s page: the relationship\\'s access (status, role, term, units), the team serving it and its mailbox (#2589).', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The representation.' }], idempotent: true },\n [Op.LIST]: { purpose: 'List your organization\\'s representations, its clients. An administrator lists every one; any other role, a manager included, lists the ones they are assigned to serve.', outcome: 'A page of representations.', whenToUse: 'The engine\\'s Clients row in the primary navigation (#2589), and the Representations settings section. Not the organization switcher, which reads the person\\'s own memberships.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page.' }], idempotent: true },\n [Op.COUNT]: { purpose: 'Count your organization\\'s representations.', outcome: 'A total.', whenToUse: 'Dashboards.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The count.' }], idempotent: true },\n [Op.DELETE]: { purpose: 'PURGE ONLY — removed with the representing organization.', outcome: 'Hard-deleted by the tenant purge cascade.', whenToUse: 'Never directly.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Not observable over HTTP.' }], idempotent: true },\n [OrganizationRepresentations_Operations.PROPOSE]: {\n operationId: OrganizationRepresentations_Operations.PROPOSE,\n purpose: 'Propose a relationship in which your organization represents another one.',\n outcome: 'A PROPOSED relationship in the granting organization (written by the system) and this representation in yours. Nothing is conferred until an owner of the granting organization accepts. The granting organization\\'s owners and administrators are emailed.',\n whenToUse: 'Your organization starts work with another organization that uses the same application (e.g. a firm with a new client).',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'Proposed.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The granting organization does not exist or no longer confers authority.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A live relationship already exists, the organization types, kind, role or units are not eligible, or several relationship kinds admit the two organizations\\' types and none was named (`RELATIONSHIP_KIND_REQUIRED`).' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: 'RELATIONSHIP_KIND_REQUIRED', when: 'Several relationship kinds admit the two organizations\\' types and the invitation names none: name the kind.' },\n ],\n idempotent: false,\n },\n [OrganizationRepresentations_Operations.ACCEPT]: { operationId: OrganizationRepresentations_Operations.ACCEPT, purpose: 'Accept the granting organization\\'s proposal.', outcome: 'The relationship becomes ACTIVE. The granting organization\\'s owners and administrators are emailed.', whenToUse: 'The granting organization proposed; your organization agrees to the terms.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Accepted.' }], errorScenarios: decisionErrors('a proposal the granting organization made'), idempotent: false },\n [OrganizationRepresentations_Operations.WITHDRAW]: { operationId: OrganizationRepresentations_Operations.WITHDRAW, purpose: 'End the relationship from the representing side, or withdraw your own proposal.', outcome: 'WITHDRAWN: assignments end, relationship memberships become INACTIVE. The granting organization\\'s owners and administrators are emailed.', whenToUse: 'Your organization no longer represents this one.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Withdrawn.' }], errorScenarios: decisionErrors('live'), idempotent: false },\n [OrganizationRepresentations_Operations.WITHDRAW_ON_BEHALF]: {\n operationId: OrganizationRepresentations_Operations.WITHDRAW_ON_BEHALF,\n purpose: 'INTERNAL — the application withdraws a live relationship on the representing organization\\'s behalf, with the reason stated (#2573).',\n outcome: 'WITHDRAWN, exactly as the representing side\\'s `withdraw`: assignments end, relationship memberships become INACTIVE, the decisions raised through it end, and the lifecycle row in both trails names the representing organization and no person, with the reason. The administrators of both organizations are emailed: the granting one because it is the other party, the representing one because nobody in it acted.',\n whenToUse: 'Never by a person: application code dispatches it when its own records say the representation is over (Wonder Ledger: a firm\\'s mandate ended and nothing awaits its sign-off). The reason is required, being the only account of the decision.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Withdrawn; not observable over HTTP.' }],\n errorScenarios: decisionErrors('live'),\n idempotent: false,\n },\n },\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n layout: {\n purpose: 'A client\\'s page (#2589): one relationship in which this organization represents another, as the firm works it day to day.',\n displayPurpose: 'The relationship\\'s access first (its role, units, purpose, term, how the client admits representatives, what it lends, when it started and ended), read-only but for withdraw; then the team serving it, then its mailboxes. Each of those two sections is drawn only for a viewer its list admits: an administrator sees the team, a member reading a client they serve does not.',\n sections: {\n team: {\n purpose: 'The people this organization assigned to serve this client, with each one\\'s status, including an assignment still waiting for the client\\'s approval.',\n whenToUse: 'Staffing a client: assign a member, or end an assignment, from the client\\'s own page.',\n textSlots: {\n title: { purpose: 'Name the block listing the people assigned to serve this client.' },\n },\n },\n mailboxes: {\n purpose: 'The addresses this organization keeps on its own domain for mail about this client, which lands in the client\\'s organization.',\n whenToUse: 'Finding or adding the address a client\\'s mail is sent to.',\n textSlots: {\n title: { purpose: 'Name the block listing the mailboxes kept for this client.' },\n },\n },\n },\n },\n }),\n);\n\nexport const representativeAssignmentsResourceSpecification = resourceSpecification(\n representativeAssignmentsResourceConfiguration_InitializationFactory,\n RepresentativeAssignmentSchema,\n ({ schemaShape }) => ({\n purpose: 'Let a representing organization designate which of its members represent it under each relationship.',\n businessRole: 'The representing organization\\'s record of who represented it in which organization, when. Assigning gives the representative a relationship membership in the granting organization; unassigning makes it inactive. The representative\\'s erasure ends their live assignments (#2920).',\n lifecycleRole: 'ACTIVE while the representative acts under the relationship; ENDED on unassignment, when the relationship reaches a terminal status, or when the representative is erased. Under a relationship whose granting organization approves each representative (#1612) an assignment starts PENDING_GRANTING_APPROVAL, with nothing in the granting organization, and becomes ACTIVE, DENIED or LAPSED when the granting organization answers. Kept as evidence.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: modelsExport('RepresentativeAssignmentSchema', CodeSymbolKind.SCHEMA, CodeDeclarationKind.ZOD_SCHEMA),\n resourceFactory: modelsExport('representativeAssignmentsResourceConfiguration_InitializationFactory', CodeSymbolKind.FACTORY, CodeDeclarationKind.FUNCTION),\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'REPRESENTATIVE_ASSIGNMENTS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('RepresentativeAssignments_Operations') },\n notes: [\n 'The live filter reads the ACTIVE assignment for (relationship, representative) on every request the representative makes to the granting organization — unassigning ends reach on the next request.',\n 'A PENDING_GRANTING_APPROVAL assignment is the host of a human decision on the `representative_admission` plane (#1612): it holds the decision id (`approvalDecisionId`), the decision is listed in the one reviewer inbox to the granting organization\\'s administrators and answered on the one act route, and the answer is applied by the INTERNAL `settleGrantorApproval` verb, which re-checks admission at that moment.',\n 'The four `REPRESENTATIVE_APPROVAL_*` events are written to both organizations\\' trails and carry the decision id; none names the administrator of the granting organization who answered — that person is on the decision\\'s own resolved row, in the granting organization\\'s trail only, and on the assignment only as the backend-only `approvalDecidedByUserId`.',\n 'A settlement whose commit landed with its reply lost (outcome unknown) has its ending recorded and told once by the decision-deadline sweep\\'s ending repair: the settlement row in both trails, the decision\\'s resolved row naming who answered (#2880; a lapse names nobody, #2872), and the administrators\\' withdrawal. The admitted membership\\'s own facts and the representing organization\\'s email are not replayed.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one assignment.', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The REPRESENTING organization — the scope anchor.', importance: FieldSemanticImportance.PRIMARY }),\n organizationRepresentationId: schemaShape.organizationRepresentationId.foreignKeySpec({ meaning: 'The representation the representative acts under.', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({ meaning: 'The representative — an active, ordinary member of the representing organization when assigned.', importance: FieldSemanticImportance.PRIMARY }),\n representativeName: schemaShape.representativeName.stringSpec({ meaning: 'The representative, by name: `userId`\\'s label fallback when the viewer may not read the member\\'s account. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).' }),\n organizationRelationshipId: schemaShape.organizationRelationshipId.stringSpec({ meaning: 'The relationship, copied so the live filter reads one row.' }),\n grantingOrganizationId: schemaShape.grantingOrganizationId.stringSpec({ meaning: 'The granting organization the representative acts in.' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the representative currently acts under the relationship.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('RepresentativeAssignmentStatus'),\n values: {\n [RepresentativeAssignmentStatus.ACTIVE]: { meaning: 'Acting: the representative holds a relationship membership in the granting organization.' },\n [RepresentativeAssignmentStatus.ENDED]: { meaning: 'No longer acting (or withdrawn while waiting for the granting organization); any membership in the granting organization is INACTIVE. Kept as evidence.' },\n [RepresentativeAssignmentStatus.PENDING_GRANTING_APPROVAL]: { meaning: 'Waiting for the approval of one of the granting organization\\'s administrators. Nothing exists in the granting organization yet, so nothing is conferred.' },\n [RepresentativeAssignmentStatus.DENIED]: { meaning: 'Not admitted: the granting organization refused, or approved when the relationship or the representative no longer allowed it. `approvalDenialReason` says which. Terminal.' },\n [RepresentativeAssignmentStatus.LAPSED]: { meaning: 'Nobody in the granting organization answered before the approval\\'s lapse. Nothing was created. Terminal.' },\n },\n }),\n approvalDecisionId: schemaShape.approvalDecisionId.stringSpec({\n meaning: 'The granting organization\\'s pending approval of this representative — the human-decision id (#1612).',\n whyItMatters: 'The one key the approval is listed, answered and settled by; the settle write matches on it, so an answer settles only the request it was given.',\n }),\n approvalResolvedAt: schemaShape.approvalResolvedAt.dateSpec({ meaning: 'When the granting organization\\'s approval ended — approved, denied or lapsed.', whyItMatters: 'Records WHEN, and never shows WHO in the granting organization decided: the representing organization reads this row. Indexed: the ending repair lists the approvals settled within its window by it.', temporalRole: 'occurred' }),\n approvalDecidedByUserId: schemaShape.approvalDecidedByUserId.stringSpec({\n meaning: 'The granting organization\\'s administrator who answered the approval (approved or refused), written in the same write as the answer. Absent on a lapse, a late answer ended LAPSED, and a withdrawal.',\n whyItMatters: 'Backend-only: never in a response, a listing, an export or an email, and not audit evidence, so the representing organization, which reads this row and owns its trail, is never told who decided. Its one reader is the ending repair, which records an answer whose commit landed with its reply lost, naming the person who answered (#2880). Kept as evidence on erasure.',\n }),\n approvalDenialReason: schemaShape.approvalDenialReason.enumSpec({\n meaning: 'Why a DENIED assignment admitted nobody.',\n enumDeclaration: enumDeclaration('RepresentativeApprovalDenialReason'),\n values: {\n [RepresentativeApprovalDenialReason.REFUSED_BY_GRANTING_ORGANIZATION]: { meaning: 'An administrator of the granting organization refused the representative.' },\n [RepresentativeApprovalDenialReason.RELATIONSHIP_NO_LONGER_CONFERS]: { meaning: 'Approved, but the relationship no longer confers: it had ended, been suspended or passed its term, its kind no longer admits the two organizations, the role or the unit scope (a dormant relationship), or the granting organization is suspended, cancelled or being deleted.' },\n [RepresentativeApprovalDenialReason.REPRESENTATIVE_NO_LONGER_ELIGIBLE]: { meaning: 'Approved, but the representative was no longer an active member of the representing organization, or that organization no longer confers authority.' },\n [RepresentativeApprovalDenialReason.CONFLICTS_WITH_GRANTING_MEMBERSHIP]: { meaning: 'Approved, but the person meanwhile held another membership in the granting organization.' },\n },\n }),\n assignedByUserId: schemaShape.assignedByUserId.stringSpec({ meaning: 'The representing organization\\'s administrator who assigned.' }),\n assignedByName: schemaShape.assignedByName.stringSpec({ meaning: 'The representing organization\\'s administrator who assigned, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).', whyItMatters: '`endedByUserId` has no name: an assignment ends with its relationship, and the actor may then be the granting organization\\'s administrator, whom the representing organization is never told about.' }),\n assignedAt: schemaShape.assignedAt.dateSpec({ meaning: 'When the assignment began.', temporalRole: 'occurred' }),\n endedByUserId: schemaShape.endedByUserId.stringSpec({ meaning: 'Who ended it, when a person did.' }),\n endedAt: schemaShape.endedAt.dateSpec({ meaning: 'When it ended — the retention start point.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was created.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When it last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: { purpose: 'Inspect one assignment.', outcome: 'The assignment.', whenToUse: 'Reviewing who represents your organization in another one.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The assignment.' }], idempotent: true },\n [Op.LIST]: { purpose: 'List your organization\\'s assignments, or the team of one client relationship (`organizationRepresentationId` filter).', outcome: 'A page of assignments.', whenToUse: 'A client\\'s page, its Team section (#2589).', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page.' }], idempotent: true },\n [Op.COUNT]: { purpose: 'Count your organization\\'s assignments.', outcome: 'A total.', whenToUse: 'Dashboards.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The count.' }], idempotent: true },\n [Op.DELETE]: { purpose: 'PURGE ONLY — removed with the representing organization.', outcome: 'Hard-deleted by the tenant purge cascade.', whenToUse: 'Never directly.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Not observable over HTTP.' }], idempotent: true },\n [RepresentativeAssignments_Operations.ASSIGN]: {\n operationId: RepresentativeAssignments_Operations.ASSIGN,\n purpose: 'Assign one of your members to represent your organization under a relationship.',\n outcome: 'An ACTIVE assignment, and a relationship membership in the granting organization carrying the relationship\\'s role (created, or reactivated and re-pointed). When the granting organization approves each representative, a PENDING_GRANTING_APPROVAL assignment instead, with nothing in the granting organization until one of its administrators approves. An ACTIVE assignment is emailed to the granting organization\\'s owners and administrators; a waiting one reaches them as the approval decision instead.',\n whenToUse: 'A member starts working in the organization yours represents.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'Assigned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The representation is not active, the relationship no longer confers (its kind no longer admits the two organizations, the role or the unit scope, or the granting organization is suspended, cancelled or being deleted: the relationship is dormant, #2616), the person is not an active member of your organization, they are one of the granting organization\\'s own members, they already act in it, or the granting organization has SUSPENDED them (`REPRESENTATIVE_SUSPENDED_BY_GRANTOR` — only the granting organization lifts that).' },\n ],\n idempotent: false,\n },\n [RepresentativeAssignments_Operations.UNASSIGN]: { operationId: RepresentativeAssignments_Operations.UNASSIGN, purpose: 'End a representative\\'s assignment, or withdraw one still waiting for the granting organization\\'s approval.', outcome: 'ENDED; an ACTIVE membership in the granting organization becomes INACTIVE (one the granting organization SUSPENDED stays suspended — that is its decision); reach ends on the next request. A waiting approval is withdrawn from the granting organization\\'s inbox. Ending an admitted representative is emailed to the granting organization\\'s owners and administrators.', whenToUse: 'The representative stops working in that organization.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Unassigned.' }], errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The assignment is already ended, denied or lapsed.' }], idempotent: false },\n [RepresentativeAssignments_Operations.SETTLE_GRANTOR_APPROVAL]: {\n operationId: RepresentativeAssignments_Operations.SETTLE_GRANTOR_APPROVAL,\n purpose: 'INTERNAL — apply the answer of one of the granting organization\\'s administrators to a pending representative approval.',\n outcome: 'Approved and still admissible ⇒ the relationship membership is created and the assignment is ACTIVE; approved but no longer admissible, or refused ⇒ DENIED with the reason; lapsed ⇒ LAPSED. The representing organization\\'s owners and administrators are emailed the answer, without naming who gave it.',\n whenToUse: 'Never directly: the reviewer inbox\\'s answer reaches it after authorizing the answerer as one of the granting organization\\'s administrators.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Settled; not observable over HTTP.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The assignment is no longer waiting on this decision (withdrawn, or already answered).' }],\n idempotent: false,\n },\n },\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nconst CAPABILITY_VALUES = {\n [DelegatedAdministrativeCapability.INVITE_MEMBERS]: { meaning: 'Invite people into your organization, resend and revoke invitations. An administrator grants it, for up to two years, on an organization-wide relationship.' },\n [DelegatedAdministrativeCapability.MANAGE_RELATIONSHIP_REPRESENTATIVES]: { meaning: 'Suspend or remove the representing organization\\'s own representatives under this relationship — never your own members, never another relationship\\'s representatives. Not reactivate: a suspension you place stays yours to lift.' },\n [DelegatedAdministrativeCapability.READ_AUDIT_TRAIL]: { meaning: 'Read and export your organization\\'s audit trail. Refused on a relationship confined to organization units.' },\n [DelegatedAdministrativeCapability.MANAGE_SSO_SCIM]: { meaning: 'Configure your single sign-on and SCIM provisioning. Security-critical: an owner grants it, with step-up, for at most 30 days.' },\n [DelegatedAdministrativeCapability.MANAGE_API_KEYS]: { meaning: 'Manage your organization\\'s API keys. Security-critical: an owner grants it, with step-up, for at most 30 days.' },\n [DelegatedAdministrativeCapability.APPROVE_ACCESS_GRANTS]: { meaning: 'Answer, for your organization, a platform operator\\'s request to access it. Security-critical: an owner grants it, with step-up, for at most 30 days.' },\n};\n\nexport const relationshipCapabilityGrantsResourceSpecification = resourceSpecification(\n relationshipCapabilityGrantsResourceConfiguration_InitializationFactory,\n RelationshipCapabilityGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Let an organization lend another organization\\'s representatives one named administrative capability, for a stated time, without ever making that organization an administrator.',\n businessRole: 'The granting organization\\'s record of which administrative capability it lent which representing organization, through which relationship, until when, and who granted and revoked it.',\n lifecycleRole: 'ACTIVE from the grant until its end date (the capability confers only in that window, re-checked on every request); REVOKED when an administrator of the granting organization revokes it or the relationship ends; EXPIRED when the sweep relabels it after its end. Kept as access-review evidence.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: modelsExport('RelationshipCapabilityGrantSchema', CodeSymbolKind.SCHEMA, CodeDeclarationKind.ZOD_SCHEMA),\n resourceFactory: modelsExport('relationshipCapabilityGrantsResourceConfiguration_InitializationFactory', CodeSymbolKind.FACTORY, CodeDeclarationKind.FUNCTION),\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'RELATIONSHIP_CAPABILITY_GRANTS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('RelationshipCapabilityGrants_Operations') },\n notes: [\n 'A capability is a NAMED ROLE (`ORG_DELEGATED_*`, one per `DelegatedAdministrativeCapability`) listed explicitly beside ORG_ADMIN by exactly the core operations it opens. The execution-context live filter adds it to the representatives\\' entries only while the grant is ACTIVE and `endsAt` is in the future — no sweep involved.',\n 'No capability confers ORG_ADMIN or ORG_OWNER, accepts or amends a relationship, delegates further, or counts toward the owner floor. Startup refuses a capability role that inherits toward an administration anchor.',\n 'Every grant, revocation and expiry emits `RELATIONSHIP_CAPABILITY_GRANTED` / `_REVOKED` / `_EXPIRED` to both organizations\\' trails, CRITICAL for a security-critical grant at either end of its window; the representing organization sees what it holds on its representation mirror (`delegatedCapabilities`).',\n 'An expiry is recorded under audit ids derived from the grant (it expires once), so the credential-expiry sweep\\'s repair of an expiry whose commit outcome was unknown writes the missing rows, and sends its one notice, without a second row (#2888).',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one grant.', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The GRANTING organization lending the capability — the scope anchor.', importance: FieldSemanticImportance.PRIMARY }),\n relationshipId: schemaShape.relationshipId.foreignKeySpec({ meaning: 'The relationship the capability is lent through.', whyItMatters: 'Every surviving representative of THIS relationship gains the capability; the live filter reads grants by it.', importance: FieldSemanticImportance.PRIMARY }),\n representingOrganizationId: schemaShape.representingOrganizationId.stringSpec({ meaning: 'The representing organization, copied from the relationship. A plain id, never an edge into another tenant.' }),\n capability: schemaShape.capability.enumSpec({\n meaning: 'The capability lent.',\n whyItMatters: 'Each is one role, opening exactly the operations that list it.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('DelegatedAdministrativeCapability'),\n values: CAPABILITY_VALUES,\n }),\n endsAt: schemaShape.endsAt.dateSpec({ meaning: 'When the capability stops conferring. Required.', whyItMatters: 'The live filter compares against it on every request, so the capability ends at this instant whether or not the sweep has run.', temporalRole: 'expiration' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where the grant stands.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('RelationshipCapabilityGrantStatus'),\n values: {\n [RelationshipCapabilityGrantStatus.ACTIVE]: { meaning: 'Lent. Confers only until `endsAt`.' },\n [RelationshipCapabilityGrantStatus.REVOKED]: { meaning: 'Revoked by an administrator of the granting organization, or with the relationship\\'s end. Terminal.' },\n [RelationshipCapabilityGrantStatus.EXPIRED]: { meaning: 'Relabelled by the sweep after `endsAt`, and recorded in both trails as the lending\\'s scheduled end. Terminal bookkeeping — it had already stopped conferring.' },\n },\n }),\n grantedByUserId: schemaShape.grantedByUserId.stringSpec({ meaning: 'The administrator (or owner) of the granting organization who granted it.' }),\n grantedAt: schemaShape.grantedAt.dateSpec({ meaning: 'When it was granted.', temporalRole: 'occurred' }),\n revokedByUserId: schemaShape.revokedByUserId.stringSpec({ meaning: 'Who revoked it, when a person did.' }),\n grantedByName: schemaShape.grantedByName.stringSpec({ meaning: 'The person who granted it, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).' }),\n revokedByName: schemaShape.revokedByName.stringSpec({ meaning: 'Who revoked it, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).' }),\n revokedAt: schemaShape.revokedAt.dateSpec({ meaning: 'When it was revoked.', temporalRole: 'occurred' }),\n endedAt: schemaShape.endedAt.dateSpec({ meaning: 'When the grant stopped — revoked or relabelled.', whyItMatters: 'The retention start point (AUDIT_LOGS class).', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was created.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When it last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: { purpose: 'Inspect one capability your organization lent.', outcome: 'The grant.', whenToUse: 'Reviewing what another organization may administer here.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The grant.' }], idempotent: true },\n [Op.LIST]: { purpose: 'List the capabilities your organization lent.', outcome: 'A page of grants, live and ended.', whenToUse: 'The relationship\\'s Delegated capabilities screen and access reviews.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page.' }], idempotent: true },\n [Op.COUNT]: { purpose: 'Count them.', outcome: 'A total.', whenToUse: 'Dashboards.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The count.' }], idempotent: true },\n [Op.DELETE]: { purpose: 'PURGE ONLY — removed with the granting organization.', outcome: 'Hard-deleted by the tenant purge cascade.', whenToUse: 'Never directly.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Not observable over HTTP.' }], idempotent: true },\n [RelationshipCapabilityGrants_Operations.GRANT]: {\n operationId: RelationshipCapabilityGrants_Operations.GRANT,\n purpose: 'Lend another organization\\'s representatives an ordinary administrative capability — invite members, manage that organization\\'s own representatives, read the audit trail — until a date.',\n outcome: 'An ACTIVE grant: every representative of the relationship holds the capability here from their next request until `endsAt`, and the representing organization\\'s mirror lists it. The representing organization\\'s owners and administrators are emailed.',\n whenToUse: 'Your organization wants the representing organization to handle a routine administrative task without making it an administrator.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'Granted.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The relationship is not ACTIVE or SUSPENDED, the capability is security-critical (use `grantSecurityCritical`), `endsAt` is past or beyond two years, the relationship is confined to organization units (every capability needs an organization-wide relationship), the relationship\\'s kind does not lend the capability, or the capability is already lent through this relationship.' },\n ],\n idempotent: false,\n },\n [RelationshipCapabilityGrants_Operations.GRANT_SECURITY_CRITICAL]: {\n operationId: RelationshipCapabilityGrants_Operations.GRANT_SECURITY_CRITICAL,\n purpose: 'Lend a security-critical capability — SSO and SCIM, API keys, or approving platform access — for a short window.',\n outcome: 'An ACTIVE grant that ends at `endsAt`, at most 30 days away (or the lower cap the relationship\\'s kind declares for your organization\\'s type). A renewal is a new grant. The representing organization\\'s owners and administrators are emailed.',\n whenToUse: 'A bounded task genuinely needs the representing organization to hold it — connecting your identity provider, setting up an integration. Only an owner, with step-up.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'Granted.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an owner of the organization, or step-up authentication is required.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The relationship is not live, the capability is not security-critical (use `grant`), `endsAt` is beyond the cap, the relationship is unit-scoped, the relationship\\'s kind does not lend it, or it is already lent.' },\n ],\n idempotent: false,\n },\n [RelationshipCapabilityGrants_Operations.REVOKE]: { operationId: RelationshipCapabilityGrants_Operations.REVOKE, purpose: 'Take a lent capability back.', outcome: 'REVOKED: the representing organization\\'s representatives lose it on their next request, without that organization being asked; its owners and administrators are emailed.', whenToUse: 'The task is done, or the representing organization should no longer hold it.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Revoked.' }], errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The grant is no longer ACTIVE.' }], idempotent: false },\n },\n businessConstraints: [\n 'A representing organization can never grant, widen or extend a capability; every verb here is the granting organization\\'s.',\n 'A security-critical capability is granted only by an owner, with step-up, through `grantSecurityCritical`, and never for more than 30 days (the relationship\\'s kind may declare less for the granting organization\\'s type, as `securityCriticalCapabilityMaxDays`). There is no automatic renewal.',\n 'Every capability is refused on a relationship confined to organization units: each opens operations that do not narrow by unit and count only organization-wide entries, which a unit-scoped relationship\\'s representatives do not hold. Narrowing a relationship to units with `amendScope` revokes its live grants in the same transaction, each recorded as a revocation by the owner who narrowed.',\n 'MANAGE_RELATIONSHIP_REPRESENTATIVES reaches only memberships of the same relationship; the member verbs refuse any other target (403 `RELATIONSHIP_CAPABILITY_TARGET_OUTSIDE_RELATIONSHIP`).',\n 'Only a capability the relationship\\'s kind lends (`confers.lendableCapabilities`; absent: all) can be granted (`RELATIONSHIP_CAPABILITY_NOT_LENDABLE_UNDER_KIND`). A grant made before the kind stopped lending its capability stays ACTIVE and confers nothing, and neither do the credentials obtained through it, until the kind lends it again.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nconst INVITATION_STATUS_VALUES = {\n [RelationshipInvitationStatus.PENDING]: { meaning: 'No proposal exists yet, as far as the inviting organization can tell: the invitee has not received it into an organization. Stops being deliverable at `expiresAt`, with no relabelling. An invitation its invitee declined stays PENDING to the inviting organization (#2716).' },\n [RelationshipInvitationStatus.DELIVERED]: { meaning: 'The inviting organization\\'s proposal was written into the invitee\\'s organization (`grantingOrganizationId`, `organizationRelationshipId`); that organization\\'s owner accepts or declines it there. Terminal.' },\n [RelationshipInvitationStatus.REVOKED]: { meaning: 'The inviting organization withdrew it before delivery. Terminal.' },\n};\n\nexport const relationshipInvitationsResourceSpecification = resourceSpecification(\n relationshipInvitationsResourceConfiguration_InitializationFactory,\n RelationshipInvitationSchema,\n ({ schemaShape }) => ({\n purpose: 'Let a representing organization attach an organization it cannot name (e.g. a firm\\'s new client), by inviting the person who owns or will own that organization by email.',\n businessRole: 'The inviting organization\\'s record of whom it asked, for what and on which terms, and of the organization its proposal reached.',\n lifecycleRole: 'PENDING when sent; DELIVERED once the inviting organization\\'s PROPOSED relationship is written into an organization the invitee owns and the inviting organization may represent, by registration or by the invitee\\'s choice; REVOKED if the inviting organization withdraws it first. A pending invitation lapses at `expiresAt` (seven days). An invitee may decline it, which the inviting organization cannot see (#2716).',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: modelsExport('RelationshipInvitationSchema', CodeSymbolKind.SCHEMA, CodeDeclarationKind.ZOD_SCHEMA),\n resourceFactory: modelsExport('relationshipInvitationsResourceConfiguration_InitializationFactory', CodeSymbolKind.FACTORY, CodeDeclarationKind.FUNCTION),\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'RELATIONSHIP_INVITATIONS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('RelationshipInvitations_Operations') },\n notes: [\n 'Delivery is the system\\'s, never a request: deferred onboarding delivers into the organization it creates (in the same transaction) when the address is already proven, and the first proof of an address delivers into the organizations its owner created before proving it. Anyone may type an address at sign-up, so nothing is delivered on an unproven one.',\n 'A delivered invitation is exactly the representing side\\'s `propose`: a PROPOSED relationship in the granting organization, proposed by the inviting organization (`proposedByUserId` is the inviter), with its mirror and no name of the granting organization on it until that organization accepts.',\n 'An address that already had an account and an organization is never delivered to automatically (#2716). Its owner, signed in with the proven address, finds the invitation in the account\\'s Invitations panel (`/auth/relationship-invitations/*`) and receives it into an organization they own, or declines it. The inviting organization learns nothing until a proposal exists: a declined invitation still reads PENDING to it until it lapses.',\n 'Where the application\\'s operator is the representing party of a kind, an existing organization can also ask the operator itself (`propose`, variant `withOperator`).',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one invitation.', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The REPRESENTING organization that invited — the scope anchor.', importance: FieldSemanticImportance.PRIMARY }),\n email: schemaShape.email.stringSpec({ meaning: 'The invitee\\'s address, in lower case.', whyItMatters: 'Delivery matches it against an organization owner\\'s PROVEN address. Personal data of someone who may never become a user: removed on erasure, which leaves the invitation undeliverable.', importance: FieldSemanticImportance.PRIMARY }),\n purpose: schemaShape.purpose.stringSpec({ meaning: 'Why the inviting organization wants the relationship.', whyItMatters: 'Becomes the relationship\\'s `purpose`, which the granting organization\\'s third-party processing register derives from, and is quoted in the invitation email. Masked on erasure.' }),\n kind: schemaShape.kind.stringSpec({ meaning: 'The relationship kind the invitation proposes (#2722): named by the inviter, or the only kind admitting invitations from its organization\\'s type.', whyItMatters: 'Only a kind declaring `invitations: true` may be invited into. The relationship proposed at delivery is of this kind, checked again against the invitee organization\\'s type then.' }),\n role: schemaShape.role.stringSpec({ meaning: 'The role the inviting organization proposes for its representatives. Absent ⇒ the kind\\'s `confers.defaultRole`.', whyItMatters: 'Checked against the kind\\'s `confers.roles` when inviting, and against the invitee organization\\'s type at delivery; an invitation whose terms the invitee\\'s organization type refuses stays pending.' }),\n endsAt: schemaShape.endsAt.dateSpec({ meaning: 'The term the inviting organization proposes. Dropped at delivery if it has already passed.', temporalRole: 'expiration' }),\n status: schemaShape.status.enumSpec({ meaning: 'Where the invitation stands.', importance: FieldSemanticImportance.PRIMARY, enumDeclaration: enumDeclaration('RelationshipInvitationStatus'), values: INVITATION_STATUS_VALUES }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'When a pending invitation stops being deliverable.', whyItMatters: 'Read by delivery directly; nothing relabels the row when it passes.', temporalRole: 'expiration' }),\n invitedByUserId: schemaShape.invitedByUserId.stringSpec({ meaning: 'The inviting organization\\'s administrator who invited.', whyItMatters: 'Recorded on the delivered relationship as the person who proposed it.' }),\n deliveredAt: schemaShape.deliveredAt.dateSpec({ meaning: 'When the proposal reached the invitee\\'s organization.', temporalRole: 'occurred' }),\n grantingOrganizationId: schemaShape.grantingOrganizationId.stringSpec({ meaning: 'The organization the proposal was delivered into.', whyItMatters: 'A plain id: it names another tenant.' }),\n organizationRelationshipId: schemaShape.organizationRelationshipId.stringSpec({ meaning: 'The relationship the delivery proposed, or the live one the inviting organization already had with that organization.' }),\n revokedByUserId: schemaShape.revokedByUserId.stringSpec({ meaning: 'The inviting organization\\'s administrator who revoked it.' }),\n invitedByName: schemaShape.invitedByName.stringSpec({ meaning: 'The inviting organization\\'s administrator who invited, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).' }),\n revokedByName: schemaShape.revokedByName.stringSpec({ meaning: 'The inviting organization\\'s administrator who revoked it, by name. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).' }),\n revokedAt: schemaShape.revokedAt.dateSpec({ meaning: 'When it was revoked.', temporalRole: 'occurred' }),\n declinedAt: schemaShape.declinedAt.dateSpec({ meaning: 'When the invitee declined it (#2716).', whyItMatters: 'A declined invitation is never offered or delivered again. Backend-only: the inviting organization must not learn of the decline, so no response carries it, no caller may sort or filter by it, and writing it does not move `updatedAt`.', temporalRole: 'occurred' }),\n declinedByUserId: schemaShape.declinedByUserId.stringSpec({ meaning: 'The account that declined it, signed in with the proven invited address (#2716).', whyItMatters: 'Backend-only, for the same reason as `declinedAt`.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization invited.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When it last changed for the inviting organization: delivery or revocation. A decline does not move it.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: { purpose: 'Inspect one of your organization\\'s relationship invitations.', outcome: 'The invitation, with where its proposal went once delivered.', whenToUse: 'The Representations settings section.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The invitation.' }], idempotent: true },\n [Op.LIST]: { purpose: 'List your organization\\'s relationship invitations.', outcome: 'A page of invitations, pending and settled.', whenToUse: 'Your organization follows up on the organizations it invited.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page.' }], idempotent: true },\n [Op.COUNT]: { purpose: 'Count your organization\\'s relationship invitations.', outcome: 'A total.', whenToUse: 'Dashboards.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The count.' }], idempotent: true },\n [Op.DELETE]: { purpose: 'PURGE ONLY — removed with the representing organization.', outcome: 'Hard-deleted by the tenant purge cascade.', whenToUse: 'Never directly.', responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Not observable over HTTP.' }], idempotent: true },\n [RelationshipInvitations_Operations.INVITE]: {\n operationId: RelationshipInvitations_Operations.INVITE,\n purpose: 'Invite, by email, the person who owns or will own an organization yours will represent, with the purpose and terms of the relationship your organization proposes.',\n outcome: 'A PENDING invitation, and an email to the address with the application\\'s sign-up page and its sign-in page. Nothing is proposed until that person owns an organization yours may represent and has proven the address: a newcomer\\'s organization receives it when created, and a person who already has one chooses which receives it. Then your proposal waits there for its owner.',\n whenToUse: 'Your organization starts work with one it cannot name (e.g. a firm with a new client): not yet in the application, or there under an id yours does not know.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'Invited.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Your organization already has a pending invitation to this address (`RELATIONSHIP_INVITATION_ALREADY_PENDING`), its type may invite under no relationship kind (or not under the kind named), several kinds admit its invitations and none was named (`RELATIONSHIP_KIND_REQUIRED`), or the role is not one the kind confers.' },\n ],\n idempotent: false,\n },\n [RelationshipInvitations_Operations.REVOKE]: {\n operationId: RelationshipInvitations_Operations.REVOKE,\n purpose: 'Withdraw an invitation that has not been delivered.',\n outcome: 'REVOKED: it is never delivered. A proposal already delivered is withdrawn on the representation instead.',\n whenToUse: 'The invitation went to the wrong address, or your organization no longer wants the relationship.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Revoked.' }],\n errorScenarios: decisionErrors('PENDING'),\n idempotent: false,\n },\n },\n businessConstraints: [\n 'At most one pending, unexpired invitation per (inviting organization, address), whether or not the invitee declined it: a second one beside it would tell the inviting organization the first was refused.',\n 'Delivered only to an organization OWNED by a person who has PROVEN the invited address, and only when the invitation\\'s kind admits the inviting organization\\'s type representing that organization\\'s type, with the invitation\\'s role.',\n 'A delivery and a revocation of the same invitation never both take effect: each writes conditionally on the invitation still being PENDING.',\n 'The representing organization learns nothing of an invitee until a proposal exists: the invitation email is the same for an address with or without an account, and a decline changes nothing the representing organization can read (#2716).',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
@@ -15,7 +15,7 @@ export declare const organizationUnitMembersResourceSpecification: import("../..
15
15
  organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
16
16
  organizationUnitId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
17
17
  organizationMemberId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
18
- role: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodUnion<readonly [import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").CORE_ORG_ROLES>, import("zod").ZodString]>>>;
18
+ role: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodUnion<readonly [import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").CORE_ORG_ROLES>, import("zod").ZodString]>>>>;
19
19
  createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodDate>>>>>;
20
20
  updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodDate>>>>>;
21
21
  }, import("zod/v4/core").$strip>>>;
@@ -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;AAI/B,eAAO,MAAM,4CAA4C;;;;;;;;kCAiTxD,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;;;;;;;;kCAmTxD,CAAC"}
@@ -91,9 +91,10 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
91
91
  ],
92
92
  errorScenarios: [
93
93
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation, omits `organizationUnitId`, or names a unit that does not belong to the caller’s organization.' },
94
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The role is not one the organization\'s type offers (`availableOrgRoles`), or is a handler-only or delegated capability role. A unit role is an organization role narrowed to one unit, so it answers to the membership\'s rule (#2607) — and the request would drop it anyway (#2606).' },
94
95
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling (a principal cannot grant authority it does not hold).' },
95
96
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The member already holds an assignment in that unit — the (membership, unit) pair is the business key.' },
96
- { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is a service-provider membership (a firm\'s expert). Its unit scope belongs to its relationship, so a unit grant here would confer nothing; carries `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP` — change the scope through the relationship\'s `amendScope`.' },
97
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is a relationship membership (a representative of another organization). Its unit scope belongs to its relationship, so a unit grant here would confer nothing; carries `RELATIONSHIP_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP` — change the scope through the relationship\'s `amendScope`.' },
97
98
  ],
98
99
  idempotent: false,
99
100
  examples: [
@@ -270,9 +271,10 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
270
271
  ],
271
272
  errorScenarios: [
272
273
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation.' },
274
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The role is not one the organization\'s type offers (`availableOrgRoles`), or is a handler-only or delegated capability role. A unit role is an organization role narrowed to one unit, so it answers to the membership\'s rule (#2607) — and the request would drop it anyway (#2606).' },
273
275
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling.' },
274
276
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id in the caller’s organization.' },
275
- { code: HttpResponseStatusCode.CONFLICT_409, when: 'The assignment belongs to a service-provider membership, whose unit scope belongs to its relationship; carries `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.' },
277
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The assignment belongs to a relationship membership, whose unit scope belongs to its relationship; carries `RELATIONSHIP_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.' },
276
278
  ],
277
279
  idempotent: true,
278
280
  examples: [
@@ -294,7 +296,7 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
294
296
  purpose: 'Revoke a member’s assignment to a unit.',
295
297
  outcome: 'The assignment row is removed; the member keeps their organization-wide roles. An `organization_unit_member_removed` audit event records the revocation, carrying the role that was removed — the row is hard-deleted, so nothing else in the system can afterwards answer what authority was lost. It is classified as an AUTHORIZATION event rather than org-chart record-keeping because an assignment row exists only to confer a role, so deleting it IS the revocation; the trail would otherwise show unit privileges granted and never removed. Cascade removals — deleting the parent membership, or the whole organization — do not emit this event: those cascades run through the raw repository, below the service tier, and the auditable act there is losing the membership or the tenant. Deleting the UNIT is not one of those paths: it is refused while any assignment remains, so dismantling a unit necessarily goes through this operation and is fully evidenced.',
296
298
  responseStatuses: [
297
- { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The assignment was removed; no body is returned.' },
299
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment was removed; the body carries its `id`.' },
298
300
  ],
299
301
  errorScenarios: [
300
302
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin.' },
@@ -311,7 +313,7 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
311
313
  '`role` is the only mutable field; `organizationUnitId` and `organizationMemberId` are immutable. An edit may change what an assignment GRANTS, never what it is ABOUT — which keeps the business key the whole identity of the row.',
312
314
  'The (membership, unit) business key makes "one role per member per unit" a persisted invariant. The embedded array this resource replaced admitted duplicates with no defined winner.',
313
315
  'Deleting the owning membership or the organization cascades these rows away, so an assignment cannot outlive the membership that justified it. Deleting a UNIT does NOT cascade: that delete is refused while assignments remain, so an operator decides where the affected people belong rather than having roles silently dropped behind a single-node delete.',
314
- 'A service-provider membership (a firm\'s expert, present through a relationship) takes no unit assignment: its unit scope is the relationship\'s `organizationUnitIds`, read by the per-request live filter, and a unit assignment on it would record a grant that confers nothing. CREATE and UPDATE refuse it with 409 `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.',
316
+ 'A relationship membership (a representative of another organization, present through a relationship) takes no unit assignment: its unit scope is the relationship\'s `organizationUnitIds`, read by the per-request live filter, and a unit assignment on it would record a grant that confers nothing. CREATE and UPDATE refuse it with 409 `RELATIONSHIP_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.',
315
317
  '`role` IS an authorization axis as of 2026-08-01. Each assignment is emitted into the caller’s `initiatorRoles` as a NARROWED grant carrying its `organizationUnitId`, which every organization-wide consumer partitions out. On a resource that opted into unit narrowing, such a grant admits the member at the operation gate when no organization-wide role of theirs satisfies it, and then confines their reads and writes to that unit — plus its descendants where the unit declares downward inheritance. On every other resource the grant confers nothing at all, which is what stops one unit’s role from becoming tenant-wide authority. Governing these writes BEFORE the wiring landed was deliberate: it meant no above-ceiling role could be pre-planted and then silently become live on the day narrowing shipped.',
316
318
  ],
317
319
  }), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
@@ -1 +1 @@
1
- {"version":3,"file":"organization-unit-members.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-unit-members.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,4BAA4B,EAC5B,oBAAoB,EACpB,iEAAiE,IAAI,8BAA8B,GACpG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,CAAC,MAAM,4CAA4C,GAAG,qBAAqB,CAC/E,8BAA8B,EAC9B,4BAA4B,EAC5B,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,wIAAwI;IACjJ,YAAY,EAAE,6RAA6R;IAC3S,aAAa,EAAE,gLAAgL;IAC/L,QAAQ,EAAE,aAAa,CAAC,KAAK;IAC7B,SAAS,EAAE,uBAAuB,CAAC,aAAa;IAChD,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,8BAA8B;YAC1C,UAAU,EAAE,cAAc,CAAC,MAAM;YACj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AA4E;QACxc,+YAA+Y;QAC/Y,2NAA2N;QAC3N,qOAAqO;QACrO,uLAAuL;QACvL,kWAAkW;QAClW,qXAAqX;QACrX,uyBAAuyB;KACxyB;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `organizationUnitMembers` — Wildo SaaS engine specification (backend-managed, org-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/organizations/organization-unit-members.shared.schemas.ts → `OrganizationUnitMemberSchema`\n * - Factory: engine/saas-models/src/organizations/organization-unit-members.shared.resources-config.schemas.ts\n * → `organizationUnitMemberResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (no engine `resourceUIBehavior` preset; unit assignment is administered through\n * the org-structure admin surface, which consumes this resource's API directly).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CORE_ORG_ROLES,\n CoreResourceOperation as Op,\n OrganizationUnitMemberSchema,\n ResourcePrimaryScope,\n organizationUnitMemberResourceConfiguration_InitializationFactory as organizationUnitMembersFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const organizationUnitMembersResourceSpecification = resourceSpecification(\n organizationUnitMembersFactory,\n OrganizationUnitMemberSchema,\n ({ schemaShape }) => ({\n purpose: 'Junction between an organization MEMBERSHIP and an organization UNIT: \"this member holds this role inside this unit of the org chart\".',\n 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).',\n 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.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationUnitMemberSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationUnitMemberResourceConfiguration_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_UNIT_MEMBERS',\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 // No `customEnum`: the factory is typed `Record<string, never>` for custom operations — this\n // resource exposes the five core verbs and nothing else.\n },\n notes: [\n // DF-1 evidence. Recorded so a later reader can tell a VERIFIED absence from an omission and\n // does not \"helpfully\" add an assignment-notification block the runtime never emits.\n 'Runtime has no `userNotifications` / `m2mNotifications` on any operation — do not add communications.* (DF-1). Unit assignment is evidenced through the audit trail (`organization_unit_member_role_changed` / `organization_unit_member_removed`), not through user-facing messaging.',\n ],\n },\n fields: {\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The tenant this assignment belongs to.',\n whyItMatters: 'Denormalized from the parent membership so tenant scoping and the contextual filter resolve on this row alone — an authorization-adjacent read must never depend on a join to establish which tenant a row belongs to.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationUnitId: schemaShape.organizationUnitId.foreignKeySpec({\n meaning: 'The org-chart node this assignment targets.',\n whyItMatters: 'Half of the business key, and the field a future unit-narrowed authorization read would filter on. Immutable: an edit may change what the assignment GRANTS, never what it is ABOUT.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationMemberId: schemaShape.organizationMemberId.foreignKeySpec({\n meaning: 'The organization MEMBERSHIP being assigned — deliberately the membership, not the user.',\n whyItMatters: 'A unit assignment presupposes membership of the owning organization, so the membership row is the semantic parent: it carries the tenant binding, and its deletion is exactly when the assignment stops meaning anything (hence the cascade). Pointing at `userId` instead would model a user as assignable to a unit of an organization they do not belong to.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n // `role` carries no field spec: it is `OrgRolesSchema`, a `z.union` of the core org-role enum\n // and an open app-defined string, and the spec decorators live on concrete Zod types\n // (`z.string()`, `z.enum()`, `z.array()`) rather than on a union. The members resource hits the\n // same limit and describes its element through `arraySpec` metadata for the same reason. The\n // field's meaning, its ceiling governance and its immutability are documented in\n // `businessConstraints` below instead of being silently dropped, and the API reference reads its\n // description from the schema's `.describe()` (#1625).\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Assign a member to an organization unit with a role.',\n 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.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The assignment was created and is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation, omits `organizationUnitId`, or names a unit that does not belong to the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling (a principal cannot grant authority it does not hold).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The member already holds an assignment in that unit — the (membership, unit) pair is the business key.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is a service-provider membership (a firm\\'s expert). Its unit scope belongs to its relationship, so a unit grant here would confer nothing; carries `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP` — change the scope through the relationship\\'s `amendScope`.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Assign a member as a manager of one delivery unit',\n request: {\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2…',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n response: {\n _id: 'unit_member_01HX2…',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2…',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Fetch one unit assignment.',\n outcome: 'The assignment row is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id in the caller’s organization.' },\n ],\n idempotent: true,\n variants: {\n default: {\n examples: [\n {\n title: 'Read a delivery-unit manager assignment',\n response: {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n context: {\n examples: [\n {\n title: 'Read a unit assignment with organization context',\n response: {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n organization: { _id: 'org_acme' },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Read the compact unit-assignment summary',\n response: {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List unit assignments, filterable by unit, membership, or role.',\n outcome: 'Who sits where in the org chart — the input to org-structure admin screens.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignments visible in the caller’s organization are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' },\n ],\n idempotent: true,\n variants: {\n default: {\n examples: [\n {\n title: 'List delivery-unit role assignments',\n response: {\n data: [\n {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n context: {\n examples: [\n {\n title: 'List unit assignments with organization context',\n response: {\n data: [\n {\n data: [\n {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n organization: { _id: 'org_acme' },\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'List compact unit-assignment summaries',\n response: {\n data: [\n {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Re-grade an existing assignment.',\n outcome: 'The member holds a different role inside the same unit, and an `organization_unit_member_role_changed` audit event records both the previous and the new role. Re-stating the role the assignment already carries changes no authority and emits nothing.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment was updated and is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The assignment belongs to a service-provider membership, whose unit scope belongs to its relationship; carries `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Re-grade an existing unit assignment',\n request: { role: CORE_ORG_ROLES.ORG_MEMBER },\n response: {\n _id: 'unit_member_01HX2…',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2…',\n role: CORE_ORG_ROLES.ORG_MEMBER,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Revoke a member’s assignment to a unit.',\n outcome: 'The assignment row is removed; the member keeps their organization-wide roles. An `organization_unit_member_removed` audit event records the revocation, carrying the role that was removed — the row is hard-deleted, so nothing else in the system can afterwards answer what authority was lost. It is classified as an AUTHORIZATION event rather than org-chart record-keeping because an assignment row exists only to confer a role, so deleting it IS the revocation; the trail would otherwise show unit privileges granted and never removed. Cascade removals — deleting the parent membership, or the whole organization — do not emit this event: those cascades run through the raw repository, below the service tier, and the auditable act there is losing the membership or the tenant. Deleting the UNIT is not one of those paths: it is refused while any assignment remains, so dismantling a unit necessarily goes through this operation and is fully evidenced.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The assignment was removed; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id (or it was already removed).' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n '`role` is the role this member holds WITHIN this unit — a core org role token (`CORE_ORG_ROLES`) or an app-defined custom role string, the same open vocabulary as the organization-wide `roles` array on the membership row.',\n `Every WRITE is ${CORE_ORG_ROLES.ORG_ADMIN}-gated and additionally bounded by the role-ceiling gate: a principal may only grant a role its OWN organization-wide role confers. An ${CORE_ORG_ROLES.ORG_ADMIN} can therefore assign ${CORE_ORG_ROLES.ORG_MANAGER} or ${CORE_ORG_ROLES.ORG_MEMBER} inside a unit, but never ${CORE_ORG_ROLES.ORG_OWNER}. Reads are ${CORE_ORG_ROLES.ORG_MEMBER}-gated — who sits where is ordinary directory information inside a tenant.`,\n 'The ceiling derives from ORGANIZATION-WIDE grants only. That is load-bearing: if it counted unit grants, a member who is admin of one unit could grant themselves that role in every other unit and union up to organization-wide admin. This resource is also permanently barred from unit narrowing for the same reason — a resource that ISSUES authority must not be governed by the authority it issues.',\n 'CREATE validates that the target unit belongs to the caller’s organization. `organizationUnitId` is a caller-supplied FK, so without that check an org admin could bind their own member into another tenant’s org chart.',\n '`role` is the only mutable field; `organizationUnitId` and `organizationMemberId` are immutable. An edit may change what an assignment GRANTS, never what it is ABOUT — which keeps the business key the whole identity of the row.',\n 'The (membership, unit) business key makes \"one role per member per unit\" a persisted invariant. The embedded array this resource replaced admitted duplicates with no defined winner.',\n 'Deleting the owning membership or the organization cascades these rows away, so an assignment cannot outlive the membership that justified it. Deleting a UNIT does NOT cascade: that delete is refused while assignments remain, so an operator decides where the affected people belong rather than having roles silently dropped behind a single-node delete.',\n 'A service-provider membership (a firm\\'s expert, present through a relationship) takes no unit assignment: its unit scope is the relationship\\'s `organizationUnitIds`, read by the per-request live filter, and a unit assignment on it would record a grant that confers nothing. CREATE and UPDATE refuse it with 409 `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.',\n '`role` IS an authorization axis as of 2026-08-01. Each assignment is emitted into the caller’s `initiatorRoles` as a NARROWED grant carrying its `organizationUnitId`, which every organization-wide consumer partitions out. On a resource that opted into unit narrowing, such a grant admits the member at the operation gate when no organization-wide role of theirs satisfies it, and then confines their reads and writes to that unit — plus its descendants where the unit declares downward inheritance. On every other resource the grant confers nothing at all, which is what stops one unit’s role from becoming tenant-wide authority. Governing these writes BEFORE the wiring landed was deliberate: it meant no above-ceiling role could be pre-planted and then silently become live on the day narrowing shipped.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
1
+ {"version":3,"file":"organization-unit-members.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-unit-members.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3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c,EAAE,UAAU;wBAC1B,kBAAkB,EAAE,uBAAuB;wBAC3C,oBAAoB,EAAE,eAAe;wBACrC,IAAI,EAAE,cAAc,CAAC,UAAU;qBAChC;oBACD,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,yCAAyC;YAClD,OAAO,EAAE,07BAA07B;YACn8B,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,wDAAwD,EAAE;aAC3G;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,0CAA0C,EAAE;gBAChG,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,uEAAuE,EAAE;aAC9H;YACD,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,+NAA+N;QAC/N,kBAAkB,cAAc,CAAC,SAAS,0IAA0I,cAAc,CAAC,SAAS,yBAAyB,cAAc,CAAC,WAAW,OAAO,cAAc,CAAC,UAAU,6BAA6B,cAAc,CAAC,SAAS,eAAe,cAAc,CAAC,UAAU,4EAA4E;QACxc,+YAA+Y;QAC/Y,2NAA2N;QAC3N,qOAAqO;QACrO,uLAAuL;QACvL,kWAAkW;QAClW,qYAAqY;QACrY,uyBAAuyB;KACxyB;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `organizationUnitMembers` — Wildo SaaS engine specification (backend-managed, org-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/organizations/organization-unit-members.shared.schemas.ts → `OrganizationUnitMemberSchema`\n * - Factory: engine/saas-models/src/organizations/organization-unit-members.shared.resources-config.schemas.ts\n * → `organizationUnitMemberResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (no engine `resourceUIBehavior` preset; unit assignment is administered through\n * the org-structure admin surface, which consumes this resource's API directly).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CORE_ORG_ROLES,\n CoreResourceOperation as Op,\n OrganizationUnitMemberSchema,\n ResourcePrimaryScope,\n organizationUnitMemberResourceConfiguration_InitializationFactory as organizationUnitMembersFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const organizationUnitMembersResourceSpecification = resourceSpecification(\n organizationUnitMembersFactory,\n OrganizationUnitMemberSchema,\n ({ schemaShape }) => ({\n purpose: 'Junction between an organization MEMBERSHIP and an organization UNIT: \"this member holds this role inside this unit of the org chart\".',\n 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).',\n 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.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationUnitMemberSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationUnitMemberResourceConfiguration_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_UNIT_MEMBERS',\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 // No `customEnum`: the factory is typed `Record<string, never>` for custom operations — this\n // resource exposes the five core verbs and nothing else.\n },\n notes: [\n // DF-1 evidence. Recorded so a later reader can tell a VERIFIED absence from an omission and\n // does not \"helpfully\" add an assignment-notification block the runtime never emits.\n 'Runtime has no `userNotifications` / `m2mNotifications` on any operation — do not add communications.* (DF-1). Unit assignment is evidenced through the audit trail (`organization_unit_member_role_changed` / `organization_unit_member_removed`), not through user-facing messaging.',\n ],\n },\n fields: {\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The tenant this assignment belongs to.',\n whyItMatters: 'Denormalized from the parent membership so tenant scoping and the contextual filter resolve on this row alone — an authorization-adjacent read must never depend on a join to establish which tenant a row belongs to.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationUnitId: schemaShape.organizationUnitId.foreignKeySpec({\n meaning: 'The org-chart node this assignment targets.',\n whyItMatters: 'Half of the business key, and the field a future unit-narrowed authorization read would filter on. Immutable: an edit may change what the assignment GRANTS, never what it is ABOUT.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationMemberId: schemaShape.organizationMemberId.foreignKeySpec({\n meaning: 'The organization MEMBERSHIP being assigned — deliberately the membership, not the user.',\n whyItMatters: 'A unit assignment presupposes membership of the owning organization, so the membership row is the semantic parent: it carries the tenant binding, and its deletion is exactly when the assignment stops meaning anything (hence the cascade). Pointing at `userId` instead would model a user as assignable to a unit of an organization they do not belong to.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n // `role` carries no field spec: it is `OrgRolesSchema`, a `z.union` of the core org-role enum\n // and an open app-defined string, and the spec decorators live on concrete Zod types\n // (`z.string()`, `z.enum()`, `z.array()`) rather than on a union. The members resource hits the\n // same limit and describes its element through `arraySpec` metadata for the same reason. The\n // field's meaning, its ceiling governance and its immutability are documented in\n // `businessConstraints` below instead of being silently dropped, and the API reference reads its\n // description from the schema's `.describe()` (#1625).\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Assign a member to an organization unit with a role.',\n 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.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The assignment was created and is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation, omits `organizationUnitId`, or names a unit that does not belong to the caller’s organization.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The role is not one the organization\\'s type offers (`availableOrgRoles`), or is a handler-only or delegated capability role. A unit role is an organization role narrowed to one unit, so it answers to the membership\\'s rule (#2607) — and the request would drop it anyway (#2606).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling (a principal cannot grant authority it does not hold).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The member already holds an assignment in that unit — the (membership, unit) pair is the business key.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is a relationship membership (a representative of another organization). Its unit scope belongs to its relationship, so a unit grant here would confer nothing; carries `RELATIONSHIP_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP` — change the scope through the relationship\\'s `amendScope`.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Assign a member as a manager of one delivery unit',\n request: {\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2…',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n response: {\n _id: 'unit_member_01HX2…',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2…',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Fetch one unit assignment.',\n outcome: 'The assignment row is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id in the caller’s organization.' },\n ],\n idempotent: true,\n variants: {\n default: {\n examples: [\n {\n title: 'Read a delivery-unit manager assignment',\n response: {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n context: {\n examples: [\n {\n title: 'Read a unit assignment with organization context',\n response: {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n organization: { _id: 'org_acme' },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Read the compact unit-assignment summary',\n response: {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List unit assignments, filterable by unit, membership, or role.',\n outcome: 'Who sits where in the org chart — the input to org-structure admin screens.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignments visible in the caller’s organization are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' },\n ],\n idempotent: true,\n variants: {\n default: {\n examples: [\n {\n title: 'List delivery-unit role assignments',\n response: {\n data: [\n {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n context: {\n examples: [\n {\n title: 'List unit assignments with organization context',\n response: {\n data: [\n {\n data: [\n {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n createdAt: '2026-06-14T12:00:00.000Z',\n updatedAt: '2026-06-14T12:00:00.000Z',\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n organization: { _id: 'org_acme' },\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'List compact unit-assignment summaries',\n response: {\n data: [\n {\n _id: 'unit_member_01HX2EXAMPLE',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2EXAMPLE',\n role: CORE_ORG_ROLES.ORG_MANAGER,\n },\n ],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Re-grade an existing assignment.',\n outcome: 'The member holds a different role inside the same unit, and an `organization_unit_member_role_changed` audit event records both the previous and the new role. Re-stating the role the assignment already carries changes no authority and emits nothing.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment was updated and is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The role is not one the organization\\'s type offers (`availableOrgRoles`), or is a handler-only or delegated capability role. A unit role is an organization role narrowed to one unit, so it answers to the membership\\'s rule (#2607) — and the request would drop it anyway (#2606).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The assignment belongs to a relationship membership, whose unit scope belongs to its relationship; carries `RELATIONSHIP_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Re-grade an existing unit assignment',\n request: { role: CORE_ORG_ROLES.ORG_MEMBER },\n response: {\n _id: 'unit_member_01HX2…',\n organizationId: 'org_acme',\n organizationUnitId: 'unit_product_delivery',\n organizationMemberId: 'member_01HX2…',\n role: CORE_ORG_ROLES.ORG_MEMBER,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Revoke a member’s assignment to a unit.',\n outcome: 'The assignment row is removed; the member keeps their organization-wide roles. An `organization_unit_member_removed` audit event records the revocation, carrying the role that was removed — the row is hard-deleted, so nothing else in the system can afterwards answer what authority was lost. It is classified as an AUTHORIZATION event rather than org-chart record-keeping because an assignment row exists only to confer a role, so deleting it IS the revocation; the trail would otherwise show unit privileges granted and never removed. Cascade removals — deleting the parent membership, or the whole organization — do not emit this event: those cascades run through the raw repository, below the service tier, and the auditable act there is losing the membership or the tenant. Deleting the UNIT is not one of those paths: it is refused while any assignment remains, so dismantling a unit necessarily goes through this operation and is fully evidenced.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment was removed; the body carries its `id`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id (or it was already removed).' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n '`role` is the role this member holds WITHIN this unit — a core org role token (`CORE_ORG_ROLES`) or an app-defined custom role string, the same open vocabulary as the organization-wide `roles` array on the membership row.',\n `Every WRITE is ${CORE_ORG_ROLES.ORG_ADMIN}-gated and additionally bounded by the role-ceiling gate: a principal may only grant a role its OWN organization-wide role confers. An ${CORE_ORG_ROLES.ORG_ADMIN} can therefore assign ${CORE_ORG_ROLES.ORG_MANAGER} or ${CORE_ORG_ROLES.ORG_MEMBER} inside a unit, but never ${CORE_ORG_ROLES.ORG_OWNER}. Reads are ${CORE_ORG_ROLES.ORG_MEMBER}-gated — who sits where is ordinary directory information inside a tenant.`,\n 'The ceiling derives from ORGANIZATION-WIDE grants only. That is load-bearing: if it counted unit grants, a member who is admin of one unit could grant themselves that role in every other unit and union up to organization-wide admin. This resource is also permanently barred from unit narrowing for the same reason — a resource that ISSUES authority must not be governed by the authority it issues.',\n 'CREATE validates that the target unit belongs to the caller’s organization. `organizationUnitId` is a caller-supplied FK, so without that check an org admin could bind their own member into another tenant’s org chart.',\n '`role` is the only mutable field; `organizationUnitId` and `organizationMemberId` are immutable. An edit may change what an assignment GRANTS, never what it is ABOUT — which keeps the business key the whole identity of the row.',\n 'The (membership, unit) business key makes \"one role per member per unit\" a persisted invariant. The embedded array this resource replaced admitted duplicates with no defined winner.',\n 'Deleting the owning membership or the organization cascades these rows away, so an assignment cannot outlive the membership that justified it. Deleting a UNIT does NOT cascade: that delete is refused while assignments remain, so an operator decides where the affected people belong rather than having roles silently dropped behind a single-node delete.',\n 'A relationship membership (a representative of another organization, present through a relationship) takes no unit assignment: its unit scope is the relationship\\'s `organizationUnitIds`, read by the per-request live filter, and a unit assignment on it would record a grant that confers nothing. CREATE and UPDATE refuse it with 409 `RELATIONSHIP_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.',\n '`role` IS an authorization axis as of 2026-08-01. Each assignment is emitted into the caller’s `initiatorRoles` as a NARROWED grant carrying its `organizationUnitId`, which every organization-wide consumer partitions out. On a resource that opted into unit narrowing, such a grant admits the member at the operation gate when no organization-wide role of theirs satisfies it, and then confines their reads and writes to that unit — plus its descendants where the unit declares downward inheritance. On every other resource the grant confers nothing at all, which is what stops one unit’s role from becoming tenant-wide authority. Governing these writes BEFORE the wiring landed was deliberate: it meant no above-ceiling role could be pre-planted and then silently become live on the day narrowing shipped.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
@@ -330,7 +330,7 @@ export const organizationUnitsResourceSpecification = resourceSpecificationFromF
330
330
  purpose: 'Remove an empty leaf node from the org tree; refused while the node still has child units or assigned members.',
331
331
  outcome: 'The unit row is deleted. A node with dependents is refused, so no subtree is stranded behind a dangling parent link and no member assignment outlives the unit it names.',
332
332
  responseStatuses: [
333
- { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The unit was deleted; no body is returned.' },
333
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The unit was deleted; the body carries its `id`.' },
334
334
  ],
335
335
  errorScenarios: [
336
336
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin role required to remove org tree nodes.' },
@@ -441,7 +441,7 @@ export const organizationUnitsResourceSpecification = resourceSpecificationFromF
441
441
  }), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS }), () => ({
442
442
  layout: {
443
443
  purpose: 'The organization\'s unit hierarchy (Settings → Organization units): departments, teams, regions and project groups.',
444
- headerPurpose: 'The READ identity line: the unit name, its `status` badge, and — for a unit a SCIM directory created — the `externalSource` badge, which is what tells an administrator that a rename made here will be reverted by the directory.',
444
+ headerPurpose: 'The READ header: the unit name on the title line, then on the facts line its `status` badge, and — for a unit a SCIM directory created — the `externalSource` badge, which is what tells an administrator that a rename made here will be reverted by the directory.',
445
445
  displayPurpose: 'READ is one flat list of rows and documents no section: `code`, `type`, `parentUnitId`, `inheritanceType` and `externalId`, each optional row hidden when empty. The materialized `path` is not shown — it is `parentUnitId` spelled as a chain of ids. Sub-units are composed below as this resource\'s own tab.',
446
446
  summaryPurpose: 'A unit card: the name as the title, then `status`, `type` and the directory badge as bare values.',
447
447
  editPurpose: 'One flat, stacked form: `name` focused first, `code` and `type` sharing a row, then `status`, `parentUnitId` (CREATE only — re-parenting is MOVE) and `inheritanceType`.',