@wildo-ai/saas-models 1.1.8 → 1.1.10

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 (951) hide show
  1. package/dist/esm/_inspect.d.ts.map +1 -1
  2. package/dist/esm/_inspect.js.map +1 -1
  3. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.d.ts.map +1 -1
  4. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.js.map +1 -1
  5. package/dist/esm/applications/application-subject.shared.schemas.d.ts.map +1 -1
  6. package/dist/esm/applications/application-subject.shared.schemas.js.map +1 -1
  7. package/dist/esm/applications/application-versions.shared.resources-config.schemas.d.ts.map +1 -1
  8. package/dist/esm/applications/application-versions.shared.resources-config.schemas.js.map +1 -1
  9. package/dist/esm/applications/applications-context.schemas.d.ts +68 -2
  10. package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
  11. package/dist/esm/applications/applications-context.schemas.js.map +1 -1
  12. package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
  13. package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
  14. package/dist/esm/applications/applications.shared.schemas.d.ts.map +1 -1
  15. package/dist/esm/applications/applications.shared.schemas.js.map +1 -1
  16. package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts.map +1 -1
  17. package/dist/esm/billing/billing-account.shared.resources-config.schemas.js.map +1 -1
  18. package/dist/esm/billing/billing-account.shared.schemas.d.ts.map +1 -1
  19. package/dist/esm/billing/billing-account.shared.schemas.js.map +1 -1
  20. package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
  21. package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
  22. package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
  23. package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
  24. package/dist/esm/billing/billing-types.shared.schemas.d.ts.map +1 -1
  25. package/dist/esm/billing/billing-types.shared.schemas.js.map +1 -1
  26. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts.map +1 -1
  27. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js.map +1 -1
  28. package/dist/esm/billing/credit-pool.shared.schemas.d.ts.map +1 -1
  29. package/dist/esm/billing/credit-pool.shared.schemas.js.map +1 -1
  30. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts.map +1 -1
  31. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js.map +1 -1
  32. package/dist/esm/billing/invoice-ref.shared.schemas.d.ts.map +1 -1
  33. package/dist/esm/billing/invoice-ref.shared.schemas.js.map +1 -1
  34. package/dist/esm/billing/price.shared.resources-config.schemas.d.ts.map +1 -1
  35. package/dist/esm/billing/price.shared.resources-config.schemas.js.map +1 -1
  36. package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
  37. package/dist/esm/billing/price.shared.schemas.js.map +1 -1
  38. package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts.map +1 -1
  39. package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
  40. package/dist/esm/billing/product-definition.shared.schemas.d.ts.map +1 -1
  41. package/dist/esm/billing/product-definition.shared.schemas.js.map +1 -1
  42. package/dist/esm/billing/product.shared.resources-config.schemas.d.ts.map +1 -1
  43. package/dist/esm/billing/product.shared.resources-config.schemas.js.map +1 -1
  44. package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
  45. package/dist/esm/billing/product.shared.schemas.js.map +1 -1
  46. package/dist/esm/billing/promotions.shared.resources-config.schemas.d.ts.map +1 -1
  47. package/dist/esm/billing/promotions.shared.resources-config.schemas.js.map +1 -1
  48. package/dist/esm/billing/promotions.shared.schemas.d.ts.map +1 -1
  49. package/dist/esm/billing/promotions.shared.schemas.js.map +1 -1
  50. package/dist/esm/billing/public-pricing-catalog.shared.atoms.d.ts.map +1 -1
  51. package/dist/esm/billing/public-pricing-catalog.shared.atoms.js.map +1 -1
  52. package/dist/esm/billing/public-pricing-catalog.shared.d.ts.map +1 -1
  53. package/dist/esm/billing/public-pricing-catalog.shared.js.map +1 -1
  54. package/dist/esm/billing/referral-reward.shared.schemas.d.ts.map +1 -1
  55. package/dist/esm/billing/referral-reward.shared.schemas.js.map +1 -1
  56. package/dist/esm/billing/referral.shared.resources-config.schemas.d.ts.map +1 -1
  57. package/dist/esm/billing/referral.shared.resources-config.schemas.js.map +1 -1
  58. package/dist/esm/billing/referral.shared.schemas.d.ts.map +1 -1
  59. package/dist/esm/billing/referral.shared.schemas.js.map +1 -1
  60. package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts.map +1 -1
  61. package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
  62. package/dist/esm/billing/subscription.shared.schemas.d.ts.map +1 -1
  63. package/dist/esm/billing/subscription.shared.schemas.js.map +1 -1
  64. package/dist/esm/billing/usage-flush-evidence.shared.schemas.d.ts.map +1 -1
  65. package/dist/esm/billing/usage-flush-evidence.shared.schemas.js.map +1 -1
  66. package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts.map +1 -1
  67. package/dist/esm/billing/usage-record.shared.resources-config.schemas.js.map +1 -1
  68. package/dist/esm/billing/usage-record.shared.schemas.d.ts.map +1 -1
  69. package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
  70. package/dist/esm/charts/aggregation-query.shared.schemas.d.ts.map +1 -1
  71. package/dist/esm/charts/aggregation-query.shared.schemas.js.map +1 -1
  72. package/dist/esm/charts/aggregation.shared.definitions.d.ts.map +1 -1
  73. package/dist/esm/charts/aggregation.shared.definitions.js.map +1 -1
  74. package/dist/esm/charts/chart-definition-builder.shared.d.ts.map +1 -1
  75. package/dist/esm/charts/chart-definition-builder.shared.js.map +1 -1
  76. package/dist/esm/companion/artifact-placement.shared.definitions.d.ts.map +1 -1
  77. package/dist/esm/companion/artifact-placement.shared.definitions.js.map +1 -1
  78. package/dist/esm/companion/provider-discovery.shared.schemas.d.ts +13 -0
  79. package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -1
  80. package/dist/esm/companion/provider-discovery.shared.schemas.js +13 -0
  81. package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -1
  82. package/dist/esm/companion/shared-library-companion.shared.definitions.d.ts.map +1 -1
  83. package/dist/esm/companion/shared-library-companion.shared.definitions.js.map +1 -1
  84. package/dist/esm/companion-exports.d.ts.map +1 -1
  85. package/dist/esm/companion-exports.js.map +1 -1
  86. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts +1 -1
  87. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
  88. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js +5 -2
  89. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js.map +1 -1
  90. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.d.ts.map +1 -1
  91. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.js.map +1 -1
  92. package/dist/esm/compliance/audit-trails/audit-event-classification.shared.d.ts +28 -0
  93. package/dist/esm/compliance/audit-trails/audit-event-classification.shared.d.ts.map +1 -0
  94. package/dist/esm/compliance/audit-trails/audit-event-classification.shared.js +30 -0
  95. package/dist/esm/compliance/audit-trails/audit-event-classification.shared.js.map +1 -0
  96. package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.d.ts.map +1 -1
  97. package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.js.map +1 -1
  98. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.d.ts.map +1 -1
  99. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.js.map +1 -1
  100. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts +1 -1
  101. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
  102. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js +2 -1
  103. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js.map +1 -1
  104. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts +20 -0
  105. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts.map +1 -1
  106. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js +40 -0
  107. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js.map +1 -1
  108. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts +1 -14
  109. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts.map +1 -1
  110. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js +1 -16
  111. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js.map +1 -1
  112. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts +17 -4
  113. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts.map +1 -1
  114. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js +25 -5
  115. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
  116. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.d.ts.map +1 -1
  117. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.js.map +1 -1
  118. package/dist/esm/compliance/documents/governed-document-interactions.shared.schemas.d.ts.map +1 -1
  119. package/dist/esm/compliance/documents/governed-document-interactions.shared.schemas.js.map +1 -1
  120. package/dist/esm/compliance/documents/governed-documents.shared.schemas.d.ts +0 -50
  121. package/dist/esm/compliance/documents/governed-documents.shared.schemas.d.ts.map +1 -1
  122. package/dist/esm/compliance/documents/governed-documents.shared.schemas.js +4 -51
  123. package/dist/esm/compliance/documents/governed-documents.shared.schemas.js.map +1 -1
  124. package/dist/esm/compliance/documents/public-governed-documents.shared.d.ts +67 -0
  125. package/dist/esm/compliance/documents/public-governed-documents.shared.d.ts.map +1 -0
  126. package/dist/esm/compliance/documents/public-governed-documents.shared.js +69 -0
  127. package/dist/esm/compliance/documents/public-governed-documents.shared.js.map +1 -0
  128. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.resources-config.schemas.d.ts.map +1 -1
  129. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.resources-config.schemas.js.map +1 -1
  130. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.schemas.d.ts.map +1 -1
  131. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.schemas.js.map +1 -1
  132. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.d.ts.map +1 -1
  133. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.js.map +1 -1
  134. package/dist/esm/compliance/privacy/capability-consent-purposes.shared.utils.d.ts.map +1 -1
  135. package/dist/esm/compliance/privacy/capability-consent-purposes.shared.utils.js.map +1 -1
  136. package/dist/esm/compliance/privacy/client-storage.shared.schemas.d.ts.map +1 -1
  137. package/dist/esm/compliance/privacy/client-storage.shared.schemas.js.map +1 -1
  138. package/dist/esm/compliance/privacy/consent-gate-vocabulary.shared.schemas.d.ts.map +1 -1
  139. package/dist/esm/compliance/privacy/consent-gate-vocabulary.shared.schemas.js.map +1 -1
  140. package/dist/esm/compliance/privacy/consent-purposes.shared.d.ts.map +1 -1
  141. package/dist/esm/compliance/privacy/consent-purposes.shared.js.map +1 -1
  142. package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.d.ts.map +1 -1
  143. package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.js +1 -1
  144. package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.js.map +1 -1
  145. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts.map +1 -1
  146. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js.map +1 -1
  147. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts.map +1 -1
  148. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js.map +1 -1
  149. package/dist/esm/compliance/privacy/jurisdiction-containment.shared.d.ts +32 -0
  150. package/dist/esm/compliance/privacy/jurisdiction-containment.shared.d.ts.map +1 -0
  151. package/dist/esm/compliance/privacy/jurisdiction-containment.shared.js +46 -0
  152. package/dist/esm/compliance/privacy/jurisdiction-containment.shared.js.map +1 -0
  153. package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.d.ts.map +1 -1
  154. package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.js.map +1 -1
  155. package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.d.ts.map +1 -1
  156. package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.js.map +1 -1
  157. package/dist/esm/compliance/privacy/legal-holds.shared.schemas.d.ts.map +1 -1
  158. package/dist/esm/compliance/privacy/legal-holds.shared.schemas.js.map +1 -1
  159. package/dist/esm/compliance/privacy/legal-notice-obligation.shared.d.ts +47 -0
  160. package/dist/esm/compliance/privacy/legal-notice-obligation.shared.d.ts.map +1 -0
  161. package/dist/esm/compliance/privacy/legal-notice-obligation.shared.js +54 -0
  162. package/dist/esm/compliance/privacy/legal-notice-obligation.shared.js.map +1 -0
  163. package/dist/esm/compliance/privacy/legal-notice.shared.d.ts +105 -0
  164. package/dist/esm/compliance/privacy/legal-notice.shared.d.ts.map +1 -0
  165. package/dist/esm/compliance/privacy/legal-notice.shared.js +112 -0
  166. package/dist/esm/compliance/privacy/legal-notice.shared.js.map +1 -0
  167. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts +1 -27
  168. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts.map +1 -1
  169. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js +2 -41
  170. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js.map +1 -1
  171. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts +83 -1
  172. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts.map +1 -1
  173. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js +97 -0
  174. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js.map +1 -1
  175. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.d.ts.map +1 -1
  176. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.js.map +1 -1
  177. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.d.ts.map +1 -1
  178. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.js.map +1 -1
  179. package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
  180. package/dist/esm/compliance/privacy/privacy.shared.schemas.js.map +1 -1
  181. package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.d.ts.map +1 -1
  182. package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.js.map +1 -1
  183. package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.d.ts.map +1 -1
  184. package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.js.map +1 -1
  185. package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts.map +1 -1
  186. package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
  187. package/dist/esm/compliance/privacy/retention-binding.shared.utils.d.ts.map +1 -1
  188. package/dist/esm/compliance/privacy/retention-binding.shared.utils.js.map +1 -1
  189. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.d.ts.map +1 -1
  190. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.js.map +1 -1
  191. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.d.ts +8 -8
  192. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.d.ts.map +1 -1
  193. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.js.map +1 -1
  194. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.d.ts.map +1 -1
  195. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.js.map +1 -1
  196. package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.d.ts.map +1 -1
  197. package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.js.map +1 -1
  198. package/dist/esm/compliance/privacy/sharing.shared.schemas.d.ts.map +1 -1
  199. package/dist/esm/compliance/privacy/sharing.shared.schemas.js.map +1 -1
  200. package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.d.ts.map +1 -1
  201. package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.js.map +1 -1
  202. package/dist/esm/compliance/privacy/subject-erasure-lane-evidence.shared.schemas.d.ts.map +1 -1
  203. package/dist/esm/compliance/privacy/subject-erasure-lane-evidence.shared.schemas.js.map +1 -1
  204. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.d.ts.map +1 -1
  205. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.js.map +1 -1
  206. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.d.ts.map +1 -1
  207. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.js.map +1 -1
  208. package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -1
  209. package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -1
  210. package/dist/esm/compliance/review-cadence.shared.schemas.d.ts.map +1 -1
  211. package/dist/esm/compliance/review-cadence.shared.schemas.js.map +1 -1
  212. package/dist/esm/compliance/risk-posture.shared.schemas.d.ts +15 -3
  213. package/dist/esm/compliance/risk-posture.shared.schemas.d.ts.map +1 -1
  214. package/dist/esm/compliance/risk-posture.shared.schemas.js +14 -2
  215. package/dist/esm/compliance/risk-posture.shared.schemas.js.map +1 -1
  216. package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
  217. package/dist/esm/config/analytics-value-moments.shared.schemas.js.map +1 -1
  218. package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts +63 -1
  219. package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
  220. package/dist/esm/config/app-configuration-shared.shared.schemas.js +11 -0
  221. package/dist/esm/config/app-configuration-shared.shared.schemas.js.map +1 -1
  222. package/dist/esm/config/app-frontend-type.shared.schemas.d.ts.map +1 -1
  223. package/dist/esm/config/app-frontend-type.shared.schemas.js.map +1 -1
  224. package/dist/esm/config/auth-config-resolution.shared.utils.d.ts.map +1 -1
  225. package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
  226. package/dist/esm/config/brand-assets.shared.schemas.d.ts.map +1 -1
  227. package/dist/esm/config/brand-assets.shared.schemas.js.map +1 -1
  228. package/dist/esm/config/configuration-validation.shared.schemas.d.ts.map +1 -1
  229. package/dist/esm/config/configuration-validation.shared.schemas.js.map +1 -1
  230. package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
  231. package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
  232. package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts +16 -16
  233. package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts.map +1 -1
  234. package/dist/esm/config/frontend/chart-definition.shared.schemas.js.map +1 -1
  235. package/dist/esm/config/frontend/chart-registration-alignment.shared.d.ts.map +1 -1
  236. package/dist/esm/config/frontend/chart-registration-alignment.shared.js.map +1 -1
  237. package/dist/esm/config/frontend/navigation.shared.schemas.d.ts.map +1 -1
  238. package/dist/esm/config/frontend/navigation.shared.schemas.js.map +1 -1
  239. package/dist/esm/config/frontend/onboarding.shared.schemas.d.ts.map +1 -1
  240. package/dist/esm/config/frontend/onboarding.shared.schemas.js.map +1 -1
  241. package/dist/esm/config/postgresql.shared.schemas.d.ts.map +1 -1
  242. package/dist/esm/config/postgresql.shared.schemas.js.map +1 -1
  243. package/dist/esm/config/registration-acquisition-policy.shared.utils.d.ts.map +1 -1
  244. package/dist/esm/config/registration-acquisition-policy.shared.utils.js.map +1 -1
  245. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  246. package/dist/esm/config-authoring.entry.js.map +1 -1
  247. package/dist/esm/crdt/crdt-merge.shared.utils.d.ts.map +1 -1
  248. package/dist/esm/crdt/crdt-merge.shared.utils.js.map +1 -1
  249. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.d.ts.map +1 -1
  250. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.js.map +1 -1
  251. package/dist/esm/errors/caught-error-description.shared.utils.d.ts +5 -1
  252. package/dist/esm/errors/caught-error-description.shared.utils.d.ts.map +1 -1
  253. package/dist/esm/errors/caught-error-description.shared.utils.js +48 -4
  254. package/dist/esm/errors/caught-error-description.shared.utils.js.map +1 -1
  255. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts.map +1 -1
  256. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
  257. package/dist/esm/errors/errors.shared.definitions.d.ts.map +1 -1
  258. package/dist/esm/errors/errors.shared.definitions.js.map +1 -1
  259. package/dist/esm/errors/errors.shared.schemas.d.ts.map +1 -1
  260. package/dist/esm/errors/errors.shared.schemas.js.map +1 -1
  261. package/dist/esm/errors/errors.shared.utils.d.ts.map +1 -1
  262. package/dist/esm/errors/errors.shared.utils.js.map +1 -1
  263. package/dist/esm/errors/resource-access-forbidden.shared.error.d.ts.map +1 -1
  264. package/dist/esm/errors/resource-access-forbidden.shared.error.js.map +1 -1
  265. package/dist/esm/errors/thrown-value-description.shared.utils.d.ts.map +1 -1
  266. package/dist/esm/errors/thrown-value-description.shared.utils.js.map +1 -1
  267. package/dist/esm/errors/zod-issue-formatting.shared.utils.d.ts.map +1 -1
  268. package/dist/esm/errors/zod-issue-formatting.shared.utils.js.map +1 -1
  269. package/dist/esm/exports/tabular-csv.shared.utils.d.ts.map +1 -1
  270. package/dist/esm/exports/tabular-csv.shared.utils.js.map +1 -1
  271. package/dist/esm/external-data/external-data-pipeline-description.shared.d.ts.map +1 -1
  272. package/dist/esm/external-data/external-data-pipeline-description.shared.js.map +1 -1
  273. package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.d.ts.map +1 -1
  274. package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.js.map +1 -1
  275. package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts.map +1 -1
  276. package/dist/esm/external-data/external-data-pipeline.shared.schemas.js.map +1 -1
  277. package/dist/esm/external-data/external-data-provenance.shared.d.ts.map +1 -1
  278. package/dist/esm/external-data/external-data-provenance.shared.js.map +1 -1
  279. package/dist/esm/external-data.exports.d.ts.map +1 -1
  280. package/dist/esm/external-data.exports.js.map +1 -1
  281. package/dist/esm/external-providers/compose-provider-registry.shared.d.ts.map +1 -1
  282. package/dist/esm/external-providers/compose-provider-registry.shared.js.map +1 -1
  283. package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -1
  284. package/dist/esm/external-providers/engine-capabilities.shared.schemas.js.map +1 -1
  285. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts.map +1 -1
  286. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -1
  287. package/dist/esm/external-providers/engine-capability-surface.shared.d.ts.map +1 -1
  288. package/dist/esm/external-providers/engine-capability-surface.shared.js.map +1 -1
  289. package/dist/esm/external-providers/external-providers.shared.schemas.d.ts.map +1 -1
  290. package/dist/esm/external-providers/external-providers.shared.schemas.js.map +1 -1
  291. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts +34 -1
  292. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -1
  293. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.js.map +1 -1
  294. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts.map +1 -1
  295. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js.map +1 -1
  296. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts.map +1 -1
  297. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js.map +1 -1
  298. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts.map +1 -1
  299. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -1
  300. package/dist/esm/external-providers/frontend-provider-public-config.shared.d.ts.map +1 -1
  301. package/dist/esm/external-providers/frontend-provider-public-config.shared.js.map +1 -1
  302. package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.d.ts.map +1 -1
  303. package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.js.map +1 -1
  304. package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.d.ts.map +1 -1
  305. package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.js.map +1 -1
  306. package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.d.ts.map +1 -1
  307. package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.js.map +1 -1
  308. package/dist/esm/external-providers/provider-authentication-assurance.shared.schemas.d.ts.map +1 -1
  309. package/dist/esm/external-providers/provider-authentication-assurance.shared.schemas.js.map +1 -1
  310. package/dist/esm/external-providers/provider-browser-operations.shared.schemas.d.ts.map +1 -1
  311. package/dist/esm/external-providers/provider-browser-operations.shared.schemas.js.map +1 -1
  312. package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -1
  313. package/dist/esm/external-providers/provider-capability.shared.schemas.js.map +1 -1
  314. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts.map +1 -1
  315. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -1
  316. package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.d.ts.map +1 -1
  317. package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.js.map +1 -1
  318. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts.map +1 -1
  319. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js.map +1 -1
  320. package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts.map +1 -1
  321. package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -1
  322. package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.d.ts.map +1 -1
  323. package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.js.map +1 -1
  324. package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -1
  325. package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -1
  326. package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.d.ts.map +1 -1
  327. package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.js.map +1 -1
  328. package/dist/esm/external-providers/provider-shared-connections.shared.schemas.d.ts.map +1 -1
  329. package/dist/esm/external-providers/provider-shared-connections.shared.schemas.js.map +1 -1
  330. package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts.map +1 -1
  331. package/dist/esm/external-providers/provider-tier-rule.shared.utils.js.map +1 -1
  332. package/dist/esm/external-providers/provider-usage-cost.shared.d.ts.map +1 -1
  333. package/dist/esm/external-providers/provider-usage-cost.shared.js.map +1 -1
  334. package/dist/esm/external-providers/provider-usage-pricing.example.d.ts.map +1 -1
  335. package/dist/esm/external-providers/provider-usage-pricing.example.js.map +1 -1
  336. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.d.ts.map +1 -1
  337. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.js.map +1 -1
  338. package/dist/esm/features/application-features.shared.resources-config.schemas.d.ts.map +1 -1
  339. package/dist/esm/features/application-features.shared.resources-config.schemas.js.map +1 -1
  340. package/dist/esm/features/connected-feature.example.d.ts.map +1 -1
  341. package/dist/esm/features/connected-feature.example.js.map +1 -1
  342. package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
  343. package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
  344. package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
  345. package/dist/esm/features/feature-builders.shared.js.map +1 -1
  346. package/dist/esm/features/feature-definition.shared.schemas.d.ts.map +1 -1
  347. package/dist/esm/features/feature-definition.shared.schemas.js.map +1 -1
  348. package/dist/esm/features/feature-registry.shared.d.ts.map +1 -1
  349. package/dist/esm/features/feature-registry.shared.js.map +1 -1
  350. package/dist/esm/features/feature-resolution.shared.schemas.d.ts.map +1 -1
  351. package/dist/esm/features/feature-resolution.shared.schemas.js.map +1 -1
  352. package/dist/esm/features/scope-features.shared.schemas.d.ts.map +1 -1
  353. package/dist/esm/features/scope-features.shared.schemas.js.map +1 -1
  354. package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts.map +1 -1
  355. package/dist/esm/features/user-features.shared.resources-config.schemas.js.map +1 -1
  356. package/dist/esm/files/file-remote-reference-link.shared.schemas.d.ts.map +1 -1
  357. package/dist/esm/files/file-remote-reference-link.shared.schemas.js.map +1 -1
  358. package/dist/esm/files/file-upload-grant.shared.schemas.d.ts.map +1 -1
  359. package/dist/esm/files/file-upload-grant.shared.schemas.js.map +1 -1
  360. package/dist/esm/files/files.shared.resources-config.schemas.d.ts.map +1 -1
  361. package/dist/esm/files/files.shared.resources-config.schemas.js.map +1 -1
  362. package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
  363. package/dist/esm/files/files.shared.schemas.js.map +1 -1
  364. package/dist/esm/files/files.shared.utils.d.ts.map +1 -1
  365. package/dist/esm/files/files.shared.utils.js.map +1 -1
  366. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
  367. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js.map +1 -1
  368. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts.map +1 -1
  369. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js.map +1 -1
  370. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts.map +1 -1
  371. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js.map +1 -1
  372. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.d.ts.map +1 -1
  373. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.js.map +1 -1
  374. package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
  375. package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
  376. package/dist/esm/flows-actors/agent-traceability.shared.schemas.d.ts.map +1 -1
  377. package/dist/esm/flows-actors/agent-traceability.shared.schemas.js.map +1 -1
  378. package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.d.ts.map +1 -1
  379. package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.js.map +1 -1
  380. package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.d.ts.map +1 -1
  381. package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.js.map +1 -1
  382. package/dist/esm/flows-actors/agents.shared.schemas.d.ts.map +1 -1
  383. package/dist/esm/flows-actors/agents.shared.schemas.js.map +1 -1
  384. package/dist/esm/flows-actors/autonomous-agents.shared.schemas.d.ts.map +1 -1
  385. package/dist/esm/flows-actors/autonomous-agents.shared.schemas.js.map +1 -1
  386. package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts +2 -1
  387. package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts.map +1 -1
  388. package/dist/esm/flows-actors/deliberation.shared.schemas.js +2 -1
  389. package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -1
  390. package/dist/esm/flows-actors/execution-plan-readiness.shared.utils.d.ts.map +1 -1
  391. package/dist/esm/flows-actors/execution-plan-readiness.shared.utils.js.map +1 -1
  392. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map +1 -1
  393. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js.map +1 -1
  394. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts.map +1 -1
  395. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -1
  396. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts.map +1 -1
  397. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js.map +1 -1
  398. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts.map +1 -1
  399. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js.map +1 -1
  400. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts.map +1 -1
  401. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
  402. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.d.ts.map +1 -1
  403. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.js.map +1 -1
  404. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.d.ts.map +1 -1
  405. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.js.map +1 -1
  406. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts.map +1 -1
  407. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
  408. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.d.ts.map +1 -1
  409. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.js.map +1 -1
  410. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
  411. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js.map +1 -1
  412. package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
  413. package/dist/esm/flows-actors/flows.shared.schemas.js.map +1 -1
  414. package/dist/esm/flows-actors/human-decision.shared.schemas.d.ts.map +1 -1
  415. package/dist/esm/flows-actors/human-decision.shared.schemas.js.map +1 -1
  416. package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts.map +1 -1
  417. package/dist/esm/flows-actors/mcp-servers.shared.schemas.js.map +1 -1
  418. package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.d.ts.map +1 -1
  419. package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.js.map +1 -1
  420. package/dist/esm/flows-actors/model-call-attributions.shared.schemas.d.ts.map +1 -1
  421. package/dist/esm/flows-actors/model-call-attributions.shared.schemas.js.map +1 -1
  422. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.d.ts.map +1 -1
  423. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.js.map +1 -1
  424. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.d.ts.map +1 -1
  425. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.js.map +1 -1
  426. package/dist/esm/flows-actors/model-cost-summary.shared.schemas.d.ts.map +1 -1
  427. package/dist/esm/flows-actors/model-cost-summary.shared.schemas.js.map +1 -1
  428. package/dist/esm/flows-actors/prompt-ir.shared.schemas.d.ts.map +1 -1
  429. package/dist/esm/flows-actors/prompt-ir.shared.schemas.js.map +1 -1
  430. package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.d.ts.map +1 -1
  431. package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.js.map +1 -1
  432. package/dist/esm/flows-actors/provider-call-records.shared.schemas.d.ts.map +1 -1
  433. package/dist/esm/flows-actors/provider-call-records.shared.schemas.js.map +1 -1
  434. package/dist/esm/flows-actors/review-deadlines.shared.schemas.d.ts.map +1 -1
  435. package/dist/esm/flows-actors/review-deadlines.shared.schemas.js.map +1 -1
  436. package/dist/esm/flows-actors/tasks.actors.shared.schemas.d.ts.map +1 -1
  437. package/dist/esm/flows-actors/tasks.actors.shared.schemas.js.map +1 -1
  438. package/dist/esm/flows-actors/work-attribution.shared.schemas.d.ts.map +1 -1
  439. package/dist/esm/flows-actors/work-attribution.shared.schemas.js.map +1 -1
  440. package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.d.ts.map +1 -1
  441. package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.js.map +1 -1
  442. package/dist/esm/frontend-definitions/settings-destination-ref.definitions.d.ts.map +1 -1
  443. package/dist/esm/frontend-definitions/settings-destination-ref.definitions.js.map +1 -1
  444. package/dist/esm/guidance/guidance-flow.shared.schemas.d.ts.map +1 -1
  445. package/dist/esm/guidance/guidance-flow.shared.schemas.js.map +1 -1
  446. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts.map +1 -1
  447. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js.map +1 -1
  448. package/dist/esm/guidance/guidance-state.shared.schemas.d.ts.map +1 -1
  449. package/dist/esm/guidance/guidance-state.shared.schemas.js.map +1 -1
  450. package/dist/esm/guidance/guidance-state.shared.utils.d.ts.map +1 -1
  451. package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -1
  452. package/dist/esm/guidance/lifecycle-config.shared.schemas.d.ts +2 -2
  453. package/dist/esm/guidance/lifecycle-config.shared.schemas.d.ts.map +1 -1
  454. package/dist/esm/guidance/lifecycle-config.shared.schemas.js.map +1 -1
  455. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts.map +1 -1
  456. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js.map +1 -1
  457. package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts.map +1 -1
  458. package/dist/esm/guidance/lifecycle-state.shared.schemas.js.map +1 -1
  459. package/dist/esm/guidance/milestone-builders.shared.d.ts.map +1 -1
  460. package/dist/esm/guidance/milestone-builders.shared.js.map +1 -1
  461. package/dist/esm/guidance/milestone-definition.shared.schemas.d.ts.map +1 -1
  462. package/dist/esm/guidance/milestone-definition.shared.schemas.js.map +1 -1
  463. package/dist/esm/guidance/progression-presentation.shared.schemas.d.ts.map +1 -1
  464. package/dist/esm/guidance/progression-presentation.shared.schemas.js.map +1 -1
  465. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
  466. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js.map +1 -1
  467. package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
  468. package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
  469. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.d.ts.map +1 -1
  470. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.js.map +1 -1
  471. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts.map +1 -1
  472. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -1
  473. package/dist/esm/http-api-binding/http-api-erasure-stance.shared.d.ts.map +1 -1
  474. package/dist/esm/http-api-binding/http-api-erasure-stance.shared.js.map +1 -1
  475. package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.d.ts.map +1 -1
  476. package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.js.map +1 -1
  477. package/dist/esm/http-api-binding/http-api-transport-dialect.shared.d.ts.map +1 -1
  478. package/dist/esm/http-api-binding/http-api-transport-dialect.shared.js.map +1 -1
  479. package/dist/esm/http-api-binding/read-through-engine-anchors.shared.d.ts.map +1 -1
  480. package/dist/esm/http-api-binding/read-through-engine-anchors.shared.js.map +1 -1
  481. package/dist/esm/i18n/application-config-vocabulary.shared.d.ts.map +1 -1
  482. package/dist/esm/i18n/application-config-vocabulary.shared.js.map +1 -1
  483. package/dist/esm/i18n/engine-open-vocabulary-values.shared.d.ts.map +1 -1
  484. package/dist/esm/i18n/engine-open-vocabulary-values.shared.js.map +1 -1
  485. package/dist/esm/i18n/engine-open-vocabulary.shared.d.ts.map +1 -1
  486. package/dist/esm/i18n/engine-open-vocabulary.shared.js.map +1 -1
  487. package/dist/esm/i18n/interpolate-label-params.shared.utils.d.ts.map +1 -1
  488. package/dist/esm/i18n/interpolate-label-params.shared.utils.js.map +1 -1
  489. package/dist/esm/i18n/labelling.dto.shared.schemas.d.ts.map +1 -1
  490. package/dist/esm/i18n/labelling.dto.shared.schemas.js.map +1 -1
  491. package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.d.ts.map +1 -1
  492. package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.js.map +1 -1
  493. package/dist/esm/inbound/conversation-threads.shared.schemas.d.ts.map +1 -1
  494. package/dist/esm/inbound/conversation-threads.shared.schemas.js.map +1 -1
  495. package/dist/esm/inbound/inbound-channels.shared.schemas.d.ts.map +1 -1
  496. package/dist/esm/inbound/inbound-channels.shared.schemas.js.map +1 -1
  497. package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.d.ts.map +1 -1
  498. package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.js.map +1 -1
  499. package/dist/esm/inbound/inbound-delivery.shared.schemas.d.ts.map +1 -1
  500. package/dist/esm/inbound/inbound-delivery.shared.schemas.js.map +1 -1
  501. package/dist/esm/inbound/inbound-endpoint-env.shared.d.ts.map +1 -1
  502. package/dist/esm/inbound/inbound-endpoint-env.shared.js.map +1 -1
  503. package/dist/esm/index.d.ts +5 -0
  504. package/dist/esm/index.d.ts.map +1 -1
  505. package/dist/esm/index.js +5 -0
  506. package/dist/esm/index.js.map +1 -1
  507. package/dist/esm/meta-workflows/actions.meta-workflows.shared.schemas.d.ts.map +1 -1
  508. package/dist/esm/meta-workflows/actions.meta-workflows.shared.schemas.js.map +1 -1
  509. package/dist/esm/meta-workflows/catalog.meta-workflows.shared.schemas.d.ts.map +1 -1
  510. package/dist/esm/meta-workflows/catalog.meta-workflows.shared.schemas.js.map +1 -1
  511. package/dist/esm/meta-workflows/coding-tasks.meta-workflows.shared.schemas.d.ts.map +1 -1
  512. package/dist/esm/meta-workflows/coding-tasks.meta-workflows.shared.schemas.js.map +1 -1
  513. package/dist/esm/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -1
  514. package/dist/esm/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map +1 -1
  515. package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts.map +1 -1
  516. package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -1
  517. package/dist/esm/meta-workflows/elicitation-depth.meta-workflows.shared.schemas.d.ts +128 -0
  518. package/dist/esm/meta-workflows/elicitation-depth.meta-workflows.shared.schemas.d.ts.map +1 -0
  519. package/dist/esm/meta-workflows/elicitation-depth.meta-workflows.shared.schemas.js +136 -0
  520. package/dist/esm/meta-workflows/elicitation-depth.meta-workflows.shared.schemas.js.map +1 -0
  521. package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.d.ts +45 -1
  522. package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.d.ts.map +1 -1
  523. package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.js +87 -2
  524. package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.js.map +1 -1
  525. package/dist/esm/meta-workflows/portable-primitives.meta-workflows.shared.schemas.d.ts.map +1 -1
  526. package/dist/esm/meta-workflows/portable-primitives.meta-workflows.shared.schemas.js.map +1 -1
  527. package/dist/esm/meta-workflows.exports.d.ts +1 -0
  528. package/dist/esm/meta-workflows.exports.d.ts.map +1 -1
  529. package/dist/esm/meta-workflows.exports.js +1 -0
  530. package/dist/esm/meta-workflows.exports.js.map +1 -1
  531. package/dist/esm/monitoring/monitoring.shared.schemas.d.ts.map +1 -1
  532. package/dist/esm/monitoring/monitoring.shared.schemas.js.map +1 -1
  533. package/dist/esm/notifications/email/email-context.shared.schemas.d.ts.map +1 -1
  534. package/dist/esm/notifications/email/email-context.shared.schemas.js.map +1 -1
  535. package/dist/esm/notifications/email/email-submission.shared.enums.d.ts.map +1 -1
  536. package/dist/esm/notifications/email/email-submission.shared.enums.js.map +1 -1
  537. package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts.map +1 -1
  538. package/dist/esm/notifications/email/email-template-registry.shared.schemas.js.map +1 -1
  539. package/dist/esm/notifications/email/email-template.shared.enums.d.ts.map +1 -1
  540. package/dist/esm/notifications/email/email-template.shared.enums.js.map +1 -1
  541. package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.d.ts.map +1 -1
  542. package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.js.map +1 -1
  543. package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.d.ts.map +1 -1
  544. package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.js.map +1 -1
  545. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.d.ts.map +1 -1
  546. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.js.map +1 -1
  547. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
  548. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.js.map +1 -1
  549. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.d.ts.map +1 -1
  550. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.js.map +1 -1
  551. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts.map +1 -1
  552. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js.map +1 -1
  553. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -1
  554. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -1
  555. package/dist/esm/notifications/notification-badges.core.definitions.d.ts.map +1 -1
  556. package/dist/esm/notifications/notification-badges.core.definitions.js.map +1 -1
  557. package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
  558. package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
  559. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts.map +1 -1
  560. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js.map +1 -1
  561. package/dist/esm/notifications/notifications.shared.schemas.d.ts +5 -3
  562. package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
  563. package/dist/esm/notifications/notifications.shared.schemas.js +5 -3
  564. package/dist/esm/notifications/notifications.shared.schemas.js.map +1 -1
  565. package/dist/esm/organizations/application-owner-organization.shared.schemas.d.ts.map +1 -1
  566. package/dist/esm/organizations/application-owner-organization.shared.schemas.js.map +1 -1
  567. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.d.ts.map +1 -1
  568. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js.map +1 -1
  569. package/dist/esm/organizations/organization-features.shared.schemas.d.ts.map +1 -1
  570. package/dist/esm/organizations/organization-features.shared.schemas.js.map +1 -1
  571. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts.map +1 -1
  572. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js.map +1 -1
  573. package/dist/esm/organizations/organization-members.shared.schemas.d.ts.map +1 -1
  574. package/dist/esm/organizations/organization-members.shared.schemas.js.map +1 -1
  575. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.d.ts.map +1 -1
  576. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.js.map +1 -1
  577. package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts.map +1 -1
  578. package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
  579. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  580. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.js.map +1 -1
  581. package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.map +1 -1
  582. package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
  583. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.d.ts.map +1 -1
  584. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.js.map +1 -1
  585. package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
  586. package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
  587. package/dist/esm/organizations/organization-unit-inheritance.shared.d.ts.map +1 -1
  588. package/dist/esm/organizations/organization-unit-inheritance.shared.js.map +1 -1
  589. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.d.ts.map +1 -1
  590. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.js.map +1 -1
  591. package/dist/esm/organizations/organization-unit-members.shared.schemas.d.ts.map +1 -1
  592. package/dist/esm/organizations/organization-unit-members.shared.schemas.js.map +1 -1
  593. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.d.ts.map +1 -1
  594. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.js.map +1 -1
  595. package/dist/esm/organizations/organization-unit-narrowing.example.d.ts.map +1 -1
  596. package/dist/esm/organizations/organization-unit-narrowing.example.js.map +1 -1
  597. package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -1
  598. package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -1
  599. package/dist/esm/organizations/organization-units.shared.path.d.ts.map +1 -1
  600. package/dist/esm/organizations/organization-units.shared.path.js.map +1 -1
  601. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.d.ts.map +1 -1
  602. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.js.map +1 -1
  603. package/dist/esm/organizations/organization-units.shared.schemas.d.ts.map +1 -1
  604. package/dist/esm/organizations/organization-units.shared.schemas.js.map +1 -1
  605. package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts.map +1 -1
  606. package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
  607. package/dist/esm/organizations/organizations.shared.schemas.d.ts.map +1 -1
  608. package/dist/esm/organizations/organizations.shared.schemas.js.map +1 -1
  609. package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.d.ts.map +1 -1
  610. package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.js.map +1 -1
  611. package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.d.ts.map +1 -1
  612. package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.js.map +1 -1
  613. package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.d.ts.map +1 -1
  614. package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.js.map +1 -1
  615. package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.d.ts.map +1 -1
  616. package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.js.map +1 -1
  617. package/dist/esm/organizations/service-provider-client-controls.shared.schemas.d.ts.map +1 -1
  618. package/dist/esm/organizations/service-provider-client-controls.shared.schemas.js.map +1 -1
  619. package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.d.ts.map +1 -1
  620. package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.js.map +1 -1
  621. package/dist/esm/organizations/service-provider-relationships.shared.schemas.d.ts.map +1 -1
  622. package/dist/esm/organizations/service-provider-relationships.shared.schemas.js.map +1 -1
  623. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts.map +1 -1
  624. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js.map +1 -1
  625. package/dist/esm/provider-registration-runtime.exports.d.ts.map +1 -1
  626. package/dist/esm/provider-registration-runtime.exports.js.map +1 -1
  627. package/dist/esm/public-runtime/index.d.ts +13 -0
  628. package/dist/esm/public-runtime/index.d.ts.map +1 -1
  629. package/dist/esm/public-runtime/index.js +13 -0
  630. package/dist/esm/public-runtime/index.js.map +1 -1
  631. package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts.map +1 -1
  632. package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
  633. package/dist/esm/queue/jobs.shared.schemas.d.ts +71 -2
  634. package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
  635. package/dist/esm/queue/jobs.shared.schemas.js +85 -2
  636. package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
  637. package/dist/esm/queue/jobs.shared.utils.d.ts.map +1 -1
  638. package/dist/esm/queue/jobs.shared.utils.js.map +1 -1
  639. package/dist/esm/queue/queues.shared.schemas.d.ts.map +1 -1
  640. package/dist/esm/queue/queues.shared.schemas.js.map +1 -1
  641. package/dist/esm/queue/queues.shared.utils.d.ts.map +1 -1
  642. package/dist/esm/queue/queues.shared.utils.js.map +1 -1
  643. package/dist/esm/queue/rabbitmq-queue-args.shared.d.ts.map +1 -1
  644. package/dist/esm/queue/rabbitmq-queue-args.shared.js.map +1 -1
  645. package/dist/esm/rag/rag-retrieval-health.shared.d.ts.map +1 -1
  646. package/dist/esm/rag/rag-retrieval-health.shared.js.map +1 -1
  647. package/dist/esm/requests/header-keys.shared.d.ts.map +1 -1
  648. package/dist/esm/requests/header-keys.shared.js.map +1 -1
  649. package/dist/esm/requests/http-requests.shared.d.ts.map +1 -1
  650. package/dist/esm/requests/http-requests.shared.js.map +1 -1
  651. package/dist/esm/requests/idempotency-key.shared.d.ts.map +1 -1
  652. package/dist/esm/requests/idempotency-key.shared.js.map +1 -1
  653. package/dist/esm/requests/manual-controllers-routes-documentation.d.ts.map +1 -1
  654. package/dist/esm/requests/manual-controllers-routes-documentation.js.map +1 -1
  655. package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
  656. package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
  657. package/dist/esm/requests/rate-limits.shared.schemas.d.ts.map +1 -1
  658. package/dist/esm/requests/rate-limits.shared.schemas.js.map +1 -1
  659. package/dist/esm/requests/websocket.shared.schemas.d.ts +2 -2
  660. package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
  661. package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
  662. package/dist/esm/resources/child-operations.shared.schemas.d.ts.map +1 -1
  663. package/dist/esm/resources/child-operations.shared.schemas.js.map +1 -1
  664. package/dist/esm/resources/collection-query-parameters.shared.d.ts.map +1 -1
  665. package/dist/esm/resources/collection-query-parameters.shared.js.map +1 -1
  666. package/dist/esm/resources/context-policy.shared.schemas.d.ts.map +1 -1
  667. package/dist/esm/resources/context-policy.shared.schemas.js.map +1 -1
  668. package/dist/esm/resources/embedded-resource-mark.shared.utils.d.ts.map +1 -1
  669. package/dist/esm/resources/embedded-resource-mark.shared.utils.js.map +1 -1
  670. package/dist/esm/resources/relationship-display.shared.schemas.d.ts.map +1 -1
  671. package/dist/esm/resources/relationship-display.shared.schemas.js.map +1 -1
  672. package/dist/esm/resources/resource-status-lifecycle.example.d.ts +100 -0
  673. package/dist/esm/resources/resource-status-lifecycle.example.d.ts.map +1 -0
  674. package/dist/esm/resources/resource-status-lifecycle.example.js +156 -0
  675. package/dist/esm/resources/resource-status-lifecycle.example.js.map +1 -0
  676. package/dist/esm/resources/resources-config.shared.factory.d.ts +25 -1
  677. package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
  678. package/dist/esm/resources/resources-config.shared.factory.js +31 -8
  679. package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
  680. package/dist/esm/resources/resources-config.shared.schemas.d.ts +33 -0
  681. package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
  682. package/dist/esm/resources/resources-config.shared.schemas.js.map +1 -1
  683. package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts.map +1 -1
  684. package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
  685. package/dist/esm/resources/resources-relationships.shared.factory.d.ts.map +1 -1
  686. package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
  687. package/dist/esm/resources/resources-serialization.shared.schemas.d.ts.map +1 -1
  688. package/dist/esm/resources/resources-serialization.shared.schemas.js.map +1 -1
  689. package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
  690. package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
  691. package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
  692. package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
  693. package/dist/esm/resources/resources.shared.utils.d.ts.map +1 -1
  694. package/dist/esm/resources/resources.shared.utils.js.map +1 -1
  695. package/dist/esm/resources/utils/collection-export.shared.utils.d.ts.map +1 -1
  696. package/dist/esm/resources/utils/collection-export.shared.utils.js.map +1 -1
  697. package/dist/esm/resources/utils/composition-cascade-deletability.validation.d.ts.map +1 -1
  698. package/dist/esm/resources/utils/composition-cascade-deletability.validation.js.map +1 -1
  699. package/dist/esm/resources/utils/composition-seedability.validation.d.ts.map +1 -1
  700. package/dist/esm/resources/utils/composition-seedability.validation.js.map +1 -1
  701. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.d.ts.map +1 -1
  702. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.js.map +1 -1
  703. package/dist/esm/resources/utils/dependent-lifecycle-classification.validation.d.ts.map +1 -1
  704. package/dist/esm/resources/utils/dependent-lifecycle-classification.validation.js.map +1 -1
  705. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.d.ts.map +1 -1
  706. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.js.map +1 -1
  707. package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts.map +1 -1
  708. package/dist/esm/resources/utils/field-value-disclosure.utils.js.map +1 -1
  709. package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.d.ts.map +1 -1
  710. package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.js.map +1 -1
  711. package/dist/esm/resources/utils/initiator-stamped-field-satisfiability.validation.d.ts.map +1 -1
  712. package/dist/esm/resources/utils/initiator-stamped-field-satisfiability.validation.js.map +1 -1
  713. package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.d.ts.map +1 -1
  714. package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.js.map +1 -1
  715. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.d.ts.map +1 -1
  716. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.js.map +1 -1
  717. package/dist/esm/resources/utils/populated-file-fields.shared.utils.d.ts.map +1 -1
  718. package/dist/esm/resources/utils/populated-file-fields.shared.utils.js.map +1 -1
  719. package/dist/esm/resources/utils/repository-dto-builder.utils.d.ts.map +1 -1
  720. package/dist/esm/resources/utils/repository-dto-builder.utils.js.map +1 -1
  721. package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.d.ts.map +1 -1
  722. package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.js.map +1 -1
  723. package/dist/esm/resources/utils/required-fk-fillability.validation.d.ts.map +1 -1
  724. package/dist/esm/resources/utils/required-fk-fillability.validation.js.map +1 -1
  725. package/dist/esm/resources/utils/resource-operation-type-guards.utils.d.ts.map +1 -1
  726. package/dist/esm/resources/utils/resource-operation-type-guards.utils.js.map +1 -1
  727. package/dist/esm/resources/utils/resource-polymorphism.factory.d.ts.map +1 -1
  728. package/dist/esm/resources/utils/resource-polymorphism.factory.js.map +1 -1
  729. package/dist/esm/resources/utils/resource-polymorphism.relationships.d.ts.map +1 -1
  730. package/dist/esm/resources/utils/resource-polymorphism.relationships.js.map +1 -1
  731. package/dist/esm/resources/utils/resource-polymorphism.schemas.d.ts.map +1 -1
  732. package/dist/esm/resources/utils/resource-polymorphism.schemas.js.map +1 -1
  733. package/dist/esm/resources/utils/resource-polymorphism.utils.d.ts.map +1 -1
  734. package/dist/esm/resources/utils/resource-polymorphism.utils.js.map +1 -1
  735. package/dist/esm/resources/utils/resource-subtree.utils.d.ts.map +1 -1
  736. package/dist/esm/resources/utils/resource-subtree.utils.js.map +1 -1
  737. package/dist/esm/resources/utils/resources-config-context-needs.utils.d.ts.map +1 -1
  738. package/dist/esm/resources/utils/resources-config-context-needs.utils.js.map +1 -1
  739. package/dist/esm/resources/utils/resources-config-naming.utils.d.ts.map +1 -1
  740. package/dist/esm/resources/utils/resources-config-naming.utils.js.map +1 -1
  741. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts +25 -0
  742. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts.map +1 -1
  743. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js +47 -19
  744. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js.map +1 -1
  745. package/dist/esm/resources/utils/resources-config-operations.path.utils.d.ts.map +1 -1
  746. package/dist/esm/resources/utils/resources-config-operations.path.utils.js.map +1 -1
  747. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.d.ts.map +1 -1
  748. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.js.map +1 -1
  749. package/dist/esm/resources/utils/resources-config-operations.utils.d.ts.map +1 -1
  750. package/dist/esm/resources/utils/resources-config-operations.utils.js.map +1 -1
  751. package/dist/esm/resources/utils/resources-serialization.utils.d.ts.map +1 -1
  752. package/dist/esm/resources/utils/resources-serialization.utils.js.map +1 -1
  753. package/dist/esm/resources/utils/resources-summary.utils.d.ts.map +1 -1
  754. package/dist/esm/resources/utils/resources-summary.utils.js.map +1 -1
  755. package/dist/esm/resources/utils/schema-family-builder.utils.d.ts.map +1 -1
  756. package/dist/esm/resources/utils/schema-family-builder.utils.js.map +1 -1
  757. package/dist/esm/resources/utils/schema-type-inference.utils.d.ts.map +1 -1
  758. package/dist/esm/resources/utils/schema-type-inference.utils.js.map +1 -1
  759. package/dist/esm/resources/utils/schema-type-utils.d.ts.map +1 -1
  760. package/dist/esm/resources/utils/schema-type-utils.js.map +1 -1
  761. package/dist/esm/resources/utils/schema-variant-resolver.utils.d.ts.map +1 -1
  762. package/dist/esm/resources/utils/schema-variant-resolver.utils.js.map +1 -1
  763. package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts.map +1 -1
  764. package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -1
  765. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.d.ts.map +1 -1
  766. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.js.map +1 -1
  767. package/dist/esm/resources/work-unit.shared.schemas.d.ts.map +1 -1
  768. package/dist/esm/resources/work-unit.shared.schemas.js.map +1 -1
  769. package/dist/esm/runtime/domain-module.shared.definitions.d.ts.map +1 -1
  770. package/dist/esm/runtime/domain-module.shared.definitions.js.map +1 -1
  771. package/dist/esm/runtime/execution-context.shared.schemas.d.ts.map +1 -1
  772. package/dist/esm/runtime/execution-context.shared.schemas.js.map +1 -1
  773. package/dist/esm/runtime/runtime.shared.schemas.d.ts.map +1 -1
  774. package/dist/esm/runtime/runtime.shared.schemas.js.map +1 -1
  775. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts.map +1 -1
  776. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js.map +1 -1
  777. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts.map +1 -1
  778. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
  779. package/dist/esm/security/api-keys/api-keys.shared.schemas.d.ts.map +1 -1
  780. package/dist/esm/security/api-keys/api-keys.shared.schemas.js.map +1 -1
  781. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.d.ts.map +1 -1
  782. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.js.map +1 -1
  783. package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
  784. package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
  785. package/dist/esm/security/authentications/authentication.shared.schemas.d.ts.map +1 -1
  786. package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
  787. package/dist/esm/security/authentications/authentication.shared.utils.d.ts.map +1 -1
  788. package/dist/esm/security/authentications/authentication.shared.utils.js.map +1 -1
  789. package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts.map +1 -1
  790. package/dist/esm/security/authentications/consumable-token.shared.schemas.js.map +1 -1
  791. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.d.ts.map +1 -1
  792. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.js.map +1 -1
  793. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.d.ts.map +1 -1
  794. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.js.map +1 -1
  795. package/dist/esm/security/authentications/password-blocklist.shared.utils.d.ts.map +1 -1
  796. package/dist/esm/security/authentications/password-blocklist.shared.utils.js.map +1 -1
  797. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.d.ts.map +1 -1
  798. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.js.map +1 -1
  799. package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
  800. package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
  801. package/dist/esm/security/authentications/same-origin-redirect-path.shared.d.ts.map +1 -1
  802. package/dist/esm/security/authentications/same-origin-redirect-path.shared.js.map +1 -1
  803. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.d.ts.map +1 -1
  804. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.js.map +1 -1
  805. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.d.ts.map +1 -1
  806. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.js.map +1 -1
  807. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts.map +1 -1
  808. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
  809. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.d.ts.map +1 -1
  810. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.js.map +1 -1
  811. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.d.ts.map +1 -1
  812. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.js.map +1 -1
  813. package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.d.ts.map +1 -1
  814. package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.js.map +1 -1
  815. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.d.ts.map +1 -1
  816. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.js.map +1 -1
  817. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.d.ts.map +1 -1
  818. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.js.map +1 -1
  819. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.resources-config.schemas.d.ts.map +1 -1
  820. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.resources-config.schemas.js.map +1 -1
  821. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.schemas.d.ts.map +1 -1
  822. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.schemas.js.map +1 -1
  823. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts.map +1 -1
  824. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js.map +1 -1
  825. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.d.ts.map +1 -1
  826. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.js.map +1 -1
  827. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.d.ts.map +1 -1
  828. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.js.map +1 -1
  829. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts.map +1 -1
  830. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js.map +1 -1
  831. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts.map +1 -1
  832. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
  833. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.d.ts.map +1 -1
  834. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.js.map +1 -1
  835. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts.map +1 -1
  836. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js.map +1 -1
  837. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts.map +1 -1
  838. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js.map +1 -1
  839. package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.d.ts.map +1 -1
  840. package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.js.map +1 -1
  841. package/dist/esm/security/authorizations/application-access-grants.shared.schemas.d.ts.map +1 -1
  842. package/dist/esm/security/authorizations/application-access-grants.shared.schemas.js.map +1 -1
  843. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts.map +1 -1
  844. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js.map +1 -1
  845. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts.map +1 -1
  846. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js.map +1 -1
  847. package/dist/esm/security/authorizations/roles.application-roles.example.d.ts +37 -0
  848. package/dist/esm/security/authorizations/roles.application-roles.example.d.ts.map +1 -0
  849. package/dist/esm/security/authorizations/roles.application-roles.example.js +50 -0
  850. package/dist/esm/security/authorizations/roles.application-roles.example.js.map +1 -0
  851. package/dist/esm/security/authorizations/roles.shared.defaults.d.ts +13 -0
  852. package/dist/esm/security/authorizations/roles.shared.defaults.d.ts.map +1 -1
  853. package/dist/esm/security/authorizations/roles.shared.defaults.js +13 -0
  854. package/dist/esm/security/authorizations/roles.shared.defaults.js.map +1 -1
  855. package/dist/esm/security/authorizations/roles.shared.schemas.d.ts +29 -0
  856. package/dist/esm/security/authorizations/roles.shared.schemas.d.ts.map +1 -1
  857. package/dist/esm/security/authorizations/roles.shared.schemas.js +28 -0
  858. package/dist/esm/security/authorizations/roles.shared.schemas.js.map +1 -1
  859. package/dist/esm/security/authorizations/roles.shared.utils.d.ts.map +1 -1
  860. package/dist/esm/security/authorizations/roles.shared.utils.js.map +1 -1
  861. package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.d.ts.map +1 -1
  862. package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.js.map +1 -1
  863. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts.map +1 -1
  864. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js.map +1 -1
  865. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts.map +1 -1
  866. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js.map +1 -1
  867. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts.map +1 -1
  868. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js.map +1 -1
  869. package/dist/esm/security/credential-rotation-grace.shared.utils.d.ts.map +1 -1
  870. package/dist/esm/security/credential-rotation-grace.shared.utils.js.map +1 -1
  871. package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.d.ts.map +1 -1
  872. package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.js.map +1 -1
  873. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts.map +1 -1
  874. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js.map +1 -1
  875. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts.map +1 -1
  876. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js.map +1 -1
  877. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts.map +1 -1
  878. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -1
  879. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts.map +1 -1
  880. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js.map +1 -1
  881. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts.map +1 -1
  882. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -1
  883. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.d.ts.map +1 -1
  884. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.js.map +1 -1
  885. package/dist/esm/security/outbound-target-control.shared.schemas.d.ts.map +1 -1
  886. package/dist/esm/security/outbound-target-control.shared.schemas.js.map +1 -1
  887. package/dist/esm/security/submission-challenge/submission-challenge.shared.d.ts.map +1 -1
  888. package/dist/esm/security/submission-challenge/submission-challenge.shared.js.map +1 -1
  889. package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.d.ts.map +1 -1
  890. package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.js.map +1 -1
  891. package/dist/esm/systems-of-record/system-of-record-credential-kind.shared.d.ts.map +1 -1
  892. package/dist/esm/systems-of-record/system-of-record-credential-kind.shared.js.map +1 -1
  893. package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.d.ts.map +1 -1
  894. package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.js.map +1 -1
  895. package/dist/esm/systems-of-record/system-of-record-env.shared.d.ts.map +1 -1
  896. package/dist/esm/systems-of-record/system-of-record-env.shared.js.map +1 -1
  897. package/dist/esm/systems-of-record/system-of-record-error-codes.shared.d.ts.map +1 -1
  898. package/dist/esm/systems-of-record/system-of-record-error-codes.shared.js.map +1 -1
  899. package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.d.ts.map +1 -1
  900. package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.js.map +1 -1
  901. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.d.ts.map +1 -1
  902. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.js.map +1 -1
  903. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.schemas.d.ts.map +1 -1
  904. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.schemas.js.map +1 -1
  905. package/dist/esm/testing/resource-config-builders.d.ts.map +1 -1
  906. package/dist/esm/testing/resource-config-builders.js.map +1 -1
  907. package/dist/esm/testing.d.ts.map +1 -1
  908. package/dist/esm/testing.js.map +1 -1
  909. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.d.ts.map +1 -1
  910. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.js.map +1 -1
  911. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.d.ts.map +1 -1
  912. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.js.map +1 -1
  913. package/dist/esm/users/anonymous-users.shared.schema.d.ts.map +1 -1
  914. package/dist/esm/users/anonymous-users.shared.schema.js.map +1 -1
  915. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts.map +1 -1
  916. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js +2 -0
  917. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js.map +1 -1
  918. package/dist/esm/users/inbound-contacts.shared.schemas.d.ts.map +1 -1
  919. package/dist/esm/users/inbound-contacts.shared.schemas.js.map +1 -1
  920. package/dist/esm/users/user-consent-decision.shared.utils.d.ts.map +1 -1
  921. package/dist/esm/users/user-consent-decision.shared.utils.js.map +1 -1
  922. package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts.map +1 -1
  923. package/dist/esm/users/user-credentials.shared.resources-config.schemas.js.map +1 -1
  924. package/dist/esm/users/user-credentials.shared.schemas.d.ts.map +1 -1
  925. package/dist/esm/users/user-credentials.shared.schemas.js.map +1 -1
  926. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts.map +1 -1
  927. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js.map +1 -1
  928. package/dist/esm/users/user-identity-links.shared.schemas.d.ts.map +1 -1
  929. package/dist/esm/users/user-identity-links.shared.schemas.js.map +1 -1
  930. package/dist/esm/users/user-preferences-reset.shared.utils.d.ts.map +1 -1
  931. package/dist/esm/users/user-preferences-reset.shared.utils.js.map +1 -1
  932. package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  933. package/dist/esm/users/user-preferences.shared.resources-config.schemas.js.map +1 -1
  934. package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  935. package/dist/esm/users/user-profiles.shared.resources-config.schemas.js.map +1 -1
  936. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  937. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js.map +1 -1
  938. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  939. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js.map +1 -1
  940. package/dist/esm/users/user-self.shared.resources-config.schemas.d.ts.map +1 -1
  941. package/dist/esm/users/user-self.shared.resources-config.schemas.js.map +1 -1
  942. package/dist/esm/users/users.shared.resources-config.schemas.d.ts.map +1 -1
  943. package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
  944. package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
  945. package/dist/esm/users/users.shared.schemas.js.map +1 -1
  946. package/dist/tsconfig.build.tsbuildinfo +1 -1
  947. package/package.json +4 -4
  948. package/dist/esm/__tests__/setup.d.ts +0 -2
  949. package/dist/esm/__tests__/setup.d.ts.map +0 -1
  950. package/dist/esm/__tests__/setup.js +0 -19
  951. package/dist/esm/__tests__/setup.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"agent-work-decisions.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/agent-work-decisions.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7H,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACtH,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GAEjC,MAAM,kDAAkD,CAAC;AAE1D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAN,IAAY,6BAQX;AARD,WAAY,6BAA6B;IACvC,qFAAqF;IACrF,0DAAyB,CAAA;IACzB;;;OAGG;IACH,0DAAyB,CAAA;AAC3B,CAAC,EARW,6BAA6B,KAA7B,6BAA6B,QAQxC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C,EAAE,CAAC,CAAC;AAGtH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;CACpC,CAAC,CAAC;AAEH,mEAAmE;AAEnE,8EAA8E;AAC9E,MAAM,UAAU,qBAAqB,CAAC,MAAiF;IACrH,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,yBAAyB,GAAG,MAAM,CAAC,QAAQ,CAAC;IACrF,OAAO,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,yBAAyB,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC;AAC/F,CAAC","sourcesContent":["/**\n * # Agent-work decisions: what an expert did with an agent's proposal (#1599)\n *\n * An AI-native service firm's moat is its experts' corrections to agent work. This file is the record of them: one\n * row per decision a person took on something an agent PROPOSED (a tool call, an actor's reviewable output, a drafted\n * row), in two resources split by what the law asks of each half:\n *\n * - `agentWorkDecisions` — the METADATA, always written: who decided what, on which agent's proposal, for which case,\n * when, and how far the final version is from the proposal (paths, an edit distance, two tenant-keyed digests).\n * Bound to `AUDIT_LOGS`: it is the operator's evidence of how agent work was supervised, and it must outlive the\n * content it describes.\n * - `agentWorkDecisionContents` — the CONTENT (proposal, final, the JSON Patch between them, a reason text), written\n * ONLY when the tenant opted in (`CorrectionContentCapture.WITH_CONTENT`). Bound to `RESOURCE_DATA`: it is the\n * client's material, kept only as long as the rest of the tenant's data.\n *\n * One resource would have forced one retention period on both halves; the record of a decision must be kept longer\n * than the words it decided on (#1613 binds one class per resource).\n *\n * Two organization settings govern the second half and its reuse: `agentWorkCaptureSettings` (the opt-in, with its\n * stated purpose and the role that may read content) and `evaluationExportAuthorizations` (the basis on which a\n * tenant's decisions may be exported as evaluation data). Every export is recorded in `evaluationDatasetExports`.\n *\n * ## Why not the audit trail\n *\n * The decision is audited once, by #1594's `HUMAN_DECISION_RESOLVED`. The trail replicates to a SIEM and an immutable\n * ledger, so it is metadata-only by design and can never hold a proposal or a final version, nor be scrubbed when the\n * case is erased. These rows can.\n *\n * ## What is never stored here\n *\n * - The FINAL work product: the record POINTS at it (`finalWorkProductRef`); the row lives in the application's own\n * table, whose erasure and retention already apply.\n * - An unkeyed digest of content: `proposedDigest` / `finalDigest` are HMAC-SHA256 under a key derived per tenant from\n * the application's primary secret. An unkeyed hash of low-entropy content (a status, a title) is reversed by\n * enumeration, even in an erasable resource.\n * - Free-text reasons in the metadata: `reasonCode` is a value of the application-declared vocabulary; free text goes\n * to the opt-in content only.\n */\nimport { z } from 'zod';\nimport { initZodDecorators, addImpersonalizeWith } from '@wildo-ai/zod-decorators';\n\nimport { AgentWorkDecisionSurface, AgentWorkReasonCodeSchema, HumanDecision_Outcome } from './human-decision.shared.schemas';\nimport { WorkUnitRefSchema } from '../resources/work-unit.shared.schemas';\nimport { ExecutionRefSchema } from './work-attribution.shared.schemas';\nimport { PersonalDataCategory } from '../compliance/privacy/personal-data-category.shared.schemas';\nimport { RedactionType } from '../compliance/privacy/redaction.shared.schemas';\nimport { CoreResourceType, coreResourceShared_FieldIdentifier } from '../resources/resources.shared.core.definitions';\nimport {\n declarePolymorphicSchemas,\n optOutPolymorphicAutoBusinessKey,\n type PolymorphicVariantDefinition,\n} from '../resources/utils/resource-polymorphism.schemas';\n\ninitZodDecorators(z);\n\n/**\n * @wildo_source:part:start saas.models.agent-work-decision-vocabulary facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * How a decision record came to be written.\n */\nexport enum AgentWorkDecisionRecordSource {\n /** Written by the settle that won the decision, right after its compare-and-swap. */\n SETTLEMENT = 'settlement',\n /**\n * Written by the repair sweep from the execution row's resolution columns, because the process died between the\n * settle and the write. Metadata only: content captured in the lost window is not reconstructed.\n */\n ROW_REPAIR = 'row_repair',\n}\n\n/** Why an evaluation-dataset export was refused (#1599 I7). */\nexport enum EvaluationDatasetExportRefusalReason {\n /** The organization has recorded no export authorisation. */\n NO_AUTHORIZATION = 'no_authorization',\n /** The organization's authorisation is revoked. */\n AUTHORIZATION_REVOKED = 'authorization_revoked',\n}\n\n/** What an override-rate summary groups by. */\nexport enum AgentWorkDecisionGrouping {\n AGENT = 'agent',\n TOOL = 'tool',\n CASE = 'case',\n DECIDER = 'decider',\n}\n\n/**\n * Whether a tenant keeps the CONTENT of its experts' corrections. OFF by default (GDPR Art. 25(2) data protection by\n * default; the OpenTelemetry GenAI conventions ask instrumentations not to capture content by default): the override\n * rate needs only the outcome.\n */\nexport enum CorrectionContentCapture {\n /** Outcome, timestamps, paths and digests only. The default, and what an organization with no setting gets. */\n METADATA_ONLY = 'metadata_only',\n /** Also the proposal, the final version, the diff and a reason text, in `agentWorkDecisionContents`. */\n WITH_CONTENT = 'with_content',\n}\n\n/**\n * The legal basis a tenant records for exporting its experts' corrections as evaluation data. There is no third\n * member: an export with no recorded basis is refused.\n */\nexport enum EvaluationExportBasis {\n /**\n * The firm acts as PROCESSOR and the controller (its client) documented the instruction to improve the firm's\n * agents on this data (GDPR Art. 28(3)(a)).\n */\n PROCESSOR_DOCUMENTED_INSTRUCTION = 'processor_documented_instruction',\n /**\n * The firm acts as CONTROLLER and assessed the further use as compatible with the original purpose (GDPR\n * Art. 5(1)(b), Art. 6(4)), with pseudonymisation as a safeguard.\n */\n CONTROLLER_COMPATIBILITY_ASSESSED = 'controller_compatibility_assessed',\n}\n\n/** Whether an export authorisation currently admits an export. */\nexport enum EvaluationExportAuthorizationStatus {\n /**\n * Nobody granted one. The state the organization's row is created in when its settings page is first read (the row\n * records that no decision was taken; it is not one). Exports are refused. Only a row that was never ACTIVE may hold\n * it: withdrawing a grant is REVOKED, which marks the datasets built under it.\n */\n NOT_GRANTED = 'not_granted',\n /** Granted, on the recorded basis. Exports are admitted. */\n ACTIVE = 'active',\n /** Withdrawn by the organization. Exports are refused, and datasets built under it are marked. */\n REVOKED = 'revoked',\n}\n\n/** Why an exported dataset may no longer be used. */\nexport enum EvaluationDatasetInvalidationReason {\n /** A case it contains was erased. */\n SUBJECT_ERASURE = 'subject_erasure',\n /** The authorisation it was exported under was revoked. */\n CONSENT_WITHDRAWN = 'consent_withdrawn',\n}\n\n/**\n * The outcomes a person actually DECIDED. The override rate counts only these: a lapse, a withdrawal or a lapsed\n * authority is nobody's judgement on the proposal, and counting it would move the rate without any expert having\n * looked.\n */\nexport const AGENT_WORK_DECISION_RATED_OUTCOMES: readonly HumanDecision_Outcome[] = Object.freeze([\n HumanDecision_Outcome.ACCEPTED,\n HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS,\n HumanDecision_Outcome.REJECTED,\n]);\n/** The outcomes that OVERRIDE the proposal: the numerator of the override rate. */\nexport const AGENT_WORK_DECISION_OVERRIDE_OUTCOMES: readonly HumanDecision_Outcome[] = Object.freeze([\n HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS,\n HumanDecision_Outcome.REJECTED,\n]);\n/** @wildo_source:part:end saas.models.agent-work-decision-vocabulary */\n\n/** A pointer at a row of the application: the final work product, never a copy of it. */\nexport const AgentWorkProductRefSchema = z.strictObject({\n resourceType: z.string().min(1).max(120).describe('Name of the resource the final work product is a row of, as the API names it.'),\n resourceId: z.string().min(1).max(200).describe('Id of that row. The decision points at the final version; it never holds a copy.'),\n});\nexport type AgentWorkProductRef = z.infer<typeof AgentWorkProductRefSchema>;\n\n/**\n * @wildo_source:part:start saas.models.agent-work-review-config facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * `agentWorkReview` in the backend configuration (#1599): the application's reason-code vocabulary for corrections,\n * and the case resources whose work is privileged (an export of such a case needs its client's recorded consent).\n * Optional: absent, reason codes are refused and no case is treated as privileged.\n */\nexport const AgentWorkReviewConfigSchema = z.strictObject({\n /** The reason codes an expert may give for a correction. A code outside this list is refused, never stored. */\n reasonCodes: z.array(AgentWorkReasonCodeSchema).max(200).default([]),\n /** Work-unit resource types whose cases are privileged or confidential (a matter, a patient file). */\n privilegedCaseResourceTypes: z.array(z.string().min(1).max(120)).max(50).default([]),\n});\nexport type AgentWorkReviewConfig = z.infer<typeof AgentWorkReviewConfigSchema>;\n/** @wildo_source:part:end saas.models.agent-work-review-config */\n\n/** A tenant-keyed HMAC-SHA256, hex. */\nconst KeyedDigestSchema = z.string().regex(/^[0-9a-f]{64}$/);\n\n//===============================================================\n// agentWorkDecisions — the metadata record\n//===============================================================\n\nexport const AgentWorkDecisionBaseSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n\n /**\n * The ONE decision id (#1594's `pendingDecisionRef` = `HumanDecision_Request.decisionId`), or the id the application\n * supplied to `recordOutputReview`. Unique, so every writer (the settle, the repair sweep, a retried output review)\n * records a decision at most once. Uniqueness is per variant store, like every polymorphic business key: a decision\n * is recorded in the scope of the execution it paused, so one ref never has two candidate stores.\n */\n decisionRef: z.string().min(1).max(200).isUnique({ scope: 'global', sparse: false }).excludeFromUpdate().isSummaryField(),\n surface: z.enum(AgentWorkDecisionSurface).systemEnum('AgentWorkDecisionSurface').isDBIndexed().isSummaryField(),\n outcome: z.enum(HumanDecision_Outcome).systemEnum('HumanDecision_Outcome').isDBIndexed().isSummaryField(),\n\n /**\n * The tenant the work was done for: the case row's organization when there is a case, else the organization the\n * decision was routed in or the execution belongs to. Absent only for work outside any organization. Stored on\n * every variant because the override rate and the export are per tenant, whichever principal owned the thread.\n */\n workOrganizationId: z.string().min(1).isDBIndexed().optional(),\n\n /** The actor system (or agent) whose proposal was decided. */\n agentRef: z.string().min(1).max(200).isDBIndexed().isSummaryField(),\n /** The agent's declared version when it has one. */\n agentVersion: z.string().min(1).max(120).optional(),\n toolName: z.string().min(1).max(200).isDBIndexed().optional(),\n\n // Work references (#1598): which case, which run, which task.\n caseRef: WorkUnitRefSchema.optional(),\n executionRef: ExecutionRefSchema.optional(),\n taskRef: z.string().min(1).max(200).optional(),\n\n /** The row the final version lives in. The record points at it rather than copying it. */\n finalWorkProductRef: AgentWorkProductRefSchema.optional(),\n\n // Diff statistics — what changed, never what it changed to.\n /**\n * The paths the final version changed, added or removed, sorted: an RFC 6901 pointer without its leading `/`, so a\n * top-level argument reads as its own name (`title`). `[]` when accepted as proposed.\n */\n modifiedPaths: z.array(z.string().max(400)).default([]),\n /** Levenshtein distance between the canonical JSON of the proposal and of the final version, when both were known. */\n editDistance: z.number().int().min(0).optional(),\n /** HMAC-SHA256 of the canonical proposal under the tenant's correction key. Never an unkeyed hash. */\n proposedDigest: KeyedDigestSchema.optional(),\n /** HMAC-SHA256 of the canonical final version under the same key. Equal digests: accepted as proposed. */\n finalDigest: KeyedDigestSchema.optional(),\n\n /** A value of the application-declared reason vocabulary. Never free text. */\n reasonCode: AgentWorkReasonCodeSchema.optional(),\n\n /**\n * Who decided. Severable: an erasure removes it and keeps the decision, which is the operator's evidence that agent\n * work was supervised.\n */\n deciderUserId: addImpersonalizeWith(z.string().min(1).isDBIndexed().optional().dataCategories(PersonalDataCategory.IDENTITY), RedactionType.REMOVE),\n /** The route role that admitted the decider, when a role route admitted them (#1594). */\n admittedByRole: z.string().min(1).max(120).optional(),\n\n /**\n * When the proposal was PUT BEFORE the decider: #1594's claim instant when the decision was claimed, else the instant\n * it was requested. Never the time this record was written. `decidedAt − presentedAt` is a proxy for review effort,\n * and it is labelled as a proxy wherever it is summed.\n */\n presentedAt: z.date().isDBIndexed(),\n decidedAt: z.date().isDBIndexed().isSummaryField(),\n\n recordSource: z.enum(AgentWorkDecisionRecordSource).systemEnum('AgentWorkDecisionRecordSource'),\n /** Whether a content row was written beside this record (the tenant's opt-in held when it was decided). */\n contentRecorded: z.boolean().default(false),\n\n createdAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type AgentWorkDecision = z.infer<typeof AgentWorkDecisionBaseSchema>;\n\n//===============================================================\n// agentWorkDecisionContents — the opt-in content\n//===============================================================\n\nexport const AgentWorkDecisionContentBaseSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n /** The decision this content belongs to; unique, so a retried write cannot store the content twice. */\n decisionRef: z.string().min(1).max(200).isUnique({ scope: 'global', sparse: false }).excludeFromUpdate().isSummaryField(),\n /** The case the content is about: an erasure of that row scrubs this content, whatever scope it lives in. */\n caseRef: WorkUnitRefSchema.optional(),\n /** The tenant, for the per-tenant reads of the export. */\n workOrganizationId: z.string().min(1).isDBIndexed().optional(),\n /** The proposal, as canonical JSON. */\n proposalJson: addImpersonalizeWith(z.string().max(200_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n /** The final version, as canonical JSON. */\n finalJson: addImpersonalizeWith(z.string().max(200_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n /** The RFC 6902 JSON Patch from the proposal to the final version, as JSON. */\n diffJson: addImpersonalizeWith(z.string().max(200_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n /** The decider's own words, when they gave any. */\n reasonText: addImpersonalizeWith(z.string().max(4_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n createdAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type AgentWorkDecisionContent = z.infer<typeof AgentWorkDecisionContentBaseSchema>;\n\n//===============================================================\n// Polymorphic declarations (the owner scope of the paused work)\n//===============================================================\n\n/**\n * The three owner scopes a decision is recorded in: the scope of the execution it paused (a user's own chat, an\n * organization's machine turn, an application's), or the organization of an output review. Multi-row per scope, so\n * the injected owner FK is not a business key.\n */\nexport const AGENT_WORK_DECISION_SCOPE_VARIANTS: PolymorphicVariantDefinition[] = [\n { parentResourceType: CoreResourceType.USERS, parentFieldIdentifier: coreResourceShared_FieldIdentifier[CoreResourceType.USERS], isPrimaryScope: true },\n { parentResourceType: CoreResourceType.ORGANIZATIONS, parentFieldIdentifier: coreResourceShared_FieldIdentifier[CoreResourceType.ORGANIZATIONS], isPrimaryScope: true },\n { parentResourceType: CoreResourceType.APPLICATION, parentFieldIdentifier: coreResourceShared_FieldIdentifier[CoreResourceType.APPLICATION], isPrimaryScope: true },\n].map(optOutPolymorphicAutoBusinessKey);\n\n/** `userAgentWorkDecisions` / `organizationAgentWorkDecisions` / `applicationAgentWorkDecisions`. */\nexport const agentWorkDecisionsPolymorphicDeclaration = declarePolymorphicSchemas({\n baseResourceType: 'agentWorkDecisions',\n baseFieldIdentifier: 'agentWorkDecisionId',\n baseEnumKey: 'AGENT_WORK_DECISIONS',\n baseSchema: AgentWorkDecisionBaseSchema,\n variants: AGENT_WORK_DECISION_SCOPE_VARIANTS,\n});\n\n/** `userAgentWorkDecisionContents` / `organizationAgentWorkDecisionContents` / `applicationAgentWorkDecisionContents`. */\nexport const agentWorkDecisionContentsPolymorphicDeclaration = declarePolymorphicSchemas({\n baseResourceType: 'agentWorkDecisionContents',\n baseFieldIdentifier: 'agentWorkDecisionContentId',\n baseEnumKey: 'AGENT_WORK_DECISION_CONTENTS',\n baseSchema: AgentWorkDecisionContentBaseSchema,\n variants: AGENT_WORK_DECISION_SCOPE_VARIANTS,\n});\n\n//===============================================================\n// The organization's settings: content capture, and export authorisation\n//===============================================================\n\n/**\n * @wildo_source:part:start saas.models.agent-work-capture-settings facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * One organization's choice to keep the CONTENT of its experts' corrections (#1599 D5). No row means\n * `METADATA_ONLY`. Every change is audited (`CORRECTION_CAPTURE_SETTING_CHANGED`). Keeping content needs a stated\n * purpose; the engine refuses `WITH_CONTENT` without one.\n */\nexport const AgentWorkCaptureSettingsSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().min(1).isDBIndexed().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n contentCapture: z.enum(CorrectionContentCapture).systemEnum('CorrectionContentCapture').default(CorrectionContentCapture.METADATA_ONLY).isSummaryField(),\n /** Why the content is kept, stated by the organization. Required to turn capture on. */\n purpose: z.string().min(1).max(2_000).optional(),\n /**\n * The organization role that may READ captured content (an organization administrator always may). Content is the\n * client's material; the role says who among its people may see what the experts changed.\n */\n contentReaderRole: z.string().min(1).max(120).optional(),\n /** Keep content only for these cases (a matter-by-matter opt-in). Empty: every case of the organization. */\n narrowToCaseRefs: z.array(WorkUnitRefSchema).max(500).default([]),\n createdAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n});\nexport type AgentWorkCaptureSettings = z.infer<typeof AgentWorkCaptureSettingsSchema>;\n/** @wildo_source:part:end saas.models.agent-work-capture-settings */\n\n/** One client consent an export may rely on, for privileged or confidential work on one case. */\nexport const EvaluationExportConsentSchema = z.strictObject({\n caseRef: WorkUnitRefSchema.describe('The case the client consented for. A case of a resource the application declares privileged is exported only with such a consent.'),\n /** Where the consent is recorded (an engagement-letter clause, a signed form): a reference, never the text. */\n consentRef: z.string().min(1).max(500).describe('Where the client\\'s consent is recorded, such as an engagement-letter clause or a signed form. A reference, never the consent text.'),\n recordedAt: z.iso.datetime({ offset: true }).describe('When the consent was recorded.'),\n});\nexport type EvaluationExportConsent = z.infer<typeof EvaluationExportConsentSchema>;\n\n/**\n * @wildo_source:part:start saas.models.evaluation-export-authorization facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * One organization's recorded authorisation to export its experts' corrections as evaluation data (#1599 D7). No row,\n * NOT_GRANTED or REVOKED: every export is refused. Every change is audited (`EVALUATION_EXPORT_AUTHORIZATION_CHANGED`).\n *\n * `basis` and `basisReference` are optional in the shape because a NOT_GRANTED row has neither, and required of every\n * ACTIVE row: the write that would leave the row ACTIVE without both is refused.\n */\nexport const EvaluationExportAuthorizationSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().min(1).isDBIndexed().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n status: z.enum(EvaluationExportAuthorizationStatus).systemEnum('EvaluationExportAuthorizationStatus').default(EvaluationExportAuthorizationStatus.ACTIVE).isSummaryField(),\n /** Required when ACTIVE. */\n basis: z.enum(EvaluationExportBasis).systemEnum('EvaluationExportBasis').optional().isSummaryField(),\n /** Where the basis is documented: the controller's instruction, or the compatibility assessment. A reference. Required when ACTIVE. */\n basisReference: z.string().min(1).max(500).optional(),\n /**\n * Per-case client consents. A case of a work-unit resource the application declares PRIVILEGED\n * (`agentWorkReview.privilegedCaseResourceTypes`) is exported only with its client's consent here.\n */\n clientConsents: z.array(EvaluationExportConsentSchema).max(2_000).default([]),\n /** Ethical walls and client opt-outs: cases never exported, whatever else holds. */\n excludedCaseRefs: z.array(WorkUnitRefSchema).max(2_000).default([]),\n createdAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n});\nexport type EvaluationExportAuthorization = z.infer<typeof EvaluationExportAuthorizationSchema>;\n/** @wildo_source:part:end saas.models.evaluation-export-authorization */\n\n/** One export of a tenant's corrections: the ledger an auditor and an erasure both read (#1599 D7). */\nexport const EvaluationDatasetExportSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().min(1).isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n exportedByUserId: addImpersonalizeWith(z.string().min(1).optional().dataCategories(PersonalDataCategory.IDENTITY), RedactionType.REMOVE),\n exportedAt: z.date().isDBIndexed().isSummaryField(),\n authorizationId: z.string().min(1),\n basis: z.enum(EvaluationExportBasis).systemEnum('EvaluationExportBasis'),\n agentRef: z.string().min(1).max(200).isDBIndexed(),\n windowFrom: z.date(),\n windowTo: z.date(),\n /** Every decision record the dataset contains. */\n decisionRefs: z.array(z.string().min(1).max(200)).default([]),\n /** The cases the dataset contains (`resourceType:resourceId`), so a case's erasure finds it. */\n caseKeys: z.array(z.string().min(1).max(400)).default([]),\n recordCount: z.number().int().min(0),\n /** The pseudonymisation scheme the identifiers were written under. */\n pseudonymisationVersion: z.string().min(1).max(40),\n /** Where the dataset was delivered, as the caller named it. */\n destination: z.string().min(1).max(500),\n invalidatedAt: z.date().optional(),\n invalidationReason: z.enum(EvaluationDatasetInvalidationReason).systemEnum('EvaluationDatasetInvalidationReason').optional(),\n createdAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n});\nexport type EvaluationDatasetExport = z.infer<typeof EvaluationDatasetExportSchema>;\n\n//===============================================================\n// Application API contracts\n//===============================================================\n\n/**\n * @wildo_source:part:start saas.models.agent-work-output-review facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * `recordOutputReview` — the application tells the engine an expert reviewed output an agent drafted into the\n * application's own rows (the main case in a service firm: an agent drafts a letter, a lawyer edits it). The\n * application supplies `decisionRef` (opaque, unique per review), so a retried call records once.\n */\nexport const AgentWorkOutputReviewInputSchema = z.strictObject({\n decisionRef: z.string().min(1).max(200),\n outcome: z.enum([HumanDecision_Outcome.ACCEPTED, HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS, HumanDecision_Outcome.REJECTED] as const),\n agentRef: z.string().min(1).max(200),\n agentVersion: z.string().min(1).max(120).optional(),\n /** The case the output is for. Admitted only if it is a readable row of a `workUnit` resource. */\n caseRef: WorkUnitRefSchema.optional(),\n taskRef: z.string().min(1).max(200).optional(),\n /** The row the reviewed output now lives in. */\n finalWorkProductRef: AgentWorkProductRefSchema.optional(),\n /** What the agent proposed, and what the expert kept. Used for the diff; stored only under the tenant's opt-in. */\n proposal: z.unknown().optional(),\n final: z.unknown().optional(),\n reasonCode: AgentWorkReasonCodeSchema.optional(),\n reasonText: z.string().max(4_000).optional(),\n /** When the draft was put before the expert (defaults to the review instant when the application does not know). */\n presentedAt: z.iso.datetime({ offset: true }).optional(),\n});\nexport type AgentWorkOutputReviewInput = z.infer<typeof AgentWorkOutputReviewInputSchema>;\n/** @wildo_source:part:end saas.models.agent-work-output-review */\n\n/** The longest window one override-rate summary or export may cover. */\nexport const AGENT_WORK_MAX_WINDOW_DAYS = 366;\nconst withinWindow = (request: { from: string; to: string }): boolean => {\n const from = Date.parse(request.from);\n const to = Date.parse(request.to);\n return from < to && to - from <= AGENT_WORK_MAX_WINDOW_DAYS * 24 * 60 * 60_000;\n};\n\n/**\n * @wildo_source:part:start saas.models.agent-work-override-rate facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * The override rate: (ACCEPTED_WITH_MODIFICATIONS + REJECTED) / (ACCEPTED + ACCEPTED_WITH_MODIFICATIONS + REJECTED)\n * per group, over a window. Lapsed, withdrawn and authority-lapsed decisions are counted apart and never enter the\n * rate. Computed from metadata only: no export authorisation is needed.\n */\nexport const AgentWorkOverrideRateRequestSchema = z.strictObject({\n from: z.iso.datetime({ offset: true }),\n to: z.iso.datetime({ offset: true }),\n groupBy: z.enum(AgentWorkDecisionGrouping),\n /** The tenant. Required for an organization administrator; an application administrator may omit it. */\n organizationId: z.string().min(1).optional(),\n agentRef: z.string().min(1).optional(),\n}).refine(withinWindow, { message: `from must precede to, within ${AGENT_WORK_MAX_WINDOW_DAYS} days`, path: ['to'] });\nexport type AgentWorkOverrideRateRequest = z.infer<typeof AgentWorkOverrideRateRequestSchema>;\n\nexport const AgentWorkOverrideRateGroupSchema = z.object({\n key: z.object({\n agentRef: z.string().optional(),\n toolName: z.string().optional(),\n caseRef: WorkUnitRefSchema.optional(),\n deciderUserId: z.string().optional(),\n }),\n accepted: z.number().int().min(0),\n acceptedWithModifications: z.number().int().min(0),\n rejected: z.number().int().min(0),\n /** Lapsed, withdrawn and authority-lapsed: not decisions anyone made, never in the rate. */\n notDecided: z.number().int().min(0),\n /** `null` when nothing was decided in the group: a rate of zero decisions is not zero. */\n overrideRate: z.number().min(0).max(1).nullable(),\n});\nexport type AgentWorkOverrideRateGroup = z.infer<typeof AgentWorkOverrideRateGroupSchema>;\n\nexport const AgentWorkOverrideRateSchema = z.object({\n window: z.object({ from: z.string(), to: z.string() }),\n groupBy: z.enum(AgentWorkDecisionGrouping),\n groups: z.array(AgentWorkOverrideRateGroupSchema),\n});\nexport type AgentWorkOverrideRate = z.infer<typeof AgentWorkOverrideRateSchema>;\n/** @wildo_source:part:end saas.models.agent-work-override-rate */\n\n/**\n * @wildo_source:part:start saas.models.evaluation-dataset-export facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * `POST /agent-work/evaluation-exports` — export one tenant's decisions on ONE agent's proposals over a window, as\n * pseudonymised JSON Lines. Refused (and audited) without an ACTIVE authorisation of that organization. Never pools\n * tenants: one organization per export.\n */\nexport const EvaluationDatasetExportRequestSchema = z.strictObject({\n organizationId: z.string().min(1),\n agentRef: z.string().min(1).max(200),\n from: z.iso.datetime({ offset: true }),\n to: z.iso.datetime({ offset: true }),\n /** Where the dataset goes (an evaluation store, a bucket path): recorded on the ledger. */\n destination: z.string().min(1).max(500),\n}).refine(withinWindow, { message: `from must precede to, within ${AGENT_WORK_MAX_WINDOW_DAYS} days`, path: ['to'] });\nexport type EvaluationDatasetExportRequest = z.infer<typeof EvaluationDatasetExportRequestSchema>;\n\nexport const EvaluationDatasetExportResultSchema = z.object({\n exportId: z.string(),\n recordCount: z.number().int().min(0),\n /**\n * The dataset, one JSON object per line: no decider and no organization. The record's own identifiers are\n * pseudonymised wherever they appear, including inside kept content; other values in kept content are exported as\n * the organization kept them.\n */\n jsonl: z.string(),\n pseudonymisationVersion: z.string(),\n});\nexport type EvaluationDatasetExportResult = z.infer<typeof EvaluationDatasetExportResultSchema>;\n/** @wildo_source:part:end saas.models.evaluation-dataset-export */\n\n/** The override rate of counted outcomes; `null` when nothing was decided. */\nexport function agentWorkOverrideRate(counts: { accepted: number; acceptedWithModifications: number; rejected: number }): number | null {\n const decided = counts.accepted + counts.acceptedWithModifications + counts.rejected;\n return decided === 0 ? null : (counts.acceptedWithModifications + counts.rejected) / decided;\n}\n"]}
1
+ {"version":3,"file":"agent-work-decisions.shared.schemas.js","sourceRoot":"","sources":["../../../src/flows-actors/agent-work-decisions.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7H,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACtH,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GAEjC,MAAM,kDAAkD,CAAC;AAE1D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAN,IAAY,6BAQX;AARD,WAAY,6BAA6B;IACvC,qFAAqF;IACrF,0DAAyB,CAAA;IACzB;;;OAGG;IACH,0DAAyB,CAAA;AAC3B,CAAC,EARW,6BAA6B,KAA7B,6BAA6B,QAQxC;AAED,+DAA+D;AAC/D,MAAM,CAAN,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,6DAA6D;IAC7D,6EAAqC,CAAA;IACrC,mDAAmD;IACnD,uFAA+C,CAAA;AACjD,CAAC,EALW,oCAAoC,KAApC,oCAAoC,QAK/C;AAED,+CAA+C;AAC/C,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,CAAC,CAAC;IACpC;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;CACpC,CAAC,CAAC;AAEH,mEAAmE;AAEnE,8EAA8E;AAC9E,MAAM,UAAU,qBAAqB,CAAC,MAAiF;IACrH,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,yBAAyB,GAAG,MAAM,CAAC,QAAQ,CAAC;IACrF,OAAO,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,yBAAyB,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC;AAC/F,CAAC","sourcesContent":["/**\n * # Agent-work decisions: what an expert did with an agent's proposal (#1599)\n *\n * An AI-native service firm's moat is its experts' corrections to agent work. This file is the record of them: one\n * row per decision a person took on something an agent PROPOSED (a tool call, an actor's reviewable output, a drafted\n * row), in two resources split by what the law asks of each half:\n *\n * - `agentWorkDecisions` — the METADATA, always written: who decided what, on which agent's proposal, for which case,\n * when, and how far the final version is from the proposal (paths, an edit distance, two tenant-keyed digests).\n * Bound to `AUDIT_LOGS`: it is the operator's evidence of how agent work was supervised, and it must outlive the\n * content it describes.\n * - `agentWorkDecisionContents` — the CONTENT (proposal, final, the JSON Patch between them, a reason text), written\n * ONLY when the tenant opted in (`CorrectionContentCapture.WITH_CONTENT`). Bound to `RESOURCE_DATA`: it is the\n * client's material, kept only as long as the rest of the tenant's data.\n *\n * One resource would have forced one retention period on both halves; the record of a decision must be kept longer\n * than the words it decided on (#1613 binds one class per resource).\n *\n * Two organization settings govern the second half and its reuse: `agentWorkCaptureSettings` (the opt-in, with its\n * stated purpose and the role that may read content) and `evaluationExportAuthorizations` (the basis on which a\n * tenant's decisions may be exported as evaluation data). Every export is recorded in `evaluationDatasetExports`.\n *\n * ## Why not the audit trail\n *\n * The decision is audited once, by #1594's `HUMAN_DECISION_RESOLVED`. The trail replicates to a SIEM and an immutable\n * ledger, so it is metadata-only by design and can never hold a proposal or a final version, nor be scrubbed when the\n * case is erased. These rows can.\n *\n * ## What is never stored here\n *\n * - The FINAL work product: the record POINTS at it (`finalWorkProductRef`); the row lives in the application's own\n * table, whose erasure and retention already apply.\n * - An unkeyed digest of content: `proposedDigest` / `finalDigest` are HMAC-SHA256 under a key derived per tenant from\n * the application's primary secret. An unkeyed hash of low-entropy content (a status, a title) is reversed by\n * enumeration, even in an erasable resource.\n * - Free-text reasons in the metadata: `reasonCode` is a value of the application-declared vocabulary; free text goes\n * to the opt-in content only.\n */\nimport { z } from 'zod';\nimport { initZodDecorators, addImpersonalizeWith } from '@wildo-ai/zod-decorators';\n\nimport { AgentWorkDecisionSurface, AgentWorkReasonCodeSchema, HumanDecision_Outcome } from './human-decision.shared.schemas';\nimport { WorkUnitRefSchema } from '../resources/work-unit.shared.schemas';\nimport { ExecutionRefSchema } from './work-attribution.shared.schemas';\nimport { PersonalDataCategory } from '../compliance/privacy/personal-data-category.shared.schemas';\nimport { RedactionType } from '../compliance/privacy/redaction.shared.schemas';\nimport { CoreResourceType, coreResourceShared_FieldIdentifier } from '../resources/resources.shared.core.definitions';\nimport {\n declarePolymorphicSchemas,\n optOutPolymorphicAutoBusinessKey,\n type PolymorphicVariantDefinition,\n} from '../resources/utils/resource-polymorphism.schemas';\n\ninitZodDecorators(z);\n\n/**\n * @wildo_source:part:start saas.models.agent-work-decision-vocabulary facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * How a decision record came to be written.\n */\nexport enum AgentWorkDecisionRecordSource {\n /** Written by the settle that won the decision, right after its compare-and-swap. */\n SETTLEMENT = 'settlement',\n /**\n * Written by the repair sweep from the execution row's resolution columns, because the process died between the\n * settle and the write. Metadata only: content captured in the lost window is not reconstructed.\n */\n ROW_REPAIR = 'row_repair',\n}\n\n/** Why an evaluation-dataset export was refused (#1599 I7). */\nexport enum EvaluationDatasetExportRefusalReason {\n /** The organization has recorded no export authorisation. */\n NO_AUTHORIZATION = 'no_authorization',\n /** The organization's authorisation is revoked. */\n AUTHORIZATION_REVOKED = 'authorization_revoked',\n}\n\n/** What an override-rate summary groups by. */\nexport enum AgentWorkDecisionGrouping {\n AGENT = 'agent',\n TOOL = 'tool',\n CASE = 'case',\n DECIDER = 'decider',\n}\n\n/**\n * Whether a tenant keeps the CONTENT of its experts' corrections. OFF by default (GDPR Art. 25(2) data protection by\n * default; the OpenTelemetry GenAI conventions ask instrumentations not to capture content by default): the override\n * rate needs only the outcome.\n */\nexport enum CorrectionContentCapture {\n /** Outcome, timestamps, paths and digests only. The default, and what an organization with no setting gets. */\n METADATA_ONLY = 'metadata_only',\n /** Also the proposal, the final version, the diff and a reason text, in `agentWorkDecisionContents`. */\n WITH_CONTENT = 'with_content',\n}\n\n/**\n * The legal basis a tenant records for exporting its experts' corrections as evaluation data. There is no third\n * member: an export with no recorded basis is refused.\n */\nexport enum EvaluationExportBasis {\n /**\n * The firm acts as PROCESSOR and the controller (its client) documented the instruction to improve the firm's\n * agents on this data (GDPR Art. 28(3)(a)).\n */\n PROCESSOR_DOCUMENTED_INSTRUCTION = 'processor_documented_instruction',\n /**\n * The firm acts as CONTROLLER and assessed the further use as compatible with the original purpose (GDPR\n * Art. 5(1)(b), Art. 6(4)), with pseudonymisation as a safeguard.\n */\n CONTROLLER_COMPATIBILITY_ASSESSED = 'controller_compatibility_assessed',\n}\n\n/** Whether an export authorisation currently admits an export. */\nexport enum EvaluationExportAuthorizationStatus {\n /**\n * Nobody granted one. The state the organization's row is created in when its settings page is first read (the row\n * records that no decision was taken; it is not one). Exports are refused. Only a row that was never ACTIVE may hold\n * it: withdrawing a grant is REVOKED, which marks the datasets built under it.\n */\n NOT_GRANTED = 'not_granted',\n /** Granted, on the recorded basis. Exports are admitted. */\n ACTIVE = 'active',\n /** Withdrawn by the organization. Exports are refused, and datasets built under it are marked. */\n REVOKED = 'revoked',\n}\n\n/** Why an exported dataset may no longer be used. */\nexport enum EvaluationDatasetInvalidationReason {\n /** A case it contains was erased. */\n SUBJECT_ERASURE = 'subject_erasure',\n /** The authorisation it was exported under was revoked. */\n CONSENT_WITHDRAWN = 'consent_withdrawn',\n}\n\n/**\n * The outcomes a person actually DECIDED. The override rate counts only these: a lapse, a withdrawal or a lapsed\n * authority is nobody's judgement on the proposal, and counting it would move the rate without any expert having\n * looked.\n */\nexport const AGENT_WORK_DECISION_RATED_OUTCOMES: readonly HumanDecision_Outcome[] = Object.freeze([\n HumanDecision_Outcome.ACCEPTED,\n HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS,\n HumanDecision_Outcome.REJECTED,\n]);\n/** The outcomes that OVERRIDE the proposal: the numerator of the override rate. */\nexport const AGENT_WORK_DECISION_OVERRIDE_OUTCOMES: readonly HumanDecision_Outcome[] = Object.freeze([\n HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS,\n HumanDecision_Outcome.REJECTED,\n]);\n/** @wildo_source:part:end saas.models.agent-work-decision-vocabulary */\n\n/** A pointer at a row of the application: the final work product, never a copy of it. */\nexport const AgentWorkProductRefSchema = z.strictObject({\n resourceType: z.string().min(1).max(120).describe('Name of the resource the final work product is a row of, as the API names it.'),\n resourceId: z.string().min(1).max(200).describe('Id of that row. The decision points at the final version; it never holds a copy.'),\n});\nexport type AgentWorkProductRef = z.infer<typeof AgentWorkProductRefSchema>;\n\n/**\n * @wildo_source:part:start saas.models.agent-work-review-config facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * `agentWorkReview` in the backend configuration (#1599): the application's reason-code vocabulary for corrections,\n * and the case resources whose work is privileged (an export of such a case needs its client's recorded consent).\n * Optional: absent, reason codes are refused and no case is treated as privileged.\n */\nexport const AgentWorkReviewConfigSchema = z.strictObject({\n /** The reason codes an expert may give for a correction. A code outside this list is refused, never stored. */\n reasonCodes: z.array(AgentWorkReasonCodeSchema).max(200).default([]),\n /** Work-unit resource types whose cases are privileged or confidential (a matter, a patient file). */\n privilegedCaseResourceTypes: z.array(z.string().min(1).max(120)).max(50).default([]),\n});\nexport type AgentWorkReviewConfig = z.infer<typeof AgentWorkReviewConfigSchema>;\n/** @wildo_source:part:end saas.models.agent-work-review-config */\n\n/** A tenant-keyed HMAC-SHA256, hex. */\nconst KeyedDigestSchema = z.string().regex(/^[0-9a-f]{64}$/);\n\n//===============================================================\n// agentWorkDecisions — the metadata record\n//===============================================================\n\nexport const AgentWorkDecisionBaseSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n\n /**\n * The ONE decision id (#1594's `pendingDecisionRef` = `HumanDecision_Request.decisionId`), or the id the application\n * supplied to `recordOutputReview`. Unique, so every writer (the settle, the repair sweep, a retried output review)\n * records a decision at most once. Uniqueness is per variant store, like every polymorphic business key: a decision\n * is recorded in the scope of the execution it paused, so one ref never has two candidate stores.\n */\n decisionRef: z.string().min(1).max(200).isUnique({ scope: 'global', sparse: false }).excludeFromUpdate().isSummaryField(),\n surface: z.enum(AgentWorkDecisionSurface).systemEnum('AgentWorkDecisionSurface').isDBIndexed().isSummaryField(),\n outcome: z.enum(HumanDecision_Outcome).systemEnum('HumanDecision_Outcome').isDBIndexed().isSummaryField(),\n\n /**\n * The tenant the work was done for: the case row's organization when there is a case, else the organization the\n * decision was routed in or the execution belongs to. Absent only for work outside any organization. Stored on\n * every variant because the override rate and the export are per tenant, whichever principal owned the thread.\n */\n workOrganizationId: z.string().min(1).isDBIndexed().optional(),\n\n /** The actor system (or agent) whose proposal was decided. */\n agentRef: z.string().min(1).max(200).isDBIndexed().isSummaryField(),\n /** The agent's declared version when it has one. */\n agentVersion: z.string().min(1).max(120).optional(),\n toolName: z.string().min(1).max(200).isDBIndexed().optional(),\n\n // Work references (#1598): which case, which run, which task.\n caseRef: WorkUnitRefSchema.optional(),\n executionRef: ExecutionRefSchema.optional(),\n taskRef: z.string().min(1).max(200).optional(),\n\n /** The row the final version lives in. The record points at it rather than copying it. */\n finalWorkProductRef: AgentWorkProductRefSchema.optional(),\n\n // Diff statistics — what changed, never what it changed to.\n /**\n * The paths the final version changed, added or removed, sorted: an RFC 6901 pointer without its leading `/`, so a\n * top-level argument reads as its own name (`title`). `[]` when accepted as proposed.\n */\n modifiedPaths: z.array(z.string().max(400)).default([]),\n /** Levenshtein distance between the canonical JSON of the proposal and of the final version, when both were known. */\n editDistance: z.number().int().min(0).optional(),\n /** HMAC-SHA256 of the canonical proposal under the tenant's correction key. Never an unkeyed hash. */\n proposedDigest: KeyedDigestSchema.optional(),\n /** HMAC-SHA256 of the canonical final version under the same key. Equal digests: accepted as proposed. */\n finalDigest: KeyedDigestSchema.optional(),\n\n /** A value of the application-declared reason vocabulary. Never free text. */\n reasonCode: AgentWorkReasonCodeSchema.optional(),\n\n /**\n * Who decided. Severable: an erasure removes it and keeps the decision, which is the operator's evidence that agent\n * work was supervised.\n */\n deciderUserId: addImpersonalizeWith(z.string().min(1).isDBIndexed().optional().dataCategories(PersonalDataCategory.IDENTITY), RedactionType.REMOVE),\n /** The route role that admitted the decider, when a role route admitted them (#1594). */\n admittedByRole: z.string().min(1).max(120).optional(),\n\n /**\n * When the proposal was PUT BEFORE the decider: #1594's claim instant when the decision was claimed, else the instant\n * it was requested. Never the time this record was written. `decidedAt − presentedAt` is a proxy for review effort,\n * and it is labelled as a proxy wherever it is summed.\n */\n presentedAt: z.date().isDBIndexed(),\n decidedAt: z.date().isDBIndexed().isSummaryField(),\n\n recordSource: z.enum(AgentWorkDecisionRecordSource).systemEnum('AgentWorkDecisionRecordSource'),\n /** Whether a content row was written beside this record (the tenant's opt-in held when it was decided). */\n contentRecorded: z.boolean().default(false),\n\n createdAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type AgentWorkDecision = z.infer<typeof AgentWorkDecisionBaseSchema>;\n\n//===============================================================\n// agentWorkDecisionContents — the opt-in content\n//===============================================================\n\nexport const AgentWorkDecisionContentBaseSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n /** The decision this content belongs to; unique, so a retried write cannot store the content twice. */\n decisionRef: z.string().min(1).max(200).isUnique({ scope: 'global', sparse: false }).excludeFromUpdate().isSummaryField(),\n /** The case the content is about: an erasure of that row scrubs this content, whatever scope it lives in. */\n caseRef: WorkUnitRefSchema.optional(),\n /** The tenant, for the per-tenant reads of the export. */\n workOrganizationId: z.string().min(1).isDBIndexed().optional(),\n /** The proposal, as canonical JSON. */\n proposalJson: addImpersonalizeWith(z.string().max(200_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n /** The final version, as canonical JSON. */\n finalJson: addImpersonalizeWith(z.string().max(200_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n /** The RFC 6902 JSON Patch from the proposal to the final version, as JSON. */\n diffJson: addImpersonalizeWith(z.string().max(200_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n /** The decider's own words, when they gave any. */\n reasonText: addImpersonalizeWith(z.string().max(4_000).optional().dataCategories(PersonalDataCategory.USER_CONTENT), RedactionType.REMOVE),\n createdAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type AgentWorkDecisionContent = z.infer<typeof AgentWorkDecisionContentBaseSchema>;\n\n//===============================================================\n// Polymorphic declarations (the owner scope of the paused work)\n//===============================================================\n\n/**\n * The three owner scopes a decision is recorded in: the scope of the execution it paused (a user's own chat, an\n * organization's machine turn, an application's), or the organization of an output review. Multi-row per scope, so\n * the injected owner FK is not a business key.\n */\nexport const AGENT_WORK_DECISION_SCOPE_VARIANTS: PolymorphicVariantDefinition[] = [\n { parentResourceType: CoreResourceType.USERS, parentFieldIdentifier: coreResourceShared_FieldIdentifier[CoreResourceType.USERS], isPrimaryScope: true },\n { parentResourceType: CoreResourceType.ORGANIZATIONS, parentFieldIdentifier: coreResourceShared_FieldIdentifier[CoreResourceType.ORGANIZATIONS], isPrimaryScope: true },\n { parentResourceType: CoreResourceType.APPLICATION, parentFieldIdentifier: coreResourceShared_FieldIdentifier[CoreResourceType.APPLICATION], isPrimaryScope: true },\n].map(optOutPolymorphicAutoBusinessKey);\n\n/** `userAgentWorkDecisions` / `organizationAgentWorkDecisions` / `applicationAgentWorkDecisions`. */\nexport const agentWorkDecisionsPolymorphicDeclaration = declarePolymorphicSchemas({\n baseResourceType: 'agentWorkDecisions',\n baseFieldIdentifier: 'agentWorkDecisionId',\n baseEnumKey: 'AGENT_WORK_DECISIONS',\n baseSchema: AgentWorkDecisionBaseSchema,\n variants: AGENT_WORK_DECISION_SCOPE_VARIANTS,\n});\n\n/** `userAgentWorkDecisionContents` / `organizationAgentWorkDecisionContents` / `applicationAgentWorkDecisionContents`. */\nexport const agentWorkDecisionContentsPolymorphicDeclaration = declarePolymorphicSchemas({\n baseResourceType: 'agentWorkDecisionContents',\n baseFieldIdentifier: 'agentWorkDecisionContentId',\n baseEnumKey: 'AGENT_WORK_DECISION_CONTENTS',\n baseSchema: AgentWorkDecisionContentBaseSchema,\n variants: AGENT_WORK_DECISION_SCOPE_VARIANTS,\n});\n\n//===============================================================\n// The organization's settings: content capture, and export authorisation\n//===============================================================\n\n/**\n * @wildo_source:part:start saas.models.agent-work-capture-settings facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * One organization's choice to keep the CONTENT of its experts' corrections (#1599 D5). No row means\n * `METADATA_ONLY`. Every change is audited (`CORRECTION_CAPTURE_SETTING_CHANGED`). Keeping content needs a stated\n * purpose; the engine refuses `WITH_CONTENT` without one.\n */\nexport const AgentWorkCaptureSettingsSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().min(1).isDBIndexed().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n contentCapture: z.enum(CorrectionContentCapture).systemEnum('CorrectionContentCapture').default(CorrectionContentCapture.METADATA_ONLY).isSummaryField(),\n /** Why the content is kept, stated by the organization. Required to turn capture on. */\n purpose: z.string().min(1).max(2_000).optional(),\n /**\n * The organization role that may READ captured content (an organization administrator always may). Content is the\n * client's material; the role says who among its people may see what the experts changed.\n */\n contentReaderRole: z.string().min(1).max(120).optional(),\n /** Keep content only for these cases (a matter-by-matter opt-in). Empty: every case of the organization. */\n narrowToCaseRefs: z.array(WorkUnitRefSchema).max(500).default([]),\n createdAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n});\nexport type AgentWorkCaptureSettings = z.infer<typeof AgentWorkCaptureSettingsSchema>;\n/** @wildo_source:part:end saas.models.agent-work-capture-settings */\n\n/** One client consent an export may rely on, for privileged or confidential work on one case. */\nexport const EvaluationExportConsentSchema = z.strictObject({\n caseRef: WorkUnitRefSchema.describe('The case the client consented for. A case of a resource the application declares privileged is exported only with such a consent.'),\n /** Where the consent is recorded (an engagement-letter clause, a signed form): a reference, never the text. */\n consentRef: z.string().min(1).max(500).describe('Where the client\\'s consent is recorded, such as an engagement-letter clause or a signed form. A reference, never the consent text.'),\n recordedAt: z.iso.datetime({ offset: true }).describe('When the consent was recorded.'),\n});\nexport type EvaluationExportConsent = z.infer<typeof EvaluationExportConsentSchema>;\n\n/**\n * @wildo_source:part:start saas.models.evaluation-export-authorization facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * One organization's recorded authorisation to export its experts' corrections as evaluation data (#1599 D7). No row,\n * NOT_GRANTED or REVOKED: every export is refused. Every change is audited (`EVALUATION_EXPORT_AUTHORIZATION_CHANGED`).\n *\n * `basis` and `basisReference` are optional in the shape because a NOT_GRANTED row has neither, and required of every\n * ACTIVE row: the write that would leave the row ACTIVE without both is refused.\n */\nexport const EvaluationExportAuthorizationSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().min(1).isDBIndexed().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n status: z.enum(EvaluationExportAuthorizationStatus).systemEnum('EvaluationExportAuthorizationStatus').default(EvaluationExportAuthorizationStatus.ACTIVE).isSummaryField(),\n /** Required when ACTIVE. */\n basis: z.enum(EvaluationExportBasis).systemEnum('EvaluationExportBasis').optional().isSummaryField(),\n /** Where the basis is documented: the controller's instruction, or the compatibility assessment. A reference. Required when ACTIVE. */\n basisReference: z.string().min(1).max(500).optional(),\n /**\n * Per-case client consents. A case of a work-unit resource the application declares PRIVILEGED\n * (`agentWorkReview.privilegedCaseResourceTypes`) is exported only with its client's consent here.\n */\n clientConsents: z.array(EvaluationExportConsentSchema).max(2_000).default([]),\n /** Ethical walls and client opt-outs: cases never exported, whatever else holds. */\n excludedCaseRefs: z.array(WorkUnitRefSchema).max(2_000).default([]),\n createdAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n});\nexport type EvaluationExportAuthorization = z.infer<typeof EvaluationExportAuthorizationSchema>;\n/** @wildo_source:part:end saas.models.evaluation-export-authorization */\n\n/** One export of a tenant's corrections: the ledger an auditor and an erasure both read (#1599 D7). */\nexport const EvaluationDatasetExportSchema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().min(1).isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n exportedByUserId: addImpersonalizeWith(z.string().min(1).optional().dataCategories(PersonalDataCategory.IDENTITY), RedactionType.REMOVE),\n exportedAt: z.date().isDBIndexed().isSummaryField(),\n authorizationId: z.string().min(1),\n basis: z.enum(EvaluationExportBasis).systemEnum('EvaluationExportBasis'),\n agentRef: z.string().min(1).max(200).isDBIndexed(),\n windowFrom: z.date(),\n windowTo: z.date(),\n /** Every decision record the dataset contains. */\n decisionRefs: z.array(z.string().min(1).max(200)).default([]),\n /** The cases the dataset contains (`resourceType:resourceId`), so a case's erasure finds it. */\n caseKeys: z.array(z.string().min(1).max(400)).default([]),\n recordCount: z.number().int().min(0),\n /** The pseudonymisation scheme the identifiers were written under. */\n pseudonymisationVersion: z.string().min(1).max(40),\n /** Where the dataset was delivered, as the caller named it. */\n destination: z.string().min(1).max(500),\n invalidatedAt: z.date().optional(),\n invalidationReason: z.enum(EvaluationDatasetInvalidationReason).systemEnum('EvaluationDatasetInvalidationReason').optional(),\n createdAt: z.date().default(() => new Date()).excludeFromCreate().excludeFromUpdate(),\n});\nexport type EvaluationDatasetExport = z.infer<typeof EvaluationDatasetExportSchema>;\n\n//===============================================================\n// Application API contracts\n//===============================================================\n\n/**\n * @wildo_source:part:start saas.models.agent-work-output-review facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * `recordOutputReview` — the application tells the engine an expert reviewed output an agent drafted into the\n * application's own rows (the main case in a service firm: an agent drafts a letter, a lawyer edits it). The\n * application supplies `decisionRef` (opaque, unique per review), so a retried call records once.\n */\nexport const AgentWorkOutputReviewInputSchema = z.strictObject({\n decisionRef: z.string().min(1).max(200),\n outcome: z.enum([HumanDecision_Outcome.ACCEPTED, HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS, HumanDecision_Outcome.REJECTED] as const),\n agentRef: z.string().min(1).max(200),\n agentVersion: z.string().min(1).max(120).optional(),\n /** The case the output is for. Admitted only if it is a readable row of a `workUnit` resource. */\n caseRef: WorkUnitRefSchema.optional(),\n taskRef: z.string().min(1).max(200).optional(),\n /** The row the reviewed output now lives in. */\n finalWorkProductRef: AgentWorkProductRefSchema.optional(),\n /** What the agent proposed, and what the expert kept. Used for the diff; stored only under the tenant's opt-in. */\n proposal: z.unknown().optional(),\n final: z.unknown().optional(),\n reasonCode: AgentWorkReasonCodeSchema.optional(),\n reasonText: z.string().max(4_000).optional(),\n /** When the draft was put before the expert (defaults to the review instant when the application does not know). */\n presentedAt: z.iso.datetime({ offset: true }).optional(),\n});\nexport type AgentWorkOutputReviewInput = z.infer<typeof AgentWorkOutputReviewInputSchema>;\n/** @wildo_source:part:end saas.models.agent-work-output-review */\n\n/** The longest window one override-rate summary or export may cover. */\nexport const AGENT_WORK_MAX_WINDOW_DAYS = 366;\nconst withinWindow = (request: { from: string; to: string }): boolean => {\n const from = Date.parse(request.from);\n const to = Date.parse(request.to);\n return from < to && to - from <= AGENT_WORK_MAX_WINDOW_DAYS * 24 * 60 * 60_000;\n};\n\n/**\n * @wildo_source:part:start saas.models.agent-work-override-rate facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * The override rate: (ACCEPTED_WITH_MODIFICATIONS + REJECTED) / (ACCEPTED + ACCEPTED_WITH_MODIFICATIONS + REJECTED)\n * per group, over a window. Lapsed, withdrawn and authority-lapsed decisions are counted apart and never enter the\n * rate. Computed from metadata only: no export authorisation is needed.\n */\nexport const AgentWorkOverrideRateRequestSchema = z.strictObject({\n from: z.iso.datetime({ offset: true }),\n to: z.iso.datetime({ offset: true }),\n groupBy: z.enum(AgentWorkDecisionGrouping),\n /** The tenant. Required for an organization administrator; an application administrator may omit it. */\n organizationId: z.string().min(1).optional(),\n agentRef: z.string().min(1).optional(),\n}).refine(withinWindow, { message: `from must precede to, within ${AGENT_WORK_MAX_WINDOW_DAYS} days`, path: ['to'] });\nexport type AgentWorkOverrideRateRequest = z.infer<typeof AgentWorkOverrideRateRequestSchema>;\n\nexport const AgentWorkOverrideRateGroupSchema = z.object({\n key: z.object({\n agentRef: z.string().optional(),\n toolName: z.string().optional(),\n caseRef: WorkUnitRefSchema.optional(),\n deciderUserId: z.string().optional(),\n }),\n accepted: z.number().int().min(0),\n acceptedWithModifications: z.number().int().min(0),\n rejected: z.number().int().min(0),\n /** Lapsed, withdrawn and authority-lapsed: not decisions anyone made, never in the rate. */\n notDecided: z.number().int().min(0),\n /** `null` when nothing was decided in the group: a rate of zero decisions is not zero. */\n overrideRate: z.number().min(0).max(1).nullable(),\n});\nexport type AgentWorkOverrideRateGroup = z.infer<typeof AgentWorkOverrideRateGroupSchema>;\n\nexport const AgentWorkOverrideRateSchema = z.object({\n window: z.object({ from: z.string(), to: z.string() }),\n groupBy: z.enum(AgentWorkDecisionGrouping),\n groups: z.array(AgentWorkOverrideRateGroupSchema),\n});\nexport type AgentWorkOverrideRate = z.infer<typeof AgentWorkOverrideRateSchema>;\n/** @wildo_source:part:end saas.models.agent-work-override-rate */\n\n/**\n * @wildo_source:part:start saas.models.evaluation-dataset-export facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * `POST /agent-work/evaluation-exports` — export one tenant's decisions on ONE agent's proposals over a window, as\n * pseudonymised JSON Lines. Refused (and audited) without an ACTIVE authorisation of that organization. Never pools\n * tenants: one organization per export.\n */\nexport const EvaluationDatasetExportRequestSchema = z.strictObject({\n organizationId: z.string().min(1),\n agentRef: z.string().min(1).max(200),\n from: z.iso.datetime({ offset: true }),\n to: z.iso.datetime({ offset: true }),\n /** Where the dataset goes (an evaluation store, a bucket path): recorded on the ledger. */\n destination: z.string().min(1).max(500),\n}).refine(withinWindow, { message: `from must precede to, within ${AGENT_WORK_MAX_WINDOW_DAYS} days`, path: ['to'] });\nexport type EvaluationDatasetExportRequest = z.infer<typeof EvaluationDatasetExportRequestSchema>;\n\nexport const EvaluationDatasetExportResultSchema = z.object({\n exportId: z.string(),\n recordCount: z.number().int().min(0),\n /**\n * The dataset, one JSON object per line: no decider and no organization. The record's own identifiers are\n * pseudonymised wherever they appear, including inside kept content; other values in kept content are exported as\n * the organization kept them.\n */\n jsonl: z.string(),\n pseudonymisationVersion: z.string(),\n});\nexport type EvaluationDatasetExportResult = z.infer<typeof EvaluationDatasetExportResultSchema>;\n/** @wildo_source:part:end saas.models.evaluation-dataset-export */\n\n/** The override rate of counted outcomes; `null` when nothing was decided. */\nexport function agentWorkOverrideRate(counts: { accepted: number; acceptedWithModifications: number; rejected: number }): number | null {\n const decided = counts.accepted + counts.acceptedWithModifications + counts.rejected;\n return decided === 0 ? null : (counts.acceptedWithModifications + counts.rejected) / decided;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"agents.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/agents.shared.schemas.ts"],"names":[],"mappings":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;;;;;;;;;;;;;;;;;;;;;;eAwCG;YACH,OAAO,EAAE,MAAM,EAAE,CAAC;SACnB,CAAC;KACH,CAAC;IAMF,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAElB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,uEAAuE;AAGvE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,4BAA4B,CACtC,WAAW,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EACvD,YAAY,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EACxD,aAAa,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,IACvD;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,6BAA6B,CAAC;IACzC,iBAAiB,EAAG,wBAAwB,EAAE,CAAC;IAE/C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAC9B,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACzC,gBAAgB,EAAE;QAChB,IAAI,EAAE,uBAAuB,CAAC;QAC9B,GAAG,EAAE,MAAM,CAAC;KACb,EAAE,CAAC;CAEL,CAAC;AACF,uEAAuE"}
@@ -1 +1 @@
1
- {"version":3,"file":"agents.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,0BAA0B,EAG1B,w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AC,MAAM,CAAC;QACjB,2DAA2D;QAC3D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,wCAAwC;QACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,iCAAiC;QACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,oDAAoD;QACpD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC;AAiMH,uEAAuE","sourcesContent":["import {\n CodingAgent_OperationDefinitionBase,\n CodingAgent_OperationKey,\n CodingAgent_OperationModelConfiguration,\n ImageProvider_OperationDefinitionBase,\n ImageProvider_OperationKey,\n ImageProvider_OperationModelConfiguration,\n LLMProvider_OperationDefinitionBase,\n LLMProvider_OperationKey,\n LLMProvider_OperationModelConfiguration,\n LLMProvider_PromptFormat,\n} from \"@wildo-ai/external-connectors-models\";\nimport { FlowsActors_LeafElements_Configuration } from \"./flows-actors.configuration.shared.schemas\";\nimport { FlowsActors_IO_PartKind } from \"./flows-actors.io.shared.schemas\";\nimport { ExecutionContext_InitiatorIds } from \"../runtime/execution-context.shared.schemas\";\nimport { FlowActorSystem_Kind } from \"./flows-actors.system.shared.schemas\";\nimport z from \"zod\";\nimport { FlowsActors_Relationship } from \"./flows-actors.commons.shared.schemas\";\nimport { AgentFileFormat } from \"@wildo-ai/zod-decorators\";\n\n\n\n//===============================================================\n// FlowsActors_Agent\n// --------\n// FlowsActors_Agents are AI-powered entities that execute agentic steps within\n// flows and actors. They encapsulate LLM configurations, skills,\n// and system prompts, enabling intelligent decision-making and\n// content generation. FlowsActors_Agents can be scoped to different levels\n// (platform, application, organization, user) for access control.\n//===============================================================\n\n\n//===============================================================\n// FlowsActors_Agent execution configuration\n// Keeps semantic LLM model config while allowing transport selection\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-configuration facet:kind:api facet:audience:app-developer\n *\n * Agent execution settings that stay stable across transport changes.\n *\n * `providerRef` and `model` still come from the semantic LLM configuration,\n * while `executionProfileRef` selects one transport/runtime profile under the\n * provider's `AGENT_CLIENT_PROTOCOL` transport when execution should not use the default\n * API-backed path.\n */\nexport type FlowsActors_Agent_ExecutionConfiguration = LLMProvider_OperationModelConfiguration & {\n executionProfileRef?: string;\n /** Refuse provider fan-out when one budget reservation authorizes exactly one physical model call. */\n structuredGenerationExecutionMode?: StructuredGenerationExecutionMode;\n /**\n * Immutable schema-shape ceiling used by both pre-admission planning and the physical structured-output executor.\n * SINGLE_CALL_REQUIRED agents must declare this value so a provider configuration override cannot silently change\n * the number of calls after one budget reservation has been admitted.\n */\n maximumStructuredOutputLeafFields?: number;\n};\n\nexport enum StructuredGenerationExecutionMode {\n CHUNKING_ALLOWED = 'CHUNKING_ALLOWED',\n SINGLE_CALL_REQUIRED = 'SINGLE_CALL_REQUIRED',\n}\n\n/**\n * The LLM/text execution arm of an agent config — the original shape,\n * unchanged. Its `operationKey` is an `LLMProvider_OperationKey`, which is\n * what discriminates this arm from the image arm below (the two operation-key\n * enums are disjoint, so TypeScript narrows the union by `operationKey`).\n * Produces the TEXT / STRUCTURED modality; the executor routes it to\n * `LLM_PROVIDER`.\n */\nexport type FlowsActors_Agent_LLMConfiguration = FlowsActors_LeafElements_Configuration & FlowsActors_Agent_ExecutionConfiguration & {\n operationKey: LLMProvider_OperationKey,\n seed?: number, // Random seed for deterministic output\n};\n\n/**\n * The IMAGE execution arm of an agent config. Carries image-generation\n * parameters (`size` / `quality` / `background` / …) instead of LLM sampling,\n * and an `ImageProvider_OperationKey`. Produces the IMAGE modality; the\n * executor routes it to `IMAGE_PROVIDER`. (AUDIO / VIDEO arms are reserved —\n * their config types land when those transports are wired.)\n */\nexport type FlowsActors_Agent_ImageConfiguration = FlowsActors_LeafElements_Configuration & ImageProvider_OperationModelConfiguration & {\n operationKey: ImageProvider_OperationKey,\n executionProfileRef?: string,\n};\n\n/**\n * The CODING execution arm of an agent config. Carries a workspace-mutating\n * agent reached over the Agent Client Protocol, and a `CodingAgent_OperationKey`.\n * Produces no artifact modality at all — its product is a CHANGED WORKSPACE,\n * which is why it sits on this axis rather than beside TEXT and IMAGE as\n * another thing to generate.\n *\n * `executionProfileRef` is REQUIRED here, unlike every other arm. A coding\n * agent cannot fall back to a default API-backed path: there is no such path,\n * and the profile is where the environment gate, the permission ceiling and the\n * host-configuration posture live. An agent that could omit it would be an\n * agent whose authority was unstated.\n */\nexport type FlowsActors_Agent_CodingConfiguration = FlowsActors_LeafElements_Configuration & CodingAgent_OperationModelConfiguration & {\n operationKey: CodingAgent_OperationKey,\n executionProfileRef: string,\n};\n\n/**\n * Agent execution config, discriminated by `operationKey` along the artifact\n * MODALITY axis. One agent concept; the arm selects the transport family.\n * Narrow with {@link isImageAgentConfiguration} or\n * {@link isCodingAgentConfiguration} before reading arm-specific fields.\n */\nexport type FlowsActors_Agent_Configuration =\n | FlowsActors_Agent_LLMConfiguration\n | FlowsActors_Agent_ImageConfiguration\n | FlowsActors_Agent_CodingConfiguration;\n\n/**\n * Narrows an agent config to its IMAGE arm. The two `operationKey` enums are\n * disjoint, so membership in `ImageProvider_OperationKey` is a sound\n * discriminant.\n */\nexport function isImageAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_ImageConfiguration {\n return Object.values(ImageProvider_OperationKey).includes(config.operationKey as ImageProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its LLM/text arm.\n *\n * Exists so consumers can narrow POSITIVELY. Writing `!isImageAgentConfiguration(config)`\n * to mean \"this is the LLM arm\" was correct only while the union had exactly two\n * members: the moment a third arm landed, that negation silently widened to\n * include it and the compiler reported a missing property somewhere else\n * entirely. A positive guard cannot absorb a future arm by accident.\n */\nexport function isLLMAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_LLMConfiguration {\n return Object.values(LLMProvider_OperationKey).includes(config.operationKey as LLMProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its CODING arm. The operation-key enums are\n * pairwise disjoint, so membership in `CodingAgent_OperationKey` is a sound\n * discriminant — the same argument the image guard rests on.\n */\nexport function isCodingAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_CodingConfiguration {\n return Object.values(CodingAgent_OperationKey).includes(config.operationKey as CodingAgent_OperationKey);\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-configuration */\n\n\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * Agent lifecycle status. Only `ACTIVE` agents are invocable — invoking an\n * `INACTIVE` / `DEPRECATED` agent is refused at the call, not at registration,\n * so this is the switch for retiring an agent without deleting its definition\n * (and without breaking the refs that still name it).\n */\nexport enum FlowsActors_Agent_Status {\n ACTIVE = \"active\",\n INACTIVE = \"inactive\",\n DEPRECATED = \"deprecated\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * What KIND of work the agent does. The prompt compiler turns this into the\n * agent's baseline behavioral instructions before your own `instructions[]` are\n * appended — so it is a real behavioral input, not a label. Pick the one that\n * matches the job: `GENERATION` (write something new), `ANALYSIS` (read and\n * report), `TRANSFORMATION` (reshape given input), `DECISION` (choose/judge),\n * `CHAT` (multi-turn conversation — see the chat-assistant skill), `CUSTOM`\n * (none of the baselines fit).\n */\nexport enum FlowsActors_Agent_Skill_Type {\n GENERATION = \"generation\",\n ANALYSIS = \"analysis\",\n TRANSFORMATION = \"transformation\",\n DECISION = \"decision\",\n CHAT = \"chat\",\n CUSTOM = \"custom\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n\n\n//===============================================================\n// FlowsActors_Agent Style Preferences\n//===============================================================\n\nexport enum FlowsActors_Agent_Verbosity {\n LOW = \"low\",\n MEDIUM = \"medium\",\n HIGH = \"high\",\n}\n\nexport enum FlowsActors_Agent_Tone {\n NEUTRAL = \"neutral\",\n CASUAL = \"casual\",\n FORMAL = \"formal\",\n TECHNICAL = \"technical\",\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Types (Task 1)\n// For prompt-level prohibitions with precedence + violation handling\n//===============================================================\n\nexport enum FlowsActors_Agent_ConstraintType {\n SECURITY = \"security\", // Never reveal API keys, never execute arbitrary code\n SAFETY = \"safety\", // Refuse harmful requests\n PRIVACY = \"privacy\", // Handle PII appropriately\n SCOPE = \"scope\", // Stay within task boundaries\n COMPLIANCE = \"compliance\", // Regulatory constraints\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Schema (Task 2)\n//===============================================================\n\nexport const FlowsActors_Agent_ConstraintSchema = z.object({\n /** Unique constraint identifier */\n id: z.string(),\n /** The constraint text (prohibition) */\n text: z.string(),\n /** Constraint category */\n type: z.enum(FlowsActors_Agent_ConstraintType),\n /** Action on violation */\n onViolation: z.enum([\"refuse\", \"warn\", \"log\"]).default(\"refuse\"),\n});\n\nexport type FlowsActors_Agent_Constraint = z.infer<typeof FlowsActors_Agent_ConstraintSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Output Specification Schema (Task 3)\n// REUSES: FlowsActors_IO_PartKind, AgentFileFormat, FlowsActors_Agent_Verbosity\n//===============================================================\n\nexport const FlowsActors_Agent_OutputSpecSchema = z.object({\n /**\n * Output type classification\n * REUSES: FlowsActors_IO_PartKind (TEXT, FILE, RAW_DATA, STRUCTURED)\n */\n type: z.enum(FlowsActors_IO_PartKind).optional(),\n\n /**\n * File format hint (for FILE type or text formatting guidance).\n *\n * REUSES `AgentFileFormat` from `@wildo-ai/zod-decorators` — the one named source for the formats\n * an agent emits, which also owns the extension and MIME mappings\n * (`AgentFileFormatRegistry`). It is imported from the layer BELOW this one on purpose: the same\n * vocabulary was previously declared twice, once here as `AppsBlueprint_FileFormat` and once\n * there as string literals, because a consumer of `saas-models` could not have been the source\n * without a dependency cycle.\n */\n fileFormat: z.enum(AgentFileFormat).optional(),\n\n /**\n * Length guidance - overrides style.verbosity for output specifically\n * REUSES: FlowsActors_Agent_Verbosity (LOW=concise, MEDIUM=moderate, HIGH=detailed)\n */\n lengthGuidance: z.enum(FlowsActors_Agent_Verbosity).optional(),\n\n /** Include reasoning/explanation in output */\n includeReasoning: z.boolean().optional(),\n\n /** Required sections in output (e.g., [\"summary\", \"recommendations\"]) */\n requiredSections: z.array(z.string()).optional(),\n});\n\nexport type FlowsActors_Agent_OutputSpec = z.infer<typeof FlowsActors_Agent_OutputSpecSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Policy (Task 4)\n// How to handle ambiguity in agent execution\n//===============================================================\n\nexport enum FlowsActors_Agent_UncertaintyPolicy {\n ASK = \"ask\", // Ask for clarification\n INFER = \"infer\", // Make reasonable inferences\n CONSERVATIVE = \"conservative\", // Choose safest option\n FAIL = \"fail\", // Return error on uncertainty\n}\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Schema (Task 5)\n//===============================================================\n\nexport const FlowsActors_Agent_UncertaintySchema = z.object({\n /** Policy when agent is uncertain */\n policy: z.enum(FlowsActors_Agent_UncertaintyPolicy).default(FlowsActors_Agent_UncertaintyPolicy.ASK),\n /** Confidence threshold (0-1) below which to apply policy */\n confidenceThreshold: z.number().min(0).max(1).optional(),\n});\n\nexport type FlowsActors_Agent_Uncertainty = z.infer<typeof FlowsActors_Agent_UncertaintySchema>;\n\n\n//===============================================================\n// FlowsActors_Agent_PromptSpec (Clean Implementation)\n// Complete prompt specification - required on all agents\n// Replaces legacy skill.role/persona approach\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * The agent's prompt, authored as STRUCTURE rather than one prose blob. The\n * prompt compiler renders these fields into the provider's preferred format\n * (XML boundaries for Claude, message roles for OpenAI, …), so you never\n * hand-format a system prompt or branch on the provider yourself.\n *\n * `role` + `skillType` are the only required fields — start there and add the\n * rest as the behavior needs them. Precedence when the model must choose:\n * `constraints` (prohibitions — highest) > `instructions` (hard rules) >\n * `hints` (soft preferences). Keep the per-call task in the invocation's\n * `input.prompt`; keep everything durable about the agent here.\n */\nexport const FlowsActors_Agent_PromptSpecSchema = z.object({\n //====================\n // IDENTITY (migrated from legacy skill)\n //====================\n\n /**\n * Agent's role description\n * Explains what this agent does and its primary function\n */\n role: z.string(),\n\n /**\n * Agent's persona/character\n * Defines the agent's personality, expertise, and communication approach\n */\n persona: z.string().optional(),\n\n /**\n * Agent skill type - determines baseline behavioral instructions\n */\n skillType: z.enum(FlowsActors_Agent_Skill_Type),\n\n //====================\n // CONSTRAINTS (highest precedence)\n //====================\n\n /**\n * Constraints - HIGHEST precedence, never violate\n * Different from instructions: constraints are prohibitions, instructions are rules\n */\n constraints: z.array(FlowsActors_Agent_ConstraintSchema).optional(),\n\n //====================\n // GOAL\n //====================\n\n /**\n * Goal statement - what the agent aims to achieve\n * Single sentence describing success criteria\n */\n goal: z.string().optional(),\n\n //====================\n // OUTPUT SPECIFICATION\n //====================\n\n /**\n * Output specification - format and structure requirements\n */\n output: FlowsActors_Agent_OutputSpecSchema.optional(),\n\n //====================\n // INSTRUCTIONS & HINTS\n //====================\n\n /** Hard rules - behavioral instructions (in addition to skill type baseline) */\n instructions: z.array(z.string()).default([]),\n\n /** Soft hints - preferences, can be overridden by task constraints */\n hints: z.array(z.string()).optional(),\n\n //====================\n // UNCERTAINTY HANDLING\n //====================\n\n /**\n * Uncertainty handling policy\n */\n uncertainty: FlowsActors_Agent_UncertaintySchema.optional(),\n\n //====================\n // SCOPE BOUNDARIES\n //====================\n\n /**\n * Scope boundaries - explicit \"don't do\" statements\n * Helps prevent scope creep\n */\n outOfScope: z.array(z.string()).optional(),\n\n //====================\n // EXAMPLES (few-shot)\n //====================\n\n /**\n * Examples - few-shot examples for better output quality\n * Format: input/output pairs with optional explanation\n */\n examples: z.array(z.object({\n input: z.string(),\n output: z.string(),\n explanation: z.string().optional(),\n })).optional(),\n\n //====================\n // STYLE\n //====================\n\n /** Style preferences */\n style: z.object({\n verbosity: z.enum(FlowsActors_Agent_Verbosity).optional(),\n tone: z.enum(FlowsActors_Agent_Tone).optional(),\n }).optional(),\n\n //====================\n // CONTEXT CURATION\n //====================\n\n /** Context curation settings */\n curation: z.object({\n /** Maximum context items to include */\n maxItems: z.number().min(1).max(100).optional(),\n /** Minimum relevance score threshold (0-1) */\n minRelevance: z.number().min(0).max(1).optional(),\n /** Maximum total tokens for context */\n maxTokens: z.number().optional(),\n }).optional(),\n\n //====================\n // FORMAT & METADATA\n //====================\n\n /** Override provider's default prompt format */\n promptFormatOverride: z.enum(LLMProvider_PromptFormat).optional(),\n\n /**\n * Prompt specification metadata for versioning and tracking\n * Helps track prompt iterations and authorship for 200+ agents\n */\n metadata: z.object({\n /** Semantic version of this prompt spec (e.g., \"1.2.0\") */\n version: z.string().optional(),\n /** Last modification date (ISO 8601) */\n lastModified: z.string().optional(),\n /** Author or team responsible */\n author: z.string().optional(),\n /** Brief changelog or reason for current version */\n changelog: z.string().optional(),\n }).optional(),\n});\n\nexport type FlowsActors_Agent_PromptSpec = z.infer<typeof FlowsActors_Agent_PromptSpecSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n//===============================================================\n// FlowsActors_Agent Schema (Clean Implementation)\n// FlowsActors_Agents are AI-powered entities with specific roles and capabilities\n// They are called by Flow Steps (AGENT_CALL) and Actors (AGENTIC mode)\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * A callable AI unit. This is the whole authoring surface for \"give my app an\n * LLM capability\": author one of these, register it on your backend module's\n * `flowsActors.agents`, then invoke it by `ref`.\n *\n * The definition is DECLARATIVE and durable — provider, model, operation, and\n * prompt live here; the per-call task lives in the invocation. Nothing about\n * transport, retries, rate limiting, usage accounting, or tracing is yours to\n * write: the engine owns all of it once the agent is registered.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent = {\n //====================\n // IDENTITY\n //====================\n\n /** Unique agent reference for flow/actor calls */\n ref: string,\n\n /** Human-readable display name */\n displayName: string,\n\n /** Agent lifecycle status */\n status: FlowsActors_Agent_Status,\n\n //====================\n // EXECUTION CONFIGURATION (modality-discriminated)\n //====================\n\n /** Provider/model config, discriminated by modality (LLM/text | image | coding). */\n config: FlowsActors_Agent_Configuration,\n\n /** Operation definition (input/output schemas, etc.), per transport family. */\n operationDefinition: LLMProvider_OperationDefinitionBase | ImageProvider_OperationDefinitionBase | CodingAgent_OperationDefinitionBase,\n\n //====================\n // ARTIFACT MODALITY (optional — explicit override; else derived from config)\n //====================\n\n /**\n * The modality this agent PRODUCES, as documentation.\n *\n * Declarative only: no runtime path reads it. Dispatch is decided entirely by\n * the arm of `config`, so setting or omitting this field changes nothing about\n * which provider protocol the agent reaches. Set it to make a multimodal\n * agent's output self-describing to a reader.\n */\n outputModality?: FlowsActors_IO_PartKind,\n\n /** The modalities this agent CONSUMES (e.g. `[TEXT]` for text-to-image). */\n inputModalities?: FlowsActors_IO_PartKind[],\n\n //====================\n // PROMPT SPECIFICATION (required)\n //====================\n\n /**\n * Complete prompt specification\n * Defines role, persona, constraints, instructions, output format, etc.\n */\n promptSpec: FlowsActors_Agent_PromptSpec,\n\n //====================\n // CAPABILITIES\n //====================\n\n /** Agent capabilities (tools, etc.) */\n capabilities?: {\n tools?: {\n /**\n * References to callable functions.\n *\n * RESOLVED: `AgentsBackendService` looks each ref up through\n * `flowsActorsRegistry.getFunctionTool(ref)` and hands the model a callable tool. An unknown\n * ref is skipped with a debug line rather than failing the turn.\n */\n functionRefs: string[],\n /**\n * References to MCP servers the agent may reach.\n *\n * ## CHECKED, NOT YET CALLABLE (#491)\n *\n * Each ref must name an MCP server the APPLICATION declared (`FlowsActors_McpServer`), and\n * `FlowsActorsRegistryService` REFUSES at initialization an agent whose refs name none. That\n * closes the shape this field was in: it used to resolve against nothing, so a shipped catalog\n * carried seven refs (`filesystem-mcp`, `git-mcp`, `browser-mcp`, `mongodb-mcp`, …) that named\n * no server anywhere while the agent card rendered them as capabilities — a claim shown to a\n * user about a reach the agent did not have. The catalog is gone and the card no longer\n * renders these.\n *\n * The check is deliberately stricter than `functionRefs`, which skip an unknown ref with a\n * debug line: an unknown `functionRef` costs an agent one tool, whereas these were presented\n * as a capability, and a refusal makes the old state unreachable rather than fixed once.\n *\n * ## What is still missing before a ref becomes a CALLABLE tool\n *\n * The declaration is checkable; the call is not yet made. `AgentsBackendService` resolves\n * `functionRefs` and nothing else, so an agent carrying `mcpRefs` still has exactly the reach\n * its `functionRefs` give it.\n *\n * 1. **An MCP client.** `saas-backend-lib/src/mcp/` is the SERVER Wildo exposes to external MCP\n * clients. There is no client, and no MCP client SDK in any manifest.\n * 2. ~~A server registry~~ — BUILT. `registry.mcpServers`, declared per application.\n * 3. **Credential resolution at call time.** Decided 2026-09-09: the call carries the acting\n * user's own delegated provider credential where present and the organization's connection\n * otherwise, from `userProviderCredentials` / `organizationProviderCredentials` rather than\n * a store invented for MCP. `FlowsActors_McpCredentialSubject` records that choice per\n * server; nothing reads it yet.\n *\n * Also decided, and not yet implemented: an unreachable server contributes NO tools to a turn\n * rather than failing it — tools are discovered at turn start — and a call that fails mid-turn\n * returns a typed error the agent can reason about. Both emit an audit event, because a server\n * quietly unreachable for a week must be visible as that rather than as an agent that became\n * less capable for no stated reason.\n *\n * Restoring these to any surface that presents them as a capability belongs in the same change\n * that makes them callable.\n */\n mcpRefs: string[],\n },\n },\n\n //====================\n // VERSIONING\n //====================\n\n /** Agent definition version */\n version?: string,\n\n /** Creation timestamp (ISO 8601) */\n createdAt: string,\n\n /** Last update timestamp (ISO 8601) */\n updatedAt?: string,\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-invocation facet:kind:api facet:audience:app-developer\n *\n * One call to one agent — the envelope you build and hand to\n * `AgentsBackendService.invokeAgent`, and the SAME shape you get back with\n * `output` and `executionContext` filled in.\n *\n * What you supply:\n * - `agentRef` — the `ref` of a registered agent (unknown ref throws).\n * - `input` — the per-call task. `{ prompt }` for text; add `{ schema }` (a Zod\n * schema) for `GENERATE_STRUCTURED`, which REQUIRES it. Anything else you put\n * here is JSON-serialized into the user prompt.\n * - `output` — an empty value of the expected shape (`{ text: '' }`,\n * `{ object: {} }`). It is a typing seed; the returned envelope replaces it.\n * - `initiator` / `invocationContext` / `artifactBindings` — `{}` / `[]` / `[]`\n * when you have nothing to correlate.\n *\n * What comes back: `output` normalized to the operation's shape, and\n * `executionContext` enriched with `executionTime`, `finishedAt`, and provider\n * `usage` (tokens) when the transport reports it.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent_Invocation<\n InputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n OutputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n ContextSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n> = {\n _id?: string,\n agentRef: string,\n initiator: ExecutionContext_InitiatorIds,\n invocationContext : FlowsActors_Relationship[],\n\n input: z.infer<InputSchema>,\n output: z.infer<OutputSchema>,\n executionContext: z.infer<ContextSchema>,\n artifactBindings: {\n kind: FlowsActors_IO_PartKind,\n ref: string,\n }[],\n\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-invocation */\n"]}
1
+ {"version":3,"file":"agents.shared.schemas.js","sourceRoot":"","sources":["../../../src/flows-actors/agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,0BAA0B,EAG1B,wBAAwB,EAExB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAy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,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,oDAAoD;QACpD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC;AAiMH,uEAAuE","sourcesContent":["import {\n CodingAgent_OperationDefinitionBase,\n CodingAgent_OperationKey,\n CodingAgent_OperationModelConfiguration,\n ImageProvider_OperationDefinitionBase,\n ImageProvider_OperationKey,\n ImageProvider_OperationModelConfiguration,\n LLMProvider_OperationDefinitionBase,\n LLMProvider_OperationKey,\n LLMProvider_OperationModelConfiguration,\n LLMProvider_PromptFormat,\n} from \"@wildo-ai/external-connectors-models\";\nimport { FlowsActors_LeafElements_Configuration } from \"./flows-actors.configuration.shared.schemas\";\nimport { FlowsActors_IO_PartKind } from \"./flows-actors.io.shared.schemas\";\nimport { ExecutionContext_InitiatorIds } from \"../runtime/execution-context.shared.schemas\";\nimport { FlowActorSystem_Kind } from \"./flows-actors.system.shared.schemas\";\nimport z from \"zod\";\nimport { FlowsActors_Relationship } from \"./flows-actors.commons.shared.schemas\";\nimport { AgentFileFormat } from \"@wildo-ai/zod-decorators\";\n\n\n\n//===============================================================\n// FlowsActors_Agent\n// --------\n// FlowsActors_Agents are AI-powered entities that execute agentic steps within\n// flows and actors. They encapsulate LLM configurations, skills,\n// and system prompts, enabling intelligent decision-making and\n// content generation. FlowsActors_Agents can be scoped to different levels\n// (platform, application, organization, user) for access control.\n//===============================================================\n\n\n//===============================================================\n// FlowsActors_Agent execution configuration\n// Keeps semantic LLM model config while allowing transport selection\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-configuration facet:kind:api facet:audience:app-developer\n *\n * Agent execution settings that stay stable across transport changes.\n *\n * `providerRef` and `model` still come from the semantic LLM configuration,\n * while `executionProfileRef` selects one transport/runtime profile under the\n * provider's `AGENT_CLIENT_PROTOCOL` transport when execution should not use the default\n * API-backed path.\n */\nexport type FlowsActors_Agent_ExecutionConfiguration = LLMProvider_OperationModelConfiguration & {\n executionProfileRef?: string;\n /** Refuse provider fan-out when one budget reservation authorizes exactly one physical model call. */\n structuredGenerationExecutionMode?: StructuredGenerationExecutionMode;\n /**\n * Immutable schema-shape ceiling used by both pre-admission planning and the physical structured-output executor.\n * SINGLE_CALL_REQUIRED agents must declare this value so a provider configuration override cannot silently change\n * the number of calls after one budget reservation has been admitted.\n */\n maximumStructuredOutputLeafFields?: number;\n};\n\nexport enum StructuredGenerationExecutionMode {\n CHUNKING_ALLOWED = 'CHUNKING_ALLOWED',\n SINGLE_CALL_REQUIRED = 'SINGLE_CALL_REQUIRED',\n}\n\n/**\n * The LLM/text execution arm of an agent config — the original shape,\n * unchanged. Its `operationKey` is an `LLMProvider_OperationKey`, which is\n * what discriminates this arm from the image arm below (the two operation-key\n * enums are disjoint, so TypeScript narrows the union by `operationKey`).\n * Produces the TEXT / STRUCTURED modality; the executor routes it to\n * `LLM_PROVIDER`.\n */\nexport type FlowsActors_Agent_LLMConfiguration = FlowsActors_LeafElements_Configuration & FlowsActors_Agent_ExecutionConfiguration & {\n operationKey: LLMProvider_OperationKey,\n seed?: number, // Random seed for deterministic output\n};\n\n/**\n * The IMAGE execution arm of an agent config. Carries image-generation\n * parameters (`size` / `quality` / `background` / …) instead of LLM sampling,\n * and an `ImageProvider_OperationKey`. Produces the IMAGE modality; the\n * executor routes it to `IMAGE_PROVIDER`. (AUDIO / VIDEO arms are reserved —\n * their config types land when those transports are wired.)\n */\nexport type FlowsActors_Agent_ImageConfiguration = FlowsActors_LeafElements_Configuration & ImageProvider_OperationModelConfiguration & {\n operationKey: ImageProvider_OperationKey,\n executionProfileRef?: string,\n};\n\n/**\n * The CODING execution arm of an agent config. Carries a workspace-mutating\n * agent reached over the Agent Client Protocol, and a `CodingAgent_OperationKey`.\n * Produces no artifact modality at all — its product is a CHANGED WORKSPACE,\n * which is why it sits on this axis rather than beside TEXT and IMAGE as\n * another thing to generate.\n *\n * `executionProfileRef` is REQUIRED here, unlike every other arm. A coding\n * agent cannot fall back to a default API-backed path: there is no such path,\n * and the profile is where the environment gate, the permission ceiling and the\n * host-configuration posture live. An agent that could omit it would be an\n * agent whose authority was unstated.\n */\nexport type FlowsActors_Agent_CodingConfiguration = FlowsActors_LeafElements_Configuration & CodingAgent_OperationModelConfiguration & {\n operationKey: CodingAgent_OperationKey,\n executionProfileRef: string,\n};\n\n/**\n * Agent execution config, discriminated by `operationKey` along the artifact\n * MODALITY axis. One agent concept; the arm selects the transport family.\n * Narrow with {@link isImageAgentConfiguration} or\n * {@link isCodingAgentConfiguration} before reading arm-specific fields.\n */\nexport type FlowsActors_Agent_Configuration =\n | FlowsActors_Agent_LLMConfiguration\n | FlowsActors_Agent_ImageConfiguration\n | FlowsActors_Agent_CodingConfiguration;\n\n/**\n * Narrows an agent config to its IMAGE arm. The two `operationKey` enums are\n * disjoint, so membership in `ImageProvider_OperationKey` is a sound\n * discriminant.\n */\nexport function isImageAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_ImageConfiguration {\n return Object.values(ImageProvider_OperationKey).includes(config.operationKey as ImageProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its LLM/text arm.\n *\n * Exists so consumers can narrow POSITIVELY. Writing `!isImageAgentConfiguration(config)`\n * to mean \"this is the LLM arm\" was correct only while the union had exactly two\n * members: the moment a third arm landed, that negation silently widened to\n * include it and the compiler reported a missing property somewhere else\n * entirely. A positive guard cannot absorb a future arm by accident.\n */\nexport function isLLMAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_LLMConfiguration {\n return Object.values(LLMProvider_OperationKey).includes(config.operationKey as LLMProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its CODING arm. The operation-key enums are\n * pairwise disjoint, so membership in `CodingAgent_OperationKey` is a sound\n * discriminant — the same argument the image guard rests on.\n */\nexport function isCodingAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_CodingConfiguration {\n return Object.values(CodingAgent_OperationKey).includes(config.operationKey as CodingAgent_OperationKey);\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-configuration */\n\n\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * Agent lifecycle status. Only `ACTIVE` agents are invocable — invoking an\n * `INACTIVE` / `DEPRECATED` agent is refused at the call, not at registration,\n * so this is the switch for retiring an agent without deleting its definition\n * (and without breaking the refs that still name it).\n */\nexport enum FlowsActors_Agent_Status {\n ACTIVE = \"active\",\n INACTIVE = \"inactive\",\n DEPRECATED = \"deprecated\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * What KIND of work the agent does. The prompt compiler turns this into the\n * agent's baseline behavioral instructions before your own `instructions[]` are\n * appended — so it is a real behavioral input, not a label. Pick the one that\n * matches the job: `GENERATION` (write something new), `ANALYSIS` (read and\n * report), `TRANSFORMATION` (reshape given input), `DECISION` (choose/judge),\n * `CHAT` (multi-turn conversation — see the chat-assistant skill), `CUSTOM`\n * (none of the baselines fit).\n */\nexport enum FlowsActors_Agent_Skill_Type {\n GENERATION = \"generation\",\n ANALYSIS = \"analysis\",\n TRANSFORMATION = \"transformation\",\n DECISION = \"decision\",\n CHAT = \"chat\",\n CUSTOM = \"custom\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n\n\n//===============================================================\n// FlowsActors_Agent Style Preferences\n//===============================================================\n\nexport enum FlowsActors_Agent_Verbosity {\n LOW = \"low\",\n MEDIUM = \"medium\",\n HIGH = \"high\",\n}\n\nexport enum FlowsActors_Agent_Tone {\n NEUTRAL = \"neutral\",\n CASUAL = \"casual\",\n FORMAL = \"formal\",\n TECHNICAL = \"technical\",\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Types (Task 1)\n// For prompt-level prohibitions with precedence + violation handling\n//===============================================================\n\nexport enum FlowsActors_Agent_ConstraintType {\n SECURITY = \"security\", // Never reveal API keys, never execute arbitrary code\n SAFETY = \"safety\", // Refuse harmful requests\n PRIVACY = \"privacy\", // Handle PII appropriately\n SCOPE = \"scope\", // Stay within task boundaries\n COMPLIANCE = \"compliance\", // Regulatory constraints\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Schema (Task 2)\n//===============================================================\n\nexport const FlowsActors_Agent_ConstraintSchema = z.object({\n /** Unique constraint identifier */\n id: z.string(),\n /** The constraint text (prohibition) */\n text: z.string(),\n /** Constraint category */\n type: z.enum(FlowsActors_Agent_ConstraintType),\n /** Action on violation */\n onViolation: z.enum([\"refuse\", \"warn\", \"log\"]).default(\"refuse\"),\n});\n\nexport type FlowsActors_Agent_Constraint = z.infer<typeof FlowsActors_Agent_ConstraintSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Output Specification Schema (Task 3)\n// REUSES: FlowsActors_IO_PartKind, AgentFileFormat, FlowsActors_Agent_Verbosity\n//===============================================================\n\nexport const FlowsActors_Agent_OutputSpecSchema = z.object({\n /**\n * Output type classification\n * REUSES: FlowsActors_IO_PartKind (TEXT, FILE, RAW_DATA, STRUCTURED)\n */\n type: z.enum(FlowsActors_IO_PartKind).optional(),\n\n /**\n * File format hint (for FILE type or text formatting guidance).\n *\n * REUSES `AgentFileFormat` from `@wildo-ai/zod-decorators` — the one named source for the formats\n * an agent emits, which also owns the extension and MIME mappings\n * (`AgentFileFormatRegistry`). It is imported from the layer BELOW this one on purpose: the same\n * vocabulary was previously declared twice, once here as `AppsBlueprint_FileFormat` and once\n * there as string literals, because a consumer of `saas-models` could not have been the source\n * without a dependency cycle.\n */\n fileFormat: z.enum(AgentFileFormat).optional(),\n\n /**\n * Length guidance - overrides style.verbosity for output specifically\n * REUSES: FlowsActors_Agent_Verbosity (LOW=concise, MEDIUM=moderate, HIGH=detailed)\n */\n lengthGuidance: z.enum(FlowsActors_Agent_Verbosity).optional(),\n\n /** Include reasoning/explanation in output */\n includeReasoning: z.boolean().optional(),\n\n /** Required sections in output (e.g., [\"summary\", \"recommendations\"]) */\n requiredSections: z.array(z.string()).optional(),\n});\n\nexport type FlowsActors_Agent_OutputSpec = z.infer<typeof FlowsActors_Agent_OutputSpecSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Policy (Task 4)\n// How to handle ambiguity in agent execution\n//===============================================================\n\nexport enum FlowsActors_Agent_UncertaintyPolicy {\n ASK = \"ask\", // Ask for clarification\n INFER = \"infer\", // Make reasonable inferences\n CONSERVATIVE = \"conservative\", // Choose safest option\n FAIL = \"fail\", // Return error on uncertainty\n}\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Schema (Task 5)\n//===============================================================\n\nexport const FlowsActors_Agent_UncertaintySchema = z.object({\n /** Policy when agent is uncertain */\n policy: z.enum(FlowsActors_Agent_UncertaintyPolicy).default(FlowsActors_Agent_UncertaintyPolicy.ASK),\n /** Confidence threshold (0-1) below which to apply policy */\n confidenceThreshold: z.number().min(0).max(1).optional(),\n});\n\nexport type FlowsActors_Agent_Uncertainty = z.infer<typeof FlowsActors_Agent_UncertaintySchema>;\n\n\n//===============================================================\n// FlowsActors_Agent_PromptSpec (Clean Implementation)\n// Complete prompt specification - required on all agents\n// Replaces legacy skill.role/persona approach\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * The agent's prompt, authored as STRUCTURE rather than one prose blob. The\n * prompt compiler renders these fields into the provider's preferred format\n * (XML boundaries for Claude, message roles for OpenAI, …), so you never\n * hand-format a system prompt or branch on the provider yourself.\n *\n * `role` + `skillType` are the only required fields — start there and add the\n * rest as the behavior needs them. Precedence when the model must choose:\n * `constraints` (prohibitions — highest) > `instructions` (hard rules) >\n * `hints` (soft preferences). Keep the per-call task in the invocation's\n * `input.prompt`; keep everything durable about the agent here.\n */\nexport const FlowsActors_Agent_PromptSpecSchema = z.object({\n //====================\n // IDENTITY (migrated from legacy skill)\n //====================\n\n /**\n * Agent's role description\n * Explains what this agent does and its primary function\n */\n role: z.string(),\n\n /**\n * Agent's persona/character\n * Defines the agent's personality, expertise, and communication approach\n */\n persona: z.string().optional(),\n\n /**\n * Agent skill type - determines baseline behavioral instructions\n */\n skillType: z.enum(FlowsActors_Agent_Skill_Type),\n\n //====================\n // CONSTRAINTS (highest precedence)\n //====================\n\n /**\n * Constraints - HIGHEST precedence, never violate\n * Different from instructions: constraints are prohibitions, instructions are rules\n */\n constraints: z.array(FlowsActors_Agent_ConstraintSchema).optional(),\n\n //====================\n // GOAL\n //====================\n\n /**\n * Goal statement - what the agent aims to achieve\n * Single sentence describing success criteria\n */\n goal: z.string().optional(),\n\n //====================\n // OUTPUT SPECIFICATION\n //====================\n\n /**\n * Output specification - format and structure requirements\n */\n output: FlowsActors_Agent_OutputSpecSchema.optional(),\n\n //====================\n // INSTRUCTIONS & HINTS\n //====================\n\n /** Hard rules - behavioral instructions (in addition to skill type baseline) */\n instructions: z.array(z.string()).default([]),\n\n /** Soft hints - preferences, can be overridden by task constraints */\n hints: z.array(z.string()).optional(),\n\n //====================\n // UNCERTAINTY HANDLING\n //====================\n\n /**\n * Uncertainty handling policy\n */\n uncertainty: FlowsActors_Agent_UncertaintySchema.optional(),\n\n //====================\n // SCOPE BOUNDARIES\n //====================\n\n /**\n * Scope boundaries - explicit \"don't do\" statements\n * Helps prevent scope creep\n */\n outOfScope: z.array(z.string()).optional(),\n\n //====================\n // EXAMPLES (few-shot)\n //====================\n\n /**\n * Examples - few-shot examples for better output quality\n * Format: input/output pairs with optional explanation\n */\n examples: z.array(z.object({\n input: z.string(),\n output: z.string(),\n explanation: z.string().optional(),\n })).optional(),\n\n //====================\n // STYLE\n //====================\n\n /** Style preferences */\n style: z.object({\n verbosity: z.enum(FlowsActors_Agent_Verbosity).optional(),\n tone: z.enum(FlowsActors_Agent_Tone).optional(),\n }).optional(),\n\n //====================\n // CONTEXT CURATION\n //====================\n\n /** Context curation settings */\n curation: z.object({\n /** Maximum context items to include */\n maxItems: z.number().min(1).max(100).optional(),\n /** Minimum relevance score threshold (0-1) */\n minRelevance: z.number().min(0).max(1).optional(),\n /** Maximum total tokens for context */\n maxTokens: z.number().optional(),\n }).optional(),\n\n //====================\n // FORMAT & METADATA\n //====================\n\n /** Override provider's default prompt format */\n promptFormatOverride: z.enum(LLMProvider_PromptFormat).optional(),\n\n /**\n * Prompt specification metadata for versioning and tracking\n * Helps track prompt iterations and authorship for 200+ agents\n */\n metadata: z.object({\n /** Semantic version of this prompt spec (e.g., \"1.2.0\") */\n version: z.string().optional(),\n /** Last modification date (ISO 8601) */\n lastModified: z.string().optional(),\n /** Author or team responsible */\n author: z.string().optional(),\n /** Brief changelog or reason for current version */\n changelog: z.string().optional(),\n }).optional(),\n});\n\nexport type FlowsActors_Agent_PromptSpec = z.infer<typeof FlowsActors_Agent_PromptSpecSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n//===============================================================\n// FlowsActors_Agent Schema (Clean Implementation)\n// FlowsActors_Agents are AI-powered entities with specific roles and capabilities\n// They are called by Flow Steps (AGENT_CALL) and Actors (AGENTIC mode)\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * A callable AI unit. This is the whole authoring surface for \"give my app an\n * LLM capability\": author one of these, register it on your backend module's\n * `flowsActors.agents`, then invoke it by `ref`.\n *\n * The definition is DECLARATIVE and durable — provider, model, operation, and\n * prompt live here; the per-call task lives in the invocation. Nothing about\n * transport, retries, rate limiting, usage accounting, or tracing is yours to\n * write: the engine owns all of it once the agent is registered.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent = {\n //====================\n // IDENTITY\n //====================\n\n /** Unique agent reference for flow/actor calls */\n ref: string,\n\n /** Human-readable display name */\n displayName: string,\n\n /** Agent lifecycle status */\n status: FlowsActors_Agent_Status,\n\n //====================\n // EXECUTION CONFIGURATION (modality-discriminated)\n //====================\n\n /** Provider/model config, discriminated by modality (LLM/text | image | coding). */\n config: FlowsActors_Agent_Configuration,\n\n /** Operation definition (input/output schemas, etc.), per transport family. */\n operationDefinition: LLMProvider_OperationDefinitionBase | ImageProvider_OperationDefinitionBase | CodingAgent_OperationDefinitionBase,\n\n //====================\n // ARTIFACT MODALITY (optional — explicit override; else derived from config)\n //====================\n\n /**\n * The modality this agent PRODUCES, as documentation.\n *\n * Declarative only: no runtime path reads it. Dispatch is decided entirely by\n * the arm of `config`, so setting or omitting this field changes nothing about\n * which provider protocol the agent reaches. Set it to make a multimodal\n * agent's output self-describing to a reader.\n */\n outputModality?: FlowsActors_IO_PartKind,\n\n /** The modalities this agent CONSUMES (e.g. `[TEXT]` for text-to-image). */\n inputModalities?: FlowsActors_IO_PartKind[],\n\n //====================\n // PROMPT SPECIFICATION (required)\n //====================\n\n /**\n * Complete prompt specification\n * Defines role, persona, constraints, instructions, output format, etc.\n */\n promptSpec: FlowsActors_Agent_PromptSpec,\n\n //====================\n // CAPABILITIES\n //====================\n\n /** Agent capabilities (tools, etc.) */\n capabilities?: {\n tools?: {\n /**\n * References to callable functions.\n *\n * RESOLVED: `AgentsBackendService` looks each ref up through\n * `flowsActorsRegistry.getFunctionTool(ref)` and hands the model a callable tool. An unknown\n * ref is skipped with a debug line rather than failing the turn.\n */\n functionRefs: string[],\n /**\n * References to MCP servers the agent may reach.\n *\n * ## CHECKED, NOT YET CALLABLE (#491)\n *\n * Each ref must name an MCP server the APPLICATION declared (`FlowsActors_McpServer`), and\n * `FlowsActorsRegistryService` REFUSES at initialization an agent whose refs name none. That\n * closes the shape this field was in: it used to resolve against nothing, so a shipped catalog\n * carried seven refs (`filesystem-mcp`, `git-mcp`, `browser-mcp`, `mongodb-mcp`, …) that named\n * no server anywhere while the agent card rendered them as capabilities — a claim shown to a\n * user about a reach the agent did not have. The catalog is gone and the card no longer\n * renders these.\n *\n * The check is deliberately stricter than `functionRefs`, which skip an unknown ref with a\n * debug line: an unknown `functionRef` costs an agent one tool, whereas these were presented\n * as a capability, and a refusal makes the old state unreachable rather than fixed once.\n *\n * ## What is still missing before a ref becomes a CALLABLE tool\n *\n * The declaration is checkable; the call is not yet made. `AgentsBackendService` resolves\n * `functionRefs` and nothing else, so an agent carrying `mcpRefs` still has exactly the reach\n * its `functionRefs` give it.\n *\n * 1. **An MCP client.** `saas-backend-lib/src/mcp/` is the SERVER Wildo exposes to external MCP\n * clients. There is no client, and no MCP client SDK in any manifest.\n * 2. ~~A server registry~~ — BUILT. `registry.mcpServers`, declared per application.\n * 3. **Credential resolution at call time.** Decided 2026-09-09: the call carries the acting\n * user's own delegated provider credential where present and the organization's connection\n * otherwise, from `userProviderCredentials` / `organizationProviderCredentials` rather than\n * a store invented for MCP. `FlowsActors_McpCredentialSubject` records that choice per\n * server; nothing reads it yet.\n *\n * Also decided, and not yet implemented: an unreachable server contributes NO tools to a turn\n * rather than failing it — tools are discovered at turn start — and a call that fails mid-turn\n * returns a typed error the agent can reason about. Both emit an audit event, because a server\n * quietly unreachable for a week must be visible as that rather than as an agent that became\n * less capable for no stated reason.\n *\n * Restoring these to any surface that presents them as a capability belongs in the same change\n * that makes them callable.\n */\n mcpRefs: string[],\n },\n },\n\n //====================\n // VERSIONING\n //====================\n\n /** Agent definition version */\n version?: string,\n\n /** Creation timestamp (ISO 8601) */\n createdAt: string,\n\n /** Last update timestamp (ISO 8601) */\n updatedAt?: string,\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-invocation facet:kind:api facet:audience:app-developer\n *\n * One call to one agent — the envelope you build and hand to\n * `AgentsBackendService.invokeAgent`, and the SAME shape you get back with\n * `output` and `executionContext` filled in.\n *\n * What you supply:\n * - `agentRef` — the `ref` of a registered agent (unknown ref throws).\n * - `input` — the per-call task. `{ prompt }` for text; add `{ schema }` (a Zod\n * schema) for `GENERATE_STRUCTURED`, which REQUIRES it. Anything else you put\n * here is JSON-serialized into the user prompt.\n * - `output` — an empty value of the expected shape (`{ text: '' }`,\n * `{ object: {} }`). It is a typing seed; the returned envelope replaces it.\n * - `initiator` / `invocationContext` / `artifactBindings` — `{}` / `[]` / `[]`\n * when you have nothing to correlate.\n *\n * What comes back: `output` normalized to the operation's shape, and\n * `executionContext` enriched with `executionTime`, `finishedAt`, and provider\n * `usage` (tokens) when the transport reports it.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent_Invocation<\n InputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n OutputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n ContextSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n> = {\n _id?: string,\n agentRef: string,\n initiator: ExecutionContext_InitiatorIds,\n invocationContext : FlowsActors_Relationship[],\n\n input: z.infer<InputSchema>,\n output: z.infer<OutputSchema>,\n executionContext: z.infer<ContextSchema>,\n artifactBindings: {\n kind: FlowsActors_IO_PartKind,\n ref: string,\n }[],\n\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-invocation */\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"autonomous-agents.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/autonomous-agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAkB1E;;GAEG;AAEH;;;GAGG;AACH,oBAAY,yBAAyB;IACnC,gIAAgI;IAChI,yBAAyB,8BAA8B;IACvD;;;;OAIG;IACH,4BAA4B,iCAAiC;CAC9D;AAED,gIAAgI;AAChI,oBAAY,0BAA0B;IACpC;;;OAGG;IACH,cAAc,mBAAmB;I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,eAAO,MAAM,wBAAwB,aAAiE,CAAC;AAEvG,qHAAqH;AACrH,eAAO,MAAM,oCAAoC,KAAK,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,QAAQ,CAAC,aAAa,EAAE,8BAA8B,GAAG,SAAS,CAAC;IACnE,QAAQ,CAAC,cAAc,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,CAAC;IACvE,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;CAC7C,GAAG,OAAO,CAUV"}
@@ -1 +1 @@
1
- {"version":3,"file":"autonomous-agents.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/autonomous-agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,iEAAiE;AACjE,qEAAqE;AACrE,EAAE;AACF,wGAAwG;AACxG,wGAAwG;AACxG,wGAAwG;AACxG,sGAAsG;AACtG,qGAAqG;AACrG,uGAAuG;AACvG,4EAA4E;AAC5E,EAAE;AACF,oGAAoG;AACpG,+FAA+F;AAC/F,oGAAoG;AACpG,iEAAiE;AAEjE;;GAEG;AAEH;;;GAGG;AACH,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,gIAAgI;IAChI,oFAAuD,CAAA;IACvD;;;;OAIG;IACH,0FAA6D,CAAA;AAC/D,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AAED,gIAAgI;AAChI,MAAM,CAAN,IAAY,0BAQX;AARD,WAAY,0BAA0B;IACpC;;;OAGG;IACH,+DAAiC,CAAA;IACjC,kFAAkF;IAClF,mEAAqC,CAAA;AACvC,C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D;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAIxC;IACC,QAAQ,KAAK,CAAC,aAAa,EAAE,CAAC;QAC5B,KAAK,8BAA8B,CAAC,YAAY;YAC9C,OAAO,IAAI,CAAC;QACd,KAAK,8BAA8B,CAAC,oBAAoB;YACtD,OAAO,KAAK,CAAC,cAAc,KAAK,0BAA0B,CAAC,UAAU;mBAChE,CAAC,KAAK,CAAC,SAAS,KAAK,uBAAuB,CAAC,IAAI,IAAI,KAAK,CAAC,SAAS,KAAK,uBAAuB,CAAC,QAAQ,CAAC,CAAC;QAClH;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ExecutionContext_ExecutionType } from '../runtime/execution-context.shared.schemas';\nimport { FlowsActors_InitiationKind } from './flows-actors.commons.shared.schemas';\nimport { HumanDecision_RouteKind } from './human-decision.shared.schemas';\n\n//===============================================================\n// AUTONOMOUS AGENTS (#1611) — an agent turn with nobody on a socket\n//\n// An application DECLARES an autonomous agent (`autonomousAgents` on its backend flows-actors registry:\n// a ref, the actor system it runs, its instruction and its concurrency). A tenant's administrator BINDS\n// one of the tenant's own OAuth clients to that ref (`autonomousAgentRefs` on the organization client).\n// A schedule tick or an inbound delivery then starts a turn through `startAutonomousAgentTurn`, which\n// resolves the bound client into an `ORGANIZATION_MACHINE` principal for that tenant, and the turn's\n// tools act under that client's CURRENT roles. A gated write routed to a reviewer pauses; the reviewer\n// answers from the inbox; the principal is re-read before the work resumes.\n//\n// There is no application-wide autonomous agent, by decision (Paul, 2026-09-25): an agent acting in\n// every tenant is the standing, ambient reach the platform refuses. An agent acting in ANOTHER\n// organization does so only through a service-provider relationship that admits its client (#1597).\n//===============================================================\n\n/**\n * @wildo_source:part:start saas.models.flows-actors.autonomous-agents-vocabulary facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n */\n\n/**\n * Where the machine principal of an autonomous turn comes from. Both produce an `ORGANIZATION_MACHINE`\n * principal for the TARGET organization, carrying the OAuth client as its machine credential.\n */\nexport enum AutonomousPrincipalSource {\n /** One of the target organization's OWN OAuth clients lists the agent ref in `autonomousAgentRefs`. Roles: the client's own. */\n BOUND_ORGANIZATION_CLIENT = 'bound_organization_client',\n /**\n * A service firm's OAuth client lists the agent ref, and the target (client) organization admits that\n * client on a live service-provider relationship (`admittedMachineClientIds`, #1597). Roles: the\n * relationship's role in the client organization, never the client's roles in the firm.\n */\n RELATIONSHIP_ADMITTED_CLIENT = 'relationship_admitted_client',\n}\n\n/** What happens when an occurrence arrives while an earlier turn of the same agent in the same organization is still active. */\nexport enum AutonomousAgentConcurrency {\n /**\n * Skip the new occurrence. \"Active\" includes a turn waiting on a reviewer: a triage run whose first\n * proposal is still pending should not raise a second, overlapping proposal.\n */\n SKIP_IF_ACTIVE = 'skip_if_active',\n /** Start every occurrence; turns of the agent may overlap in one organization. */\n ALLOW_CONCURRENT = 'allow_concurrent',\n}\n\n/**\n * What started an autonomous turn. Recorded on the execution row, because it decides which tools the\n * turn may use for its WHOLE life, including after a reviewer's decision resumes it.\n */\nexport enum AutonomousTurnTrigger {\n /** A schedule tick. The input is the application's own declared instruction. */\n SCHEDULE = 'schedule',\n /**\n * A verified inbound delivery (#1596). Its content came from outside and is DATA, never instruction:\n * the turn is offered only tools that read, or tools gated on a reviewer. An ungated tool that can\n * write is withheld, and so is every MCP tool, whose effects the engine cannot classify.\n */\n INBOUND_DELIVERY = 'inbound_delivery',\n}\n\n/**\n * Why an autonomous turn was not started. Every refusal is recorded (`AUTONOMOUS_AGENT_TURN_REFUSED`)\n * and creates no execution row. A duplicate occurrence is NOT a refusal: it is the same turn arriving\n * twice, and it is answered as already started.\n */\nexport enum AutonomousTurnRefusalReason {\n /** The application declares no autonomous agent with this ref. A code or configuration defect. */\n AGENT_NOT_DECLARED = 'agent_not_declared',\n /**\n * The caller named no organization or no occurrence. A defect in the CALLER, never a tenant's state: there is\n * no organization to record it in, so it is logged as an error and writes no audit row.\n */\n INVALID_REQUEST = 'invalid_request',\n /** No ACTIVE, unexpired, operator-created client is bound here, or admitted here for this agent by the organization. */\n NO_PRINCIPAL = 'no_principal',\n /** More than one client resolves for the ref in this organization. Refused rather than picking one. */\n AMBIGUOUS_PRINCIPAL = 'ambiguous_principal',\n /** The organization itself confers no authority (suspended, deleted, marked for deletion). */\n ORGANIZATION_INACTIVE = 'organization_inactive',\n /** The bindings could not be read. Fail closed: an unverifiable principal is no principal. */\n PRINCIPAL_UNVERIFIABLE = 'principal_unverifiable',\n /** The organization's agent token budget is spent, or cannot be verified. */\n OVER_BUDGET = 'over_budget',\n /** `SKIP_IF_ACTIVE`: a turn of this agent in this organization is still running or waiting on a reviewer. */\n ALREADY_ACTIVE = 'already_active',\n /** The case the turn was started for cannot be read by the resolved principal. */\n CASE_NOT_READABLE = 'case_not_readable',\n /** The runtime refused the turn before opening it (no chat agent, no input, consent). Named by the runtime's error code. */\n RUNTIME_REFUSED = 'runtime_refused',\n}\n\n/**\n * Why `setAutonomousAgents` refused a binding — carried as the error's `code`, so a client can tell the\n * administrator which of the refs to change without parsing a message.\n */\nexport enum AutonomousAgentBindingErrorCode {\n /** The application declares no autonomous agent with this ref. (400) */\n AUTONOMOUS_AGENT_NOT_DECLARED = 'autonomous_agent_not_declared',\n /** Another client of this organization already runs this agent; unbind it there first. (409) */\n AUTONOMOUS_AGENT_ALREADY_BOUND = 'autonomous_agent_already_bound',\n /** Only an ACTIVE, operator-created client may be given an agent. Removing agents is always allowed. (409) */\n AUTONOMOUS_AGENT_CLIENT_NOT_ELIGIBLE = 'autonomous_agent_client_not_eligible',\n}\n\n/** @wildo_source:part:end saas.models.flows-actors.autonomous-agents-vocabulary */\n\n/**\n * The shape of an autonomous agent ref: lower-case, dotted and hyphenated (`todos.overdue-triage`).\n * Constrained so a ref can never collide with the `*…*` storage sentinels, and so a binding list stays\n * legible in an audit row.\n */\nexport const AUTONOMOUS_AGENT_REF_PATTERN = /^[a-z0-9][a-z0-9.-]*$/;\nexport const AutonomousAgentRefSchema = z.string().min(1).max(120).regex(AUTONOMOUS_AGENT_REF_PATTERN);\n\n/** How many agent refs one client may be bound to. Far above any real use; bounds the row and the audit evidence. */\nexport const AUTONOMOUS_AGENT_REFS_PER_CLIENT_MAX = 50;\n\n/**\n * Whether a turn may SUSPEND on a gated tool call and wait for a person, or must have the call denied\n * (#1611 D-d). The one place this is decided; the agents service asks it per gated tool.\n *\n * - A signed-in person (`USER_REQUEST`, first-party or delegated) may suspend on any route: they are\n * the requester, and every route has someone who can answer.\n * - An organization machine may suspend ONLY when its turn was opened by the autonomous entry point\n * AND the gate routes to a REVIEWER (ROLE or ASSIGNEE). An A2A client's machine turn has a caller who\n * is waiting for a reply and cannot answer, and an OWNER route on a machine turn has nobody at all.\n * - Everything else is denied: an application machine (there are no application-wide autonomous\n * agents), system, webhook, inbound, public, anonymous and consumable-token principals.\n *\n * Written as an allow-list over the execution vocabulary, so a member added tomorrow is DENIED until\n * someone decides otherwise. A deny-list would let it suspend into a wait nobody can end.\n */\nexport function admitsDecisionSuspension(input: {\n readonly executionType: ExecutionContext_ExecutionType | undefined;\n readonly initiationKind: FlowsActors_InitiationKind | null | undefined;\n readonly routeKind: HumanDecision_RouteKind;\n}): boolean {\n switch (input.executionType) {\n case ExecutionContext_ExecutionType.USER_REQUEST:\n return true;\n case ExecutionContext_ExecutionType.ORGANIZATION_MACHINE:\n return input.initiationKind === FlowsActors_InitiationKind.AUTONOMOUS\n && (input.routeKind === HumanDecision_RouteKind.ROLE || input.routeKind === HumanDecision_RouteKind.ASSIGNEE);\n default:\n return false;\n }\n}\n"]}
1
+ {"version":3,"file":"autonomous-agents.shared.schemas.js","sourceRoot":"","sources":["../../../src/flows-actors/autonomous-agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,0BAA0B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AAA;IACvC,4HAA4H;IAC5H,kEAAmC,CAAA;AACrC,CAAC,EAxBW,2BAA2B,KAA3B,2BAA2B,QAwBtC;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,+BAOX;AAPD,WAAY,+BAA+B;IACzC,wEAAwE;IACxE,kGAA+D,CAAA;IAC/D,gGAAgG;IAChG,oGAAiE,CAAA;IACjE,8GAA8G;IAC9G,gHAA6E,CAAA;AAC/E,CAAC,EAPW,+BAA+B,KAA/B,+BAA+B,QAO1C;AAED,mFAAmF;AAEnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,uBAAuB,CAAC;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAEvG,qHAAqH;AACrH,MAAM,CAAC,MAAM,oCAAoC,GAAG,EAAE,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAIxC;IACC,QAAQ,KAAK,CAAC,aAAa,EAAE,CAAC;QAC5B,KAAK,8BAA8B,CAAC,YAAY;YAC9C,OAAO,IAAI,CAAC;QACd,KAAK,8BAA8B,CAAC,oBAAoB;YACtD,OAAO,KAAK,CAAC,cAAc,KAAK,0BAA0B,CAAC,UAAU;mBAChE,CAAC,KAAK,CAAC,SAAS,KAAK,uBAAuB,CAAC,IAAI,IAAI,KAAK,CAAC,SAAS,KAAK,uBAAuB,CAAC,QAAQ,CAAC,CAAC;QAClH;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ExecutionContext_ExecutionType } from '../runtime/execution-context.shared.schemas';\nimport { FlowsActors_InitiationKind } from './flows-actors.commons.shared.schemas';\nimport { HumanDecision_RouteKind } from './human-decision.shared.schemas';\n\n//===============================================================\n// AUTONOMOUS AGENTS (#1611) — an agent turn with nobody on a socket\n//\n// An application DECLARES an autonomous agent (`autonomousAgents` on its backend flows-actors registry:\n// a ref, the actor system it runs, its instruction and its concurrency). A tenant's administrator BINDS\n// one of the tenant's own OAuth clients to that ref (`autonomousAgentRefs` on the organization client).\n// A schedule tick or an inbound delivery then starts a turn through `startAutonomousAgentTurn`, which\n// resolves the bound client into an `ORGANIZATION_MACHINE` principal for that tenant, and the turn's\n// tools act under that client's CURRENT roles. A gated write routed to a reviewer pauses; the reviewer\n// answers from the inbox; the principal is re-read before the work resumes.\n//\n// There is no application-wide autonomous agent, by decision (Paul, 2026-09-25): an agent acting in\n// every tenant is the standing, ambient reach the platform refuses. An agent acting in ANOTHER\n// organization does so only through a service-provider relationship that admits its client (#1597).\n//===============================================================\n\n/**\n * @wildo_source:part:start saas.models.flows-actors.autonomous-agents-vocabulary facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n */\n\n/**\n * Where the machine principal of an autonomous turn comes from. Both produce an `ORGANIZATION_MACHINE`\n * principal for the TARGET organization, carrying the OAuth client as its machine credential.\n */\nexport enum AutonomousPrincipalSource {\n /** One of the target organization's OWN OAuth clients lists the agent ref in `autonomousAgentRefs`. Roles: the client's own. */\n BOUND_ORGANIZATION_CLIENT = 'bound_organization_client',\n /**\n * A service firm's OAuth client lists the agent ref, and the target (client) organization admits that\n * client on a live service-provider relationship (`admittedMachineClientIds`, #1597). Roles: the\n * relationship's role in the client organization, never the client's roles in the firm.\n */\n RELATIONSHIP_ADMITTED_CLIENT = 'relationship_admitted_client',\n}\n\n/** What happens when an occurrence arrives while an earlier turn of the same agent in the same organization is still active. */\nexport enum AutonomousAgentConcurrency {\n /**\n * Skip the new occurrence. \"Active\" includes a turn waiting on a reviewer: a triage run whose first\n * proposal is still pending should not raise a second, overlapping proposal.\n */\n SKIP_IF_ACTIVE = 'skip_if_active',\n /** Start every occurrence; turns of the agent may overlap in one organization. */\n ALLOW_CONCURRENT = 'allow_concurrent',\n}\n\n/**\n * What started an autonomous turn. Recorded on the execution row, because it decides which tools the\n * turn may use for its WHOLE life, including after a reviewer's decision resumes it.\n */\nexport enum AutonomousTurnTrigger {\n /** A schedule tick. The input is the application's own declared instruction. */\n SCHEDULE = 'schedule',\n /**\n * A verified inbound delivery (#1596). Its content came from outside and is DATA, never instruction:\n * the turn is offered only tools that read, or tools gated on a reviewer. An ungated tool that can\n * write is withheld, and so is every MCP tool, whose effects the engine cannot classify.\n */\n INBOUND_DELIVERY = 'inbound_delivery',\n}\n\n/**\n * Why an autonomous turn was not started. Every refusal is recorded (`AUTONOMOUS_AGENT_TURN_REFUSED`)\n * and creates no execution row. A duplicate occurrence is NOT a refusal: it is the same turn arriving\n * twice, and it is answered as already started.\n */\nexport enum AutonomousTurnRefusalReason {\n /** The application declares no autonomous agent with this ref. A code or configuration defect. */\n AGENT_NOT_DECLARED = 'agent_not_declared',\n /**\n * The caller named no organization or no occurrence. A defect in the CALLER, never a tenant's state: there is\n * no organization to record it in, so it is logged as an error and writes no audit row.\n */\n INVALID_REQUEST = 'invalid_request',\n /** No ACTIVE, unexpired, operator-created client is bound here, or admitted here for this agent by the organization. */\n NO_PRINCIPAL = 'no_principal',\n /** More than one client resolves for the ref in this organization. Refused rather than picking one. */\n AMBIGUOUS_PRINCIPAL = 'ambiguous_principal',\n /** The organization itself confers no authority (suspended, deleted, marked for deletion). */\n ORGANIZATION_INACTIVE = 'organization_inactive',\n /** The bindings could not be read. Fail closed: an unverifiable principal is no principal. */\n PRINCIPAL_UNVERIFIABLE = 'principal_unverifiable',\n /** The organization's agent token budget is spent, or cannot be verified. */\n OVER_BUDGET = 'over_budget',\n /** `SKIP_IF_ACTIVE`: a turn of this agent in this organization is still running or waiting on a reviewer. */\n ALREADY_ACTIVE = 'already_active',\n /** The case the turn was started for cannot be read by the resolved principal. */\n CASE_NOT_READABLE = 'case_not_readable',\n /** The runtime refused the turn before opening it (no chat agent, no input, consent). Named by the runtime's error code. */\n RUNTIME_REFUSED = 'runtime_refused',\n}\n\n/**\n * Why `setAutonomousAgents` refused a binding — carried as the error's `code`, so a client can tell the\n * administrator which of the refs to change without parsing a message.\n */\nexport enum AutonomousAgentBindingErrorCode {\n /** The application declares no autonomous agent with this ref. (400) */\n AUTONOMOUS_AGENT_NOT_DECLARED = 'autonomous_agent_not_declared',\n /** Another client of this organization already runs this agent; unbind it there first. (409) */\n AUTONOMOUS_AGENT_ALREADY_BOUND = 'autonomous_agent_already_bound',\n /** Only an ACTIVE, operator-created client may be given an agent. Removing agents is always allowed. (409) */\n AUTONOMOUS_AGENT_CLIENT_NOT_ELIGIBLE = 'autonomous_agent_client_not_eligible',\n}\n\n/** @wildo_source:part:end saas.models.flows-actors.autonomous-agents-vocabulary */\n\n/**\n * The shape of an autonomous agent ref: lower-case, dotted and hyphenated (`todos.overdue-triage`).\n * Constrained so a ref can never collide with the `*…*` storage sentinels, and so a binding list stays\n * legible in an audit row.\n */\nexport const AUTONOMOUS_AGENT_REF_PATTERN = /^[a-z0-9][a-z0-9.-]*$/;\nexport const AutonomousAgentRefSchema = z.string().min(1).max(120).regex(AUTONOMOUS_AGENT_REF_PATTERN);\n\n/** How many agent refs one client may be bound to. Far above any real use; bounds the row and the audit evidence. */\nexport const AUTONOMOUS_AGENT_REFS_PER_CLIENT_MAX = 50;\n\n/**\n * Whether a turn may SUSPEND on a gated tool call and wait for a person, or must have the call denied\n * (#1611 D-d). The one place this is decided; the agents service asks it per gated tool.\n *\n * - A signed-in person (`USER_REQUEST`, first-party or delegated) may suspend on any route: they are\n * the requester, and every route has someone who can answer.\n * - An organization machine may suspend ONLY when its turn was opened by the autonomous entry point\n * AND the gate routes to a REVIEWER (ROLE or ASSIGNEE). An A2A client's machine turn has a caller who\n * is waiting for a reply and cannot answer, and an OWNER route on a machine turn has nobody at all.\n * - Everything else is denied: an application machine (there are no application-wide autonomous\n * agents), system, webhook, inbound, public, anonymous and consumable-token principals.\n *\n * Written as an allow-list over the execution vocabulary, so a member added tomorrow is DENIED until\n * someone decides otherwise. A deny-list would let it suspend into a wait nobody can end.\n */\nexport function admitsDecisionSuspension(input: {\n readonly executionType: ExecutionContext_ExecutionType | undefined;\n readonly initiationKind: FlowsActors_InitiationKind | null | undefined;\n readonly routeKind: HumanDecision_RouteKind;\n}): boolean {\n switch (input.executionType) {\n case ExecutionContext_ExecutionType.USER_REQUEST:\n return true;\n case ExecutionContext_ExecutionType.ORGANIZATION_MACHINE:\n return input.initiationKind === FlowsActors_InitiationKind.AUTONOMOUS\n && (input.routeKind === HumanDecision_RouteKind.ROLE || input.routeKind === HumanDecision_RouteKind.ASSIGNEE);\n default:\n return false;\n }\n}\n"]}
@@ -471,7 +471,8 @@ export interface DeliberationReviewWireOutput {
471
471
  * still runs `validateVerdictCriterionRefs` as the belt-and-braces invariant.
472
472
  *
473
473
  * The schema is `.strict()` end-to-end (hallucinated refs fail decode) and
474
- * all-required (strict structured-output transports reject optionals).
474
+ * all-required, so every criterion is answered. (Strict transports once refused optionals outright; the
475
+ * engine now derives a strict form for them, #2344, so this is a choice about the answer, not the transport.)
475
476
  */
476
477
  export declare function buildDeliberationReviewWireSchema(rubric: EvaluationRubric): z.ZodType<DeliberationReviewWireOutput>;
477
478
  /** The coordinator's per-round directive. */
@@ -1 +1 @@
1
- {"version":3,"file":"deliberation.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/deliberation.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAmC3E;;;;;;;;;;;;;GAaG;AACH,oBAAY,gBAAgB;IAC1B,8DAA8D;IAC9D,iBAAiB,sBAAsB;IACvC,yEAAyE;IACzE,cAAc,mBAAmB;IACjC,0EAA0E;IAC1E,mBAAmB,wBAAwB;IAC3C,uEAAuE;IACvE,cAAc,mBAAmB;IACjC;;;;;;;;;;;;OAYG;IACH,wBAAwB,6BAA6B;CACtD;AAED;;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H;IACrH,EAAE,EAAE,OAAO,CAAC;IACZ,wFAAwF;IACxF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,iDAAiD;IACjD,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,iDAAiD;IACjD,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB;;;;;;OAMG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,aAAa,GACrB,8BAA8B,CAmChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,aAAa,GACrB,MAAM,CAqBR"}
1
+ {"version":3,"file":"deliberation.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/flows-actors/deliberation.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAmC3E;;;;;;;;;;;;;GAaG;AACH,oBAAY,gBAAgB;IAC1B,8DAA8D;IAC9D,iBAAiB,sBAAsB;IACvC,yEAAyE;IACzE,cAAc,mBAAmB;IACjC,0EAA0E;IAC1E,mBAAmB,wBAAwB;IAC3C,uEAAuE;IACvE,cAAc,mBAAmB;IACjC;;;;;;;;;;;;OAYG;IACH,wBAAwB,6BAA6B;CACtD;AAED;;;;GAIG;AACH,oBAAY,0BAA0B;IACpC,4DAA4D;IAC5D,MAAM,WAAW;IACjB,kEAAkE;IAClE,MAAM,WAAW;IACjB,uEAAuE;IACvE,MAAM,WAAW;CAClB;AAED,uDAAuD;AACvD,oBAAY,+BAA+B;IACzC,mDAAmD;IACnD,QAAQ,aAAa;IACrB,mEAAmE;IACnE,OAAO,YAAY;CACpB;AAED,gDAAgD;AAChD,oBAAY,kBAAkB;IAC5B,kCAAkC;IAClC,OAAO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AAE,gBAAgB,EACxB,OAAO,EAAE,aAAa,GACrB,8BAA8B,CAmChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,aAAa,GACrB,MAAM,CAqBR"}
@@ -476,7 +476,8 @@ export const DeliberationRubricOutputStrictSchema = _DeliberationRubricOutputStr
476
476
  * still runs `validateVerdictCriterionRefs` as the belt-and-braces invariant.
477
477
  *
478
478
  * The schema is `.strict()` end-to-end (hallucinated refs fail decode) and
479
- * all-required (strict structured-output transports reject optionals).
479
+ * all-required, so every criterion is answered. (Strict transports once refused optionals outright; the
480
+ * engine now derives a strict form for them, #2344, so this is a choice about the answer, not the transport.)
480
481
  */
481
482
  export function buildDeliberationReviewWireSchema(rubric) {
482
483
  const scoreValue = z.object({