@wildo-ai/saas-specifications 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (928) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/index.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
  7. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  8. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
  9. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  10. package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
  11. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  12. package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
  13. package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
  14. package/dist/esm/_core/brand/brand-name-choice.js +144 -24
  15. package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
  16. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
  17. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
  19. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
  21. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
  23. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  24. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
  25. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  26. package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
  27. package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
  28. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
  29. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
  31. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  32. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
  33. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  35. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  36. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
  37. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
  39. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  40. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +21 -3
  41. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  42. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +411 -13
  43. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
  45. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  46. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
  47. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  48. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
  49. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
  51. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  52. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +6 -0
  53. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  54. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
  55. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  56. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +1 -0
  57. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
  59. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
  61. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  62. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
  63. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  64. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  65. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  66. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  67. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  68. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  69. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  70. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
  71. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +66 -2
  73. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  74. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +42 -2
  75. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  76. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
  77. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  78. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
  79. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  81. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  82. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  83. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  85. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  86. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  87. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  88. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  89. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  90. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
  91. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  92. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
  93. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  94. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  95. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  97. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  98. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
  100. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -1
  102. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  103. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +41 -1
  104. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  105. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -1
  106. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  107. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +134 -9
  108. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  109. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
  110. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
  112. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  113. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
  114. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  115. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
  116. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  117. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
  118. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
  120. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
  122. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  123. package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
  124. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  125. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  126. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
  127. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  128. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
  129. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  130. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
  131. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  132. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
  133. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  135. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  136. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  137. package/dist/esm/_core/family-aspects.registry.js +2 -0
  138. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  139. package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
  140. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/family-aspects.schemas.js +20 -0
  142. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  143. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +6 -6
  144. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  145. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  146. package/dist/esm/_core/index.d.ts +6 -0
  147. package/dist/esm/_core/index.d.ts.map +1 -1
  148. package/dist/esm/_core/index.js +6 -0
  149. package/dist/esm/_core/index.js.map +1 -1
  150. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
  151. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  153. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  154. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  155. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
  156. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
  158. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  159. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  160. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  162. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  163. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
  164. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  166. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  167. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  168. package/dist/esm/_core/market/market.family-aspects.js +4 -1
  169. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  170. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
  171. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  172. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +6 -3
  173. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  174. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -1
  175. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  176. package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
  177. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  178. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  179. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +9 -0
  180. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  181. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
  182. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  183. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
  184. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  185. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
  186. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
  188. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  189. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -0
  190. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  191. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +2 -0
  192. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  193. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
  194. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
  195. package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
  196. package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
  197. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
  198. package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
  199. package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
  200. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -0
  201. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  202. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +12 -1
  203. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  204. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
  205. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  206. package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
  207. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  208. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
  209. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  210. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
  211. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  212. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  213. package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
  214. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  215. package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
  216. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  217. package/dist/esm/_core/resource-specification.schemas.js +73 -13
  218. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  219. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
  220. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  221. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  222. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  223. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  224. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  225. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  226. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  227. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
  228. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  229. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  230. package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
  231. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  232. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
  233. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  234. package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
  235. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  236. package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
  237. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  238. package/dist/esm/_core/service-method/service-method-validation.js +75 -0
  239. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  240. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  241. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  242. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  243. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  244. package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
  245. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  246. package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
  247. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  248. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
  249. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  250. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  251. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  252. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
  253. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  254. package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
  255. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  256. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  257. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
  258. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  259. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
  260. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  261. package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
  262. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  263. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
  264. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  265. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
  266. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  267. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
  268. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  269. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
  270. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  271. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
  272. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  273. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  274. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  275. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
  276. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  277. package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
  278. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  279. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
  280. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  281. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
  282. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
  283. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  284. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  285. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  286. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  287. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
  288. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  289. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
  290. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  291. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
  292. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  293. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
  294. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  295. package/dist/esm/application-creation.exports.d.ts +7 -0
  296. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  297. package/dist/esm/application-creation.exports.js +7 -0
  298. package/dist/esm/application-creation.exports.js.map +1 -1
  299. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
  300. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  301. package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
  302. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  303. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  304. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  305. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  306. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  307. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
  308. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  309. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
  310. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  311. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
  312. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  313. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  314. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  315. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  316. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  317. package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
  318. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  319. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
  320. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  321. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  322. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  323. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
  324. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  325. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
  326. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  327. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  328. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
  329. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  330. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  331. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  332. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  333. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  334. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  335. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  336. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
  337. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  338. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  339. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  340. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  341. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  342. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
  343. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  344. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
  345. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  346. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
  347. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  348. package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
  349. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  350. package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
  351. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  352. package/dist/esm/assurance/assurance-program.schemas.js +255 -14
  353. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  354. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  355. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  356. package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
  357. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  358. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  359. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  360. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
  361. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  362. package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
  363. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  364. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  365. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  366. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  367. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
  368. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  369. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  370. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  371. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  372. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  373. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  374. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  375. package/dist/esm/assurance/governed-document-release.js +3 -1
  376. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  377. package/dist/esm/assurance.exports.d.ts +4 -0
  378. package/dist/esm/assurance.exports.d.ts.map +1 -1
  379. package/dist/esm/assurance.exports.js +4 -0
  380. package/dist/esm/assurance.exports.js.map +1 -1
  381. package/dist/esm/companion-exports.d.ts +9 -1
  382. package/dist/esm/companion-exports.d.ts.map +1 -1
  383. package/dist/esm/companion-exports.js.map +1 -1
  384. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -1
  385. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +33 -5
  387. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +9 -12
  390. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +1 -1
  392. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +60 -6
  394. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  395. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  396. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  397. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  398. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/applications/resources/applications.resource.specification.js +2 -2
  400. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  401. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +12 -4
  402. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  403. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +46 -10
  404. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  405. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
  406. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  408. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +40 -11
  412. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -1
  414. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  415. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +44 -3
  416. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  417. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
  418. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  419. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +40 -8
  420. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  421. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +14 -8
  422. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  423. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +72 -19
  424. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  425. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +2 -2
  426. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  427. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +6 -6
  428. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  429. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  430. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  431. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
  432. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  433. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -2
  435. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  436. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
  437. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -1
  438. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  439. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +68 -12
  440. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  441. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  442. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
  443. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  444. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -1
  445. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +11 -7
  447. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  448. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
  449. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  450. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
  451. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  452. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
  453. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
  455. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  456. package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
  457. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  458. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  459. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  460. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
  461. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  462. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
  463. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  464. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
  465. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +1 -1
  466. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +4 -0
  468. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +4 -1
  470. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
  472. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
  474. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  475. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
  476. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  477. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
  478. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  479. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
  480. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +19 -13
  482. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  483. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
  484. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
  486. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  488. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  489. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  490. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  491. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
  492. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  494. package/dist/esm/engine/engine-resource-specifications.registry.js +55 -11
  495. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  496. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/errors/error-messages.specification.js +300 -5
  498. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  499. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  500. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  501. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  502. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  503. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  505. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  506. package/dist/esm/engine/features/index.d.ts +4 -2
  507. package/dist/esm/engine/features/index.d.ts.map +1 -1
  508. package/dist/esm/engine/features/index.js +6 -4
  509. package/dist/esm/engine/features/index.js.map +1 -1
  510. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
  511. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  512. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
  514. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  515. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -1
  516. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/files/resources/files.resource.specification.js +24 -3
  518. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  519. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  520. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
  521. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  522. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
  523. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  524. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  525. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  527. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  528. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  529. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  531. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  532. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  533. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  535. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  536. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  537. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  539. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  542. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  543. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  544. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  545. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
  546. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  547. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  548. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  549. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  550. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  551. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
  552. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +118 -18
  554. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  555. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
  556. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
  558. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  560. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  562. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  565. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  566. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  568. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  569. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  570. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  571. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  572. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  573. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  574. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  575. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
  576. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  577. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  578. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  579. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  580. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  581. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  582. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  583. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  584. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  585. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  586. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  587. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  588. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  589. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  591. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  592. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +6 -0
  594. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  595. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  596. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  598. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  599. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  601. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  602. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  603. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  604. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  606. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  607. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  609. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  610. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  611. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  612. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  613. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  614. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  615. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  616. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  617. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  618. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  619. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  620. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +3 -2
  622. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  623. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  624. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  625. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  626. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  628. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  629. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  630. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  632. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  633. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  634. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
  638. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  641. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  642. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  644. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  645. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  646. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  647. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  648. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  649. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  650. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  651. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  652. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  653. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  654. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  655. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  657. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  658. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  659. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  660. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  661. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  662. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  663. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  664. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  665. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  666. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  667. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  668. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  669. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  671. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  672. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  673. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  674. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  675. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  676. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
  679. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  680. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
  681. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  682. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
  683. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  684. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
  685. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  686. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
  687. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  688. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  689. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  690. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  691. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  692. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  693. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  694. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  695. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  696. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  698. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  699. package/dist/esm/engine/frontend-components/index.d.ts +7 -0
  700. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  701. package/dist/esm/engine/frontend-components/index.js +29 -0
  702. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  703. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  704. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  705. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  706. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  707. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  708. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  709. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  710. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  711. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  712. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
  713. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  714. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  715. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  716. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  717. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  718. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
  720. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  721. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  722. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  723. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  724. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  725. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  726. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  727. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  728. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
  729. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
  730. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
  731. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
  732. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  734. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  737. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  739. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  740. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  741. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  742. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  743. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  744. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  745. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  746. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  747. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  748. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  749. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  750. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  752. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  753. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  755. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  756. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
  757. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  758. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
  759. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  760. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  761. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  762. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  764. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
  766. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  767. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
  768. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  769. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  770. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  771. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  772. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  773. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  774. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  775. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
  776. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  777. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
  778. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
  779. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
  781. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +33 -7
  783. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +16 -14
  785. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +56 -53
  787. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  788. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -2
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -4
  791. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  792. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +2 -2
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
  794. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  795. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +3 -3
  796. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  797. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  798. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  800. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  801. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  802. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  803. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  804. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  805. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  806. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  808. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  809. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  810. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  811. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  812. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  813. package/dist/esm/engine/organizations/resources/index.js +1 -2
  814. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  815. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
  816. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +114 -51
  818. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  819. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
  820. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  821. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  822. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  823. package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
  824. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  825. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
  826. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  827. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +1 -1
  828. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +6 -4
  830. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  831. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -2
  832. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  833. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
  834. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
  836. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  837. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  838. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  839. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  840. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  841. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  842. package/dist/esm/engine/providers/github.provider.specification.js +8 -5
  843. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  844. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  845. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  846. package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
  847. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  848. package/dist/esm/engine/providers/index.d.ts +2 -0
  849. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  850. package/dist/esm/engine/providers/index.js +5 -1
  851. package/dist/esm/engine/providers/index.js.map +1 -1
  852. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  853. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
  855. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  856. package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
  857. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  858. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/providers/resend.provider.specification.js +8 -6
  860. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  861. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  862. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  863. package/dist/esm/engine/roles/index.d.ts +2 -2
  864. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  865. package/dist/esm/engine/roles/index.js +5 -5
  866. package/dist/esm/engine/roles/index.js.map +1 -1
  867. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  868. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  869. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  870. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  871. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  872. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  873. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  874. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  875. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
  876. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  878. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  879. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +3 -3
  880. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  881. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  883. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  884. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  885. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  886. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  887. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  888. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
  889. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  890. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
  891. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  892. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
  893. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  894. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +3 -3
  895. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  896. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +1 -1
  897. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  898. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -0
  899. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  900. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +6 -2
  901. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  902. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  903. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  904. package/dist/esm/engine/users/resources/user-self.resource.specification.js +33 -0
  905. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  906. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -1
  907. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  908. package/dist/esm/engine/users/resources/users.resource.specification.js +10 -4
  909. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/package.json +8 -8
  914. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  915. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  916. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  917. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  918. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  919. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  920. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  921. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  922. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  923. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  924. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  925. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  926. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  927. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  928. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"human-decision-notice-stays.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,6CAA6C,EAAE,8BAqK3D,CAAC"}
@@ -0,0 +1,184 @@
1
+ /**
2
+ * Resource: `humanDecisionNoticeStays` — Wildo SaaS engine specification (organization-scoped ledger, engine-written). #2664 S5b.
3
+ *
4
+ * Inputs:
5
+ * - Schema: `HumanDecisionNoticeStaySchema` (`flows-actors/human-decision-notice-stays.shared.schemas.ts`)
6
+ * - Factory: `humanDecisionNoticeStaysResourceConfiguration_InitializationFactory`
7
+ * - Writers: the engine's decision-notice reconcile (rows from each plane's live stays) and its dispatcher (the phases).
8
+ * - Readers: the same two, and the organization's administrator (READ, LIST, SEARCH).
9
+ * - Custom operations: `HumanDecisionNoticeStay_Operations` (`replay`), implemented by
10
+ * `human-decision-notice-replay.custom-impl.backend.service.ts` (saas-backend-lib). #2739.
11
+ *
12
+ * What a stay is, and why the notice is derived rather than marked on a decision, is the schema file's header; it is not
13
+ * restated here.
14
+ */
15
+ import { LabelAudience } from '@wildo-ai/presets-components-models';
16
+ import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
17
+ import { CoreResourceOperation as Op, HumanDecisionNoticePhase, HumanDecisionNoticeStay_Operations, HumanDecisionNoticeStaySchema, HumanDecision_Outcome, HumanDecision_Plane, ResourcePrimaryScope, humanDecisionNoticeStaysResourceConfiguration_InitializationFactory as humanDecisionNoticeStaysFactory, } from '@wildo-ai/saas-models';
18
+ import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
19
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
20
+ const enumDeclaration = (exportName) => ({
21
+ packageName: '@wildo-ai/saas-models',
22
+ exportName,
23
+ symbolKind: CodeSymbolKind.ENUM,
24
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
25
+ });
26
+ export const humanDecisionNoticeStaysResourceSpecification = resourceSpecification(humanDecisionNoticeStaysFactory, HumanDecisionNoticeStaySchema, ({ schemaShape }) => ({
27
+ purpose: 'Record, for each stay of a pending human decision on one route, the cards an application posted about it outside the product and whether they are still owed, standing, or owed back.',
28
+ businessRole: 'What lets the people who may answer a decision see it where they already work (a Slack message, a Teams card) and lets every copy be replaced once the decision is settled or moves to someone else, whichever door answered it.',
29
+ lifecycleRole: 'Inserted by the reconcile when it sees a live stay with no row, moved by the dispatcher as it posts and withdraws the cards, closed once nothing more is owed, and deleted by its retention class or with its organization.',
30
+ audience: LabelAudience.DEVELOPER,
31
+ subDomain: EngineResourceSubDomain.FLOWS_ACTORS,
32
+ codeHandling: {
33
+ mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'HumanDecisionNoticeStaySchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
34
+ resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'humanDecisionNoticeStaysResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
35
+ resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'HUMAN_DECISION_NOTICE_STAYS' },
36
+ operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('HumanDecisionNoticeStay_Operations') },
37
+ notes: [
38
+ 'CREATE and UPDATE are REPOSITORY_ONLY: no request writes a phase. DELETE and DELETE_MANY are INTERNAL_CALL (the tenant purge\'s cascade and the retention sweep).',
39
+ 'The organization\'s administrator reads its notices (READ, LIST, SEARCH by phase, plane or decision) and REPLAYS one that went DEAD (#2739). `posted`, which holds the recipients\' chat addresses, is backend-only and never returned.',
40
+ 'The `_id` is derived from the stay\'s identity, so two passes that see the same stay insert the same row; a duplicate insert is a no-op.',
41
+ 'Every move a worker makes is a guarded mutation fenced on its lease\'s token (`leaseRef`), so a worker whose lease lapsed cannot overwrite the worker that took the row over. The reconcile and a replay hold no lease: they are fenced on the row as they read it and on no worker holding it now (#2745).',
42
+ 'No decision row carries an owed marker: the reconcile derives what is owed from each plane\'s live stays, so a crash between a decision\'s write and anything else loses nothing.',
43
+ ],
44
+ },
45
+ fields: {
46
+ _id: schemaShape._id.stringSpec({ meaning: 'Identity of the stay\'s notice, derived from the stay\'s identity.', semanticRole: 'identifier' }),
47
+ organizationId: schemaShape.organizationId.foreignKeySpec({
48
+ meaning: 'The organization the decision is confined to.',
49
+ whyItMatters: 'The chat accounts a card may reach are the ones linked in this organization, and the notice is deleted with it.',
50
+ importance: FieldSemanticImportance.PRIMARY,
51
+ }),
52
+ plane: schemaShape.plane.enumSpec({
53
+ meaning: 'Which part of the engine holds the decision.',
54
+ importance: FieldSemanticImportance.PRIMARY,
55
+ enumDeclaration: enumDeclaration('HumanDecision_Plane'),
56
+ values: {
57
+ [HumanDecision_Plane.CONVERSATIONAL]: { meaning: 'An agent\'s conversation, paused on an approval-gated tool or a question to a person.' },
58
+ [HumanDecision_Plane.ACTOR_SYSTEM]: { meaning: 'An application\'s actor-system run, waiting on a person.' },
59
+ [HumanDecision_Plane.REPRESENTATIVE_ADMISSION]: { meaning: 'A granting organization\'s approval of a representative a representing organization assigned to it.' },
60
+ [HumanDecision_Plane.OPERATION_APPROVAL]: { meaning: 'Another person\'s approval of an operation a person asked for (#2288), posted to chat since #2814.' },
61
+ },
62
+ }),
63
+ stayRef: schemaShape.stayRef.stringSpec({ meaning: 'How the plane reads the stay back: the decision id, or an actor run\'s execution id.', semanticRole: 'identifier' }),
64
+ occurrenceRef: schemaShape.occurrenceRef.stringSpec({ meaning: 'Which occurrence of the stay this is: the decision id, or the actor run\'s suspension id (one run can ask the same question again).', semanticRole: 'identifier' }),
65
+ decisionRef: schemaShape.decisionRef.stringSpec({ meaning: 'The decision the cards are about.', whyItMatters: 'What an operator looks a notice up by, and what the cards\' buttons answer.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),
66
+ routeVersion: schemaShape.routeVersion.numberSpec({ meaning: 'The decision\'s route version this stay is on.', whyItMatters: 'A claim, reassignment or escalation moves the route, which ends this stay and starts the next, so the cards follow the people the decision now waits for.' }),
67
+ epoch: schemaShape.epoch.numberSpec({ meaning: 'How many times this stay came back live after its notice closed.', whyItMatters: 'A decision put back to waiting (an actor run whose continuation failed) gets its cards posted again rather than standing on a withdrawn notice.' }),
68
+ phase: schemaShape.phase.enumSpec({
69
+ meaning: 'Where the notice stands.',
70
+ importance: FieldSemanticImportance.PRIMARY,
71
+ enumDeclaration: enumDeclaration('HumanDecisionNoticePhase'),
72
+ values: {
73
+ [HumanDecisionNoticePhase.OWED_POST]: { meaning: 'The stay is live and its cards are owed; the dispatcher will post them.' },
74
+ [HumanDecisionNoticePhase.POSTED]: { meaning: 'The cards were posted and stand while the stay is live. A card whose reader may no longer answer (the record unshared from their relationship, the relationship suspended or re-scoped, the eligible role lost) is owed back on its own: the row stays POSTED and is due until the dispatcher has taken that card back (#2756).' },
75
+ [HumanDecisionNoticePhase.OWED_WITHDRAW]: { meaning: 'The stay ended or moved after its cards were posted; the dispatcher will withdraw them.' },
76
+ [HumanDecisionNoticePhase.WITHDRAWN]: { meaning: 'The cards were replaced by the outcome or deleted. Closed.' },
77
+ [HumanDecisionNoticePhase.SKIPPED]: { meaning: 'Nothing was posted (the stay ended first, or nobody could be reached), so nothing is owed back. Closed.' },
78
+ [HumanDecisionNoticePhase.DEAD_POST]: { meaning: 'Posting failed until its attempts ran out; nothing more is posted until an operator replays it. Closed when no card was posted. When some were, it stays open, and those cards are withdrawn once the decision leaves.' },
79
+ [HumanDecisionNoticePhase.DEAD_WITHDRAW]: { meaning: 'Withdrawing failed until its attempts ran out, so cards may still stand. Closed until an operator replays it.' },
80
+ },
81
+ }),
82
+ attemptCount: schemaShape.attemptCount.numberSpec({ meaning: 'Attempts made in the current phase.', whyItMatters: 'The attempt budget: once it is spent the notice goes DEAD. A deferral gives its attempt back, and an owed withdraw or a replay starts a fresh budget, so it is never what fences a worker\'s move.' }),
83
+ nextAttemptAt: schemaShape.nextAttemptAt.dateSpec({ meaning: 'When the dispatcher may next try the owed phase, or, on a POSTED or DEAD_POST row, take back the cards owed back from readers who may no longer answer.', temporalRole: 'scheduled' }),
84
+ leaseExpiresAt: schemaShape.leaseExpiresAt.dateSpec({ meaning: 'Until when a worker holds the row; renewed while the application\'s handler runs.', temporalRole: 'scheduled' }),
85
+ leaseRef: schemaShape.leaseRef.stringSpec({
86
+ meaning: 'The current lease\'s token: a fresh id each lease writes, cleared when the worker lets the row go. Backend-only.',
87
+ whyItMatters: 'Every move a worker makes is fenced on it, so a worker whose lease lapsed writes nothing once another worker took the step, whatever the attempt count did in between.',
88
+ semanticRole: 'identifier',
89
+ }),
90
+ lastErrorCode: schemaShape.lastErrorCode.stringSpec({ meaning: 'The code of the last failure, when the last attempt failed.', semanticRole: 'code' }),
91
+ expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'When the decision lapses, when it does.', whyItMatters: 'Past it, an open notice is withdrawn without asking the plane, which covers a plane that does not end a lapsed decision on its own.', temporalRole: 'scheduled' }),
92
+ posted: schemaShape.posted.stringSpec({
93
+ meaning: 'Each recipient\'s card, serialized: who it was for, the connection it went through, where it is in the provider, or why the recipient could not be reached; and, for a card whose reader may no longer answer, whether it is owed back or was taken back.',
94
+ whyItMatters: 'Recorded as each card is posted, so a retry skips the recipients already reached and the withdraw finds every card that still stands. A card carries the decision\'s content, so one whose reader lost access to the record is taken back while the others stand. Holds user ids and chat addresses, kept only for the retention period.',
95
+ }),
96
+ decisionEnded: schemaShape.decisionEnded.booleanSpec({
97
+ meaning: 'On a withdraw: whether the decision ended, or only moved to other people.',
98
+ whyItMatters: 'An ended decision\'s cards are replaced by its outcome; a moved one\'s say it is now someone else\'s.',
99
+ }),
100
+ decisionOutcome: schemaShape.decisionOutcome.enumSpec({
101
+ meaning: 'How the decision ended, when it ended and the plane can tell.',
102
+ enumDeclaration: enumDeclaration('HumanDecision_Outcome'),
103
+ values: {
104
+ [HumanDecision_Outcome.ACCEPTED]: { meaning: 'Approved unchanged.' },
105
+ [HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS]: { meaning: 'Approved after the decider changed what was proposed.' },
106
+ [HumanDecision_Outcome.REJECTED]: { meaning: 'Declined, or the waiting work was ended.' },
107
+ [HumanDecision_Outcome.LAPSED]: { meaning: 'Nobody answered before the deadline.' },
108
+ [HumanDecision_Outcome.WITHDRAWN]: { meaning: 'The waiting work was cancelled before anyone answered.' },
109
+ [HumanDecision_Outcome.REQUESTER_AUTHORITY_LAPSED]: { meaning: 'Answered, but the authority the work was raised under no longer holds, so it did not run.' },
110
+ },
111
+ }),
112
+ createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the reconcile first saw the stay.', temporalRole: 'creation' }),
113
+ updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the notice last moved.', temporalRole: 'modified' }),
114
+ closedAt: schemaShape.closedAt.dateSpec({ meaning: 'When the notice closed. Absent while it is open: the working phases, and a DEAD_POST whose cards still stand.', whyItMatters: 'The reconcile walks exactly the open notices, and the retention period runs from here; a replay clears it.', temporalRole: 'occurred' }),
115
+ },
116
+ operations: {
117
+ [Op.CREATE]: {
118
+ purpose: 'Record a live stay the ledger has no row for. Internal write path.',
119
+ outcome: 'The stay\'s cards are owed.',
120
+ responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The stay was recorded. A duplicate is a no-op.' }],
121
+ },
122
+ [Op.READ]: {
123
+ purpose: 'Inspect one decision notice: its decision, its phase, its attempts and the last failure\'s code. Never the recipients\' chat addresses.',
124
+ outcome: 'The organization\'s administrator can see why a notice died and whether to replay it.',
125
+ idempotent: true,
126
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The notice was found.' }],
127
+ errorScenarios: [
128
+ { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notice with this id exists in this organization.' },
129
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\'s administrator.' },
130
+ ],
131
+ },
132
+ [Op.LIST]: {
133
+ purpose: 'Browse the organization\'s decision notices.',
134
+ outcome: 'The organization\'s administrator can see which decisions reached people in chat and which did not.',
135
+ idempotent: true,
136
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of notices.' }],
137
+ errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\'s administrator.' }],
138
+ },
139
+ [Op.SEARCH]: {
140
+ purpose: 'Filter the organization\'s decision notices by phase, plane or decision.',
141
+ outcome: 'The organization\'s administrator can list every DEAD notice before replaying them.',
142
+ idempotent: true,
143
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of matching notices.' }],
144
+ errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\'s administrator.' }],
145
+ },
146
+ [Op.UPDATE]: {
147
+ purpose: 'Move a notice to its next phase, or record a posted card. Internal write path.',
148
+ outcome: 'The notice stands where the dispatcher moved it.',
149
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The notice moved.' }],
150
+ },
151
+ [Op.DELETE]: {
152
+ purpose: 'Internal cleanup: the tenant purge\'s cascade and the retention sweep. No public deletion route.',
153
+ outcome: 'The notice is removed.',
154
+ idempotent: true,
155
+ },
156
+ [Op.DELETE_MANY]: {
157
+ purpose: 'Internal cleanup: the retention sweep removes closed notices past their period. No public deletion route.',
158
+ outcome: 'The notices are removed.',
159
+ idempotent: true,
160
+ },
161
+ [HumanDecisionNoticeStay_Operations.REPLAY]: {
162
+ operationId: HumanDecisionNoticeStay_Operations.REPLAY,
163
+ purpose: 'Put one DEAD notice back to the phase it died in, with a fresh attempt budget, recording who replayed it and why.',
164
+ outcome: 'Once the cause is fixed, the cards nobody got are posted, or the cards a settled decision left standing are taken back.',
165
+ whenToUse: 'Use after fixing what made the notice fail (a chat connection, a bot installation, the handler). The justification is recorded on the audit trail.',
166
+ importance: FieldSemanticImportance.PRIMARY,
167
+ responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The notice is owed again and the dispatcher will run it on its next pass; the updated notice is returned.' }],
168
+ errorScenarios: [
169
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'No justification was given.' },
170
+ { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notice with this id exists in this organization.' },
171
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\'s administrator.' },
172
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The notice is not DEAD, it moved while being replayed, or the application declares no decision-notice handler.' },
173
+ ],
174
+ idempotent: false,
175
+ },
176
+ },
177
+ businessConstraints: [
178
+ 'Written only by the engine; an application\'s handler reports what it posted and never writes a row. A replay is the engine\'s own guarded move, made on an administrator\'s request.',
179
+ 'A withdraw is the same row\'s next phase, so it can never overtake the post it withdraws.',
180
+ 'A card stays only with a reader who may still answer the decision: every reconcile asks the decision\'s plane, per standing card, by the same predicate the card was posted by, and a reader it refuses, or whose standing cannot be read, has their card taken back while the others stand. A reader who may answer again gets the card back: one still owed back simply stands again, and one already taken back has the decision posted again.',
181
+ 'Every notice belongs to an organization and is deleted with it.',
182
+ ],
183
+ }), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
184
+ //# sourceMappingURL=human-decision-notice-stays.resource.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"human-decision-notice-stays.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,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AAE,2GAA2G;YACpH,OAAO,EAAE,0BAA0B;YACnC,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE;YAC3C,WAAW,EAAE,kCAAkC,CAAC,MAAM;YACtD,OAAO,EAAE,mHAAmH;YAC5H,OAAO,EAAE,yHAAyH;YAClI,SAAS,EAAE,oJAAoJ;YAC/J,UAAU,EAAE,uBAAuB,CAAC,OAAO;YAC3C,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,2GAA2G,EAAE,CAAC;YACjL,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,eAAe,EAAE,IAAI,EAAE,6BAA6B,EAAE;gBACrF,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,qDAAqD,EAAE;gBAC3G,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sDAAsD,EAAE;gBAC5G,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,gHAAgH,EAAE;aACtK;YACD,UAAU,EAAE,KAAK;SAClB;KACF;IAED,mBAAmB,EAAE;QACnB,uLAAuL;QACvL,2FAA2F;QAC3F,mbAAmb;QACnb,iEAAiE;KAClE;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `humanDecisionNoticeStays` — Wildo SaaS engine specification (organization-scoped ledger, engine-written). #2664 S5b.\n *\n * Inputs:\n * - Schema: `HumanDecisionNoticeStaySchema` (`flows-actors/human-decision-notice-stays.shared.schemas.ts`)\n * - Factory: `humanDecisionNoticeStaysResourceConfiguration_InitializationFactory`\n * - Writers: the engine's decision-notice reconcile (rows from each plane's live stays) and its dispatcher (the phases).\n * - Readers: the same two, and the organization's administrator (READ, LIST, SEARCH).\n * - Custom operations: `HumanDecisionNoticeStay_Operations` (`replay`), implemented by\n * `human-decision-notice-replay.custom-impl.backend.service.ts` (saas-backend-lib). #2739.\n *\n * What a stay is, and why the notice is derived rather than marked on a decision, is the schema file's header; it is not\n * restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n HumanDecisionNoticePhase,\n HumanDecisionNoticeStay_Operations,\n HumanDecisionNoticeStaySchema,\n HumanDecision_Outcome,\n HumanDecision_Plane,\n ResourcePrimaryScope,\n humanDecisionNoticeStaysResourceConfiguration_InitializationFactory as humanDecisionNoticeStaysFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const humanDecisionNoticeStaysResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n humanDecisionNoticeStaysFactory,\n HumanDecisionNoticeStaySchema,\n ({ schemaShape }) => ({\n purpose: 'Record, for each stay of a pending human decision on one route, the cards an application posted about it outside the product and whether they are still owed, standing, or owed back.',\n businessRole: 'What lets the people who may answer a decision see it where they already work (a Slack message, a Teams card) and lets every copy be replaced once the decision is settled or moves to someone else, whichever door answered it.',\n lifecycleRole: 'Inserted by the reconcile when it sees a live stay with no row, moved by the dispatcher as it posts and withdraws the cards, closed once nothing more is owed, and deleted by its retention class or with its organization.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'HumanDecisionNoticeStaySchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'humanDecisionNoticeStaysResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'HUMAN_DECISION_NOTICE_STAYS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('HumanDecisionNoticeStay_Operations') },\n notes: [\n 'CREATE and UPDATE are REPOSITORY_ONLY: no request writes a phase. DELETE and DELETE_MANY are INTERNAL_CALL (the tenant purge\\'s cascade and the retention sweep).',\n 'The organization\\'s administrator reads its notices (READ, LIST, SEARCH by phase, plane or decision) and REPLAYS one that went DEAD (#2739). `posted`, which holds the recipients\\' chat addresses, is backend-only and never returned.',\n 'The `_id` is derived from the stay\\'s identity, so two passes that see the same stay insert the same row; a duplicate insert is a no-op.',\n 'Every move a worker makes is a guarded mutation fenced on its lease\\'s token (`leaseRef`), so a worker whose lease lapsed cannot overwrite the worker that took the row over. The reconcile and a replay hold no lease: they are fenced on the row as they read it and on no worker holding it now (#2745).',\n 'No decision row carries an owed marker: the reconcile derives what is owed from each plane\\'s live stays, so a crash between a decision\\'s write and anything else loses nothing.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of the stay\\'s notice, derived from the stay\\'s identity.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization the decision is confined to.',\n whyItMatters: 'The chat accounts a card may reach are the ones linked in this organization, and the notice is deleted with it.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n plane: schemaShape.plane.enumSpec({\n meaning: 'Which part of the engine holds the decision.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('HumanDecision_Plane'),\n values: {\n [HumanDecision_Plane.CONVERSATIONAL]: { meaning: 'An agent\\'s conversation, paused on an approval-gated tool or a question to a person.' },\n [HumanDecision_Plane.ACTOR_SYSTEM]: { meaning: 'An application\\'s actor-system run, waiting on a person.' },\n [HumanDecision_Plane.REPRESENTATIVE_ADMISSION]: { meaning: 'A granting organization\\'s approval of a representative a representing organization assigned to it.' },\n [HumanDecision_Plane.OPERATION_APPROVAL]: { meaning: 'Another person\\'s approval of an operation a person asked for (#2288), posted to chat since #2814.' },\n },\n }),\n stayRef: schemaShape.stayRef.stringSpec({ meaning: 'How the plane reads the stay back: the decision id, or an actor run\\'s execution id.', semanticRole: 'identifier' }),\n occurrenceRef: schemaShape.occurrenceRef.stringSpec({ meaning: 'Which occurrence of the stay this is: the decision id, or the actor run\\'s suspension id (one run can ask the same question again).', semanticRole: 'identifier' }),\n decisionRef: schemaShape.decisionRef.stringSpec({ meaning: 'The decision the cards are about.', whyItMatters: 'What an operator looks a notice up by, and what the cards\\' buttons answer.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n routeVersion: schemaShape.routeVersion.numberSpec({ meaning: 'The decision\\'s route version this stay is on.', whyItMatters: 'A claim, reassignment or escalation moves the route, which ends this stay and starts the next, so the cards follow the people the decision now waits for.' }),\n epoch: schemaShape.epoch.numberSpec({ meaning: 'How many times this stay came back live after its notice closed.', whyItMatters: 'A decision put back to waiting (an actor run whose continuation failed) gets its cards posted again rather than standing on a withdrawn notice.' }),\n phase: schemaShape.phase.enumSpec({\n meaning: 'Where the notice stands.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('HumanDecisionNoticePhase'),\n values: {\n [HumanDecisionNoticePhase.OWED_POST]: { meaning: 'The stay is live and its cards are owed; the dispatcher will post them.' },\n [HumanDecisionNoticePhase.POSTED]: { meaning: 'The cards were posted and stand while the stay is live. A card whose reader may no longer answer (the record unshared from their relationship, the relationship suspended or re-scoped, the eligible role lost) is owed back on its own: the row stays POSTED and is due until the dispatcher has taken that card back (#2756).' },\n [HumanDecisionNoticePhase.OWED_WITHDRAW]: { meaning: 'The stay ended or moved after its cards were posted; the dispatcher will withdraw them.' },\n [HumanDecisionNoticePhase.WITHDRAWN]: { meaning: 'The cards were replaced by the outcome or deleted. Closed.' },\n [HumanDecisionNoticePhase.SKIPPED]: { meaning: 'Nothing was posted (the stay ended first, or nobody could be reached), so nothing is owed back. Closed.' },\n [HumanDecisionNoticePhase.DEAD_POST]: { meaning: 'Posting failed until its attempts ran out; nothing more is posted until an operator replays it. Closed when no card was posted. When some were, it stays open, and those cards are withdrawn once the decision leaves.' },\n [HumanDecisionNoticePhase.DEAD_WITHDRAW]: { meaning: 'Withdrawing failed until its attempts ran out, so cards may still stand. Closed until an operator replays it.' },\n },\n }),\n attemptCount: schemaShape.attemptCount.numberSpec({ meaning: 'Attempts made in the current phase.', whyItMatters: 'The attempt budget: once it is spent the notice goes DEAD. A deferral gives its attempt back, and an owed withdraw or a replay starts a fresh budget, so it is never what fences a worker\\'s move.' }),\n nextAttemptAt: schemaShape.nextAttemptAt.dateSpec({ meaning: 'When the dispatcher may next try the owed phase, or, on a POSTED or DEAD_POST row, take back the cards owed back from readers who may no longer answer.', temporalRole: 'scheduled' }),\n leaseExpiresAt: schemaShape.leaseExpiresAt.dateSpec({ meaning: 'Until when a worker holds the row; renewed while the application\\'s handler runs.', temporalRole: 'scheduled' }),\n leaseRef: schemaShape.leaseRef.stringSpec({\n meaning: 'The current lease\\'s token: a fresh id each lease writes, cleared when the worker lets the row go. Backend-only.',\n whyItMatters: 'Every move a worker makes is fenced on it, so a worker whose lease lapsed writes nothing once another worker took the step, whatever the attempt count did in between.',\n semanticRole: 'identifier',\n }),\n lastErrorCode: schemaShape.lastErrorCode.stringSpec({ meaning: 'The code of the last failure, when the last attempt failed.', semanticRole: 'code' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'When the decision lapses, when it does.', whyItMatters: 'Past it, an open notice is withdrawn without asking the plane, which covers a plane that does not end a lapsed decision on its own.', temporalRole: 'scheduled' }),\n posted: schemaShape.posted.stringSpec({\n meaning: 'Each recipient\\'s card, serialized: who it was for, the connection it went through, where it is in the provider, or why the recipient could not be reached; and, for a card whose reader may no longer answer, whether it is owed back or was taken back.',\n whyItMatters: 'Recorded as each card is posted, so a retry skips the recipients already reached and the withdraw finds every card that still stands. A card carries the decision\\'s content, so one whose reader lost access to the record is taken back while the others stand. Holds user ids and chat addresses, kept only for the retention period.',\n }),\n decisionEnded: schemaShape.decisionEnded.booleanSpec({\n meaning: 'On a withdraw: whether the decision ended, or only moved to other people.',\n whyItMatters: 'An ended decision\\'s cards are replaced by its outcome; a moved one\\'s say it is now someone else\\'s.',\n }),\n decisionOutcome: schemaShape.decisionOutcome.enumSpec({\n meaning: 'How the decision ended, when it ended and the plane can tell.',\n enumDeclaration: enumDeclaration('HumanDecision_Outcome'),\n values: {\n [HumanDecision_Outcome.ACCEPTED]: { meaning: 'Approved unchanged.' },\n [HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS]: { meaning: 'Approved after the decider changed what was proposed.' },\n [HumanDecision_Outcome.REJECTED]: { meaning: 'Declined, or the waiting work was ended.' },\n [HumanDecision_Outcome.LAPSED]: { meaning: 'Nobody answered before the deadline.' },\n [HumanDecision_Outcome.WITHDRAWN]: { meaning: 'The waiting work was cancelled before anyone answered.' },\n [HumanDecision_Outcome.REQUESTER_AUTHORITY_LAPSED]: { meaning: 'Answered, but the authority the work was raised under no longer holds, so it did not run.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the reconcile first saw the stay.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the notice last moved.', temporalRole: 'modified' }),\n closedAt: schemaShape.closedAt.dateSpec({ meaning: 'When the notice closed. Absent while it is open: the working phases, and a DEAD_POST whose cards still stand.', whyItMatters: 'The reconcile walks exactly the open notices, and the retention period runs from here; a replay clears it.', temporalRole: 'occurred' }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Record a live stay the ledger has no row for. Internal write path.',\n outcome: 'The stay\\'s cards are owed.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The stay was recorded. A duplicate is a no-op.' }],\n },\n [Op.READ]: {\n purpose: 'Inspect one decision notice: its decision, its phase, its attempts and the last failure\\'s code. Never the recipients\\' chat addresses.',\n outcome: 'The organization\\'s administrator can see why a notice died and whether to replay it.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The notice was found.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notice with this id exists in this organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\\'s administrator.' },\n ],\n },\n [Op.LIST]: {\n purpose: 'Browse the organization\\'s decision notices.',\n outcome: 'The organization\\'s administrator can see which decisions reached people in chat and which did not.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of notices.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\\'s administrator.' }],\n },\n [Op.SEARCH]: {\n purpose: 'Filter the organization\\'s decision notices by phase, plane or decision.',\n outcome: 'The organization\\'s administrator can list every DEAD notice before replaying them.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of matching notices.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\\'s administrator.' }],\n },\n [Op.UPDATE]: {\n purpose: 'Move a notice to its next phase, or record a posted card. Internal write path.',\n outcome: 'The notice stands where the dispatcher moved it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The notice moved.' }],\n },\n [Op.DELETE]: {\n purpose: 'Internal cleanup: the tenant purge\\'s cascade and the retention sweep. No public deletion route.',\n outcome: 'The notice is removed.',\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention sweep removes closed notices past their period. No public deletion route.',\n outcome: 'The notices are removed.',\n idempotent: true,\n },\n [HumanDecisionNoticeStay_Operations.REPLAY]: {\n operationId: HumanDecisionNoticeStay_Operations.REPLAY,\n purpose: 'Put one DEAD notice back to the phase it died in, with a fresh attempt budget, recording who replayed it and why.',\n outcome: 'Once the cause is fixed, the cards nobody got are posted, or the cards a settled decision left standing are taken back.',\n whenToUse: 'Use after fixing what made the notice fail (a chat connection, a bot installation, the handler). The justification is recorded on the audit trail.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The notice is owed again and the dispatcher will run it on its next pass; the updated notice is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'No justification was given.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notice with this id exists in this organization.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\\'s administrator.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The notice is not DEAD, it moved while being replayed, or the application declares no decision-notice handler.' },\n ],\n idempotent: false,\n },\n },\n\n businessConstraints: [\n 'Written only by the engine; an application\\'s handler reports what it posted and never writes a row. A replay is the engine\\'s own guarded move, made on an administrator\\'s request.',\n 'A withdraw is the same row\\'s next phase, so it can never overtake the post it withdraws.',\n 'A card stays only with a reader who may still answer the decision: every reconcile asks the decision\\'s plane, per standing card, by the same predicate the card was posted by, and a reader it refuses, or whose standing cannot be read, has their card taken back while the others stand. A reader who may answer again gets the card back: one still owed back simply stands again, and one already taken back has the decision posted again.',\n 'Every notice belongs to an organization and is deleted with it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"model-call-attributions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/model-call-attributions.resource.specification.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,0CAA0C,EAAE,8BAiJxD,CAAC"}
1
+ {"version":3,"file":"model-call-attributions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/model-call-attributions.resource.specification.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,0CAA0C,EAAE,8BA6JxD,CAAC"}
@@ -23,7 +23,7 @@ const enumDeclaration = (exportName) => ({
23
23
  });
24
24
  export const modelCallAttributionsResourceSpecification = resourceSpecification(modelCallAttributionsFactory, ModelCallAttributionSchema, ({ schemaShape }) => ({
25
25
  purpose: 'Record, for every call the application makes to a model provider, which organization, which case and which run it served, what it consumed and what it cost.',
26
- businessRole: 'What an AI-native service firm computes its cost per case from: inference cost attributed to the case it was spent on, beside the expert time spent on the same case.',
26
+ businessRole: 'What an organization computes its cost per case from (an AI-native service firm pricing its work, for example): inference cost attributed to the case it was spent on, beside the time reviewers spent on the same case.',
27
27
  lifecycleRole: 'Written by the engine beside each provider-call record, never updated, deleted with its organization, and otherwise deleted by the retention-class sweep once the application\'s OPERATIONAL_LOGS period has passed since it was written.',
28
28
  audience: LabelAudience.DEVELOPER,
29
29
  subDomain: EngineResourceSubDomain.FLOWS_ACTORS,
@@ -49,11 +49,14 @@ export const modelCallAttributionsResourceSpecification = resourceSpecification(
49
49
  }),
50
50
  agentRef: schemaShape.agentRef.stringSpec({ meaning: 'The agent the call served, or the engine service\'s label for an embedding or extraction.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),
51
51
  kind: schemaShape.kind.enumSpec({
52
- meaning: 'Whether the call generated text or produced embeddings.',
52
+ meaning: 'Whether the call generated text, produced embeddings, asked a content-safety classifier about a text, or extracted the text of a document.',
53
+ whyItMatters: 'The kind decides what the call is priced by (#2889): tokens for a generation or an embedding, text records for a check, pages for an extraction. Only a price of that basis can price it.',
53
54
  enumDeclaration: enumDeclaration('AgentCallTraceKind'),
54
55
  values: {
55
- [AgentCallTraceKind.GENERATION]: { meaning: 'A generation call: prompt tokens in, completion tokens out.' },
56
- [AgentCallTraceKind.EMBEDDING]: { meaning: 'An embedding call: input tokens in, vectors out.' },
56
+ [AgentCallTraceKind.GENERATION]: { meaning: 'A generation call: prompt tokens in, completion tokens out, priced by tokens.' },
57
+ [AgentCallTraceKind.EMBEDDING]: { meaning: 'An embedding call: input tokens in, vectors out, priced by tokens.' },
58
+ [AgentCallTraceKind.CLASSIFICATION]: { meaning: 'A content-safety check (prompt-injection screening or output moderation): priced by the text records it sent, and counted apart from the model calls.' },
59
+ [AgentCallTraceKind.DOCUMENT_EXTRACTION]: { meaning: 'A document extraction: a document in, its text out, priced by the pages it analyzed, and counted apart from the model calls.' },
57
60
  },
58
61
  }),
59
62
  provider: schemaShape.provider.stringSpec({ meaning: 'The provider the call went to.', semanticRole: 'code' }),
@@ -65,6 +68,11 @@ export const modelCallAttributionsResourceSpecification = resourceSpecification(
65
68
  whyItMatters: 'Derived by the engine from an authenticated owner field or from the case row\'s own scope, never from a caller or a model. Absent on an unattributed call.',
66
69
  importance: FieldSemanticImportance.PRIMARY,
67
70
  }),
71
+ representingOrganizationId: schemaShape.representingOrganizationId.stringSpec({
72
+ meaning: 'The representing organization the call\'s run was done through in that organization (#2618): the one the person or agent whose run it was represents, when they work there only through its relationships. Absent for the organization\'s own work.',
73
+ whyItMatters: 'Which representing organization reads this row\'s cost: its administrator reads the calls made through its relationships and its own organization\'s own calls, and never another representing organization\'s. Derived by the engine from the run\'s principal, dropped when the call is charged to another organization than the one that standing was measured in; never authority.',
74
+ semanticRole: 'identifier',
75
+ }),
68
76
  caseRef: schemaShape.caseRef.objectSpec({
69
77
  meaning: 'The case the call served: a row of a resource declared `workUnit: true`.',
70
78
  whyItMatters: 'What a cost-per-case summary groups by. It names the row and copies nothing from it, so erasing the case leaves this row pointing at an impersonalized or absent record.',
@@ -108,11 +116,15 @@ export const modelCallAttributionsResourceSpecification = resourceSpecification(
108
116
  [ReasoningUsageReporting.UNREPORTED]: { meaning: 'The provider did not report it (Anthropic and Mistral do not).' },
109
117
  },
110
118
  }),
119
+ personalDataFieldsWithheld: schemaShape.personalDataFieldsWithheld.numberSpec({
120
+ meaning: 'How many personal fields the call\'s model was sent in place of, under its agent\'s personal-data treatment (a field with several categories counts once). Absent when the call was untreated.',
121
+ whyItMatters: 'The cost views show how much a guarded run kept from its model, as a count: never a value or a field name.',
122
+ }),
111
123
  pricingStatus: schemaShape.pricingStatus.enumSpec({
112
124
  meaning: 'Whether one of the application\'s registered prices covered the call.',
113
125
  enumDeclaration: enumDeclaration('ModelCallPricingStatus'),
114
126
  values: {
115
- [ModelCallPricingStatus.PRICED]: { meaning: 'A registered price for the provider and model was in effect at the call.' },
127
+ [ModelCallPricingStatus.PRICED]: { meaning: 'A registered price for the provider and model, of the basis the call\'s kind is billed by, was in effect at the call.' },
116
128
  [ModelCallPricingStatus.UNPRICED]: { meaning: 'No registered price matched; the call is counted apart, never priced at zero.' },
117
129
  },
118
130
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"model-call-attributions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/model-call-attributions.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,gEAAgE,IAAI,4BAA4B,GACjG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuC,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC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AAE,YAAY,EAAE,MAAM,EAAE,CAAC;QAC3I,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,YAAY,EAAE,kHAAkH,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;KAChP;IAED,UAAU,EAAE;QACV,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,8CAA8C;YACvD,OAAO,EAAE,kEAAkE;YAC3E,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,WAAW,EAAE,OAAO,EAAE,oDAAoD,EAAE,CAAC;SAChI;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,kDAAkD;YAC3D,OAAO,EAAE,6CAA6C;YACtD,UAAU,EAAE,IAAI;YAChB,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;SAC3F;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,+CAA+C;YACxD,OAAO,EAAE,+CAA+C;YACxD,UAAU,EAAE,IAAI;YAChB,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;SAChG;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,+FAA+F;YACxG,OAAO,EAAE,mFAAmF;YAC5F,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,yFAAyF;QACzF,+HAA+H;QAC/H,8GAA8G;QAC9G,gGAAgG;KACjG;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `modelCallAttributions` — Wildo SaaS engine specification (application-scoped storage, engine-written). #1598.\n *\n * Inputs:\n * - Schema: `ModelCallAttributionSchema` (`flows-actors/model-call-attributions.shared.schemas.ts`)\n * - Factory: `modelCallAttributionsResourceConfiguration_InitializationFactory`\n * - Writer: the provider-call recorder (`ProviderCallRecorderBackendService`), beside every provider-call record.\n * - Readers: the model-cost summary (`POST /model-cost/summary`) and the period close, both engine services.\n *\n * The runtime reasoning (why a separate table from the evidence records, the closed projection, exact cost) lives\n * in the schema file's header and is not restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n AgentCallTraceKind,\n CoreResourceOperation as Op,\n ModelCallAttributionSchema,\n ModelCallAttributionShare,\n ModelCallAttributionSource,\n ModelCallPricingStatus,\n ReasoningUsageReporting,\n ResourcePrimaryScope,\n modelCallAttributionsResourceConfiguration_InitializationFactory as modelCallAttributionsFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const modelCallAttributionsResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n modelCallAttributionsFactory,\n ModelCallAttributionSchema,\n ({ schemaShape }) => ({\n purpose: 'Record, for every call the application makes to a model provider, which organization, which case and which run it served, what it consumed and what it cost.',\n businessRole: 'What an AI-native service firm computes its cost per case from: inference cost attributed to the case it was spent on, beside the expert time spent on the same case.',\n lifecycleRole: 'Written by the engine beside each provider-call record, never updated, deleted with its organization, and otherwise deleted by the retention-class sweep once the application\\'s OPERATIONAL_LOGS period has passed since it was written.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelCallAttributionSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelCallAttributionsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'MODEL_CALL_ATTRIBUTIONS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },\n notes: [\n 'Every operation is route-less: CREATE, READ and LIST are REPOSITORY_ONLY and DELETE_MANY is INTERNAL_CALL (the retention sweep and the tenant cascade delete through the service layer). The roles are never exercised by a request.',\n 'Rows are built only by `projectModelCallAttribution`, a closed projection of the provider-call record: no prompt, output, error message, userId or free-form trace attribute can reach the table.',\n 'Retention: `retentionBinding: { retentionClass: OPERATIONAL_LOGS, startPoint: CREATED }` (#1613). The invoice-backing record is `modelCostPeriodAggregates`, not these rows.',\n 'Teardown: the `organizations → modelCallAttributions` edge deletes a tenant\\'s rows with it, after the purge has closed its open cost period into an aggregate.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of this attribution row.', semanticRole: 'identifier' }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'The application record the call was made by, stamped from the canonical identity.', semanticRole: 'identifier' }),\n providerCallRecordId: schemaShape.providerCallRecordId.stringSpec({\n meaning: 'The provider-call record this row attributes.',\n whyItMatters: 'Several rows may name one record when one call served several cases (an embedding batch); a summary counts distinct records, never rows.',\n semanticRole: 'identifier',\n }),\n agentRef: schemaShape.agentRef.stringSpec({ meaning: 'The agent the call served, or the engine service\\'s label for an embedding or extraction.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n kind: schemaShape.kind.enumSpec({\n meaning: 'Whether the call generated text or produced embeddings.',\n enumDeclaration: enumDeclaration('AgentCallTraceKind'),\n values: {\n [AgentCallTraceKind.GENERATION]: { meaning: 'A generation call: prompt tokens in, completion tokens out.' },\n [AgentCallTraceKind.EMBEDDING]: { meaning: 'An embedding call: input tokens in, vectors out.' },\n },\n }),\n provider: schemaShape.provider.stringSpec({ meaning: 'The provider the call went to.', semanticRole: 'code' }),\n model: schemaShape.model.stringSpec({ meaning: 'The model the call resolved to — what a registered price is matched against.', semanticRole: 'code' }),\n calledAt: schemaShape.calledAt.dateSpec({ meaning: 'When the call was initiated.', whyItMatters: 'The instant a summary window and a monthly cost period are cut on.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n correlationId: schemaShape.correlationId.stringSpec({ meaning: 'The request or job correlation id the call ran under.', whyItMatters: 'A join key into the logs and the audit trail, never an authorization input.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization the call served.',\n whyItMatters: 'Derived by the engine from an authenticated owner field or from the case row\\'s own scope, never from a caller or a model. Absent on an unattributed call.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n caseRef: schemaShape.caseRef.objectSpec({\n meaning: 'The case the call served: a row of a resource declared `workUnit: true`.',\n whyItMatters: 'What a cost-per-case summary groups by. It names the row and copies nothing from it, so erasing the case leaves this row pointing at an impersonalized or absent record.',\n }),\n executionRef: schemaShape.executionRef.objectSpec({ meaning: 'The run the call was made in: a conversational turn, an actor execution, a batch run or an inbound delivery.' }),\n taskRef: schemaShape.taskRef.stringSpec({ meaning: 'The actor task within that run, when there is one.', semanticRole: 'identifier' }),\n attributionSource: schemaShape.attributionSource.enumSpec({\n meaning: 'How this row learned which work the call served.',\n whyItMatters: 'UNATTRIBUTED calls are counted apart by every summary: a cost per case that silently dropped them would look complete and be low.',\n enumDeclaration: enumDeclaration('ModelCallAttributionSource'),\n values: {\n [ModelCallAttributionSource.EXPLICIT]: { meaning: 'The call site passed the attribution with the call.' },\n [ModelCallAttributionSource.AMBIENT]: { meaning: 'Read from the work frame the engine opened around the call.' },\n [ModelCallAttributionSource.UNATTRIBUTED]: { meaning: 'The call ran outside any work frame (platform tooling).' },\n },\n }),\n share: schemaShape.share.enumSpec({\n meaning: 'Which part of the call this row accounts for.',\n enumDeclaration: enumDeclaration('ModelCallAttributionShare'),\n values: {\n [ModelCallAttributionShare.WHOLE_CALL]: { meaning: 'The whole call served one unit of work (share 1/1).' },\n [ModelCallAttributionShare.APPORTIONED_BY_INPUT_LENGTH]: { meaning: 'One call served several cases of one organization; this row carries its input length over the call\\'s total.' },\n },\n }),\n shareNumerator: schemaShape.shareNumerator.numberSpec({ meaning: 'This row\\'s share of the call, numerator.' }),\n shareDenominator: schemaShape.shareDenominator.numberSpec({ meaning: 'This row\\'s share of the call, denominator.' }),\n promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens of the whole call.' }),\n completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens of the whole call, reasoning included.' }),\n totalTokens: schemaShape.totalTokens.numberSpec({ meaning: 'Total tokens of the whole call.' }),\n noCacheTokens: schemaShape.noCacheTokens.numberSpec({ meaning: 'Input tokens read without a prompt cache, when the provider reported the split.' }),\n cacheReadTokens: schemaShape.cacheReadTokens.numberSpec({ meaning: 'Input tokens served from a prompt cache.' }),\n cacheWriteTokens: schemaShape.cacheWriteTokens.numberSpec({ meaning: 'Input tokens written into a prompt cache.' }),\n textTokens: schemaShape.textTokens.numberSpec({ meaning: 'Visible output tokens, when the provider reported the split.' }),\n reasoningTokens: schemaShape.reasoningTokens.numberSpec({ meaning: 'Output tokens spent on reasoning, a part of the completion. Absent when the provider did not report the split.' }),\n reasoningUsage: schemaShape.reasoningUsage.enumSpec({\n meaning: 'Whether the provider reported how many output tokens were reasoning.',\n whyItMatters: 'An unreported split is never read as zero reasoning: zero would be a claim the provider did not make.',\n enumDeclaration: enumDeclaration('ReasoningUsageReporting'),\n values: {\n [ReasoningUsageReporting.REPORTED]: { meaning: 'The provider reported the reasoning split.' },\n [ReasoningUsageReporting.UNREPORTED]: { meaning: 'The provider did not report it (Anthropic and Mistral do not).' },\n },\n }),\n pricingStatus: schemaShape.pricingStatus.enumSpec({\n meaning: 'Whether one of the application\\'s registered prices covered the call.',\n enumDeclaration: enumDeclaration('ModelCallPricingStatus'),\n values: {\n [ModelCallPricingStatus.PRICED]: { meaning: 'A registered price for the provider and model was in effect at the call.' },\n [ModelCallPricingStatus.UNPRICED]: { meaning: 'No registered price matched; the call is counted apart, never priced at zero.' },\n },\n }),\n pricingAuthorityRef: schemaShape.pricingAuthorityRef.stringSpec({ meaning: 'The registered price used, by its stable name.', semanticRole: 'code' }),\n pricingAuthorityVersion: schemaShape.pricingAuthorityVersion.numberSpec({ meaning: 'The version of that price.' }),\n currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 currency of the computed cost.', semanticRole: 'code' }),\n callCostMinorNumerator: schemaShape.callCostMinorNumerator.stringSpec({\n meaning: 'The whole call\\'s exact cost in minor units, numerator (a decimal integer).',\n whyItMatters: 'Stored unrounded: a total is rounded up once, when it is reported, so many small calls are not overstated by a minor unit each.',\n }),\n callCostUnitsDenominator: schemaShape.callCostUnitsDenominator.numberSpec({ meaning: 'The whole call\\'s exact cost in minor units, denominator.' }),\n reportedCostAmount: schemaShape.reportedCostAmount.numberSpec({ meaning: 'A cost the provider reported itself, verbatim in its own unit; kept apart from the computed cost.' }),\n reportedCurrency: schemaShape.reportedCurrency.stringSpec({ meaning: 'The currency of the provider-reported cost.', semanticRole: 'code' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', whyItMatters: 'The retention clock: the row is deleted once the declared OPERATIONAL_LOGS period has passed since this instant.', temporalRole: 'creation' }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Record the attribution of one provider call.',\n outcome: 'The call counts toward its organization\\'s and its case\\'s cost.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The attribution was recorded. Internal write path.' }],\n },\n [Op.READ]: {\n purpose: 'Read one attribution row for an internal caller.',\n outcome: 'The row is returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The row was found.' }],\n },\n [Op.LIST]: {\n purpose: 'List attribution rows for an internal caller.',\n outcome: 'The rows are returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The rows were returned.' }],\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention-class sweep and the tenant cascade. No public deletion route.',\n outcome: 'Rows past the OPERATIONAL_LOGS period, or of a deleted organization, are removed.',\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Identifiers and counts only: no prompt, output, error message or person is ever stored.',\n 'Every recorded provider call has at least one attribution row; a call made outside any unit of work has one UNATTRIBUTED row.',\n 'The organization is derived from the case row or an authenticated owner, never from the caller or the model.',\n 'Append-only: there is no update. Recording is best-effort and never fails the call it records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
1
+ {"version":3,"file":"model-call-attributions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/model-call-attributions.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,gEAAgE,IAAI,4BAA4B,GACjG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuC,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACjI,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,eAA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yB,EAAE,CAAC;SAChG;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,+FAA+F;YACxG,OAAO,EAAE,mFAAmF;YAC5F,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,yFAAyF;QACzF,+HAA+H;QAC/H,8GAA8G;QAC9G,gGAAgG;KACjG;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `modelCallAttributions` — Wildo SaaS engine specification (application-scoped storage, engine-written). #1598.\n *\n * Inputs:\n * - Schema: `ModelCallAttributionSchema` (`flows-actors/model-call-attributions.shared.schemas.ts`)\n * - Factory: `modelCallAttributionsResourceConfiguration_InitializationFactory`\n * - Writer: the provider-call recorder (`ProviderCallRecorderBackendService`), beside every provider-call record.\n * - Readers: the model-cost summary (`POST /model-cost/summary`) and the period close, both engine services.\n *\n * The runtime reasoning (why a separate table from the evidence records, the closed projection, exact cost) lives\n * in the schema file's header and is not restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n AgentCallTraceKind,\n CoreResourceOperation as Op,\n ModelCallAttributionSchema,\n ModelCallAttributionShare,\n ModelCallAttributionSource,\n ModelCallPricingStatus,\n ReasoningUsageReporting,\n ResourcePrimaryScope,\n modelCallAttributionsResourceConfiguration_InitializationFactory as modelCallAttributionsFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const modelCallAttributionsResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n modelCallAttributionsFactory,\n ModelCallAttributionSchema,\n ({ schemaShape }) => ({\n purpose: 'Record, for every call the application makes to a model provider, which organization, which case and which run it served, what it consumed and what it cost.',\n businessRole: 'What an organization computes its cost per case from (an AI-native service firm pricing its work, for example): inference cost attributed to the case it was spent on, beside the time reviewers spent on the same case.',\n lifecycleRole: 'Written by the engine beside each provider-call record, never updated, deleted with its organization, and otherwise deleted by the retention-class sweep once the application\\'s OPERATIONAL_LOGS period has passed since it was written.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelCallAttributionSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelCallAttributionsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'MODEL_CALL_ATTRIBUTIONS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },\n notes: [\n 'Every operation is route-less: CREATE, READ and LIST are REPOSITORY_ONLY and DELETE_MANY is INTERNAL_CALL (the retention sweep and the tenant cascade delete through the service layer). The roles are never exercised by a request.',\n 'Rows are built only by `projectModelCallAttribution`, a closed projection of the provider-call record: no prompt, output, error message, userId or free-form trace attribute can reach the table.',\n 'Retention: `retentionBinding: { retentionClass: OPERATIONAL_LOGS, startPoint: CREATED }` (#1613). The invoice-backing record is `modelCostPeriodAggregates`, not these rows.',\n 'Teardown: the `organizations → modelCallAttributions` edge deletes a tenant\\'s rows with it, after the purge has closed its open cost period into an aggregate.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of this attribution row.', semanticRole: 'identifier' }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'The application record the call was made by, stamped from the canonical identity.', semanticRole: 'identifier' }),\n providerCallRecordId: schemaShape.providerCallRecordId.stringSpec({\n meaning: 'The provider-call record this row attributes.',\n whyItMatters: 'Several rows may name one record when one call served several cases (an embedding batch); a summary counts distinct records, never rows.',\n semanticRole: 'identifier',\n }),\n agentRef: schemaShape.agentRef.stringSpec({ meaning: 'The agent the call served, or the engine service\\'s label for an embedding or extraction.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n kind: schemaShape.kind.enumSpec({\n meaning: 'Whether the call generated text, produced embeddings, asked a content-safety classifier about a text, or extracted the text of a document.',\n whyItMatters: 'The kind decides what the call is priced by (#2889): tokens for a generation or an embedding, text records for a check, pages for an extraction. Only a price of that basis can price it.',\n enumDeclaration: enumDeclaration('AgentCallTraceKind'),\n values: {\n [AgentCallTraceKind.GENERATION]: { meaning: 'A generation call: prompt tokens in, completion tokens out, priced by tokens.' },\n [AgentCallTraceKind.EMBEDDING]: { meaning: 'An embedding call: input tokens in, vectors out, priced by tokens.' },\n [AgentCallTraceKind.CLASSIFICATION]: { meaning: 'A content-safety check (prompt-injection screening or output moderation): priced by the text records it sent, and counted apart from the model calls.' },\n [AgentCallTraceKind.DOCUMENT_EXTRACTION]: { meaning: 'A document extraction: a document in, its text out, priced by the pages it analyzed, and counted apart from the model calls.' },\n },\n }),\n provider: schemaShape.provider.stringSpec({ meaning: 'The provider the call went to.', semanticRole: 'code' }),\n model: schemaShape.model.stringSpec({ meaning: 'The model the call resolved to — what a registered price is matched against.', semanticRole: 'code' }),\n calledAt: schemaShape.calledAt.dateSpec({ meaning: 'When the call was initiated.', whyItMatters: 'The instant a summary window and a monthly cost period are cut on.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n correlationId: schemaShape.correlationId.stringSpec({ meaning: 'The request or job correlation id the call ran under.', whyItMatters: 'A join key into the logs and the audit trail, never an authorization input.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization the call served.',\n whyItMatters: 'Derived by the engine from an authenticated owner field or from the case row\\'s own scope, never from a caller or a model. Absent on an unattributed call.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n representingOrganizationId: schemaShape.representingOrganizationId.stringSpec({\n meaning: 'The representing organization the call\\'s run was done through in that organization (#2618): the one the person or agent whose run it was represents, when they work there only through its relationships. Absent for the organization\\'s own work.',\n whyItMatters: 'Which representing organization reads this row\\'s cost: its administrator reads the calls made through its relationships and its own organization\\'s own calls, and never another representing organization\\'s. Derived by the engine from the run\\'s principal, dropped when the call is charged to another organization than the one that standing was measured in; never authority.',\n semanticRole: 'identifier',\n }),\n caseRef: schemaShape.caseRef.objectSpec({\n meaning: 'The case the call served: a row of a resource declared `workUnit: true`.',\n whyItMatters: 'What a cost-per-case summary groups by. It names the row and copies nothing from it, so erasing the case leaves this row pointing at an impersonalized or absent record.',\n }),\n executionRef: schemaShape.executionRef.objectSpec({ meaning: 'The run the call was made in: a conversational turn, an actor execution, a batch run or an inbound delivery.' }),\n taskRef: schemaShape.taskRef.stringSpec({ meaning: 'The actor task within that run, when there is one.', semanticRole: 'identifier' }),\n attributionSource: schemaShape.attributionSource.enumSpec({\n meaning: 'How this row learned which work the call served.',\n whyItMatters: 'UNATTRIBUTED calls are counted apart by every summary: a cost per case that silently dropped them would look complete and be low.',\n enumDeclaration: enumDeclaration('ModelCallAttributionSource'),\n values: {\n [ModelCallAttributionSource.EXPLICIT]: { meaning: 'The call site passed the attribution with the call.' },\n [ModelCallAttributionSource.AMBIENT]: { meaning: 'Read from the work frame the engine opened around the call.' },\n [ModelCallAttributionSource.UNATTRIBUTED]: { meaning: 'The call ran outside any work frame (platform tooling).' },\n },\n }),\n share: schemaShape.share.enumSpec({\n meaning: 'Which part of the call this row accounts for.',\n enumDeclaration: enumDeclaration('ModelCallAttributionShare'),\n values: {\n [ModelCallAttributionShare.WHOLE_CALL]: { meaning: 'The whole call served one unit of work (share 1/1).' },\n [ModelCallAttributionShare.APPORTIONED_BY_INPUT_LENGTH]: { meaning: 'One call served several cases of one organization; this row carries its input length over the call\\'s total.' },\n },\n }),\n shareNumerator: schemaShape.shareNumerator.numberSpec({ meaning: 'This row\\'s share of the call, numerator.' }),\n shareDenominator: schemaShape.shareDenominator.numberSpec({ meaning: 'This row\\'s share of the call, denominator.' }),\n promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens of the whole call.' }),\n completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens of the whole call, reasoning included.' }),\n totalTokens: schemaShape.totalTokens.numberSpec({ meaning: 'Total tokens of the whole call.' }),\n noCacheTokens: schemaShape.noCacheTokens.numberSpec({ meaning: 'Input tokens read without a prompt cache, when the provider reported the split.' }),\n cacheReadTokens: schemaShape.cacheReadTokens.numberSpec({ meaning: 'Input tokens served from a prompt cache.' }),\n cacheWriteTokens: schemaShape.cacheWriteTokens.numberSpec({ meaning: 'Input tokens written into a prompt cache.' }),\n textTokens: schemaShape.textTokens.numberSpec({ meaning: 'Visible output tokens, when the provider reported the split.' }),\n reasoningTokens: schemaShape.reasoningTokens.numberSpec({ meaning: 'Output tokens spent on reasoning, a part of the completion. Absent when the provider did not report the split.' }),\n reasoningUsage: schemaShape.reasoningUsage.enumSpec({\n meaning: 'Whether the provider reported how many output tokens were reasoning.',\n whyItMatters: 'An unreported split is never read as zero reasoning: zero would be a claim the provider did not make.',\n enumDeclaration: enumDeclaration('ReasoningUsageReporting'),\n values: {\n [ReasoningUsageReporting.REPORTED]: { meaning: 'The provider reported the reasoning split.' },\n [ReasoningUsageReporting.UNREPORTED]: { meaning: 'The provider did not report it (Anthropic and Mistral do not).' },\n },\n }),\n personalDataFieldsWithheld: schemaShape.personalDataFieldsWithheld.numberSpec({\n meaning: 'How many personal fields the call\\'s model was sent in place of, under its agent\\'s personal-data treatment (a field with several categories counts once). Absent when the call was untreated.',\n whyItMatters: 'The cost views show how much a guarded run kept from its model, as a count: never a value or a field name.',\n }),\n pricingStatus: schemaShape.pricingStatus.enumSpec({\n meaning: 'Whether one of the application\\'s registered prices covered the call.',\n enumDeclaration: enumDeclaration('ModelCallPricingStatus'),\n values: {\n [ModelCallPricingStatus.PRICED]: { meaning: 'A registered price for the provider and model, of the basis the call\\'s kind is billed by, was in effect at the call.' },\n [ModelCallPricingStatus.UNPRICED]: { meaning: 'No registered price matched; the call is counted apart, never priced at zero.' },\n },\n }),\n pricingAuthorityRef: schemaShape.pricingAuthorityRef.stringSpec({ meaning: 'The registered price used, by its stable name.', semanticRole: 'code' }),\n pricingAuthorityVersion: schemaShape.pricingAuthorityVersion.numberSpec({ meaning: 'The version of that price.' }),\n currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 currency of the computed cost.', semanticRole: 'code' }),\n callCostMinorNumerator: schemaShape.callCostMinorNumerator.stringSpec({\n meaning: 'The whole call\\'s exact cost in minor units, numerator (a decimal integer).',\n whyItMatters: 'Stored unrounded: a total is rounded up once, when it is reported, so many small calls are not overstated by a minor unit each.',\n }),\n callCostUnitsDenominator: schemaShape.callCostUnitsDenominator.numberSpec({ meaning: 'The whole call\\'s exact cost in minor units, denominator.' }),\n reportedCostAmount: schemaShape.reportedCostAmount.numberSpec({ meaning: 'A cost the provider reported itself, verbatim in its own unit; kept apart from the computed cost.' }),\n reportedCurrency: schemaShape.reportedCurrency.stringSpec({ meaning: 'The currency of the provider-reported cost.', semanticRole: 'code' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', whyItMatters: 'The retention clock: the row is deleted once the declared OPERATIONAL_LOGS period has passed since this instant.', temporalRole: 'creation' }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Record the attribution of one provider call.',\n outcome: 'The call counts toward its organization\\'s and its case\\'s cost.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The attribution was recorded. Internal write path.' }],\n },\n [Op.READ]: {\n purpose: 'Read one attribution row for an internal caller.',\n outcome: 'The row is returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The row was found.' }],\n },\n [Op.LIST]: {\n purpose: 'List attribution rows for an internal caller.',\n outcome: 'The rows are returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The rows were returned.' }],\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention-class sweep and the tenant cascade. No public deletion route.',\n outcome: 'Rows past the OPERATIONAL_LOGS period, or of a deleted organization, are removed.',\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Identifiers and counts only: no prompt, output, error message or person is ever stored.',\n 'Every recorded provider call has at least one attribution row; a call made outside any unit of work has one UNATTRIBUTED row.',\n 'The organization is derived from the case row or an authenticated owner, never from the caller or the model.',\n 'Append-only: there is no update. Recording is best-effort and never fails the call it records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"model-cost-period-aggregates.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAkCjI,eAAO,MAAM,8CAA8C,EAAE,8BAwH5D,CAAC"}
1
+ {"version":3,"file":"model-cost-period-aggregates.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,KAAK,8BAA8B,EAKpC,MAAM,6BAA6B,CAAC;AA2CrC,eAAO,MAAM,8CAA8C,EAAE,8BA8J5D,CAAC"}
@@ -7,11 +7,14 @@
7
7
  * - Custom operation: `ModelCostPeriodAggregates_Operations.LINK_INVOICE`, implemented by
8
8
  * `model-cost.custom-impl.backend.service.ts` (saas-backend-lib).
9
9
  * - Writers: the model-cost period-close batch, and the close at an organization's deletion mark and purge.
10
+ * - UI preset: `modelCostPeriodAggregatesAdminResourceUIBehavior` (presets-components, admin scope), surfaced as
11
+ * Settings → Administration → Model costs (#2324).
10
12
  */
13
+ import { modelCostPeriodAggregatesAdminResourceUIBehavior as modelCostPeriodAggregatesUIBehaviorSource } from '@wildo-ai/presets-components';
11
14
  import { LabelAudience } from '@wildo-ai/presets-components-models';
12
15
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
13
16
  import { CoreResourceOperation as Op, ModelCostPeriodAggregateSchema, ModelCostPeriodAggregates_Operations, ResourcePrimaryScope, modelCostPeriodAggregatesResourceConfiguration_InitializationFactory as modelCostPeriodAggregatesFactory, } from '@wildo-ai/saas-models';
14
- import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
17
+ import { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
15
18
  import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
16
19
  const enumDeclaration = (exportName) => ({
17
20
  packageName: '@wildo-ai/saas-models',
@@ -24,6 +27,7 @@ const EXAMPLE_AGGREGATE = {
24
27
  applicationId: 'app_01J4P8F1M2N3Q4R5S6T7V8W9XY',
25
28
  periodKey: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ:2026-08:USD',
26
29
  organizationId: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ',
30
+ organizationName: 'Acme Robotics',
27
31
  periodStart: '2026-08-01T00:00:00.000Z',
28
32
  periodEnd: '2026-09-01T00:00:00.000Z',
29
33
  currency: 'USD',
@@ -40,9 +44,11 @@ const EXAMPLE_AGGREGATE = {
40
44
  closedAt: '2026-09-04T02:17:00.000Z',
41
45
  // The id of the organization's `organizationInvoiceRefs` row, not the payment provider's invoice number.
42
46
  organizationInvoiceRefId: '66f6a1c2e3d4b5a697885678',
47
+ invoiceLinkedAt: '2026-09-05T09:30:00.000Z',
43
48
  createdAt: '2026-09-04T02:17:00.000Z',
44
49
  };
45
- export const modelCostPeriodAggregatesResourceSpecification = resourceSpecification(modelCostPeriodAggregatesFactory, ModelCostPeriodAggregateSchema, ({ schemaShape }) => ({
50
+ const modelCostPeriodAggregatesUIBehavior = modelCostPeriodAggregatesUIBehaviorSource;
51
+ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificationFromFrontendConfiguration(resourceFrontendConfiguration(modelCostPeriodAggregatesUIBehavior), resourceSpecification(modelCostPeriodAggregatesFactory, ModelCostPeriodAggregateSchema, ({ schemaShape }) => ({
46
52
  purpose: 'Hold one organization\'s model cost for one calendar month in one currency, written once the month is over: the durable record an invoice cites.',
47
53
  businessRole: 'The business record behind billing a client for the inference its cases consumed. Detail rows are operational logs; this total is what is kept, and kept past the client\'s deletion when an invoice bills it.',
48
54
  lifecycleRole: 'Written by the period close after the month ends plus a declared grace, or at the organization\'s deletion for its open period (provisionally, until the month is due); linked once to the invoice that bills it; kept for the BUSINESS_RECORDS period from the end of the calendar year. At the organization\'s deletion, an aggregate no invoice bills is deleted.',
@@ -56,9 +62,10 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
56
62
  notes: [
57
63
  'Three routes under `/applications/{applicationId}` (the APPLICATION row\'s id, which the per-row authorization compares), all for the application\'s billing people (APP_ADMIN_SUPER_ADMIN, APP_ADMIN_BILLING_MANAGER): LIST, filtered by `organizationId`, `currency` or `periodKey`, and READ to find the month being invoiced, and `link_invoice`. CREATE is REPOSITORY_ONLY (the close writes through the repository); READ and LIST also keep a route-less INTERNAL_CALL default for the service tier; UPDATE_MANY and DELETE_MANY are INTERNAL_CALL.',
58
64
  'An aggregate the deletion mark wrote before its month was due is PROVISIONAL: the next close rewrites it from the rows as they stand, unless an invoice billed it first. One closed after its month was due, or linked, is final.',
59
- 'Retention: `retentionBinding: { retentionClass: BUSINESS_RECORDS, startPoint: END_OF_CALENDAR_YEAR }`, and `retentionPolicy: { mode: RETAIN_ONLY, statutoryRetention: { ground: LEGAL_OBLIGATION } }` naming the bookkeeping statutes (HGB §257, AO §147, Code de commerce L123-22). The engine refuses a BUSINESS_RECORDS resource that names no statute (#1635), and the retention policy is why UPDATE_MANY and the service-resolvable reads exist. No personal data and no data subject (`dataSubjectPolicy: NO_PRINCIPAL`).',
65
+ 'Retention: `retentionBinding: { retentionClass: BUSINESS_RECORDS, startPoint: END_OF_CALENDAR_YEAR }`, and `retentionPolicy: { mode: RETAIN_ONLY, statutoryRetention: { ground: LEGAL_OBLIGATION } }` naming the bookkeeping statutes (HGB §257, AO §147, Code de commerce L123-22). The engine refuses a BUSINESS_RECORDS resource that names no statute (#1635), and the retention policy is why UPDATE_MANY and the service-resolvable reads exist. No personal data about its own subject and no data subject (`dataSubjectPolicy: NO_PRINCIPAL`); the copied `organizationName` is the billed tenant\'s name, declared personal only where that tenant is a sole trader (#2535), and kept intact under the statutory retention.',
60
66
  'Teardown: the `organizations → modelCostPeriodAggregates` edge disables the cascade. The purge\'s own close deletes the organization\'s UNLINKED aggregates after it commits; a linked one outlives the organization for its statutory period.',
61
67
  'Unpriced calls are totalled under the ISO 4217 code `XXX` ("no currency") so an unpriced month is recorded, not absent.',
68
+ 'Every priced provider call enters its month, a content-safety check (priced by text records) and a document extraction (priced by pages) as well as a model call (#2889): the aggregate holds the whole provider spend the organization is invoiced for.',
62
69
  ],
63
70
  },
64
71
  fields: {
@@ -70,10 +77,15 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
70
77
  semanticRole: 'identifier',
71
78
  }),
72
79
  organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose model cost this is.', importance: FieldSemanticImportance.PRIMARY }),
80
+ organizationName: schemaShape.organizationName.stringSpec({
81
+ meaning: 'The organization\'s name when the aggregate was written, copied by the period close.',
82
+ whyItMatters: 'The billing people who read model costs are not members of the organizations they reconcile, so they cannot resolve the organization reference; this copy is what names the row for them. A copy at close, like the party an invoice names, not a live mirror. Absent on an aggregate written before the field existed.',
83
+ semanticRole: 'label',
84
+ }),
73
85
  periodStart: schemaShape.periodStart.dateSpec({ meaning: 'First instant of the calendar month (UTC), inclusive.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),
74
86
  periodEnd: schemaShape.periodEnd.dateSpec({ meaning: 'First instant of the next month (UTC), exclusive.', temporalRole: 'occurred' }),
75
87
  currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 code of every total on the row, or XXX for the calls no registered price covered.', semanticRole: 'code' }),
76
- attributedCallCount: schemaShape.attributedCallCount.numberSpec({ meaning: 'Distinct model calls attributed to the organization in the month, in this currency slot.' }),
88
+ attributedCallCount: schemaShape.attributedCallCount.numberSpec({ meaning: 'Distinct provider calls of every kind attributed to the organization in the month, in this currency slot.' }),
77
89
  unpricedCallCount: schemaShape.unpricedCallCount.numberSpec({ meaning: 'Of those, the calls no registered price covered.' }),
78
90
  promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens in the month, each row\'s share applied.' }),
79
91
  completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens in the month, each row\'s share applied.' }),
@@ -93,6 +105,11 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
93
105
  whyItMatters: 'Its presence is what keeps the aggregate past its organization\'s deletion, for the statutory bookkeeping period.',
94
106
  semanticRole: 'identifier',
95
107
  }),
108
+ invoiceLinkedAt: schemaShape.invoiceLinkedAt.dateSpec({
109
+ meaning: 'When `link_invoice` linked the invoice: stamped by the first link, in the same write, and never rewritten.',
110
+ whyItMatters: 'It is what proves a link\'s commit landed when the store lost its reply: the invoice id cannot, since a second caller linking the same invoice leaves the same id. Absent on an unlinked aggregate, and on one linked before the field existed.',
111
+ temporalRole: 'occurred',
112
+ }),
96
113
  createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', temporalRole: 'creation' }),
97
114
  },
98
115
  operations: {
@@ -118,7 +135,7 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
118
135
  errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' }],
119
136
  },
120
137
  [Op.UPDATE_MANY]: {
121
- purpose: 'The erasure writer\'s door the retention policy requires. Route-less; the rows hold no personal data, so nothing is scrubbed.',
138
+ purpose: 'The erasure writer\'s door the retention policy requires. Route-less; the rows hold no personal data about their own subject, so nothing is scrubbed (the billed tenant\'s name is kept under the statutory retention, #2535).',
122
139
  outcome: 'The retained marker only.',
123
140
  idempotent: true,
124
141
  },
@@ -130,7 +147,7 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
130
147
  [ModelCostPeriodAggregates_Operations.LINK_INVOICE]: {
131
148
  operationId: ModelCostPeriodAggregates_Operations.LINK_INVOICE,
132
149
  purpose: 'Record that an invoice bills this aggregate\'s model cost.',
133
- outcome: 'The aggregate names its invoice, and is kept past its organization\'s deletion for the statutory period. The link is written to the audit trail.',
150
+ outcome: 'The aggregate names its invoice and when it was linked (`invoiceLinkedAt`), and is kept past its organization\'s deletion for the statutory period. The link is written to the audit trail.',
134
151
  whenToUse: 'The application\'s billing flow issued an invoice for the month\'s model cost of this organization.',
135
152
  importance: FieldSemanticImportance.PRIMARY,
136
153
  responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregate is linked; the updated aggregate is returned.' }],
@@ -138,6 +155,7 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
138
155
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' },
139
156
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such aggregate, or the invoice is not one of the aggregate\'s organization.' },
140
157
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The aggregate is already linked to another invoice; a link is set once.' },
158
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The link\'s commit reply was lost and the aggregate could not be read back: it may be linked (code `RESOURCE_OPERATION_OUTCOME_UNKNOWN`). Read the aggregate before linking again.' },
141
159
  ],
142
160
  idempotent: true,
143
161
  examples: [{
@@ -154,5 +172,27 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
154
172
  'Linked to at most one invoice, once. Only a linked aggregate outlives its organization.',
155
173
  'Currencies are never converted: each currency has its own aggregate.',
156
174
  ],
157
- }), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION });
175
+ }), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION }), () => ({
176
+ label: {
177
+ purpose: 'Names an aggregate by the organization it bills, by the name copied at the close (`organizationName`, else its id on an older row), and the month it covers, so an operator scanning a month reads whose cost each row is. Built from summary fields, because the list carries only those.',
178
+ },
179
+ layout: {
180
+ purpose: 'Read-only facts: the organization and the month, what it cost and in which currency, how many calls were priced and how many were not, the tokens behind them, when the period closed, and which invoice bills it. The cache and reasoning token rows hide when empty.',
181
+ displayPurpose: 'Settings rows on the detail; a list card shows the cost, the currency and the invoice under its month heading, the invoice absent until one bills it. The batch writes every row, so there is no edit layout.',
182
+ },
183
+ views: {
184
+ [Op.LIST]: {
185
+ purpose: 'Every organization\'s model cost, grouped by the month it covers. Reached from Settings → Administration → Model costs.',
186
+ whenToUse: 'Reconciling model spend against invoices, or finding the months nobody has billed yet.',
187
+ },
188
+ [Op.READ]: {
189
+ purpose: 'One organization\'s month in one currency, reached by drilling into a list row rather than by its own route.',
190
+ whenToUse: 'Reading every total of a month, and which invoice bills it.',
191
+ },
192
+ [ModelCostPeriodAggregates_Operations.LINK_INVOICE]: {
193
+ purpose: 'A row action recording that an invoice bills this cost, for an operator doing by hand what the billing flow normally does.',
194
+ whenToUse: 'An invoice for the month was issued outside the application\'s billing flow.',
195
+ },
196
+ },
197
+ }));
158
198
  //# sourceMappingURL=model-cost-period-aggregates.resource.specification.js.map