@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 +1 @@
1
- {"version":3,"file":"audit-logs.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/compliance/resources/audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,IAAI,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC5G,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,oDAAoD,IAAI,gBAAgB,GACzE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,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F,EAAE;iBAC9G;aACF;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,mEAAmE;gBAC5E,SAAS,EAAE,8DAA8D;gBACzE,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;oBAC9C,WAAW,EAAE,EAAE,OAAO,EAAE,gGAAgG,EAAE;iBAC3H;aACF;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,0FAA0F;gBACnG,SAAS,EAAE,+EAA+E;gBAC1F,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE;oBACvD,WAAW,EAAE,EAAE,OAAO,EAAE,8FAA8F,EAAE;iBACzH;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,mRAAmR,EAAE,SAAS,EAAE,+FAA+F,EAAE;QACvZ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kGAAkG,EAAE,SAAS,EAAE,gFAAgF,EAAE;QACzN,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0GAA0G,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC3L,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,EAAE,OAAO,EAAE,wIAAwI,EAAE,SAAS,EAAE,gGAAgG,EAAE;KAC7S;CACF,CAAC,CACH,CAAC","sourcesContent":["import { auditLogsMainResourceUIBehavior as auditLogsUIBehaviorSource } 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 AuditableEvent_BaseSchema,\n AuditEventCategory,\n AuditEventSeverity,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n ResourceOperationRiskLevel,\n AuditLogs_Operations,\n auditLogsResourceConfiguration_InitializationFactory as auditLogsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof auditLogsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst auditLogsUIBehavior = auditLogsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst AUDIT_ORGANIZATION_ID = 'organization_01JEXAMPLE';\nconst AUDIT_APPLICATION_ID = 'application_01JEXAMPLE';\nconst AUDIT_LOG_ID = 'audit_log_01JEXAMPLE';\n\nconst AUDIT_LOG_EXAMPLE = {\n _id: AUDIT_LOG_ID,\n eventId: 'a5ad8e36-7f34-4f0e-a7f4-1454a7997721',\n userId: 'user_01JEXAMPLE',\n organizationId: AUDIT_ORGANIZATION_ID,\n applicationId: AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLE',\n frontendServiceName: 'app',\n clientInstanceId: 'client_instance_01JEXAMPLE',\n riskLevel: ResourceOperationRiskLevel.HIGH,\n eventType: 'organization.member.role.changed',\n eventData: {\n targetUserId: 'user_01JTARGET',\n previousRoles: ['ORG_MEMBER'],\n newRoles: ['ORG_ADMIN'],\n },\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n createdAt: '2026-08-20T14:32:10.000Z',\n updatedAt: '2026-08-20T14:32:10.000Z',\n _version: 1,\n} as const;\n\nconst AUDIT_LOG_CONTEXT_EXAMPLE = {\n ...AUDIT_LOG_EXAMPLE,\n organization: { _id: AUDIT_ORGANIZATION_ID },\n} as const;\n\nconst AUDIT_LOG_SUMMARY_EXAMPLE = {\n _id: AUDIT_LOG_EXAMPLE._id,\n userId: AUDIT_LOG_EXAMPLE.userId,\n organizationId: AUDIT_LOG_EXAMPLE.organizationId,\n applicationId: AUDIT_LOG_EXAMPLE.applicationId,\n correlationId: AUDIT_LOG_EXAMPLE.correlationId,\n frontendServiceName: AUDIT_LOG_EXAMPLE.frontendServiceName,\n clientInstanceId: AUDIT_LOG_EXAMPLE.clientInstanceId,\n riskLevel: AUDIT_LOG_EXAMPLE.riskLevel,\n eventType: AUDIT_LOG_EXAMPLE.eventType,\n eventCategory: AUDIT_LOG_EXAMPLE.eventCategory,\n severity: AUDIT_LOG_EXAMPLE.severity,\n createdAt: AUDIT_LOG_EXAMPLE.createdAt,\n _version: AUDIT_LOG_EXAMPLE._version,\n} as const;\n\nconst AUDIT_LOG_PAGE = {\n data: [AUDIT_LOG_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nconst AUDIT_LOG_CONTEXT_PAGE = {\n data: [AUDIT_LOG_CONTEXT_EXAMPLE],\n pagination: AUDIT_LOG_PAGE.pagination,\n} as const;\n\nconst AUDIT_LOG_SUMMARY_PAGE = {\n data: [AUDIT_LOG_SUMMARY_EXAMPLE],\n pagination: AUDIT_LOG_PAGE.pagination,\n} as const;\n\nconst AUDIT_LOG_LIST_REQUEST = {\n organizationId: AUDIT_ORGANIZATION_ID,\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n createdAt: {\n startDate: '2026-08-20T00:00:00.000Z',\n endDate: '2026-08-21T00:00:00.000Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc,eventId:desc',\n} as const;\n\nexport const auditLogsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(auditLogsUIBehavior),\n resourceSpecification(\n auditLogsFactory,\n AuditableEvent_BaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Immutable evidence records for security, access, administration, and data events within the addressed organization.',\n businessRole: 'Supports investigation and compliance review by showing what happened, when it happened, who acted when known, and how the event was classified.',\n lifecycleRole: 'Events are appended by the application, can be read, filtered, and exported through the API, and cannot be updated or deleted through customer APIs.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditableEvent_BaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'auditLogsResourceConfiguration_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: 'AUDIT_LOGS',\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: 'AuditLogs_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'auditLogsMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: [\n 'Registry `AUDIT_LOGS` links optionally to both `ORGANIZATIONS` and `APPLICATION`; the application relationship carries the canonical `isPrimaryScope: true` classification used for the spec’s `resourcePrimaryScope`, while individual organization-scoped, user-only, and system rows may omit `applicationId`.',\n ],\n },\n fields: {\n eventType: schemaShape.eventType.stringSpec({\n meaning: 'Stable event name identifying what happened, such as a role change or authentication outcome.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({\n meaning: 'Stable identifier for the event itself. Use it to match the same event across API results, exports, and configured external audit sinks.',\n }),\n correlationId: schemaShape.correlationId.stringSpec({\n meaning: 'Identifier shared by events and operational records produced by one request or background execution. Use it to investigate related activity as one sequence.',\n }),\n eventCategory: schemaShape.eventCategory.enumSpec({\n meaning: 'High-level area for navigation, filters, and export groupings (populated by the service classifier).',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventCategory',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventCategory.AUTHENTICATION]: { meaning: 'Sign-in, session, and credential events.' },\n [AuditEventCategory.AUTHORIZATION]: { meaning: 'Access control and policy evaluation outcomes when classified here.' },\n [AuditEventCategory.USER_LIFECYCLE]: { meaning: 'User profile and account lifecycle when classified here.' },\n [AuditEventCategory.ORG_MANAGEMENT]: { meaning: 'Org structure, membership, and org-scoped security configuration changes when classified here.' },\n [AuditEventCategory.DATA_ACCESS]: { meaning: 'Sensitive or tracked data read/write and export when classified here.' },\n },\n }),\n severity: schemaShape.severity.enumSpec({\n meaning: 'UI and export triage level for a record (populated with `eventCategory` by the service classifier on CREATE).',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventSeverity',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventSeverity.INFO]: { meaning: 'Normal operational or informational log lines.' },\n [AuditEventSeverity.WARNING]: { meaning: 'Notable but not always urgent — worth review when scanning.' },\n [AuditEventSeverity.CRITICAL]: { meaning: 'Escalation-tier events in product triage and export filters.' },\n },\n }),\n userId: schemaShape.userId.stringSpec({ meaning: 'Acting user when known; may be empty for system-only events.' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The `organizations` record that owns the tenant context of this event; used to scope and filter the trail per tenant. Optional in cross-tenant or user-only events where no single org owns the record.',\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The `applications` record that owns an application-scoped event. Kept distinct from organization tenancy so application SSO and machine-auth trails never synthesize an organization.',\n }),\n frontendServiceName: schemaShape.frontendServiceName.stringSpec({\n meaning: 'Frontend surface from which the action originated, when the event came from an interactive request. It can be absent for background or internal activity.',\n }),\n clientInstanceId: schemaShape.clientInstanceId.stringSpec({\n meaning: 'Optional pseudonymous browser or device-install identifier used to group activity across sessions when client-instance collection is enabled for the application.',\n }),\n eventData: schemaShape.eventData.objectSpec({\n meaning: 'Event-specific JSON details. Its keys depend on `eventType`; clients must not assume one payload shape across all event types.',\n }),\n riskLevel: schemaShape.riskLevel.enumSpec({\n meaning: 'Resource-operation risk tier for the action that generated this log record, when the classifier can map it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ResourceOperationRiskLevel',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ResourceOperationRiskLevel.LOW]: { meaning: 'Low-impact action that still warrants audit in policy.' },\n [ResourceOperationRiskLevel.MEDIUM]: { meaning: 'Moderate risk — policy-sensitive changes or data movement.' },\n [ResourceOperationRiskLevel.HIGH]: { meaning: 'High impact — should stand out in review queues.' },\n [ResourceOperationRiskLevel.CRITICAL]: { meaning: 'Maximum tier — may trigger paging or runbooks when surfaced to operators.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the auditable event was recorded.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one immutable audit event in the addressed organization.',\n outcome: 'The event’s classification, actor and origin identifiers, timestamp, risk level, and event-specific details are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The immutable audit event record for the supplied id was found and its classification, actor, risk tier, and payload are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No audit event row exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization member or administrator nor an application super administrator for the addressed scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect one organization role-change event',\n request: { organizationId: AUDIT_ORGANIZATION_ID, auditLogId: AUDIT_LOG_ID },\n response: AUDIT_LOG_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect an event with its organization context',\n request: { organizationId: AUDIT_ORGANIZATION_ID, auditLogId: AUDIT_LOG_ID },\n response: AUDIT_LOG_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect a compact event summary',\n request: { organizationId: AUDIT_ORGANIZATION_ID, auditLogId: AUDIT_LOG_ID },\n response: AUDIT_LOG_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List immutable audit events in the addressed organization, optionally filtering by classification, actor, application, correlation, client instance, or time window.',\n outcome: 'A newest-first paginated page of matching events is returned, up to 100 records per page.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) paginated page of audit event records in the caller’s scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization member or administrator nor an application super administrator for the addressed scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'List warning-level organization-management events',\n request: AUDIT_LOG_LIST_REQUEST,\n response: AUDIT_LOG_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'List events with their organization context',\n request: AUDIT_LOG_LIST_REQUEST,\n response: AUDIT_LOG_CONTEXT_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'List compact event summaries',\n request: AUDIT_LOG_LIST_REQUEST,\n response: AUDIT_LOG_SUMMARY_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Filter the organization audit trail by structured fields. This operation does not perform free-text search.',\n outcome: 'A paginated page of events matching every supplied filter is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of audit records matching the category / severity / time-window / actor filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization member or administrator nor an application super administrator for the addressed scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Filter warning-level organization changes by time window',\n request: {\n ...AUDIT_LOG_LIST_REQUEST,\n severity: AuditEventSeverity.WARNING,\n limit: 100,\n sort: 'createdAt:desc',\n },\n response: {\n ...AUDIT_LOG_PAGE,\n pagination: { ...AUDIT_LOG_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Internal write path for new audit rows; repository-only in factory for ingesters.',\n outcome: 'Immutable append to the log collection under service controls.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An immutable audit record was appended to the log collection. Internal/service write path — the classifier/ingester appends records; this is never a self-serve API create, and records are never updated or deleted afterward.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The event fails schema validation (e.g. missing the service-classified `eventCategory` / `severity`, or an unknown `eventType`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-ingester caller attempts to append an audit row — only internal service ingesters may write to the immutable trail.' },\n ],\n idempotent: false,\n },\n [AuditLogs_Operations.EXPORT_AUDIT_LOGS]: {\n operationId: AuditLogs_Operations.EXPORT_AUDIT_LOGS,\n purpose: 'Export a bounded, filtered JSON window from the addressed organization’s immutable audit trail.',\n outcome: 'Returns up to 100 audit events and the total number of matching events in the caller’s authorized scope.',\n whenToUse: 'Use when an investigation or compliance workflow needs a small synchronous JSON data set. For larger or continuously delivered data, use the separately configured SIEM delivery capability.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A synchronous JSON response containing `records`, the fixed `format: \"json\"`, and `totalCount`. It is not a file download or an asynchronous archive job.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The export filter DTO is malformed (for example, an invalid date range or `maxRecords` outside 1–100).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization administrator or application super administrator for the addressed scope.' },\n ],\n idempotent: true,\n rateLimitNote: 'Each request performs a bounded read of at most 100 audit events; apply a service-level rate limit before repeatedly scanning broad date ranges.',\n examples: [{\n title: 'Export warning-level organization-management events',\n request: {\n organizationId: AUDIT_ORGANIZATION_ID,\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n userId: AUDIT_LOG_EXAMPLE.userId,\n createdAt: AUDIT_LOG_LIST_REQUEST.createdAt,\n maxRecords: 100,\n },\n response: {\n records: [AUDIT_LOG_EXAMPLE],\n format: 'json',\n totalCount: 1,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Audit events cannot be updated or deleted through customer APIs. A correction or reversal must be represented by a new event rather than changing history.',\n 'The application assigns `eventCategory` and `severity` when recording an event; API clients use those values for filtering and must not treat them as editable labels.',\n ],\n }),\n // Scope mirrors the registry-derived value: the `APPLICATION → AUDIT_LOGS`\n // relationship in `resources-registry.shared.core.definitions.ts` carries\n // `isPrimaryScope: true`, so the factory derives APPLICATION. Audit rows are\n // an app-wide compliance ledger (rows carry an `organizationId` column for\n // per-tenant filtering, but the resource itself is anchored at the\n // application). Was ORGANIZATIONS until the companion alignment guard\n // started pairing engine specs with materialized core configs (2026-07-02)\n // and flagged the drift.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'Default merged preset builds a string from `eventType` and `createdAt` for the row label; the spec’s label purpose is to keep human-readable one-line context in list surfaces.',\n },\n layout: {\n purpose: 'Align `security` audit log templates with `overview` (event identity), `actors` (who/where), and `payload` (payload JSON / structured data).',\n displayPurpose: 'Read-only list + detail: display template wires these sections; there is no edit layout for immutable rows in default presets.',\n sections: {\n overview: {\n purpose: 'Event type, severity, risk, and time — first screen when triaging a row.',\n whenToUse: 'Summary cards and the top of a detail drawer.',\n textSlots: {\n title: { purpose: 'Name the current audit event in human language (often event type + time).' },\n description: { purpose: 'Clarify that rows are point-in-time records and are not user-editable in product.' },\n },\n },\n actors: {\n purpose: 'User, org, and related actor identifiers when present on the row.',\n whenToUse: 'Answering “who was involved” before reading payload content.',\n textSlots: {\n title: { purpose: 'Label the parties block.' },\n description: { purpose: 'Tie the row to people and org context without over-claiming attribution when fields are empty.' },\n },\n },\n payload: {\n purpose: 'Structured `eventData` and any redacted or expanded technical fields per template rules.',\n whenToUse: 'Deep inspection and support debugging after orientation from overview/actors.',\n textSlots: {\n title: { purpose: 'Label the payload/technical area.' },\n description: { purpose: 'Caution that shape varies by `eventType`; do not assert a single fixed JSON schema in prose.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable trail view in merged security preset wiring — dashboard-style: `severity` quick-filter tab strip + `createdAt` day-bucket grouping via `collectionDisplayConfig` (both fields are in the LIST op\\'s declared `filterFields`; `createdAt` is a summary field).', whenToUse: 'Org and app security audit log routes when enabled; severity tabs are the review entry point.' },\n [Op.SEARCH]: { purpose: 'Addressable search surface when the merged preset flags search as addressable for this resource.', whenToUse: 'Investigators filtering by category, time, and severity in large environments.' },\n [Op.READ]: { purpose: 'Single-event inspection; not addressable in the default `views` array but still modeled for read shells.', whenToUse: 'Drill-in from a list row in audit viewers.' },\n [AuditLogs_Operations.EXPORT_AUDIT_LOGS]: { purpose: 'Bounded JSON retrieval flow with filter DTO; non-addressable in the default `views` array but invoked from admin/audit UIs when wired.', whenToUse: 'Focused investigation and compliance review where the requested window fits within 100 events.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"audit-logs.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/compliance/resources/audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,IAAI,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC5G,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,oDAAoD,IAAI,gBAAgB,EACxE,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,mBAAmB,GAAG,yBAAyE,CAAC;AAEtG,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;AACxD,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AACtD,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAE5C,MAAM,iBAAiB,GAAG;IACxB,GAAG,EAAE,YAAY;IACjB,OAAO,EAAE,sCAAsC;IAC/C,MAAM,EAAE,iBAAiB;IACzB,cAAc,EAAE,qBAAqB;IACrC,aAAa,EAAE,oBAAoB;IACnC,aAAa,EAAE,oBAAoB;IACnC,mBAAmB,EAAE,KAAK;IAC1B,gBAAgB,EAAE,4BAA4B;IAC9C,SAAS,EAAE,cAAc,CAAC,IAAI;IAC9B,UAAU,EAA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AE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,kGAAkG,EAAE;iBACvH;aACF;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,mEAAmE;gBAC5E,SAAS,EAAE,8DAA8D;gBACzE,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;iBAC/C;aACF;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,0FAA0F;gBACnG,SAAS,EAAE,+EAA+E;gBAC1F,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE;iBACxD;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,mRAAmR,EAAE,SAAS,EAAE,+FAA+F,EAAE;QACvZ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kGAAkG,EAAE,SAAS,EAAE,gFAAgF,EAAE;QACzN,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0GAA0G,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC3L,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,EAAE,OAAO,EAAE,wIAAwI,EAAE,SAAS,EAAE,gGAAgG,EAAE;KAC7S;CACF,CAAC,CACH,CAAC","sourcesContent":["import { auditLogsMainResourceUIBehavior as auditLogsUIBehaviorSource } 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 AuditableEvent_BaseSchema,\n AuditEventCategory,\n AuditEventSeverity,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n ResourceOperationRiskLevel,\n AuditLogs_Operations,\n auditLogsResourceConfiguration_InitializationFactory as auditLogsFactory,\n AuditActorKind,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof auditLogsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst auditLogsUIBehavior = auditLogsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst AUDIT_ORGANIZATION_ID = 'organization_01JEXAMPLE';\nconst AUDIT_APPLICATION_ID = 'application_01JEXAMPLE';\nconst AUDIT_LOG_ID = 'audit_log_01JEXAMPLE';\n\nconst AUDIT_LOG_EXAMPLE = {\n _id: AUDIT_LOG_ID,\n eventId: 'a5ad8e36-7f34-4f0e-a7f4-1454a7997721',\n userId: 'user_01JEXAMPLE',\n organizationId: AUDIT_ORGANIZATION_ID,\n applicationId: AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLE',\n frontendServiceName: 'app',\n clientInstanceId: 'client_instance_01JEXAMPLE',\n actorKind: AuditActorKind.USER,\n agentActor: { agentRef: 'todo-assistant', agentExecutionId: 'execution_01JEXAMPLE', toolName: 'resource.organizationMembers.update' },\n riskLevel: ResourceOperationRiskLevel.HIGH,\n eventType: 'organization.member.role.changed',\n eventData: {\n targetUserId: 'user_01JTARGET',\n previousRoles: ['ORG_MEMBER'],\n newRoles: ['ORG_ADMIN'],\n },\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n createdAt: '2026-08-20T14:32:10.000Z',\n updatedAt: '2026-08-20T14:32:10.000Z',\n _version: 1,\n} as const;\n\nconst AUDIT_LOG_CONTEXT_EXAMPLE = {\n ...AUDIT_LOG_EXAMPLE,\n organization: { _id: AUDIT_ORGANIZATION_ID },\n} as const;\n\nconst AUDIT_LOG_SUMMARY_EXAMPLE = {\n _id: AUDIT_LOG_EXAMPLE._id,\n userId: AUDIT_LOG_EXAMPLE.userId,\n organizationId: AUDIT_LOG_EXAMPLE.organizationId,\n applicationId: AUDIT_LOG_EXAMPLE.applicationId,\n correlationId: AUDIT_LOG_EXAMPLE.correlationId,\n frontendServiceName: AUDIT_LOG_EXAMPLE.frontendServiceName,\n clientInstanceId: AUDIT_LOG_EXAMPLE.clientInstanceId,\n actorKind: AUDIT_LOG_EXAMPLE.actorKind,\n riskLevel: AUDIT_LOG_EXAMPLE.riskLevel,\n eventType: AUDIT_LOG_EXAMPLE.eventType,\n eventCategory: AUDIT_LOG_EXAMPLE.eventCategory,\n severity: AUDIT_LOG_EXAMPLE.severity,\n createdAt: AUDIT_LOG_EXAMPLE.createdAt,\n _version: AUDIT_LOG_EXAMPLE._version,\n} as const;\n\nconst AUDIT_LOG_PAGE = {\n data: [AUDIT_LOG_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nconst AUDIT_LOG_CONTEXT_PAGE = {\n data: [AUDIT_LOG_CONTEXT_EXAMPLE],\n pagination: AUDIT_LOG_PAGE.pagination,\n} as const;\n\nconst AUDIT_LOG_SUMMARY_PAGE = {\n data: [AUDIT_LOG_SUMMARY_EXAMPLE],\n pagination: AUDIT_LOG_PAGE.pagination,\n} as const;\n\nconst AUDIT_LOG_LIST_REQUEST = {\n organizationId: AUDIT_ORGANIZATION_ID,\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n createdAt: {\n startDate: '2026-08-20T00:00:00.000Z',\n endDate: '2026-08-21T00:00:00.000Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc,eventId:desc',\n} as const;\n\nexport const auditLogsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(auditLogsUIBehavior),\n resourceSpecification(\n auditLogsFactory,\n AuditableEvent_BaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Immutable evidence records for security, access, administration, and data events within the addressed organization.',\n businessRole: 'Supports investigation and compliance review by showing what happened, when it happened, who acted when known, and how the event was classified.',\n lifecycleRole: 'Events are appended by the application, can be read, filtered, and exported through the API, and cannot be updated or deleted through customer APIs.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditableEvent_BaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'auditLogsResourceConfiguration_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: 'AUDIT_LOGS',\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: 'AuditLogs_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'auditLogsMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: [\n 'Registry `AUDIT_LOGS` links optionally to both `ORGANIZATIONS` and `APPLICATION`; the application relationship carries the canonical `isPrimaryScope: true` classification used for the spec’s `resourcePrimaryScope`, while individual organization-scoped, user-only, and system rows may omit `applicationId`.',\n ],\n },\n fields: {\n eventType: schemaShape.eventType.stringSpec({\n meaning: 'Stable event name identifying what happened, such as a role change or authentication outcome. A value of the engine\\'s open vocabulary `CoreAuditableEventType`: the field is a string, and screens show the type\\'s word (`system_enums.CoreAuditableEventType.<type>`) rather than the value.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({\n meaning: 'Stable identifier for the event itself. Use it to match the same event across API results, exports, and configured external audit sinks.',\n }),\n correlationId: schemaShape.correlationId.stringSpec({\n meaning: 'Identifier shared by events and operational records produced by one request or background execution. Use it to investigate related activity as one sequence.',\n }),\n eventCategory: schemaShape.eventCategory.enumSpec({\n meaning: 'High-level area for navigation, filters, and export groupings (populated by the service classifier).',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventCategory',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventCategory.AUTHENTICATION]: { meaning: 'Sign-in, session, and credential events.' },\n [AuditEventCategory.AUTHORIZATION]: { meaning: 'Access control and policy evaluation outcomes when classified here.' },\n [AuditEventCategory.USER_LIFECYCLE]: { meaning: 'User profile and account lifecycle when classified here.' },\n [AuditEventCategory.ORG_MANAGEMENT]: { meaning: 'Org structure, membership, and org-scoped security configuration changes when classified here.' },\n [AuditEventCategory.DATA_ACCESS]: { meaning: 'Sensitive or tracked data read/write and export when classified here.' },\n },\n }),\n severity: schemaShape.severity.enumSpec({\n meaning: 'UI and export triage level for a record (populated with `eventCategory` by the service classifier on CREATE).',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventSeverity',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventSeverity.INFO]: { meaning: 'Normal operational or informational log lines.' },\n [AuditEventSeverity.WARNING]: { meaning: 'Notable but not always urgent — worth review when scanning.' },\n [AuditEventSeverity.CRITICAL]: { meaning: 'Escalation-tier events in product triage and export filters.' },\n },\n }),\n userId: schemaShape.userId.stringSpec({ meaning: 'Acting user when known; may be empty for system-only events.' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The `organizations` record that owns the tenant context of this event; used to scope and filter the trail per tenant. Optional in cross-tenant or user-only events where no single org owns the record.',\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The `applications` record that owns an application-scoped event. Kept distinct from organization tenancy so application SSO and machine-auth trails never synthesize an organization.',\n }),\n frontendServiceName: schemaShape.frontendServiceName.stringSpec({\n meaning: 'Frontend surface from which the action originated, when the event came from an interactive request. It can be absent for background or internal activity.',\n }),\n clientInstanceId: schemaShape.clientInstanceId.stringSpec({\n meaning: 'Optional pseudonymous browser or device-install identifier used to group activity across sessions when client-instance collection is enabled for the application.',\n }),\n actorKind: schemaShape.actorKind.enumSpec({\n meaning: 'The kind of principal whose authority the action used: a signed-in user, a user acting through an external client they delegated to, a machine credential, the application itself, or nobody the trail could resolve.',\n whyItMatters: 'Answers \"under whose authority?\" without joining anything. It is never an agent: an agent always acts under one of these principals, and `agentActor` says when it did. `unattributed` is the value to alert on.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditActorKind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditActorKind.USER]: { meaning: 'A signed-in person acting through a first-party session; `userId` is that person.' },\n [AuditActorKind.DELEGATED_CLIENT]: { meaning: 'A person\\'s authority exercised by an external OAuth client they delegated to (A2A or MCP); `delegatingClientId` names the client.' },\n [AuditActorKind.MACHINE]: { meaning: 'An organization or application machine credential; `principalCredentialId` names it.' },\n [AuditActorKind.SYSTEM]: { meaning: 'The application acting on its own behalf by design — a batch, a cron job, an internal workflow, or its handling of a verified provider webhook or inbound delivery.' },\n [AuditActorKind.UNATTRIBUTED]: { meaning: 'A principal was expected and could not be resolved — the anomaly worth investigating.' },\n [AuditActorKind.UNAUTHENTICATED]: { meaning: 'No principal was proven, by design — a sign-in or machine-authentication attempt, a public operation, an anonymous session. Expected on these events; an alert only on events that require one.' },\n },\n }),\n agentActor: schemaShape.agentActor.objectSpec({\n meaning: 'The AI agent that performed the action, when one did: its ref, the conversational execution, the actors system and the tool it called. Absent when no agent acted.',\n whyItMatters: 'Lets a reviewer show \"agent X proposed, person Y\\'s authority was used\" from one row. Identifiers only — never the conversation text or the tool\\'s arguments.',\n }),\n delegatingClientId: schemaShape.delegatingClientId.stringSpec({\n meaning: 'The external OAuth client a person delegated to, taken from the verified token when the action came through an A2A or MCP client. Absent for first-party sessions.',\n }),\n principalCredentialId: schemaShape.principalCredentialId.stringSpec({\n meaning: 'The machine credential a machine principal authenticated with: the id of an API key or OAuth client, or, for a shared platform secret that has no credential record, its stable name. Present only when `actorKind` is `machine`.',\n }),\n actingViaServiceProviderRelationshipId: schemaShape.actingViaServiceProviderRelationshipId.stringSpec({\n meaning: 'The service-provider relationship a firm\\'s expert or machine client acted through, on a row written in the client organization it was admitted into. Absent for every other principal.',\n whyItMatters: 'Lets a client answer \"what did the firm do here, and under which relationship?\" from its own trail, and keeps the arrangement visible after the relationship ends.',\n }),\n providerOrganizationId: schemaShape.providerOrganizationId.stringSpec({\n meaning: 'The firm (provider organization) behind `actingViaServiceProviderRelationshipId`; present exactly when it is.',\n }),\n eventData: schemaShape.eventData.objectSpec({\n meaning: 'Event-specific JSON details. Its keys depend on `eventType`; clients must not assume one payload shape across all event types.',\n }),\n riskLevel: schemaShape.riskLevel.enumSpec({\n meaning: 'Resource-operation risk tier for the action that generated this log record, when the classifier can map it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ResourceOperationRiskLevel',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ResourceOperationRiskLevel.LOW]: { meaning: 'Low-impact action that still warrants audit in policy.' },\n [ResourceOperationRiskLevel.MEDIUM]: { meaning: 'Moderate risk — policy-sensitive changes or data movement.' },\n [ResourceOperationRiskLevel.HIGH]: { meaning: 'High impact — should stand out in review queues.' },\n [ResourceOperationRiskLevel.CRITICAL]: { meaning: 'Maximum tier — may trigger paging or runbooks when surfaced to operators.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the auditable event was recorded.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one immutable audit event in the addressed organization.',\n outcome: 'The event’s classification, actor and origin identifiers, timestamp, risk level, and event-specific details are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The immutable audit event record for the supplied id was found and its classification, actor, risk tier, and payload are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No audit event row exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization member or administrator nor an application super administrator for the addressed scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `READ_AUDIT_TRAIL` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect one organization role-change event',\n request: { organizationId: AUDIT_ORGANIZATION_ID, auditLogId: AUDIT_LOG_ID },\n response: AUDIT_LOG_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect an event with its organization context',\n request: { organizationId: AUDIT_ORGANIZATION_ID, auditLogId: AUDIT_LOG_ID },\n response: AUDIT_LOG_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect a compact event summary',\n request: { organizationId: AUDIT_ORGANIZATION_ID, auditLogId: AUDIT_LOG_ID },\n response: AUDIT_LOG_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List immutable audit events in the addressed organization, optionally filtering by classification, actor, application, correlation, client instance, or time window.',\n outcome: 'A newest-first paginated page of matching events is returned, up to 100 records per page.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) paginated page of audit event records in the caller’s scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization member or administrator nor an application super administrator for the addressed scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `READ_AUDIT_TRAIL` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n ],\n idempotent: true,\n examples: [{\n title: 'List warning-level organization-management events',\n request: AUDIT_LOG_LIST_REQUEST,\n response: AUDIT_LOG_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'List events with their organization context',\n request: AUDIT_LOG_LIST_REQUEST,\n response: AUDIT_LOG_CONTEXT_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'List compact event summaries',\n request: AUDIT_LOG_LIST_REQUEST,\n response: AUDIT_LOG_SUMMARY_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Filter the organization audit trail by structured fields. This operation does not perform free-text search.',\n outcome: 'A paginated page of events matching every supplied filter is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of audit records matching the category / severity / time-window / actor filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an organization member or administrator nor an application super administrator for the addressed scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `READ_AUDIT_TRAIL` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Filter warning-level organization changes by time window',\n request: {\n ...AUDIT_LOG_LIST_REQUEST,\n severity: AuditEventSeverity.WARNING,\n limit: 100,\n sort: 'createdAt:desc',\n },\n response: {\n ...AUDIT_LOG_PAGE,\n pagination: { ...AUDIT_LOG_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Internal write path for new audit rows; repository-only in factory for ingesters.',\n outcome: 'Immutable append to the log collection under service controls.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An immutable audit record was appended to the log collection. Internal/service write path — the classifier/ingester appends records; this is never a self-serve API create, and records are never updated or deleted afterward.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The event fails schema validation (e.g. missing the service-classified `eventCategory` / `severity`, or an unknown `eventType`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-ingester caller attempts to append an audit row — only internal service ingesters may write to the immutable trail.' },\n ],\n idempotent: false,\n },\n [AuditLogs_Operations.EXPORT_AUDIT_LOGS]: {\n operationId: AuditLogs_Operations.EXPORT_AUDIT_LOGS,\n purpose: 'Export a bounded, filtered JSON window from the addressed organization’s immutable audit trail.',\n outcome: 'Returns up to 100 audit events and the total number of matching events in the caller’s authorized scope.',\n whenToUse: 'Use when an investigation or compliance workflow needs a small synchronous JSON data set. For larger or continuously delivered data, use the separately configured SIEM delivery capability.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A synchronous JSON response containing `records`, the fixed `format: \"json\"`, and `totalCount`. It is not a file download or an asynchronous archive job.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The export filter DTO is malformed (for example, an invalid date range or `maxRecords` outside 1–100).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization administrator or application super administrator for the addressed scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `READ_AUDIT_TRAIL` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n ],\n idempotent: true,\n rateLimitNote: 'Each request performs a bounded read of at most 100 audit events; apply a service-level rate limit before repeatedly scanning broad date ranges.',\n examples: [{\n title: 'Export warning-level organization-management events',\n request: {\n organizationId: AUDIT_ORGANIZATION_ID,\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n userId: AUDIT_LOG_EXAMPLE.userId,\n createdAt: AUDIT_LOG_LIST_REQUEST.createdAt,\n maxRecords: 100,\n },\n response: {\n records: [AUDIT_LOG_EXAMPLE],\n format: 'json',\n totalCount: 1,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Audit events cannot be updated or deleted through customer APIs. A correction or reversal must be represented by a new event rather than changing history.',\n 'The application assigns `eventCategory` and `severity` when recording an event; API clients use those values for filtering and must not treat them as editable labels.',\n ],\n }),\n // Scope mirrors the registry-derived value: the `APPLICATION → AUDIT_LOGS`\n // relationship in `resources-registry.shared.core.definitions.ts` carries\n // `isPrimaryScope: true`, so the factory derives APPLICATION. Audit rows are\n // an app-wide compliance ledger (rows carry an `organizationId` column for\n // per-tenant filtering, but the resource itself is anchored at the\n // application). Was ORGANIZATIONS until the companion alignment guard\n // started pairing engine specs with materialized core configs (2026-07-02)\n // and flagged the drift.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'Default merged preset names an event by the WORD for its type (`system_enums.CoreAuditableEventType.<type>`, the value itself while the word is missing) and its `createdAt` instant, keeping human-readable one-line context in list surfaces.',\n },\n layout: {\n purpose: 'Three cards under a header that NAMES the event (its type and the instant): `overview` (classification), `actors` (who and where — each row hidden when empty, most events have one actor) and `payload` (the structured detail). No card carries a description: the page already shows what each holds.',\n displayPurpose: 'Read-only list + detail as settings rows. A list card shows the event type, its severity as a badge and who acted, bare; the day is the list\\'s group heading, so the card does not repeat it. There is no edit layout for immutable rows.',\n sections: {\n overview: {\n purpose: 'Category, severity and risk — the event type and instant are the page\\'s name, so the card carries no heading and no row repeats them.',\n whenToUse: 'Summary cards and the top of a detail drawer.',\n textSlots: {\n title: { purpose: 'Label the event\\'s classification (not rendered on the read page, whose header names the event).' },\n },\n },\n actors: {\n purpose: 'User, org, and related actor identifiers when present on the row.',\n whenToUse: 'Answering “who was involved” before reading payload content.',\n textSlots: {\n title: { purpose: 'Label the parties block.' },\n },\n },\n payload: {\n purpose: 'Structured `eventData` and any redacted or expanded technical fields per template rules.',\n whenToUse: 'Deep inspection and support debugging after orientation from overview/actors.',\n textSlots: {\n title: { purpose: 'Label the payload/technical area.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable trail view in merged security preset wiring — dashboard-style: `severity` quick-filter tab strip + `createdAt` day-bucket grouping via `collectionDisplayConfig` (both fields are in the LIST op\\'s declared `filterFields`; `createdAt` is a summary field).', whenToUse: 'Org and app security audit log routes when enabled; severity tabs are the review entry point.' },\n [Op.SEARCH]: { purpose: 'Addressable search surface when the merged preset flags search as addressable for this resource.', whenToUse: 'Investigators filtering by category, time, and severity in large environments.' },\n [Op.READ]: { purpose: 'Single-event inspection; not addressable in the default `views` array but still modeled for read shells.', whenToUse: 'Drill-in from a list row in audit viewers.' },\n [AuditLogs_Operations.EXPORT_AUDIT_LOGS]: { purpose: 'Bounded JSON retrieval flow with filter DTO; non-addressable in the default `views` array but invoked from admin/audit UIs when wired.', whenToUse: 'Focused investigation and compliance review where the requested window fits within 100 events.' },\n },\n }),\n);\n"]}
@@ -1,4 +1,5 @@
1
1
  export * from './application-audit-logs.resource.specification';
2
2
  export * from './audit-logs.resource.specification';
3
3
  export * from './user-governed-document-acceptances.resource.specification';
4
+ export * from './legal-holds.resource.specification';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/compliance/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,6DAA6D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/compliance/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,6DAA6D,CAAC;AAC5E,cAAc,sCAAsC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './application-audit-logs.resource.specification.js';
2
2
  export * from './audit-logs.resource.specification.js';
3
3
  export * from './user-governed-document-acceptances.resource.specification.js';
4
+ export * from './legal-holds.resource.specification.js';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/engine/compliance/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,6DAA6D,CAAC","sourcesContent":["export * from './application-audit-logs.resource.specification';\nexport * from './audit-logs.resource.specification';\nexport * from './user-governed-document-acceptances.resource.specification';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/engine/compliance/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,6DAA6D,CAAC;AAC5E,cAAc,sCAAsC,CAAC","sourcesContent":["export * from './application-audit-logs.resource.specification';\nexport * from './audit-logs.resource.specification';\nexport * from './user-governed-document-acceptances.resource.specification';\nexport * from './legal-holds.resource.specification';\n"]}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Resource: `legalHolds` — Wildo SaaS engine specification (backend-only, organization-scoped). #1634.
3
+ *
4
+ * Inputs:
5
+ * - Schema: engine/saas-models/src/compliance/privacy/legal-holds.shared.schemas.ts → `LegalHoldSchema`
6
+ * - Factory: engine/saas-models/src/compliance/privacy/legal-holds.shared.resources-config.schemas.ts
7
+ * → `legalHoldsResourceConfiguration_InitializationFactory`
8
+ * - Custom operations: `LegalHolds_Operations` (place, release), in the schemas module.
9
+ *
10
+ * The organization-settings surface is `legal-holds.resource-presets.tsx` (Settings Hub destination
11
+ * `organization-legal-holds`). This spec documents the backend contract only, like the service-provider
12
+ * relationships spec beside a preset of the same shape: the preset has no layout sections, label strategy
13
+ * beyond the matter, or guidance that an overlay would have to document.
14
+ *
15
+ * Why `ORGANIZATIONS` scope: a hold is stored in the tenant it holds, so the tenant sees every hold on its
16
+ * data whichever tier placed it. Expressed once, by the registry relationship ORGANIZATIONS → LEGAL_HOLDS
17
+ * carrying `isPrimaryScope: true`.
18
+ */
19
+ import { CoreResourceOperation as Op, LegalHoldGround, LegalHoldPlacementTier, LegalHoldScopeKind, LegalHoldStatus, LegalHolds_Operations } from '@wildo-ai/saas-models';
20
+ export declare const legalHoldsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof LegalHolds_Operations, Op.READ | Op.DELETE | Op.LIST | Op.COUNT, import("zod").ZodObject<{
21
+ _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
22
+ 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("zod").ZodString>>>>>;
23
+ scopeKind: 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").ZodEnum<typeof LegalHoldScopeKind>>>>>>;
24
+ resourceType: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>;
25
+ rowIds: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>>;
26
+ subjectUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>>;
27
+ legalGround: 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").ZodEnum<typeof LegalHoldGround>>>>>;
28
+ justification: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
29
+ placementTier: 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").ZodEnum<typeof LegalHoldPlacementTier>>>>>>;
30
+ 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("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof LegalHoldStatus>>>>>>>>;
31
+ placedByUserId: 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>>>>;
32
+ placedAt: 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").ZodDate>>>>;
33
+ releasedByUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>>;
34
+ releasedAt: 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>>>>>;
35
+ releaseReason: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>;
36
+ createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
37
+ updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
38
+ }, import("zod/v4/core").$strip>>;
39
+ //# sourceMappingURL=legal-holds.resource.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legal-holds.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/compliance/resources/legal-holds.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,eAAe,EACf,sBAAsB,EAEtB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AAgD/B,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;iCA+Q3C,CAAC"}
@@ -0,0 +1,325 @@
1
+ /**
2
+ * Resource: `legalHolds` — Wildo SaaS engine specification (backend-only, organization-scoped). #1634.
3
+ *
4
+ * Inputs:
5
+ * - Schema: engine/saas-models/src/compliance/privacy/legal-holds.shared.schemas.ts → `LegalHoldSchema`
6
+ * - Factory: engine/saas-models/src/compliance/privacy/legal-holds.shared.resources-config.schemas.ts
7
+ * → `legalHoldsResourceConfiguration_InitializationFactory`
8
+ * - Custom operations: `LegalHolds_Operations` (place, release), in the schemas module.
9
+ *
10
+ * The organization-settings surface is `legal-holds.resource-presets.tsx` (Settings Hub destination
11
+ * `organization-legal-holds`). This spec documents the backend contract only, like the service-provider
12
+ * relationships spec beside a preset of the same shape: the preset has no layout sections, label strategy
13
+ * beyond the matter, or guidance that an overlay would have to document.
14
+ *
15
+ * Why `ORGANIZATIONS` scope: a hold is stored in the tenant it holds, so the tenant sees every hold on its
16
+ * data whichever tier placed it. Expressed once, by the registry relationship ORGANIZATIONS → LEGAL_HOLDS
17
+ * carrying `isPrimaryScope: true`.
18
+ */
19
+ import { LabelAudience } from '@wildo-ai/presets-components-models';
20
+ import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
21
+ import { CoreResourceOperation as Op, LegalHoldGround, LegalHoldPlacementTier, LegalHoldSchema, LegalHoldScopeKind, LegalHoldStatus, LegalHolds_Operations, ResourcePrimaryScope, legalHoldsResourceConfiguration_InitializationFactory, } from '@wildo-ai/saas-models';
22
+ import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
23
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
24
+ const EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';
25
+ const EXAMPLE_HOLD_ID = 'legal_hold_01J4Q1A2B3C4D5E6F7G8H9J0KA';
26
+ const EXAMPLE_OWNER_ID = 'user_01J4Q1B2C3D4E5F6G7H8J9K0LB';
27
+ const EXAMPLE_MEMBER_ID = 'user_01J4Q1C3D4E5F6G7H8J9K0L1MC';
28
+ const activeHoldExample = {
29
+ _id: EXAMPLE_HOLD_ID,
30
+ organizationId: EXAMPLE_ORGANIZATION_ID,
31
+ scopeKind: LegalHoldScopeKind.DATA_SUBJECT,
32
+ subjectUserId: EXAMPLE_MEMBER_ID,
33
+ legalGround: LegalHoldGround.LEGAL_CLAIMS,
34
+ justification: 'Employment dispute, matter 2026-17: preserve the member\'s records until the claim is settled.',
35
+ placementTier: LegalHoldPlacementTier.ORGANIZATION,
36
+ status: LegalHoldStatus.ACTIVE,
37
+ placedByUserId: EXAMPLE_OWNER_ID,
38
+ placedAt: '2026-09-27T09:00:00.000Z',
39
+ createdAt: '2026-09-27T09:00:00.000Z',
40
+ updatedAt: '2026-09-27T09:00:00.000Z',
41
+ };
42
+ const releasedHoldExample = {
43
+ ...activeHoldExample,
44
+ status: LegalHoldStatus.RELEASED,
45
+ releasedByUserId: EXAMPLE_OWNER_ID,
46
+ releasedAt: '2026-12-01T10:00:00.000Z',
47
+ releaseReason: 'Claim settled; counsel confirmed the preservation duty has ended.',
48
+ updatedAt: '2026-12-01T10:00:00.000Z',
49
+ };
50
+ const holdSummaryExample = {
51
+ _id: activeHoldExample._id,
52
+ organizationId: activeHoldExample.organizationId,
53
+ scopeKind: activeHoldExample.scopeKind,
54
+ legalGround: activeHoldExample.legalGround,
55
+ placementTier: activeHoldExample.placementTier,
56
+ status: activeHoldExample.status,
57
+ placedAt: activeHoldExample.placedAt,
58
+ };
59
+ const PAGE_REQUEST = { organizationId: EXAMPLE_ORGANIZATION_ID, page: 1, limit: 20, sort: 'createdAt:desc' };
60
+ const page = (data) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });
61
+ const READ_FORBIDDEN = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the organization\'s owner nor an application super-administrator holding a usable platform access grant for this organization.' };
62
+ export const legalHoldsResourceSpecification = resourceSpecification(legalHoldsResourceConfiguration_InitializationFactory, LegalHoldSchema, ({ schemaShape }) => ({
63
+ purpose: 'Let an organization, or the application operator, suspend the deletion of a defined scope of the organization\'s data while litigation, an investigation or a legal obligation requires it, and keep proof that it did.',
64
+ businessRole: 'The organization\'s record of preservation duties. Every deletion path reads its active holds before destroying anything: the retention-class sweep skips held rows, a subject erasure leaves them as they are and reports the ground, the tenant purge does not run, file bytes are kept and a delete is refused with 409 `legal_hold_active`.',
65
+ lifecycleRole: 'Placed ACTIVE by the organization\'s owner or by an application super-administrator, and released by the same tier when the duty ends (or, once the organization is marked for deletion and its owners hold no authority, by the platform tier). A hold never expires on its own. A released hold is kept, unchanged, as evidence for the AUDIT_LOGS retention period counted from its release, then deleted by the retention-class sweep; it is never reactivated — a new duty is a new hold.',
66
+ audience: LabelAudience.ADMIN,
67
+ subDomain: EngineResourceSubDomain.COMPLIANCE,
68
+ codeHandling: {
69
+ mainSchema: {
70
+ packageName: '@wildo-ai/saas-models',
71
+ exportName: 'LegalHoldSchema',
72
+ symbolKind: CodeSymbolKind.SCHEMA,
73
+ declarationKind: CodeDeclarationKind.ZOD_SCHEMA,
74
+ },
75
+ resourceFactory: {
76
+ packageName: '@wildo-ai/saas-models',
77
+ exportName: 'legalHoldsResourceConfiguration_InitializationFactory',
78
+ symbolKind: CodeSymbolKind.FACTORY,
79
+ declarationKind: CodeDeclarationKind.FUNCTION,
80
+ },
81
+ resourceType: {
82
+ enumDeclaration: {
83
+ packageName: '@wildo-ai/saas-models',
84
+ exportName: 'CoreResourceType',
85
+ symbolKind: CodeSymbolKind.ENUM,
86
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
87
+ },
88
+ memberName: 'LEGAL_HOLDS',
89
+ },
90
+ operationVocabulary: {
91
+ coreEnum: {
92
+ packageName: '@wildo-ai/saas-models',
93
+ exportName: 'CoreResourceOperation',
94
+ symbolKind: CodeSymbolKind.ENUM,
95
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
96
+ },
97
+ customEnum: {
98
+ packageName: '@wildo-ai/saas-models',
99
+ exportName: 'LegalHolds_Operations',
100
+ symbolKind: CodeSymbolKind.ENUM,
101
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
102
+ },
103
+ },
104
+ notes: [
105
+ 'No public CREATE, UPDATE or DELETE. `place` is the only writer of a hold and `release` the only transition. The server authors `placementTier`, `status`, `placedByUserId`, `placedAt`, `releasedByUserId` and `releasedAt`; a caller never can.',
106
+ 'DELETE is INTERNAL_CALL only, for the retention-class sweep to dispose of a RELEASED hold at the end of its AUDIT_LOGS period. An ACTIVE hold has no release instant, so it never reaches that point.',
107
+ 'Placing and releasing emit `LEGAL_HOLD_PLACED` / `LEGAL_HOLD_RELEASED` (HIGH) on the held organization\'s audit trail. Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).',
108
+ 'The hold predicate lives in the backend (`resolveLegalHeldRows`); this resource only stores the decisions it reads. Not retention-governed on purpose: a scrubbed-and-hidden hold would be invisible to that predicate.',
109
+ ],
110
+ },
111
+ fields: {
112
+ _id: schemaShape._id.stringSpec({
113
+ meaning: 'Identifier of one preservation decision.',
114
+ whyItMatters: 'Named by every refusal and erasure report the hold causes, and by its placement and release audit events.',
115
+ semanticRole: 'identifier',
116
+ importance: FieldSemanticImportance.PRIMARY,
117
+ }),
118
+ organizationId: schemaShape.organizationId.foreignKeySpec({
119
+ meaning: 'The organization whose data is held.',
120
+ whyItMatters: 'The scope anchor: the organization sees every hold on its data, and no hold reaches another organization\'s rows.',
121
+ importance: FieldSemanticImportance.PRIMARY,
122
+ }),
123
+ scopeKind: schemaShape.scopeKind.enumSpec({
124
+ meaning: 'What the hold covers.',
125
+ whyItMatters: 'Decides which rows every deletion path treats as held.',
126
+ importance: FieldSemanticImportance.PRIMARY,
127
+ enumDeclaration: {
128
+ packageName: '@wildo-ai/saas-models',
129
+ exportName: 'LegalHoldScopeKind',
130
+ symbolKind: CodeSymbolKind.ENUM,
131
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
132
+ },
133
+ values: {
134
+ [LegalHoldScopeKind.ORGANIZATION]: { meaning: 'Every row the organization owns, and the organization itself — it is not purged while the hold is active.' },
135
+ [LegalHoldScopeKind.RESOURCE_ROWS]: { meaning: 'The listed rows of one resource type in the organization, or every row of that type when no rows are listed.' },
136
+ [LegalHoldScopeKind.DATA_SUBJECT]: { meaning: 'Every row the subject-export graph attributes to one person — the same rows an access request about them would disclose. A row that cannot be attributed from its own fields is held too.' },
137
+ },
138
+ }),
139
+ resourceType: schemaShape.resourceType.stringSpec({
140
+ meaning: 'For a resource-rows hold, the resource type it holds.',
141
+ whyItMatters: 'Refused when it names no registered resource, and a hold cannot hold holds.',
142
+ }),
143
+ rowIds: schemaShape.rowIds.arraySpec({
144
+ meaning: 'For a resource-rows hold, the held rows (at most 1000).',
145
+ elementMeaning: 'The id of one held row of that resource.',
146
+ whyItMatters: 'An explicit list rather than a query, so which rows were held is answerable from the hold alone, without re-running a filter against data that has since changed.',
147
+ }),
148
+ subjectUserId: schemaShape.subjectUserId.foreignKeySpec({
149
+ meaning: 'For a data-subject hold, the person whose data is held.',
150
+ whyItMatters: 'Must name an existing user. Their erasure leaves held rows as they are and reports the ground.',
151
+ }),
152
+ legalGround: schemaShape.legalGround.enumSpec({
153
+ meaning: 'Why the data must be preserved.',
154
+ whyItMatters: 'Travels into every refusal and erasure report: it is what a data subject is told when their erasure is not completed.',
155
+ importance: FieldSemanticImportance.PRIMARY,
156
+ enumDeclaration: {
157
+ packageName: '@wildo-ai/saas-models',
158
+ exportName: 'LegalHoldGround',
159
+ symbolKind: CodeSymbolKind.ENUM,
160
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
161
+ },
162
+ values: {
163
+ [LegalHoldGround.LEGAL_CLAIMS]: { meaning: 'Litigation, a dispute or a reasonably anticipated claim (GDPR Art. 17(3)(e)).' },
164
+ [LegalHoldGround.REGULATORY_INVESTIGATION]: { meaning: 'A regulator\'s or an authority\'s investigation that requires preservation.' },
165
+ [LegalHoldGround.LEGAL_OBLIGATION]: { meaning: 'Another legal obligation to keep the data (GDPR Art. 17(3)(b)) — not a statutory retention period, which is a retention class.' },
166
+ },
167
+ }),
168
+ justification: schemaShape.justification.stringSpec({
169
+ meaning: 'The matter or case the hold preserves data for, in the placer\'s words.',
170
+ whyItMatters: 'Required. Kept with the hold as defence evidence and never scrubbed; never carried into refusals, audit events or SIEM exports, where free text could name a third party.',
171
+ }),
172
+ placementTier: schemaShape.placementTier.enumSpec({
173
+ meaning: 'Which tier placed the hold, and therefore which tier may release it.',
174
+ whyItMatters: 'The organization must not lift a duty the operator placed on it, and the operator must not lift a live organization\'s own litigation hold. The one exception: once the organization is marked for deletion its owners hold no authority, so the platform tier may release the organization\'s own holds, or the tenant could never be purged.',
175
+ enumDeclaration: {
176
+ packageName: '@wildo-ai/saas-models',
177
+ exportName: 'LegalHoldPlacementTier',
178
+ symbolKind: CodeSymbolKind.ENUM,
179
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
180
+ },
181
+ values: {
182
+ [LegalHoldPlacementTier.ORGANIZATION]: { meaning: 'Placed by the organization\'s owner for its own data.' },
183
+ [LegalHoldPlacementTier.PLATFORM]: { meaning: 'Placed by an application super-administrator through the declared cross-tenant door, with a usable platform access grant.' },
184
+ },
185
+ }),
186
+ status: schemaShape.status.enumSpec({
187
+ meaning: 'Whether the hold is in force.',
188
+ whyItMatters: 'Only ACTIVE holds suspend deletion. There is no expiry state: litigation ends by decision, not by clock.',
189
+ importance: FieldSemanticImportance.PRIMARY,
190
+ enumDeclaration: {
191
+ packageName: '@wildo-ai/saas-models',
192
+ exportName: 'LegalHoldStatus',
193
+ symbolKind: CodeSymbolKind.ENUM,
194
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
195
+ },
196
+ values: {
197
+ [LegalHoldStatus.ACTIVE]: { meaning: 'In force: every deletion path skips or refuses the held scope.' },
198
+ [LegalHoldStatus.RELEASED]: { meaning: 'Ended by the tier that placed it. Kept as evidence and never reactivated.' },
199
+ },
200
+ }),
201
+ placedByUserId: schemaShape.placedByUserId.foreignKeySpec({
202
+ meaning: 'The person who placed the hold, from the authenticated session.',
203
+ whyItMatters: 'Answers who suspended the organization\'s deletion schedule.',
204
+ }),
205
+ placedAt: schemaShape.placedAt.dateSpec({
206
+ meaning: 'When the hold was placed.',
207
+ whyItMatters: 'The start of the suspension window.',
208
+ temporalRole: 'occurred',
209
+ }),
210
+ releasedByUserId: schemaShape.releasedByUserId.foreignKeySpec({
211
+ meaning: 'The person who released the hold.',
212
+ whyItMatters: 'Answers who let deletion resume.',
213
+ }),
214
+ releasedAt: schemaShape.releasedAt.dateSpec({
215
+ meaning: 'When the hold was released.',
216
+ whyItMatters: 'The end of the suspension window, and the start of the AUDIT_LOGS retention period of the hold itself. Absent while active, so an active hold never expires.',
217
+ temporalRole: 'occurred',
218
+ }),
219
+ releaseReason: schemaShape.releaseReason.stringSpec({
220
+ meaning: 'Why the preservation duty ended.',
221
+ whyItMatters: 'The other half of the record: a release with no stated reason cannot be reviewed.',
222
+ }),
223
+ createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the hold row was written.', whyItMatters: 'Ordering key for the organization\'s hold history.', temporalRole: 'creation' }),
224
+ updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the hold row last changed — its release.', whyItMatters: 'A hold changes once at most.', temporalRole: 'modified' }),
225
+ },
226
+ operations: {
227
+ [Op.READ]: {
228
+ purpose: 'Inspect one legal hold on your organization.',
229
+ outcome: 'The hold, with its scope, ground, tier and status.',
230
+ whenToUse: 'An owner reviewing why data is not being deleted, or an operator (through the admin variant and a usable grant) reviewing a hold it placed.',
231
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The hold was found and returned.' }],
232
+ errorScenarios: [READ_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No hold with that id is visible in the organization.' }],
233
+ idempotent: true,
234
+ examples: [{ title: 'Inspect an active data-subject hold', request: { organizationId: EXAMPLE_ORGANIZATION_ID, legalHoldId: EXAMPLE_HOLD_ID }, response: activeHoldExample, forStatus: HttpResponseStatusCode.OK_200 }],
235
+ variants: {
236
+ summary: { examples: [{ title: 'Inspect the compact hold summary', request: { organizationId: EXAMPLE_ORGANIZATION_ID, legalHoldId: EXAMPLE_HOLD_ID }, response: holdSummaryExample, forStatus: HttpResponseStatusCode.OK_200 }] },
237
+ },
238
+ },
239
+ [Op.LIST]: {
240
+ purpose: 'List the legal holds on your organization, active and released.',
241
+ outcome: 'A page of the organization\'s holds.',
242
+ whenToUse: 'A compliance review, or answering why a retention period is not being enforced.',
243
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of holds.' }],
244
+ errorScenarios: [READ_FORBIDDEN],
245
+ idempotent: true,
246
+ examples: [{ title: 'List the organization\'s holds', request: PAGE_REQUEST, response: page([activeHoldExample, releasedHoldExample]), forStatus: HttpResponseStatusCode.OK_200 }],
247
+ variants: {
248
+ summary: { examples: [{ title: 'List compact hold summaries', request: PAGE_REQUEST, response: page([holdSummaryExample]), forStatus: HttpResponseStatusCode.OK_200 }] },
249
+ },
250
+ },
251
+ [Op.COUNT]: {
252
+ purpose: 'Count the legal holds on your organization.',
253
+ outcome: 'The matching total, without the hold records.',
254
+ whenToUse: 'A settings badge or a review that needs the number of active holds.',
255
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The number of matching holds.' }],
256
+ errorScenarios: [READ_FORBIDDEN],
257
+ idempotent: true,
258
+ examples: [{ title: 'Count active holds', request: { organizationId: EXAMPLE_ORGANIZATION_ID, status: LegalHoldStatus.ACTIVE }, response: { count: 1 }, forStatus: HttpResponseStatusCode.OK_200 }],
259
+ },
260
+ [Op.DELETE]: {
261
+ purpose: 'SWEEP ONLY — dispose of a released hold once its AUDIT_LOGS period has passed. No client door.',
262
+ outcome: 'The released hold is deleted by the retention-class sweep. INTERNAL_CALL, so it has no HTTP route.',
263
+ whenToUse: 'Never directly.',
264
+ responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The released hold was removed by the sweep. Not observable over HTTP.' }],
265
+ idempotent: true,
266
+ },
267
+ [LegalHolds_Operations.PLACE]: {
268
+ operationId: LegalHolds_Operations.PLACE,
269
+ purpose: 'Place a legal hold that suspends every deletion of a scope of the organization\'s data until it is released.',
270
+ outcome: 'An ACTIVE hold is recorded with the caller as placer and the tier of the variant used. From that instant the retention sweep skips the held rows, erasures leave them as they are, the organization is not purged and deletes are refused. `LEGAL_HOLD_PLACED` is written to the organization\'s audit trail.',
271
+ whenToUse: 'Litigation, a claim, an investigation or a legal obligation requires data to be preserved. Requires recent re-authentication (step-up).',
272
+ importance: FieldSemanticImportance.PRIMARY,
273
+ responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The hold is in force.' }],
274
+ errorScenarios: [
275
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The scope is incoherent (an organization hold with a resource type, a resource-rows hold without one, a data-subject hold without a subject); the resource type is unknown or does not belong to an organization (which includes every resource whose rows expire by the database\'s own row TTL); or the subject is not a member of the organization (the platform tier: names no user). "Not a member" and "no such user" read the same.' },
276
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\'s owner, or an application super-administrator without a usable platform access grant for this organization, or has not re-authenticated recently.' },
277
+ ],
278
+ idempotent: false,
279
+ examples: [{
280
+ title: 'Hold one member\'s data for a claim',
281
+ request: { organizationId: EXAMPLE_ORGANIZATION_ID, scopeKind: LegalHoldScopeKind.DATA_SUBJECT, subjectUserId: EXAMPLE_MEMBER_ID, legalGround: LegalHoldGround.LEGAL_CLAIMS, justification: activeHoldExample.justification },
282
+ response: activeHoldExample,
283
+ forStatus: HttpResponseStatusCode.CREATED_201,
284
+ }],
285
+ variants: {
286
+ default: { purpose: 'The organization\'s owner holds the organization\'s own data.', whenToUse: 'The organization is party to a claim or dispute.' },
287
+ admin: { purpose: 'An application super-administrator holds a tenant\'s data, through the declared cross-tenant door.', whenToUse: 'A regulator or court requires the operator to preserve a tenant\'s data. Needs a usable platform access grant for the tenant.' },
288
+ },
289
+ },
290
+ [LegalHolds_Operations.RELEASE]: {
291
+ operationId: LegalHolds_Operations.RELEASE,
292
+ purpose: 'Release an active legal hold so deletion of its scope can resume.',
293
+ outcome: 'The hold becomes RELEASED with the caller and reason recorded. The next sweep, purge or erasure proceeds; rows whose period already passed are deleted by the next sweep run. `LEGAL_HOLD_RELEASED` is written to the organization\'s audit trail.',
294
+ whenToUse: 'The preservation duty has ended. Only the tier that placed the hold may release it, except that the platform tier may release an organization\'s own hold once the organization is marked for deletion. Requires step-up.',
295
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The hold is released.' }],
296
+ errorScenarios: [
297
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'No release reason was given.' },
298
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller holds neither tier\'s role, or has not re-authenticated recently.' },
299
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The hold is already released, or was placed by the other tier (for the platform tier: by a live organization).' },
300
+ ],
301
+ idempotent: false,
302
+ examples: [{
303
+ title: 'Release a hold after settlement',
304
+ request: { organizationId: EXAMPLE_ORGANIZATION_ID, legalHoldId: EXAMPLE_HOLD_ID, releaseReason: releasedHoldExample.releaseReason },
305
+ response: releasedHoldExample,
306
+ forStatus: HttpResponseStatusCode.OK_200,
307
+ }],
308
+ variants: {
309
+ default: { purpose: 'The organization\'s owner releases a hold the organization placed.', whenToUse: 'The organization\'s claim or dispute has ended.' },
310
+ admin: { purpose: 'An application super-administrator releases a hold the platform placed, or an organization\'s own hold once that organization is marked for deletion.', whenToUse: 'The authority\'s preservation requirement has ended, or a marked organization\'s own duty has ended and its owners can no longer release it.' },
311
+ },
312
+ },
313
+ },
314
+ businessConstraints: [
315
+ 'A hold never expires. It ends only by an explicit release from the tier that placed it — or, for an organization marked for deletion, from the platform tier.',
316
+ 'An organization may hold only a person it still has a membership row for, whatever its status. A hold on a person also covers that person\'s rows outside any organization, so this confines a tenant to its own people. Removing a member deletes that row, so hold a person BEFORE removing them; for someone already removed, hold the organization or the rows concerned (RESOURCE_ROWS), or ask the platform tier, which may name any user.',
317
+ 'Framework plumbing is outside a hold: rows that expire by the database\'s own row TTL, and delivery queues whose records are copies of evidence kept elsewhere.',
318
+ 'A released hold is never reactivated; a new duty is a new hold.',
319
+ 'A tenant under ANY active hold is not purged, even when only some of its rows or one of its people are held: a purge destroys every row.',
320
+ 'A hold suspends deletion and scrubbing, not reads or updates. Restricting the processing of kept data is a statutory restriction, a different obligation.',
321
+ 'A delete addressing several rows is refused whole when any of them is held; a batch skips and counts held rows instead of failing.',
322
+ 'Deletion is refused when the active holds cannot be read. A read error never means "not held".',
323
+ ],
324
+ }), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
325
+ //# sourceMappingURL=legal-holds.resource.specification.js.map