@wildo-ai/saas-specifications 1.1.10 → 1.1.12

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 (1329) 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-validation.d.ts +5 -0
  7. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -1
  8. package/dist/esm/_core/application-maturity/application-maturity-validation.js +13 -0
  9. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
  10. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -1
  11. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +5 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -1
  13. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +34 -40
  14. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -1
  15. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +26 -2
  16. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  17. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +20 -0
  18. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  19. package/dist/esm/_core/application-specification-family-identity.schemas.js +20 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  21. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +1 -1
  22. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
  23. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +4 -4
  24. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -4
  25. package/dist/esm/_core/brand/brand-audience.schemas.d.ts +2 -2
  26. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +2 -2
  27. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +8 -4
  28. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-generation.schemas.js +11 -1
  30. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  31. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +4 -4
  32. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +25 -22
  33. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +6 -4
  35. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  36. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +25 -1
  37. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  38. package/dist/esm/_core/brand/brand-name-screening-validation.js +77 -1
  39. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  40. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +34 -32
  41. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  42. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +67 -35
  43. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/brand/brand-name-screening.schemas.js +65 -8
  45. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  46. package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
  47. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +14 -14
  48. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +27 -9
  49. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  51. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  52. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts +52 -0
  53. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts.map +1 -0
  54. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js +325 -0
  55. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js.map +1 -0
  56. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +225 -108
  57. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +39 -2
  59. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  60. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +112 -8
  61. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  62. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +249 -12
  63. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  64. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +506 -344
  65. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +425 -13
  67. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  68. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  69. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +11 -4
  70. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  71. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +2 -2
  72. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +5 -21
  73. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  74. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +16 -6
  75. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  76. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +12 -5
  77. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  78. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +32 -9
  79. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  80. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +30 -5
  81. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  82. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js +28 -2
  83. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js.map +1 -1
  84. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +6 -5
  85. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  86. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +19 -9
  87. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  88. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +12 -33
  89. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  90. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  91. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  92. package/dist/esm/_core/chart-view-specification.schemas.d.ts +19 -3
  93. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  94. package/dist/esm/_core/chart-view-specification.schemas.js +7 -3
  95. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  96. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  97. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  98. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  99. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  100. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +0 -298
  101. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +1 -6
  103. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -1
  104. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +3 -619
  105. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  106. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +14 -2
  107. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  108. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +1 -1
  109. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +60 -7
  110. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +137 -12
  112. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  113. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts +0 -32
  114. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  115. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +2 -2
  116. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  117. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +50 -12
  118. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +166 -13
  120. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  121. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +35 -148
  122. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  124. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  125. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  126. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  127. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  128. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  129. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  130. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  132. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  133. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +2 -24
  134. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  135. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +18 -2
  136. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  137. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +4 -0
  138. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -1
  139. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +6 -0
  140. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -1
  141. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  142. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  143. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  144. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  145. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts +26 -0
  146. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts.map +1 -0
  147. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js +44 -0
  148. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js.map +1 -0
  149. package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts +34 -0
  150. package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts.map +1 -0
  151. package/dist/esm/_core/compliance-posture/compliance-posture-validation.js +47 -0
  152. package/dist/esm/_core/compliance-posture/compliance-posture-validation.js.map +1 -0
  153. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts +4 -0
  154. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts.map +1 -0
  155. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js +19 -0
  156. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js.map +1 -0
  157. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts +88 -0
  158. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts.map +1 -0
  159. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js +78 -0
  160. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js.map +1 -0
  161. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/composite-view-specification.schemas.js +2 -2
  163. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/data-seed-specification.schemas.d.ts +2 -0
  165. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  166. package/dist/esm/_core/data-seed-specification.schemas.js +10 -1
  167. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  168. package/dist/esm/_core/definition-specification-validators.d.ts +2 -3
  169. package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
  170. package/dist/esm/_core/definition-specification-validators.js +2 -3
  171. package/dist/esm/_core/definition-specification-validators.js.map +1 -1
  172. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +44 -19
  173. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  174. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +75 -2
  175. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  176. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +93 -1
  177. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  178. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +369 -2
  179. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  180. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +412 -5
  181. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  182. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +429 -0
  183. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  184. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +18 -1
  185. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  186. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +88 -2
  187. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  188. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  189. package/dist/esm/_core/execution-view-specification.schemas.js +2 -2
  190. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  191. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +20 -9
  192. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  193. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +3 -0
  194. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  195. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +25 -1
  196. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  197. package/dist/esm/_core/experience-plan/experience-plan-validation.js +57 -0
  198. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  199. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  200. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +23 -4
  201. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  202. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +96 -131
  203. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  204. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +144 -1
  205. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  206. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +2 -2
  207. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +15 -8
  208. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  209. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  210. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  211. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  212. package/dist/esm/_core/family-aspects.registry.js +4 -0
  213. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  214. package/dist/esm/_core/family-aspects.schemas.d.ts +12 -1
  215. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  216. package/dist/esm/_core/family-aspects.schemas.js +11 -0
  217. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  218. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +37 -53
  219. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
  220. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
  221. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +0 -14
  222. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  223. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  224. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  225. package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
  226. package/dist/esm/_core/feature-specification.schemas.js +5 -4
  227. package/dist/esm/_core/feature-specification.schemas.js.map +1 -1
  228. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  229. package/dist/esm/_core/flows-actors-view-specification.schemas.js +2 -2
  230. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  231. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  232. package/dist/esm/_core/full-custom-view-specification.schemas.js +2 -2
  233. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  234. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +1 -3
  235. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  236. package/dist/esm/_core/guidance-flow-specification.schemas.js +10 -12
  237. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  238. package/dist/esm/_core/index.d.ts +12 -0
  239. package/dist/esm/_core/index.d.ts.map +1 -1
  240. package/dist/esm/_core/index.js +12 -0
  241. package/dist/esm/_core/index.js.map +1 -1
  242. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +8 -4
  243. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  244. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  245. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  246. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  247. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +19 -51
  248. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  249. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +29 -10
  250. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  251. package/dist/esm/_core/market/feature-benefit.schemas.d.ts +5 -5
  252. package/dist/esm/_core/market/market-alternative.schemas.d.ts +3 -3
  253. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +2 -2
  254. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +4 -4
  255. package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
  256. package/dist/esm/_core/market/market-channel.schemas.d.ts +5 -5
  257. package/dist/esm/_core/market/market-gain.schemas.d.ts +3 -3
  258. package/dist/esm/_core/market/market-icp.schemas.d.ts +11 -11
  259. package/dist/esm/_core/market/market-job.schemas.d.ts +3 -3
  260. package/dist/esm/_core/market/market-message-template.schemas.d.ts +4 -4
  261. package/dist/esm/_core/market/market-objection.schemas.d.ts +3 -3
  262. package/dist/esm/_core/market/market-pain.schemas.d.ts +3 -3
  263. package/dist/esm/_core/market/market-persona.schemas.d.ts +4 -4
  264. package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
  265. package/dist/esm/_core/market/market-proof.schemas.d.ts +3 -3
  266. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  267. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  268. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  269. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  270. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +80 -106
  271. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  272. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  273. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  274. package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
  275. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +3 -3
  276. package/dist/esm/_core/market/market-trigger.schemas.d.ts +3 -3
  277. package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
  278. package/dist/esm/_core/milestone-specification.schemas.js +5 -4
  279. package/dist/esm/_core/milestone-specification.schemas.js.map +1 -1
  280. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +0 -2
  281. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  282. package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -8
  283. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  284. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +32 -27
  285. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  286. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +3 -3
  287. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  288. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -2
  289. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  290. package/dist/esm/_core/placement-plan/placement-plan-validation.js +42 -9
  291. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  292. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  293. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +16 -4
  294. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  295. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +84 -90
  296. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  297. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +90 -13
  298. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  299. package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
  300. package/dist/esm/_core/product-specification.schemas.js +5 -4
  301. package/dist/esm/_core/product-specification.schemas.js.map +1 -1
  302. package/dist/esm/_core/required-features-specification.schemas.d.ts +1 -5
  303. package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
  304. package/dist/esm/_core/required-features-specification.schemas.js +1 -5
  305. package/dist/esm/_core/required-features-specification.schemas.js.map +1 -1
  306. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
  307. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +6 -6
  308. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +4 -4
  309. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  310. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +2 -2
  311. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +0 -4
  312. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  313. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +6 -15
  314. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  315. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +2 -3
  316. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  317. package/dist/esm/_core/resource-specification.schemas.d.ts +76 -18
  318. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  319. package/dist/esm/_core/resource-specification.schemas.js +168 -60
  320. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  321. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +2 -2
  322. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +3 -18
  323. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  324. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  325. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  326. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  327. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  328. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  329. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  330. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +3 -3
  331. package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
  332. package/dist/esm/_core/role-specification.schemas.js +5 -4
  333. package/dist/esm/_core/role-specification.schemas.js.map +1 -1
  334. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  335. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  336. package/dist/esm/_core/service-method/service-method-derivation.js +415 -0
  337. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  338. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +87 -0
  339. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  340. package/dist/esm/_core/service-method/service-method-generation.schemas.js +30 -0
  341. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  342. package/dist/esm/_core/service-method/service-method-validation.d.ts +45 -0
  343. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  344. package/dist/esm/_core/service-method/service-method-validation.js +102 -0
  345. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  346. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  347. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  348. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  349. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  350. package/dist/esm/_core/service-method/service-method.schemas.d.ts +356 -0
  351. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  352. package/dist/esm/_core/service-method/service-method.schemas.js +416 -0
  353. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  354. package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
  355. package/dist/esm/_core/sidebar-section-specification.schemas.js +2 -2
  356. package/dist/esm/_core/sidebar-section-specification.schemas.js.map +1 -1
  357. package/dist/esm/_core/specification-definition-faults.d.ts +160 -0
  358. package/dist/esm/_core/specification-definition-faults.d.ts.map +1 -0
  359. package/dist/esm/_core/specification-definition-faults.js +283 -0
  360. package/dist/esm/_core/specification-definition-faults.js.map +1 -0
  361. package/dist/esm/_core/specification-module-faults.d.ts +271 -0
  362. package/dist/esm/_core/specification-module-faults.d.ts.map +1 -0
  363. package/dist/esm/_core/specification-module-faults.js +655 -0
  364. package/dist/esm/_core/specification-module-faults.js.map +1 -0
  365. package/dist/esm/_core/translation-glossary.schemas.d.ts +79 -0
  366. package/dist/esm/_core/translation-glossary.schemas.d.ts.map +1 -0
  367. package/dist/esm/_core/translation-glossary.schemas.js +98 -0
  368. package/dist/esm/_core/translation-glossary.schemas.js.map +1 -0
  369. package/dist/esm/_core/utils/extract-field-specs.d.ts +25 -0
  370. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  371. package/dist/esm/_core/utils/extract-field-specs.js +6 -1
  372. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  373. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +2 -2
  374. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +6 -4
  375. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
  376. package/dist/esm/_core/vision/vision-constraint.schemas.js +4 -2
  377. package/dist/esm/_core/vision/vision-constraint.schemas.js.map +1 -1
  378. package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
  379. package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
  380. package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
  381. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts +15 -9
  382. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  383. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +30 -20
  384. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  385. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
  386. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
  387. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +31 -7
  388. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  389. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  390. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  391. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +24 -4
  392. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  393. package/dist/esm/_core/website-plan/website-plan-validation.js +84 -7
  394. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  395. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  396. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +2 -1
  397. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  398. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +424 -120
  399. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  400. package/dist/esm/_core/website-plan/website-plan.schemas.js +687 -32
  401. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  402. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +90 -0
  403. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  404. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +104 -0
  405. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  406. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +110 -127
  407. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  408. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +122 -16
  409. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  410. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts +22 -0
  411. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts.map +1 -0
  412. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js +23 -0
  413. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js.map +1 -0
  414. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts +50 -0
  415. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts.map +1 -0
  416. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js +33 -0
  417. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js.map +1 -0
  418. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +57 -41
  419. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  420. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  421. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  422. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -11
  423. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  424. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +206 -10
  425. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  426. package/dist/esm/application-creation/application-line.application-creation.schemas.js +226 -9
  427. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  428. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  429. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  430. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  431. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  432. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +42 -41
  433. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  434. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +79 -23
  435. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  436. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -2
  437. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  438. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  439. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  440. package/dist/esm/application-creation.exports.d.ts +13 -0
  441. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  442. package/dist/esm/application-creation.exports.js +15 -0
  443. package/dist/esm/application-creation.exports.js.map +1 -1
  444. package/dist/esm/assurance/application-document-publication.schemas.d.ts +0 -12
  445. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  446. package/dist/esm/assurance/application-document-release-set.schemas.d.ts +1 -9
  447. package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -1
  448. package/dist/esm/assurance/application-risk-register.schemas.d.ts +10 -73
  449. package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -1
  450. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +34 -0
  451. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  452. package/dist/esm/assurance/application-risk-signals.derivations.js +45 -1
  453. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  454. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  455. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  456. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  457. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  458. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +632 -19
  459. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  460. package/dist/esm/assurance/assurance-authority-basis.definitions.js +3000 -1063
  461. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  462. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +27 -22
  463. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  464. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  465. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  466. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  467. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  468. package/dist/esm/assurance/assurance-document-system.definitions.js +168 -29
  469. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  470. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +34 -112
  471. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  472. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  473. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  474. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +121 -114
  475. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  476. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +142 -7
  477. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  478. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  479. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1746 -116
  480. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  481. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +0 -11
  482. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  483. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  484. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  485. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  486. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  487. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  488. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  489. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +354 -5
  490. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  491. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  492. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  493. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  494. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  495. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +422 -0
  496. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  497. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +886 -0
  498. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  499. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +61 -182
  500. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  501. package/dist/esm/assurance/assurance-program-generation.schemas.js +180 -22
  502. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  503. package/dist/esm/assurance/assurance-program-obligation-standing.d.ts +107 -0
  504. package/dist/esm/assurance/assurance-program-obligation-standing.d.ts.map +1 -0
  505. package/dist/esm/assurance/assurance-program-obligation-standing.js +153 -0
  506. package/dist/esm/assurance/assurance-program-obligation-standing.js.map +1 -0
  507. package/dist/esm/assurance/assurance-program.schemas.d.ts +373 -1165
  508. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  509. package/dist/esm/assurance/assurance-program.schemas.js +267 -18
  510. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  511. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  512. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  513. package/dist/esm/assurance/assurance-source-registry.definitions.js +277 -23
  514. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  515. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  516. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  517. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +246 -0
  518. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  519. package/dist/esm/assurance/assurance-sources.schemas.d.ts +84 -24
  520. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  521. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  522. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  523. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  524. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +372 -17
  525. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  526. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  527. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  528. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  529. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  530. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  531. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  532. package/dist/esm/assurance/governed-document-release.js +10 -4
  533. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  534. package/dist/esm/assurance.exports.d.ts +5 -0
  535. package/dist/esm/assurance.exports.d.ts.map +1 -1
  536. package/dist/esm/assurance.exports.js +5 -0
  537. package/dist/esm/assurance.exports.js.map +1 -1
  538. package/dist/esm/companion-exports.d.ts +39 -3
  539. package/dist/esm/companion-exports.d.ts.map +1 -1
  540. package/dist/esm/companion-exports.js +61 -0
  541. package/dist/esm/companion-exports.js.map +1 -1
  542. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +16 -16
  543. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  544. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +37 -11
  545. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  546. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +3 -3
  547. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  548. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +10 -13
  549. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  550. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +19 -19
  551. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  552. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +64 -12
  553. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  554. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts +4 -4
  555. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  556. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  557. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +7 -6
  558. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  559. package/dist/esm/engine/applications/resources/applications.resource.specification.js +7 -7
  560. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  561. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +20 -12
  562. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  563. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +51 -14
  564. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  565. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts +26 -0
  566. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts.map +1 -0
  567. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js +112 -0
  568. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js.map +1 -0
  569. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +4 -4
  570. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/auth/resources/index.d.ts +0 -2
  572. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  573. package/dist/esm/engine/auth/resources/index.js +0 -2
  574. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  575. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +13 -12
  576. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  577. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  578. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  579. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +16 -16
  580. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +44 -17
  582. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +20 -20
  584. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +48 -9
  586. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  587. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +25 -21
  588. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +44 -12
  590. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  591. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +20 -14
  592. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +73 -20
  594. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  595. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +22 -22
  596. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +15 -14
  598. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  599. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +9 -8
  600. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +20 -16
  602. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  603. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +40 -40
  604. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +135 -16
  606. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  607. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +108 -108
  608. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +80 -20
  610. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts +17 -0
  612. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts.map +1 -0
  613. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js +85 -0
  614. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js.map +1 -0
  615. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +21 -19
  616. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  617. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +14 -10
  618. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  619. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +14 -12
  620. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -2
  622. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  623. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +20 -20
  624. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +1 -1
  625. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  626. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +22 -20
  627. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  628. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +9 -8
  629. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  630. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +8 -8
  631. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  632. package/dist/esm/engine/billing/resources/prices.resource.specification.js +11 -10
  633. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  634. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +16 -16
  635. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  636. package/dist/esm/engine/billing/resources/products.resource.specification.js +11 -10
  637. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  638. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts +11 -11
  639. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +31 -29
  641. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  642. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +22 -21
  643. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  644. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -6
  645. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  646. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +48 -48
  647. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  648. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +112 -26
  649. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  650. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +30 -26
  651. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  652. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +5 -2
  653. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  654. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +37 -25
  655. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +50 -12
  657. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  658. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +78 -0
  659. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  660. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +213 -0
  661. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  662. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +33 -23
  663. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  664. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +61 -21
  665. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  666. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts +39 -0
  667. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts.map +1 -0
  668. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js +533 -0
  669. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map +1 -0
  670. package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
  671. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  672. package/dist/esm/engine/compliance/resources/index.js +2 -0
  673. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  674. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +21 -16
  675. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  676. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +17 -6
  677. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  678. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  679. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  680. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  681. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  682. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +13 -11
  683. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -1
  684. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +9 -1
  685. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  686. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts +27 -0
  687. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -0
  688. package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-dlq.resource.specification.js +24 -19
  689. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map +1 -0
  690. package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
  691. package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.js +1 -1
  692. package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
  693. package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.d.ts +18 -18
  694. package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.d.ts.map +1 -0
  695. package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.js +2 -2
  696. package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.js.map +1 -0
  697. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts +45 -0
  698. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts.map +1 -0
  699. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js +224 -0
  700. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js.map +1 -0
  701. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +1 -1
  702. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -1
  703. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +3 -2
  704. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -1
  705. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  706. package/dist/esm/engine/engine-resource-specifications.registry.js +82 -20
  707. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  708. package/dist/esm/engine/engine-resource-sub-domain.d.ts +7 -3
  709. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
  710. package/dist/esm/engine/engine-resource-sub-domain.js +8 -4
  711. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
  712. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  713. package/dist/esm/engine/errors/error-messages.specification.js +359 -5
  714. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  715. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  716. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  717. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  718. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  719. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  720. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  721. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  722. package/dist/esm/engine/features/index.d.ts +4 -2
  723. package/dist/esm/engine/features/index.d.ts.map +1 -1
  724. package/dist/esm/engine/features/index.js +6 -4
  725. package/dist/esm/engine/features/index.js.map +1 -1
  726. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js +1 -1
  727. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js.map +1 -1
  728. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +7 -7
  729. package/dist/esm/engine/features/resources/application-features.resource.specification.js +8 -8
  730. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  731. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +7 -7
  732. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +37 -18
  734. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +7 -7
  736. package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -4
  737. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +27 -24
  739. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  740. package/dist/esm/engine/files/resources/files.resource.specification.js +30 -8
  741. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  742. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +30 -30
  743. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  744. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +32 -4
  745. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  746. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +18 -18
  747. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +7 -7
  748. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  749. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  750. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  751. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  752. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  753. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  754. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  755. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  756. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  757. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  758. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  759. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  760. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  761. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  762. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  764. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  767. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  768. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  769. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  770. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +97 -0
  771. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  772. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  773. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  774. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  775. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  776. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +229 -178
  777. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  778. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +126 -22
  779. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +60 -54
  781. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +23 -8
  783. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  785. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  786. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  787. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  788. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  789. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  790. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  791. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  792. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  793. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  794. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  795. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  796. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  797. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  798. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  799. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  800. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +240 -0
  801. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  802. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  803. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  804. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  805. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  806. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  807. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  808. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  809. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  810. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  811. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  812. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  813. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  814. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  815. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  816. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  817. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  818. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +9 -3
  819. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  820. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  821. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  822. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  823. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  824. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  825. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  826. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  827. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  828. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  829. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  830. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  831. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  832. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  833. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  834. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  835. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  836. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  837. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  838. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  839. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  840. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  841. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  842. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  843. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  844. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  845. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  846. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +7 -5
  847. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  848. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +1 -1
  849. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -1
  850. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  851. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  852. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  853. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  855. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  856. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  857. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  858. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  859. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  860. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  861. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  862. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +3 -2
  864. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -1
  865. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js +1 -1
  866. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js.map +1 -1
  867. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js +1 -1
  868. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js.map +1 -1
  869. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.js +1 -1
  870. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.js.map +1 -1
  871. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  872. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  873. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  874. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +3 -3
  875. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
  876. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  878. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  879. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  880. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  881. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  882. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  883. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  884. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  885. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  886. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  887. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  888. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  889. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  890. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  891. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  892. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  893. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  894. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  895. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  896. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  897. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  898. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  899. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  900. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  901. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  902. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  903. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  904. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  905. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  906. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  907. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  908. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  909. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  910. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
  911. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.js +1 -0
  912. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.js.map +1 -1
  913. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
  914. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.js +3 -0
  915. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.js.map +1 -1
  916. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  917. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  918. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
  919. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +4 -1
  920. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  921. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
  922. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +4 -1
  923. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  924. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
  925. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +4 -1
  926. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  927. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
  928. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +4 -1
  929. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  930. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
  931. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.js +3 -0
  932. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.js.map +1 -1
  933. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
  934. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +4 -1
  935. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  936. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
  937. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.js +3 -0
  938. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.js.map +1 -1
  939. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
  940. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.js +1 -0
  941. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.js.map +1 -1
  942. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  943. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  944. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
  945. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.js +1 -0
  946. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.js.map +1 -1
  947. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
  948. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.js +1 -0
  949. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.js.map +1 -1
  950. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  951. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  952. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  953. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  954. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
  955. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.js +3 -0
  956. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.js.map +1 -1
  957. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
  958. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.js +3 -0
  959. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.js.map +1 -1
  960. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
  961. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.js +3 -0
  962. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.js.map +1 -1
  963. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
  964. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.js +3 -0
  965. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.js.map +1 -1
  966. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  967. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  968. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js +1 -1
  969. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js.map +1 -1
  970. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  971. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  972. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  973. package/dist/esm/engine/frontend-components/index.d.ts +6 -0
  974. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  975. package/dist/esm/engine/frontend-components/index.js +26 -0
  976. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  977. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  978. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  979. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  980. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  981. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  982. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  983. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  984. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
  985. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +12 -0
  986. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  987. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js +1 -1
  988. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js.map +1 -1
  989. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  990. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  991. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
  992. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +7 -3
  993. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  994. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js +1 -1
  995. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js.map +1 -1
  996. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
  997. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.js +1 -0
  998. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.js.map +1 -1
  999. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  1000. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  1001. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  1002. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  1003. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  1004. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +5 -3
  1005. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  1006. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +16 -14
  1007. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  1008. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  1009. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  1010. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +18 -16
  1011. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  1012. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +20 -18
  1013. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  1014. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  1015. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  1016. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  1017. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  1018. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  1019. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  1020. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  1021. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  1022. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  1023. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  1024. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  1025. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  1026. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  1027. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  1028. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  1029. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  1030. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  1031. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  1032. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  1033. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  1034. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  1035. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  1036. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  1037. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  1038. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  1039. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  1040. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  1041. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  1042. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  1043. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  1044. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  1045. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts +10 -0
  1046. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts.map +1 -0
  1047. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js +155 -0
  1048. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js.map +1 -0
  1049. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts +9 -0
  1050. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts.map +1 -0
  1051. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js +155 -0
  1052. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js.map +1 -0
  1053. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +37 -19
  1054. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  1055. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +14 -14
  1056. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  1057. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  1058. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  1059. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  1060. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  1061. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  1062. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +15 -15
  1063. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  1064. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +45 -16
  1065. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  1066. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  1067. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  1068. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  1069. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  1070. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  1071. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  1072. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +183 -0
  1073. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  1074. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +52 -50
  1075. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -1
  1076. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +18 -10
  1077. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  1078. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +86 -53
  1079. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  1080. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +78 -17
  1081. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  1082. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +85 -83
  1083. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  1084. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +59 -55
  1085. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  1086. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +30 -26
  1087. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  1088. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +38 -20
  1089. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  1090. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +12 -14
  1091. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  1092. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +0 -2
  1093. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  1094. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts +56 -0
  1095. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts.map +1 -0
  1096. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js +277 -0
  1097. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js.map +1 -0
  1098. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +20 -16
  1099. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  1100. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +13 -8
  1101. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  1102. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  1103. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  1104. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  1105. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  1106. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  1107. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  1108. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  1109. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  1110. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  1111. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  1112. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  1113. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  1114. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  1115. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  1116. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  1117. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  1118. package/dist/esm/engine/organizations/resources/index.js +1 -2
  1119. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  1120. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts +33 -0
  1121. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts.map +1 -0
  1122. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js +195 -0
  1123. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js.map +1 -0
  1124. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +19 -18
  1125. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  1126. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +129 -64
  1127. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  1128. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts +7 -7
  1129. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  1130. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -1
  1131. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  1132. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts +13 -13
  1133. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +12 -11
  1134. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  1135. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  1136. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  1137. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts +128 -0
  1138. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  1139. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +653 -0
  1140. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  1141. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +9 -9
  1142. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  1143. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +15 -17
  1144. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  1145. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +14 -14
  1146. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  1147. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +5 -5
  1148. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  1149. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +18 -13
  1150. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  1151. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +111 -43
  1152. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  1153. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  1154. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  1155. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  1156. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  1157. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  1158. package/dist/esm/engine/providers/anthropic.provider.specification.js +18 -3
  1159. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  1160. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  1161. package/dist/esm/engine/providers/apple.provider.specification.js +6 -2
  1162. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  1163. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  1164. package/dist/esm/engine/providers/github.provider.specification.js +18 -7
  1165. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  1166. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  1167. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  1168. package/dist/esm/engine/providers/google-drive.provider.specification.js +48 -0
  1169. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  1170. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -1
  1171. package/dist/esm/engine/providers/google-places.provider.specification.js +5 -2
  1172. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -1
  1173. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  1174. package/dist/esm/engine/providers/google.provider.specification.js +8 -2
  1175. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  1176. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  1177. package/dist/esm/engine/providers/grok.provider.specification.js +14 -3
  1178. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  1179. package/dist/esm/engine/providers/index.d.ts +2 -0
  1180. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  1181. package/dist/esm/engine/providers/index.js +5 -1
  1182. package/dist/esm/engine/providers/index.js.map +1 -1
  1183. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  1184. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  1185. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +55 -0
  1186. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  1187. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  1188. package/dist/esm/engine/providers/microsoft.provider.specification.js +26 -3
  1189. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  1190. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  1191. package/dist/esm/engine/providers/mistral.provider.specification.js +20 -5
  1192. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  1193. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  1194. package/dist/esm/engine/providers/openai.provider.specification.js +30 -3
  1195. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  1196. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  1197. package/dist/esm/engine/providers/perplexity.provider.specification.js +13 -2
  1198. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  1199. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -1
  1200. package/dist/esm/engine/providers/recaptcha.provider.specification.js +8 -3
  1201. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -1
  1202. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  1203. package/dist/esm/engine/providers/resend.provider.specification.js +27 -10
  1204. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  1205. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  1206. package/dist/esm/engine/providers/stripe.provider.specification.js +19 -3
  1207. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  1208. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  1209. package/dist/esm/engine/providers/twilio.provider.specification.js +21 -6
  1210. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  1211. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  1212. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  1213. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts +2 -0
  1214. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts.map +1 -0
  1215. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js +21 -0
  1216. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js.map +1 -0
  1217. package/dist/esm/engine/roles/index.d.ts +8 -7
  1218. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  1219. package/dist/esm/engine/roles/index.js +13 -10
  1220. package/dist/esm/engine/roles/index.js.map +1 -1
  1221. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  1222. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  1223. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  1224. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  1225. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  1226. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  1227. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  1228. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  1229. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts +2 -0
  1230. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts.map +1 -0
  1231. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js +21 -0
  1232. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js.map +1 -0
  1233. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +13 -12
  1234. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  1235. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  1236. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  1237. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +12 -12
  1238. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  1239. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +4 -3
  1240. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  1241. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -3
  1242. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  1243. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +15 -15
  1244. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  1245. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  1246. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +17 -17
  1247. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  1248. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  1249. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  1250. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -0
  1251. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  1252. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +4 -0
  1253. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  1254. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +25 -20
  1255. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  1256. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +8 -8
  1257. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  1258. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +8 -8
  1259. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +3 -3
  1260. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  1261. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +25 -20
  1262. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  1263. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +7 -2
  1264. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  1265. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +8 -8
  1266. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +2 -2
  1267. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  1268. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +11 -9
  1269. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  1270. package/dist/esm/engine/users/resources/user-self.resource.specification.js +46 -7
  1271. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  1272. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts +3 -0
  1273. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
  1274. package/dist/esm/engine/users/resources/users-api-reference.examples.js +3 -0
  1275. package/dist/esm/engine/users/resources/users-api-reference.examples.js.map +1 -1
  1276. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +12 -10
  1277. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  1278. package/dist/esm/engine/users/resources/users.resource.specification.js +26 -15
  1279. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  1280. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +63 -29
  1281. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -1
  1282. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +75 -11
  1283. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -1
  1284. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +2 -2
  1285. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +2 -30
  1286. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -1
  1287. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +2 -2
  1288. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -1
  1289. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  1290. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +51 -24
  1291. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  1292. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts +0 -31
  1293. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
  1294. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts +0 -11
  1295. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
  1296. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts +0 -20
  1297. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
  1298. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts +0 -3
  1299. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
  1300. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts +0 -24
  1301. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
  1302. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +0 -12
  1303. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  1304. package/dist/tsconfig.build.tsbuildinfo +1 -1
  1305. package/package.json +11 -11
  1306. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts +0 -35
  1307. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +0 -1
  1308. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +0 -1
  1309. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +0 -1
  1310. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +0 -1
  1311. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +0 -1
  1312. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +0 -1
  1313. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  1314. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  1315. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  1316. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  1317. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  1318. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  1319. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  1320. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  1321. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +0 -106
  1322. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  1323. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  1324. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  1325. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  1326. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  1327. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  1328. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
  1329. /package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"usage-records.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/billing/resources/usage-records.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,6BA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presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n UsageRecordSchema,\n UsageRecordFlushState,\n UsageRecordUnreportableReason,\n UsageSourceType,\n usageRecordsPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport {\n BILLING_API_REFERENCE_PAGE_REQUEST,\n billingApiReferencePage,\n createBillingApiReferenceScopeExample,\n type BillingApiReferenceExampleScope,\n} from './billing-api-reference-examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype UsageResourceType = CoreResourceType.ORGANIZATION_USAGE_RECORDS | CoreResourceType.USER_USAGE_RECORDS;\ntype UsageResourceTypeMember = 'ORGANIZATION_USAGE_RECORDS' | 'USER_USAGE_RECORDS';\n\nconst usageResourcePrimaryScopeByResourceType: Record<UsageResourceType, BillingApiReferenceExampleScope> = {\n [CoreResourceType.ORGANIZATION_USAGE_RECORDS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.USER_USAGE_RECORDS]: ResourcePrimaryScope.USER_SELF,\n};\n\ntype Cfg = ReturnType<(typeof usageRecordsPolymorphicFactories)[CoreResourceType.ORGANIZATION_USAGE_RECORDS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof UsageRecordSchema;\ntype UsageFrontend = ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nfunction resolveUsageUI(source: Partial<Record<string, unknown>>, resourceType: UsageResourceType, sourceName: string): UsageFrontend {\n const uiBehavior = source[resourceType] as UsageFrontend | undefined;\n if (!uiBehavior) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return uiBehavior;\n}\n\nfunction buildUsageRecordBase(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const exampleScope = createBillingApiReferenceScopeExample(\n usageResourcePrimaryScopeByResourceType[resourceType],\n );\n const usageRecordExample = {\n _id: 'usage_record_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1250,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.REPORTED,\n reportedAt: '2026-06-15T12:05:00.000Z',\n metadata: { region: 'eu-west' },\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n };\n const usageRecordSummaryExample = {\n _id: usageRecordExample._id,\n ...exampleScope.billingAccountIdentity,\n productKey: usageRecordExample.productKey,\n quantity: usageRecordExample.quantity,\n timestamp: usageRecordExample.timestamp,\n };\n\n return resourceSpecification<undefined, Core, Main>(\n usageRecordsPolymorphicFactories[resourceType],\n UsageRecordSchema,\n ({ schemaShape }) => ({\n purpose:\n 'Metered-usage record for a product key: exposes the measured quantity, event timestamp, reporting state, and the API or workflow source that produced it.',\n businessRole: 'Feeds METERED pricing and entitlements; aggregated in analytics and in `BillingState` responses.',\n lifecycleRole:\n 'Created by application metering and exposed as a read-only record. `flushState` moves from `pending` to `reported` once the billing provider acknowledges the measured usage, or to `unreportable` when the flush determines it never can — a billing account that no longer exists, for instance, since these rows are retained after their account is gone.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'usageRecordsPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Usage document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n billingAccountId: schemaShape.billingAccountId.stringSpec({ meaning: 'Polymorphic parent billing account FK.', importance: FieldSemanticImportance.PRIMARY }),\n productKey: schemaShape.productKey.stringSpec({ meaning: 'Catalog product key the usage record charges against (matches product definition).', importance: FieldSemanticImportance.PRIMARY }),\n quantity: schemaShape.quantity.numberSpec({ meaning: 'Non-negative usage amount for the metering window captured in this record.' }),\n timestamp: schemaShape.timestamp.dateSpec({ meaning: 'When the usage event occurred in product time.', temporalRole: 'occurred' }),\n source: schemaShape.source.objectSpec({ meaning: 'Optional origin metadata (type, resourceType, operation id) for support and audits.' }),\n flushState: schemaShape.flushState.enumSpec({\n meaning: 'Where the row stands with the provider flush. The flush selects exactly `pending`, so this field alone decides whether the row is still work.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordFlushState', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordFlushState.PENDING]: { meaning: 'Awaiting a flush. Every newly recorded row starts here.' },\n [UsageRecordFlushState.REPORTED]: { meaning: 'The provider acknowledged the quantity; `reportedAt` says when. Terminal, and money moved.' },\n [UsageRecordFlushState.UNREPORTABLE]: { meaning: 'The flush determined the row can never be reported; `unreportableReason` says why. Terminal, and no money moved.' },\n },\n }),\n reportedAt: schemaShape.reportedAt.dateSpec({ meaning: 'When provider acknowledgement happened.', temporalRole: 'modified' }),\n unreportableReason: schemaShape.unreportableReason.enumSpec({\n meaning: 'Why the row can never be reported. Present only when the flush state is unreportable.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordUnreportableReason', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordUnreportableReason.BILLING_ACCOUNT_DELETED]: { meaning: 'The billing account row no longer exists, so there is no provider customer to report the usage to. Reachable by design: these rows are retained after their account is gone.' },\n },\n }),\n unreportableAt: schemaShape.unreportableAt.dateSpec({ meaning: 'When the flush determined the row unreportable.', temporalRole: 'modified' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Extra string tags for product-specific accounting.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record insert time.', temporalRole: 'creation' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single usage row in admin or support tools.',\n outcome: 'Full quantity, timestamp, and source block.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The usage record was found and its quantity, timestamp, and source block are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to read metered-usage rows (reads are org-owner/org-admin-scoped API operations; writes stay system-scoped internal service-pipeline ops, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect one reported API-usage record',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a usage record with available relationship context',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact usage summary',\n response: usageRecordSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Paginated usage history for a billing account (metering explorer).',\n outcome: 'Chronological rows for charts and export.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) chronological page of usage records for the billing account.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to enumerate metered-usage history.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse metered usage chronologically',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse usage records with relationship context',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact metered-usage summaries',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordSummaryExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Record an occurrence of metered consumption from application code or workers.',\n outcome: 'New immutable-ish line with not-editable fields enforced in schema.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A metered-usage line was appended for the product key and is returned with its server-assigned id and creation time.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The usage payload is malformed — negative `quantity`, unknown `productKey`, or a non-editable field supplied by the caller.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the trusted system/metering identity authorised to append usage (the op is an internal service-pipeline op, not exposed over HTTP for arbitrary client writes).' },\n ],\n // Append-only event write: each call records a distinct metered occurrence, so\n // repeating it inserts another row. The runtime does not key these on an\n // idempotency token, so two identical requests double-count by design.\n idempotent: false,\n rateLimitNote: 'High-volume ingestion path — metering hooks and workers should batch and back off; bursty per-event writes may be throttled by the platform.',\n examples: [\n {\n title: 'Record one metered consumption event',\n request: {\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n },\n response: {\n _id: 'usage_record_unreported_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.PENDING,\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Rare correction or provider sync patch paths when policy allows; many fields are not editable in zod for safety.',\n outcome: 'Patched metadata or flush state in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The editable subset (metadata / report flags) was patched and the updated usage record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A non-editable usage field (`quantity`, `productKey`, `timestamp`) was supplied, or the patch otherwise fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner / system role required to correct or re-sync usage rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: ['High-volume append-only usage — UI should not imply arbitrary user edits to historical quantities without a dedicated op.'],\n }),\n { resourcePrimaryScope: usageResourcePrimaryScopeByResourceType[resourceType] },\n );\n}\n\nfunction buildUsageRecordSpec(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const base = buildUsageRecordBase(resourceType, memberName);\n const main = resolveUsageUI(billingMainPresets as Partial<Record<string, unknown>>, resourceType, 'billingMainPresets');\n const admin = resolveUsageUI(billingAdminPresets as Partial<Record<string, unknown>>, resourceType, 'billingAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n label: { purpose: 'Preset stringifies `productKey · quantity` for dense tables.' },\n views: {\n [Op.LIST]: { purpose: 'List op in merged `views` as non-addressable; keep spec aligned with merged preset op map.', whenToUse: 'Embedded list under billing account.' },\n [Op.READ]: { purpose: 'Read op in merged `views` as non-addressable.', whenToUse: 'Row detail in inspector when wired.' },\n },\n }),\n );\n}\n\nexport const organizationUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.ORGANIZATION_USAGE_RECORDS,\n 'ORGANIZATION_USAGE_RECORDS',\n);\n\nexport const userUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.USER_USAGE_RECORDS,\n 'USER_USAGE_RECORDS',\n);\n"]}
1
+ {"version":3,"file":"usage-records.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/billing/resources/usage-records.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAA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,0BAA0B,EAC3C,4BAA4B,CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,oBAAoB,CACvE,gBAAgB,CAAC,kBAAkB,EACnC,oBAAoB,CACrB,CAAC","sourcesContent":["import { billingAdminPresets, billingMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n UsageRecordSchema,\n UsageRecordFlushState,\n UsageRecordUnreportableReason,\n UsageSourceType,\n usageRecordsPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport {\n BILLING_API_REFERENCE_PAGE_REQUEST,\n billingApiReferencePage,\n createBillingApiReferenceScopeExample,\n type BillingApiReferenceExampleScope,\n} from './billing-api-reference-examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype UsageResourceType = CoreResourceType.ORGANIZATION_USAGE_RECORDS | CoreResourceType.USER_USAGE_RECORDS;\ntype UsageResourceTypeMember = 'ORGANIZATION_USAGE_RECORDS' | 'USER_USAGE_RECORDS';\n\nconst usageResourcePrimaryScopeByResourceType: Record<UsageResourceType, BillingApiReferenceExampleScope> = {\n [CoreResourceType.ORGANIZATION_USAGE_RECORDS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.USER_USAGE_RECORDS]: ResourcePrimaryScope.USER_SELF,\n};\n\ntype Cfg = ReturnType<(typeof usageRecordsPolymorphicFactories)[CoreResourceType.ORGANIZATION_USAGE_RECORDS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof UsageRecordSchema;\ntype UsageFrontend = ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nfunction resolveUsageUI(source: Partial<Record<string, unknown>>, resourceType: UsageResourceType, sourceName: string): UsageFrontend {\n const uiBehavior = source[resourceType] as UsageFrontend | undefined;\n if (!uiBehavior) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return uiBehavior;\n}\n\nfunction buildUsageRecordBase(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const exampleScope = createBillingApiReferenceScopeExample(\n usageResourcePrimaryScopeByResourceType[resourceType],\n );\n const usageRecordExample = {\n _id: 'usage_record_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1250,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.REPORTED,\n reportedAt: '2026-06-15T12:05:00.000Z',\n metadata: { region: 'eu-west' },\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n };\n const usageRecordSummaryExample = {\n _id: usageRecordExample._id,\n ...exampleScope.billingAccountIdentity,\n productKey: usageRecordExample.productKey,\n quantity: usageRecordExample.quantity,\n timestamp: usageRecordExample.timestamp,\n };\n\n return resourceSpecification<undefined, Core, Main>(\n usageRecordsPolymorphicFactories[resourceType],\n UsageRecordSchema,\n ({ schemaShape }) => ({\n purpose:\n 'Metered-usage record for a product key: exposes the measured quantity, event timestamp, reporting state, and the API or workflow source that produced it.',\n businessRole: 'Feeds METERED pricing and entitlements; aggregated in analytics and in `BillingState` responses.',\n lifecycleRole:\n 'Created by application metering and exposed as a read-only record. `flushState` moves from `pending` to `reported` once the billing provider acknowledges the measured usage, or to `unreportable` when the flush determines it never can — a billing account that no longer exists, for instance, since these rows are retained after their account is gone. Ends a `BUSINESS_RECORDS` period after its owner goes, before the billing account, through a route-less `DELETE_MANY` only the retention-class sweep calls.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'usageRecordsPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Usage document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n billingAccountId: schemaShape.billingAccountId.stringSpec({ meaning: 'Polymorphic parent billing account FK.', importance: FieldSemanticImportance.PRIMARY }),\n productKey: schemaShape.productKey.stringSpec({ meaning: 'Catalog product key the usage record charges against (matches product definition).', importance: FieldSemanticImportance.PRIMARY }),\n quantity: schemaShape.quantity.numberSpec({ meaning: 'Non-negative usage amount for the metering window captured in this record.' }),\n timestamp: schemaShape.timestamp.dateSpec({ meaning: 'When the usage event occurred in product time.', temporalRole: 'occurred' }),\n source: schemaShape.source.objectSpec({ meaning: 'Optional origin metadata (type, resourceType, operation id, and the row the operation wrote) for support and audits. The row is how an operation that records once per row is not billed twice for it.' }),\n oncePerRecordKey: schemaShape.oncePerRecordKey.stringSpec({\n meaning: 'Backend-only. The occurrence a usage recorded once per row stands for: a digest of the billing account, product, resource and row. Unique, so the store refuses a second usage row for the same case; absent on every other row.',\n }),\n flushState: schemaShape.flushState.enumSpec({\n meaning: 'Where the row stands with the provider flush. The flush selects exactly `pending`, so this field alone decides whether the row is still work.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordFlushState', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordFlushState.PENDING]: { meaning: 'Awaiting a flush. Every newly recorded row starts here.' },\n [UsageRecordFlushState.REPORTED]: { meaning: 'The provider acknowledged the quantity; `reportedAt` says when. Terminal, and money moved.' },\n [UsageRecordFlushState.UNREPORTABLE]: { meaning: 'The flush determined the row can never be reported; `unreportableReason` says why. Terminal, and no money moved.' },\n },\n }),\n reportedAt: schemaShape.reportedAt.dateSpec({ meaning: 'When provider acknowledgement happened.', temporalRole: 'modified' }),\n unreportableReason: schemaShape.unreportableReason.enumSpec({\n meaning: 'Why the row can never be reported. Present only when the flush state is unreportable.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordUnreportableReason', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordUnreportableReason.BILLING_ACCOUNT_DELETED]: { meaning: 'The billing account row no longer exists, so there is no provider customer to report the usage to. Reachable by design: these rows are retained after their account is gone.' },\n },\n }),\n unreportableAt: schemaShape.unreportableAt.dateSpec({ meaning: 'When the flush determined the row unreportable.', temporalRole: 'modified' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Extra string tags for product-specific accounting.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record insert time.', temporalRole: 'creation' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single usage row in admin or support tools.',\n outcome: 'Full quantity, timestamp, and source block.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The usage record was found and its quantity, timestamp, and source block are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to read metered-usage rows (reads are org-owner/org-admin-scoped API operations; writes stay system-scoped internal service-pipeline ops, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect one reported API-usage record',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a usage record with available relationship context',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact usage summary',\n response: usageRecordSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Paginated usage history for a billing account (metering explorer).',\n outcome: 'Chronological rows for charts and export.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) chronological page of usage records for the billing account.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to enumerate metered-usage history.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse metered usage chronologically',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse usage records with relationship context',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact metered-usage summaries',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordSummaryExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Record an occurrence of metered consumption from application code or workers.',\n outcome: 'New immutable-ish line with not-editable fields enforced in schema.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A metered-usage line was appended for the product key and is returned with its server-assigned id and creation time.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The usage payload is malformed — negative `quantity`, unknown `productKey`, or a non-editable field supplied by the caller.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the trusted system/metering identity authorised to append usage (the op is an internal service-pipeline op, not exposed over HTTP for arbitrary client writes).' },\n ],\n // Append-only event write: each call records a distinct metered occurrence, so\n // repeating it inserts another row. The runtime does not key these on an\n // idempotency token, so two identical requests double-count by design.\n idempotent: false,\n rateLimitNote: 'High-volume ingestion path — metering hooks and workers should batch and back off; bursty per-event writes may be throttled by the platform.',\n examples: [\n {\n title: 'Record one metered consumption event',\n request: {\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n },\n response: {\n _id: 'usage_record_unreported_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.PENDING,\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Rare correction or provider sync patch paths when policy allows; many fields are not editable in zod for safety.',\n outcome: 'Patched metadata or flush state in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The editable subset (metadata / report flags) was patched and the updated usage record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A non-editable usage field (`quantity`, `productKey`, `timestamp`) was supplied, or the patch otherwise fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner / system role required to correct or re-sync usage rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: ['High-volume append-only usage — UI should not imply arbitrary user edits to historical quantities without a dedicated op.'],\n }),\n { resourcePrimaryScope: usageResourcePrimaryScopeByResourceType[resourceType] },\n );\n}\n\nfunction buildUsageRecordSpec(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const base = buildUsageRecordBase(resourceType, memberName);\n const main = resolveUsageUI(billingMainPresets as Partial<Record<string, unknown>>, resourceType, 'billingMainPresets');\n const admin = resolveUsageUI(billingAdminPresets as Partial<Record<string, unknown>>, resourceType, 'billingAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n label: { purpose: 'Preset stringifies `productKey · quantity` for dense tables.' },\n views: {\n [Op.LIST]: { purpose: 'List op in merged `views` as non-addressable; keep spec aligned with merged preset op map.', whenToUse: 'Embedded list under billing account.' },\n [Op.READ]: { purpose: 'Read op in merged `views` as non-addressable.', whenToUse: 'Row detail in inspector when wired.' },\n },\n }),\n );\n}\n\nexport const organizationUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.ORGANIZATION_USAGE_RECORDS,\n 'ORGANIZATION_USAGE_RECORDS',\n);\n\nexport const userUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.USER_USAGE_RECORDS,\n 'USER_USAGE_RECORDS',\n);\n"]}
@@ -36,8 +36,10 @@
36
36
  * - every read here is a declared CROSS-TENANT read and emits `CROSS_TENANT_ADMINISTRATIVE_ACCESS`
37
37
  * once per tenant the returned rows belong to, so the crossing is visible to the tenant that was
38
38
  * reached and not only to the operator who reached it;
39
- * - reads use the administrator role by default. `auditTrail.applicationReadAccess` can require
40
- * independent approval through a justified, time-bound `applicationAccessGrants` elevation.
39
+ * - reads use the administrator role, and `auditTrail.applicationReadAccess` can require
40
+ * independent approval through a justified, time-bound `applicationAccessGrants` elevation. An
41
+ * application that does not declare it gets its shape's default (#2618): independent approval where
42
+ * the operator is a third party to some relationship kind's parties, the role alone otherwise.
41
43
  * This audit-specific policy does not relax other application-wide reads.
42
44
  *
43
45
  * ## Why there is no CREATE, and no write of any kind
@@ -58,33 +60,43 @@ import { AuditEventCategory, AuditEventSeverity, CoreResourceOperation as Op, Re
58
60
  * as the tenant one, so the narration below describes a surface that exists.
59
61
  */
60
62
  export declare const applicationAuditLogsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<never, Op.READ | Op.LIST | Op.SEARCH, import("zod").ZodObject<{
61
- _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
62
- eventId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
63
- userId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
64
- organizationId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
65
- applicationId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
66
- correlationId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
67
- frontendServiceName: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
68
- clientInstanceId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
69
- actorKind: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof AuditActorKind>>>>>;
70
- agentActor: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodObject<{
63
+ _id: import("zod").ZodString;
64
+ eventId: import("zod").ZodString;
65
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
66
+ userName: import("zod").ZodOptional<import("zod").ZodString>;
67
+ organizationId: import("zod").ZodOptional<import("zod").ZodString>;
68
+ organizationName: import("zod").ZodOptional<import("zod").ZodString>;
69
+ applicationId: import("zod").ZodOptional<import("zod").ZodString>;
70
+ correlationId: import("zod").ZodOptional<import("zod").ZodString>;
71
+ frontendServiceName: import("zod").ZodOptional<import("zod").ZodString>;
72
+ clientInstanceId: import("zod").ZodOptional<import("zod").ZodString>;
73
+ actorKind: import("zod").ZodOptional<import("zod").ZodEnum<typeof AuditActorKind>>;
74
+ agentActor: import("zod").ZodOptional<import("zod").ZodObject<{
71
75
  agentRef: import("zod").ZodString;
72
76
  agentExecutionId: import("zod").ZodOptional<import("zod").ZodString>;
73
77
  systemRef: import("zod").ZodOptional<import("zod").ZodString>;
74
78
  toolName: import("zod").ZodOptional<import("zod").ZodString>;
75
79
  decisionRef: import("zod").ZodOptional<import("zod").ZodString>;
76
- }, import("zod/v4/core").$strip>>>;
77
- delegatingClientId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
78
- principalCredentialId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
79
- actingViaServiceProviderRelationshipId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
80
- providerOrganizationId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
81
- serviceProviderFactorSource: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FactorSatisfactionSource>>>>;
82
- riskLevel: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ResourceOperationRiskLevel>>;
83
- eventType: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
84
- eventData: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
85
- eventCategory: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof AuditEventCategory>>;
86
- severity: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof AuditEventSeverity>>;
87
- createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
88
- updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>;
80
+ }, import("zod/v4/core").$strip>>;
81
+ delegatingClientId: import("zod").ZodOptional<import("zod").ZodString>;
82
+ delegatingClientName: import("zod").ZodOptional<import("zod").ZodString>;
83
+ principalCredentialId: import("zod").ZodOptional<import("zod").ZodString>;
84
+ principalCredentialKind: import("zod").ZodOptional<import("zod").ZodString>;
85
+ principalCredentialName: import("zod").ZodOptional<import("zod").ZodString>;
86
+ actingViaRelationshipId: import("zod").ZodOptional<import("zod").ZodString>;
87
+ actingViaRelationshipKind: import("zod").ZodOptional<import("zod").ZodString>;
88
+ representingOrganizationId: import("zod").ZodOptional<import("zod").ZodString>;
89
+ representingOrganizationName: import("zod").ZodOptional<import("zod").ZodString>;
90
+ arrivedThroughInboundSourceKey: import("zod").ZodOptional<import("zod").ZodString>;
91
+ arrivedThroughInboundDeliveryId: import("zod").ZodOptional<import("zod").ZodString>;
92
+ relationshipFactorSource: import("zod").ZodOptional<import("zod").ZodString>;
93
+ routedOrganizationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
94
+ riskLevel: import("zod").ZodEnum<typeof ResourceOperationRiskLevel>;
95
+ eventType: import("zod").ZodString;
96
+ eventData: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
97
+ eventCategory: import("zod").ZodEnum<typeof AuditEventCategory>;
98
+ severity: import("zod").ZodEnum<typeof AuditEventSeverity>;
99
+ createdAt: import("zod").ZodDefault<import("zod").ZodDate>;
100
+ updatedAt: import("zod").ZodDefault<import("zod").ZodDate>;
89
101
  }, import("zod/v4/core").$strip>>;
90
102
  //# sourceMappingURL=application-audit-logs.resource.specification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-audit-logs.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/application-audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAUH,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAG1B,cAAc,EACf,MAAM,uBAAuB,CAAC;AA8E/B;;;;;GAKG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAqSrD,CAAC"}
1
+ {"version":3,"file":"application-audit-logs.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/application-audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAUH,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAG1B,cAAc,EACf,MAAM,uBAAuB,CAAC;AA8E/B;;;;;GAKG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyUrD,CAAC"}
@@ -36,8 +36,10 @@
36
36
  * - every read here is a declared CROSS-TENANT read and emits `CROSS_TENANT_ADMINISTRATIVE_ACCESS`
37
37
  * once per tenant the returned rows belong to, so the crossing is visible to the tenant that was
38
38
  * reached and not only to the operator who reached it;
39
- * - reads use the administrator role by default. `auditTrail.applicationReadAccess` can require
40
- * independent approval through a justified, time-bound `applicationAccessGrants` elevation.
39
+ * - reads use the administrator role, and `auditTrail.applicationReadAccess` can require
40
+ * independent approval through a justified, time-bound `applicationAccessGrants` elevation. An
41
+ * application that does not declare it gets its shape's default (#2618): independent approval where
42
+ * the operator is a third party to some relationship kind's parties, the role alone otherwise.
41
43
  * This audit-specific policy does not relax other application-wide reads.
42
44
  *
43
45
  * ## Why there is no CREATE, and no write of any kind
@@ -213,13 +215,22 @@ export const applicationAuditLogsResourceSpecification = resourceSpecificationFr
213
215
  },
214
216
  }),
215
217
  userId: schemaShape.userId.stringSpec({
216
- meaning: 'Acting user when known; empty for system-only events.',
218
+ meaning: 'Acting user when known, as the id the row recorded; empty for system-only events, or an actor sentinel (`system`, `machine`, `unattributed`). Shown only when `userName` names nobody.',
219
+ semanticRole: 'identifier',
220
+ }),
221
+ userName: schemaShape.userName.stringSpec({
222
+ meaning: 'The person `userId` names, by the name on their profile, resolved when the event is read and never stored (`forwardedUserName`, #1792). Absent when no profile names that id: the person was erased, `userId` holds a sentinel such as `system`, or the person has no profile name; the row then shows the id it recorded. Never the person\'s email. Absent from the bounded export and from every SIEM feed, which carry the row as stored.',
223
+ whyItMatters: 'Answers "who did this?" in words a reviewer can read. The trail keeps only the id, so an erasure leaves no copy of the name in the evidence, and the name is computed inside the read this door already admitted, over an id on a row the caller may read.',
217
224
  }),
218
225
  organizationId: schemaShape.organizationId.foreignKeySpec({
219
226
  meaning: 'The `organizations` record that owns the tenant context of this event, when one does.',
220
227
  whyItMatters: 'Filterable here, and its ABSENCE is the point of this resource: a row with no `organizationId` is reachable through no organization route, so before this door existed it could be written and never read. Narrowing by it is an investigative convenience and never an isolation boundary — the boundary on this door is the administrator role and configured audit-read policy, and a read narrowed to one tenant is still a cross-tenant read for audit purposes.',
221
228
  importance: FieldSemanticImportance.PRIMARY,
222
229
  }),
230
+ organizationName: schemaShape.organizationName.stringSpec({
231
+ meaning: 'The organization `organizationId` names, by its name, resolved when the event is read and never stored (#3445). Absent when no organization row names that id (deleted and purged); the row then shows the id. On this door the reader already sees every tenant\'s people by name (#1792), a stronger disclosure than a tenant\'s name. Absent from the bounded export and from every SIEM feed.',
232
+ whyItMatters: 'Answers "about which organization?" in words a reviewer can read, while the trail keeps only the id it recorded.',
233
+ }),
223
234
  applicationId: schemaShape.applicationId.foreignKeySpec({
224
235
  meaning: 'The `applications` record this event belongs to — the scope anchor for this door.',
225
236
  importance: FieldSemanticImportance.CONTEXTUAL,
@@ -257,15 +268,42 @@ export const applicationAuditLogsResourceSpecification = resourceSpecificationFr
257
268
  delegatingClientId: schemaShape.delegatingClientId.stringSpec({
258
269
  meaning: 'The external OAuth client a person delegated to, taken from the verified token when the action came through an A2A or MCP client. Absent for first-party sessions.',
259
270
  }),
271
+ delegatingClientName: schemaShape.delegatingClientName.stringSpec({
272
+ meaning: 'The external client `delegatingClientId` names, by the name it is registered under, resolved at read time as the authorization server resolves a client id (the organization\'s clients, then the application\'s). Absent, so the id shows, for a client identified by an HTTPS URL, for a SELF-REGISTERED client (its name is its own claim, never identity evidence), for one since deleted, and for another organization\'s client (another tenant\'s row) (#3445).',
273
+ }),
274
+ arrivedThroughInboundSourceKey: schemaShape.arrivedThroughInboundSourceKey.stringSpec({
275
+ meaning: 'The inbound source the action arrived through, as `provider:endpoint` (`slack:events`, `microsoft-teams-bot:messages`): present when a stored inbound delivery caused it, such as a decision answered from a chat card, a turn an agent ran for a chat message, or a handler\'s own writes. Absent for an action taken in the application.',
276
+ }),
277
+ arrivedThroughInboundDeliveryId: schemaShape.arrivedThroughInboundDeliveryId.stringSpec({
278
+ meaning: 'The stored inbound delivery the action arrived through, present exactly when `arrivedThroughInboundSourceKey` is. Every action one message caused carries the same id, so filtering on it shows all of them.',
279
+ }),
260
280
  principalCredentialId: schemaShape.principalCredentialId.stringSpec({
261
281
  meaning: 'The machine credential a machine principal authenticated with: the id of an API key or OAuth client, or, for a shared platform secret that has no credential record, its stable name. Present only when `actorKind` is `machine`.',
262
282
  }),
263
- actingViaServiceProviderRelationshipId: schemaShape.actingViaServiceProviderRelationshipId.stringSpec({
264
- meaning: 'The service-provider relationship a firm\'s expert or machine client acted through, on a row written in the client organization it was admitted into. Absent for every other principal.',
265
- whyItMatters: 'Lets a client answer "what did the firm do here, and under which relationship?" from its own trail, and keeps the arrangement visible after the relationship ends.',
283
+ principalCredentialKind: schemaShape.principalCredentialKind.stringSpec({
284
+ meaning: 'Which kind of credential `principalCredentialId` names, recorded by the engine beside the id from the credential\'s authentication method and the machine\'s execution type (#3445): `organization_api_key`, `application_api_key`, `organization_oauth_client` or `application_oauth_client` (the `AuditMachineCredentialKind` vocabulary, shown by its words). Absent where neither is known (a shared platform secret, a platform service\'s own key) and on rows written before it existed. A string rather than a closed enum, because an audit row keeps the value it recorded.',
285
+ whyItMatters: 'An id alone does not say which of four resources holds the credential; reading it from the recorded kind is what lets the trail name the credential without guessing.',
286
+ }),
287
+ principalCredentialName: schemaShape.principalCredentialName.stringSpec({
288
+ meaning: 'The credential `principalCredentialId` names, by the name its owner gave it, read from the one resource `principalCredentialKind` says it lives in, at read time and never stored (#3445). Absent, so the id shows, on a row that recorded no kind, for a credential since deleted and for a self-registered OAuth client. An organization\'s credential is named only on that organization\'s own rows: a representing organization\'s machine client acting in a granting organization shows its id, since its name is another tenant\'s row. The application\'s credentials are named wherever they acted, as the operator is.',
289
+ }),
290
+ routedOrganizationIds: schemaShape.routedOrganizationIds.arraySpec({
291
+ meaning: 'The organizations whose per-organization audit sinks (the SIEM export) this event was dispatched to, as the engine decided from the authenticated request, plus the organization whose retired SIEM destination received it (#2959). Written by the engine, never by an emitter; empty when the event routed nowhere. Backend-only: never in a read, the bounded export, a subject export or a SIEM envelope.',
292
+ elementMeaning: 'One organization id the event was routed to.',
293
+ whyItMatters: 'A SIEM dead letter that failed its integrity check carries an envelope and a scope nobody vouched for, so its retry re-derives the event from this row and delivers it only to an organization listed here. `organizationId` cannot answer that: it is the tenant the event is about, which a caller can influence.',
294
+ }),
295
+ actingViaRelationshipId: schemaShape.actingViaRelationshipId.stringSpec({
296
+ meaning: 'The organization relationship a representative or admitted machine client acted through, on a row written in the granting organization it was admitted into. Absent for every other principal.',
297
+ whyItMatters: 'Lets a granting organization answer "what did the representing organization do here, and under which relationship?" from its own trail, and keeps the arrangement visible after the relationship ends.',
298
+ }),
299
+ actingViaRelationshipKind: schemaShape.actingViaRelationshipKind.stringSpec({
300
+ meaning: 'The kind of the relationship `actingViaRelationshipId` names, shown by its word beside the relationship\'s id (a kind is a category, not the relationship\'s identity), read from the relationship at read time and never stored (#3445). Absent once the relationship is gone.',
301
+ }),
302
+ representingOrganizationId: schemaShape.representingOrganizationId.stringSpec({
303
+ meaning: 'The representing organization behind `actingViaRelationshipId`; present exactly when it is.',
266
304
  }),
267
- providerOrganizationId: schemaShape.providerOrganizationId.stringSpec({
268
- meaning: 'The firm (provider organization) behind `actingViaServiceProviderRelationshipId`; present exactly when it is.',
305
+ representingOrganizationName: schemaShape.representingOrganizationName.stringSpec({
306
+ meaning: 'The representing organization\'s name, read at read time from the relationship the act went through (the granting organization\'s own copy, taken at the proposal), never from the representing organization\'s own row, which the granting organization cannot read (#3445). Absent, so the id shows, once the relationship is gone.',
269
307
  }),
270
308
  eventData: schemaShape.eventData.objectSpec({
271
309
  meaning: 'Event-specific JSON details. Its keys depend on `eventType`; clients must not assume one payload shape across all event types.',
@@ -353,8 +391,8 @@ export const applicationAuditLogsResourceSpecification = resourceSpecificationFr
353
391
  },
354
392
  businessConstraints: [
355
393
  "Application identity is resolved against the local singleton record. Its local id, platform id and slug select the same historical trail without rewriting stored event identities; an unknown application id is refused. Caller filters still intersect that complete scope. Structured SEARCH requires an empty free-text query.",
356
- 'Application audit reads require the application super-administrator role. The default auditTrail.applicationReadAccess policy is role-based in every environment; independent-approval additionally requires a usable, time-bound applicationAccessGrants elevation approved by a different administrator. Both policies preserve scope filtering and cross-tenant read observations. Other application-wide reads retain their grant requirement. Audit records can contain personal data; role-based access does not imply anonymization.',
357
- 'Every read is recorded. `CROSS_TENANT_ADMINISTRATIVE_ACCESS` is emitted once per tenant whose rows were returned, and lands in that tenant\'s own organization-scoped trail — so a customer can see that an operator read their events, in the surface they already use. Making an operator read invisible on the audit trail would be the worst possible place to do it.',
394
+ 'Application audit reads require the application super-administrator role. The auditTrail.applicationReadAccess policy, when the application does not declare it, follows its shape in every environment (#2618): independent-approval where the operator is a third party to some relationship kind\'s parties (the type that owns the application represents nobody in that kind), role-based otherwise. Independent-approval additionally requires a usable, time-bound applicationAccessGrants elevation approved by a different administrator. Both policies preserve scope filtering and cross-tenant read observations. Other application-wide reads retain their grant requirement. Audit records can contain personal data; role-based access does not imply anonymization.',
395
+ 'Every read is recorded. `cross_tenant_administrative_access` is emitted once per tenant whose rows were returned, and lands in that tenant\'s own organization-scoped trail — so a customer can see that an operator read their events, in the surface they already use. Making an operator read invisible on the audit trail would be the worst possible place to do it.',
358
396
  'Nothing here writes. Audit events cannot be created, updated or deleted through this resource; a correction or reversal is represented by a new event appended through the application\'s own internal write path, which stays the single writer of the trail.',
359
397
  'A row with no `organizationId` is not an anomaly and must not be treated as one. Login, session eviction, token refresh and application-wide policy changes all legitimately happen outside any tenant selection, and on a measured dogfood application they were the majority of the trail.',
360
398
  ],
@@ -367,7 +405,7 @@ export const applicationAuditLogsResourceSpecification = resourceSpecificationFr
367
405
  },
368
406
  layout: {
369
407
  purpose: 'The same three cards as the tenant trail, under a header that NAMES the event (its type and the instant) — `overview` (classification), `actors` (who and where, each row hidden when empty; on this door a row with no organization is ordinary), `payload` (the structured detail) — because an audit event is the same object whichever door served it. No card carries a description.',
370
- displayPurpose: 'Read-only list and detail as settings rows; a list card shows the event type, its severity as a badge and who acted, bare, under its day heading. This resource declares no write verb at all, so there is deliberately no edit layout to describe.',
408
+ displayPurpose: 'Read-only list and detail as settings rows; a list card shows the event type, its severity as a badge and who acted, bare (the kind of principal and, when a person acted and has a name, that person, #1792), under its day heading. This resource declares no write verb at all, so there is deliberately no edit layout to describe.',
371
409
  sections: {
372
410
  overview: {
373
411
  purpose: 'Category, severity and risk — the event type and instant are the page\'s name, so the card carries no heading and no row repeats them.',
@@ -377,7 +415,7 @@ export const applicationAuditLogsResourceSpecification = resourceSpecificationFr
377
415
  },
378
416
  },
379
417
  actors: {
380
- purpose: 'User, organization and related actor identifiers when the row carries them.',
418
+ purpose: 'Who acted: the kind of principal, the person by name (and the id the row recorded only where no name resolves), the agent, client or machine credential involved, and the organizations and relationship the act went through.',
381
419
  whenToUse: 'Answering "who was involved" before reading payload content.',
382
420
  textSlots: {
383
421
  title: { purpose: 'Label the parties block.' },
@@ -1 +1 @@
1
- {"version":3,"file":"application-audit-logs.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/application-audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,EAAE,2CAA2C,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACnI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,+DAA+D,EAC/D,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,8CAA8C,EAAE,MAAM,6BAA6B,CAAC;AAC3K,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AACxD,MAAM,6BAA6B,GAAG,0BAA0B,CAAC;AACjE,MAAM,gCAAgC,GAAG,wBAAwB,CAAC;AAElE,+FAA+F;AAC/F,MAAM,kCAAkC,GAAG;IACzC,GAAG,EAAE,wBAAwB;IAC7B,OAAO,EAAE,sCAAsC;IAC/C,MAAM,EAAE,iBAAiB;IACzB,cAAc,EAAE,6BAA6B;IAC7C,aAAa,EAAE,gCAAgC;IAC/C,aAAa,EAAE,oBAAoB;IACnC,mBAAmB,EAAE,KAAK;IAC1B,gBAAgB,EAAE,4BAA4B;IAC9C,SAAS,EAAE,cAAc,CAAC,IAAI;IAC9B,UAAU,EAAE,EAAE,QAA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IAAI,CAAC,EAAE;YACT,OAAO,EAAE,4FAA4F;YACrG,SAAS,EAAE,2DAA2D;SACvE;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `applicationAuditLogs` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/compliance/audit-trails/auditable-events.shared.schema.ts\n * → `AuditableEvent_BaseSchema`\n * - Factory: engine/saas-models/src/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.ts\n * → `applicationAuditLogsResourceConfiguration_InitializationFactory`\n * - Custom operations: none.\n *\n * ## Why this exists BESIDE `auditLogs` rather than inside it\n *\n * `auditLogs` is organization-scoped and its only route is\n * `/organizations/{organizationId}/audit-logs`, so it returns exactly the rows carrying that\n * tenant. A large share of security events carry no organization by design — login, session\n * eviction, token refresh and application-wide authentication-policy changes all happen before or\n * outside a tenant selection. Measured on a dogfood application (#317): **94 of 127 rows had no\n * organization**, and were reachable through no API at all. An operator could see 26% of the trail\n * and could not attest the rest.\n *\n * A second ROUTE on the same resource was not available: `generateParentCombinations` composes\n * every URL from the primary scope plus every parent combination, so an application edge on\n * `auditLogs` would rewrite the organization route rather than sit beside it. The reasoning is\n * written out in full on the runtime configuration; this specification does not restate it.\n *\n * ## Two doors, ONE record set — and what that means for a reader of the reference\n *\n * Both resources resolve to the same `auditLogs` collection. So the isolation properties are a\n * per-DOOR obligation rather than a property of the rows, and this door's obligations are the whole\n * reason it is documented separately:\n *\n * - it accepts `APP_ADMIN_SUPER_ADMIN` or the read-only `APP_AUDIT_EVIDENCE_READER` on every operation,\n * and an organization role can never reach it, because the rows behind it span every tenant. The\n * reader exists so an assurance collector or an external auditor reads the trail without holding\n * administrative authority over the application it attests;\n * - every read here is a declared CROSS-TENANT read and emits `CROSS_TENANT_ADMINISTRATIVE_ACCESS`\n * once per tenant the returned rows belong to, so the crossing is visible to the tenant that was\n * reached and not only to the operator who reached it;\n * - reads use the administrator role by default. `auditTrail.applicationReadAccess` can require\n * independent approval through a justified, time-bound `applicationAccessGrants` elevation.\n * This audit-specific policy does not relax other application-wide reads.\n *\n * ## Why there is no CREATE, and no write of any kind\n *\n * The organization resource carries a `REPOSITORY_ONLY` CREATE because that is how audit rows are\n * appended. Writing is not a scope question, so the trail keeps exactly one writer and this door is\n * read-only in every sense — there is no update, no delete, and no second append path.\n *\n * Why backend-only: no preset under `engine/presets-components/src/config/resources/` declares an\n * entry for `[CoreResourceType.APPLICATION_AUDIT_LOGS]`. The operator-facing trail viewer is not\n * built yet; today the resource is reached through the API and the generated reference.\n */\n\nimport { applicationAuditLogsAdminResourceUIBehavior as applicationAuditLogsUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AuditableEvent_BaseSchema,\n AuditEventCategory,\n AuditEventSeverity,\n CoreResourceOperation as Op,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n applicationAuditLogsResourceConfiguration_InitializationFactory,\n AuditActorKind,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_AUDIT_LOG_ID = 'audit_log_01JEXAMPLE';\nconst APPLICATION_AUDIT_TENANT_A_ID = 'organization_01JEXAMPLEA';\nconst APPLICATION_AUDIT_APPLICATION_ID = 'application_01JEXAMPLE';\n\n/** A tenant-attributed row: reading it through this door is the crossing the trail records. */\nconst applicationAuditTenantEventExample = {\n _id: APPLICATION_AUDIT_LOG_ID,\n eventId: 'a5ad8e36-7f34-4f0e-a7f4-1454a7997721',\n userId: 'user_01JEXAMPLE',\n organizationId: APPLICATION_AUDIT_TENANT_A_ID,\n applicationId: APPLICATION_AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLE',\n frontendServiceName: 'app',\n clientInstanceId: 'client_instance_01JEXAMPLE',\n actorKind: AuditActorKind.USER,\n agentActor: { agentRef: 'todo-assistant', agentExecutionId: 'execution_01JEXAMPLE', toolName: 'resource.organizationMembers.update' },\n riskLevel: ResourceOperationRiskLevel.HIGH,\n eventType: 'organization.member.role.changed',\n eventData: {\n targetUserId: 'user_01JTARGET',\n previousRoles: ['ORG_MEMBER'],\n newRoles: ['ORG_ADMIN'],\n },\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n createdAt: '2026-08-20T14:32:10.000Z',\n updatedAt: '2026-08-20T14:32:10.000Z',\n _version: 1,\n} as const;\n\n/**\n * The row shape this door exists for: a real security event carrying NO organization. It is\n * unreachable through the organization door, which is the gap measured in #317.\n */\nconst applicationAuditUnattributedEventExample = {\n _id: 'audit_log_01JEXAMPLEB',\n eventId: '0f2c1b7e-6a51-4a2f-9d4b-7c1f0a3e5d92',\n userId: 'user_01JEXAMPLE',\n applicationId: APPLICATION_AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLEB',\n frontendServiceName: 'app',\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n eventType: 'user.login.succeeded',\n eventData: { method: 'password', mfaMethodsCompleted: ['TOTP'] },\n eventCategory: AuditEventCategory.AUTHENTICATION,\n severity: AuditEventSeverity.INFO,\n createdAt: '2026-08-20T14:29:44.000Z',\n updatedAt: '2026-08-20T14:29:44.000Z',\n _version: 1,\n} as const;\n\nconst APPLICATION_AUDIT_PAGE = {\n data: [applicationAuditUnattributedEventExample, applicationAuditTenantEventExample],\n pagination: { page: 1, limit: 20, total: 2, totalPages: 1 },\n} as const;\n\nconst APPLICATION_AUDIT_LIST_REQUEST = {\n eventCategory: AuditEventCategory.AUTHENTICATION,\n createdAt: {\n startDate: '2026-08-20T00:00:00.000Z',\n endDate: '2026-08-21T00:00:00.000Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc,eventId:desc',\n} as const;\n\ntype Cfg = ReturnType<typeof applicationAuditLogsResourceConfiguration_InitializationFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst applicationAuditLogsUIBehavior = applicationAuditLogsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\n/**\n * Carries the frontend overlay since 2026-09-17. It was `resourceSpecification(...)` alone while the\n * resource had no preset to document — a description of an absence rather than a decision that the\n * application trail should be unreadable. The operator door now renders through the same templates\n * as the tenant one, so the narration below describes a surface that exists.\n */\nexport const applicationAuditLogsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(applicationAuditLogsUIBehavior),\n resourceSpecification(\n applicationAuditLogsResourceConfiguration_InitializationFactory,\n AuditableEvent_BaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Read the application-wide audit trail — every immutable security, access, administration and data event the deployment recorded, including the ones that belong to no single tenant.',\n businessRole: 'The surface an operator, an incident responder or an auditor uses to attest the WHOLE trail. The organization door answers \"what happened in my tenant\"; this one answers \"what happened at all\", which is the only question a deployment-level attestation can be built from.',\n lifecycleRole: 'Read-only in every sense. Events are appended by the application through the organization resource\\'s internal write path, and are never updated or deleted. This door reads and filters them; it has no verb that changes a row.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditableEvent_BaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationAuditLogsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_AUDIT_LOGS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'The schema is SHARED with `auditLogs` (`AuditableEvent_BaseSchema`) and the rows are literally the same rows, resolved through `RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES`. Two doors, one record set — so a field means exactly what it means on the organization resource, and the difference between the two surfaces is entirely in who may open them and what the trail records when they do.',\n 'Every read variant declares `admitsCrossTenantPlatformAdministration`. That declaration is not documentation: it is what ENROLS the read in `ServicesRegistryHandler.recordCrossTenantReadAccess`, and it is also what stops the initiator-organization confinement from silently narrowing this door to one tenant — which would make a surface documented as spanning every tenant return a subset and report success.',\n 'There is no `retentionPolicy` and `systemAccessPolicy.exportSubject` is FORBIDDEN, both mirrored from the organization door on purpose. They are properties of the ROWS, and a second door that disagreed about whether the monitoring trail is subject-exportable would be a policy fork over one record set.',\n ],\n },\n\n fields: {\n eventType: schemaShape.eventType.stringSpec({\n meaning: 'Stable event name identifying what happened, such as a role change or an authentication outcome. A value of the engine\\'s open vocabulary `CoreAuditableEventType`: the field is a string, and screens show the type\\'s word (`system_enums.CoreAuditableEventType.<type>`) rather than the value.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({\n meaning: 'Stable identifier for the event itself. Use it to match the same event across API results, exports and configured external audit sinks.',\n whyItMatters: 'Also the keyset tie-breaker behind this door\\'s sort order. `createdAt` is not unique under boot and seed bursts, so paging without it can skip or repeat rows — which on an audit trail is silent evidence loss rather than a display glitch.',\n }),\n correlationId: schemaShape.correlationId.stringSpec({\n meaning: 'Identifier shared by every event and operational record produced by one request or background execution.',\n whyItMatters: 'The join an investigation actually uses. It reaches across tenants, so it is far more useful through this door than through the organization one, where the other half of a sequence may simply be invisible.',\n }),\n eventCategory: schemaShape.eventCategory.enumSpec({\n meaning: 'High-level area for navigation, filters and export groupings, assigned by the service classifier when the event is recorded.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventCategory',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventCategory.AUTHENTICATION]: { meaning: 'Sign-in, session and credential events. The category most likely to carry no organization, and therefore the one this door exists to make readable.' },\n [AuditEventCategory.AUTHORIZATION]: { meaning: 'Access control and policy evaluation outcomes when classified here.' },\n [AuditEventCategory.USER_LIFECYCLE]: { meaning: 'User profile and account lifecycle when classified here.' },\n [AuditEventCategory.ORG_MANAGEMENT]: { meaning: 'Org structure, membership and org-scoped security configuration changes when classified here.' },\n [AuditEventCategory.DATA_ACCESS]: { meaning: 'Sensitive or tracked data read, write and export when classified here.' },\n },\n }),\n severity: schemaShape.severity.enumSpec({\n meaning: 'Triage level for a record, assigned with `eventCategory` by the service classifier.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventSeverity',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventSeverity.INFO]: { meaning: 'Normal operational or informational records.' },\n [AuditEventSeverity.WARNING]: { meaning: 'Notable but not always urgent — worth review when scanning.' },\n [AuditEventSeverity.CRITICAL]: { meaning: 'Escalation-tier events in triage and export filters.' },\n },\n }),\n userId: schemaShape.userId.stringSpec({\n meaning: 'Acting user when known; empty for system-only events.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The `organizations` record that owns the tenant context of this event, when one does.',\n whyItMatters: 'Filterable here, and its ABSENCE is the point of this resource: a row with no `organizationId` is reachable through no organization route, so before this door existed it could be written and never read. Narrowing by it is an investigative convenience and never an isolation boundary — the boundary on this door is the administrator role and configured audit-read policy, and a read narrowed to one tenant is still a cross-tenant read for audit purposes.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The `applications` record this event belongs to — the scope anchor for this door.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n frontendServiceName: schemaShape.frontendServiceName.stringSpec({\n meaning: 'Frontend surface the action originated from, when the event came from an interactive request. Absent for background or internal activity.',\n }),\n clientInstanceId: schemaShape.clientInstanceId.stringSpec({\n meaning: 'Optional pseudonymous browser or device-install identifier, used to group activity across sessions when client-instance collection is enabled for the application.',\n whyItMatters: 'One of the few ways to follow one actor across tenants and across sessions, which is exactly the shape of investigation this door serves.',\n }),\n actorKind: schemaShape.actorKind.enumSpec({\n meaning: 'The kind of principal whose authority the action used: a signed-in user, a user acting through an external client they delegated to, a machine credential, the application itself, or nobody the trail could resolve.',\n whyItMatters: 'Answers \"under whose authority?\" without joining anything. It is never an agent: an agent always acts under one of these principals, and `agentActor` says when it did. `unattributed` is the value to alert on.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditActorKind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditActorKind.USER]: { meaning: 'A signed-in person acting through a first-party session; `userId` is that person.' },\n [AuditActorKind.DELEGATED_CLIENT]: { meaning: 'A person\\'s authority exercised by an external OAuth client they delegated to (A2A or MCP); `delegatingClientId` names the client.' },\n [AuditActorKind.MACHINE]: { meaning: 'An organization or application machine credential; `principalCredentialId` names it.' },\n [AuditActorKind.SYSTEM]: { meaning: 'The application acting on its own behalf by design — a batch, a cron job, an internal workflow, or its handling of a verified provider webhook or inbound delivery.' },\n [AuditActorKind.UNATTRIBUTED]: { meaning: 'A principal was expected and could not be resolved — the anomaly worth investigating.' },\n [AuditActorKind.UNAUTHENTICATED]: { meaning: 'No principal was proven, by design — a sign-in or machine-authentication attempt, a public operation, an anonymous session. Expected on these events; an alert only on events that require one.' },\n },\n }),\n agentActor: schemaShape.agentActor.objectSpec({\n meaning: 'The AI agent that performed the action, when one did: its ref, the conversational execution, the actors system and the tool it called. Absent when no agent acted.',\n whyItMatters: 'Lets a reviewer show \"agent X proposed, person Y\\'s authority was used\" from one row. Identifiers only — never the conversation text or the tool\\'s arguments.',\n }),\n delegatingClientId: schemaShape.delegatingClientId.stringSpec({\n meaning: 'The external OAuth client a person delegated to, taken from the verified token when the action came through an A2A or MCP client. Absent for first-party sessions.',\n }),\n principalCredentialId: schemaShape.principalCredentialId.stringSpec({\n meaning: 'The machine credential a machine principal authenticated with: the id of an API key or OAuth client, or, for a shared platform secret that has no credential record, its stable name. Present only when `actorKind` is `machine`.',\n }),\n actingViaServiceProviderRelationshipId: schemaShape.actingViaServiceProviderRelationshipId.stringSpec({\n meaning: 'The service-provider relationship a firm\\'s expert or machine client acted through, on a row written in the client organization it was admitted into. Absent for every other principal.',\n whyItMatters: 'Lets a client answer \"what did the firm do here, and under which relationship?\" from its own trail, and keeps the arrangement visible after the relationship ends.',\n }),\n providerOrganizationId: schemaShape.providerOrganizationId.stringSpec({\n meaning: 'The firm (provider organization) behind `actingViaServiceProviderRelationshipId`; present exactly when it is.',\n }),\n eventData: schemaShape.eventData.objectSpec({\n meaning: 'Event-specific JSON details. Its keys depend on `eventType`; clients must not assume one payload shape across all event types.',\n }),\n riskLevel: schemaShape.riskLevel.enumSpec({\n meaning: 'Resource-operation risk tier for the action that produced this record, when the classifier can map it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ResourceOperationRiskLevel',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ResourceOperationRiskLevel.LOW]: { meaning: 'Low-impact action that still warrants audit in policy.' },\n [ResourceOperationRiskLevel.MEDIUM]: { meaning: 'Moderate risk — policy-sensitive changes or data movement.' },\n [ResourceOperationRiskLevel.HIGH]: { meaning: 'High impact — should stand out in review queues.' },\n [ResourceOperationRiskLevel.CRITICAL]: { meaning: 'Maximum tier — may trigger paging or runbooks when surfaced to operators.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the auditable event was recorded.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one immutable audit event by id, from anywhere in the deployment.',\n outcome: 'The event\\'s classification, actor and origin identifiers, timestamp, risk tier and event-specific details are returned, whether or not it belongs to a tenant.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The audit event was found and is returned. If the row carries an `organizationId`, the read has just been recorded as a cross-tenant access against that tenant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or the independent-approval policy requires an application-wide access grant that the caller does not hold. An organization role never reaches this door, however senior it is within its own tenant.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No audit event exists for the supplied id.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect a sign-in event that belongs to no organization',\n request: { applicationAuditLogId: 'audit_log_01JEXAMPLEB' },\n response: applicationAuditUnattributedEventExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List the deployment\\'s audit events newest-first, optionally narrowing by classification, actor, tenant, correlation, client instance or time window.',\n outcome: 'A paginated page of matching events is returned, up to 100 records per page, spanning every tenant and including events that carry none.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) newest-first page of audit events. One cross-tenant access event is recorded per distinct tenant represented in the page.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or the independent-approval policy requires an application-wide access grant that the caller does not hold.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Review a window of authentication events across the whole deployment',\n request: APPLICATION_AUDIT_LIST_REQUEST,\n response: APPLICATION_AUDIT_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.SEARCH]: {\n purpose: 'Filter the deployment-wide audit trail by structured fields. This operation does not perform free-text search.',\n outcome: 'A paginated page of events matching every supplied filter is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of audit events matching the supplied category, severity, actor, tenant and time-window filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or the independent-approval policy requires an application-wide access grant that the caller does not hold.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Follow one actor across every tenant they touched',\n request: {\n userId: applicationAuditTenantEventExample.userId,\n createdAt: APPLICATION_AUDIT_LIST_REQUEST.createdAt,\n limit: 100,\n sort: 'createdAt:desc',\n },\n response: {\n ...APPLICATION_AUDIT_PAGE,\n pagination: { ...APPLICATION_AUDIT_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n \"Application identity is resolved against the local singleton record. Its local id, platform id and slug select the same historical trail without rewriting stored event identities; an unknown application id is refused. Caller filters still intersect that complete scope. Structured SEARCH requires an empty free-text query.\",\n 'Application audit reads require the application super-administrator role. The default auditTrail.applicationReadAccess policy is role-based in every environment; independent-approval additionally requires a usable, time-bound applicationAccessGrants elevation approved by a different administrator. Both policies preserve scope filtering and cross-tenant read observations. Other application-wide reads retain their grant requirement. Audit records can contain personal data; role-based access does not imply anonymization.',\n 'Every read is recorded. `CROSS_TENANT_ADMINISTRATIVE_ACCESS` is emitted once per tenant whose rows were returned, and lands in that tenant\\'s own organization-scoped trail — so a customer can see that an operator read their events, in the surface they already use. Making an operator read invisible on the audit trail would be the worst possible place to do it.',\n 'Nothing here writes. Audit events cannot be created, updated or deleted through this resource; a correction or reversal is represented by a new event appended through the application\\'s own internal write path, which stays the single writer of the trail.',\n 'A row with no `organizationId` is not an anomaly and must not be treated as one. Login, session eviction, token refresh and application-wide policy changes all legitimately happen outside any tenant selection, and on a measured dogfood application they were the majority of the trail.',\n ],\n }),\n // Mirrors the registry-derived value: the `APPLICATION → APPLICATION_AUDIT_LOGS` relationship\n // carries `isPrimaryScope: true`, so the runtime derives APPLICATION and the spec must agree.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'One human-readable line per event — the WORD for its type (`system_enums.CoreAuditableEventType.<type>`, the value itself while the word is missing) plus the instant — so an operator scanning a cross-tenant trail can orient without opening a row.',\n },\n layout: {\n purpose: 'The same three cards as the tenant trail, under a header that NAMES the event (its type and the instant) — `overview` (classification), `actors` (who and where, each row hidden when empty; on this door a row with no organization is ordinary), `payload` (the structured detail) — because an audit event is the same object whichever door served it. No card carries a description.',\n displayPurpose: 'Read-only list and detail as settings rows; a list card shows the event type, its severity as a badge and who acted, bare, under its day heading. This resource declares no write verb at all, so there is deliberately no edit layout to describe.',\n sections: {\n overview: {\n purpose: 'Category, severity and risk — the event type and instant are the page\\'s name, so the card carries no heading and no row repeats them.',\n whenToUse: 'Summary cards and the top of a detail drawer.',\n textSlots: {\n title: { purpose: 'Label the event\\'s classification (not rendered on the read page, whose header names the event).' },\n },\n },\n actors: {\n purpose: 'User, organization and related actor identifiers when the row carries them.',\n whenToUse: 'Answering \"who was involved\" before reading payload content.',\n textSlots: {\n title: { purpose: 'Label the parties block.' },\n },\n },\n payload: {\n purpose: 'Structured `eventData` and the technical fields the template expands or redacts.',\n whenToUse: 'Deep inspection and incident work, after orientation from overview and actors.',\n textSlots: {\n title: { purpose: 'Label the payload area.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: {\n purpose: 'The addressable application-wide trail: a `severity` quick-filter strip over `createdAt` day buckets, both declared on this operation and therefore resolvable here. This is the view an operator reaches from Settings → Administration → Audit log.',\n whenToUse: 'Attesting the whole deployment, or triaging an incident that is not yet known to belong to one tenant.',\n },\n [Op.SEARCH]: {\n purpose: 'Structured filtering across the same scope for large deployments; the free-text query must be empty, as the resource\\'s own constraint states.',\n whenToUse: 'Narrowing by category, actor, time or severity when the list strip is too coarse.',\n },\n [Op.READ]: {\n purpose: 'Single-event inspection, reached by drilling into a list row rather than by its own route.',\n whenToUse: 'Reading one event in full, including the payload section.',\n },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"application-audit-logs.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/application-audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,2CAA2C,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACnI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,+DAA+D,EAC/D,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,8CAA8C,EAAE,MAAM,6BAA6B,CAAC;AAC3K,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AACxD,MAAM,6BAA6B,GAAG,0BAA0B,CAAC;AACjE,MAAM,gCAAgC,GAAG,wBAAwB,CAAC;AAElE,+FAA+F;AAC/F,MAAM,kCAAkC,GAAG;IACzC,GAAG,EAAE,wBAAwB;IAC7B,OAAO,EAAE,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E,wGAAwG;SACpH;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,gJAAgJ;YACzJ,SAAS,EAAE,mFAAmF;SAC/F;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,4FAA4F;YACrG,SAAS,EAAE,2DAA2D;SACvE;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `applicationAuditLogs` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/compliance/audit-trails/auditable-events.shared.schema.ts\n * → `AuditableEvent_BaseSchema`\n * - Factory: engine/saas-models/src/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.ts\n * → `applicationAuditLogsResourceConfiguration_InitializationFactory`\n * - Custom operations: none.\n *\n * ## Why this exists BESIDE `auditLogs` rather than inside it\n *\n * `auditLogs` is organization-scoped and its only route is\n * `/organizations/{organizationId}/audit-logs`, so it returns exactly the rows carrying that\n * tenant. A large share of security events carry no organization by design — login, session\n * eviction, token refresh and application-wide authentication-policy changes all happen before or\n * outside a tenant selection. Measured on a dogfood application (#317): **94 of 127 rows had no\n * organization**, and were reachable through no API at all. An operator could see 26% of the trail\n * and could not attest the rest.\n *\n * A second ROUTE on the same resource was not available: `generateParentCombinations` composes\n * every URL from the primary scope plus every parent combination, so an application edge on\n * `auditLogs` would rewrite the organization route rather than sit beside it. The reasoning is\n * written out in full on the runtime configuration; this specification does not restate it.\n *\n * ## Two doors, ONE record set — and what that means for a reader of the reference\n *\n * Both resources resolve to the same `auditLogs` collection. So the isolation properties are a\n * per-DOOR obligation rather than a property of the rows, and this door's obligations are the whole\n * reason it is documented separately:\n *\n * - it accepts `APP_ADMIN_SUPER_ADMIN` or the read-only `APP_AUDIT_EVIDENCE_READER` on every operation,\n * and an organization role can never reach it, because the rows behind it span every tenant. The\n * reader exists so an assurance collector or an external auditor reads the trail without holding\n * administrative authority over the application it attests;\n * - every read here is a declared CROSS-TENANT read and emits `CROSS_TENANT_ADMINISTRATIVE_ACCESS`\n * once per tenant the returned rows belong to, so the crossing is visible to the tenant that was\n * reached and not only to the operator who reached it;\n * - reads use the administrator role, and `auditTrail.applicationReadAccess` can require\n * independent approval through a justified, time-bound `applicationAccessGrants` elevation. An\n * application that does not declare it gets its shape's default (#2618): independent approval where\n * the operator is a third party to some relationship kind's parties, the role alone otherwise.\n * This audit-specific policy does not relax other application-wide reads.\n *\n * ## Why there is no CREATE, and no write of any kind\n *\n * The organization resource carries a `REPOSITORY_ONLY` CREATE because that is how audit rows are\n * appended. Writing is not a scope question, so the trail keeps exactly one writer and this door is\n * read-only in every sense — there is no update, no delete, and no second append path.\n *\n * Why backend-only: no preset under `engine/presets-components/src/config/resources/` declares an\n * entry for `[CoreResourceType.APPLICATION_AUDIT_LOGS]`. The operator-facing trail viewer is not\n * built yet; today the resource is reached through the API and the generated reference.\n */\n\nimport { applicationAuditLogsAdminResourceUIBehavior as applicationAuditLogsUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AuditableEvent_BaseSchema,\n AuditEventCategory,\n AuditEventSeverity,\n CoreResourceOperation as Op,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n applicationAuditLogsResourceConfiguration_InitializationFactory,\n AuditActorKind,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_AUDIT_LOG_ID = 'audit_log_01JEXAMPLE';\nconst APPLICATION_AUDIT_TENANT_A_ID = 'organization_01JEXAMPLEA';\nconst APPLICATION_AUDIT_APPLICATION_ID = 'application_01JEXAMPLE';\n\n/** A tenant-attributed row: reading it through this door is the crossing the trail records. */\nconst applicationAuditTenantEventExample = {\n _id: APPLICATION_AUDIT_LOG_ID,\n eventId: 'a5ad8e36-7f34-4f0e-a7f4-1454a7997721',\n userId: 'user_01JEXAMPLE',\n organizationId: APPLICATION_AUDIT_TENANT_A_ID,\n applicationId: APPLICATION_AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLE',\n frontendServiceName: 'app',\n clientInstanceId: 'client_instance_01JEXAMPLE',\n actorKind: AuditActorKind.USER,\n agentActor: { agentRef: 'todo-assistant', agentExecutionId: 'execution_01JEXAMPLE', toolName: 'resource.organizationMembers.update' },\n riskLevel: ResourceOperationRiskLevel.HIGH,\n eventType: 'organization.member.role.changed',\n eventData: {\n targetUserId: 'user_01JTARGET',\n previousRoles: ['ORG_MEMBER'],\n newRoles: ['ORG_ADMIN'],\n },\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n createdAt: '2026-08-20T14:32:10.000Z',\n updatedAt: '2026-08-20T14:32:10.000Z',\n _version: 1,\n} as const;\n\n/**\n * The row shape this door exists for: a real security event carrying NO organization. It is\n * unreachable through the organization door, which is the gap measured in #317.\n */\nconst applicationAuditUnattributedEventExample = {\n _id: 'audit_log_01JEXAMPLEB',\n eventId: '0f2c1b7e-6a51-4a2f-9d4b-7c1f0a3e5d92',\n userId: 'user_01JEXAMPLE',\n applicationId: APPLICATION_AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLEB',\n frontendServiceName: 'app',\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n eventType: 'user.login.succeeded',\n eventData: { method: 'password', mfaMethodsCompleted: ['TOTP'] },\n eventCategory: AuditEventCategory.AUTHENTICATION,\n severity: AuditEventSeverity.INFO,\n createdAt: '2026-08-20T14:29:44.000Z',\n updatedAt: '2026-08-20T14:29:44.000Z',\n _version: 1,\n} as const;\n\nconst APPLICATION_AUDIT_PAGE = {\n data: [applicationAuditUnattributedEventExample, applicationAuditTenantEventExample],\n pagination: { page: 1, limit: 20, total: 2, totalPages: 1 },\n} as const;\n\nconst APPLICATION_AUDIT_LIST_REQUEST = {\n eventCategory: AuditEventCategory.AUTHENTICATION,\n createdAt: {\n startDate: '2026-08-20T00:00:00.000Z',\n endDate: '2026-08-21T00:00:00.000Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc,eventId:desc',\n} as const;\n\ntype Cfg = ReturnType<typeof applicationAuditLogsResourceConfiguration_InitializationFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst applicationAuditLogsUIBehavior = applicationAuditLogsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\n/**\n * Carries the frontend overlay since 2026-09-17. It was `resourceSpecification(...)` alone while the\n * resource had no preset to document — a description of an absence rather than a decision that the\n * application trail should be unreadable. The operator door now renders through the same templates\n * as the tenant one, so the narration below describes a surface that exists.\n */\nexport const applicationAuditLogsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(applicationAuditLogsUIBehavior),\n resourceSpecification(\n applicationAuditLogsResourceConfiguration_InitializationFactory,\n AuditableEvent_BaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Read the application-wide audit trail — every immutable security, access, administration and data event the deployment recorded, including the ones that belong to no single tenant.',\n businessRole: 'The surface an operator, an incident responder or an auditor uses to attest the WHOLE trail. The organization door answers \"what happened in my tenant\"; this one answers \"what happened at all\", which is the only question a deployment-level attestation can be built from.',\n lifecycleRole: 'Read-only in every sense. Events are appended by the application through the organization resource\\'s internal write path, and are never updated or deleted. This door reads and filters them; it has no verb that changes a row.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditableEvent_BaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationAuditLogsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_AUDIT_LOGS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'The schema is SHARED with `auditLogs` (`AuditableEvent_BaseSchema`) and the rows are literally the same rows, resolved through `RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES`. Two doors, one record set — so a field means exactly what it means on the organization resource, and the difference between the two surfaces is entirely in who may open them and what the trail records when they do.',\n 'Every read variant declares `admitsCrossTenantPlatformAdministration`. That declaration is not documentation: it is what ENROLS the read in `ServicesRegistryHandler.recordCrossTenantReadAccess`, and it is also what stops the initiator-organization confinement from silently narrowing this door to one tenant — which would make a surface documented as spanning every tenant return a subset and report success.',\n 'There is no `retentionPolicy` and `systemAccessPolicy.exportSubject` is FORBIDDEN, both mirrored from the organization door on purpose. They are properties of the ROWS, and a second door that disagreed about whether the monitoring trail is subject-exportable would be a policy fork over one record set.',\n ],\n },\n\n fields: {\n eventType: schemaShape.eventType.stringSpec({\n meaning: 'Stable event name identifying what happened, such as a role change or an authentication outcome. A value of the engine\\'s open vocabulary `CoreAuditableEventType`: the field is a string, and screens show the type\\'s word (`system_enums.CoreAuditableEventType.<type>`) rather than the value.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({\n meaning: 'Stable identifier for the event itself. Use it to match the same event across API results, exports and configured external audit sinks.',\n whyItMatters: 'Also the keyset tie-breaker behind this door\\'s sort order. `createdAt` is not unique under boot and seed bursts, so paging without it can skip or repeat rows — which on an audit trail is silent evidence loss rather than a display glitch.',\n }),\n correlationId: schemaShape.correlationId.stringSpec({\n meaning: 'Identifier shared by every event and operational record produced by one request or background execution.',\n whyItMatters: 'The join an investigation actually uses. It reaches across tenants, so it is far more useful through this door than through the organization one, where the other half of a sequence may simply be invisible.',\n }),\n eventCategory: schemaShape.eventCategory.enumSpec({\n meaning: 'High-level area for navigation, filters and export groupings, assigned by the service classifier when the event is recorded.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventCategory',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventCategory.AUTHENTICATION]: { meaning: 'Sign-in, session and credential events. The category most likely to carry no organization, and therefore the one this door exists to make readable.' },\n [AuditEventCategory.AUTHORIZATION]: { meaning: 'Access control and policy evaluation outcomes when classified here.' },\n [AuditEventCategory.USER_LIFECYCLE]: { meaning: 'User profile and account lifecycle when classified here.' },\n [AuditEventCategory.ORG_MANAGEMENT]: { meaning: 'Org structure, membership and org-scoped security configuration changes when classified here.' },\n [AuditEventCategory.DATA_ACCESS]: { meaning: 'Sensitive or tracked data read, write and export when classified here.' },\n },\n }),\n severity: schemaShape.severity.enumSpec({\n meaning: 'Triage level for a record, assigned with `eventCategory` by the service classifier.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventSeverity',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventSeverity.INFO]: { meaning: 'Normal operational or informational records.' },\n [AuditEventSeverity.WARNING]: { meaning: 'Notable but not always urgent — worth review when scanning.' },\n [AuditEventSeverity.CRITICAL]: { meaning: 'Escalation-tier events in triage and export filters.' },\n },\n }),\n userId: schemaShape.userId.stringSpec({\n meaning: 'Acting user when known, as the id the row recorded; empty for system-only events, or an actor sentinel (`system`, `machine`, `unattributed`). Shown only when `userName` names nobody.',\n semanticRole: 'identifier',\n }),\n userName: schemaShape.userName.stringSpec({\n meaning: 'The person `userId` names, by the name on their profile, resolved when the event is read and never stored (`forwardedUserName`, #1792). Absent when no profile names that id: the person was erased, `userId` holds a sentinel such as `system`, or the person has no profile name; the row then shows the id it recorded. Never the person\\'s email. Absent from the bounded export and from every SIEM feed, which carry the row as stored.',\n whyItMatters: 'Answers \"who did this?\" in words a reviewer can read. The trail keeps only the id, so an erasure leaves no copy of the name in the evidence, and the name is computed inside the read this door already admitted, over an id on a row the caller may read.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The `organizations` record that owns the tenant context of this event, when one does.',\n whyItMatters: 'Filterable here, and its ABSENCE is the point of this resource: a row with no `organizationId` is reachable through no organization route, so before this door existed it could be written and never read. Narrowing by it is an investigative convenience and never an isolation boundary — the boundary on this door is the administrator role and configured audit-read policy, and a read narrowed to one tenant is still a cross-tenant read for audit purposes.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationName: schemaShape.organizationName.stringSpec({\n meaning: 'The organization `organizationId` names, by its name, resolved when the event is read and never stored (#3445). Absent when no organization row names that id (deleted and purged); the row then shows the id. On this door the reader already sees every tenant\\'s people by name (#1792), a stronger disclosure than a tenant\\'s name. Absent from the bounded export and from every SIEM feed.',\n whyItMatters: 'Answers \"about which organization?\" in words a reviewer can read, while the trail keeps only the id it recorded.',\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The `applications` record this event belongs to — the scope anchor for this door.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n frontendServiceName: schemaShape.frontendServiceName.stringSpec({\n meaning: 'Frontend surface the action originated from, when the event came from an interactive request. Absent for background or internal activity.',\n }),\n clientInstanceId: schemaShape.clientInstanceId.stringSpec({\n meaning: 'Optional pseudonymous browser or device-install identifier, used to group activity across sessions when client-instance collection is enabled for the application.',\n whyItMatters: 'One of the few ways to follow one actor across tenants and across sessions, which is exactly the shape of investigation this door serves.',\n }),\n actorKind: schemaShape.actorKind.enumSpec({\n meaning: 'The kind of principal whose authority the action used: a signed-in user, a user acting through an external client they delegated to, a machine credential, the application itself, or nobody the trail could resolve.',\n whyItMatters: 'Answers \"under whose authority?\" without joining anything. It is never an agent: an agent always acts under one of these principals, and `agentActor` says when it did. `unattributed` is the value to alert on.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditActorKind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditActorKind.USER]: { meaning: 'A signed-in person acting through a first-party session; `userId` is that person.' },\n [AuditActorKind.DELEGATED_CLIENT]: { meaning: 'A person\\'s authority exercised by an external OAuth client they delegated to (A2A or MCP); `delegatingClientId` names the client.' },\n [AuditActorKind.MACHINE]: { meaning: 'An organization or application machine credential; `principalCredentialId` names it.' },\n [AuditActorKind.SYSTEM]: { meaning: 'The application acting on its own behalf by design — a batch, a cron job, an internal workflow, or its handling of a verified provider webhook or inbound delivery.' },\n [AuditActorKind.UNATTRIBUTED]: { meaning: 'A principal was expected and could not be resolved — the anomaly worth investigating.' },\n [AuditActorKind.UNAUTHENTICATED]: { meaning: 'No principal was proven, by design — a sign-in or machine-authentication attempt, a public operation, an anonymous session. Expected on these events; an alert only on events that require one.' },\n },\n }),\n agentActor: schemaShape.agentActor.objectSpec({\n meaning: 'The AI agent that performed the action, when one did: its ref, the conversational execution, the actors system and the tool it called. Absent when no agent acted.',\n whyItMatters: 'Lets a reviewer show \"agent X proposed, person Y\\'s authority was used\" from one row. Identifiers only — never the conversation text or the tool\\'s arguments.',\n }),\n delegatingClientId: schemaShape.delegatingClientId.stringSpec({\n meaning: 'The external OAuth client a person delegated to, taken from the verified token when the action came through an A2A or MCP client. Absent for first-party sessions.',\n }),\n delegatingClientName: schemaShape.delegatingClientName.stringSpec({\n meaning: 'The external client `delegatingClientId` names, by the name it is registered under, resolved at read time as the authorization server resolves a client id (the organization\\'s clients, then the application\\'s). Absent, so the id shows, for a client identified by an HTTPS URL, for a SELF-REGISTERED client (its name is its own claim, never identity evidence), for one since deleted, and for another organization\\'s client (another tenant\\'s row) (#3445).',\n }),\n arrivedThroughInboundSourceKey: schemaShape.arrivedThroughInboundSourceKey.stringSpec({\n meaning: 'The inbound source the action arrived through, as `provider:endpoint` (`slack:events`, `microsoft-teams-bot:messages`): present when a stored inbound delivery caused it, such as a decision answered from a chat card, a turn an agent ran for a chat message, or a handler\\'s own writes. Absent for an action taken in the application.',\n }),\n arrivedThroughInboundDeliveryId: schemaShape.arrivedThroughInboundDeliveryId.stringSpec({\n meaning: 'The stored inbound delivery the action arrived through, present exactly when `arrivedThroughInboundSourceKey` is. Every action one message caused carries the same id, so filtering on it shows all of them.',\n }),\n principalCredentialId: schemaShape.principalCredentialId.stringSpec({\n meaning: 'The machine credential a machine principal authenticated with: the id of an API key or OAuth client, or, for a shared platform secret that has no credential record, its stable name. Present only when `actorKind` is `machine`.',\n }),\n principalCredentialKind: schemaShape.principalCredentialKind.stringSpec({\n meaning: 'Which kind of credential `principalCredentialId` names, recorded by the engine beside the id from the credential\\'s authentication method and the machine\\'s execution type (#3445): `organization_api_key`, `application_api_key`, `organization_oauth_client` or `application_oauth_client` (the `AuditMachineCredentialKind` vocabulary, shown by its words). Absent where neither is known (a shared platform secret, a platform service\\'s own key) and on rows written before it existed. A string rather than a closed enum, because an audit row keeps the value it recorded.',\n whyItMatters: 'An id alone does not say which of four resources holds the credential; reading it from the recorded kind is what lets the trail name the credential without guessing.',\n }),\n principalCredentialName: schemaShape.principalCredentialName.stringSpec({\n meaning: 'The credential `principalCredentialId` names, by the name its owner gave it, read from the one resource `principalCredentialKind` says it lives in, at read time and never stored (#3445). Absent, so the id shows, on a row that recorded no kind, for a credential since deleted and for a self-registered OAuth client. An organization\\'s credential is named only on that organization\\'s own rows: a representing organization\\'s machine client acting in a granting organization shows its id, since its name is another tenant\\'s row. The application\\'s credentials are named wherever they acted, as the operator is.',\n }),\n routedOrganizationIds: schemaShape.routedOrganizationIds.arraySpec({\n meaning: 'The organizations whose per-organization audit sinks (the SIEM export) this event was dispatched to, as the engine decided from the authenticated request, plus the organization whose retired SIEM destination received it (#2959). Written by the engine, never by an emitter; empty when the event routed nowhere. Backend-only: never in a read, the bounded export, a subject export or a SIEM envelope.',\n elementMeaning: 'One organization id the event was routed to.',\n whyItMatters: 'A SIEM dead letter that failed its integrity check carries an envelope and a scope nobody vouched for, so its retry re-derives the event from this row and delivers it only to an organization listed here. `organizationId` cannot answer that: it is the tenant the event is about, which a caller can influence.',\n }),\n actingViaRelationshipId: schemaShape.actingViaRelationshipId.stringSpec({\n meaning: 'The organization relationship a representative or admitted machine client acted through, on a row written in the granting organization it was admitted into. Absent for every other principal.',\n whyItMatters: 'Lets a granting organization answer \"what did the representing organization do here, and under which relationship?\" from its own trail, and keeps the arrangement visible after the relationship ends.',\n }),\n actingViaRelationshipKind: schemaShape.actingViaRelationshipKind.stringSpec({\n meaning: 'The kind of the relationship `actingViaRelationshipId` names, shown by its word beside the relationship\\'s id (a kind is a category, not the relationship\\'s identity), read from the relationship at read time and never stored (#3445). Absent once the relationship is gone.',\n }),\n representingOrganizationId: schemaShape.representingOrganizationId.stringSpec({\n meaning: 'The representing organization behind `actingViaRelationshipId`; present exactly when it is.',\n }),\n representingOrganizationName: schemaShape.representingOrganizationName.stringSpec({\n meaning: 'The representing organization\\'s name, read at read time from the relationship the act went through (the granting organization\\'s own copy, taken at the proposal), never from the representing organization\\'s own row, which the granting organization cannot read (#3445). Absent, so the id shows, once the relationship is gone.',\n }),\n eventData: schemaShape.eventData.objectSpec({\n meaning: 'Event-specific JSON details. Its keys depend on `eventType`; clients must not assume one payload shape across all event types.',\n }),\n riskLevel: schemaShape.riskLevel.enumSpec({\n meaning: 'Resource-operation risk tier for the action that produced this record, when the classifier can map it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ResourceOperationRiskLevel',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ResourceOperationRiskLevel.LOW]: { meaning: 'Low-impact action that still warrants audit in policy.' },\n [ResourceOperationRiskLevel.MEDIUM]: { meaning: 'Moderate risk — policy-sensitive changes or data movement.' },\n [ResourceOperationRiskLevel.HIGH]: { meaning: 'High impact — should stand out in review queues.' },\n [ResourceOperationRiskLevel.CRITICAL]: { meaning: 'Maximum tier — may trigger paging or runbooks when surfaced to operators.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the auditable event was recorded.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one immutable audit event by id, from anywhere in the deployment.',\n outcome: 'The event\\'s classification, actor and origin identifiers, timestamp, risk tier and event-specific details are returned, whether or not it belongs to a tenant.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The audit event was found and is returned. If the row carries an `organizationId`, the read has just been recorded as a cross-tenant access against that tenant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or the independent-approval policy requires an application-wide access grant that the caller does not hold. An organization role never reaches this door, however senior it is within its own tenant.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No audit event exists for the supplied id.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect a sign-in event that belongs to no organization',\n request: { applicationAuditLogId: 'audit_log_01JEXAMPLEB' },\n response: applicationAuditUnattributedEventExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List the deployment\\'s audit events newest-first, optionally narrowing by classification, actor, tenant, correlation, client instance or time window.',\n outcome: 'A paginated page of matching events is returned, up to 100 records per page, spanning every tenant and including events that carry none.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) newest-first page of audit events. One cross-tenant access event is recorded per distinct tenant represented in the page.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or the independent-approval policy requires an application-wide access grant that the caller does not hold.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Review a window of authentication events across the whole deployment',\n request: APPLICATION_AUDIT_LIST_REQUEST,\n response: APPLICATION_AUDIT_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.SEARCH]: {\n purpose: 'Filter the deployment-wide audit trail by structured fields. This operation does not perform free-text search.',\n outcome: 'A paginated page of events matching every supplied filter is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of audit events matching the supplied category, severity, actor, tenant and time-window filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or the independent-approval policy requires an application-wide access grant that the caller does not hold.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Follow one actor across every tenant they touched',\n request: {\n userId: applicationAuditTenantEventExample.userId,\n createdAt: APPLICATION_AUDIT_LIST_REQUEST.createdAt,\n limit: 100,\n sort: 'createdAt:desc',\n },\n response: {\n ...APPLICATION_AUDIT_PAGE,\n pagination: { ...APPLICATION_AUDIT_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n \"Application identity is resolved against the local singleton record. Its local id, platform id and slug select the same historical trail without rewriting stored event identities; an unknown application id is refused. Caller filters still intersect that complete scope. Structured SEARCH requires an empty free-text query.\",\n 'Application audit reads require the application super-administrator role. The auditTrail.applicationReadAccess policy, when the application does not declare it, follows its shape in every environment (#2618): independent-approval where the operator is a third party to some relationship kind\\'s parties (the type that owns the application represents nobody in that kind), role-based otherwise. Independent-approval additionally requires a usable, time-bound applicationAccessGrants elevation approved by a different administrator. Both policies preserve scope filtering and cross-tenant read observations. Other application-wide reads retain their grant requirement. Audit records can contain personal data; role-based access does not imply anonymization.',\n 'Every read is recorded. `cross_tenant_administrative_access` is emitted once per tenant whose rows were returned, and lands in that tenant\\'s own organization-scoped trail — so a customer can see that an operator read their events, in the surface they already use. Making an operator read invisible on the audit trail would be the worst possible place to do it.',\n 'Nothing here writes. Audit events cannot be created, updated or deleted through this resource; a correction or reversal is represented by a new event appended through the application\\'s own internal write path, which stays the single writer of the trail.',\n 'A row with no `organizationId` is not an anomaly and must not be treated as one. Login, session eviction, token refresh and application-wide policy changes all legitimately happen outside any tenant selection, and on a measured dogfood application they were the majority of the trail.',\n ],\n }),\n // Mirrors the registry-derived value: the `APPLICATION → APPLICATION_AUDIT_LOGS` relationship\n // carries `isPrimaryScope: true`, so the runtime derives APPLICATION and the spec must agree.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'One human-readable line per event — the WORD for its type (`system_enums.CoreAuditableEventType.<type>`, the value itself while the word is missing) plus the instant — so an operator scanning a cross-tenant trail can orient without opening a row.',\n },\n layout: {\n purpose: 'The same three cards as the tenant trail, under a header that NAMES the event (its type and the instant) — `overview` (classification), `actors` (who and where, each row hidden when empty; on this door a row with no organization is ordinary), `payload` (the structured detail) — because an audit event is the same object whichever door served it. No card carries a description.',\n displayPurpose: 'Read-only list and detail as settings rows; a list card shows the event type, its severity as a badge and who acted, bare (the kind of principal and, when a person acted and has a name, that person, #1792), under its day heading. This resource declares no write verb at all, so there is deliberately no edit layout to describe.',\n sections: {\n overview: {\n purpose: 'Category, severity and risk — the event type and instant are the page\\'s name, so the card carries no heading and no row repeats them.',\n whenToUse: 'Summary cards and the top of a detail drawer.',\n textSlots: {\n title: { purpose: 'Label the event\\'s classification (not rendered on the read page, whose header names the event).' },\n },\n },\n actors: {\n purpose: 'Who acted: the kind of principal, the person by name (and the id the row recorded only where no name resolves), the agent, client or machine credential involved, and the organizations and relationship the act went through.',\n whenToUse: 'Answering \"who was involved\" before reading payload content.',\n textSlots: {\n title: { purpose: 'Label the parties block.' },\n },\n },\n payload: {\n purpose: 'Structured `eventData` and the technical fields the template expands or redacts.',\n whenToUse: 'Deep inspection and incident work, after orientation from overview and actors.',\n textSlots: {\n title: { purpose: 'Label the payload area.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: {\n purpose: 'The addressable application-wide trail: a `severity` quick-filter strip over `createdAt` day buckets, both declared on this operation and therefore resolvable here. This is the view an operator reaches from Settings → Administration → Audit log.',\n whenToUse: 'Attesting the whole deployment, or triaging an incident that is not yet known to belong to one tenant.',\n },\n [Op.SEARCH]: {\n purpose: 'Structured filtering across the same scope for large deployments; the free-text query must be empty, as the resource\\'s own constraint states.',\n whenToUse: 'Narrowing by category, actor, time or severity when the list strip is too coarse.',\n },\n [Op.READ]: {\n purpose: 'Single-event inspection, reached by drilling into a list row rather than by its own route.',\n whenToUse: 'Reading one event in full, including the payload section.',\n },\n },\n }),\n);\n"]}