@wildo-ai/saas-specifications 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (633) hide show
  1. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
  2. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  3. package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
  4. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  5. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
  6. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  7. package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
  8. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  9. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
  10. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  11. package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
  12. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  13. package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
  14. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
  15. package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
  16. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
  17. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
  19. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
  21. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
  23. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
  25. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
  26. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
  27. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
  28. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
  30. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  31. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
  32. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  33. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  34. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
  35. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
  36. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
  37. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
  38. package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
  39. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  40. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  41. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
  42. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  43. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
  44. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  45. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +178 -2
  46. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +115 -9
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
  50. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
  51. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
  52. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
  53. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  54. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
  55. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  56. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
  57. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
  58. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
  59. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
  60. package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
  61. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  62. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  63. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
  64. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
  65. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
  66. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
  67. package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
  68. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  69. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  70. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
  71. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
  73. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  74. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
  75. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
  76. package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
  77. package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
  78. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
  79. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
  81. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  82. package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
  83. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
  84. package/dist/esm/_core/family-aspects.registry.js +60 -0
  85. package/dist/esm/_core/family-aspects.registry.js.map +1 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
  87. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
  88. package/dist/esm/_core/family-aspects.schemas.js +15 -0
  89. package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
  91. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
  92. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
  93. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
  94. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
  95. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
  97. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
  98. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
  99. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
  103. package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
  104. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
  105. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  106. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  107. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
  108. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  109. package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
  110. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  111. package/dist/esm/_core/index.d.ts +3 -0
  112. package/dist/esm/_core/index.d.ts.map +1 -1
  113. package/dist/esm/_core/index.js +3 -0
  114. package/dist/esm/_core/index.js.map +1 -1
  115. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
  116. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  117. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
  118. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  119. package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
  120. package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
  121. package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
  122. package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
  123. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
  124. package/dist/esm/_core/market/market.family-aspects.js +227 -0
  125. package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
  126. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
  127. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  128. package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
  129. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  130. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
  132. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  133. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
  134. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  135. package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
  136. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  137. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
  138. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
  139. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
  140. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
  141. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
  142. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  143. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
  144. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  145. package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
  146. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
  147. package/dist/esm/_core/provider-specification.schemas.js +144 -0
  148. package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
  149. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  150. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
  151. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  152. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
  153. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  154. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  155. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
  156. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
  157. package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
  158. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
  159. package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
  160. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  162. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  163. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
  164. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  165. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
  166. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  167. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  168. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
  169. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
  170. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
  171. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
  172. package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
  173. package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
  174. package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
  175. package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
  176. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
  178. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  179. package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
  180. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
  181. package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
  182. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
  183. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
  184. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
  185. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +193 -38
  186. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  187. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +157 -57
  188. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  189. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
  190. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
  191. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
  193. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  194. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
  195. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  196. package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
  197. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
  198. package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
  199. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
  200. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
  201. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
  202. package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
  203. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
  204. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
  205. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  206. package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
  207. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  208. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +101 -85
  209. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  210. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +171 -86
  211. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  212. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
  213. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  214. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  215. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  216. package/dist/esm/application-creation.exports.d.ts +11 -0
  217. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  218. package/dist/esm/application-creation.exports.js +11 -0
  219. package/dist/esm/application-creation.exports.js.map +1 -1
  220. package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
  221. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
  223. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +999 -2
  225. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  226. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2127 -61
  227. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  228. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +26 -0
  229. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  230. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  231. package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
  232. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  233. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
  234. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  235. package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
  236. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  237. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
  238. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
  239. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
  240. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
  241. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
  242. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
  243. package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
  244. package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
  245. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
  246. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  247. package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
  248. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  249. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +78 -1
  250. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  251. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +562 -5
  252. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  253. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +148 -0
  254. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
  255. package/dist/esm/assurance/assurance-program-generation.schemas.js +385 -0
  256. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
  257. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
  258. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
  259. package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
  260. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
  261. package/dist/esm/assurance/assurance-program.schemas.d.ts +474 -14
  262. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  263. package/dist/esm/assurance/assurance-program.schemas.js +319 -8
  264. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  265. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
  266. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  267. package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
  268. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  269. package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
  270. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  271. package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
  272. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  273. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
  274. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
  275. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
  276. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
  277. package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
  278. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
  279. package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
  280. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
  281. package/dist/esm/assurance.exports.d.ts +2 -0
  282. package/dist/esm/assurance.exports.d.ts.map +1 -1
  283. package/dist/esm/assurance.exports.js +2 -0
  284. package/dist/esm/assurance.exports.js.map +1 -1
  285. package/dist/esm/companion-exports.d.ts +26 -8
  286. package/dist/esm/companion-exports.d.ts.map +1 -1
  287. package/dist/esm/companion-exports.js.map +1 -1
  288. package/dist/esm/engine/_bootstrap.js +3 -1
  289. package/dist/esm/engine/_bootstrap.js.map +1 -1
  290. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +15 -1
  292. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +4 -2
  295. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
  297. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +17 -3
  299. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +12 -10
  302. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -2
  305. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
  307. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
  308. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
  309. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
  310. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
  311. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  312. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +3 -1
  313. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  314. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +15 -1
  316. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
  318. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  319. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +17 -3
  320. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  321. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
  322. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
  323. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
  324. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
  325. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
  326. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  327. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +6 -4
  328. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  329. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  330. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +4 -2
  331. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  332. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +8 -6
  334. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +11 -9
  337. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  339. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +8 -6
  340. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  341. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
  342. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  343. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +106 -10
  344. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  345. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
  346. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  347. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
  348. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  349. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
  350. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
  351. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
  352. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
  353. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
  354. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +6 -3
  356. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  357. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
  358. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  359. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +4 -2
  360. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  361. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
  362. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  363. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -3
  364. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  365. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  366. package/dist/esm/engine/billing/resources/prices.resource.specification.js +10 -8
  367. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  368. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  369. package/dist/esm/engine/billing/resources/products.resource.specification.js +10 -8
  370. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  371. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +16 -12
  373. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  374. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  375. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +10 -8
  376. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  377. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
  378. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  379. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +8 -3
  380. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +13 -9
  382. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  383. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +30 -11
  384. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  385. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +10 -8
  387. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
  389. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  390. package/dist/esm/engine/engine-resource-specifications.registry.js +11 -2
  391. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  392. package/dist/esm/engine/engine-resource-sub-domain.d.ts +83 -0
  393. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
  394. package/dist/esm/engine/engine-resource-sub-domain.js +153 -0
  395. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
  396. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  397. package/dist/esm/engine/errors/error-messages.specification.js +44 -1
  398. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  399. package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
  400. package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
  401. package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
  402. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  403. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  404. package/dist/esm/engine/features/resources/application-features.resource.specification.js +5 -3
  405. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  406. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +5 -3
  408. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/features/resources/user-features.resource.specification.js +5 -3
  412. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  414. package/dist/esm/engine/files/resources/files.resource.specification.js +12 -10
  415. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  416. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
  417. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  418. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +22 -10
  419. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  420. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
  421. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  422. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -4
  423. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  424. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
  425. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +4 -2
  427. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  428. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  429. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  430. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
  431. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
  433. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
  434. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
  435. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
  436. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
  437. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
  438. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
  439. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
  440. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  441. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
  442. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
  444. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
  445. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
  446. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
  447. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
  448. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
  449. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
  450. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
  451. package/dist/esm/engine/frontend-components/index.d.ts +0 -2
  452. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  453. package/dist/esm/engine/frontend-components/index.js +4 -6
  454. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  455. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
  456. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  457. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +15 -12
  458. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  459. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
  460. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +12 -9
  462. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +9 -1
  464. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  465. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +9 -6
  466. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/index.d.ts +2 -0
  468. package/dist/esm/engine/index.d.ts.map +1 -1
  469. package/dist/esm/engine/index.js +2 -0
  470. package/dist/esm/engine/index.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +19 -17
  473. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  474. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  475. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -7
  476. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  477. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  478. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +10 -8
  479. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  480. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
  481. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  482. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +12 -5
  483. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  484. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -15
  486. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  488. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  489. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +14 -10
  490. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  491. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  492. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +31 -6
  493. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  494. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  495. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  496. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +11 -9
  497. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  498. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  499. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -3
  500. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  501. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  502. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +6 -4
  503. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  504. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  505. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -2
  506. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  507. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  508. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +3 -1
  509. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  510. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  511. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
  512. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  514. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +9 -7
  515. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  516. package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
  517. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
  518. package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
  519. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
  520. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
  521. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
  522. package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
  523. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
  524. package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
  525. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
  527. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
  528. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
  529. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
  531. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
  532. package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
  533. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/providers/github.provider.specification.js +30 -0
  535. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
  536. package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
  537. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/providers/google.provider.specification.js +34 -0
  539. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
  540. package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
  541. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
  542. package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
  543. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
  544. package/dist/esm/engine/providers/index.d.ts +23 -0
  545. package/dist/esm/engine/providers/index.d.ts.map +1 -0
  546. package/dist/esm/engine/providers/index.js +37 -0
  547. package/dist/esm/engine/providers/index.js.map +1 -0
  548. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
  549. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
  550. package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
  551. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
  552. package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
  553. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
  554. package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
  555. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
  556. package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
  557. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
  558. package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
  559. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
  560. package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
  561. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
  562. package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
  563. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
  564. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
  565. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
  566. package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
  567. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
  568. package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
  569. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
  570. package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
  571. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
  572. package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
  573. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
  574. package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
  575. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
  576. package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
  577. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
  578. package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
  579. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
  580. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +9 -7
  582. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
  584. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +11 -9
  586. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  587. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
  588. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +4 -2
  590. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  591. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  592. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +10 -8
  594. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  595. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
  596. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +6 -4
  598. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  599. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
  600. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +4 -2
  602. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  603. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +5 -5
  604. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +15 -11
  606. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  607. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
  608. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +3 -1
  610. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  612. package/dist/esm/engine/users/resources/user-self.resource.specification.js +11 -9
  613. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  614. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  615. package/dist/esm/engine/users/resources/users.resource.specification.js +95 -0
  616. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  617. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
  618. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  619. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +451 -25
  620. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  621. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
  622. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  623. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +37 -1
  624. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  625. package/dist/tsconfig.build.tsbuildinfo +1 -0
  626. package/package.json +8 -8
  627. package/dist/esm/.builder.pid +0 -9
  628. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
  629. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
  630. package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
  631. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
  632. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
  633. package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"job-executions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-executions.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,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ClI,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,qGAAqG,EAAE;aACxJ;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2FAA2F,EAAE;aAClJ;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,sBAAsB,CAAC,QAAQ,CAAC,EAAE;oBACjC,OAAO,EAAE,kGAAkG;oBAC3G,SAAS,EAAE,yHAAyH;iBACrI;aACF;SACF;KACF;IAED,mBAAmB,EAAE;QACnB,2HAA2H;QAC3H,qLAAqL;QACrL,mIAAmI;KACpI;CACF,CAAC;AACF,wEAAwE;AACxE,yEAAyE;AACzE,uEAAuE;AACvE,yEAAyE;AACzE,yEAAyE;AACzE,sEAAsE;AACtE,iEAAiE;AACjE,yEAAyE;AACzE,0EAA0E;AAC1E,8DAA8D;AAC9D,wEAAwE;AACxE,yEAAyE;AACzE,2EAA2E;AAC3E,mEAAmE;AACnE,uEAAuE;AACvE,8DAA8D;AAC9D,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n JobExecutionSchema,\n JobExecutionStatus,\n JobExecutionVariantKey,\n JobInitiator,\n JobPriority,\n JobType,\n ResourcePrimaryScope,\n jobExecution_ResourceConfiguration_InitializationFactory as jobExecutionFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\n\n/**\n * Framework-owned base specification for the internal `jobExecutions` resource.\n *\n * This resource is intentionally authored from the shared resource factory only:\n * it is a platform/infrastructure truth source, and its first useful semantic\n * layer is the base operational model rather than end-user UI narration.\n */\nexport const jobExecutionsResourceSpecification = resourceSpecification(\n jobExecutionFactory,\n JobExecutionSchema,\n ({ schemaShape }) => ({\n purpose: 'Track the lifecycle of background jobs executed by the platform queue system.',\n businessRole: 'Operational control-plane record used to observe, troubleshoot, and audit asynchronous work.',\n lifecycleRole: 'Moves through queue intake, execution, retry, completion, failure, or cancellation states under infrastructure control.',\n audience: LabelAudience.DEVELOPER,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobExecutionSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'jobExecution_ResourceConfiguration_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: 'JOB_EXECUTIONS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n },\n\n fields: {\n jobId: schemaShape.jobId.stringSpec({\n meaning: 'Stable operational identifier for one job execution.',\n whyItMatters: 'It is the main anchor used by operators and infrastructure services to correlate one execution across logs, retries, and storage.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n jobType: schemaShape.jobType.enumSpec({\n meaning: 'Classifies which family of background capability this execution belongs to.',\n whyItMatters: 'It distinguishes what kind of business or platform work is being performed so operators can reason about volume, ownership, and failure posture.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobType.RESOURCE_OPERATION]: { meaning: 'Asynchronous execution of a resource operation or workflow step.' },\n [JobType.CUSTOM_BATCH]: { meaning: 'Batch-style work defined outside the default CRUD operation families.' },\n [JobType.SCHEDULED_CRON]: { meaning: 'Platform-scheduled recurring work triggered by a cron definition.' },\n [JobType.MINION_TICK]: { meaning: 'Cron-driven minion tick published to the application scheduled queue when a minion’s cron schedule fires; consumed by the minion runtime that owns the matching `minionName`.' },\n },\n }),\n\n status: schemaShape.status.enumSpec({\n meaning: 'Current execution state of the queued job.',\n whyItMatters: 'It is the primary operational signal for knowing whether work is still pending, progressing, completed, or needs intervention.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobExecutionStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobExecutionStatus.PENDING]: { meaning: 'Accepted but not yet queued for processing.' },\n [JobExecutionStatus.QUEUED]: { meaning: 'Waiting in the queue for worker pickup.' },\n [JobExecutionStatus.PROCESSING]: { meaning: 'Actively executing on a worker.' },\n [JobExecutionStatus.COMPLETED]: { meaning: 'Finished successfully.' },\n [JobExecutionStatus.FAILED]: { meaning: 'Execution finished unsuccessfully and currently stands in a failed state.' },\n [JobExecutionStatus.RETRYING]: { meaning: 'A previous attempt failed and the platform is scheduling or running another attempt.' },\n [JobExecutionStatus.DEAD_LETTER]: { meaning: 'The job exhausted its recovery path and has been isolated for operator attention.' },\n [JobExecutionStatus.CANCELLED]: { meaning: 'Execution was intentionally stopped before successful completion.' },\n },\n }),\n\n initiatedBy: schemaShape.initiatedBy.enumSpec({\n meaning: 'Who or what caused this job execution to exist.',\n whyItMatters: 'It helps operators separate human-triggered work from system-initiated automation when investigating behavior.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobInitiator',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobInitiator.API]: { meaning: 'Created from an API-triggered action.' },\n [JobInitiator.CRONTAB]: { meaning: 'Created by scheduled recurring automation.' },\n [JobInitiator.INTERNAL]: { meaning: 'Created internally by platform/service orchestration.' },\n },\n }),\n\n priority: schemaShape.priority.enumSpec({\n meaning: 'Operational urgency level for queue scheduling.',\n whyItMatters: 'It influences how infrastructure should treat this work relative to other queued executions.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobPriority',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobPriority.LOW]: { meaning: 'Background work that can wait.' },\n [JobPriority.NORMAL]: { meaning: 'Standard priority for ordinary asynchronous tasks.' },\n [JobPriority.HIGH]: { meaning: 'Important work that should be processed sooner than normal tasks.' },\n [JobPriority.CRITICAL]: { meaning: 'Top-priority work whose delay could materially harm platform behavior.' },\n },\n }),\n\n operationPathKey: schemaShape.operationPathKey.stringSpec({\n meaning: 'Links the execution to the underlying resource operation path that spawned it.',\n whyItMatters: 'It ties low-level job processing back to the higher-level product or platform action that caused the asynchronous work.',\n semanticRole: 'code',\n }),\n\n batchRef: schemaShape.batchRef.stringSpec({\n meaning: 'Shared reference for executions that belong to the same batch or orchestration wave.',\n whyItMatters: 'It lets operators correlate multiple job rows that were intentionally created as one coordinated run.',\n semanticRole: 'identifier',\n }),\n\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The `organizations` row that owns the tenant context this execution ran under, captured from the initiating execution context.',\n whyItMatters: 'It lets operators filter and isolate the execution ledger per tenant when triaging or reporting on background work.',\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The `users` row that initiated the work, when a human principal (rather than a system process) caused the execution.',\n whyItMatters: 'It attributes background work to the initiating user for accountability and per-actor investigation; absent for system-initiated jobs.',\n }),\n\n inputPayloadStorageId: schemaShape.inputPayloadStorageId.foreignKeySpec({\n meaning: 'The `jobPayloadStorage` row holding the serialized INPUT arguments when the payload was spilled out of the queue envelope for size.',\n whyItMatters: 'It lets the worker rehydrate the exact input arguments this execution ran with, for processing, replay, and troubleshooting.',\n }),\n\n outputPayloadStorageId: schemaShape.outputPayloadStorageId.foreignKeySpec({\n meaning: 'The `jobPayloadStorage` row holding the serialized OUTPUT/result of the execution when the result was spilled to storage rather than kept inline.',\n whyItMatters: 'It lets downstream consumers and operators retrieve the produced result of a completed execution without overloading the queue envelope.',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Create a new job execution record.',\n outcome: 'The platform begins tracking one asynchronous work item as a first-class execution row.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A job execution ledger row was registered and returned with its server-assigned `jobId`. This is an internal/service write path (the `INTERNAL` variant is `REPOSITORY_ONLY`), not a self-serve API create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The execution payload fails schema validation (e.g. an unknown `jobType`, missing `status`, or malformed correlation fields).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-infrastructure caller attempts to register a job — execution rows are created only by the queue/runtime layer through the internal repository service.' },\n ],\n idempotent: false,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal infrastructure services to register a job before queue processing begins.',\n whenToUse: 'Use when the queue/runtime layer needs to persist a new execution as part of internal orchestration.',\n },\n },\n },\n\n [Op.READ]: {\n purpose: 'Read one job execution record.',\n outcome: 'The caller can inspect the current tracked state of a specific asynchronous execution.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The job execution row for the supplied `jobId` was found and its tracked lifecycle state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No job execution row exists for the supplied `jobId` (never created, or already purged by retention).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an operator/infrastructure principal — this ledger is internal-only and not exposed to ordinary tenant callers.' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal infrastructure services to resolve one execution during queue handling or observability flows.',\n },\n },\n },\n\n [Op.UPDATE]: {\n purpose: 'Advance or correct the tracked state of a job execution.',\n outcome: 'The platform’s operational truth about the execution stays synchronized with the actual runtime lifecycle.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The execution row recorded the new lifecycle state (status, timing, retry count, payload ref, or error) and the updated row is returned. Internal/service write path — the worker/runtime layer owns these transitions.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No job execution row exists for the supplied `jobId` to advance.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The lifecycle patch fails schema validation (e.g. an unrecognized `status` value).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-infrastructure caller attempts to mutate execution state.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested transition is illegal for the row’s current state (e.g. moving a `COMPLETED`/`CANCELLED` terminal row back to `PROCESSING`).' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow infrastructure services to record status changes, timing, retries, payload references, and errors.',\n whenToUse: 'Use whenever the worker/runtime layer needs to persist a lifecycle transition for a running or finished job.',\n },\n },\n },\n\n [Op.LIST]: {\n purpose: 'Enumerate job execution records.',\n outcome: 'The caller can inspect a set of executions instead of one isolated row.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of job execution rows in the requested scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an operator/infrastructure principal authorized to enumerate the execution ledger.' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal operational tooling or services to inspect batches of executions.',\n },\n },\n },\n\n [Op.SEARCH]: {\n purpose: 'Filter and search job execution history.',\n outcome: 'Operators or infrastructure flows can narrow execution history to the subset relevant for troubleshooting or reporting.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of executions matching the status / type / initiator / correlation filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/infrastructure role required to query the execution ledger.' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal operational search across status, type, initiator, queue, and correlation fields.',\n whenToUse: 'Use when observability, support, or queue-control workflows need targeted execution lookup rather than raw enumeration.',\n },\n },\n },\n },\n\n businessConstraints: [\n 'This resource is an infrastructure execution ledger, not the source of truth for the business entity that caused the job.',\n 'Job execution rows should remain focused on runtime lifecycle, correlation, and troubleshooting semantics rather than becoming a generic dumping ground for arbitrary payload data.',\n 'The dominant consumer posture is operational and internal, even if later tooling surfaces selected projections to administrators.',\n ],\n }),\n // Phase 4.5 Step 2 (F-1): explicit scope declaration. JOB_EXECUTIONS is\n // a STANDALONE infrastructure ledger (the `APPLICATION → JOB_EXECUTIONS`\n // relationship in `resources-registry.shared.core.definitions.ts` uses\n // `accessScopeStrategy: STANDALONE`, intentionally bypassing scope-based\n // access control because access is internal-only via repository services\n // with INTERNAL variants). There is no m2m channel × scope surface to\n // protect because the resource carries no m2m blocks (verified —\n // operational/internal spec), so the declaration's only live consumer is\n // the spec ↔ registry alignment guard. The registry factory has NO silent\n // scope fallback (it throws without a derivation signal — see\n // `primary-scope-no-fallback.test.ts`); it derives APPLICATION from the\n // `isPrimaryScope: true` flag on the `APPLICATION → JOB_EXECUTIONS` rel.\n // An earlier revision declared ORGANIZATIONS on the (incorrect) assumption\n // of an ORGANIZATIONS fallback for STANDALONE resources; corrected\n // 2026-07-02 when the companion alignment guard started pairing engine\n // specs with materialized core configs and flagged the drift.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
1
+ {"version":3,"file":"job-executions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-executions.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACX,OAAO,EACP,oBAAoB,EACpB,wDAAwD,IAAI,mBAAmB,GAChF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,qBAAqB,CACrE,mBAAmB,EACnB,kBAAkB,EAClB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,+EAA+E;IACxF,YAAY,EAAE,8FAA8F;IAC5G,aAAa,EAAE,yHAAyH;IACxI,QAAQ,EAAE,aAAa,CAAC,SAAS;IACjC,SAAS,EAAE,uBAAuB,CAAC,cAAc;IACjD,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,oBAAoB;YAChC,UAAU,EAAE,cAAc,CAAC,MAAM;YACjC,eAAe,EAAE,mBAAmB,CAAC,UAAU;SAChD;QACD,eAAe,EAAE;YACf,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,0DAA0D;YACtE,UAAU,EAAE,cAAc,CAAC,OAAO;YAClC,eAAe,EAAE,mBAAmB,CAAC,QAAQ;SAC9C;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EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sGAAsG,EAAE;aAC7J;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,sBAAsB,CAAC,QAAQ,CAAC,EAAE;oBACjC,OAAO,EAAE,kFAAkF;iBAC5F;aACF;SACF;QAED,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,0CAA0C;YACnD,OAAO,EAAE,yHAAyH;YAClI,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,qGAAqG,EAAE;aACxJ;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2FAA2F,EAAE;aAClJ;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,sBAAsB,CAAC,QAAQ,CAAC,EAAE;oBACjC,OAAO,EAAE,kGAAkG;oBAC3G,SAAS,EAAE,yHAAyH;iBACrI;aACF;SACF;KACF;IAED,mBAAmB,EAAE;QACnB,2HAA2H;QAC3H,qLAAqL;QACrL,mIAAmI;KACpI;CACF,CAAC;AACF,wEAAwE;AACxE,yEAAyE;AACzE,uEAAuE;AACvE,yEAAyE;AACzE,yEAAyE;AACzE,sEAAsE;AACtE,iEAAiE;AACjE,yEAAyE;AACzE,0EAA0E;AAC1E,8DAA8D;AAC9D,wEAAwE;AACxE,yEAAyE;AACzE,2EAA2E;AAC3E,mEAAmE;AACnE,uEAAuE;AACvE,8DAA8D;AAC9D,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n JobExecutionSchema,\n JobExecutionStatus,\n JobExecutionVariantKey,\n JobInitiator,\n JobPriority,\n JobType,\n ResourcePrimaryScope,\n jobExecution_ResourceConfiguration_InitializationFactory as jobExecutionFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned base specification for the internal `jobExecutions` resource.\n *\n * This resource is intentionally authored from the shared resource factory only:\n * it is a platform/infrastructure truth source, and its first useful semantic\n * layer is the base operational model rather than end-user UI narration.\n */\nexport const jobExecutionsResourceSpecification = resourceSpecification(\n jobExecutionFactory,\n JobExecutionSchema,\n ({ schemaShape }) => ({\n purpose: 'Track the lifecycle of background jobs executed by the platform queue system.',\n businessRole: 'Operational control-plane record used to observe, troubleshoot, and audit asynchronous work.',\n lifecycleRole: 'Moves through queue intake, execution, retry, completion, failure, or cancellation states under infrastructure control.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobExecutionSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'jobExecution_ResourceConfiguration_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: 'JOB_EXECUTIONS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n },\n\n fields: {\n jobId: schemaShape.jobId.stringSpec({\n meaning: 'Stable operational identifier for one job execution.',\n whyItMatters: 'It is the main anchor used by operators and infrastructure services to correlate one execution across logs, retries, and storage.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n jobType: schemaShape.jobType.enumSpec({\n meaning: 'Classifies which family of background capability this execution belongs to.',\n whyItMatters: 'It distinguishes what kind of business or platform work is being performed so operators can reason about volume, ownership, and failure posture.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobType.RESOURCE_OPERATION]: { meaning: 'Asynchronous execution of a resource operation or workflow step.' },\n [JobType.CUSTOM_BATCH]: { meaning: 'Batch-style work defined outside the default CRUD operation families.' },\n [JobType.SCHEDULED_CRON]: { meaning: 'Platform-scheduled recurring work triggered by a cron definition.' },\n [JobType.MINION_TICK]: { meaning: 'Cron-driven minion tick published to the application scheduled queue when a minion’s cron schedule fires; consumed by the minion runtime that owns the matching `minionName`.' },\n },\n }),\n\n status: schemaShape.status.enumSpec({\n meaning: 'Current execution state of the queued job.',\n whyItMatters: 'It is the primary operational signal for knowing whether work is still pending, progressing, completed, or needs intervention.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobExecutionStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobExecutionStatus.PENDING]: { meaning: 'Accepted but not yet queued for processing.' },\n [JobExecutionStatus.QUEUED]: { meaning: 'Waiting in the queue for worker pickup.' },\n [JobExecutionStatus.PROCESSING]: { meaning: 'Actively executing on a worker.' },\n [JobExecutionStatus.COMPLETED]: { meaning: 'Finished successfully.' },\n [JobExecutionStatus.FAILED]: { meaning: 'Execution finished unsuccessfully and currently stands in a failed state.' },\n [JobExecutionStatus.RETRYING]: { meaning: 'A previous attempt failed and the platform is scheduling or running another attempt.' },\n [JobExecutionStatus.DEAD_LETTER]: { meaning: 'The job exhausted its recovery path and has been isolated for operator attention.' },\n [JobExecutionStatus.CANCELLED]: { meaning: 'Execution was intentionally stopped before successful completion.' },\n },\n }),\n\n initiatedBy: schemaShape.initiatedBy.enumSpec({\n meaning: 'Who or what caused this job execution to exist.',\n whyItMatters: 'It helps operators separate human-triggered work from system-initiated automation when investigating behavior.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobInitiator',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobInitiator.API]: { meaning: 'Created from an API-triggered action.' },\n [JobInitiator.CRONTAB]: { meaning: 'Created by scheduled recurring automation.' },\n [JobInitiator.INTERNAL]: { meaning: 'Created internally by platform/service orchestration.' },\n },\n }),\n\n priority: schemaShape.priority.enumSpec({\n meaning: 'Operational urgency level for queue scheduling.',\n whyItMatters: 'It influences how infrastructure should treat this work relative to other queued executions.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobPriority',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [JobPriority.LOW]: { meaning: 'Background work that can wait.' },\n [JobPriority.NORMAL]: { meaning: 'Standard priority for ordinary asynchronous tasks.' },\n [JobPriority.HIGH]: { meaning: 'Important work that should be processed sooner than normal tasks.' },\n [JobPriority.CRITICAL]: { meaning: 'Top-priority work whose delay could materially harm platform behavior.' },\n },\n }),\n\n operationPathKey: schemaShape.operationPathKey.stringSpec({\n meaning: 'Links the execution to the underlying resource operation path that spawned it.',\n whyItMatters: 'It ties low-level job processing back to the higher-level product or platform action that caused the asynchronous work.',\n semanticRole: 'code',\n }),\n\n batchRef: schemaShape.batchRef.stringSpec({\n meaning: 'Shared reference for executions that belong to the same batch or orchestration wave.',\n whyItMatters: 'It lets operators correlate multiple job rows that were intentionally created as one coordinated run.',\n semanticRole: 'identifier',\n }),\n\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The `organizations` record that owns the tenant context this execution ran under, captured from the initiating execution context.',\n whyItMatters: 'It lets operators filter and isolate the execution ledger per tenant when triaging or reporting on background work.',\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The `users` record that initiated the work, when a human principal (rather than a system process) caused the execution.',\n whyItMatters: 'It attributes background work to the initiating user for accountability and per-actor investigation; absent for system-initiated jobs.',\n }),\n\n inputPayloadStorageId: schemaShape.inputPayloadStorageId.foreignKeySpec({\n meaning: 'The `jobPayloadStorage` record holding the serialized INPUT arguments when the payload was spilled out of the queue envelope for size.',\n whyItMatters: 'It lets the worker rehydrate the exact input arguments this execution ran with, for processing, replay, and troubleshooting.',\n }),\n\n outputPayloadStorageId: schemaShape.outputPayloadStorageId.foreignKeySpec({\n meaning: 'The `jobPayloadStorage` record holding the serialized OUTPUT/result of the execution when the result was spilled to storage rather than kept inline.',\n whyItMatters: 'It lets downstream consumers and operators retrieve the produced result of a completed execution without overloading the queue envelope.',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Create a new job execution record.',\n outcome: 'The platform begins tracking one asynchronous work item as a first-class execution row.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A job execution ledger record was registered and returned with its server-assigned `jobId`. This is an internal/service write path (the `INTERNAL` variant is `REPOSITORY_ONLY`), not a self-serve API create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The execution payload fails schema validation (e.g. an unknown `jobType`, missing `status`, or malformed correlation fields).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-infrastructure caller attempts to register a job — execution rows are created only by the queue/runtime layer through the internal repository service.' },\n ],\n idempotent: false,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal infrastructure services to register a job before queue processing begins.',\n whenToUse: 'Use when the queue/runtime layer needs to persist a new execution as part of internal orchestration.',\n },\n },\n },\n\n [Op.READ]: {\n purpose: 'Read one job execution record.',\n outcome: 'The caller can inspect the current tracked state of a specific asynchronous execution.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The job execution record for the supplied `jobId` was found and its tracked lifecycle state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No job execution row exists for the supplied `jobId` (never created, or already purged by retention).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an operator/infrastructure principal — this ledger is internal-only and not exposed to ordinary tenant callers.' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal infrastructure services to resolve one execution during queue handling or observability flows.',\n },\n },\n },\n\n [Op.UPDATE]: {\n purpose: 'Advance or correct the tracked state of a job execution.',\n outcome: 'The platform’s operational truth about the execution stays synchronized with the actual runtime lifecycle.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The execution record recorded the new lifecycle state (status, timing, retry count, payload ref, or error) and the updated record is returned. Internal/service write path — the worker/runtime layer owns these transitions.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No job execution row exists for the supplied `jobId` to advance.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The lifecycle patch fails schema validation (e.g. an unrecognized `status` value).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-infrastructure caller attempts to mutate execution state.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested transition is illegal for the row’s current state (e.g. moving a `COMPLETED`/`CANCELLED` terminal row back to `PROCESSING`).' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow infrastructure services to record status changes, timing, retries, payload references, and errors.',\n whenToUse: 'Use whenever the worker/runtime layer needs to persist a lifecycle transition for a running or finished job.',\n },\n },\n },\n\n [Op.LIST]: {\n purpose: 'Enumerate job execution records.',\n outcome: 'The caller can inspect a set of executions instead of one isolated row.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of job execution records in the requested scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an operator/infrastructure principal authorized to enumerate the execution ledger.' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal operational tooling or services to inspect batches of executions.',\n },\n },\n },\n\n [Op.SEARCH]: {\n purpose: 'Filter and search job execution history.',\n outcome: 'Operators or infrastructure flows can narrow execution history to the subset relevant for troubleshooting or reporting.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of executions matching the status / type / initiator / correlation filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/infrastructure role required to query the execution ledger.' },\n ],\n idempotent: true,\n variants: {\n [JobExecutionVariantKey.INTERNAL]: {\n purpose: 'Allow internal operational search across status, type, initiator, queue, and correlation fields.',\n whenToUse: 'Use when observability, support, or queue-control workflows need targeted execution lookup rather than raw enumeration.',\n },\n },\n },\n },\n\n businessConstraints: [\n 'This resource is an infrastructure execution ledger, not the source of truth for the business entity that caused the job.',\n 'Job execution rows should remain focused on runtime lifecycle, correlation, and troubleshooting semantics rather than becoming a generic dumping ground for arbitrary payload data.',\n 'The dominant consumer posture is operational and internal, even if later tooling surfaces selected projections to administrators.',\n ],\n }),\n // Phase 4.5 Step 2 (F-1): explicit scope declaration. JOB_EXECUTIONS is\n // a STANDALONE infrastructure ledger (the `APPLICATION → JOB_EXECUTIONS`\n // relationship in `resources-registry.shared.core.definitions.ts` uses\n // `accessScopeStrategy: STANDALONE`, intentionally bypassing scope-based\n // access control because access is internal-only via repository services\n // with INTERNAL variants). There is no m2m channel × scope surface to\n // protect because the resource carries no m2m blocks (verified —\n // operational/internal spec), so the declaration's only live consumer is\n // the spec ↔ registry alignment guard. The registry factory has NO silent\n // scope fallback (it throws without a derivation signal — see\n // `primary-scope-no-fallback.test.ts`); it derives APPLICATION from the\n // `isPrimaryScope: true` flag on the `APPLICATION → JOB_EXECUTIONS` rel.\n // An earlier revision declared ORGANIZATIONS on the (incorrect) assumption\n // of an ORGANIZATIONS fallback for STANDALONE resources; corrected\n // 2026-07-02 when the companion alignment guard started pairing engine\n // specs with materialized core configs and flagged the drift.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
@@ -1,7 +1,12 @@
1
1
  import { CoreResourceOperation as Op } from '@wildo-ai/saas-models';
2
2
  /**
3
- * Internal `jobPayloadStorage` resource — no merged UI preset (`views: []` in
4
- * `infrastructure.resource-presets.ts`); spec is base `resourceSpecification` only.
3
+ * Internal `jobPayloadStorage` resource — **no UI preset at all**, and no route that could reach
4
+ * one: every operation is `REPOSITORY_ONLY`. The spec is base `resourceSpecification` only.
5
+ *
6
+ * A preset did exist (a per-status colour map and per-field display modes, shared with
7
+ * `jobExecutions`) and was deleted on 2026-09-08 — it rendered nowhere and made the absence of a
8
+ * job browser look like an oversight. See the note on `RESOURCES_FRONTEND_PLATFORM` in
9
+ * `@wildo-ai/presets-components` for where an operator looks instead.
5
10
  */
6
11
  export declare const jobPayloadStorageResourceSpecification: import("../../../_core").ResourceSpecificationConfig<undefined, Op.READ | Op.DELETE | Op.CREATE | Op.SEARCH, import("zod").ZodObject<{
7
12
  _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"job-payload-storage.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-payload-storage.resource.specification.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM5B,MAAM,uBAAuB,CAAC;AAG/B;;;GAGG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;iCAsKlD,CAAC"}
1
+ {"version":3,"file":"job-payload-storage.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-payload-storage.resource.specification.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM5B,MAAM,uBAAuB,CAAC;AAI/B;;;;;;;;GAQG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;iCAuKlD,CAAC"}
@@ -2,15 +2,22 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
2
2
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
3
3
  import { CoreResourceOperation as Op, JobPayloadStorageSchema, JobPayloadStorageVariantKey, PayloadCompressionType, ResourcePrimaryScope, jobPayloadStorage_ResourceConfiguration_InitializationFactory as jobPayloadStorageFactory, } from '@wildo-ai/saas-models';
4
4
  import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
5
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
5
6
  /**
6
- * Internal `jobPayloadStorage` resource — no merged UI preset (`views: []` in
7
- * `infrastructure.resource-presets.ts`); spec is base `resourceSpecification` only.
7
+ * Internal `jobPayloadStorage` resource — **no UI preset at all**, and no route that could reach
8
+ * one: every operation is `REPOSITORY_ONLY`. The spec is base `resourceSpecification` only.
9
+ *
10
+ * A preset did exist (a per-status colour map and per-field display modes, shared with
11
+ * `jobExecutions`) and was deleted on 2026-09-08 — it rendered nowhere and made the absence of a
12
+ * job browser look like an oversight. See the note on `RESOURCES_FRONTEND_PLATFORM` in
13
+ * `@wildo-ai/presets-components` for where an operator looks instead.
8
14
  */
9
15
  export const jobPayloadStorageResourceSpecification = resourceSpecification(jobPayloadStorageFactory, JobPayloadStorageSchema, ({ schemaShape }) => ({
10
16
  purpose: 'Persists large job payloads that exceed message-broker size limits, keyed by `storageId` and referenced from `JobPayload` transport rows.',
11
17
  businessRole: 'Durable, TTL-backed object row that queue workers and internal services use to pass serialized input without overloading the queue envelope.',
12
18
  lifecycleRole: 'Created on spill-over, read for execution, dec-referenced, and TTL-expired; optional explicit DELETE in maintenance flows.',
13
19
  audience: LabelAudience.DEVELOPER,
20
+ subDomain: EngineResourceSubDomain.INFRASTRUCTURE,
14
21
  codeHandling: {
15
22
  mainSchema: {
16
23
  packageName: '@wildo-ai/saas-models',
@@ -58,7 +65,7 @@ export const jobPayloadStorageResourceSpecification = resourceSpecification(jobP
58
65
  whyItMatters: 'Backend-only in schema — still documented so companion prompts do not assert this is user-visible in product UI.',
59
66
  semanticRole: 'identifier',
60
67
  }),
61
- createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the payload row was first written to Mongo.' }),
68
+ createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the payload record was first written to Mongo.' }),
62
69
  expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Mongo TTL driver — documents removed at/after this instant when unused.' }),
63
70
  compressionType: schemaShape.compressionType.enumSpec({
64
71
  meaning: 'Which compression codec the stored payload bytes were encoded with, so readers can transparently decode before deserializing the job arguments.',
@@ -131,7 +138,7 @@ export const jobPayloadStorageResourceSpecification = resourceSpecification(jobP
131
138
  purpose: 'Explicit cleanup when a job is cancelled and TTL is too far out, or for compliance redaction.',
132
139
  outcome: 'Row removed; `referenceCount` semantics follow registry hooks.',
133
140
  responseStatuses: [
134
- { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The payload row was removed (or was already absent); no body is returned. Internal/service path used in incident response and redaction.' },
141
+ { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The payload record was removed (or was already absent); no body is returned. Internal/service path used in incident response and redaction.' },
135
142
  ],
136
143
  errorScenarios: [
137
144
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload row exists for the supplied `storageId` to purge.' },
@@ -149,7 +156,7 @@ export const jobPayloadStorageResourceSpecification = resourceSpecification(jobP
149
156
  purpose: 'Operational search for payloads by time, size, or `storageId` prefix when the factory enables searchable metadata.',
150
157
  outcome: 'Narrowed admin/internal rows for SRE and abuse investigations.',
151
158
  responseStatuses: [
152
- { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of payload-metadata rows matching the time / size / `storageId`-prefix filters.' },
159
+ { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of payload-metadata records matching the time / size / `storageId`-prefix filters.' },
153
160
  ],
154
161
  errorScenarios: [
155
162
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the SRE/operator role required to query the internal payload store.' },
@@ -1 +1 @@
1
- {"version":3,"file":"job-payload-storage.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-payload-storage.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,6DAA6D,IAAI,wBAAwB,GAC1F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAE5F;;;GAGG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,qBAAqB,CACzE,wBAAwB,EACxB,uBAAuB,EACvB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,2IAA2I;IACpJ,YAAY,EAAE,8IAA8I;IAC5J,aAAa,EAAE,4HAA4H;IAC3I,QAAQ,EAAE,aAAa,CAAC,SAAS;IACjC,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,E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O,EAAE,+EAA+E;oBACxF,SAAS,EAAE,4DAA4D;iBACxE;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,oHAAoH;YAC7H,OAAO,EAAE,gEAAgE;YACzE,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,yGAAyG,EAAE;aAC5J;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sFAAsF,EAAE;aAC7I;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE;oBACtC,OAAO,EAAE,yEAAyE;oBAClF,SAAS,EAAE,qFAAqF;iBACjG;aACF;SACF;KACF;IACD,mBAAmB,EAAE;QACnB,8NAA8N;QAC9N,4MAA4M;KAC7M;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n JobPayloadStorageSchema,\n JobPayloadStorageVariantKey,\n PayloadCompressionType,\n ResourcePrimaryScope,\n jobPayloadStorage_ResourceConfiguration_InitializationFactory as jobPayloadStorageFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\n\n/**\n * Internal `jobPayloadStorage` resource — no merged UI preset (`views: []` in\n * `infrastructure.resource-presets.ts`); spec is base `resourceSpecification` only.\n */\nexport const jobPayloadStorageResourceSpecification = resourceSpecification(\n jobPayloadStorageFactory,\n JobPayloadStorageSchema,\n ({ schemaShape }) => ({\n purpose: 'Persists large job payloads that exceed message-broker size limits, keyed by `storageId` and referenced from `JobPayload` transport rows.',\n businessRole: 'Durable, TTL-backed object row that queue workers and internal services use to pass serialized input without overloading the queue envelope.',\n lifecycleRole: 'Created on spill-over, read for execution, dec-referenced, and TTL-expired; optional explicit DELETE in maintenance flows.',\n audience: LabelAudience.DEVELOPER,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobPayloadStorageSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'jobPayloadStorage_ResourceConfiguration_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: 'JOB_PAYLOAD_STORAGE',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'REPOSITORY_ONLY variants with `INTERNAL` key — the companion should not invent public HTTP operation semantics beyond what the factory models.',\n 'Field-level payload and compression data are backendOnly in the Zod layer; the spec’s field prose focuses on operator-visible or metadata aspects.',\n ],\n },\n fields: {\n storageId: schemaShape.storageId.stringSpec({\n meaning: 'Stable UUID v4 pointer embedded in `JobPayload` to retrieve bytes from storage.',\n whyItMatters: 'Join key between the queue path and the Mongo row holding `payloadJson`.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'Owning application for quota and isolation, stored backend-only in strict deployments.',\n whyItMatters: 'Backend-only in schema — still documented so companion prompts do not assert this is user-visible in product UI.',\n semanticRole: 'identifier',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the payload row was first written to Mongo.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Mongo TTL driver — documents removed at/after this instant when unused.' }),\n compressionType: schemaShape.compressionType.enumSpec({\n meaning: 'Which compression codec the stored payload bytes were encoded with, so readers can transparently decode before deserializing the job arguments.',\n whyItMatters: 'Backend-only in the Zod layer — documented so companion prompts never assert this is a user-visible field; the codec must match on write and read or the payload is unrecoverable.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PayloadCompressionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PayloadCompressionType.NONE]: { meaning: 'Payload stored uncompressed — bytes are the raw serialized job arguments.' },\n [PayloadCompressionType.GZIP]: { meaning: 'Payload stored gzip-compressed to reduce storage footprint for large blobs.' },\n },\n }),\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Internal queue or spill-over service stores a new payload blob and bumps reference counts.',\n outcome: 'A `storageId` is returned to embed in a job message.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The payload blob was persisted and a `storageId` pointer is returned for embedding in the queue message. Internal/service write path — the `INTERNAL` variant is `REPOSITORY_ONLY`, never a public tenant create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload envelope fails schema validation (e.g. missing `applicationId` or an unserializable body).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to write a payload blob — only the worker/spill-over service role may store payloads.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Spill an oversized job payload to storage',\n request: {\n applicationId: 'app_01HX2…',\n payloadJson: { resourceType: 'TASKS', operation: 'create', args: { title: 'Draft release notes' } },\n },\n response: {\n storageId: 'jps_01HX2…',\n applicationId: 'app_01HX2…',\n expiresAt: '2026-06-22T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'The only API surface today — no public tenant CRUD, only service roles.',\n whenToUse: 'Worker persistence path when a resource operation payload exceeds the inline threshold.',\n },\n },\n },\n [Op.READ]: {\n purpose: 'Fetch payload JSON and metadata for execution or replay.',\n outcome: 'Deserialized or streamed bytes feed the job runner.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The payload blob for the supplied `storageId` was found and its JSON / metadata is returned for the job runner.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload exists for the supplied `storageId` (never written, dereferenced, or TTL-expired via the Mongo `expiresAt` index).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to read a stored payload — reads are service-only and never surfaced in host-app shells.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only read — never exposed in host-app shells in current presets.',\n whenToUse: 'Queue workers hydrating arguments before `PROCESSING` phases.',\n },\n },\n },\n [Op.DELETE]: {\n purpose: 'Explicit cleanup when a job is cancelled and TTL is too far out, or for compliance redaction.',\n outcome: 'Row removed; `referenceCount` semantics follow registry hooks.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The payload row was removed (or was already absent); no body is returned. Internal/service path used in incident response and redaction.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload row exists for the supplied `storageId` to purge.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service/operator caller attempts an explicit payload delete — reached only from platform tooling, not member UIs.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only delete — operators reach it from platform tools, not member UIs.',\n whenToUse: 'Manual purge in incident response and migration exercises.',\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Operational search for payloads by time, size, or `storageId` prefix when the factory enables searchable metadata.',\n outcome: 'Narrowed admin/internal rows for SRE and abuse investigations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of payload-metadata rows matching the time / size / `storageId`-prefix filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the SRE/operator role required to query the internal payload store.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Search variant aligned with the factory’s `INTERNAL` REPOSITORY config.',\n whenToUse: 'Observability consoles before a dedicated job/payload browser ships in the product.',\n },\n },\n },\n },\n businessConstraints: [\n 'The registry ties `JOB_PAYLOAD_STORAGE` to `APPLICATION` in the relationship map — the declared `resourcePrimaryScope` is `APPLICATION` to match that anchor, distinct from the STANDALONE posture used for `jobExecutions`.',\n 'Until platform presets declare non-empty `views`, do not run `resourceSpecificationFromFrontendConfiguration` for this type — the contract is base-only, mirroring `jobExecutions` until a UI is grounded.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
1
+ {"version":3,"file":"job-payload-storage.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-payload-storage.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,6DAA6D,IAAI,wBAAwB,GAC1F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;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E,IAAI,EAAE,sBAAsB,CAAC,cAAc,EAAE,OAAO,EAAE,6IAA6I,EAAE;aACxM;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,8DAA8D,EAAE;gBACpH,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,yHAAyH,EAAE;aAChL;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE;oBACtC,OAAO,EAAE,+EAA+E;oBACxF,SAAS,EAAE,4DAA4D;iBACxE;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,oHAAoH;YAC7H,OAAO,EAAE,gEAAgE;YACzE,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,4GAA4G,EAAE;aAC/J;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sFAAsF,EAAE;aAC7I;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE;oBACtC,OAAO,EAAE,yEAAyE;oBAClF,SAAS,EAAE,qFAAqF;iBACjG;aACF;SACF;KACF;IACD,mBAAmB,EAAE;QACnB,8NAA8N;QAC9N,4MAA4M;KAC7M;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n JobPayloadStorageSchema,\n JobPayloadStorageVariantKey,\n PayloadCompressionType,\n ResourcePrimaryScope,\n jobPayloadStorage_ResourceConfiguration_InitializationFactory as jobPayloadStorageFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Internal `jobPayloadStorage` resource — **no UI preset at all**, and no route that could reach\n * one: every operation is `REPOSITORY_ONLY`. The spec is base `resourceSpecification` only.\n *\n * A preset did exist (a per-status colour map and per-field display modes, shared with\n * `jobExecutions`) and was deleted on 2026-09-08 — it rendered nowhere and made the absence of a\n * job browser look like an oversight. See the note on `RESOURCES_FRONTEND_PLATFORM` in\n * `@wildo-ai/presets-components` for where an operator looks instead.\n */\nexport const jobPayloadStorageResourceSpecification = resourceSpecification(\n jobPayloadStorageFactory,\n JobPayloadStorageSchema,\n ({ schemaShape }) => ({\n purpose: 'Persists large job payloads that exceed message-broker size limits, keyed by `storageId` and referenced from `JobPayload` transport rows.',\n businessRole: 'Durable, TTL-backed object row that queue workers and internal services use to pass serialized input without overloading the queue envelope.',\n lifecycleRole: 'Created on spill-over, read for execution, dec-referenced, and TTL-expired; optional explicit DELETE in maintenance flows.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobPayloadStorageSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'jobPayloadStorage_ResourceConfiguration_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: 'JOB_PAYLOAD_STORAGE',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'REPOSITORY_ONLY variants with `INTERNAL` key — the companion should not invent public HTTP operation semantics beyond what the factory models.',\n 'Field-level payload and compression data are backendOnly in the Zod layer; the spec’s field prose focuses on operator-visible or metadata aspects.',\n ],\n },\n fields: {\n storageId: schemaShape.storageId.stringSpec({\n meaning: 'Stable UUID v4 pointer embedded in `JobPayload` to retrieve bytes from storage.',\n whyItMatters: 'Join key between the queue path and the Mongo row holding `payloadJson`.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'Owning application for quota and isolation, stored backend-only in strict deployments.',\n whyItMatters: 'Backend-only in schema — still documented so companion prompts do not assert this is user-visible in product UI.',\n semanticRole: 'identifier',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the payload record was first written to Mongo.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Mongo TTL driver — documents removed at/after this instant when unused.' }),\n compressionType: schemaShape.compressionType.enumSpec({\n meaning: 'Which compression codec the stored payload bytes were encoded with, so readers can transparently decode before deserializing the job arguments.',\n whyItMatters: 'Backend-only in the Zod layer — documented so companion prompts never assert this is a user-visible field; the codec must match on write and read or the payload is unrecoverable.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PayloadCompressionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PayloadCompressionType.NONE]: { meaning: 'Payload stored uncompressed — bytes are the raw serialized job arguments.' },\n [PayloadCompressionType.GZIP]: { meaning: 'Payload stored gzip-compressed to reduce storage footprint for large blobs.' },\n },\n }),\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Internal queue or spill-over service stores a new payload blob and bumps reference counts.',\n outcome: 'A `storageId` is returned to embed in a job message.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The payload blob was persisted and a `storageId` pointer is returned for embedding in the queue message. Internal/service write path — the `INTERNAL` variant is `REPOSITORY_ONLY`, never a public tenant create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload envelope fails schema validation (e.g. missing `applicationId` or an unserializable body).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to write a payload blob — only the worker/spill-over service role may store payloads.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Spill an oversized job payload to storage',\n request: {\n applicationId: 'app_01HX2…',\n payloadJson: { resourceType: 'TASKS', operation: 'create', args: { title: 'Draft release notes' } },\n },\n response: {\n storageId: 'jps_01HX2…',\n applicationId: 'app_01HX2…',\n expiresAt: '2026-06-22T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'The only API surface today — no public tenant CRUD, only service roles.',\n whenToUse: 'Worker persistence path when a resource operation payload exceeds the inline threshold.',\n },\n },\n },\n [Op.READ]: {\n purpose: 'Fetch payload JSON and metadata for execution or replay.',\n outcome: 'Deserialized or streamed bytes feed the job runner.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The payload blob for the supplied `storageId` was found and its JSON / metadata is returned for the job runner.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload exists for the supplied `storageId` (never written, dereferenced, or TTL-expired via the Mongo `expiresAt` index).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to read a stored payload — reads are service-only and never surfaced in host-app shells.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only read — never exposed in host-app shells in current presets.',\n whenToUse: 'Queue workers hydrating arguments before `PROCESSING` phases.',\n },\n },\n },\n [Op.DELETE]: {\n purpose: 'Explicit cleanup when a job is cancelled and TTL is too far out, or for compliance redaction.',\n outcome: 'Row removed; `referenceCount` semantics follow registry hooks.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The payload record was removed (or was already absent); no body is returned. Internal/service path used in incident response and redaction.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload row exists for the supplied `storageId` to purge.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service/operator caller attempts an explicit payload delete — reached only from platform tooling, not member UIs.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only delete — operators reach it from platform tools, not member UIs.',\n whenToUse: 'Manual purge in incident response and migration exercises.',\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Operational search for payloads by time, size, or `storageId` prefix when the factory enables searchable metadata.',\n outcome: 'Narrowed admin/internal rows for SRE and abuse investigations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of payload-metadata records matching the time / size / `storageId`-prefix filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the SRE/operator role required to query the internal payload store.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Search variant aligned with the factory’s `INTERNAL` REPOSITORY config.',\n whenToUse: 'Observability consoles before a dedicated job/payload browser ships in the product.',\n },\n },\n },\n },\n businessConstraints: [\n 'The registry ties `JOB_PAYLOAD_STORAGE` to `APPLICATION` in the relationship map — the declared `resourcePrimaryScope` is `APPLICATION` to match that anchor, distinct from the STANDALONE posture used for `jobExecutions`.',\n 'Until platform presets declare non-empty `views`, do not run `resourceSpecificationFromFrontendConfiguration` for this type — the contract is base-only, mirroring `jobExecutions` until a UI is grounded.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"m2m-webhook-delivery-log.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAQH,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAE3B,gCAAgC,EAKjC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAiD,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAmB9H,KAAK,iBAAiB,GAClB,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,WAAW,CAAC;AA6XnB,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGlE,CAAC;AAEF,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGjE,CAAC"}
1
+ {"version":3,"file":"m2m-webhook-delivery-log.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAQH,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAE3B,gCAAgC,EAKjC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAiD,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAoB9H,KAAK,iBAAiB,GAClB,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,WAAW,CAAC;AAmYnB,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGlE,CAAC;AAEF,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGjE,CAAC"}
@@ -20,6 +20,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
20
20
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
21
21
  import { CoreM2MNotificationChannel, CoreResourceOperation as Op, CoreResourceType, M2MWebhookDeliveryLog_Operations, M2MWebhookDeliveryLogBaseSchema, M2MWebhookDeliveryLogStatus, ResourcePrimaryScope, m2mWebhookDeliveryLogPolymorphicFactories, } from '@wildo-ai/saas-models';
22
22
  import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
23
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
23
24
  const m2mDeliveryLogResourcePrimaryScope = {
24
25
  [CoreResourceType.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG]: ResourcePrimaryScope.ORGANIZATIONS,
25
26
  [CoreResourceType.APPLICATION_M2M_WEBHOOK_DELIVERY_LOG]: ResourcePrimaryScope.APPLICATION,
@@ -71,6 +72,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
71
72
  businessRole: 'The user-visible event log and the worker’s durable queue for asynchronous webhook delivery — one row per (scope × target endpoint × fire).',
72
73
  lifecycleRole: 'Rows move PENDING → IN_FLIGHT → DELIVERED, or PENDING/IN_FLIGHT → FAILED, with `attemptCount` and `nextAttemptAt` governing back-off; RETRY and PURGE_OLD custom ops re-queue or clean history.',
73
74
  audience: LabelAudience.DEVELOPER,
75
+ subDomain: EngineResourceSubDomain.NOTIFICATIONS,
74
76
  codeHandling: {
75
77
  mainSchema: {
76
78
  packageName: '@wildo-ai/saas-models',
@@ -116,12 +118,12 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
116
118
  },
117
119
  fields: {
118
120
  _id: schemaShape._id.stringSpec({
119
- meaning: 'Unique id for a single delivery log row and lease token anchor for the worker.',
121
+ meaning: 'Unique id for a single delivery log record and lease token anchor for the worker.',
120
122
  importance: FieldSemanticImportance.PRIMARY,
121
123
  semanticRole: 'identifier',
122
124
  }),
123
125
  endpointId: schemaShape.endpointId.stringSpec({
124
- meaning: 'Stable FK to `webhookConfig.endpoints[].id` at enqueue time so historical rows survive endpoint renames/URL changes.',
126
+ meaning: 'Stable FK to `webhookConfig.endpoints[].id` at enqueue time so historical records survive endpoint renames/URL changes.',
125
127
  importance: FieldSemanticImportance.PRIMARY,
126
128
  }),
127
129
  channel: schemaShape.channel.enumSpec({
@@ -168,7 +170,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
168
170
  declarationKind: CodeDeclarationKind.CONST_OBJECT,
169
171
  },
170
172
  values: {
171
- [M2MWebhookDeliveryLogStatus.PENDING]: { meaning: 'Row is either waiting in the queue or has been re-queued for another attempt after a transient failure.' },
173
+ [M2MWebhookDeliveryLogStatus.PENDING]: { meaning: 'Record is either waiting in the queue or has been re-queued for another attempt after a transient failure.' },
172
174
  [M2MWebhookDeliveryLogStatus.IN_FLIGHT]: { meaning: 'A worker currently holds a lease and is trying to send the HTTP request.' },
173
175
  [M2MWebhookDeliveryLogStatus.DELIVERED]: { meaning: 'HTTP success path with signature validated at the consumer; terminal success.' },
174
176
  [M2MWebhookDeliveryLogStatus.FAILED]: { meaning: 'Terminal failure: exhausted attempt budget or a non-retryable 4xx class error.' },
@@ -208,7 +210,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
208
210
  temporalRole: 'occurred',
209
211
  }),
210
212
  createdAt: schemaShape.createdAt.dateSpec({
211
- meaning: 'When the row was enqueued (immutable upper bound for retention policies).',
213
+ meaning: 'When the record was enqueued (immutable upper bound for retention policies).',
212
214
  temporalRole: 'creation',
213
215
  importance: FieldSemanticImportance.PRIMARY,
214
216
  }),
@@ -219,12 +221,17 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
219
221
  },
220
222
  operations: {
221
223
  [Op.READ]: {
222
- purpose: 'Inspect a single log row in admin or support UIs using the fields documented above (status, URL snapshot, hashes, HTTP evidence, correlation ids). The Mongo `payload` column is `z.unknown()` at rest and is not expanded in `fields.*` — when the runtime returns it, treat it as sensitive; see `businessConstraints`.',
224
+ /*
225
+ * `payload` is stored opaquely and is deliberately not broken into documented fields.
226
+ * That is a storage decision the reader of this sentence does not need; what they DO
227
+ * need is that it comes back whole and carries whatever the event carried.
228
+ */
229
+ purpose: 'Inspect one delivery attempt using the fields documented above (status, URL snapshot, hashes, HTTP evidence, correlation ids). The stored `payload` is returned whole rather than broken into documented fields — treat it as sensitive; see `businessConstraints`.',
223
230
  outcome: 'Operators can see whether a business event was delivered and, if not, the precise failure class.',
224
231
  whenToUse: 'Use when triaging a customer ticket referencing a `deliveryLogId` or `signatureJti`.',
225
232
  importance: FieldSemanticImportance.PRIMARY,
226
233
  responseStatuses: [
227
- { code: HttpResponseStatusCode.OK_200, meaning: 'The delivery log row for the supplied id was found and its status, URL snapshot, HTTP evidence, and signing metadata are returned.' },
234
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The delivery log record for the supplied id was found and its status, URL snapshot, HTTP evidence, and signing metadata are returned.' },
228
235
  ],
229
236
  errorScenarios: [
230
237
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No delivery log row exists for the supplied id in this scope (never enqueued, or already removed by `PURGE_OLD`).' },
@@ -245,7 +252,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
245
252
  purpose: 'Browse recent delivery attempts in chronological order, filtered by the repository’s search defaults.',
246
253
  outcome: 'Admins can scan for spikes in `FAILED` rows or revalidation after URL rotation.',
247
254
  responseStatuses: [
248
- { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) chronological page of delivery log rows in this scope.' },
255
+ { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) chronological page of delivery log records in this scope.' },
249
256
  ],
250
257
  errorScenarios: [
251
258
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin / app-super-admin role required to browse the delivery log (rows may carry serialized customer payloads).' },
@@ -267,7 +274,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
267
274
  outcome: 'Security and ops can produce CSV-grade subsets without an external data warehouse in small deployments.',
268
275
  whenToUse: 'Use in admin dashboards; heavy analytics may still go to a warehouse — this is the operational “small query” path.',
269
276
  responseStatuses: [
270
- { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of delivery log rows matching the status / endpoint / channel / date-window / operation filters.' },
277
+ { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of delivery log records matching the status / endpoint / channel / date-window / operation filters.' },
271
278
  ],
272
279
  errorScenarios: [
273
280
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin / app-super-admin role required to search the delivery log.' },
@@ -293,7 +300,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
293
300
  outcome: 'The worker pool can find ready rows via the `(status, nextAttemptAt)` index.',
294
301
  whenToUse: 'Repository-only: invoked by the dispatcher, never by a human HTTP client.',
295
302
  responseStatuses: [
296
- { code: HttpResponseStatusCode.CREATED_201, meaning: 'A `PENDING` delivery row was enqueued and is now discoverable by the worker pool. Internal/service write path — the dispatcher fires this, never a human HTTP client.' },
303
+ { code: HttpResponseStatusCode.CREATED_201, meaning: 'A `PENDING` delivery record was enqueued and is now discoverable by the worker pool. Internal/service write path — the dispatcher fires this, never a human HTTP client.' },
297
304
  ],
298
305
  errorScenarios: [
299
306
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The enqueue payload fails schema validation (e.g. missing `endpointId`, `httpUrl`, or `channel`).', errorCode: 'VALIDATION_FAILED' },
@@ -306,7 +313,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
306
313
  outcome: 'The worker can advance a row through its lifecycle so the `(status, nextAttemptAt)` index stays accurate for polling and back-off.',
307
314
  whenToUse: 'Repository-only: invoked by the dispatcher/worker (`markInFlight` / `markDelivered` / `markFailedAttempt` / `markFinallyFailed`), never by a human HTTP client — admins act via the `RETRY` custom operation.',
308
315
  responseStatuses: [
309
- { code: HttpResponseStatusCode.OK_200, meaning: 'The delivery row’s status / attempt counters / timestamps were updated. Internal/service write path — the worker fires this, never a human HTTP client.' },
316
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The delivery record’s status / attempt counters / timestamps were updated. Internal/service write path — the worker fires this, never a human HTTP client.' },
310
317
  ],
311
318
  errorScenarios: [
312
319
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No delivery log row exists for the supplied id to update.' },
@@ -318,7 +325,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
318
325
  purpose: 'Reserved for `PURGE_OLD` and internal cleanup — no public single-row delete to keep the audit trail honest.',
319
326
  outcome: 'Old rows are removed in bulk, not opportunistically per UI click, matching the high-risk gating in the config.',
320
327
  responseStatuses: [
321
- { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'An internal/maintenance single-row delete completed; no body is returned. Intentionally not a public per-click operation — routine cleanup goes through `PURGE_OLD`.' },
328
+ { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'An internal/maintenance single-record delete completed; no body is returned. Intentionally not a public per-click operation — routine cleanup goes through `PURGE_OLD`.' },
322
329
  ],
323
330
  errorScenarios: [
324
331
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No delivery log row exists for the supplied id to delete.' },
@@ -331,7 +338,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
331
338
  outcome: 'Retention purges scale with one bulk delete instead of N per-row deletes; non-terminal rows are never touched (the drain owns them).',
332
339
  whenToUse: 'Repository-only — never a public HTTP surface. Admins purge via the `PURGE_OLD` custom operation, which owns request validation and the purge summary response.',
333
340
  responseStatuses: [
334
- { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched terminal rows were bulk-deleted; the `PURGE_OLD` wrapper reports the count in its own summary response.' },
341
+ { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched terminal records were bulk-deleted; the `PURGE_OLD` wrapper reports the count in its own summary response.' },
335
342
  ],
336
343
  errorScenarios: [
337
344
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_OLD`.' },
@@ -345,7 +352,7 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
345
352
  whenToUse: 'Use after a partner confirms their endpoint or certificate is healthy again.',
346
353
  importance: FieldSemanticImportance.PRIMARY,
347
354
  responseStatuses: [
348
- { code: HttpResponseStatusCode.OK_200, meaning: 'The `FAILED` row was reset to `PENDING` with attempt counters cleared, and the worker pool will re-attempt delivery; the re-queued row is returned.' },
355
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The `FAILED` record was reset to `PENDING` with attempt counters cleared, and the worker pool will re-attempt delivery; the re-queued record is returned.' },
349
356
  ],
350
357
  errorScenarios: [
351
358
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No delivery log row exists for the supplied id to retry.' },
@@ -363,11 +370,11 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
363
370
  [M2MWebhookDeliveryLog_Operations.PURGE_OLD]: {
364
371
  operationId: M2MWebhookDeliveryLog_Operations.PURGE_OLD,
365
372
  purpose: 'Bulk-delete rows older than `N` days (delivered or failed) to bound storage in busy tenants.',
366
- outcome: 'Tenants can comply with data-retention policy without manual Mongo shell intervention.',
373
+ outcome: 'Tenants can comply with a data-retention policy without asking an operator to remove records by hand.',
367
374
  whenToUse: 'Use in scheduled admin jobs (or manual compliance runs) with explicit `olderThanDays` guardrails.',
368
375
  importance: FieldSemanticImportance.PRIMARY,
369
376
  responseStatuses: [
370
- { code: HttpResponseStatusCode.OK_200, meaning: 'Rows older than the supplied `olderThanDays` window were bulk-deleted and a count of purged rows is returned.' },
377
+ { code: HttpResponseStatusCode.OK_200, meaning: 'Records older than the supplied `olderThanDays` window were bulk-deleted and a count of purged records is returned.' },
371
378
  ],
372
379
  errorScenarios: [
373
380
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `olderThanDays` guardrail is missing, non-numeric, or below the configured minimum retention floor.', errorCode: 'VALIDATION_FAILED' },