@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
@@ -1,7 +1,7 @@
1
1
  import { organizationsAdminOrgResourceUIBehavior as organizationsAdminUIBehaviorSource, organizationsMainOrgResourceUIBehavior as organizationsMainUIBehaviorSource, } from '@wildo-ai/presets-components';
2
2
  import { LabelAudience } from '@wildo-ai/presets-components-models';
3
3
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
4
- import { CoreResourceOperation as Op, OrganizationSchema, OrganizationStatus, Organization_Lifecycle_Operations, ResourcePrimaryScope, organizationResourceConfiguration_InitializationFactory as organizationsFactory, } from '@wildo-ai/saas-models';
4
+ import { CoreResourceOperation as Op, OrganizationSchema, OrganizationStatus, Organization_Lifecycle_Operations, ResourcePrimaryScope, organizationResourceConfiguration_InitializationFactory as organizationsFactory, ErrorCustomMessageReference, } from '@wildo-ai/saas-models';
5
5
  import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
6
6
  import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
7
7
  const organizationsMainUIBehavior = organizationsMainUIBehaviorSource;
@@ -71,7 +71,7 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
71
71
  importance: FieldSemanticImportance.PRIMARY,
72
72
  }),
73
73
  type: schemaShape.type.stringSpec({
74
- meaning: 'Creation-time organization policy identity selecting role, membership-grant, and authentication behavior. Required, and it must name one of the application\'s declared organization types: a member of an organization whose type resolves to nothing cannot sign in, so a missing or undeclared type is refused at creation, and an organization whose stored type resolves to nothing (none, or one no longer declared) is typed at startup when only one type is declared, recording the value it replaced. Transitions require a dedicated dependent-policy migration.',
74
+ meaning: 'Creation-time organization policy identity selecting role, membership-grant, and authentication behavior. Required, and it must name one of the application\'s declared organization types: a member of an organization whose type resolves to nothing cannot sign in, so a missing or undeclared type is refused at creation, and an organization whose stored type resolves to nothing (none, or one no longer declared) is typed at startup when only one type is declared, recording the value it replaced. Transitions require a dedicated dependent-policy migration. Shown as the type\'s word (`system_enums.OrganizationType.<type>`, planned from `organizationTypes`), the key itself while the word is missing.',
75
75
  importance: FieldSemanticImportance.PRIMARY,
76
76
  }),
77
77
  slug: schemaShape.slug.stringSpec({
@@ -82,6 +82,14 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
82
82
  meaning: 'Concurrency token for the organization-owner floor. Carries NO business meaning and is never read for one — it exists so that two concurrent owner-reducing operations write the same document and the storage engine aborts the loser. Without it the floor is open to write skew: two callers each remove a DIFFERENT owner, each observes the other still present, and both commit, leaving a tenant nobody can administer. Backend-only and hidden; a lost update on the value itself is harmless.',
83
83
  importance: FieldSemanticImportance.CONTEXTUAL,
84
84
  }),
85
+ serviceProviderRelationshipSerializationToken: schemaShape.serviceProviderRelationshipSerializationToken.numberSpec({
86
+ meaning: 'Concurrency token for decisions on this organization\'s service-provider relationships. Carries NO business meaning and is never read for one — every relationship verb (from either side) writes it on the CLIENT organization inside its transaction BEFORE reading the state it decides on, so two concurrent decisions write the same row: on MongoDB the loser is retried from a fresh read, on PostgreSQL it waits for the winner and then reads its committed result. Without it two proposals could both observe no live relationship and both commit, and a resume racing a terminate could turn a TERMINATED relationship back to ACTIVE. Separate from the owner-floor token so the two unrelated decisions never conflict with each other. Backend-only and hidden.',
87
+ importance: FieldSemanticImportance.CONTEXTUAL,
88
+ }),
89
+ autonomousAgentBindingSerializationToken: schemaShape.autonomousAgentBindingSerializationToken.numberSpec({
90
+ meaning: 'Concurrency token for binding autonomous agents to this organization\'s OAuth clients (#1611). Carries NO business meaning and is never read for one — every `setAutonomousAgents` call writes it inside its transaction BEFORE counting the clients that already run an agent, so two concurrent binds of one agent write the same row: on MongoDB the loser is retried from a fresh read, on PostgreSQL it waits and then counts the winner. Without it both could see no binding and commit, and the agent would resolve to two principals. Backend-only and hidden.',
91
+ importance: FieldSemanticImportance.CONTEXTUAL,
92
+ }),
85
93
  status: schemaShape.status.enumSpec({
86
94
  meaning: 'Subscription and access posture for the tenant.',
87
95
  importance: FieldSemanticImportance.PRIMARY,
@@ -100,6 +108,18 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
100
108
  [OrganizationStatus.DELETED]: { meaning: 'MARKED for deletion and inside its retention window — present, restorable, and conferring NO authority. Written by `request_deletion`, cleared by `restore`, and consumed by the `organization-purge` batch once `purgeScheduledAt` elapses. NOT a synonym for removed: the record and every child it owns are intact until the purge runs.' },
101
109
  },
102
110
  }),
111
+ platformAccessApprovalRequired: schemaShape.platformAccessApprovalRequired.booleanSpec({
112
+ meaning: 'Whether a platform operator needs this organization\'s approval before an access elevation into it becomes usable. Off by default: elevations still need a request, a justification, a time limit and an audit trail, but do not wait for someone in the organization to approve.',
113
+ whyItMatters: 'Turning it on is the strongest operator-access posture. It does not lock support out of an organization with no usable owner, which cannot approve anything.',
114
+ }),
115
+ deletionRequestedAt: schemaShape.deletionRequestedAt.dateSpec({
116
+ meaning: 'When the organization was marked for deletion. Absent unless its `status` is `DELETED`; `restore` clears it.',
117
+ whyItMatters: 'A marked organization is still fully present and restorable. When it is actually removed is `purgeScheduledAt`, not this.',
118
+ }),
119
+ purgeScheduledAt: schemaShape.purgeScheduledAt.dateSpec({
120
+ meaning: 'When a marked organization and everything it owns are permanently removed, at the end of its retention window. Absent unless the organization is marked for deletion; `restore` clears it.',
121
+ whyItMatters: 'Until this instant the deletion can be undone with `restore`; after the purge it cannot.',
122
+ }),
103
123
  },
104
124
  operations: {
105
125
  [Op.READ]: {
@@ -143,9 +163,9 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
143
163
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new organization was provisioned and is returned with its server-assigned id and starting lifecycle status.' },
144
164
  ],
145
165
  errorScenarios: [
146
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The organization payload fails schema validation (e.g. missing `name` or a malformed `slug`).', errorCode: 'VALIDATION_FAILED' },
166
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The organization payload fails schema validation (e.g. missing `name` or a malformed `slug`).' },
147
167
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not permitted to create a tenant: self-serve bootstrap is disabled for this application, or the `admin` create variant is invoked without the super-admin role.' },
148
- { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization already uses the requested URL-safe `slug` (or the name where the application enforces name uniqueness).', errorCode: 'ORGANIZATION_SLUG_EXISTS' },
168
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization already uses the requested URL-safe `slug` (or the name where the application enforces name uniqueness).', customMessageReference: ErrorCustomMessageReference.ORGANIZATION_SLUG_EXISTS },
149
169
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested `type` declares `ownsApplication`. The organization that OPERATES the application is not created through ANY service-tier door — the refusal is by DOOR rather than by count, so it holds before an owner organization exists, which is exactly when the default `APP_USER` variant would otherwise have let the first registrant found it. The two doors that DO produce it are the platform bootstrap and `promoteToOwnerOrganization`. CONFLICT and not 403 deliberately: a super-administrator is refused by the same rule as a registrant, so the caller’s authority is not what is lacking — and an AUTHORIZATION error would have its context stripped, leaving a client nothing stable to branch on.', errorCode: 'OWNER_ORGANIZATION_TYPE_NOT_CREATABLE' },
150
170
  ],
151
171
  idempotent: false,
@@ -173,7 +193,7 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
173
193
  { code: HttpResponseStatusCode.OK_200, meaning: 'The organization was patched and the updated tenant record is returned.' },
174
194
  ],
175
195
  errorScenarios: [
176
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation, or a caller attempts to mutate immutable `slug` / `type` identity through generic UPDATE.', errorCode: 'VALIDATION_FAILED' },
196
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation, or a caller attempts to mutate immutable `slug` / `type` identity through generic UPDATE.' },
177
197
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org admin of this tenant nor a platform super-admin using the `admin` edit variant.' },
178
198
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },
179
199
  ],
@@ -181,14 +201,14 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
181
201
  },
182
202
  [Op.DELETE]: {
183
203
  purpose: 'PURGE — irreversible destruction of a tenant at the end of its retention window. No longer the tenant-facing delete: an org admin uses `request_deletion`, which marks the tenant instead.',
184
- outcome: 'The tenant row is hard-deleted and every enabled `onParentDelete` cascade in the resource registry runs, including organization members. Cascade edges resolve their own per-edge strategy, so children declared `IMPERSONALIZE_AND_RETAIN` are scrubbed and kept rather than removed. Deliberately retained edges (billing accounts and subscriptions, audit logs, job executions) survive the tenant by design. Emits `ORGANIZATION_DELETED`, the evidence of what was destroyed.',
204
+ outcome: 'The tenant row is hard-deleted and every enabled `onParentDelete` cascade in the resource registry runs, including organization members. Cascade edges resolve their own per-edge strategy, so children declared `IMPERSONALIZE_AND_RETAIN` are scrubbed and kept rather than removed. Deliberately retained edges (billing accounts and subscriptions, audit logs, job executions) survive the tenant by design. Before its rows go, every live service-provider relationship the tenant is party to is ended in the same transaction — TERMINATED where it is the client, WITHDRAWN where it is the provider firm — together with the firm\'s engagement record, the experts\' ACTIVE assignments and their ACTIVE provider memberships in the client, so the surviving tenant keeps no live record for a party that no longer exists; a SUSPENDED provider membership, the client\'s own decision about that person, is kept. A refused delete ends nothing. Emits `ORGANIZATION_DELETED`, the evidence of what was destroyed, once the delete commits.',
185
205
  responseStatuses: [
186
206
  { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The organization record was deleted and its registry-declared cascades ran; no body is returned.' },
187
207
  ],
188
208
  errorScenarios: [
189
209
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization OPERATES the application (its type declares `ownsApplication`), so it cannot be put on the deletion path. Everything the application owns as an operator belongs to it, and nothing could re-create it — `type` is creation-time identity and no door mints a second owner. Refused on BOTH declared doors — the route-less INTERNAL_CALL the purge batch dispatches and the super-administrator’s immediate-purge `admin` variant — so the batch skips the tenant and logs rather than destroying it. SUSPENSION stays available: halting the owner tenant is incident response and is recoverable, where a purge is not.', errorCode: 'OWNER_ORGANIZATION_CANNOT_BE_DELETED' },
190
210
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role, OR holds it but is not a member of the target organization. Unlike `restore`, `activate` and `requestDeletion: admin`, this variant deliberately does NOT declare `admitsCrossTenantPlatformAdministration` (decided 2026-08-05): it is irreversible, whole-tenant, cascading, and skips the retention window on purpose, so crossing it would turn a compromised platform credential from a per-tenant threat into an any-tenant one. The sanctioned operator takedown path is `requestDeletion: admin` (mark + notify + window, undoable by `restore`). Opening this one would require shipping a mandatory justification, a separable high-severity audit event, and a two-person rule alongside it. Only the `admin` variant is reachable over HTTP; the default variant is a route-less INTERNAL_CALL owned by the `organization-purge` batch, so no client can skip the retention window.' },
191
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `admin` variant declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot.', errorCode: 'STEP_UP_REQUIRED' },
211
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `admin` variant declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },
192
212
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id (or it was already purged).' },
193
213
  ],
194
214
  idempotent: true,
@@ -202,7 +222,7 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
202
222
  ],
203
223
  errorScenarios: [
204
224
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin role (default variant) or the platform super-admin role (`admin` variant) that gates this destructive transition. Only the `admin` variant declares `admitsCrossTenantPlatformAdministration`: an operator marks a tenant they are not a member of, which is the takedown path for a legal order or abuse report. It is the REVERSIBLE destructive door — mark, notify, window — crossed together with RESTORE deliberately, since a marking door without its release would be a one-way door calling itself a window.' },
205
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot clear it and must route the teardown through the `admin` variant.', errorCode: 'STEP_UP_REQUIRED' },
225
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot clear it and must route the teardown through the `admin` variant.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },
206
226
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'REQUEST_DELETION is unavailable for the organization’s current status — it is enabled only from `ACTIVE`, `TRIAL`, `TRIAL_EXPIRED` or `SUSPENDED`. From `DELETED` (already marked) or the terminal `CANCELLED` the operation is disabled, so a double-mark cannot silently re-arm the retention window. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled). On the default variant the `SUSPENDED` arm is additionally unreachable, because a suspended tenant confers no authority to its own admins.' },
207
227
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization OPERATES the application (its type declares `ownsApplication`), so it cannot be put on the deletion path. Everything the application owns as an operator belongs to it, and nothing could re-create it — `type` is creation-time identity and no door mints a second owner. Refused at the MARK and not only at the purge, because the mark is what makes the tenant authorization-dead. SUSPENSION stays available: halting the owner tenant is incident response and is recoverable, where a purge is not.', errorCode: 'OWNER_ORGANIZATION_CANNOT_BE_DELETED' },
208
228
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },
@@ -246,7 +266,7 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
246
266
  ],
247
267
  errorScenarios: [
248
268
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role. This variant deliberately does NOT declare `admitsCrossTenantPlatformAdministration` — unlike RESTORE, ACTIVATE and `requestDeletion: admin`, which are crossed because each is reversible. Promotion has no inverse, so the caller must ALSO be a member of the target organization; the bootstrap administrator is exactly that. Opening the crossing would require a demotion door or a two-person rule, neither of which exists.' },
249
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The variant declares `requiresStepUpAuthentication` and the request carried no valid single-use re-authentication token. The act is irreversible and re-points everything the application owns as an operator, so a session must not reach it on the strength of a login that happened at some earlier point.', errorCode: 'STEP_UP_REQUIRED' },
269
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The variant declares `requiresStepUpAuthentication` and the request carried no valid single-use re-authentication token. The act is irreversible and re-points everything the application owns as an operator, so a session must not reach it on the strength of a login that happened at some earlier point.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },
250
270
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable unless the organization is currently `ACTIVE`. A suspended, marked or terminal tenant confers no authority, and an owner organization nobody can act through is not an owner. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },
251
271
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The application already has an organization of the owner type. Exactly one may exist and there is no operation that demotes one.', errorCode: 'APPLICATION_OWNER_ORGANIZATION_EXISTS' },
252
272
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'No declared organization type carries `ownsApplication`, so there is nothing to promote into. Declare one in `wildo.saas.config.ts` and run `wildo config reapply-declaration`.', errorCode: 'APPLICATION_DECLARES_NO_OWNER_ORGANIZATION_TYPE' },
@@ -275,6 +295,8 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
275
295
  'Organization `type` is creation-time policy identity; generic UPDATE strips it. ONE dedicated transition exists — `promoteToOwnerOrganization` — and it discharges the reconciliation requirement by REFUSING any move that would change member roles, membership-derived user types, or an active directory binding, rather than reconciling them. Any future transition owes the same bar: refuse, or reconcile every dependent surface in one transaction.',
276
296
  'Organization types with a registration creation policy cannot be created through either HTTP CREATE variant. Registration and registration-onboarding own the distinct route-less INTERNAL_CALL CREATE path, so direct CRUD cannot impersonate that authority.',
277
297
  'An organization type that declares `ownsApplication` names the organization OPERATING the application, and at most one such organization may exist. No service-tier CREATE may produce it — the refusal is by DOOR rather than by count, so it holds before any owner organization exists, which is exactly when the default `APP_USER` CREATE variant would otherwise have let the first registrant found it. The two doors that DO produce it are the platform bootstrap and `promoteToOwnerOrganization`.',
298
+ 'An organization type that declares `servesAsProvider` is a SERVICE FIRM whose people may work inside organizations of the listed `clientOrganizationTypes`, under a relationship the CLIENT controls (`serviceProviderRelationships`, stored in the client; the firm sees its `serviceEngagements` mirror). The declaration only makes such relationships possible — each one is still proposed or accepted by the client\'s owner, may be confined to some of its organization units, and ends on the next request. Every `providerRoles` entry must be offered by the client type\'s `availableOrgRoles` and must not reach `ORG_ADMIN`; startup refuses either.',
299
+ 'An organization type may declare `acceptsServiceProviders.defaultExpertAdmissionPolicy` (#1612): how its organizations, as CLIENTS, admit a firm\'s experts when nobody chose — each expert admitted by the relationship (the default), or each one waiting for a client administrator\'s approval. It sits on the CLIENT type because the client owns the choice; every relationship still carries its own `expertAdmissionPolicy`, set by the client when proposing or accepting and changed by a client administrator, and that value always wins.',
278
300
  'The application-owner organization cannot be put on the deletion path: `requestDeletion` and `delete` refuse it on every declared variant, and the purge batch inherits that refusal through the INTERNAL_CALL door it dispatches. SUSPENSION is deliberately still allowed — halting the owner tenant is incident response and is recoverable, where a purge is not.',
279
301
  // DELETE deliberately has NO dependents guard. An earlier revision of this spec documented a
280
302
  // 409 `ORGANIZATION_HAS_DEPENDENTS` naming active members, organization units and live
@@ -285,18 +307,11 @@ export const organizationsResourceSpecification = resourceSpecificationFromFront
285
307
  ],
286
308
  }), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS }), () => ({
287
309
  layout: {
288
- purpose: 'Name/slug-first layout for org settings and the super-admin org directory card.',
289
- displayPurpose: 'READ is one flat list of rows and documents no section. The pane titles itself with the organization name, so the body carries `slug`, `status`, `type` and `createdAt` and nothing else — no `name` row repeating the title, and no heading over the only group on the page. The `lifecycle` slot was retired with it: a section holding one timestamp is a heading with a row under it rather than a grouping. EDIT still groups, under `overview`.',
290
- sections: {
291
- overview: {
292
- purpose: 'Primary identity block: `name`, `slug`, `status`, and `type` for the tenant.',
293
- whenToUse: 'The EDIT form only. READ documents no section — see `displayPurpose`.',
294
- textSlots: {
295
- title: { purpose: 'Label the identity overview card.' },
296
- description: { purpose: 'Explain that these fields define the canonical customer record in Wildo.' },
297
- },
298
- },
299
- },
310
+ purpose: 'Name-first layout for org settings (General) and the super-admin org directory card.',
311
+ headerPurpose: 'The READ identity line: the organization name as the title and its `status` badge beside it — whether the tenant is live, suspended or marked for deletion is the first thing a reader needs. Neither repeats in the body.',
312
+ displayPurpose: 'READ is one flat list of rows and documents no section: `slug`, `type` and `createdAt`. `name` and `status` are the header\'s. The `lifecycle` slot was retired because a section holding one timestamp is a heading with a row under it rather than a grouping, and the `overview` slot because a heading over the only group names the page, not a part of it.',
313
+ summaryPurpose: 'A directory card: the name as the title, then the `status` badge and the declared `type` as bare values — the two facts that tell one tenant from another. `slug` restates the name and `createdAt` answers nothing a directory scan asks.',
314
+ editPurpose: 'One flat form, no section: `name` (focused) and `slug` on every form; `status` and the declared `type` only on the admin CREATE form, since both are `excludeFromUpdate`.',
300
315
  },
301
316
  views: {
302
317
  [Op.READ]: {
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organizations.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uCAAuC,IAAI,kCAAkC,EAC7E,sCAAsC,IAAI,iCAAiC,GAC5E,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,iCAAiC,EACjC,oBAAoB,EACpB,uDAAuD,IAAI,oBAAoB,GAChF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,G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,EAAE;oBACL,OAAO,EAAE,yFAAyF;oBAClG,SAAS,EAAE,8FAA8F;iBAC1G;aACF;SACF;QACD,CAAC,iCAAiC,CAAC,QAAQ,CAAC,EAAE;YAC5C,OAAO,EAAE,yDAAyD;YAClE,SAAS,EAAE,uEAAuE;SACnF;QACD,CAAC,iCAAiC,CAAC,OAAO,CAAC,EAAE;YAC3C,OAAO,EAAE,iFAAiF;YAC1F,SAAS,EAAE,qDAAqD;SACjE;QACD,CAAC,iCAAiC,CAAC,6BAA6B,CAAC,EAAE;YACjE,OAAO,EAAE,6HAA6H;YACtI,SAAS,EAAE,gOAAgO;SAC5O;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n organizationsAdminOrgResourceUIBehavior as organizationsAdminUIBehaviorSource,\n organizationsMainOrgResourceUIBehavior as organizationsMainUIBehaviorSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationSchema,\n OrganizationStatus,\n Organization_Lifecycle_Operations,\n ResourcePrimaryScope,\n organizationResourceConfiguration_InitializationFactory as organizationsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype OrgsConfig = ReturnType<typeof organizationsFactory>;\ntype OrgsCustom = NonNullable<OrgsConfig['customOperation']>;\ntype OrgsCore = OrgsConfig['coreOperations'][number];\ntype OrgsSchema = OrgsConfig['mainSchema'];\n\nconst organizationsMainUIBehavior = organizationsMainUIBehaviorSource as ResourceUIBehaviorConfig<\n OrgsCustom,\n OrgsCore,\n OrgsSchema\n>;\nconst organizationsAdminUIBehavior = organizationsAdminUIBehaviorSource as ResourceUIBehaviorConfig<\n OrgsCustom,\n OrgsCore,\n OrgsSchema\n>;\n\n/**\n * Merged `ORGANIZATIONS` UI: org self-service CRUD in main presets, super-admin\n * directory + lifecycle in admin (`organizations.resource-presets.tsx`).\n */\nexport const organizationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(organizationsMainUIBehavior),\n resourceFrontendConfiguration(organizationsAdminUIBehavior),\n ),\n resourceSpecification(\n organizationsFactory,\n OrganizationSchema,\n ({ schemaShape }) => ({\n purpose: 'Tenant (organization) record for a customer context inside the application — name, slug, type, and lifecycle state.',\n businessRole: 'The anchor for org-scoped data: members, units, entitlements, billing, and security configuration all hang off this key.',\n lifecycleRole: 'Progresses from trial through active use, suspension, and eventual cancellation or deletion under policy.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationResourceConfiguration_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: 'ORGANIZATIONS',\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: 'Organization_Lifecycle_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationsMainOrgResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationsAdminOrgResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Human label for the organization in UI and support.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n type: schemaShape.type.stringSpec({\n meaning: 'Creation-time organization policy identity selecting role, membership-grant, and authentication behavior. Required, and it must name one of the application\\'s declared organization types: a member of an organization whose type resolves to nothing cannot sign in, so a missing or undeclared type is refused at creation, and an organization whose stored type resolves to nothing (none, or one no longer declared) is typed at startup when only one type is declared, recording the value it replaced. Transitions require a dedicated dependent-policy migration.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n slug: schemaShape.slug.stringSpec({\n meaning: 'URL-safe identifier, stable for routing and APIs. Unique across the application, and creation-time identity — it cannot be edited afterwards, which is why a collision is refused at CREATE rather than reconciled later.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n ownerFloorSerializationToken: schemaShape.ownerFloorSerializationToken.numberSpec({\n meaning: 'Concurrency token for the organization-owner floor. Carries NO business meaning and is never read for one — it exists so that two concurrent owner-reducing operations write the same document and the storage engine aborts the loser. Without it the floor is open to write skew: two callers each remove a DIFFERENT owner, each observes the other still present, and both commit, leaving a tenant nobody can administer. Backend-only and hidden; a lost update on the value itself is harmless.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Subscription and access posture for the tenant.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationStatus.ACTIVE]: { meaning: 'Normal operations.' },\n [OrganizationStatus.SUSPENDED]: { meaning: 'Blocked by policy or billing until reinstated. Confers NO authority: a membership in a suspended tenant stops granting its roles, resolved per request rather than by rewriting membership records.' },\n [OrganizationStatus.TRIAL]: { meaning: 'Time-boxed evaluation.' },\n [OrganizationStatus.TRIAL_EXPIRED]: { meaning: 'Trial ended without conversion.' },\n [OrganizationStatus.CANCELLED]: { meaning: 'Customer-initiated or scheduled end. Terminal, and confers NO authority.' },\n [OrganizationStatus.DELETED]: { meaning: 'MARKED for deletion and inside its retention window — present, restorable, and conferring NO authority. Written by `request_deletion`, cleared by `restore`, and consumed by the `organization-purge` batch once `purgeScheduledAt` elapses. NOT a synonym for removed: the record and every child it owns are intact until the purge runs.' },\n },\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Load org context for members (default) or any org as super-admin (`admin` variant in factory).',\n outcome: 'Clients render the tenant record and link related org-scoped resources.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization was found and its tenant record (name, slug, type, status) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id, or the caller cannot resolve it within their tenant scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A member attempts to read an organization other than their own, or the `admin` cross-tenant read variant is used without the platform/super-admin role.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Application-wide organization directory, for platform administrators.',\n outcome: 'A paginated directory for support and platform operations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of organizations for the platform directory.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin entitlement required to enumerate every tenant in the application.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Filter/sort org directory for operators.',\n outcome: 'Matching organizations for search surfaces.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of organizations matching the name/slug/status query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin entitlement required to search across tenants.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Registration-owned tenant bootstrap (route-less internal variant), direct end-user creation (default HTTP variant), or super-admin creation (`admin` HTTP variant). Organization types governed by a registration creation policy are accepted only on the internal path.',\n outcome: 'A new `ORGANIZATIONS` row and downstream provisioning hooks run.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new organization was provisioned and is returned with its server-assigned id and starting lifecycle status.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The organization payload fails schema validation (e.g. missing `name` or a malformed `slug`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not permitted to create a tenant: self-serve bootstrap is disabled for this application, or the `admin` create variant is invoked without the super-admin role.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization already uses the requested URL-safe `slug` (or the name where the application enforces name uniqueness).', errorCode: 'ORGANIZATION_SLUG_EXISTS' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested `type` declares `ownsApplication`. The organization that OPERATES the application is not created through ANY service-tier door — the refusal is by DOOR rather than by count, so it holds before an owner organization exists, which is exactly when the default `APP_USER` variant would otherwise have let the first registrant found it. The two doors that DO produce it are the platform bootstrap and `promoteToOwnerOrganization`. CONFLICT and not 403 deliberately: a super-administrator is refused by the same rule as a registrant, so the caller’s authority is not what is lacking — and an AUTHORIZATION error would have its context stripped, leaving a client nothing stable to branch on.', errorCode: 'OWNER_ORGANIZATION_TYPE_NOT_CREATABLE' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Bootstrap a new organization',\n request: {\n name: 'Acme Corp',\n slug: 'acme-corp',\n },\n response: {\n _id: 'org_01HX2…',\n name: 'Acme Corp',\n slug: 'acme-corp',\n status: OrganizationStatus.TRIAL,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Org admin patch (default) or super-admin patch (`admin` variant) excluding immutable slug and organization type.',\n outcome: 'Field updates that propagate to org-scoped UIs and integrations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization was patched and the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation, or a caller attempts to mutate immutable `slug` / `type` identity through generic UPDATE.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org admin of this tenant nor a platform super-admin using the `admin` edit variant.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'PURGE — irreversible destruction of a tenant at the end of its retention window. No longer the tenant-facing delete: an org admin uses `request_deletion`, which marks the tenant instead.',\n outcome: 'The tenant row is hard-deleted and every enabled `onParentDelete` cascade in the resource registry runs, including organization members. Cascade edges resolve their own per-edge strategy, so children declared `IMPERSONALIZE_AND_RETAIN` are scrubbed and kept rather than removed. Deliberately retained edges (billing accounts and subscriptions, audit logs, job executions) survive the tenant by design. Emits `ORGANIZATION_DELETED`, the evidence of what was destroyed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The organization record was deleted and its registry-declared cascades ran; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization OPERATES the application (its type declares `ownsApplication`), so it cannot be put on the deletion path. Everything the application owns as an operator belongs to it, and nothing could re-create it — `type` is creation-time identity and no door mints a second owner. Refused on BOTH declared doors — the route-less INTERNAL_CALL the purge batch dispatches and the super-administrator’s immediate-purge `admin` variant — so the batch skips the tenant and logs rather than destroying it. SUSPENSION stays available: halting the owner tenant is incident response and is recoverable, where a purge is not.', errorCode: 'OWNER_ORGANIZATION_CANNOT_BE_DELETED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role, OR holds it but is not a member of the target organization. Unlike `restore`, `activate` and `requestDeletion: admin`, this variant deliberately does NOT declare `admitsCrossTenantPlatformAdministration` (decided 2026-08-05): it is irreversible, whole-tenant, cascading, and skips the retention window on purpose, so crossing it would turn a compromised platform credential from a per-tenant threat into an any-tenant one. The sanctioned operator takedown path is `requestDeletion: admin` (mark + notify + window, undoable by `restore`). Opening this one would require shipping a mandatory justification, a separable high-severity audit event, and a two-person rule alongside it. Only the `admin` variant is reachable over HTTP; the default variant is a route-less INTERNAL_CALL owned by the `organization-purge` batch, so no client can skip the retention window.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `admin` variant declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot.', errorCode: 'STEP_UP_REQUIRED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id (or it was already purged).' },\n ],\n idempotent: true,\n },\n [Organization_Lifecycle_Operations.REQUEST_DELETION]: {\n operationId: Organization_Lifecycle_Operations.REQUEST_DELETION,\n purpose: 'Mark the tenant for deletion — the tenant-facing delete. Replaces the former org-admin `DELETE` door.',\n outcome: 'The tenant becomes authorization-dead immediately and stays data-alive until the retention window elapses. NOW: `status` flips to `DELETED`, `deletionRequestedAt` and `purgeScheduledAt` are stamped, every affected user’s global `userTypes` are reconciled and their tokens invalidated, and members are notified. LATER: the `organization-purge` batch destroys the tenant once `purgeScheduledAt` has passed. No rows are removed here — membership rows in particular are preserved precisely so `restore` can re-derive organization-scoped authority from them.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned to `DELETED` with its purge deadline stamped; the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin role (default variant) or the platform super-admin role (`admin` variant) that gates this destructive transition. Only the `admin` variant declares `admitsCrossTenantPlatformAdministration`: an operator marks a tenant they are not a member of, which is the takedown path for a legal order or abuse report. It is the REVERSIBLE destructive door — mark, notify, window — crossed together with RESTORE deliberately, since a marking door without its release would be a one-way door calling itself a window.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot clear it and must route the teardown through the `admin` variant.', errorCode: 'STEP_UP_REQUIRED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'REQUEST_DELETION is unavailable for the organization’s current status — it is enabled only from `ACTIVE`, `TRIAL`, `TRIAL_EXPIRED` or `SUSPENDED`. From `DELETED` (already marked) or the terminal `CANCELLED` the operation is disabled, so a double-mark cannot silently re-arm the retention window. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled). On the default variant the `SUSPENDED` arm is additionally unreachable, because a suspended tenant confers no authority to its own admins.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization OPERATES the application (its type declares `ownsApplication`), so it cannot be put on the deletion path. Everything the application owns as an operator belongs to it, and nothing could re-create it — `type` is creation-time identity and no door mints a second owner. Refused at the MARK and not only at the purge, because the mark is what makes the tenant authorization-dead. SUSPENSION stays available: halting the owner tenant is incident response and is recoverable, where a purge is not.', errorCode: 'OWNER_ORGANIZATION_CANNOT_BE_DELETED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: false,\n },\n [Organization_Lifecycle_Operations.RESTORE]: {\n operationId: Organization_Lifecycle_Operations.RESTORE,\n purpose: 'Cancel a pending tenant deletion inside its retention window (platform super-admin).',\n outcome: 'The tenant returns to `ACTIVE`, its deletion marks are cleared, and each affected user’s global `userTypes` are re-granted. Organization-scoped authority needs no restoration step: it is recomputed per request from the tenant status, over membership rows the mark deliberately left untouched.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned back to `ACTIVE` with its deletion marks cleared; the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role. There is deliberately NO org-scoped variant: a `DELETED` tenant confers no authority, so its own admin could never satisfy one — recovery is a provider-side action, as it is in comparable systems. The variant declares `admitsCrossTenantPlatformAdministration`, so a platform super-administrator reaches it WITHOUT being a member of the marked tenant. That crossing is what makes the retention window a real safety net: until 2026-08-05 the operator was refused by the tenant-boundary check too, so a marked tenant could be restored by NOBODY and was always collected by the purge batch.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'RESTORE is unavailable unless the organization is currently `DELETED`. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id — the retention window has elapsed and the tenant was purged, or the id is unknown. There is no separate “too late to restore” state: if the row is present it is restorable.' },\n ],\n idempotent: false,\n },\n [Organization_Lifecycle_Operations.ACTIVATE]: {\n operationId: Organization_Lifecycle_Operations.ACTIVATE,\n purpose: 'Return a halted or expired organization to normal operation (super-admin). Also the trial-conversion path.',\n outcome: 'The tenant transitions to `ACTIVE` and immediately confers its members’ organization roles again — authority is recomputed per request from the tenant status over membership rows suspension never touched. Membership-derived GLOBAL `userTypes` withdrawn while the tenant was halted are re-granted from configuration (additive and idempotent, so a member who never lost one is untouched). Emits `ORGANIZATION_ACTIVATED` carrying the status it came FROM, so lifting a suspension stays distinguishable from converting a lapsed trial. Notifications fan out to org leadership.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned to `ACTIVE` and the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin role that gates organization lifecycle transitions. The variant declares `admitsCrossTenantPlatformAdministration`, so that role is sufficient on its own — membership of the target tenant is NOT additionally required, and could not be relied upon: ACTIVATE runs only from `SUSPENDED` or `TRIAL_EXPIRED`, and a `SUSPENDED` tenant confers no authority to its own members.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'ACTIVATE is unavailable for the organization’s current status — it is enabled only from `SUSPENDED` or `TRIAL_EXPIRED`. From `ACTIVE` (a no-op) or the terminal `CANCELLED`/`DELETED` states the operation is disabled. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Organization_Lifecycle_Operations.PROMOTE_TO_OWNER_ORGANIZATION]: {\n operationId: Organization_Lifecycle_Operations.PROMOTE_TO_OWNER_ORGANIZATION,\n purpose: 'Name this organization as the one that OPERATES the application — the paired mutation path for the otherwise-immutable `type`.',\n outcome: 'The tenant’s `type` becomes the declared type that carries `ownsApplication`, and everything the application owns as an operator resolves to this organization from then on. NOTHING about anyone’s authority moves: the operation refuses rather than reconciling whenever the owner type would grant fewer user types, would not offer a role a membership holds, or would drop an active directory binding. Emits `ORGANIZATION_TYPE_ASSIGNED` with basis `operator_promotion`, the type it replaced, the operator, and their mandatory `justification` — the only basis of that event that names a person, because the other two are boot-time derivations. Exactly one organization may ever be promoted, and there is no demotion door. No notification is sent, deliberately: the operation is uncrossed, so the caller is a member of the very organization being promoted and there is no outside party for a tenant to be told about — the audit row naming the actor and their justification is the record this act owes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization now carries the owner type and the updated tenant record is returned. Idempotent: promoting an organization that already holds the type changes nothing and records nothing.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role. This variant deliberately does NOT declare `admitsCrossTenantPlatformAdministration` — unlike RESTORE, ACTIVATE and `requestDeletion: admin`, which are crossed because each is reversible. Promotion has no inverse, so the caller must ALSO be a member of the target organization; the bootstrap administrator is exactly that. Opening the crossing would require a demotion door or a two-person rule, neither of which exists.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The variant declares `requiresStepUpAuthentication` and the request carried no valid single-use re-authentication token. The act is irreversible and re-points everything the application owns as an operator, so a session must not reach it on the strength of a login that happened at some earlier point.', errorCode: 'STEP_UP_REQUIRED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable unless the organization is currently `ACTIVE`. A suspended, marked or terminal tenant confers no authority, and an owner organization nobody can act through is not an owner. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The application already has an organization of the owner type. Exactly one may exist and there is no operation that demotes one.', errorCode: 'APPLICATION_OWNER_ORGANIZATION_EXISTS' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'No declared organization type carries `ownsApplication`, so there is nothing to promote into. Declare one in `wildo.saas.config.ts` and run `wildo config reapply-declaration`.', errorCode: 'APPLICATION_DECLARES_NO_OWNER_ORGANIZATION_TYPE' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The owner type would change what this organization’s members are or may hold: it grants fewer `userTypes` than the current type, a membership holds a role it does not list in `availableOrgRoles`, or the organization is actively managed by a directory and the owner type does not declare `scimProvisioning`. The refusal names which mismatch and the exact values; widen the owner type in the declaration and retry. Refusing rather than revoking and re-granting is what keeps the promotion a change of IDENTITY that touches nobody’s authority.', errorCode: 'OWNER_PROMOTION_INCOMPATIBLE_WITH_TARGET_TYPE' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Organization_Lifecycle_Operations.SUSPEND]: {\n operationId: Organization_Lifecycle_Operations.SUSPEND,\n purpose: 'Halt an organization for abuse, billing, or compliance (super-admin).',\n outcome: 'The tenant transitions to `SUSPENDED` and STOPS CONFERRING AUTHORITY: every member loses their organization roles at once, resolved per request rather than by editing membership rows, so the change is complete the moment it commits and is fully reversed by `ACTIVATE`. Members are emailed unless `notifyMembers` is false — a deliberately quiet hold is supported and is recorded in the audit event. Membership-derived GLOBAL `userTypes` are also reconciled: a membership in a non-authority-conferring tenant no longer justifies such a grant, so suspending an organization withdraws what it was vouching for platform-wide, and users who actually lose a grant have their tokens invalidated. `activate` restores them. Emits `ORGANIZATION_SUSPENDED` with the reason, the prior status, and how many users lost a global grant.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned to `SUSPENDED` and the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin role that gates organization lifecycle transitions.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'SUSPEND is unavailable for the organization’s current status — it is enabled only from `ACTIVE` or `TRIAL`. From `SUSPENDED` (a no-op) or the terminal `CANCELLED`/`DELETED` states the operation is disabled. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Registry self-anchor is `ORGANIZATIONS` for the ORGANIZATIONS primary scope; align `resourcePrimaryScope` with the factory.',\n 'Organization `type` is creation-time policy identity; generic UPDATE strips it. ONE dedicated transition exists — `promoteToOwnerOrganization` — and it discharges the reconciliation requirement by REFUSING any move that would change member roles, membership-derived user types, or an active directory binding, rather than reconciling them. Any future transition owes the same bar: refuse, or reconcile every dependent surface in one transaction.',\n 'Organization types with a registration creation policy cannot be created through either HTTP CREATE variant. Registration and registration-onboarding own the distinct route-less INTERNAL_CALL CREATE path, so direct CRUD cannot impersonate that authority.',\n 'An organization type that declares `ownsApplication` names the organization OPERATING the application, and at most one such organization may exist. No service-tier CREATE may produce it — the refusal is by DOOR rather than by count, so it holds before any owner organization exists, which is exactly when the default `APP_USER` CREATE variant would otherwise have let the first registrant found it. The two doors that DO produce it are the platform bootstrap and `promoteToOwnerOrganization`.',\n 'The application-owner organization cannot be put on the deletion path: `requestDeletion` and `delete` refuse it on every declared variant, and the purge batch inherits that refusal through the INTERNAL_CALL door it dispatches. SUSPENSION is deliberately still allowed — halting the owner tenant is incident response and is recoverable, where a purge is not.',\n // DELETE deliberately has NO dependents guard. An earlier revision of this spec documented a\n // 409 `ORGANIZATION_HAS_DEPENDENTS` naming active members, organization units and live\n // subscriptions as blockers; it was removed (2026-07-29) because each named dependent\n // contradicts the tenant-teardown contract rather than supporting it. Kept as a constraint so\n // the refusal is not re-derived as a \"missing\" guard.\n 'Deleting an organization is never refused for having dependents. Organization units are cascade-deleted with the tenant (every unit carries the tenant id, so the whole tree goes in one pass). Billing accounts and subscriptions are retained on purpose by the billing-retention decision, which explicitly accepts the resulting dangling tenant reference so the financial audit trail outlives the tenant. And blocking on active members would be self-defeating: the default DELETE variant is performed BY an org admin, who is himself an active member, so such a guard could never pass.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n layout: {\n purpose: 'Name/slug-first layout for org settings and the super-admin org directory card.',\n displayPurpose: 'READ is one flat list of rows and documents no section. The pane titles itself with the organization name, so the body carries `slug`, `status`, `type` and `createdAt` and nothing else — no `name` row repeating the title, and no heading over the only group on the page. The `lifecycle` slot was retired with it: a section holding one timestamp is a heading with a row under it rather than a grouping. EDIT still groups, under `overview`.',\n sections: {\n overview: {\n purpose: 'Primary identity block: `name`, `slug`, `status`, and `type` for the tenant.',\n whenToUse: 'The EDIT form only. READ documents no section — see `displayPurpose`.',\n textSlots: {\n title: { purpose: 'Label the identity overview card.' },\n description: { purpose: 'Explain that these fields define the canonical customer record in Wildo.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: {\n variants: {\n default: {\n purpose: 'Member-facing read of the current organization in standard app context.',\n whenToUse: 'Org home and any surface scoped to the active tenant.',\n },\n admin: {\n purpose: 'Super-admin read of any customer organization (factory `admin` variant).',\n whenToUse: 'Platform and support org detail drawers.',\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Platform listing of all organizations (merged admin preset only; main bundle does not surface LIST).',\n whenToUse: 'Directory and org-picker rows for app administrators.',\n },\n [Op.SEARCH]: {\n purpose: 'Filterable org search in app-admin consoles.',\n whenToUse: 'Lookup by name, slug, or status when managing many tenants.',\n },\n [Op.CREATE]: {\n variants: {\n default: {\n purpose: 'Self-serve or guided creation of a new org by an authenticated user.',\n whenToUse: 'Onboarding where users can stand up a tenant without platform admin tools.',\n },\n admin: {\n purpose: 'Back-office or migration flows where a super-admin creates an org for a customer.',\n whenToUse: 'Manual provisioning, imports, and partner enablement — addressable in merged preset.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n default: {\n purpose: 'Org administrators edit mutable fields (not slug) in product settings.',\n whenToUse: 'Renaming, status transitions permitted to org roles.',\n },\n admin: {\n purpose: 'Super-admin correction or elevated edits across tenants.',\n whenToUse: 'Support, compliance, and data-fix workflows.',\n },\n },\n },\n [Op.DELETE]: {\n variants: {\n admin: {\n purpose: 'Platform-driven immediate tenant purge that bypasses the retention window (high trust).',\n whenToUse: 'Exceptional abuse, legal-order, or emergency takedowns that cannot wait for scheduled purge.',\n },\n },\n },\n [Organization_Lifecycle_Operations.ACTIVATE]: {\n purpose: 'Restore operations after a suspension in app-admin UIs.',\n whenToUse: 'Reinstatement from billing recovery or false-positive security holds.',\n },\n [Organization_Lifecycle_Operations.SUSPEND]: {\n purpose: 'Emergency or policy hold that blocks org access while retaining data for audit.',\n whenToUse: 'Non-payment, ToS, or law-enforcement–driven pauses.',\n },\n [Organization_Lifecycle_Operations.PROMOTE_TO_OWNER_ORGANIZATION]: {\n purpose: 'Declare which organization operates this application, on a deployment that adopted the marker after it was already running.',\n whenToUse: 'Once, by a super-administrator who is a member of the organization being promoted. A deployment created after the marker was declared never needs it — the platform seeds the owner organization with the first administrator.',\n },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"organizations.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organizations.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uCAAuC,IAAI,kCAAkC,EAC7E,sCAAsC,IAAI,iCAAiC,GAC5E,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,iCAAiC,EACjC,oBAAoB,EACpB,uDAAuD,IAAI,oBAAoB,EAC/E,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,2BAA2B,GAAG,iCAInC,CAAC;AACF,MAAM,4BAA4B,GAAG,kCAIpC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,8CAA8C,CAC9F,m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AAS,EAAE,sFAAsF;iBAClG;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP,OAAO,EAAE,wEAAwE;oBACjF,SAAS,EAAE,sDAAsD;iBAClE;gBACD,KAAK,EAAE;oBACL,OAAO,EAAE,0DAA0D;oBACnE,SAAS,EAAE,8CAA8C;iBAC1D;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,yFAAyF;oBAClG,SAAS,EAAE,8FAA8F;iBAC1G;aACF;SACF;QACD,CAAC,iCAAiC,CAAC,QAAQ,CAAC,EAAE;YAC5C,OAAO,EAAE,yDAAyD;YAClE,SAAS,EAAE,uEAAuE;SACnF;QACD,CAAC,iCAAiC,CAAC,OAAO,CAAC,EAAE;YAC3C,OAAO,EAAE,iFAAiF;YAC1F,SAAS,EAAE,qDAAqD;SACjE;QACD,CAAC,iCAAiC,CAAC,6BAA6B,CAAC,EAAE;YACjE,OAAO,EAAE,6HAA6H;YACtI,SAAS,EAAE,gOAAgO;SAC5O;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n organizationsAdminOrgResourceUIBehavior as organizationsAdminUIBehaviorSource,\n organizationsMainOrgResourceUIBehavior as organizationsMainUIBehaviorSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationSchema,\n OrganizationStatus,\n Organization_Lifecycle_Operations,\n ResourcePrimaryScope,\n organizationResourceConfiguration_InitializationFactory as organizationsFactory,\n ErrorCustomMessageReference,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype OrgsConfig = ReturnType<typeof organizationsFactory>;\ntype OrgsCustom = NonNullable<OrgsConfig['customOperation']>;\ntype OrgsCore = OrgsConfig['coreOperations'][number];\ntype OrgsSchema = OrgsConfig['mainSchema'];\n\nconst organizationsMainUIBehavior = organizationsMainUIBehaviorSource as ResourceUIBehaviorConfig<\n OrgsCustom,\n OrgsCore,\n OrgsSchema\n>;\nconst organizationsAdminUIBehavior = organizationsAdminUIBehaviorSource as ResourceUIBehaviorConfig<\n OrgsCustom,\n OrgsCore,\n OrgsSchema\n>;\n\n/**\n * Merged `ORGANIZATIONS` UI: org self-service CRUD in main presets, super-admin\n * directory + lifecycle in admin (`organizations.resource-presets.tsx`).\n */\nexport const organizationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(organizationsMainUIBehavior),\n resourceFrontendConfiguration(organizationsAdminUIBehavior),\n ),\n resourceSpecification(\n organizationsFactory,\n OrganizationSchema,\n ({ schemaShape }) => ({\n purpose: 'Tenant (organization) record for a customer context inside the application — name, slug, type, and lifecycle state.',\n businessRole: 'The anchor for org-scoped data: members, units, entitlements, billing, and security configuration all hang off this key.',\n lifecycleRole: 'Progresses from trial through active use, suspension, and eventual cancellation or deletion under policy.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationResourceConfiguration_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: 'ORGANIZATIONS',\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: 'Organization_Lifecycle_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationsMainOrgResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationsAdminOrgResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Human label for the organization in UI and support.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n type: schemaShape.type.stringSpec({\n meaning: 'Creation-time organization policy identity selecting role, membership-grant, and authentication behavior. Required, and it must name one of the application\\'s declared organization types: a member of an organization whose type resolves to nothing cannot sign in, so a missing or undeclared type is refused at creation, and an organization whose stored type resolves to nothing (none, or one no longer declared) is typed at startup when only one type is declared, recording the value it replaced. Transitions require a dedicated dependent-policy migration. Shown as the type\\'s word (`system_enums.OrganizationType.<type>`, planned from `organizationTypes`), the key itself while the word is missing.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n slug: schemaShape.slug.stringSpec({\n meaning: 'URL-safe identifier, stable for routing and APIs. Unique across the application, and creation-time identity — it cannot be edited afterwards, which is why a collision is refused at CREATE rather than reconciled later.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n ownerFloorSerializationToken: schemaShape.ownerFloorSerializationToken.numberSpec({\n meaning: 'Concurrency token for the organization-owner floor. Carries NO business meaning and is never read for one — it exists so that two concurrent owner-reducing operations write the same document and the storage engine aborts the loser. Without it the floor is open to write skew: two callers each remove a DIFFERENT owner, each observes the other still present, and both commit, leaving a tenant nobody can administer. Backend-only and hidden; a lost update on the value itself is harmless.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n serviceProviderRelationshipSerializationToken: schemaShape.serviceProviderRelationshipSerializationToken.numberSpec({\n meaning: 'Concurrency token for decisions on this organization\\'s service-provider relationships. Carries NO business meaning and is never read for one — every relationship verb (from either side) writes it on the CLIENT organization inside its transaction BEFORE reading the state it decides on, so two concurrent decisions write the same row: on MongoDB the loser is retried from a fresh read, on PostgreSQL it waits for the winner and then reads its committed result. Without it two proposals could both observe no live relationship and both commit, and a resume racing a terminate could turn a TERMINATED relationship back to ACTIVE. Separate from the owner-floor token so the two unrelated decisions never conflict with each other. Backend-only and hidden.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n autonomousAgentBindingSerializationToken: schemaShape.autonomousAgentBindingSerializationToken.numberSpec({\n meaning: 'Concurrency token for binding autonomous agents to this organization\\'s OAuth clients (#1611). Carries NO business meaning and is never read for one — every `setAutonomousAgents` call writes it inside its transaction BEFORE counting the clients that already run an agent, so two concurrent binds of one agent write the same row: on MongoDB the loser is retried from a fresh read, on PostgreSQL it waits and then counts the winner. Without it both could see no binding and commit, and the agent would resolve to two principals. Backend-only and hidden.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Subscription and access posture for the tenant.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationStatus.ACTIVE]: { meaning: 'Normal operations.' },\n [OrganizationStatus.SUSPENDED]: { meaning: 'Blocked by policy or billing until reinstated. Confers NO authority: a membership in a suspended tenant stops granting its roles, resolved per request rather than by rewriting membership records.' },\n [OrganizationStatus.TRIAL]: { meaning: 'Time-boxed evaluation.' },\n [OrganizationStatus.TRIAL_EXPIRED]: { meaning: 'Trial ended without conversion.' },\n [OrganizationStatus.CANCELLED]: { meaning: 'Customer-initiated or scheduled end. Terminal, and confers NO authority.' },\n [OrganizationStatus.DELETED]: { meaning: 'MARKED for deletion and inside its retention window — present, restorable, and conferring NO authority. Written by `request_deletion`, cleared by `restore`, and consumed by the `organization-purge` batch once `purgeScheduledAt` elapses. NOT a synonym for removed: the record and every child it owns are intact until the purge runs.' },\n },\n }),\n platformAccessApprovalRequired: schemaShape.platformAccessApprovalRequired.booleanSpec({\n meaning: 'Whether a platform operator needs this organization\\'s approval before an access elevation into it becomes usable. Off by default: elevations still need a request, a justification, a time limit and an audit trail, but do not wait for someone in the organization to approve.',\n whyItMatters: 'Turning it on is the strongest operator-access posture. It does not lock support out of an organization with no usable owner, which cannot approve anything.',\n }),\n deletionRequestedAt: schemaShape.deletionRequestedAt.dateSpec({\n meaning: 'When the organization was marked for deletion. Absent unless its `status` is `DELETED`; `restore` clears it.',\n whyItMatters: 'A marked organization is still fully present and restorable. When it is actually removed is `purgeScheduledAt`, not this.',\n }),\n purgeScheduledAt: schemaShape.purgeScheduledAt.dateSpec({\n meaning: 'When a marked organization and everything it owns are permanently removed, at the end of its retention window. Absent unless the organization is marked for deletion; `restore` clears it.',\n whyItMatters: 'Until this instant the deletion can be undone with `restore`; after the purge it cannot.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Load org context for members (default) or any org as super-admin (`admin` variant in factory).',\n outcome: 'Clients render the tenant record and link related org-scoped resources.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization was found and its tenant record (name, slug, type, status) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id, or the caller cannot resolve it within their tenant scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A member attempts to read an organization other than their own, or the `admin` cross-tenant read variant is used without the platform/super-admin role.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Application-wide organization directory, for platform administrators.',\n outcome: 'A paginated directory for support and platform operations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of organizations for the platform directory.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin entitlement required to enumerate every tenant in the application.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Filter/sort org directory for operators.',\n outcome: 'Matching organizations for search surfaces.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of organizations matching the name/slug/status query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin entitlement required to search across tenants.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Registration-owned tenant bootstrap (route-less internal variant), direct end-user creation (default HTTP variant), or super-admin creation (`admin` HTTP variant). Organization types governed by a registration creation policy are accepted only on the internal path.',\n outcome: 'A new `ORGANIZATIONS` row and downstream provisioning hooks run.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new organization was provisioned and is returned with its server-assigned id and starting lifecycle status.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The organization payload fails schema validation (e.g. missing `name` or a malformed `slug`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not permitted to create a tenant: self-serve bootstrap is disabled for this application, or the `admin` create variant is invoked without the super-admin role.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization already uses the requested URL-safe `slug` (or the name where the application enforces name uniqueness).', customMessageReference: ErrorCustomMessageReference.ORGANIZATION_SLUG_EXISTS },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested `type` declares `ownsApplication`. The organization that OPERATES the application is not created through ANY service-tier door — the refusal is by DOOR rather than by count, so it holds before an owner organization exists, which is exactly when the default `APP_USER` variant would otherwise have let the first registrant found it. The two doors that DO produce it are the platform bootstrap and `promoteToOwnerOrganization`. CONFLICT and not 403 deliberately: a super-administrator is refused by the same rule as a registrant, so the caller’s authority is not what is lacking — and an AUTHORIZATION error would have its context stripped, leaving a client nothing stable to branch on.', errorCode: 'OWNER_ORGANIZATION_TYPE_NOT_CREATABLE' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Bootstrap a new organization',\n request: {\n name: 'Acme Corp',\n slug: 'acme-corp',\n },\n response: {\n _id: 'org_01HX2…',\n name: 'Acme Corp',\n slug: 'acme-corp',\n status: OrganizationStatus.TRIAL,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Org admin patch (default) or super-admin patch (`admin` variant) excluding immutable slug and organization type.',\n outcome: 'Field updates that propagate to org-scoped UIs and integrations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization was patched and the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation, or a caller attempts to mutate immutable `slug` / `type` identity through generic UPDATE.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org admin of this tenant nor a platform super-admin using the `admin` edit variant.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'PURGE — irreversible destruction of a tenant at the end of its retention window. No longer the tenant-facing delete: an org admin uses `request_deletion`, which marks the tenant instead.',\n outcome: 'The tenant row is hard-deleted and every enabled `onParentDelete` cascade in the resource registry runs, including organization members. Cascade edges resolve their own per-edge strategy, so children declared `IMPERSONALIZE_AND_RETAIN` are scrubbed and kept rather than removed. Deliberately retained edges (billing accounts and subscriptions, audit logs, job executions) survive the tenant by design. Before its rows go, every live service-provider relationship the tenant is party to is ended in the same transaction — TERMINATED where it is the client, WITHDRAWN where it is the provider firm — together with the firm\\'s engagement record, the experts\\' ACTIVE assignments and their ACTIVE provider memberships in the client, so the surviving tenant keeps no live record for a party that no longer exists; a SUSPENDED provider membership, the client\\'s own decision about that person, is kept. A refused delete ends nothing. Emits `ORGANIZATION_DELETED`, the evidence of what was destroyed, once the delete commits.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The organization record was deleted and its registry-declared cascades ran; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization OPERATES the application (its type declares `ownsApplication`), so it cannot be put on the deletion path. Everything the application owns as an operator belongs to it, and nothing could re-create it — `type` is creation-time identity and no door mints a second owner. Refused on BOTH declared doors — the route-less INTERNAL_CALL the purge batch dispatches and the super-administrator’s immediate-purge `admin` variant — so the batch skips the tenant and logs rather than destroying it. SUSPENSION stays available: halting the owner tenant is incident response and is recoverable, where a purge is not.', errorCode: 'OWNER_ORGANIZATION_CANNOT_BE_DELETED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role, OR holds it but is not a member of the target organization. Unlike `restore`, `activate` and `requestDeletion: admin`, this variant deliberately does NOT declare `admitsCrossTenantPlatformAdministration` (decided 2026-08-05): it is irreversible, whole-tenant, cascading, and skips the retention window on purpose, so crossing it would turn a compromised platform credential from a per-tenant threat into an any-tenant one. The sanctioned operator takedown path is `requestDeletion: admin` (mark + notify + window, undoable by `restore`). Opening this one would require shipping a mandatory justification, a separable high-severity audit event, and a two-person rule alongside it. Only the `admin` variant is reachable over HTTP; the default variant is a route-less INTERNAL_CALL owned by the `organization-purge` batch, so no client can skip the retention window.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `admin` variant declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id (or it was already purged).' },\n ],\n idempotent: true,\n },\n [Organization_Lifecycle_Operations.REQUEST_DELETION]: {\n operationId: Organization_Lifecycle_Operations.REQUEST_DELETION,\n purpose: 'Mark the tenant for deletion — the tenant-facing delete. Replaces the former org-admin `DELETE` door.',\n outcome: 'The tenant becomes authorization-dead immediately and stays data-alive until the retention window elapses. NOW: `status` flips to `DELETED`, `deletionRequestedAt` and `purgeScheduledAt` are stamped, every affected user’s global `userTypes` are reconciled and their tokens invalidated, and members are notified. LATER: the `organization-purge` batch destroys the tenant once `purgeScheduledAt` has passed. No rows are removed here — membership rows in particular are preserved precisely so `restore` can re-derive organization-scoped authority from them.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned to `DELETED` with its purge deadline stamped; the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin role (default variant) or the platform super-admin role (`admin` variant) that gates this destructive transition. Only the `admin` variant declares `admitsCrossTenantPlatformAdministration`: an operator marks a tenant they are not a member of, which is the takedown path for a legal order or abuse report. It is the REVERSIBLE destructive door — mark, notify, window — crossed together with RESTORE deliberately, since a marking door without its release would be a one-way door calling itself a window.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it. Re-authentication accepts a password, an enrolled second factor (a TOTP code or a backup code), or a passkey assertion, so a directory-managed (SCIM) user whose local first factor the framework destroys by design can still clear this gate through an enrolled second factor. A principal holding none of the three cannot clear it and must route the teardown through the `admin` variant.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'REQUEST_DELETION is unavailable for the organization’s current status — it is enabled only from `ACTIVE`, `TRIAL`, `TRIAL_EXPIRED` or `SUSPENDED`. From `DELETED` (already marked) or the terminal `CANCELLED` the operation is disabled, so a double-mark cannot silently re-arm the retention window. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled). On the default variant the `SUSPENDED` arm is additionally unreachable, because a suspended tenant confers no authority to its own admins.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization OPERATES the application (its type declares `ownsApplication`), so it cannot be put on the deletion path. Everything the application owns as an operator belongs to it, and nothing could re-create it — `type` is creation-time identity and no door mints a second owner. Refused at the MARK and not only at the purge, because the mark is what makes the tenant authorization-dead. SUSPENSION stays available: halting the owner tenant is incident response and is recoverable, where a purge is not.', errorCode: 'OWNER_ORGANIZATION_CANNOT_BE_DELETED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: false,\n },\n [Organization_Lifecycle_Operations.RESTORE]: {\n operationId: Organization_Lifecycle_Operations.RESTORE,\n purpose: 'Cancel a pending tenant deletion inside its retention window (platform super-admin).',\n outcome: 'The tenant returns to `ACTIVE`, its deletion marks are cleared, and each affected user’s global `userTypes` are re-granted. Organization-scoped authority needs no restoration step: it is recomputed per request from the tenant status, over membership rows the mark deliberately left untouched.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned back to `ACTIVE` with its deletion marks cleared; the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role. There is deliberately NO org-scoped variant: a `DELETED` tenant confers no authority, so its own admin could never satisfy one — recovery is a provider-side action, as it is in comparable systems. The variant declares `admitsCrossTenantPlatformAdministration`, so a platform super-administrator reaches it WITHOUT being a member of the marked tenant. That crossing is what makes the retention window a real safety net: until 2026-08-05 the operator was refused by the tenant-boundary check too, so a marked tenant could be restored by NOBODY and was always collected by the purge batch.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'RESTORE is unavailable unless the organization is currently `DELETED`. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id — the retention window has elapsed and the tenant was purged, or the id is unknown. There is no separate “too late to restore” state: if the row is present it is restorable.' },\n ],\n idempotent: false,\n },\n [Organization_Lifecycle_Operations.ACTIVATE]: {\n operationId: Organization_Lifecycle_Operations.ACTIVATE,\n purpose: 'Return a halted or expired organization to normal operation (super-admin). Also the trial-conversion path.',\n outcome: 'The tenant transitions to `ACTIVE` and immediately confers its members’ organization roles again — authority is recomputed per request from the tenant status over membership rows suspension never touched. Membership-derived GLOBAL `userTypes` withdrawn while the tenant was halted are re-granted from configuration (additive and idempotent, so a member who never lost one is untouched). Emits `ORGANIZATION_ACTIVATED` carrying the status it came FROM, so lifting a suspension stays distinguishable from converting a lapsed trial. Notifications fan out to org leadership.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned to `ACTIVE` and the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin role that gates organization lifecycle transitions. The variant declares `admitsCrossTenantPlatformAdministration`, so that role is sufficient on its own — membership of the target tenant is NOT additionally required, and could not be relied upon: ACTIVATE runs only from `SUSPENDED` or `TRIAL_EXPIRED`, and a `SUSPENDED` tenant confers no authority to its own members.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'ACTIVATE is unavailable for the organization’s current status — it is enabled only from `SUSPENDED` or `TRIAL_EXPIRED`. From `ACTIVE` (a no-op) or the terminal `CANCELLED`/`DELETED` states the operation is disabled. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Organization_Lifecycle_Operations.PROMOTE_TO_OWNER_ORGANIZATION]: {\n operationId: Organization_Lifecycle_Operations.PROMOTE_TO_OWNER_ORGANIZATION,\n purpose: 'Name this organization as the one that OPERATES the application — the paired mutation path for the otherwise-immutable `type`.',\n outcome: 'The tenant’s `type` becomes the declared type that carries `ownsApplication`, and everything the application owns as an operator resolves to this organization from then on. NOTHING about anyone’s authority moves: the operation refuses rather than reconciling whenever the owner type would grant fewer user types, would not offer a role a membership holds, or would drop an active directory binding. Emits `ORGANIZATION_TYPE_ASSIGNED` with basis `operator_promotion`, the type it replaced, the operator, and their mandatory `justification` — the only basis of that event that names a person, because the other two are boot-time derivations. Exactly one organization may ever be promoted, and there is no demotion door. No notification is sent, deliberately: the operation is uncrossed, so the caller is a member of the very organization being promoted and there is no outside party for a tenant to be told about — the audit row naming the actor and their justification is the record this act owes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization now carries the owner type and the updated tenant record is returned. Idempotent: promoting an organization that already holds the type changes nothing and records nothing.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform super-admin role. This variant deliberately does NOT declare `admitsCrossTenantPlatformAdministration` — unlike RESTORE, ACTIVATE and `requestDeletion: admin`, which are crossed because each is reversible. Promotion has no inverse, so the caller must ALSO be a member of the target organization; the bootstrap administrator is exactly that. Opening the crossing would require a demotion door or a two-person rule, neither of which exists.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The variant declares `requiresStepUpAuthentication` and the request carried no valid single-use re-authentication token. The act is irreversible and re-points everything the application owns as an operator, so a session must not reach it on the strength of a login that happened at some earlier point.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation is unavailable unless the organization is currently `ACTIVE`. A suspended, marked or terminal tenant confers no authority, and an owner organization nobody can act through is not an owner. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The application already has an organization of the owner type. Exactly one may exist and there is no operation that demotes one.', errorCode: 'APPLICATION_OWNER_ORGANIZATION_EXISTS' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'No declared organization type carries `ownsApplication`, so there is nothing to promote into. Declare one in `wildo.saas.config.ts` and run `wildo config reapply-declaration`.', errorCode: 'APPLICATION_DECLARES_NO_OWNER_ORGANIZATION_TYPE' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The owner type would change what this organization’s members are or may hold: it grants fewer `userTypes` than the current type, a membership holds a role it does not list in `availableOrgRoles`, or the organization is actively managed by a directory and the owner type does not declare `scimProvisioning`. The refusal names which mismatch and the exact values; widen the owner type in the declaration and retry. Refusing rather than revoking and re-granting is what keeps the promotion a change of IDENTITY that touches nobody’s authority.', errorCode: 'OWNER_PROMOTION_INCOMPATIBLE_WITH_TARGET_TYPE' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Organization_Lifecycle_Operations.SUSPEND]: {\n operationId: Organization_Lifecycle_Operations.SUSPEND,\n purpose: 'Halt an organization for abuse, billing, or compliance (super-admin).',\n outcome: 'The tenant transitions to `SUSPENDED` and STOPS CONFERRING AUTHORITY: every member loses their organization roles at once, resolved per request rather than by editing membership rows, so the change is complete the moment it commits and is fully reversed by `ACTIVATE`. Members are emailed unless `notifyMembers` is false — a deliberately quiet hold is supported and is recorded in the audit event. Membership-derived GLOBAL `userTypes` are also reconciled: a membership in a non-authority-conferring tenant no longer justifies such a grant, so suspending an organization withdraws what it was vouching for platform-wide, and users who actually lose a grant have their tokens invalidated. `activate` restores them. Emits `ORGANIZATION_SUSPENDED` with the reason, the prior status, and how many users lost a global grant.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization transitioned to `SUSPENDED` and the updated tenant record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/super-admin role that gates organization lifecycle transitions.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'SUSPEND is unavailable for the organization’s current status — it is enabled only from `ACTIVE` or `TRIAL`. From `SUSPENDED` (a no-op) or the terminal `CANCELLED`/`DELETED` states the operation is disabled. Enforced as conditional availability (`enabledCondition`) on both the frontend (the action is disabled) and the backend (rejected as operation-disabled).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Registry self-anchor is `ORGANIZATIONS` for the ORGANIZATIONS primary scope; align `resourcePrimaryScope` with the factory.',\n 'Organization `type` is creation-time policy identity; generic UPDATE strips it. ONE dedicated transition exists — `promoteToOwnerOrganization` — and it discharges the reconciliation requirement by REFUSING any move that would change member roles, membership-derived user types, or an active directory binding, rather than reconciling them. Any future transition owes the same bar: refuse, or reconcile every dependent surface in one transaction.',\n 'Organization types with a registration creation policy cannot be created through either HTTP CREATE variant. Registration and registration-onboarding own the distinct route-less INTERNAL_CALL CREATE path, so direct CRUD cannot impersonate that authority.',\n 'An organization type that declares `ownsApplication` names the organization OPERATING the application, and at most one such organization may exist. No service-tier CREATE may produce it — the refusal is by DOOR rather than by count, so it holds before any owner organization exists, which is exactly when the default `APP_USER` CREATE variant would otherwise have let the first registrant found it. The two doors that DO produce it are the platform bootstrap and `promoteToOwnerOrganization`.',\n 'An organization type that declares `servesAsProvider` is a SERVICE FIRM whose people may work inside organizations of the listed `clientOrganizationTypes`, under a relationship the CLIENT controls (`serviceProviderRelationships`, stored in the client; the firm sees its `serviceEngagements` mirror). The declaration only makes such relationships possible — each one is still proposed or accepted by the client\\'s owner, may be confined to some of its organization units, and ends on the next request. Every `providerRoles` entry must be offered by the client type\\'s `availableOrgRoles` and must not reach `ORG_ADMIN`; startup refuses either.',\n 'An organization type may declare `acceptsServiceProviders.defaultExpertAdmissionPolicy` (#1612): how its organizations, as CLIENTS, admit a firm\\'s experts when nobody chose — each expert admitted by the relationship (the default), or each one waiting for a client administrator\\'s approval. It sits on the CLIENT type because the client owns the choice; every relationship still carries its own `expertAdmissionPolicy`, set by the client when proposing or accepting and changed by a client administrator, and that value always wins.',\n 'The application-owner organization cannot be put on the deletion path: `requestDeletion` and `delete` refuse it on every declared variant, and the purge batch inherits that refusal through the INTERNAL_CALL door it dispatches. SUSPENSION is deliberately still allowed — halting the owner tenant is incident response and is recoverable, where a purge is not.',\n // DELETE deliberately has NO dependents guard. An earlier revision of this spec documented a\n // 409 `ORGANIZATION_HAS_DEPENDENTS` naming active members, organization units and live\n // subscriptions as blockers; it was removed (2026-07-29) because each named dependent\n // contradicts the tenant-teardown contract rather than supporting it. Kept as a constraint so\n // the refusal is not re-derived as a \"missing\" guard.\n 'Deleting an organization is never refused for having dependents. Organization units are cascade-deleted with the tenant (every unit carries the tenant id, so the whole tree goes in one pass). Billing accounts and subscriptions are retained on purpose by the billing-retention decision, which explicitly accepts the resulting dangling tenant reference so the financial audit trail outlives the tenant. And blocking on active members would be self-defeating: the default DELETE variant is performed BY an org admin, who is himself an active member, so such a guard could never pass.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n layout: {\n purpose: 'Name-first layout for org settings (General) and the super-admin org directory card.',\n headerPurpose: 'The READ identity line: the organization name as the title and its `status` badge beside it — whether the tenant is live, suspended or marked for deletion is the first thing a reader needs. Neither repeats in the body.',\n displayPurpose: 'READ is one flat list of rows and documents no section: `slug`, `type` and `createdAt`. `name` and `status` are the header\\'s. The `lifecycle` slot was retired because a section holding one timestamp is a heading with a row under it rather than a grouping, and the `overview` slot because a heading over the only group names the page, not a part of it.',\n summaryPurpose: 'A directory card: the name as the title, then the `status` badge and the declared `type` as bare values — the two facts that tell one tenant from another. `slug` restates the name and `createdAt` answers nothing a directory scan asks.',\n editPurpose: 'One flat form, no section: `name` (focused) and `slug` on every form; `status` and the declared `type` only on the admin CREATE form, since both are `excludeFromUpdate`.',\n },\n views: {\n [Op.READ]: {\n variants: {\n default: {\n purpose: 'Member-facing read of the current organization in standard app context.',\n whenToUse: 'Org home and any surface scoped to the active tenant.',\n },\n admin: {\n purpose: 'Super-admin read of any customer organization (factory `admin` variant).',\n whenToUse: 'Platform and support org detail drawers.',\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Platform listing of all organizations (merged admin preset only; main bundle does not surface LIST).',\n whenToUse: 'Directory and org-picker rows for app administrators.',\n },\n [Op.SEARCH]: {\n purpose: 'Filterable org search in app-admin consoles.',\n whenToUse: 'Lookup by name, slug, or status when managing many tenants.',\n },\n [Op.CREATE]: {\n variants: {\n default: {\n purpose: 'Self-serve or guided creation of a new org by an authenticated user.',\n whenToUse: 'Onboarding where users can stand up a tenant without platform admin tools.',\n },\n admin: {\n purpose: 'Back-office or migration flows where a super-admin creates an org for a customer.',\n whenToUse: 'Manual provisioning, imports, and partner enablement — addressable in merged preset.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n default: {\n purpose: 'Org administrators edit mutable fields (not slug) in product settings.',\n whenToUse: 'Renaming, status transitions permitted to org roles.',\n },\n admin: {\n purpose: 'Super-admin correction or elevated edits across tenants.',\n whenToUse: 'Support, compliance, and data-fix workflows.',\n },\n },\n },\n [Op.DELETE]: {\n variants: {\n admin: {\n purpose: 'Platform-driven immediate tenant purge that bypasses the retention window (high trust).',\n whenToUse: 'Exceptional abuse, legal-order, or emergency takedowns that cannot wait for scheduled purge.',\n },\n },\n },\n [Organization_Lifecycle_Operations.ACTIVATE]: {\n purpose: 'Restore operations after a suspension in app-admin UIs.',\n whenToUse: 'Reinstatement from billing recovery or false-positive security holds.',\n },\n [Organization_Lifecycle_Operations.SUSPEND]: {\n purpose: 'Emergency or policy hold that blocks org access while retaining data for audit.',\n whenToUse: 'Non-payment, ToS, or law-enforcement–driven pauses.',\n },\n [Organization_Lifecycle_Operations.PROMOTE_TO_OWNER_ORGANIZATION]: {\n purpose: 'Declare which organization operates this application, on a deployment that adopted the marker after it was already running.',\n whenToUse: 'Once, by a super-administrator who is a member of the organization being promoted. A deployment created after the marker was declared never needs it — the platform seeds the owner organization with the first administrator.',\n },\n },\n }),\n);\n"]}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Resources: `serviceProviderActivityFeedSettings`, `serviceProviderActivityFeed` — Wildo SaaS engine specifications
3
+ * (#1632, organization-scoped, in the PROVIDER organization).
4
+ *
5
+ * Inputs:
6
+ * - Schemas + vocabulary: engine/saas-models/src/organizations/service-provider-activity-feed.shared.schemas.ts
7
+ * - Factories: engine/saas-models/src/organizations/service-provider-activity-feed.shared.resources-config.schemas.ts
8
+ *
9
+ * The firm's opt-in, metadata-only record of what its own experts did inside client organizations. The firm decides
10
+ * whether it is collected at all (the settings row); each client decides, per relationship, how much of it concerns
11
+ * that client (`ServiceProviderRelationship.activityFeedDisclosure`). The engine writes an entry at audit time only
12
+ * when both allow it.
13
+ */
14
+ import { CoreResourceOperation as Op, ServiceProviderActivityFeedSettings_Operations, ServiceProviderActivityFeedStatus, ServiceProviderActivityOutcome } from '@wildo-ai/saas-models';
15
+ export declare const serviceProviderActivityFeedSettingsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof ServiceProviderActivityFeedSettings_Operations, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST, import("zod").ZodObject<{
16
+ _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
17
+ organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>>>;
18
+ status: 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").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ServiceProviderActivityFeedStatus>>>>>>>;
19
+ decidedByUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>;
20
+ decidedAt: 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").ZodDate>>>>>;
21
+ acknowledgedWorkerConsultationNotice: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>>>;
22
+ createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
23
+ updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
24
+ }, import("zod/v4/core").$strip>>;
25
+ export declare const serviceProviderActivityFeedResourceSpecification: import("../../../_core").ResourceSpecificationConfig<undefined, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST | Op.COUNT, import("zod").ZodObject<{
26
+ _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
27
+ organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
28
+ expertUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
29
+ clientOrganizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
30
+ relationshipId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
31
+ occurredAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>;
32
+ operationKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof Op>>>>;
33
+ resourceType: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
34
+ outcome: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ServiceProviderActivityOutcome>>>>>;
35
+ createdAt: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
36
+ updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
37
+ }, import("zod/v4/core").$strip>>;
38
+ //# sourceMappingURL=service-provider-activity-feed.resource.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-provider-activity-feed.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/service-provider-activity-feed.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,8CAA8C,EAC9C,iCAAiC,EACjC,8BAA8B,EAG/B,MAAM,uBAAuB,CAAC;AAiB/B,eAAO,MAAM,wDAAwD;;;;;;;;;iCA0EpE,CAAC;AAEF,eAAO,MAAM,gDAAgD;;;;;;;;;;;;iCAwD5D,CAAC"}