@wildo-ai/saas-specifications 1.1.5 → 1.1.7

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 (677) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
  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 +14 -13
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
  6. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
  8. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
  10. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/index.js +34 -13
  12. package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
  14. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
  15. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
  16. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
  17. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
  18. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
  19. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
  21. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
  23. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
  25. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
  27. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
  29. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  30. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
  31. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
  33. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
  36. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  37. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
  38. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  40. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
  41. package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
  42. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
  43. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
  44. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
  46. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  51. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
  52. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  53. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
  54. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  55. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
  56. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  57. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
  58. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  59. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
  60. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
  61. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
  62. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
  63. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
  64. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
  65. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
  66. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
  67. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
  68. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
  69. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
  70. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
  71. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
  72. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
  73. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
  74. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
  75. package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
  76. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  77. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
  78. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  79. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
  80. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  81. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
  82. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
  84. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
  92. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  95. package/dist/esm/_core/index.d.ts +3 -0
  96. package/dist/esm/_core/index.d.ts.map +1 -1
  97. package/dist/esm/_core/index.js +3 -0
  98. package/dist/esm/_core/index.js.map +1 -1
  99. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
  100. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
  102. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  103. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  104. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
  105. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  106. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
  107. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
  109. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  110. package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
  111. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  112. package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
  113. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  114. package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
  115. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  116. package/dist/esm/_core/market/market-category.schemas.js +2 -2
  117. package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
  118. package/dist/esm/_core/market/market-channel.schemas.js +2 -2
  119. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  120. package/dist/esm/_core/market/market-gain.schemas.js +2 -2
  121. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  122. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-icp.schemas.js +2 -2
  124. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  125. package/dist/esm/_core/market/market-job.schemas.js +2 -2
  126. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  127. package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
  128. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  129. package/dist/esm/_core/market/market-objection.schemas.js +2 -2
  130. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  131. package/dist/esm/_core/market/market-pain.schemas.js +2 -2
  132. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  133. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-persona.schemas.js +2 -2
  135. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  136. package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
  137. package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
  138. package/dist/esm/_core/market/market-proof.schemas.js +2 -2
  139. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  140. package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
  141. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-references.schemas.js +6 -0
  143. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  144. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
  145. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
  146. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  147. package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
  148. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market.family-aspects.js +1 -1
  150. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  151. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
  153. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  154. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
  155. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
  157. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
  159. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  160. package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
  161. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/resource-specification.schemas.js +110 -24
  163. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
  165. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
  166. package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
  167. package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
  168. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
  169. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
  171. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  172. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
  173. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  174. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
  175. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  176. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
  177. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  178. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
  179. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  180. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
  181. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
  182. package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
  183. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
  184. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
  185. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
  186. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
  187. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
  188. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
  189. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  190. package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
  191. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
  193. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
  194. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
  195. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
  196. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
  197. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
  199. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  200. package/dist/esm/application-creation.exports.d.ts +7 -0
  201. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  202. package/dist/esm/application-creation.exports.js +7 -0
  203. package/dist/esm/application-creation.exports.js.map +1 -1
  204. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
  205. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
  206. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
  207. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
  208. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  209. package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
  210. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  211. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
  212. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  213. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
  214. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  215. package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
  216. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  217. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  218. package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
  219. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  220. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
  221. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
  223. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  225. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
  226. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  227. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
  228. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
  230. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  231. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
  233. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
  235. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
  237. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  238. package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
  239. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  240. package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
  241. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program.schemas.js +107 -14
  243. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  244. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  245. package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
  246. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  247. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  248. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
  249. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  250. package/dist/esm/assurance/governed-document-release.d.ts +7 -0
  251. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  252. package/dist/esm/assurance/governed-document-release.js +11 -2
  253. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  254. package/dist/esm/companion-exports.d.ts +6 -5
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
  258. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  259. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
  266. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
  269. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  271. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
  272. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  276. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
  277. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
  281. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
  283. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
  285. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
  287. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
  292. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
  295. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  297. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
  299. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
  302. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
  305. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
  308. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
  310. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  311. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
  312. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
  314. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
  316. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
  319. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
  321. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
  323. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  324. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
  325. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
  327. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
  330. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
  332. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
  334. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
  337. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
  339. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  340. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
  341. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  342. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
  343. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  344. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
  345. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  346. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
  347. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  348. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
  349. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
  351. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  352. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
  353. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  354. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
  355. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  356. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  357. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  358. package/dist/esm/engine/compliance/resources/index.js +1 -0
  359. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  360. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
  361. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
  362. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
  363. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
  364. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
  365. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
  366. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
  367. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
  368. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  369. package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
  370. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  371. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/errors/error-messages.specification.js +69 -0
  373. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  374. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
  375. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  376. package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
  377. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
  379. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
  380. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
  382. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  383. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
  386. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
  389. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
  391. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  392. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
  393. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
  394. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
  395. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
  396. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
  397. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
  399. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
  402. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
  404. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
  405. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
  406. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
  407. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
  408. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
  409. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
  410. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
  411. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
  412. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
  414. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
  419. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
  420. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
  421. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
  422. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
  423. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
  424. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
  430. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  433. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
  434. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  435. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  436. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  437. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
  438. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
  439. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
  440. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
  441. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  442. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
  444. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  445. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
  447. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
  448. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
  449. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  450. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  451. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/index.js +3 -0
  453. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  454. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
  455. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  456. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
  457. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
  458. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
  459. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
  460. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
  462. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  464. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  465. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
  467. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  468. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
  470. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  473. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
  474. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
  475. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
  476. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
  477. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
  478. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
  479. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
  480. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
  481. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
  482. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
  483. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
  484. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
  485. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
  486. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
  487. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
  488. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
  489. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
  490. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
  492. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
  494. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
  495. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
  496. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
  497. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
  499. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  500. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
  501. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
  502. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
  503. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
  504. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
  505. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
  507. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +2 -2
  509. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  510. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
  512. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
  514. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
  516. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
  518. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
  520. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
  521. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
  522. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
  523. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
  524. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
  525. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
  526. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
  528. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
  530. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  531. package/dist/esm/engine/notifications/resources/index.js +1 -0
  532. package/dist/esm/engine/notifications/resources/index.js.map +1 -1
  533. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
  534. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
  536. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  537. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
  539. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  540. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
  541. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
  543. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
  545. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
  546. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
  547. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
  548. package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
  549. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  550. package/dist/esm/engine/notifications/system-emails/index.js +4 -2
  551. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  552. package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
  553. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  554. package/dist/esm/engine/organizations/resources/index.js +2 -0
  555. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  556. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
  557. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
  559. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  560. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
  561. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  562. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
  563. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  564. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
  565. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
  567. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  568. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
  570. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
  573. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  574. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
  575. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
  577. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  578. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
  579. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
  580. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
  581. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
  582. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
  583. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
  584. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
  585. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
  586. package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
  587. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  588. package/dist/esm/engine/providers/github.provider.specification.js +1 -1
  589. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  590. package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
  591. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
  592. package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
  593. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
  594. package/dist/esm/engine/providers/google.provider.specification.js +1 -1
  595. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  596. package/dist/esm/engine/providers/index.d.ts +2 -0
  597. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  598. package/dist/esm/engine/providers/index.js +5 -1
  599. package/dist/esm/engine/providers/index.js.map +1 -1
  600. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
  602. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  603. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
  604. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
  605. package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
  606. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
  607. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
  609. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  610. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
  612. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  613. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
  614. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
  615. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
  616. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
  617. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
  618. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
  619. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
  620. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
  621. package/dist/esm/engine/roles/index.d.ts +13 -5
  622. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  623. package/dist/esm/engine/roles/index.js +19 -6
  624. package/dist/esm/engine/roles/index.js.map +1 -1
  625. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
  626. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
  628. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
  629. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
  630. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
  632. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
  633. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
  634. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
  635. package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
  636. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
  637. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  638. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  639. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  640. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  641. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
  642. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  643. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
  644. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  645. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  646. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  647. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
  648. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  649. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
  650. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  651. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
  652. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  653. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
  654. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
  656. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  657. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
  658. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  659. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
  660. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
  662. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  663. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
  664. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  665. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
  667. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  668. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
  669. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
  671. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  672. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  673. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
  674. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  675. package/dist/tsconfig.build.tsbuildinfo +1 -1
  676. package/package.json +8 -8
  677. package/dist/assurance/external-framework-mapping.json +0 -1228
@@ -3,16 +3,18 @@ import { authenticationSystemEmailTemplateSpecifications } from './authenticatio
3
3
  import { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification.js';
4
4
  import { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification.js';
5
5
  import { subscriptionSystemEmailTemplateSpecifications } from './subscription.system-emails.specification.js';
6
+ import { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification.js';
6
7
  export * from './authentication.system-emails.specification.js';
7
8
  export * from './organization.system-emails.specification.js';
8
9
  export * from './security.system-emails.specification.js';
9
10
  export * from './subscription.system-emails.specification.js';
11
+ export * from './human-decision.system-emails.specification.js';
10
12
  /**
11
- * Framework-owned keyed map of all 12 system email template specifications.
13
+ * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.
12
14
  *
13
15
  * Applications can merge their own additions into this map when extending the
14
16
  * system email-template surface, but the engine already provides a complete
15
17
  * baseline keyed by `SystemEmailTemplateRef.*`.
16
18
  */
17
- export const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(...authenticationSystemEmailTemplateSpecifications, ...organizationSystemEmailTemplateSpecifications, ...subscriptionSystemEmailTemplateSpecifications, ...securitySystemEmailTemplateSpecifications);
19
+ export const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(...authenticationSystemEmailTemplateSpecifications, ...organizationSystemEmailTemplateSpecifications, ...subscriptionSystemEmailTemplateSpecifications, ...securitySystemEmailTemplateSpecifications, ...humanDecisionSystemEmailTemplateSpecifications);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,+CAA+C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAE3G,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,wCAAwC,CAC7F,GAAG,+CAA+C,EAClD,GAAG,6CAA6C,EAChD,GAAG,6CAA6C,EAChD,GAAG,yCAAyC,CAC7C,CAAC","sourcesContent":["import { buildSystemEmailTemplateSpecificationMap } from '~wildo-specifications/_core';\nimport { authenticationSystemEmailTemplateSpecifications } from './authentication.system-emails.specification';\nimport { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification';\nimport { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification';\nimport { subscriptionSystemEmailTemplateSpecifications } from './subscription.system-emails.specification';\n\nexport * from './authentication.system-emails.specification';\nexport * from './organization.system-emails.specification';\nexport * from './security.system-emails.specification';\nexport * from './subscription.system-emails.specification';\n\n/**\n * Framework-owned keyed map of all 12 system email template specifications.\n *\n * Applications can merge their own additions into this map when extending the\n * system email-template surface, but the engine already provides a complete\n * baseline keyed by `SystemEmailTemplateRef.*`.\n */\nexport const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(\n ...authenticationSystemEmailTemplateSpecifications,\n ...organizationSystemEmailTemplateSpecifications,\n ...subscriptionSystemEmailTemplateSpecifications,\n ...securitySystemEmailTemplateSpecifications,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,+CAA+C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,8CAA8C,EAAE,MAAM,8CAA8C,CAAC;AAE9G,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,wCAAwC,CAC7F,GAAG,+CAA+C,EAClD,GAAG,6CAA6C,EAChD,GAAG,6CAA6C,EAChD,GAAG,yCAAyC,EAC5C,GAAG,8CAA8C,CAClD,CAAC","sourcesContent":["import { buildSystemEmailTemplateSpecificationMap } from '~wildo-specifications/_core';\nimport { authenticationSystemEmailTemplateSpecifications } from './authentication.system-emails.specification';\nimport { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification';\nimport { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification';\nimport { subscriptionSystemEmailTemplateSpecifications } from './subscription.system-emails.specification';\nimport { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification';\n\nexport * from './authentication.system-emails.specification';\nexport * from './organization.system-emails.specification';\nexport * from './security.system-emails.specification';\nexport * from './subscription.system-emails.specification';\nexport * from './human-decision.system-emails.specification';\n\n/**\n * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.\n *\n * Applications can merge their own additions into this map when extending the\n * system email-template surface, but the engine already provides a complete\n * baseline keyed by `SystemEmailTemplateRef.*`.\n */\nexport const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(\n ...authenticationSystemEmailTemplateSpecifications,\n ...organizationSystemEmailTemplateSpecifications,\n ...subscriptionSystemEmailTemplateSpecifications,\n ...securitySystemEmailTemplateSpecifications,\n ...humanDecisionSystemEmailTemplateSpecifications,\n);\n"]}
@@ -5,4 +5,6 @@ export * from './organization-preferences.resource.specification';
5
5
  export * from './organization-profiles.resource.specification';
6
6
  export * from './organization-units.resource.specification';
7
7
  export * from './organizations.resource.specification';
8
+ export * from './service-provider-relationships.resource.specification';
9
+ export * from './service-provider-activity-feed.resource.specification';
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC"}
@@ -5,4 +5,6 @@ export * from './organization-preferences.resource.specification.js';
5
5
  export * from './organization-profiles.resource.specification.js';
6
6
  export * from './organization-units.resource.specification.js';
7
7
  export * from './organizations.resource.specification.js';
8
+ export * from './service-provider-relationships.resource.specification.js';
9
+ export * from './service-provider-activity-feed.resource.specification.js';
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC","sourcesContent":["export * from './organization-members.resource.specification';\nexport * from './organization-unit-members.resource.specification';\nexport * from './organization-notifications.resource.specification';\nexport * from './organization-preferences.resource.specification';\nexport * from './organization-profiles.resource.specification';\nexport * from './organization-units.resource.specification';\nexport * from './organizations.resource.specification';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC","sourcesContent":["export * from './organization-members.resource.specification';\nexport * from './organization-unit-members.resource.specification';\nexport * from './organization-notifications.resource.specification';\nexport * from './organization-preferences.resource.specification';\nexport * from './organization-profiles.resource.specification';\nexport * from './organization-units.resource.specification';\nexport * from './organizations.resource.specification';\nexport * from './service-provider-relationships.resource.specification';\nexport * from './service-provider-activity-feed.resource.specification';\n"]}
@@ -10,6 +10,9 @@ export declare const organizationMembersResourceSpecification: import("../../../
10
10
  userTitle: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>;
11
11
  invitedByUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>;
12
12
  invitedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDate>>>>;
13
+ serviceProviderRelationshipId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>>>;
14
+ providerOrganizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>>>;
15
+ providerOrganizationName: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>;
13
16
  instanceLabel: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>;
14
17
  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>>>>>;
15
18
  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>>>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"organization-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-members.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAI3B,wBAAwB,EACxB,8BAA8B,EAG/B,MAAM,uBAAuB,CAAC;AAyD/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;kCAgcpD,CAAC"}
1
+ {"version":3,"file":"organization-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-members.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAI3B,wBAAwB,EACxB,8BAA8B,EAG/B,MAAM,uBAAuB,CAAC;AAyD/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;kCA4dpD,CAAC"}
@@ -128,10 +128,29 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
128
128
  [OrganizationMemberStatus.SUSPENDED]: { meaning: 'Access blocked in-org while record remains.' },
129
129
  },
130
130
  }),
131
+ serviceProviderRelationshipId: schemaShape.serviceProviderRelationshipId.stringSpec({
132
+ meaning: 'Present only on a PROVIDER membership: the service-provider relationship through which a service firm\'s expert is present in this organization.',
133
+ whyItMatters: 'It changes what the row means everywhere. The membership confers authority only while that relationship passes the per-request live filter (active, within its term, its role still offered by the declaration, the expert still an active member of the firm and assigned to it); its `roles` are owned by the relationship and cannot be edited here; it never counts toward the owner floor and cannot receive ownership; it grants no user type; and it is not part of the organization\'s SCIM directory. System-written only by the relationship verbs: `assign` creates or re-points it, `amendScope` keeps its `roles` equal to the relationship\'s role, and `unassign` or the relationship ending makes an ACTIVE one INACTIVE. The row keeps the (user, organization) key after the relationship or assignment ends (INACTIVE), so inviting that person as the organization\'s own member is refused with `SERVICE_PROVIDER_MEMBERSHIP_CONFLICTS_WITH_INVITATION` until the ended membership is removed. A provider membership the organization SUSPENDS stays suspended when the firm unassigns the person or the relationship ends, and the firm cannot re-assign them (`SERVICE_PROVIDER_EXPERT_SUSPENDED_BY_CLIENT`) until the organization reactivates it. Reactivating a provider membership (by hand or by the reactivation sweep) restores ACTIVE only while its relationship has not ended (ACTIVE or SUSPENDED) and the person is still assigned; otherwise it lands INACTIVE, and a later assignment re-points it. Whether an ACTIVE row confers is the live filter\'s decision on each request. Deleting a provider membership ends the firm\'s assignment of that person in the same transaction; it does not stop the firm assigning them again under the relationship — suspension is the organization\'s bar against one person.',
134
+ }),
135
+ providerOrganizationId: schemaShape.providerOrganizationId.stringSpec({
136
+ meaning: 'Present only on a PROVIDER membership: the service firm whose expert holds it.',
137
+ whyItMatters: 'The live filter requires the expert to hold an active, ordinary membership in this organization, and the organization to still confer authority — a firm that deprovisions its expert ends their reach into every client on the next request.',
138
+ }),
139
+ providerOrganizationName: schemaShape.providerOrganizationName.stringSpec({
140
+ meaning: 'Present only on a PROVIDER membership: the firm\'s name, copied from its relationship when the expert was assigned — what the directory shows as "via {Firm}".',
141
+ whyItMatters: 'A client can never read the firm\'s organization row, which lives in another tenant, so without this snapshot the directory could name the firm only by an opaque id. It is display only and decides nothing.',
142
+ }),
131
143
  scheduledReactivationAt: schemaShape.scheduledReactivationAt.dateSpec({
132
- meaning: 'When an automated sweep returns this membership to ACTIVE. Set by SUSPEND when the caller time-boxes the suspension (its request contract calls this `suspensionEndDate`), cleared by REACTIVATE. Absent means the suspension is indefinite and only an explicit REACTIVATE lifts it — the default, since an unbounded suspension is the safer reading of “suspend”.',
144
+ meaning: 'When an automated sweep lifts this suspension by dispatching REACTIVATE — to ACTIVE, or to INACTIVE for a service-provider membership whose relationship has ended or whose person is no longer assigned. Set by SUSPEND when the caller time-boxes the suspension (its request contract calls this `suspensionEndDate`), cleared by REACTIVATE. Absent means the suspension is indefinite and only an explicit REACTIVATE lifts it — the default, since an unbounded suspension is the safer reading of “suspend”.',
133
145
  whyItMatters: 'Named for the effect rather than the cause so the identical field on `USERS` — which serves both admin suspension and voluntary self-deactivation — carries the same name and the reactivation sweep queries one field everywhere. Server-owned: only the transition operations write it, exactly as for `status`.',
134
146
  }),
147
+ invitedByUserId: schemaShape.invitedByUserId.stringSpec({
148
+ meaning: 'The user who sent the invitation this membership started from. Set by the application; absent when the member was added directly or provisioned by the system.',
149
+ whyItMatters: 'A record of who invited the member, not a link the API follows: the membership\'s user is `userId`.',
150
+ }),
151
+ invitedAt: schemaShape.invitedAt.dateSpec({
152
+ meaning: 'When the invitation was sent. Set by the application and never changed; absent when the member was not invited. Pending invitations expire relative to it.',
153
+ }),
135
154
  },
136
155
  operations: {
137
156
  [Op.COUNT]: {
@@ -157,8 +176,8 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
157
176
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'A membership record was created linking the user to the organization with its initial roles, and the new record is returned.' },
158
177
  ],
159
178
  errorScenarios: [
160
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The user reference, roles, or title fail schema validation.', errorCode: 'VALIDATION_FAILED' },
161
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to provision members.' },
179
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The user reference, roles, or title fail schema validation.' },
180
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\'s expert the organization lent `INVITE_MEMBERS` through a live capability grant (#1631), or asks for a role above its own ceiling (`role_ceiling_exceeded`) — a delegated capability role is never grantable, and an expert\'s ceiling is its own provider role.' },
162
181
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The user already holds a membership in this organization.' },
163
182
  ],
164
183
  idempotent: false,
@@ -278,7 +297,7 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
278
297
  { code: HttpResponseStatusCode.OK_200, meaning: 'The membership’s title/org-unit/roles were updated and the new state is returned.' },
279
298
  ],
280
299
  errorScenarios: [
281
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited title, org-unit, or role set fails schema validation.', errorCode: 'VALIDATION_FAILED' },
300
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited title, org-unit, or role set fails schema validation.' },
282
301
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },
283
302
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to edit memberships.' },
284
303
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The edit would remove the LAST administratively usable owner of the organization — either by rewriting `roles` so they no longer confer `ORG_OWNER` (directly or by inheritance), or by moving the membership `status` out of ACTIVE (the only status whose roles reach `initiatorRoles`). Grant an owner role to another active member first. Not a 403: the caller IS authorized — the current state of the organization forbids it. No TENANT authority lifts this floor; a platform administrator can repair an already-stranded organization through `grantOwnership`, which is the only cross-tenant variant this resource declares. An owner counts only when the membership is ACTIVE AND the linked user is ACTIVE; organizations in a terminal state (CANCELLED, DELETED, soft-deleted) are not protected.' },
@@ -298,13 +317,14 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
298
317
  },
299
318
  [Op.DELETE]: {
300
319
  purpose: 'Remove an accepted member from the organization. Use REVOKE instead for a still-pending invitation.',
301
- outcome: 'The membership and its organization-unit assignments are removed, organization-scoped access ends, and the withdrawn roles and unit grants are recorded in the audit trail.',
320
+ outcome: 'The membership and its organization-unit assignments are removed, organization-scoped access ends, and the withdrawn roles and unit grants are recorded in the audit trail. For a service-provider membership, the firm\'s active assignment of that person to the relationship ends in the same transaction and is recorded as an unassignment.',
302
321
  responseStatuses: [
303
322
  { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The membership record was removed; no body is returned.' },
304
323
  ],
305
324
  errorScenarios: [
306
325
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id (or it was already removed).' },
307
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to remove members.' },
326
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\'s expert the organization lent `MANAGE_RELATIONSHIP_EXPERTS` through a live capability grant (#1631).' },
327
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller holds `MANAGE_RELATIONSHIP_EXPERTS` (a capability a client lends a service firm, #1631) and the target is not an expert of the SAME relationship it serves the organization through — an ordinary member, another firm\'s expert, or an expert of another of its relationships. Carries `code: SERVICE_PROVIDER_CAPABILITY_TARGET_OUTSIDE_RELATIONSHIP`.' },
308
328
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target is the LAST administratively usable owner of the organization. Destroying the row that holds the last tenant authority strands the organization exactly as demoting it would, so it is refused on the same terms — grant an owner role to another active member first. Also returned when the membership snapshot cannot be read, since the floor must not assume an unreadable row is not the last owner.' },
309
329
  ],
310
330
  idempotent: true,
@@ -326,14 +346,15 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
326
346
  [OrganizationMembers_Operations.SUSPEND]: {
327
347
  operationId: OrganizationMembers_Operations.SUSPEND,
328
348
  purpose: 'Temporarily block access without deleting the membership record.',
329
- outcome: 'The membership becomes SUSPENDED and no longer grants organization access. If `suspensionEndDate` is supplied, it is exposed as `scheduledReactivationAt` and the membership is reactivated after that instant; otherwise an administrator must reactivate it explicitly.',
349
+ outcome: 'The membership becomes SUSPENDED and no longer grants organization access. If `suspensionEndDate` is supplied, it is exposed as `scheduledReactivationAt` and the membership is reactivated after that instant; otherwise an administrator must reactivate it explicitly. The suspended member is emailed about it, even with email notifications turned off, and the organization\'s other active members, apart from the administrator who suspended it, are notified.',
330
350
  whenToUse: 'Use for temporary security or policy holds where the membership history must remain available. The last usable organization owner cannot be suspended.',
331
351
  responseStatuses: [
332
352
  { code: HttpResponseStatusCode.OK_200, meaning: 'The membership transitioned to suspended and the updated record is returned.' },
333
353
  ],
334
354
  errorScenarios: [
335
355
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },
336
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to suspend members.' },
356
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\'s expert the organization lent `MANAGE_RELATIONSHIP_EXPERTS` through a live capability grant (#1631).' },
357
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller holds `MANAGE_RELATIONSHIP_EXPERTS` (a capability a client lends a service firm, #1631) and the target is not an expert of the SAME relationship it serves the organization through — an ordinary member, another firm\'s expert, or an expert of another of its relationships. Carries `code: SERVICE_PROVIDER_CAPABILITY_TARGET_OUTSIDE_RELATIONSHIP`.' },
337
358
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is not currently ACTIVE.' },
338
359
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is not ACTIVE, so this is not a legal transition — an INVITED row has not accepted yet (cancel it with REVOKE, which also revokes the accept token) and an INACTIVE or already-SUSPENDED one is already out. Carries `resource_status_transition_conflict`, whose context names the current status, the target status and the permitted source statuses, so a client can re-read and show the real state rather than treating it as an opaque clash. Most callers meet the earlier `enabledCondition` gate (403) instead; this reference covers the paths that gate does not reach.' },
339
360
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target is the organization’s LAST administratively usable owner (an ACTIVE membership holding a role that confers `ORG_OWNER`, directly or by inheritance, whose linked user is also ACTIVE). Suspending it leaves the organization with no principal able to administer it, so the tenant cannot administer itself afterwards. Grant an owner role to another active member first. Recovery is not impossible \u2014 a platform administrator holds `grantOwnership` \u2014 but it is an out-of-tenant escalation, which is why the in-tenant refusal stands. Not a 403: the caller IS authorized; the current state of the organization forbids it. Carries the stable client-branchable `code: LAST_ORGANIZATION_OWNER` — a DIFFERENT code from the application floor, because the remedy is scoped to this organization.' },
@@ -358,13 +379,13 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
358
379
  [OrganizationMembers_Operations.REACTIVATE]: {
359
380
  operationId: OrganizationMembers_Operations.REACTIVATE,
360
381
  purpose: 'Restore access for a currently suspended organization member.',
361
- outcome: 'The membership becomes ACTIVE with its existing roles and any scheduled reactivation deadline is cleared.',
382
+ outcome: 'The membership becomes ACTIVE with its existing roles and any scheduled reactivation deadline is cleared. A service-provider membership becomes ACTIVE only while its relationship is still live (accepted and not ended — a suspended relationship counts) and the person is still assigned to it; otherwise it becomes INACTIVE, the state the relationship\'s end or the unassignment would have given it, and a later assignment re-points it. An ACTIVE provider row confers authority only while the relationship does — the per-request live filter decides that. When the membership comes back ACTIVE, the member is emailed, even with email notifications turned off and also when the scheduled sweep lifted the suspension. The organization\'s other active members are notified as well, leaving out the administrator who acted and the member themself (who has their own notice); a reactivation by the scheduled sweep is announced to the membership\'s organization the same way. A row that lands INACTIVE notifies nobody.',
362
383
  responseStatuses: [
363
384
  { code: HttpResponseStatusCode.OK_200, meaning: 'The suspended membership transitioned back to active and the updated record is returned.' },
364
385
  ],
365
386
  errorScenarios: [
366
387
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },
367
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to reactivate members.' },
388
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to reactivate members. Deliberately NOT opened to `MANAGE_RELATIONSHIP_EXPERTS` (#1631): a suspension is the organization\'s bar against one person, which a service firm may never lift, even for its own expert.' },
368
389
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is not currently SUSPENDED.' },
369
390
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is not SUSPENDED, so there is nothing to reactivate — notably an INVITED row is refused here rather than being silently promoted, which would grant a membership nobody accepted. Carries `resource_status_transition_conflict` with the current and permitted statuses in its context.' },
370
391
  ],
@@ -390,7 +411,7 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
390
411
  ],
391
412
  errorScenarios: [
392
413
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },
393
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to revoke invitations.' },
414
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\'s expert the organization lent `INVITE_MEMBERS` through a live capability grant (#1631).' },
394
415
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is no longer INVITED.' },
395
416
  ],
396
417
  idempotent: false,
@@ -438,7 +459,7 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
438
459
  ],
439
460
  errorScenarios: [
440
461
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },
441
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to resend invitations.' },
462
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\'s expert the organization lent `INVITE_MEMBERS` through a live capability grant (#1631).' },
442
463
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is no longer INVITED.' },
443
464
  ],
444
465
  idempotent: false,
@@ -461,6 +482,13 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
461
482
  'Member SEARCH matches on `userEmail` (a denormalized own field) and on the linked user’s first/last name. The name match is RELATIONAL: the framework runs a secondary search on `USER_PROFILES` and intersects on `userId` — names are read live (never stale) and are not denormalized onto the member row. The result stays scoped to the caller’s organization.',
462
483
  ],
463
484
  }), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS }), () => ({
485
+ layout: {
486
+ purpose: 'The organization member directory (Settings → Members): who belongs, with which roles, in which state.',
487
+ headerPurpose: 'The READ identity line: the member\'s name (the forwarded `instanceLabel`, else the membership\'s `userEmail`) and the `status` badge beside it. Neither repeats in the body.',
488
+ displayPurpose: 'READ is one flat list of rows and documents no section: `roles`, then `userTitle` and `providerOrganizationName` when set (both hide when empty), then `createdAt`. Unit assignments are the ORGANIZATION_UNIT_MEMBERS resource, composed below as its own tab.',
489
+ summaryPurpose: 'A member card: the resolved member name as the title, then `status`, `roles` and the service firm as bare values. The two provider identifiers are hidden from display, so they are not directory columns; `providerOrganizationName` is their readable form.',
490
+ editPurpose: 'One flat form, no section: the invitee `userEmail` first and focused (CREATE only), then `roles` and `userTitle`. `status` is owned by SUSPEND / REACTIVATE / REVOKE and never appears on a form.',
491
+ },
464
492
  views: {
465
493
  [Op.COUNT]: { purpose: 'Header metrics and cap enforcement surfaces.', whenToUse: 'Dashboards, billing seat counts, and upgrade prompts.' },
466
494
  [Op.CREATE]: { purpose: 'Invite (writes an INVITED row + emails an accept link) or direct-add flows in org admin UIs.', whenToUse: 'Inviting a teammate by email, onboarding, and bulk import.' },
@@ -1 +1 @@
1
- {"version":3,"file":"organization-members.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-members.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,IAAI,mCAAmC,EAAE,MAAM,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pN,sFAAsF;QACtF,kFAAkF;QAClF,8FAA8F;QAC9F,2FAA2F;QAC3F,sGAAsG;QACtG,2EAA2E;QAC3E,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,0DAA0D,EAAE,SAAS,EAAE,mEAAmE,EAAE;KACjM;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationMembersMainResourceUIBehavior as organizationMembersUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AdministrativeContinuityErrorCode,\n CORE_ORG_ROLES,\n CoreResourceOperation as Op,\n ErrorSeverity,\n ErrorType,\n OrganizationMemberSchema,\n OrganizationMemberStatus,\n OrganizationMembers_Operations,\n ResourcePrimaryScope,\n organizationMembersResourceConfiguration_InitializationFactory as organizationMembersFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationMembersFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationMembersResourceUIBehavior = organizationMembersUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst ORGANIZATION_MEMBER_EXAMPLE = {\n _id: 'organization_member_01HX2EXAMPLE',\n userId: 'user_01HX2EXAMPLE',\n userEmail: 'alex.morgan@example.com',\n organizationId: 'organization_01HX2EXAMPLE',\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n status: OrganizationMemberStatus.ACTIVE,\n userTitle: 'Staff Engineer',\n instanceLabel: 'Alex Morgan',\n createdAt: '2026-07-03T09:15:00.000Z',\n updatedAt: '2026-08-18T08:00:00.000Z',\n _version: 4,\n} as const;\n\nconst ORGANIZATION_MEMBER_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_MEMBER_EXAMPLE._id,\n userId: ORGANIZATION_MEMBER_EXAMPLE.userId,\n userEmail: ORGANIZATION_MEMBER_EXAMPLE.userEmail,\n organizationId: ORGANIZATION_MEMBER_EXAMPLE.organizationId,\n roles: ORGANIZATION_MEMBER_EXAMPLE.roles,\n status: ORGANIZATION_MEMBER_EXAMPLE.status,\n userTitle: ORGANIZATION_MEMBER_EXAMPLE.userTitle,\n instanceLabel: ORGANIZATION_MEMBER_EXAMPLE.instanceLabel,\n _version: ORGANIZATION_MEMBER_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_MEMBER_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n user: { _id: ORGANIZATION_MEMBER_EXAMPLE.userId },\n organization: { _id: ORGANIZATION_MEMBER_EXAMPLE.organizationId },\n} as const;\n\nfunction organizationMembersPage<T>(data: readonly T[]) {\n return {\n data,\n pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 },\n };\n}\n\nconst ORGANIZATION_MEMBERS_PAGE_REQUEST = { page: 1, limit: 20, sort: 'createdAt:desc' } as const;\n\nexport const organizationMembersResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationMembersResourceUIBehavior),\n resourceSpecification(\n organizationMembersFactory,\n OrganizationMemberSchema,\n ({ schemaShape }) => ({\n purpose: 'Represents one person’s membership in an organization, including their organization roles, directory title, and current access state.',\n businessRole: 'Use this resource to browse the organization directory and to manage invitations, membership access, and organization-level authority.',\n lifecycleRole: 'A membership begins as a pending invitation or an active provisioned membership, can be updated or suspended, and ends when the invitation is revoked or the member is removed.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationMemberSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationMembersResourceConfiguration_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_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 customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationMembers_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationMembersMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The `USERS` identity this membership grants organization access to — the junction’s subject party.',\n whyItMatters: 'A membership row is a link with no inherent identity; this FK is what a name/email resolves against (via `USER_PROFILES`) and, together with `organizationId`, forms the database-enforced business key that prevents duplicate memberships.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Org-wide roles granted to this member — the authority set every access check evaluates for the user within this organization.',\n elementMeaning: 'One role identifier — a core org role token (`CORE_ORG_ROLES`) or an app-defined custom role string.',\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CORE_ORG_ROLES',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n userTitle: schemaShape.userTitle.stringSpec({ meaning: 'Authored job title / role label for the member (e.g. “Engineering Lead”). Distinct from the directory record label — that is the linked user’s name (see `instanceLabel`).' }),\n instanceLabel: schemaShape.instanceLabel.stringSpec({ meaning: 'Computed directory label for the membership — the linked user’s name, forwarded live from `USER_PROFILES` (joining on `userId`, rendering first/last name) and resolved SERVER-SIDE at read time via the virtual-field pipeline. A junction record has no inherent name; this gives it one without denormalizing the mutable name (never stale, tenant-safe, not persisted). The frontend uses it directly as `getFrontendResourceLabel`; it falls back to the immutable `userEmail` when the profile is unavailable.' }),\n userEmail: schemaShape.userEmail.stringSpec({ meaning: 'Denormalized, immutable copy of the linked user’s email captured at membership creation. Two roles: the OWN-FIELD half of member search (first/last name are searched relationally through `USER_PROFILES`, never denormalized), and the secondary label fallback behind the server-resolved `instanceLabel`. The live email lives on `USERS`; this copy is display-hidden and never client-writable.' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Membership lifecycle and access posture in this org.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationMemberStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationMemberStatus.INVITED]: { meaning: 'A pending invitation — the membership was extended (via CREATE) but the invitee has not accepted yet. Carries a single-use accept link. Flips to ACTIVE on acceptance; the record is DELETED on decline/revoke (no terminal \"rejected\" status — the invite IS the membership in this pending state).' },\n [OrganizationMemberStatus.ACTIVE]: { meaning: 'Can participate as roles allow.' },\n [OrganizationMemberStatus.INACTIVE]: { meaning: 'Record retained but not participating.' },\n [OrganizationMemberStatus.SUSPENDED]: { meaning: 'Access blocked in-org while record remains.' },\n },\n }),\n scheduledReactivationAt: schemaShape.scheduledReactivationAt.dateSpec({\n meaning: 'When an automated sweep returns this membership to ACTIVE. Set by SUSPEND when the caller time-boxes the suspension (its request contract calls this `suspensionEndDate`), cleared by REACTIVATE. Absent means the suspension is indefinite and only an explicit REACTIVATE lifts it — the default, since an unbounded suspension is the safer reading of “suspend”.',\n whyItMatters: 'Named for the effect rather than the cause so the identical field on `USERS` — which serves both admin suspension and voluntary self-deactivation — carries the same name and the reactivation sweep queries one field everywhere. Server-owned: only the transition operations write it, exactly as for `status`.',\n }),\n },\n operations: {\n [Op.COUNT]: {\n purpose: 'Return the total number of memberships visible in the selected organization or relationship scope.',\n outcome: 'A single non-negative membership count is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The current membership count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to read the membership count.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Count organization memberships',\n response: { count: 37 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Invite a person by email, or provision an existing user through a user-linked relationship route. Email invitations create an INVITED membership; direct provisioning creates an ACTIVE membership.',\n outcome: 'The membership is created with its initial organization roles. An invitation sends one single-use acceptance link; direct provisioning sends no acceptance link. The resolved role grant is recorded in the audit trail.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A membership record was created linking the user to the organization with its initial roles, and the new record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The user reference, roles, or title fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to provision members.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The user already holds a membership in this organization.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Invite a member by email with an initial title',\n request: {\n userEmail: 'new.lead@acme.com',\n userTitle: 'Engineering Lead',\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n userEmail: 'new.lead@acme.com',\n userTitle: 'Engineering Lead',\n status: OrganizationMemberStatus.INVITED,\n invitedByUserId: 'user_admin_01HX2EXAMPLE',\n invitedAt: '2026-08-18T08:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Retrieve one membership by its route identity.',\n outcome: 'The member’s organization roles, lifecycle state, directory title, and public identifiers are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The membership was found and its roles, title, state, and public identifiers are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to read the membership directory.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect an active organization member',\n response: ORGANIZATION_MEMBER_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a member with relationship identifiers',\n response: ORGANIZATION_MEMBER_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact member summary',\n response: ORGANIZATION_MEMBER_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Browse the organization membership directory as a paginated collection.',\n outcome: 'A page of memberships and pagination metadata is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of membership records for the organization directory.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to browse the membership directory.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse organization members',\n request: ORGANIZATION_MEMBERS_PAGE_REQUEST,\n response: organizationMembersPage([ORGANIZATION_MEMBER_EXAMPLE]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse members with relationship identifiers',\n request: ORGANIZATION_MEMBERS_PAGE_REQUEST,\n response: organizationMembersPage([{\n ...ORGANIZATION_MEMBER_EXAMPLE,\n user: { _id: ORGANIZATION_MEMBER_EXAMPLE.userId },\n organization: { _id: ORGANIZATION_MEMBER_EXAMPLE.organizationId },\n }]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact member summaries',\n request: ORGANIZATION_MEMBERS_PAGE_REQUEST,\n response: organizationMembersPage([ORGANIZATION_MEMBER_SUMMARY_EXAMPLE]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Searchable member roster — matches on the member’s email (own field) and, through the linked user profile, on first/last name.',\n outcome: 'Org members matching the query by email or name, for people pickers and large-roster look-ups.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of members whose email, or whose linked profile’s first/last name, matches the search query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to search the membership directory.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find active members by email or name',\n request: { q: 'alex', status: OrganizationMemberStatus.ACTIVE, page: 1, limit: 20, sort: 'status:asc' },\n response: organizationMembersPage([ORGANIZATION_MEMBER_EXAMPLE]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.UPDATE]: {\n purpose: 'Update a member’s directory title or organization roles. This is the only API operation used to change a membership’s role set.',\n outcome: 'The updated membership is returned. Role changes take effect for subsequent authorization decisions and emit a dedicated authorization audit event with the previous and resulting role sets.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The membership’s title/org-unit/roles were updated and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited title, org-unit, or role set fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to edit memberships.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The edit would remove the LAST administratively usable owner of the organization — either by rewriting `roles` so they no longer confer `ORG_OWNER` (directly or by inheritance), or by moving the membership `status` out of ACTIVE (the only status whose roles reach `initiatorRoles`). Grant an owner role to another active member first. Not a 403: the caller IS authorized — the current state of the organization forbids it. No TENANT authority lifts this floor; a platform administrator can repair an already-stranded organization through `grantOwnership`, which is the only cross-tenant variant this resource declares. An owner counts only when the membership is ACTIVE AND the linked user is ACTIVE; organizations in a terminal state (CANCELLED, DELETED, soft-deleted) are not protected.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Update a member’s directory title without changing authority',\n request: { userTitle: 'Staff Engineer' },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n userTitle: 'Staff Engineer',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove an accepted member from the organization. Use REVOKE instead for a still-pending invitation.',\n outcome: 'The membership and its organization-unit assignments are removed, organization-scoped access ends, and the withdrawn roles and unit grants are recorded in the audit trail.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The membership record was removed; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id (or it was already removed).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to remove members.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target is the LAST administratively usable owner of the organization. Destroying the row that holds the last tenant authority strands the organization exactly as demoting it would, so it is refused on the same terms — grant an owner role to another active member first. Also returned when the membership snapshot cannot be read, since the floor must not assume an unreadable row is not the last owner.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Refuse removal of the last usable organization owner',\n response: {\n error: {\n type: ErrorType.CONFLICT,\n severity: ErrorSeverity.MEDIUM,\n message: 'Resource conflict detected',\n customMessage: 'Grant ownership to another active member before removing this member.',\n code: AdministrativeContinuityErrorCode.LAST_ORGANIZATION_OWNER,\n timestamp: '2026-08-18T08:00:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.CONFLICT_409,\n }],\n },\n [OrganizationMembers_Operations.SUSPEND]: {\n operationId: OrganizationMembers_Operations.SUSPEND,\n purpose: 'Temporarily block access without deleting the membership record.',\n outcome: 'The membership becomes SUSPENDED and no longer grants organization access. If `suspensionEndDate` is supplied, it is exposed as `scheduledReactivationAt` and the membership is reactivated after that instant; otherwise an administrator must reactivate it explicitly.',\n whenToUse: 'Use for temporary security or policy holds where the membership history must remain available. The last usable organization owner cannot be suspended.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The membership transitioned to suspended and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to suspend members.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is not currently ACTIVE.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is not ACTIVE, so this is not a legal transition — an INVITED row has not accepted yet (cancel it with REVOKE, which also revokes the accept token) and an INACTIVE or already-SUSPENDED one is already out. Carries `resource_status_transition_conflict`, whose context names the current status, the target status and the permitted source statuses, so a client can re-read and show the real state rather than treating it as an opaque clash. Most callers meet the earlier `enabledCondition` gate (403) instead; this reference covers the paths that gate does not reach.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target is the organization’s LAST administratively usable owner (an ACTIVE membership holding a role that confers `ORG_OWNER`, directly or by inheritance, whose linked user is also ACTIVE). Suspending it leaves the organization with no principal able to administer it, so the tenant cannot administer itself afterwards. Grant an owner role to another active member first. Recovery is not impossible \\u2014 a platform administrator holds `grantOwnership` \\u2014 but it is an out-of-tenant escalation, which is why the in-tenant refusal stands. Not a 403: the caller IS authorized; the current state of the organization forbids it. Carries the stable client-branchable `code: LAST_ORGANIZATION_OWNER` — a DIFFERENT code from the application floor, because the remedy is scoped to this organization.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Suspend a member until a scheduled review date',\n request: {\n suspensionReason: 'Access paused while the security review is completed.',\n suspensionEndDate: '2026-09-01T09:00:00.000Z',\n },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n status: OrganizationMemberStatus.SUSPENDED,\n scheduledReactivationAt: '2026-09-01T09:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.REACTIVATE]: {\n operationId: OrganizationMembers_Operations.REACTIVATE,\n purpose: 'Restore access for a currently suspended organization member.',\n outcome: 'The membership becomes ACTIVE with its existing roles and any scheduled reactivation deadline is cleared.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The suspended membership transitioned back to active and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to reactivate members.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is not currently SUSPENDED.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is not SUSPENDED, so there is nothing to reactivate — notably an INVITED row is refused here rather than being silently promoted, which would grant a membership nobody accepted. Carries `resource_status_transition_conflict` with the current and permitted statuses in its context.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Reactivate a member after the review is complete',\n request: { reason: 'Security review completed without further action.' },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n status: OrganizationMemberStatus.ACTIVE,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.REVOKE]: {\n operationId: OrganizationMembers_Operations.REVOKE,\n purpose: 'Cancel a still-pending organization invitation. Use DELETE instead for an accepted member.',\n outcome: 'The INVITED membership is removed, its acceptance token can no longer be used, and the invitee and acting administrator are notified. The optional reason is retained in the audit event.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The pending invitation was revoked (the INVITED membership removed) and a confirmation is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to revoke invitations.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is no longer INVITED.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Revoke a pending invitation before it is accepted',\n request: { reason: 'The invitee joined through another organization.' },\n response: { id: ORGANIZATION_MEMBER_EXAMPLE._id, deletedAt: '2026-08-18T08:05:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.GRANT_OWNERSHIP]: {\n operationId: OrganizationMembers_Operations.GRANT_OWNERSHIP,\n purpose: 'Platform-tier repair door: grant `ORG_OWNER` to an EXISTING member of an organization that has no administratively usable owner left.',\n outcome: 'The existing ACTIVE membership gains the owner-conferring role; no role is removed and no new membership is created. The cross-tenant repair is audited with the required justification and the organization is notified.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The member now holds an owner-conferring role. Idempotent: a member who already owns the organization returns 200 with their role set unchanged.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold `APP_ADMIN_SUPER_ADMIN` at APPLICATION scope. An organization-scope caller who merely writes that string into their own membership `roles` is denied: the role gate resolves an organization-scope entry against the organization role table, which does not contain that key.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target membership is not administratively usable (only ACTIVE rows confer roles), or the linked user is not usable. Granting either would answer 200 while leaving the organization with zero usable owners \\u2014 a repair that repairs nothing and stops the operator looking. Fix the membership or user lifecycle first. Also returned when the user row cannot be read, since absence is not evidence of a usable owner.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Repair a stranded organization by granting an existing member ownership',\n request: { justification: 'Restore tenant administration after the sole owner was removed during account recovery.' },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n roles: [CORE_ORG_ROLES.ORG_MEMBER, CORE_ORG_ROLES.ORG_OWNER],\n status: OrganizationMemberStatus.ACTIVE,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.RESEND]: {\n operationId: OrganizationMembers_Operations.RESEND,\n purpose: 'Re-mint and re-send the accept link for a still-pending invitation (an INVITED membership).',\n outcome: 'A fresh single-use accept token is issued (revoking any prior token for this membership) and the invitation email is re-delivered to the invitee.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new accept token was minted and the invitation email re-sent; a confirmation is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to resend invitations.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is no longer INVITED.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Send a fresh acceptance link for a pending invitation',\n request: {},\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n status: OrganizationMemberStatus.INVITED,\n invitedByUserId: 'user_admin_01HX2EXAMPLE',\n invitedAt: '2026-08-18T08:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'CREATE is polymorphic: the accept-link email AND the single-use accept token fire ONLY for the INVITE branch (resulting status INVITED). A direct/system provisioning create (userId supplied — founder org-owner grant, SSO JIT, SCIM) persists an ACTIVE row and fires NEITHER side-effect (nothing to accept; its `userEmail` is the member’s own address). The gate is keyed on the resulting `status`, not on which identity field the caller supplied.',\n 'Factory declares userNotifications on several mutations; companion should ground email/SMS copy on runtime `userNotifications[]`, not invent channels absent from the configuration.',\n 'Member SEARCH matches on `userEmail` (a denormalized own field) and on the linked user’s first/last name. The name match is RELATIONAL: the framework runs a secondary search on `USER_PROFILES` and intersects on `userId` — names are read live (never stale) and are not denormalized onto the member row. The result stays scoped to the caller’s organization.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n views: {\n [Op.COUNT]: { purpose: 'Header metrics and cap enforcement surfaces.', whenToUse: 'Dashboards, billing seat counts, and upgrade prompts.' },\n [Op.CREATE]: { purpose: 'Invite (writes an INVITED row + emails an accept link) or direct-add flows in org admin UIs.', whenToUse: 'Inviting a teammate by email, onboarding, and bulk import.' },\n [Op.READ]: { purpose: 'Profile drawer and permission summaries.', whenToUse: 'Click-through from directory rows.' },\n [Op.LIST]: { purpose: 'Addressable roster list per merged preset (only `LIST` is addressable).', whenToUse: 'Default org directory experience.' },\n [Op.SEARCH]: { purpose: 'Member discovery by email or name when search is enabled.', whenToUse: 'Large-tenant look-ups and people pickers.' },\n [Op.UPDATE]: { purpose: 'Inline edit of metadata, roles, and org-unit links.', whenToUse: 'HR and IT directory maintenance, and every role change — there is no dedicated promote/demote verb.' },\n [Op.DELETE]: { purpose: 'Revoke and remove directory presence.', whenToUse: 'Offboarding, abuse, and access reviews.' },\n [OrganizationMembers_Operations.SUSPEND]: { purpose: 'Degraded access while retaining audit of membership history.', whenToUse: 'Short-term ToS and security holds.' },\n [OrganizationMembers_Operations.REACTIVATE]: { purpose: 'Re-open access after hold clears.', whenToUse: 'After payment or review completion.' },\n [OrganizationMembers_Operations.REVOKE]: { purpose: 'Cancel a still-pending invitation (deletes the INVITED row + revokes its accept token).', whenToUse: 'From the members list, on a row still showing INVITED.' },\n // GRANT_OWNERSHIP is deliberately ABSENT here, and the omission is the documentation.\n // `views` may only describe operations the merged frontend configuration surfaces\n // (`resourceSpecificationFromFrontendConfiguration` throws otherwise), and this operation has\n // no tenant-facing surface by construction: its caller is a platform operator who is NOT a\n // member of the organization, so the member roster \\u2014 which is a tenant surface \\u2014 is exactly\n // where it must not appear. It is reached from support/operations tooling.\n [OrganizationMembers_Operations.RESEND]: { purpose: 'Re-issue the accept link for a still-pending invitation.', whenToUse: 'When an invitee lost or never received the original invite email.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"organization-members.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-members.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,IAAI,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AAChI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iCAAiC,EACjC,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,aAAa,EACb,SAAS,EACT,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,EACpB,8DAA8D,IAAI,0BAA0B,GAC7F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,qCAAqC,GAAG,mCAAmF,CAAC;AAElI,MAAM,2BAA2B,GAAG;IAClC,GAAG,EAAE,kCAAkC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,EAAE,OAAO,EAAE,8DAA8D,EAAE,SAAS,EAAE,oCAAoC,EAAE;QACtK,CAAC,8BAA8B,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,SAAS,EAAE,qCAAqC,EAAE;QAC/I,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,yFAAyF,EAAE,SAAS,EAAE,wDAAwD,EAAE;QACpN,sFAAsF;QACtF,kFAAkF;QAClF,8FAA8F;QAC9F,2FAA2F;QAC3F,sGAAsG;QACtG,2EAA2E;QAC3E,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,0DAA0D,EAAE,SAAS,EAAE,mEAAmE,EAAE;KACjM;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationMembersMainResourceUIBehavior as organizationMembersUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AdministrativeContinuityErrorCode,\n CORE_ORG_ROLES,\n CoreResourceOperation as Op,\n ErrorSeverity,\n ErrorType,\n OrganizationMemberSchema,\n OrganizationMemberStatus,\n OrganizationMembers_Operations,\n ResourcePrimaryScope,\n organizationMembersResourceConfiguration_InitializationFactory as organizationMembersFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationMembersFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationMembersResourceUIBehavior = organizationMembersUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst ORGANIZATION_MEMBER_EXAMPLE = {\n _id: 'organization_member_01HX2EXAMPLE',\n userId: 'user_01HX2EXAMPLE',\n userEmail: 'alex.morgan@example.com',\n organizationId: 'organization_01HX2EXAMPLE',\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n status: OrganizationMemberStatus.ACTIVE,\n userTitle: 'Staff Engineer',\n instanceLabel: 'Alex Morgan',\n createdAt: '2026-07-03T09:15:00.000Z',\n updatedAt: '2026-08-18T08:00:00.000Z',\n _version: 4,\n} as const;\n\nconst ORGANIZATION_MEMBER_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_MEMBER_EXAMPLE._id,\n userId: ORGANIZATION_MEMBER_EXAMPLE.userId,\n userEmail: ORGANIZATION_MEMBER_EXAMPLE.userEmail,\n organizationId: ORGANIZATION_MEMBER_EXAMPLE.organizationId,\n roles: ORGANIZATION_MEMBER_EXAMPLE.roles,\n status: ORGANIZATION_MEMBER_EXAMPLE.status,\n userTitle: ORGANIZATION_MEMBER_EXAMPLE.userTitle,\n instanceLabel: ORGANIZATION_MEMBER_EXAMPLE.instanceLabel,\n _version: ORGANIZATION_MEMBER_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_MEMBER_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n user: { _id: ORGANIZATION_MEMBER_EXAMPLE.userId },\n organization: { _id: ORGANIZATION_MEMBER_EXAMPLE.organizationId },\n} as const;\n\nfunction organizationMembersPage<T>(data: readonly T[]) {\n return {\n data,\n pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 },\n };\n}\n\nconst ORGANIZATION_MEMBERS_PAGE_REQUEST = { page: 1, limit: 20, sort: 'createdAt:desc' } as const;\n\nexport const organizationMembersResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationMembersResourceUIBehavior),\n resourceSpecification(\n organizationMembersFactory,\n OrganizationMemberSchema,\n ({ schemaShape }) => ({\n purpose: 'Represents one person’s membership in an organization, including their organization roles, directory title, and current access state.',\n businessRole: 'Use this resource to browse the organization directory and to manage invitations, membership access, and organization-level authority.',\n lifecycleRole: 'A membership begins as a pending invitation or an active provisioned membership, can be updated or suspended, and ends when the invitation is revoked or the member is removed.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationMemberSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationMembersResourceConfiguration_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_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 customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationMembers_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationMembersMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The `USERS` identity this membership grants organization access to — the junction’s subject party.',\n whyItMatters: 'A membership row is a link with no inherent identity; this FK is what a name/email resolves against (via `USER_PROFILES`) and, together with `organizationId`, forms the database-enforced business key that prevents duplicate memberships.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Org-wide roles granted to this member — the authority set every access check evaluates for the user within this organization.',\n elementMeaning: 'One role identifier — a core org role token (`CORE_ORG_ROLES`) or an app-defined custom role string.',\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CORE_ORG_ROLES',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n userTitle: schemaShape.userTitle.stringSpec({ meaning: 'Authored job title / role label for the member (e.g. “Engineering Lead”). Distinct from the directory record label — that is the linked user’s name (see `instanceLabel`).' }),\n instanceLabel: schemaShape.instanceLabel.stringSpec({ meaning: 'Computed directory label for the membership — the linked user’s name, forwarded live from `USER_PROFILES` (joining on `userId`, rendering first/last name) and resolved SERVER-SIDE at read time via the virtual-field pipeline. A junction record has no inherent name; this gives it one without denormalizing the mutable name (never stale, tenant-safe, not persisted). The frontend uses it directly as `getFrontendResourceLabel`; it falls back to the immutable `userEmail` when the profile is unavailable.' }),\n userEmail: schemaShape.userEmail.stringSpec({ meaning: 'Denormalized, immutable copy of the linked user’s email captured at membership creation. Two roles: the OWN-FIELD half of member search (first/last name are searched relationally through `USER_PROFILES`, never denormalized), and the secondary label fallback behind the server-resolved `instanceLabel`. The live email lives on `USERS`; this copy is display-hidden and never client-writable.' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Membership lifecycle and access posture in this org.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationMemberStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationMemberStatus.INVITED]: { meaning: 'A pending invitation — the membership was extended (via CREATE) but the invitee has not accepted yet. Carries a single-use accept link. Flips to ACTIVE on acceptance; the record is DELETED on decline/revoke (no terminal \"rejected\" status — the invite IS the membership in this pending state).' },\n [OrganizationMemberStatus.ACTIVE]: { meaning: 'Can participate as roles allow.' },\n [OrganizationMemberStatus.INACTIVE]: { meaning: 'Record retained but not participating.' },\n [OrganizationMemberStatus.SUSPENDED]: { meaning: 'Access blocked in-org while record remains.' },\n },\n }),\n serviceProviderRelationshipId: schemaShape.serviceProviderRelationshipId.stringSpec({\n meaning: 'Present only on a PROVIDER membership: the service-provider relationship through which a service firm\\'s expert is present in this organization.',\n whyItMatters: 'It changes what the row means everywhere. The membership confers authority only while that relationship passes the per-request live filter (active, within its term, its role still offered by the declaration, the expert still an active member of the firm and assigned to it); its `roles` are owned by the relationship and cannot be edited here; it never counts toward the owner floor and cannot receive ownership; it grants no user type; and it is not part of the organization\\'s SCIM directory. System-written only by the relationship verbs: `assign` creates or re-points it, `amendScope` keeps its `roles` equal to the relationship\\'s role, and `unassign` or the relationship ending makes an ACTIVE one INACTIVE. The row keeps the (user, organization) key after the relationship or assignment ends (INACTIVE), so inviting that person as the organization\\'s own member is refused with `SERVICE_PROVIDER_MEMBERSHIP_CONFLICTS_WITH_INVITATION` until the ended membership is removed. A provider membership the organization SUSPENDS stays suspended when the firm unassigns the person or the relationship ends, and the firm cannot re-assign them (`SERVICE_PROVIDER_EXPERT_SUSPENDED_BY_CLIENT`) until the organization reactivates it. Reactivating a provider membership (by hand or by the reactivation sweep) restores ACTIVE only while its relationship has not ended (ACTIVE or SUSPENDED) and the person is still assigned; otherwise it lands INACTIVE, and a later assignment re-points it. Whether an ACTIVE row confers is the live filter\\'s decision on each request. Deleting a provider membership ends the firm\\'s assignment of that person in the same transaction; it does not stop the firm assigning them again under the relationship — suspension is the organization\\'s bar against one person.',\n }),\n providerOrganizationId: schemaShape.providerOrganizationId.stringSpec({\n meaning: 'Present only on a PROVIDER membership: the service firm whose expert holds it.',\n whyItMatters: 'The live filter requires the expert to hold an active, ordinary membership in this organization, and the organization to still confer authority — a firm that deprovisions its expert ends their reach into every client on the next request.',\n }),\n providerOrganizationName: schemaShape.providerOrganizationName.stringSpec({\n meaning: 'Present only on a PROVIDER membership: the firm\\'s name, copied from its relationship when the expert was assigned — what the directory shows as \"via {Firm}\".',\n whyItMatters: 'A client can never read the firm\\'s organization row, which lives in another tenant, so without this snapshot the directory could name the firm only by an opaque id. It is display only and decides nothing.',\n }),\n scheduledReactivationAt: schemaShape.scheduledReactivationAt.dateSpec({\n meaning: 'When an automated sweep lifts this suspension by dispatching REACTIVATE — to ACTIVE, or to INACTIVE for a service-provider membership whose relationship has ended or whose person is no longer assigned. Set by SUSPEND when the caller time-boxes the suspension (its request contract calls this `suspensionEndDate`), cleared by REACTIVATE. Absent means the suspension is indefinite and only an explicit REACTIVATE lifts it — the default, since an unbounded suspension is the safer reading of “suspend”.',\n whyItMatters: 'Named for the effect rather than the cause so the identical field on `USERS` — which serves both admin suspension and voluntary self-deactivation — carries the same name and the reactivation sweep queries one field everywhere. Server-owned: only the transition operations write it, exactly as for `status`.',\n }),\n invitedByUserId: schemaShape.invitedByUserId.stringSpec({\n meaning: 'The user who sent the invitation this membership started from. Set by the application; absent when the member was added directly or provisioned by the system.',\n whyItMatters: 'A record of who invited the member, not a link the API follows: the membership\\'s user is `userId`.',\n }),\n invitedAt: schemaShape.invitedAt.dateSpec({\n meaning: 'When the invitation was sent. Set by the application and never changed; absent when the member was not invited. Pending invitations expire relative to it.',\n }),\n },\n operations: {\n [Op.COUNT]: {\n purpose: 'Return the total number of memberships visible in the selected organization or relationship scope.',\n outcome: 'A single non-negative membership count is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The current membership count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to read the membership count.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Count organization memberships',\n response: { count: 37 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Invite a person by email, or provision an existing user through a user-linked relationship route. Email invitations create an INVITED membership; direct provisioning creates an ACTIVE membership.',\n outcome: 'The membership is created with its initial organization roles. An invitation sends one single-use acceptance link; direct provisioning sends no acceptance link. The resolved role grant is recorded in the audit trail.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A membership record was created linking the user to the organization with its initial roles, and the new record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The user reference, roles, or title fail schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\\'s expert the organization lent `INVITE_MEMBERS` through a live capability grant (#1631), or asks for a role above its own ceiling (`role_ceiling_exceeded`) — a delegated capability role is never grantable, and an expert\\'s ceiling is its own provider role.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The user already holds a membership in this organization.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Invite a member by email with an initial title',\n request: {\n userEmail: 'new.lead@acme.com',\n userTitle: 'Engineering Lead',\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n userEmail: 'new.lead@acme.com',\n userTitle: 'Engineering Lead',\n status: OrganizationMemberStatus.INVITED,\n invitedByUserId: 'user_admin_01HX2EXAMPLE',\n invitedAt: '2026-08-18T08:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Retrieve one membership by its route identity.',\n outcome: 'The member’s organization roles, lifecycle state, directory title, and public identifiers are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The membership was found and its roles, title, state, and public identifiers are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to read the membership directory.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect an active organization member',\n response: ORGANIZATION_MEMBER_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a member with relationship identifiers',\n response: ORGANIZATION_MEMBER_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact member summary',\n response: ORGANIZATION_MEMBER_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Browse the organization membership directory as a paginated collection.',\n outcome: 'A page of memberships and pagination metadata is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of membership records for the organization directory.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to browse the membership directory.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse organization members',\n request: ORGANIZATION_MEMBERS_PAGE_REQUEST,\n response: organizationMembersPage([ORGANIZATION_MEMBER_EXAMPLE]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse members with relationship identifiers',\n request: ORGANIZATION_MEMBERS_PAGE_REQUEST,\n response: organizationMembersPage([{\n ...ORGANIZATION_MEMBER_EXAMPLE,\n user: { _id: ORGANIZATION_MEMBER_EXAMPLE.userId },\n organization: { _id: ORGANIZATION_MEMBER_EXAMPLE.organizationId },\n }]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact member summaries',\n request: ORGANIZATION_MEMBERS_PAGE_REQUEST,\n response: organizationMembersPage([ORGANIZATION_MEMBER_SUMMARY_EXAMPLE]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Searchable member roster — matches on the member’s email (own field) and, through the linked user profile, on first/last name.',\n outcome: 'Org members matching the query by email or name, for people pickers and large-roster look-ups.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of members whose email, or whose linked profile’s first/last name, matches the search query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization member permitted to search the membership directory.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find active members by email or name',\n request: { q: 'alex', status: OrganizationMemberStatus.ACTIVE, page: 1, limit: 20, sort: 'status:asc' },\n response: organizationMembersPage([ORGANIZATION_MEMBER_EXAMPLE]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.UPDATE]: {\n purpose: 'Update a member’s directory title or organization roles. This is the only API operation used to change a membership’s role set.',\n outcome: 'The updated membership is returned. Role changes take effect for subsequent authorization decisions and emit a dedicated authorization audit event with the previous and resulting role sets.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The membership’s title/org-unit/roles were updated and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited title, org-unit, or role set fails schema validation.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to edit memberships.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The edit would remove the LAST administratively usable owner of the organization — either by rewriting `roles` so they no longer confer `ORG_OWNER` (directly or by inheritance), or by moving the membership `status` out of ACTIVE (the only status whose roles reach `initiatorRoles`). Grant an owner role to another active member first. Not a 403: the caller IS authorized — the current state of the organization forbids it. No TENANT authority lifts this floor; a platform administrator can repair an already-stranded organization through `grantOwnership`, which is the only cross-tenant variant this resource declares. An owner counts only when the membership is ACTIVE AND the linked user is ACTIVE; organizations in a terminal state (CANCELLED, DELETED, soft-deleted) are not protected.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Update a member’s directory title without changing authority',\n request: { userTitle: 'Staff Engineer' },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n userTitle: 'Staff Engineer',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove an accepted member from the organization. Use REVOKE instead for a still-pending invitation.',\n outcome: 'The membership and its organization-unit assignments are removed, organization-scoped access ends, and the withdrawn roles and unit grants are recorded in the audit trail. For a service-provider membership, the firm\\'s active assignment of that person to the relationship ends in the same transaction and is recorded as an unassignment.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The membership record was removed; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id (or it was already removed).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\\'s expert the organization lent `MANAGE_RELATIONSHIP_EXPERTS` through a live capability grant (#1631).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller holds `MANAGE_RELATIONSHIP_EXPERTS` (a capability a client lends a service firm, #1631) and the target is not an expert of the SAME relationship it serves the organization through — an ordinary member, another firm\\'s expert, or an expert of another of its relationships. Carries `code: SERVICE_PROVIDER_CAPABILITY_TARGET_OUTSIDE_RELATIONSHIP`.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target is the LAST administratively usable owner of the organization. Destroying the row that holds the last tenant authority strands the organization exactly as demoting it would, so it is refused on the same terms — grant an owner role to another active member first. Also returned when the membership snapshot cannot be read, since the floor must not assume an unreadable row is not the last owner.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Refuse removal of the last usable organization owner',\n response: {\n error: {\n type: ErrorType.CONFLICT,\n severity: ErrorSeverity.MEDIUM,\n message: 'Resource conflict detected',\n customMessage: 'Grant ownership to another active member before removing this member.',\n code: AdministrativeContinuityErrorCode.LAST_ORGANIZATION_OWNER,\n timestamp: '2026-08-18T08:00:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.CONFLICT_409,\n }],\n },\n [OrganizationMembers_Operations.SUSPEND]: {\n operationId: OrganizationMembers_Operations.SUSPEND,\n purpose: 'Temporarily block access without deleting the membership record.',\n outcome: 'The membership becomes SUSPENDED and no longer grants organization access. If `suspensionEndDate` is supplied, it is exposed as `scheduledReactivationAt` and the membership is reactivated after that instant; otherwise an administrator must reactivate it explicitly. The suspended member is emailed about it, even with email notifications turned off, and the organization\\'s other active members, apart from the administrator who suspended it, are notified.',\n whenToUse: 'Use for temporary security or policy holds where the membership history must remain available. The last usable organization owner cannot be suspended.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The membership transitioned to suspended and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\\'s expert the organization lent `MANAGE_RELATIONSHIP_EXPERTS` through a live capability grant (#1631).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller holds `MANAGE_RELATIONSHIP_EXPERTS` (a capability a client lends a service firm, #1631) and the target is not an expert of the SAME relationship it serves the organization through — an ordinary member, another firm\\'s expert, or an expert of another of its relationships. Carries `code: SERVICE_PROVIDER_CAPABILITY_TARGET_OUTSIDE_RELATIONSHIP`.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is not currently ACTIVE.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is not ACTIVE, so this is not a legal transition — an INVITED row has not accepted yet (cancel it with REVOKE, which also revokes the accept token) and an INACTIVE or already-SUSPENDED one is already out. Carries `resource_status_transition_conflict`, whose context names the current status, the target status and the permitted source statuses, so a client can re-read and show the real state rather than treating it as an opaque clash. Most callers meet the earlier `enabledCondition` gate (403) instead; this reference covers the paths that gate does not reach.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target is the organization’s LAST administratively usable owner (an ACTIVE membership holding a role that confers `ORG_OWNER`, directly or by inheritance, whose linked user is also ACTIVE). Suspending it leaves the organization with no principal able to administer it, so the tenant cannot administer itself afterwards. Grant an owner role to another active member first. Recovery is not impossible \\u2014 a platform administrator holds `grantOwnership` \\u2014 but it is an out-of-tenant escalation, which is why the in-tenant refusal stands. Not a 403: the caller IS authorized; the current state of the organization forbids it. Carries the stable client-branchable `code: LAST_ORGANIZATION_OWNER` — a DIFFERENT code from the application floor, because the remedy is scoped to this organization.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Suspend a member until a scheduled review date',\n request: {\n suspensionReason: 'Access paused while the security review is completed.',\n suspensionEndDate: '2026-09-01T09:00:00.000Z',\n },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n status: OrganizationMemberStatus.SUSPENDED,\n scheduledReactivationAt: '2026-09-01T09:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.REACTIVATE]: {\n operationId: OrganizationMembers_Operations.REACTIVATE,\n purpose: 'Restore access for a currently suspended organization member.',\n outcome: 'The membership becomes ACTIVE with its existing roles and any scheduled reactivation deadline is cleared. A service-provider membership becomes ACTIVE only while its relationship is still live (accepted and not ended — a suspended relationship counts) and the person is still assigned to it; otherwise it becomes INACTIVE, the state the relationship\\'s end or the unassignment would have given it, and a later assignment re-points it. An ACTIVE provider row confers authority only while the relationship does — the per-request live filter decides that. When the membership comes back ACTIVE, the member is emailed, even with email notifications turned off and also when the scheduled sweep lifted the suspension. The organization\\'s other active members are notified as well, leaving out the administrator who acted and the member themself (who has their own notice); a reactivation by the scheduled sweep is announced to the membership\\'s organization the same way. A row that lands INACTIVE notifies nobody.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The suspended membership transitioned back to active and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin permitted to reactivate members. Deliberately NOT opened to `MANAGE_RELATIONSHIP_EXPERTS` (#1631): a suspension is the organization\\'s bar against one person, which a service firm may never lift, even for its own expert.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is not currently SUSPENDED.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is not SUSPENDED, so there is nothing to reactivate — notably an INVITED row is refused here rather than being silently promoted, which would grant a membership nobody accepted. Carries `resource_status_transition_conflict` with the current and permitted statuses in its context.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Reactivate a member after the review is complete',\n request: { reason: 'Security review completed without further action.' },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n status: OrganizationMemberStatus.ACTIVE,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.REVOKE]: {\n operationId: OrganizationMembers_Operations.REVOKE,\n purpose: 'Cancel a still-pending organization invitation. Use DELETE instead for an accepted member.',\n outcome: 'The INVITED membership is removed, its acceptance token can no longer be used, and the invitee and acting administrator are notified. The optional reason is retained in the audit event.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The pending invitation was revoked (the INVITED membership removed) and a confirmation is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\\'s expert the organization lent `INVITE_MEMBERS` through a live capability grant (#1631).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is no longer INVITED.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Revoke a pending invitation before it is accepted',\n request: { reason: 'The invitee joined through another organization.' },\n response: { id: ORGANIZATION_MEMBER_EXAMPLE._id, deletedAt: '2026-08-18T08:05:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.GRANT_OWNERSHIP]: {\n operationId: OrganizationMembers_Operations.GRANT_OWNERSHIP,\n purpose: 'Platform-tier repair door: grant `ORG_OWNER` to an EXISTING member of an organization that has no administratively usable owner left.',\n outcome: 'The existing ACTIVE membership gains the owner-conferring role; no role is removed and no new membership is created. The cross-tenant repair is audited with the required justification and the organization is notified.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The member now holds an owner-conferring role. Idempotent: a member who already owns the organization returns 200 with their role set unchanged.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold `APP_ADMIN_SUPER_ADMIN` at APPLICATION scope. An organization-scope caller who merely writes that string into their own membership `roles` is denied: the role gate resolves an organization-scope entry against the organization role table, which does not contain that key.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The target membership is not administratively usable (only ACTIVE rows confer roles), or the linked user is not usable. Granting either would answer 200 while leaving the organization with zero usable owners \\u2014 a repair that repairs nothing and stops the operator looking. Fix the membership or user lifecycle first. Also returned when the user row cannot be read, since absence is not evidence of a usable owner.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Repair a stranded organization by granting an existing member ownership',\n request: { justification: 'Restore tenant administration after the sole owner was removed during account recovery.' },\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n roles: [CORE_ORG_ROLES.ORG_MEMBER, CORE_ORG_ROLES.ORG_OWNER],\n status: OrganizationMemberStatus.ACTIVE,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [OrganizationMembers_Operations.RESEND]: {\n operationId: OrganizationMembers_Operations.RESEND,\n purpose: 'Re-mint and re-send the accept link for a still-pending invitation (an INVITED membership).',\n outcome: 'A fresh single-use accept token is issued (revoking any prior token for this membership) and the invitation email is re-delivered to the invitee.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new accept token was minted and the invitation email re-sent; a confirmation is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No membership row exists for the supplied id in the caller’s organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization admin nor a service firm\\'s expert the organization lent `INVITE_MEMBERS` through a live capability grant (#1631).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable because the membership is no longer INVITED.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Send a fresh acceptance link for a pending invitation',\n request: {},\n response: {\n ...ORGANIZATION_MEMBER_EXAMPLE,\n status: OrganizationMemberStatus.INVITED,\n invitedByUserId: 'user_admin_01HX2EXAMPLE',\n invitedAt: '2026-08-18T08:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'CREATE is polymorphic: the accept-link email AND the single-use accept token fire ONLY for the INVITE branch (resulting status INVITED). A direct/system provisioning create (userId supplied — founder org-owner grant, SSO JIT, SCIM) persists an ACTIVE row and fires NEITHER side-effect (nothing to accept; its `userEmail` is the member’s own address). The gate is keyed on the resulting `status`, not on which identity field the caller supplied.',\n 'Factory declares userNotifications on several mutations; companion should ground email/SMS copy on runtime `userNotifications[]`, not invent channels absent from the configuration.',\n 'Member SEARCH matches on `userEmail` (a denormalized own field) and on the linked user’s first/last name. The name match is RELATIONAL: the framework runs a secondary search on `USER_PROFILES` and intersects on `userId` — names are read live (never stale) and are not denormalized onto the member row. The result stays scoped to the caller’s organization.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n layout: {\n purpose: 'The organization member directory (Settings → Members): who belongs, with which roles, in which state.',\n headerPurpose: 'The READ identity line: the member\\'s name (the forwarded `instanceLabel`, else the membership\\'s `userEmail`) and the `status` badge beside it. Neither repeats in the body.',\n displayPurpose: 'READ is one flat list of rows and documents no section: `roles`, then `userTitle` and `providerOrganizationName` when set (both hide when empty), then `createdAt`. Unit assignments are the ORGANIZATION_UNIT_MEMBERS resource, composed below as its own tab.',\n summaryPurpose: 'A member card: the resolved member name as the title, then `status`, `roles` and the service firm as bare values. The two provider identifiers are hidden from display, so they are not directory columns; `providerOrganizationName` is their readable form.',\n editPurpose: 'One flat form, no section: the invitee `userEmail` first and focused (CREATE only), then `roles` and `userTitle`. `status` is owned by SUSPEND / REACTIVATE / REVOKE and never appears on a form.',\n },\n views: {\n [Op.COUNT]: { purpose: 'Header metrics and cap enforcement surfaces.', whenToUse: 'Dashboards, billing seat counts, and upgrade prompts.' },\n [Op.CREATE]: { purpose: 'Invite (writes an INVITED row + emails an accept link) or direct-add flows in org admin UIs.', whenToUse: 'Inviting a teammate by email, onboarding, and bulk import.' },\n [Op.READ]: { purpose: 'Profile drawer and permission summaries.', whenToUse: 'Click-through from directory rows.' },\n [Op.LIST]: { purpose: 'Addressable roster list per merged preset (only `LIST` is addressable).', whenToUse: 'Default org directory experience.' },\n [Op.SEARCH]: { purpose: 'Member discovery by email or name when search is enabled.', whenToUse: 'Large-tenant look-ups and people pickers.' },\n [Op.UPDATE]: { purpose: 'Inline edit of metadata, roles, and org-unit links.', whenToUse: 'HR and IT directory maintenance, and every role change — there is no dedicated promote/demote verb.' },\n [Op.DELETE]: { purpose: 'Revoke and remove directory presence.', whenToUse: 'Offboarding, abuse, and access reviews.' },\n [OrganizationMembers_Operations.SUSPEND]: { purpose: 'Degraded access while retaining audit of membership history.', whenToUse: 'Short-term ToS and security holds.' },\n [OrganizationMembers_Operations.REACTIVATE]: { purpose: 'Re-open access after hold clears.', whenToUse: 'After payment or review completion.' },\n [OrganizationMembers_Operations.REVOKE]: { purpose: 'Cancel a still-pending invitation (deletes the INVITED row + revokes its accept token).', whenToUse: 'From the members list, on a row still showing INVITED.' },\n // GRANT_OWNERSHIP is deliberately ABSENT here, and the omission is the documentation.\n // `views` may only describe operations the merged frontend configuration surfaces\n // (`resourceSpecificationFromFrontendConfiguration` throws otherwise), and this operation has\n // no tenant-facing surface by construction: its caller is a platform operator who is NOT a\n // member of the organization, so the member roster \\u2014 which is a tenant surface \\u2014 is exactly\n // where it must not appear. It is reached from support/operations tooling.\n [OrganizationMembers_Operations.RESEND]: { purpose: 'Re-issue the accept link for a still-pending invitation.', whenToUse: 'When an invitee lost or never received the original invite email.' },\n },\n }),\n);\n"]}
@@ -157,7 +157,7 @@ export const organizationNotificationsResourceSpecification = resourceSpecificat
157
157
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'A notification-routing record was created for the organization with its `emailNotifications` block defaulted (category opt-ins on, addresses unset).' },
158
158
  ],
159
159
  errorScenarios: [
160
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded routing payload fails `OrganizationNotificationsSchema` validation.', errorCode: 'VALIDATION_FAILED' },
160
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded routing payload fails `OrganizationNotificationsSchema` validation.' },
161
161
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'A notification-routing row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },
162
162
  ],
163
163
  idempotent: false,
@@ -170,7 +170,7 @@ export const organizationNotificationsResourceSpecification = resourceSpecificat
170
170
  { code: HttpResponseStatusCode.OK_200, meaning: 'The notification routing map was updated and the new effective configuration is returned.' },
171
171
  ],
172
172
  errorScenarios: [
173
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A routing address is malformed or a category toggle fails schema validation.', errorCode: 'VALIDATION_FAILED' },
173
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A routing address is malformed or a category toggle fails schema validation.' },
174
174
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to change notification routing.' },
175
175
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },
176
176
  ],