@wildo-ai/saas-models 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/dist/esm/applications/applications-context.schemas.d.ts +16 -10
  2. package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
  3. package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
  4. package/dist/esm/applications/applications.shared.resources-config.schemas.js +4 -3
  5. package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
  6. package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts +1 -1
  7. package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts.map +1 -1
  8. package/dist/esm/billing/billing-account.shared.resources-config.schemas.js +36 -0
  9. package/dist/esm/billing/billing-account.shared.resources-config.schemas.js.map +1 -1
  10. package/dist/esm/billing/billing-account.shared.schemas.d.ts.map +1 -1
  11. package/dist/esm/billing/billing-account.shared.schemas.js +8 -1
  12. package/dist/esm/billing/billing-account.shared.schemas.js.map +1 -1
  13. package/dist/esm/billing/billing-configuration.shared.schemas.d.ts +0 -4
  14. package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
  15. package/dist/esm/billing/billing-configuration.shared.schemas.js +59 -17
  16. package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
  17. package/dist/esm/billing/billing-enums.shared.schemas.d.ts +77 -21
  18. package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
  19. package/dist/esm/billing/billing-enums.shared.schemas.js +85 -23
  20. package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
  21. package/dist/esm/billing/billing-types.shared.schemas.d.ts +5 -5
  22. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts +1 -1
  23. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts.map +1 -1
  24. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js +39 -0
  25. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js.map +1 -1
  26. package/dist/esm/billing/credit-pool.shared.schemas.d.ts +6 -6
  27. package/dist/esm/billing/credit-pool.shared.schemas.d.ts.map +1 -1
  28. package/dist/esm/billing/credit-pool.shared.schemas.js +8 -4
  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 +1 -1
  31. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts.map +1 -1
  32. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js +35 -0
  33. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js.map +1 -1
  34. package/dist/esm/billing/invoice-ref.shared.schemas.d.ts.map +1 -1
  35. package/dist/esm/billing/invoice-ref.shared.schemas.js +8 -3
  36. package/dist/esm/billing/invoice-ref.shared.schemas.js.map +1 -1
  37. package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
  38. package/dist/esm/billing/price.shared.schemas.js +7 -1
  39. package/dist/esm/billing/price.shared.schemas.js.map +1 -1
  40. package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts.map +1 -1
  41. package/dist/esm/billing/product-behavior-policy.shared.schemas.js +52 -11
  42. package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
  43. package/dist/esm/billing/product-definition.shared.schemas.d.ts +2 -2
  44. package/dist/esm/billing/product.shared.resources-config.schemas.d.ts +2 -2
  45. package/dist/esm/billing/product.shared.schemas.d.ts +2 -2
  46. package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
  47. package/dist/esm/billing/product.shared.schemas.js +7 -3
  48. package/dist/esm/billing/product.shared.schemas.js.map +1 -1
  49. package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts +2 -2
  50. package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts.map +1 -1
  51. package/dist/esm/billing/subscription.shared.resources-config.schemas.js +54 -1
  52. package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
  53. package/dist/esm/billing/subscription.shared.schemas.d.ts +4 -4
  54. package/dist/esm/billing/subscription.shared.schemas.d.ts.map +1 -1
  55. package/dist/esm/billing/subscription.shared.schemas.js +6 -2
  56. package/dist/esm/billing/subscription.shared.schemas.js.map +1 -1
  57. package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts +1 -1
  58. package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts.map +1 -1
  59. package/dist/esm/billing/usage-record.shared.resources-config.schemas.js +39 -0
  60. package/dist/esm/billing/usage-record.shared.resources-config.schemas.js.map +1 -1
  61. package/dist/esm/billing/usage-record.shared.schemas.d.ts +11 -7
  62. package/dist/esm/billing/usage-record.shared.schemas.d.ts.map +1 -1
  63. package/dist/esm/billing/usage-record.shared.schemas.js +29 -6
  64. package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
  65. package/dist/esm/companion/provider-discovery.shared.schemas.d.ts +69 -2
  66. package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -1
  67. package/dist/esm/companion/provider-discovery.shared.schemas.js +20 -1
  68. package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -1
  69. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts +85 -0
  70. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts.map +1 -0
  71. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js +157 -0
  72. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js.map +1 -0
  73. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
  74. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js +35 -2
  75. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js.map +1 -1
  76. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts +23 -0
  77. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts.map +1 -1
  78. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js +56 -0
  79. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js.map +1 -1
  80. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts +541 -20
  81. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts.map +1 -1
  82. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js +605 -23
  83. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js.map +1 -1
  84. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts.map +1 -1
  85. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js +96 -3
  86. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
  87. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts +49 -0
  88. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts.map +1 -1
  89. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js +124 -1
  90. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js.map +1 -1
  91. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts +11 -3
  92. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts.map +1 -1
  93. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js +11 -3
  94. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js.map +1 -1
  95. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts +94 -0
  96. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts.map +1 -0
  97. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js +211 -0
  98. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js.map +1 -0
  99. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts +67 -12
  100. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts.map +1 -1
  101. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js +95 -8
  102. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js.map +1 -1
  103. package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts +17 -0
  104. package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
  105. package/dist/esm/compliance/privacy/privacy.shared.schemas.js +27 -4
  106. package/dist/esm/compliance/privacy/privacy.shared.schemas.js.map +1 -1
  107. package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts +89 -16
  108. package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts.map +1 -1
  109. package/dist/esm/compliance/privacy/redaction.shared.schemas.js +101 -15
  110. package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
  111. package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -1
  112. package/dist/esm/compliance/privacy/subject-export.shared.schemas.js +12 -5
  113. package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -1
  114. package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts +21 -0
  115. package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
  116. package/dist/esm/config/analytics-value-moments.shared.schemas.js +20 -0
  117. package/dist/esm/config/analytics-value-moments.shared.schemas.js.map +1 -1
  118. package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts +9 -5
  119. package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
  120. package/dist/esm/config/app-configuration-shared.shared.schemas.js +29 -0
  121. package/dist/esm/config/app-configuration-shared.shared.schemas.js.map +1 -1
  122. package/dist/esm/config/auth-config-resolution.shared.utils.d.ts +8 -1
  123. package/dist/esm/config/auth-config-resolution.shared.utils.d.ts.map +1 -1
  124. package/dist/esm/config/auth-config-resolution.shared.utils.js +29 -0
  125. package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
  126. package/dist/esm/config/entity-identity-config.shared.schemas.d.ts +95 -17
  127. package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
  128. package/dist/esm/config/entity-identity-config.shared.schemas.js +86 -8
  129. package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
  130. package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts +12 -12
  131. package/dist/esm/config/frontend/navigation.shared.schemas.d.ts +33 -0
  132. package/dist/esm/config/frontend/navigation.shared.schemas.d.ts.map +1 -1
  133. package/dist/esm/config/frontend/navigation.shared.schemas.js +32 -0
  134. package/dist/esm/config/frontend/navigation.shared.schemas.js.map +1 -1
  135. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts +40 -1
  136. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts.map +1 -1
  137. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js +40 -1
  138. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
  139. package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts +57 -11
  140. package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts.map +1 -1
  141. package/dist/esm/external-data/external-data-pipeline.shared.schemas.js.map +1 -1
  142. package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts +109 -64
  143. package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -1
  144. package/dist/esm/external-providers/engine-capabilities.shared.schemas.js +200 -19
  145. package/dist/esm/external-providers/engine-capabilities.shared.schemas.js.map +1 -1
  146. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts +15 -3
  147. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts.map +1 -1
  148. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js +32 -7
  149. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -1
  150. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts +84 -7
  151. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -1
  152. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts +59 -0
  153. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts.map +1 -0
  154. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js +61 -0
  155. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js.map +1 -0
  156. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts +97 -0
  157. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts.map +1 -0
  158. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js +41 -0
  159. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js.map +1 -0
  160. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts +148 -2
  161. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts.map +1 -1
  162. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js +56 -1
  163. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -1
  164. package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts +9 -31
  165. package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -1
  166. package/dist/esm/external-providers/provider-capability.shared.schemas.js +8 -5
  167. package/dist/esm/external-providers/provider-capability.shared.schemas.js.map +1 -1
  168. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts +18 -8
  169. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts.map +1 -1
  170. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js +9 -4
  171. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -1
  172. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts +338 -0
  173. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts.map +1 -0
  174. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js +332 -0
  175. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js.map +1 -0
  176. package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts +178 -9
  177. package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts.map +1 -1
  178. package/dist/esm/external-providers/provider-metadata.shared.schemas.js +181 -9
  179. package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -1
  180. package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts +7 -5
  181. package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -1
  182. package/dist/esm/external-providers/provider-protocol.shared.schemas.js +7 -5
  183. package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -1
  184. package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts +40 -0
  185. package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts.map +1 -0
  186. package/dist/esm/external-providers/provider-tier-rule.shared.utils.js +80 -0
  187. package/dist/esm/external-providers/provider-tier-rule.shared.utils.js.map +1 -0
  188. package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
  189. package/dist/esm/features/core-feature-definitions.shared.js +7 -1
  190. package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
  191. package/dist/esm/features/feature-builders.shared.d.ts +32 -0
  192. package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
  193. package/dist/esm/features/feature-builders.shared.js +32 -0
  194. package/dist/esm/features/feature-builders.shared.js.map +1 -1
  195. package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts +1 -1
  196. package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts.map +1 -1
  197. package/dist/esm/features/user-features.shared.resources-config.schemas.js +48 -0
  198. package/dist/esm/features/user-features.shared.resources-config.schemas.js.map +1 -1
  199. package/dist/esm/files/file-upload-grant.shared.schemas.d.ts +156 -0
  200. package/dist/esm/files/file-upload-grant.shared.schemas.d.ts.map +1 -0
  201. package/dist/esm/files/file-upload-grant.shared.schemas.js +175 -0
  202. package/dist/esm/files/file-upload-grant.shared.schemas.js.map +1 -0
  203. package/dist/esm/files/files.shared.schemas.d.ts +52 -4
  204. package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
  205. package/dist/esm/files/files.shared.schemas.js +55 -4
  206. package/dist/esm/files/files.shared.schemas.js.map +1 -1
  207. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts +1 -1
  208. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
  209. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js +33 -0
  210. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js.map +1 -1
  211. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts.map +1 -1
  212. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js +6 -2
  213. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js.map +1 -1
  214. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts +1 -1
  215. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts.map +1 -1
  216. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js +53 -0
  217. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js.map +1 -1
  218. package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
  219. package/dist/esm/flows-actors/actors.shared.schemas.js +3 -2
  220. package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
  221. package/dist/esm/flows-actors/agents.shared.schemas.d.ts +54 -5
  222. package/dist/esm/flows-actors/agents.shared.schemas.d.ts.map +1 -1
  223. package/dist/esm/flows-actors/agents.shared.schemas.js.map +1 -1
  224. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.d.ts +6 -6
  225. package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts +0 -3
  226. package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts.map +1 -1
  227. package/dist/esm/flows-actors/deliberation.shared.schemas.js +0 -5
  228. package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -1
  229. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts +1 -1
  230. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map +1 -1
  231. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js +43 -0
  232. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js.map +1 -1
  233. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts +14 -0
  234. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts.map +1 -1
  235. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js +48 -6
  236. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -1
  237. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts +1 -1
  238. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts.map +1 -1
  239. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js +41 -0
  240. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js.map +1 -1
  241. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts +0 -7
  242. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts.map +1 -1
  243. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js +23 -13
  244. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js.map +1 -1
  245. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts +19 -0
  246. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts.map +1 -1
  247. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js +33 -0
  248. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
  249. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts +14 -9
  250. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts.map +1 -1
  251. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js +14 -9
  252. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
  253. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
  254. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js +3 -2
  255. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js.map +1 -1
  256. package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
  257. package/dist/esm/flows-actors/flows.shared.schemas.js +3 -2
  258. package/dist/esm/flows-actors/flows.shared.schemas.js.map +1 -1
  259. package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts +128 -0
  260. package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts.map +1 -0
  261. package/dist/esm/flows-actors/mcp-servers.shared.schemas.js +142 -0
  262. package/dist/esm/flows-actors/mcp-servers.shared.schemas.js.map +1 -0
  263. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts +0 -3
  264. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts.map +1 -1
  265. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js +1 -4
  266. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js.map +1 -1
  267. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts +0 -16
  268. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -1
  269. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js +1 -17
  270. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map +1 -1
  271. package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts +3 -3
  272. package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js +3 -3
  273. package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -1
  274. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts +2 -8
  275. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts.map +1 -1
  276. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js +4 -15
  277. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js.map +1 -1
  278. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts +1 -1
  279. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts.map +1 -1
  280. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js +51 -0
  281. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js.map +1 -1
  282. package/dist/esm/guidance/guidance-state.shared.schemas.d.ts.map +1 -1
  283. package/dist/esm/guidance/guidance-state.shared.schemas.js +8 -2
  284. package/dist/esm/guidance/guidance-state.shared.schemas.js.map +1 -1
  285. package/dist/esm/guidance/guidance-state.shared.utils.d.ts.map +1 -1
  286. package/dist/esm/guidance/guidance-state.shared.utils.js +1 -0
  287. package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -1
  288. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts +1 -1
  289. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts.map +1 -1
  290. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js +51 -0
  291. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js.map +1 -1
  292. package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts.map +1 -1
  293. package/dist/esm/guidance/lifecycle-state.shared.schemas.js +28 -3
  294. package/dist/esm/guidance/lifecycle-state.shared.schemas.js.map +1 -1
  295. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts +9 -1
  296. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
  297. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js +51 -0
  298. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js.map +1 -1
  299. package/dist/esm/guidance/progression-state.shared.schemas.d.ts +46 -0
  300. package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
  301. package/dist/esm/guidance/progression-state.shared.schemas.js +67 -4
  302. package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
  303. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts +356 -52
  304. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts.map +1 -1
  305. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js +166 -39
  306. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -1
  307. package/dist/esm/index.d.ts +15 -0
  308. package/dist/esm/index.d.ts.map +1 -1
  309. package/dist/esm/index.js +15 -0
  310. package/dist/esm/index.js.map +1 -1
  311. package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts +11 -2
  312. package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts.map +1 -1
  313. package/dist/esm/notifications/email/email-template-registry.shared.schemas.js.map +1 -1
  314. package/dist/esm/notifications/email/email-template.shared.enums.d.ts +15 -0
  315. package/dist/esm/notifications/email/email-template.shared.enums.d.ts.map +1 -1
  316. package/dist/esm/notifications/email/email-template.shared.enums.js +15 -0
  317. package/dist/esm/notifications/email/email-template.shared.enums.js.map +1 -1
  318. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.d.ts +70 -0
  319. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.d.ts.map +1 -0
  320. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.js +71 -0
  321. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.js.map +1 -0
  322. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts +1 -0
  323. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts.map +1 -1
  324. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js +19 -0
  325. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js.map +1 -1
  326. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts +30 -0
  327. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -1
  328. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js +65 -1
  329. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -1
  330. package/dist/esm/notifications/notification-badges.core.definitions.d.ts +6 -4
  331. package/dist/esm/notifications/notification-badges.core.definitions.d.ts.map +1 -1
  332. package/dist/esm/notifications/notification-badges.core.definitions.js +6 -4
  333. package/dist/esm/notifications/notification-badges.core.definitions.js.map +1 -1
  334. package/dist/esm/notifications/notification-badges.schemas.d.ts +167 -5
  335. package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
  336. package/dist/esm/notifications/notification-badges.schemas.js +191 -6
  337. package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
  338. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts +1 -1
  339. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts.map +1 -1
  340. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js +36 -0
  341. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js.map +1 -1
  342. package/dist/esm/notifications/notifications.shared.schemas.d.ts +107 -0
  343. package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
  344. package/dist/esm/notifications/notifications.shared.schemas.js +149 -1
  345. package/dist/esm/notifications/notifications.shared.schemas.js.map +1 -1
  346. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts +1 -1
  347. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts.map +1 -1
  348. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js +44 -0
  349. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js.map +1 -1
  350. package/dist/esm/organizations/organization-members.shared.schemas.d.ts.map +1 -1
  351. package/dist/esm/organizations/organization-members.shared.schemas.js +15 -4
  352. package/dist/esm/organizations/organization-members.shared.schemas.js.map +1 -1
  353. package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts.map +1 -1
  354. package/dist/esm/organizations/organization-notifications.shared.schemas.js +22 -1
  355. package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
  356. package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts +26 -0
  357. package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.map +1 -1
  358. package/dist/esm/organizations/organization-preferences.shared.schemas.js +25 -0
  359. package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
  360. package/dist/esm/organizations/organization-profile.shared.schemas.d.ts +25 -0
  361. package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
  362. package/dist/esm/organizations/organization-profile.shared.schemas.js +42 -17
  363. package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
  364. package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts +3 -2
  365. package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -1
  366. package/dist/esm/organizations/organization-unit-narrowing.shared.js +9 -2
  367. package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -1
  368. package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts.map +1 -1
  369. package/dist/esm/organizations/organizations.shared.resources-config.schemas.js +35 -12
  370. package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
  371. package/dist/esm/public-runtime/index.d.ts +49 -2
  372. package/dist/esm/public-runtime/index.d.ts.map +1 -1
  373. package/dist/esm/public-runtime/index.js +48 -1
  374. package/dist/esm/public-runtime/index.js.map +1 -1
  375. package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts +6 -5
  376. package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts.map +1 -1
  377. package/dist/esm/queue/jobs.shared.resources-config.schemas.js +23 -5
  378. package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
  379. package/dist/esm/queue/jobs.shared.schemas.d.ts +16 -3
  380. package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
  381. package/dist/esm/queue/jobs.shared.schemas.js +16 -3
  382. package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
  383. package/dist/esm/requests/manual-controllers-routes-documentation.d.ts +137 -0
  384. package/dist/esm/requests/manual-controllers-routes-documentation.d.ts.map +1 -0
  385. package/dist/esm/requests/manual-controllers-routes-documentation.js +1201 -0
  386. package/dist/esm/requests/manual-controllers-routes-documentation.js.map +1 -0
  387. package/dist/esm/requests/manual-controllers-routes-urls.d.ts +67 -0
  388. package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
  389. package/dist/esm/requests/manual-controllers-routes-urls.js +78 -0
  390. package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
  391. package/dist/esm/requests/rate-limits.shared.schemas.d.ts +11 -1
  392. package/dist/esm/requests/rate-limits.shared.schemas.d.ts.map +1 -1
  393. package/dist/esm/requests/rate-limits.shared.schemas.js +11 -1
  394. package/dist/esm/requests/rate-limits.shared.schemas.js.map +1 -1
  395. package/dist/esm/requests/websocket.shared.schemas.d.ts +86 -4
  396. package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
  397. package/dist/esm/requests/websocket.shared.schemas.js +138 -0
  398. package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
  399. package/dist/esm/resources/collection-query-parameters.shared.d.ts +22 -0
  400. package/dist/esm/resources/collection-query-parameters.shared.d.ts.map +1 -0
  401. package/dist/esm/resources/collection-query-parameters.shared.js +22 -0
  402. package/dist/esm/resources/collection-query-parameters.shared.js.map +1 -0
  403. package/dist/esm/resources/resources-config.shared.factory.d.ts +1 -0
  404. package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
  405. package/dist/esm/resources/resources-config.shared.factory.js +189 -31
  406. package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
  407. package/dist/esm/resources/resources-config.shared.schemas.d.ts +395 -92
  408. package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
  409. package/dist/esm/resources/resources-config.shared.schemas.js +109 -20
  410. package/dist/esm/resources/resources-config.shared.schemas.js.map +1 -1
  411. package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts.map +1 -1
  412. package/dist/esm/resources/resources-registry.shared.core.definitions.js +97 -5
  413. package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
  414. package/dist/esm/resources/resources-relationships.shared.factory.d.ts.map +1 -1
  415. package/dist/esm/resources/resources-relationships.shared.factory.js +15 -0
  416. package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
  417. package/dist/esm/resources/resources.shared.core.definitions.d.ts +37 -0
  418. package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
  419. package/dist/esm/resources/resources.shared.core.definitions.js +51 -0
  420. package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
  421. package/dist/esm/resources/resources.shared.schemas.d.ts +11 -2
  422. package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
  423. package/dist/esm/resources/resources.shared.schemas.js +34 -3
  424. package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
  425. package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts +51 -0
  426. package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts.map +1 -0
  427. package/dist/esm/resources/utils/field-value-disclosure.utils.js +53 -0
  428. package/dist/esm/resources/utils/field-value-disclosure.utils.js.map +1 -0
  429. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts.map +1 -1
  430. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js +21 -6
  431. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js.map +1 -1
  432. package/dist/esm/resources/utils/resources-summary.utils.d.ts +16 -2
  433. package/dist/esm/resources/utils/resources-summary.utils.d.ts.map +1 -1
  434. package/dist/esm/resources/utils/resources-summary.utils.js +19 -5
  435. package/dist/esm/resources/utils/resources-summary.utils.js.map +1 -1
  436. package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts.map +1 -1
  437. package/dist/esm/resources/utils/shared-persistence-collection.utils.js +11 -0
  438. package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -1
  439. package/dist/esm/runtime/domain-module.shared.definitions.d.ts +25 -0
  440. package/dist/esm/runtime/domain-module.shared.definitions.d.ts.map +1 -1
  441. package/dist/esm/runtime/domain-module.shared.definitions.js.map +1 -1
  442. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts +1 -0
  443. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts.map +1 -1
  444. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js +38 -0
  445. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js.map +1 -1
  446. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts +1 -0
  447. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts.map +1 -1
  448. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js +38 -0
  449. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
  450. package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts +4 -11
  451. package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
  452. package/dist/esm/security/authentications/authentication.shared.dto.schemas.js +0 -1
  453. package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
  454. package/dist/esm/security/authentications/authentication.shared.schemas.d.ts +141 -5
  455. package/dist/esm/security/authentications/authentication.shared.schemas.d.ts.map +1 -1
  456. package/dist/esm/security/authentications/authentication.shared.schemas.js +147 -3
  457. package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
  458. package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts +17 -1
  459. package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts.map +1 -1
  460. package/dist/esm/security/authentications/consumable-token.shared.schemas.js +16 -0
  461. package/dist/esm/security/authentications/consumable-token.shared.schemas.js.map +1 -1
  462. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.d.ts +28 -0
  463. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.d.ts.map +1 -0
  464. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.js +28 -0
  465. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.js.map +1 -0
  466. package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts +1 -0
  467. package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
  468. package/dist/esm/security/authentications/registration.shared.dto.schemas.js +11 -0
  469. package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
  470. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts +15 -0
  471. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts.map +1 -1
  472. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js +21 -4
  473. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
  474. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts +21 -0
  475. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts.map +1 -0
  476. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js +21 -0
  477. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js.map +1 -0
  478. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts +61 -1
  479. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts.map +1 -1
  480. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js +208 -6
  481. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js.map +1 -1
  482. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts +37 -27
  483. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts.map +1 -1
  484. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js +134 -12
  485. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
  486. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts +0 -6
  487. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts.map +1 -1
  488. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js +17 -8
  489. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js.map +1 -1
  490. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts +1 -1
  491. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts.map +1 -1
  492. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js +70 -0
  493. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js.map +1 -1
  494. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts +45 -8
  495. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts.map +1 -1
  496. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js +56 -10
  497. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js.map +1 -1
  498. package/dist/esm/security/authorizations/roles.shared.schemas.d.ts +16 -1
  499. package/dist/esm/security/authorizations/roles.shared.schemas.d.ts.map +1 -1
  500. package/dist/esm/security/authorizations/roles.shared.schemas.js +16 -1
  501. package/dist/esm/security/authorizations/roles.shared.schemas.js.map +1 -1
  502. package/dist/esm/security/authorizations/roles.shared.utils.d.ts +54 -0
  503. package/dist/esm/security/authorizations/roles.shared.utils.d.ts.map +1 -1
  504. package/dist/esm/security/authorizations/roles.shared.utils.js +59 -0
  505. package/dist/esm/security/authorizations/roles.shared.utils.js.map +1 -1
  506. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts +31 -0
  507. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts.map +1 -0
  508. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js +198 -0
  509. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js.map +1 -0
  510. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts +31 -0
  511. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts.map +1 -0
  512. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js +191 -0
  513. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js.map +1 -0
  514. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts +250 -0
  515. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts.map +1 -0
  516. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js +486 -0
  517. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js.map +1 -0
  518. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts +4 -1
  519. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts.map +1 -1
  520. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js +29 -0
  521. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js.map +1 -1
  522. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts +4 -1
  523. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts.map +1 -1
  524. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js +29 -0
  525. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js.map +1 -1
  526. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts +67 -0
  527. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts.map +1 -1
  528. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js +44 -1
  529. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -1
  530. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts +1 -1
  531. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts.map +1 -1
  532. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js +35 -0
  533. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js.map +1 -1
  534. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts +13 -0
  535. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts.map +1 -1
  536. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js +31 -4
  537. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -1
  538. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts +1 -1
  539. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts.map +1 -1
  540. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js +34 -0
  541. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js.map +1 -1
  542. package/dist/esm/users/inbound-contacts.shared.schemas.d.ts.map +1 -1
  543. package/dist/esm/users/inbound-contacts.shared.schemas.js +7 -4
  544. package/dist/esm/users/inbound-contacts.shared.schemas.js.map +1 -1
  545. package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts +1 -1
  546. package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts.map +1 -1
  547. package/dist/esm/users/user-credentials.shared.resources-config.schemas.js +37 -0
  548. package/dist/esm/users/user-credentials.shared.resources-config.schemas.js.map +1 -1
  549. package/dist/esm/users/user-credentials.shared.schemas.d.ts.map +1 -1
  550. package/dist/esm/users/user-credentials.shared.schemas.js +17 -2
  551. package/dist/esm/users/user-credentials.shared.schemas.js.map +1 -1
  552. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts +1 -1
  553. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts.map +1 -1
  554. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js +36 -0
  555. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js.map +1 -1
  556. package/dist/esm/users/user-identity-links.shared.schemas.d.ts.map +1 -1
  557. package/dist/esm/users/user-identity-links.shared.schemas.js +15 -5
  558. package/dist/esm/users/user-identity-links.shared.schemas.js.map +1 -1
  559. package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts +5 -5
  560. package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  561. package/dist/esm/users/user-preferences.shared.resources-config.schemas.js +53 -0
  562. package/dist/esm/users/user-preferences.shared.resources-config.schemas.js.map +1 -1
  563. package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts +1 -1
  564. package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  565. package/dist/esm/users/user-profiles.shared.resources-config.schemas.js +62 -0
  566. package/dist/esm/users/user-profiles.shared.resources-config.schemas.js.map +1 -1
  567. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts +5 -5
  568. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  569. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js +53 -0
  570. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js.map +1 -1
  571. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts +1 -1
  572. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  573. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js +62 -0
  574. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js.map +1 -1
  575. package/dist/esm/users/user-self.shared.resources-config.schemas.d.ts.map +1 -1
  576. package/dist/esm/users/user-self.shared.resources-config.schemas.js +33 -3
  577. package/dist/esm/users/user-self.shared.resources-config.schemas.js.map +1 -1
  578. package/dist/esm/users/users.shared.resources-config.schemas.d.ts +17 -1
  579. package/dist/esm/users/users.shared.resources-config.schemas.d.ts.map +1 -1
  580. package/dist/esm/users/users.shared.resources-config.schemas.js +136 -5
  581. package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
  582. package/dist/esm/users/users.shared.schemas.d.ts +62 -12
  583. package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
  584. package/dist/esm/users/users.shared.schemas.js +79 -23
  585. package/dist/esm/users/users.shared.schemas.js.map +1 -1
  586. package/dist/tsconfig.build.tsbuildinfo +1 -1
  587. package/package.json +5 -6
  588. package/dist/esm/.builder.pid +0 -9
@@ -53,6 +53,7 @@ import { createPolymorphicResourceConfigurations } from '../resources/utils/reso
53
53
  import { CORE_APP_ROLES, CORE_ORG_ROLES } from '../security/authorizations/roles.shared.schemas.js';
54
54
  import { a2aTokenBudgetStatePolymorphicDeclaration } from './a2a-token-budget-state.shared.schemas.js';
55
55
  import { DataPortabilityProvenance } from '../compliance/privacy/subject-export.shared.schemas.js';
56
+ import { ErasureRetentionMode, ResourceDataSubjectKind } from '../compliance/privacy/impersonalization.shared.schemas.js';
56
57
  /**
57
58
  * Per-variant OWNER-READ role map. A tenant may inspect its OWN budget consumption (a
58
59
  * read-only usage view: "how much of my allowance have I used?"). The scope authorizer +
@@ -91,12 +92,64 @@ export const a2aTokenBudgetStatePolymorphicFactories = createPolymorphicResource
91
92
  read: ResourceSystemAccessMode.ALLOWED,
92
93
  },
93
94
  portabilityPolicy: { defaultProvenance: DataPortabilityProvenance.OBSERVED },
95
+ /**
96
+ * Subject erasure RETAINS this row and scrubs nothing, because there is nothing here to scrub.
97
+ *
98
+ * `RETAIN_ONLY` is a positive ASSERTION that this resource holds no personal data of its own. The row is a
99
+ * token-consumption accumulator: counters, a window boundary and the owner scope key. It declares no
100
+ * personal-data category, and its only link to a person is the scope FK, which the never-scrub floor
101
+ * protects in every mode.
102
+ *
103
+ * The assertion is CHECKED in both directions — the factory refuses `RETAIN_ONLY` if any field carries an
104
+ * impersonalize treatment, and if any non-floor field declares `.dataCategories()`.
105
+ */
106
+ retentionPolicy: {
107
+ mode: ErasureRetentionMode.RETAIN_ONLY,
108
+ },
109
+ /**
110
+ * Erasing one of these rows revokes NO session. The row is not a person — its owner FK names the ACTOR whose
111
+ * spend it accumulates — and the enum prescribes `NO_PRINCIPAL` for that shape. The subject's own session
112
+ * ends through the `USERS` row.
113
+ */
114
+ dataSubjectPolicy: { kind: ResourceDataSubjectKind.NO_PRINCIPAL },
94
115
  coreOperations: [
95
116
  CoreResourceOperation.CREATE,
96
117
  CoreResourceOperation.READ,
97
118
  CoreResourceOperation.DELETE,
119
+ // Route-less; `retentionPolicy` requires READ + LIST + UPDATE_MANY.
120
+ CoreResourceOperation.LIST,
121
+ CoreResourceOperation.UPDATE_MANY,
98
122
  ],
99
123
  operationsConfiguration: {
124
+ /*
125
+
126
+ * Route-less retention plumbing — INTERNAL_CALL registers no route, so no API surface is added, and it
127
+
128
+ * must not be REPOSITORY_ONLY: the retention primitives resolve through `getServiceOperationPathDefault`,
129
+
130
+ * which matches only INTERNAL_CALL / API_CALL. LIST is LOW (a read-shaped op may not claim the
131
+
132
+ * HIGH/CRITICAL band, which carries an audit-emission obligation); UPDATE_MANY is CRITICAL — it is the
133
+
134
+ * verb the impersonalize writer uses to stamp the retention markers.
135
+
136
+ */
137
+ [CoreResourceOperation.LIST]: {
138
+ variants: [{
139
+ variantType: ResourceOperationVariantType.INTERNAL_CALL,
140
+ isDefault: true,
141
+ roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],
142
+ riskLevel: ResourceOperationRiskLevel.LOW,
143
+ }],
144
+ },
145
+ [CoreResourceOperation.UPDATE_MANY]: {
146
+ variants: [{
147
+ variantType: ResourceOperationVariantType.INTERNAL_CALL,
148
+ isDefault: true,
149
+ roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],
150
+ riskLevel: ResourceOperationRiskLevel.CRITICAL,
151
+ }],
152
+ },
100
153
  // === CREATE === runtime opens the singleton on the first budgeted turn (createAsSystem).
101
154
  // No explicit request DTO: auto-derives per variant so the injected owner FK is required.
102
155
  [CoreResourceOperation.CREATE]: {
@@ -1 +1 @@
1
- {"version":3,"file":"a2a-token-budget-state.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,yCAAyC,EAAE,MAAM,yCAAyC,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAEhG;;;;;;;;;GASG;AACH,MAAM,gBAAgB,GAAG;IACvB,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC;IACnD,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;IAC7D,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC;CAC1D,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,uCAAuC,CAC5F,yCAAyC,EACzC;IACE,gBAAgB,EAAE,IAAI;IAEtB,sFAAsF;IACtF,4EAA4E;IAC5E,8FAA8F;IAC9F,uFAAuF;IACvF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,qBAAqB,CAAC;oBAC7C,SAAS,EAAE,0BAA0B,CAAC,IAAI;iBAC3C,CAAC;SACH;KACF;CACF,CACF,CAAC","sourcesContent":["/**\n * A2A Token Budget State — Resource Configuration (POLYMORPHIC SINGLETON)\n * ======================================================================\n *\n * The per-tenant A2A LLM token-budget accumulator, stamped out as THREE owner-scope\n * singleton variants from one polymorphic declaration (`userA2aTokenBudgetState` /\n * `organizationA2aTokenBudgetState` / `applicationA2aTokenBudgetState`). Spread the\n * produced factories into the registry factory map:\n * ...a2aTokenBudgetStatePolymorphicFactories\n *\n * Access model — SYSTEM-WRITTEN, OWNER-READABLE:\n * - This is internal enforcement state, not user-authored data: only the A2A runtime WRITES\n * it, via `*AsSystem` (governed by `systemAccessPolicy`). The tenant may READ its own row\n * (a usage view: \"how much of my allowance have I used?\"), but never authors it.\n * - CREATE (`INTERNAL_CALL` super-admin, no explicit request DTO — it auto-derives per variant so\n * the injected owner FK is required on the correct variant) opens the singleton on the first\n * budgeted turn, via `createAsSystem`. `INTERNAL_CALL` (not `REPOSITORY_ONLY`) is mandatory\n * here: `*AsSystem` dispatches through the service tier and resolves the op via\n * `getServiceOperationPathDefault`, which only matches INTERNAL_CALL / API_CALL variants.\n * - There is deliberately NO `UPDATE` operation. Advancing the counter is an ATOMIC increment\n * (`RepositoriesRegistryHandlerBackendService.atomicIncrementField`) executed at the repository\n * tier, precisely so concurrent turns cannot lose tokens to a read-modify-write race — a\n * service-tier UPDATE cannot express that. Declaring an `UPDATE` op (with a DTO and a\n * `systemAccessPolicy.update` grant) would therefore be dead configuration describing a write\n * path nothing takes, and would invite a future contributor to route the counter through it and\n * silently reintroduce the race.\n * - DELETE is `INTERNAL_CALL` super-admin: it exists to satisfy the composition `onParentDelete`\n * cascade teardown (which runs at the repository tier and selects the operation-default DELETE,\n * irrespective of variant type), NOT to offer an HTTP surface. Deliberately NOT `API_CALL`:\n * zeroing this row zeroes recorded consumption, which is a SPEND-CAP BYPASS, so it gets no URL\n * at all — strictly stronger than relying on a role floor. (The role floor is nevertheless\n * platform-only for defence in depth.)\n * - READ is the ONE `API_CALL`, and it is owner-level on its own merit: a tenant inspecting its\n * own consumption (\"how much of my allowance have I used?\"). It is read-only, so it cannot\n * affect the cap.\n *\n * CASCADE NOTE (recorded because it was initially mis-diagnosed): the cascade's requirement is a\n * cardinality-appropriate DISCOVERY op + a DELETE teardown op — for a 1:1 child that is READ, for\n * 1:many it is LIST. It does NOT require a URL-isable variant: `supportsOperation` checks only\n * `isOperationDefault`, and a sole `INTERNAL_CALL` variant is the default within its own group.\n * The guard violation seen while building this resource came from the relationship declaring\n * `childCardinality: MANY` (the helper's default) on a SINGLETON — which demanded LIST, not READ.\n * Fixing the cardinality fixed it; verified by reverting DELETE to `INTERNAL_CALL` with the guard\n * still green.\n *\n * @see a2a-token-budget-state.shared.schemas.ts — the polymorphic declaration + base schema\n * @see flows-actors-execution.shared.resources-config.schemas.ts — the 3-scope polymorphic config precedent\n */\n\nimport { CoreResourceOperation, CoreResourceType } from '../resources/resources.shared.core.definitions';\nimport {\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n} from '../resources/resources.shared.schemas';\nimport { ResourceSystemAccessMode } from '../resources/resources-config.shared.schemas';\nimport { createPolymorphicResourceConfigurations } from '../resources/utils/resource-polymorphism.factory';\nimport { CORE_APP_ROLES, CORE_ORG_ROLES } from '../security/authorizations/roles.shared.schemas';\nimport { a2aTokenBudgetStatePolymorphicDeclaration } from './a2a-token-budget-state.shared.schemas';\nimport { DataPortabilityProvenance } from '../compliance/privacy/subject-export.shared.schemas';\n\n/**\n * Per-variant OWNER-READ role map. A tenant may inspect its OWN budget consumption (a\n * read-only usage view: \"how much of my allowance have I used?\"). The scope authorizer +\n * contextual filter isolate rows to the owner; the role is the operation floor.\n *\n * The APPLICATION variant is intentionally `APP_USER`, matching the `flowActorExecutions`\n * precedent: app-scope rows are app-wide state, so any authenticated app user can read the\n * application's aggregate A2A consumption. Tighten to an admin role if that telemetry is ever\n * considered sensitive — it reveals platform usage volume, not tenant content.\n */\nconst OWNER_READ_ROLES = {\n [CoreResourceType.USERS]: [CORE_APP_ROLES.APP_USER],\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_MEMBER],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_USER],\n};\n\n/**\n * Polymorphic factory map for the A2A token budget state. Spread into\n * `coreShared_ResourcesConfigurations_FactoryMap`:\n * ...a2aTokenBudgetStatePolymorphicFactories\n *\n * Produces entries for:\n * - userA2aTokenBudgetState\n * - organizationA2aTokenBudgetState\n * - applicationA2aTokenBudgetState\n */\nexport const a2aTokenBudgetStatePolymorphicFactories = createPolymorphicResourceConfigurations(\n a2aTokenBudgetStatePolymorphicDeclaration,\n {\n isSystemResource: true,\n\n // Opt the A2A runtime (system actor) into scoped writes/reads on the tenant's behalf.\n // Absent this, every `*AsSystem` verb fails closed. Shared by all variants.\n // No `update` grant: the counter is advanced by an atomic repository-tier increment, never by\n // `updateAsSystem` (see the header). Granting it would authorise a path nothing takes.\n systemAccessPolicy: {\n // Subject-export disclosure. The subject's own token-budget state. Secrets and backend-only values are withheld by the export's security floor regardless of this grant. On a polymorphic resource this grant applies to EVERY generated variant, which is the documented intent of the shared config.\n exportSubject: ResourceSystemAccessMode.ALLOWED,\n create: ResourceSystemAccessMode.ALLOWED,\n read: ResourceSystemAccessMode.ALLOWED,\n },\n portabilityPolicy: { defaultProvenance: DataPortabilityProvenance.OBSERVED },\n\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.DELETE,\n ],\n\n operationsConfiguration: {\n // === CREATE === runtime opens the singleton on the first budgeted turn (createAsSystem).\n // No explicit request DTO: auto-derives per variant so the injected owner FK is required.\n [CoreResourceOperation.CREATE]: {\n variants: [{\n variantType: ResourceOperationVariantType.INTERNAL_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }],\n },\n\n // === READ === the owner inspects its own consumption AND the runtime loads the singleton\n // for the pre-dispatch budget check (readAsSystem). `API_CALL` on its own merit — a\n // tenant-facing usage view — and read-only, so owner-level roles cannot affect the cap. It\n // ALSO serves as the cascade's 1:1 discovery op, though that would be satisfied by a\n // non-URL variant too (see the CASCADE NOTE in the file header).\n [CoreResourceOperation.READ]: {\n variants: [{\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n polymorphicRole: OWNER_READ_ROLES,\n riskLevel: ResourceOperationRiskLevel.LOW,\n }],\n },\n\n // (No UPDATE operation — the counter is advanced by an atomic repository-tier increment so\n // concurrent turns cannot lose tokens to a read-modify-write race. See the file header.)\n\n // === DELETE === teardown for the composition `onParentDelete` cascade (repository tier,\n // which selects the operation-default DELETE regardless of variant type).\n //\n // ⚠️ DELIBERATELY `INTERNAL_CALL` — NO HTTP ROUTE AT ALL. Deleting this row ZEROES the\n // tenant's recorded consumption, i.e. a SPEND-CAP BYPASS, so the strongest available\n // protection is to expose no URL rather than to guard one with a role. The platform-only\n // (`APP_ADMIN_SUPER_ADMIN`) floor is defence in depth on top of that. The cascade is\n // unaffected: it runs below both routing and role checks.\n [CoreResourceOperation.DELETE]: {\n variants: [{\n variantType: ResourceOperationVariantType.INTERNAL_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.HIGH,\n }],\n },\n },\n },\n);\n"]}
1
+ {"version":3,"file":"a2a-token-budget-state.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAC7B,MA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AA0B,CAAC,GAAG;iBAC1C,CAAC;SACH;QAED,2FAA2F;QAC3F,yFAAyF;QAEzF,yFAAyF;QACzF,0EAA0E;QAC1E,EAAE;QACF,uFAAuF;QACvF,qFAAqF;QACrF,yFAAyF;QACzF,qFAAqF;QACrF,0DAA0D;QAC1D,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE,CAAC;oBACT,WAAW,EAAE,4BAA4B,CAAC,aAAa;oBACvD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;oBAC7C,SAAS,EAAE,0BAA0B,CAAC,IAAI;iBAC3C,CAAC;SACH;KACF;CACF,CACF,CAAC","sourcesContent":["/**\n * A2A Token Budget State — Resource Configuration (POLYMORPHIC SINGLETON)\n * ======================================================================\n *\n * The per-tenant A2A LLM token-budget accumulator, stamped out as THREE owner-scope\n * singleton variants from one polymorphic declaration (`userA2aTokenBudgetState` /\n * `organizationA2aTokenBudgetState` / `applicationA2aTokenBudgetState`). Spread the\n * produced factories into the registry factory map:\n * ...a2aTokenBudgetStatePolymorphicFactories\n *\n * Access model — SYSTEM-WRITTEN, OWNER-READABLE:\n * - This is internal enforcement state, not user-authored data: only the A2A runtime WRITES\n * it, via `*AsSystem` (governed by `systemAccessPolicy`). The tenant may READ its own row\n * (a usage view: \"how much of my allowance have I used?\"), but never authors it.\n * - CREATE (`INTERNAL_CALL` super-admin, no explicit request DTO — it auto-derives per variant so\n * the injected owner FK is required on the correct variant) opens the singleton on the first\n * budgeted turn, via `createAsSystem`. `INTERNAL_CALL` (not `REPOSITORY_ONLY`) is mandatory\n * here: `*AsSystem` dispatches through the service tier and resolves the op via\n * `getServiceOperationPathDefault`, which only matches INTERNAL_CALL / API_CALL variants.\n * - There is deliberately NO `UPDATE` operation. Advancing the counter is an ATOMIC increment\n * (`RepositoriesRegistryHandlerBackendService.atomicIncrementField`) executed at the repository\n * tier, precisely so concurrent turns cannot lose tokens to a read-modify-write race — a\n * service-tier UPDATE cannot express that. Declaring an `UPDATE` op (with a DTO and a\n * `systemAccessPolicy.update` grant) would therefore be dead configuration describing a write\n * path nothing takes, and would invite a future contributor to route the counter through it and\n * silently reintroduce the race.\n * - DELETE is `INTERNAL_CALL` super-admin: it exists to satisfy the composition `onParentDelete`\n * cascade teardown (which runs at the repository tier and selects the operation-default DELETE,\n * irrespective of variant type), NOT to offer an HTTP surface. Deliberately NOT `API_CALL`:\n * zeroing this row zeroes recorded consumption, which is a SPEND-CAP BYPASS, so it gets no URL\n * at all — strictly stronger than relying on a role floor. (The role floor is nevertheless\n * platform-only for defence in depth.)\n * - READ is the ONE `API_CALL`, and it is owner-level on its own merit: a tenant inspecting its\n * own consumption (\"how much of my allowance have I used?\"). It is read-only, so it cannot\n * affect the cap.\n *\n * CASCADE NOTE (recorded because it was initially mis-diagnosed): the cascade's requirement is a\n * cardinality-appropriate DISCOVERY op + a DELETE teardown op — for a 1:1 child that is READ, for\n * 1:many it is LIST. It does NOT require a URL-isable variant: `supportsOperation` checks only\n * `isOperationDefault`, and a sole `INTERNAL_CALL` variant is the default within its own group.\n * The guard violation seen while building this resource came from the relationship declaring\n * `childCardinality: MANY` (the helper's default) on a SINGLETON — which demanded LIST, not READ.\n * Fixing the cardinality fixed it; verified by reverting DELETE to `INTERNAL_CALL` with the guard\n * still green.\n *\n * @see a2a-token-budget-state.shared.schemas.ts — the polymorphic declaration + base schema\n * @see flows-actors-execution.shared.resources-config.schemas.ts — the 3-scope polymorphic config precedent\n */\n\nimport { CoreResourceOperation, CoreResourceType } from '../resources/resources.shared.core.definitions';\nimport {\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n} from '../resources/resources.shared.schemas';\nimport { ResourceSystemAccessMode } from '../resources/resources-config.shared.schemas';\nimport { createPolymorphicResourceConfigurations } from '../resources/utils/resource-polymorphism.factory';\nimport { CORE_APP_ROLES, CORE_ORG_ROLES } from '../security/authorizations/roles.shared.schemas';\nimport { a2aTokenBudgetStatePolymorphicDeclaration } from './a2a-token-budget-state.shared.schemas';\nimport { DataPortabilityProvenance } from '../compliance/privacy/subject-export.shared.schemas';\nimport { ErasureRetentionMode, ResourceDataSubjectKind } from '../compliance/privacy/impersonalization.shared.schemas';\n\n/**\n * Per-variant OWNER-READ role map. A tenant may inspect its OWN budget consumption (a\n * read-only usage view: \"how much of my allowance have I used?\"). The scope authorizer +\n * contextual filter isolate rows to the owner; the role is the operation floor.\n *\n * The APPLICATION variant is intentionally `APP_USER`, matching the `flowActorExecutions`\n * precedent: app-scope rows are app-wide state, so any authenticated app user can read the\n * application's aggregate A2A consumption. Tighten to an admin role if that telemetry is ever\n * considered sensitive — it reveals platform usage volume, not tenant content.\n */\nconst OWNER_READ_ROLES = {\n [CoreResourceType.USERS]: [CORE_APP_ROLES.APP_USER],\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_MEMBER],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_USER],\n};\n\n/**\n * Polymorphic factory map for the A2A token budget state. Spread into\n * `coreShared_ResourcesConfigurations_FactoryMap`:\n * ...a2aTokenBudgetStatePolymorphicFactories\n *\n * Produces entries for:\n * - userA2aTokenBudgetState\n * - organizationA2aTokenBudgetState\n * - applicationA2aTokenBudgetState\n */\nexport const a2aTokenBudgetStatePolymorphicFactories = createPolymorphicResourceConfigurations(\n a2aTokenBudgetStatePolymorphicDeclaration,\n {\n isSystemResource: true,\n\n // Opt the A2A runtime (system actor) into scoped writes/reads on the tenant's behalf.\n // Absent this, every `*AsSystem` verb fails closed. Shared by all variants.\n // No `update` grant: the counter is advanced by an atomic repository-tier increment, never by\n // `updateAsSystem` (see the header). Granting it would authorise a path nothing takes.\n systemAccessPolicy: {\n // Subject-export disclosure. The subject's own token-budget state. Secrets and backend-only values are withheld by the export's security floor regardless of this grant. On a polymorphic resource this grant applies to EVERY generated variant, which is the documented intent of the shared config.\n exportSubject: ResourceSystemAccessMode.ALLOWED,\n create: ResourceSystemAccessMode.ALLOWED,\n read: ResourceSystemAccessMode.ALLOWED,\n },\n portabilityPolicy: { defaultProvenance: DataPortabilityProvenance.OBSERVED },\n\n /**\n * Subject erasure RETAINS this row and scrubs nothing, because there is nothing here to scrub.\n *\n * `RETAIN_ONLY` is a positive ASSERTION that this resource holds no personal data of its own. The row is a\n * token-consumption accumulator: counters, a window boundary and the owner scope key. It declares no\n * personal-data category, and its only link to a person is the scope FK, which the never-scrub floor\n * protects in every mode.\n *\n * The assertion is CHECKED in both directions — the factory refuses `RETAIN_ONLY` if any field carries an\n * impersonalize treatment, and if any non-floor field declares `.dataCategories()`.\n */\n retentionPolicy: {\n mode: ErasureRetentionMode.RETAIN_ONLY,\n },\n\n /**\n * Erasing one of these rows revokes NO session. The row is not a person — its owner FK names the ACTOR whose\n * spend it accumulates — and the enum prescribes `NO_PRINCIPAL` for that shape. The subject's own session\n * ends through the `USERS` row.\n */\n dataSubjectPolicy: { kind: ResourceDataSubjectKind.NO_PRINCIPAL },\n\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.DELETE,\n // Route-less; `retentionPolicy` requires READ + LIST + UPDATE_MANY.\n CoreResourceOperation.LIST,\n CoreResourceOperation.UPDATE_MANY,\n ],\n\n operationsConfiguration: {\n\n /*\n\n * Route-less retention plumbing — INTERNAL_CALL registers no route, so no API surface is added, and it\n\n * must not be REPOSITORY_ONLY: the retention primitives resolve through `getServiceOperationPathDefault`,\n\n * which matches only INTERNAL_CALL / API_CALL. LIST is LOW (a read-shaped op may not claim the\n\n * HIGH/CRITICAL band, which carries an audit-emission obligation); UPDATE_MANY is CRITICAL — it is the\n\n * verb the impersonalize writer uses to stamp the retention markers.\n\n */\n\n [CoreResourceOperation.LIST]: {\n\n variants: [{\n\n variantType: ResourceOperationVariantType.INTERNAL_CALL,\n\n isDefault: true,\n\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n\n riskLevel: ResourceOperationRiskLevel.LOW,\n\n }],\n\n },\n\n [CoreResourceOperation.UPDATE_MANY]: {\n\n variants: [{\n\n variantType: ResourceOperationVariantType.INTERNAL_CALL,\n\n isDefault: true,\n\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n\n riskLevel: ResourceOperationRiskLevel.CRITICAL,\n\n }],\n\n },\n\n // === CREATE === runtime opens the singleton on the first budgeted turn (createAsSystem).\n // No explicit request DTO: auto-derives per variant so the injected owner FK is required.\n [CoreResourceOperation.CREATE]: {\n variants: [{\n variantType: ResourceOperationVariantType.INTERNAL_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }],\n },\n\n // === READ === the owner inspects its own consumption AND the runtime loads the singleton\n // for the pre-dispatch budget check (readAsSystem). `API_CALL` on its own merit — a\n // tenant-facing usage view — and read-only, so owner-level roles cannot affect the cap. It\n // ALSO serves as the cascade's 1:1 discovery op, though that would be satisfied by a\n // non-URL variant too (see the CASCADE NOTE in the file header).\n [CoreResourceOperation.READ]: {\n variants: [{\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n polymorphicRole: OWNER_READ_ROLES,\n riskLevel: ResourceOperationRiskLevel.LOW,\n }],\n },\n\n // (No UPDATE operation — the counter is advanced by an atomic repository-tier increment so\n // concurrent turns cannot lose tokens to a read-modify-write race. See the file header.)\n\n // === DELETE === teardown for the composition `onParentDelete` cascade (repository tier,\n // which selects the operation-default DELETE regardless of variant type).\n //\n // ⚠️ DELIBERATELY `INTERNAL_CALL` — NO HTTP ROUTE AT ALL. Deleting this row ZEROES the\n // tenant's recorded consumption, i.e. a SPEND-CAP BYPASS, so the strongest available\n // protection is to expose no URL rather than to guard one with a role. The platform-only\n // (`APP_ADMIN_SUPER_ADMIN`) floor is defence in depth on top of that. The cascade is\n // unaffected: it runs below both routing and role checks.\n [CoreResourceOperation.DELETE]: {\n variants: [{\n variantType: ResourceOperationVariantType.INTERNAL_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.HIGH,\n }],\n },\n },\n },\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"actors.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/actors.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAmG,oBAAoB,EAAG,MAAM,sCAAsC,CAAC;AAe9K,oBAAY,mBAAmB;IAC7B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;CAClC;AAGD,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;CACxC;AAED,eAAO,MAAM,WAAW;;;;;;;iBAOtB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAMhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAO5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { WildoError_BackendSchema } from "../errors/errors.shared.schemas.js";
3
- import { FlowsActors_Status } from "./flows-actors.commons.shared.schemas.js";
3
+ import { FlowsActors_Status, describeFlowsActorsStatus } from "./flows-actors.commons.shared.schemas.js";
4
4
  import { FlowActorSystem_BaseSchema, FlowActorSystem_ErrorStates_Schema, FlowActorSystem_ExecutionSchema, FlowActorSystem_Kind, } from "./flows-actors.system.shared.schemas.js";
5
5
  import { Actors_Task_Schema, Actors_Walkthrough_Schema, ActorsSystem_ExecutionPlan_Schema } from "./tasks.actors.shared.schemas.js";
6
6
  //===============================================================
@@ -73,7 +73,8 @@ export const ActorSystem_ExecutionSchema = FlowActorSystem_ExecutionSchema.exten
73
73
  status: z.enum(FlowsActors_Status),
74
74
  updatedAt: z.iso.datetime(),
75
75
  statusChanges: z.array(z.object({
76
- status: z.enum(FlowsActors_Status),
76
+ status: z.enum(FlowsActors_Status)
77
+ .describe(describeFlowsActorsStatus("The state this run moved into at `timestamp`. The list is the run's history, oldest first.")),
77
78
  timestamp: z.iso.datetime(),
78
79
  })),
79
80
  }).array(),
@@ -1 +1 @@
1
- {"version":3,"file":"actors.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/actors.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EA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AAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAClC,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACtB,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { WildoError_BackendSchema } from \"../errors/errors.shared.schemas\";\nimport { FlowsActors_Status } from \"./flows-actors.commons.shared.schemas\";\nimport { FlowActorSystem_BaseSchema, FlowActorSystem_ErrorStates_Schema, FlowActorSystem_ExecutionSchema, FlowActorSystem_Kind, } from \"./flows-actors.system.shared.schemas\";\nimport { Actors_Task_Schema, Actors_Walkthrough_Schema, ActorsSystem_ExecutionPlan_Schema } from \"./tasks.actors.shared.schemas\";\n\n\n//===============================================================\n// Actor\n// --------\n// Actors are reactive components that subscribe to event topics\n// and respond with automated processing. They enable event-driven\n// architecture by processing messages asynchronously, supporting\n// batch processing, filtering, and various error handling strategies.\n// Actors can emit new events, creating event chains and workflows.\n//===============================================================\n\n\nexport enum Actor_Role_Category {\n COORDINATOR = \"coordinator\",\n TASK_PLANNER = \"task_planner\",\n OPERATOR = \"operator\",\n ANALYZER = \"analyzer\",\n REVIEWER = \"reviewer\",\n HUMAN_IN_THE_LOOP = \"human_in_the_loop\",\n FLOW_EXECUTION = \"flow_execution\"\n}\n\n\nexport enum Actor_ExecutionMode {\n AGENTIC = \"agentic\",\n FLOW_EXECUTION = \"flow_execution\",\n HUMAN_INTERACTION = \"human_interaction\",\n}\n\nexport const ActorSchema = z.object({\n ref: z.string().min(1),\n displayName: z.string().min(1),\n roleCategory: z.enum(Actor_Role_Category),\n executionMode: z.enum(Actor_ExecutionMode),\n agentRef: z.string().optional(),\n flowRef: z.string().optional(),\n});\nexport type Actor = z.infer<typeof ActorSchema>;\n\n//===============================================================\n// Actor System\n//===============================================================\n\n/**\n * The ACTOR specialization of the system base — the schema that OWNS a system's\n * actor list. `actors` is declared here and in no other system schema: the base\n * cannot declare it, because a FLOW system has no actors. (Unrelated `actors`\n * members exist on the TASK schemas; those point at one actor, they are not a\n * system's roster.)\n *\n * An actor system must therefore be parsed with this schema, or one derived\n * from it. Parsing one with `FlowActorSystem_BaseSchema` strips `actors`\n * silently — see the warning there.\n */\nexport const ActorSystemSchema = FlowActorSystem_BaseSchema.extend({\n /**\n * Narrows the inherited `kind` discriminant to ACTOR. The historical shape\n * added a separate `type` field here while every consumer (backend registry,\n * execution schemas, flows counterpart) discriminates on `kind` — fixed\n * 2026-07-02 (meta-workflows Step 0 hygiene; no `.type` consumer existed).\n */\n kind: z.literal(FlowActorSystem_Kind.ACTOR),\n actors: z.array(z.lazy(() => ActorSchema)),\n});\nexport type ActorSystem = z.infer<typeof ActorSystemSchema>;\n\n\n//===============================================================\n// Actor System Execution\n//===============================================================\n\nexport const ActorSystem_ExecutionSchema = FlowActorSystem_ExecutionSchema.extend({\n kind: z.literal(FlowActorSystem_Kind.ACTOR),\n\n plan: ActorsSystem_ExecutionPlan_Schema.optional(),\n walkthrough: Actors_Walkthrough_Schema.optional(),\n standaloneTasks: z.array(Actors_Task_Schema),\n\n standaloneTaskStates: z.object({\n taskId: z.string(),\n status: z.enum(FlowsActors_Status),\n updatedAt: z.iso.datetime(),\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status),\n timestamp: z.iso.datetime(),\n })),\n }).array(),\n\n /**\n * Overrides the base `errorItems` with the actor-execution-scoped variant\n * (adds taskId/planStepId locators). Historically this extension used a\n * divergent `errors` key coexisting with the base `errorItems` — aligned\n * 2026-07-02 (meta-workflows Step 0 hygiene; the field had no consumers).\n */\n errorStates : FlowActorSystem_ErrorStates_Schema.extend({\n errorItems: WildoError_BackendSchema.extend({\n systemRef: z.string(),\n taskId: z.string().optional(),\n planStepId: z.string().optional(),\n }).array().optional(),\n }).optional(),\n});\nexport type ActorSystem_Execution = z.infer<typeof ActorSystem_ExecutionSchema>;\n"]}
1
+ {"version":3,"file":"actors.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-act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,CAAC,QAAQ,EAAE;SAC5B,CAAC,CAAC;KACJ,CAAC,CAAC,KAAK,EAAE;IAEV;;;;;OAKG;IACH,WAAW,EAAG,kCAAkC,CAAC,MAAM,CAAC;QACtD,UAAU,EAAE,wBAAwB,CAAC,MAAM,CAAC;YAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;YACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAClC,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACtB,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { WildoError_BackendSchema } from \"../errors/errors.shared.schemas\";\nimport { FlowsActors_Status, describeFlowsActorsStatus } from \"./flows-actors.commons.shared.schemas\";\nimport { FlowActorSystem_BaseSchema, FlowActorSystem_ErrorStates_Schema, FlowActorSystem_ExecutionSchema, FlowActorSystem_Kind, } from \"./flows-actors.system.shared.schemas\";\nimport { Actors_Task_Schema, Actors_Walkthrough_Schema, ActorsSystem_ExecutionPlan_Schema } from \"./tasks.actors.shared.schemas\";\n\n\n//===============================================================\n// Actor\n// --------\n// Actors are reactive components that subscribe to event topics\n// and respond with automated processing. They enable event-driven\n// architecture by processing messages asynchronously, supporting\n// batch processing, filtering, and various error handling strategies.\n// Actors can emit new events, creating event chains and workflows.\n//===============================================================\n\n\nexport enum Actor_Role_Category {\n COORDINATOR = \"coordinator\",\n TASK_PLANNER = \"task_planner\",\n OPERATOR = \"operator\",\n ANALYZER = \"analyzer\",\n REVIEWER = \"reviewer\",\n HUMAN_IN_THE_LOOP = \"human_in_the_loop\",\n FLOW_EXECUTION = \"flow_execution\"\n}\n\n\nexport enum Actor_ExecutionMode {\n AGENTIC = \"agentic\",\n FLOW_EXECUTION = \"flow_execution\",\n HUMAN_INTERACTION = \"human_interaction\",\n}\n\nexport const ActorSchema = z.object({\n ref: z.string().min(1),\n displayName: z.string().min(1),\n roleCategory: z.enum(Actor_Role_Category),\n executionMode: z.enum(Actor_ExecutionMode),\n agentRef: z.string().optional(),\n flowRef: z.string().optional(),\n});\nexport type Actor = z.infer<typeof ActorSchema>;\n\n//===============================================================\n// Actor System\n//===============================================================\n\n/**\n * The ACTOR specialization of the system base — the schema that OWNS a system's\n * actor list. `actors` is declared here and in no other system schema: the base\n * cannot declare it, because a FLOW system has no actors. (Unrelated `actors`\n * members exist on the TASK schemas; those point at one actor, they are not a\n * system's roster.)\n *\n * An actor system must therefore be parsed with this schema, or one derived\n * from it. Parsing one with `FlowActorSystem_BaseSchema` strips `actors`\n * silently — see the warning there.\n */\nexport const ActorSystemSchema = FlowActorSystem_BaseSchema.extend({\n /**\n * Narrows the inherited `kind` discriminant to ACTOR. The historical shape\n * added a separate `type` field here while every consumer (backend registry,\n * execution schemas, flows counterpart) discriminates on `kind` — fixed\n * 2026-07-02 (meta-workflows Step 0 hygiene; no `.type` consumer existed).\n */\n kind: z.literal(FlowActorSystem_Kind.ACTOR),\n actors: z.array(z.lazy(() => ActorSchema)),\n});\nexport type ActorSystem = z.infer<typeof ActorSystemSchema>;\n\n\n//===============================================================\n// Actor System Execution\n//===============================================================\n\nexport const ActorSystem_ExecutionSchema = FlowActorSystem_ExecutionSchema.extend({\n kind: z.literal(FlowActorSystem_Kind.ACTOR),\n\n plan: ActorsSystem_ExecutionPlan_Schema.optional(),\n walkthrough: Actors_Walkthrough_Schema.optional(),\n standaloneTasks: z.array(Actors_Task_Schema),\n\n standaloneTaskStates: z.object({\n taskId: z.string(),\n status: z.enum(FlowsActors_Status),\n updatedAt: z.iso.datetime(),\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status)\n .describe(describeFlowsActorsStatus(\"The state this run moved into at `timestamp`. The list is the run's history, oldest first.\")),\n timestamp: z.iso.datetime(),\n })),\n }).array(),\n\n /**\n * Overrides the base `errorItems` with the actor-execution-scoped variant\n * (adds taskId/planStepId locators). Historically this extension used a\n * divergent `errors` key coexisting with the base `errorItems` — aligned\n * 2026-07-02 (meta-workflows Step 0 hygiene; the field had no consumers).\n */\n errorStates : FlowActorSystem_ErrorStates_Schema.extend({\n errorItems: WildoError_BackendSchema.extend({\n systemRef: z.string(),\n taskId: z.string().optional(),\n planStepId: z.string().optional(),\n }).array().optional(),\n }).optional(),\n});\nexport type ActorSystem_Execution = z.infer<typeof ActorSystem_ExecutionSchema>;\n"]}
@@ -270,9 +270,12 @@ export type FlowsActors_Agent = {
270
270
  /** Operation definition (input/output schemas, etc.), per transport family. */
271
271
  operationDefinition: LLMProvider_OperationDefinitionBase | ImageProvider_OperationDefinitionBase | CodingAgent_OperationDefinitionBase;
272
272
  /**
273
- * The modality this agent PRODUCES. Optional: when omitted the executor
274
- * derives it from `config` (LLM keys → TEXT/STRUCTURED, image key → IMAGE).
275
- * Set explicitly to make a multimodal agent's output self-describing.
273
+ * The modality this agent PRODUCES, as documentation.
274
+ *
275
+ * Declarative only: no runtime path reads it. Dispatch is decided entirely by
276
+ * the arm of `config`, so setting or omitting this field changes nothing about
277
+ * which provider protocol the agent reaches. Set it to make a multimodal
278
+ * agent's output self-describing to a reader.
276
279
  */
277
280
  outputModality?: FlowsActors_IO_PartKind;
278
281
  /** The modalities this agent CONSUMES (e.g. `[TEXT]` for text-to-image). */
@@ -285,9 +288,55 @@ export type FlowsActors_Agent = {
285
288
  /** Agent capabilities (tools, etc.) */
286
289
  capabilities?: {
287
290
  tools?: {
288
- /** References to callable functions */
291
+ /**
292
+ * References to callable functions.
293
+ *
294
+ * RESOLVED: `AgentsBackendService` looks each ref up through
295
+ * `flowsActorsRegistry.getFunctionTool(ref)` and hands the model a callable tool. An unknown
296
+ * ref is skipped with a debug line rather than failing the turn.
297
+ */
289
298
  functionRefs: string[];
290
- /** References to MCP servers */
299
+ /**
300
+ * References to MCP servers the agent may reach.
301
+ *
302
+ * ## CHECKED, NOT YET CALLABLE (#491)
303
+ *
304
+ * Each ref must name an MCP server the APPLICATION declared (`FlowsActors_McpServer`), and
305
+ * `FlowsActorsRegistryService` REFUSES at initialization an agent whose refs name none. That
306
+ * closes the shape this field was in: it used to resolve against nothing, so a shipped catalog
307
+ * carried seven refs (`filesystem-mcp`, `git-mcp`, `browser-mcp`, `mongodb-mcp`, …) that named
308
+ * no server anywhere while the agent card rendered them as capabilities — a claim shown to a
309
+ * user about a reach the agent did not have. The catalog is gone and the card no longer
310
+ * renders these.
311
+ *
312
+ * The check is deliberately stricter than `functionRefs`, which skip an unknown ref with a
313
+ * debug line: an unknown `functionRef` costs an agent one tool, whereas these were presented
314
+ * as a capability, and a refusal makes the old state unreachable rather than fixed once.
315
+ *
316
+ * ## What is still missing before a ref becomes a CALLABLE tool
317
+ *
318
+ * The declaration is checkable; the call is not yet made. `AgentsBackendService` resolves
319
+ * `functionRefs` and nothing else, so an agent carrying `mcpRefs` still has exactly the reach
320
+ * its `functionRefs` give it.
321
+ *
322
+ * 1. **An MCP client.** `saas-backend-lib/src/mcp/` is the SERVER Wildo exposes to external MCP
323
+ * clients. There is no client, and no MCP client SDK in any manifest.
324
+ * 2. ~~A server registry~~ — BUILT. `registry.mcpServers`, declared per application.
325
+ * 3. **Credential resolution at call time.** Decided 2026-09-09: the call carries the acting
326
+ * user's own delegated provider credential where present and the organization's connection
327
+ * otherwise, from `userProviderCredentials` / `organizationProviderCredentials` rather than
328
+ * a store invented for MCP. `FlowsActors_McpCredentialSubject` records that choice per
329
+ * server; nothing reads it yet.
330
+ *
331
+ * Also decided, and not yet implemented: an unreachable server contributes NO tools to a turn
332
+ * rather than failing it — tools are discovered at turn start — and a call that fails mid-turn
333
+ * returns a typed error the agent can reason about. Both emit an audit event, because a server
334
+ * quietly unreachable for a week must be visible as that rather than as an agent that became
335
+ * less capable for no stated reason.
336
+ *
337
+ * Restoring these to any surface that presents them as a capability belongs in the same change
338
+ * that makes them callable.
339
+ */
291
340
  mcpRefs: string[];
292
341
  };
293
342
  };
@@ -1 +1 @@
1
- {"version":3,"file":"agents.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACxB,uCAAuC,EACvC,qCAAqC,EACrC,0BAA0B,EAC1B,yCAAyC,EACzC,mCAAmC,EACnC,wBAAwB,EACxB,uCAAuC,EACvC,wBAAwB,EACzB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AAoBpG;;;;;;;;GAQG;AACH,MAAM,MAAM,wCAAwC,GAAG,uCAAuC,GAAG;IAC/F,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sGAAsG;IACtG,iCAAiC,CAAC,EAAE,iCAAiC,CAAC;IACtE;;;;OAIG;IACH,iCAAiC,CAAC,EAAE,MAAM,CAAC;CAC5C,CAAC;AAEF,oBAAY,iCAAiC;IAC3C,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,kCAAkC,GAAG,sCAAsC,GAAG,wCAAwC,GAAG;IACnI,YAAY,EAAE,wBAAwB,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,oCAAoC,GAAG,sCAAsC,GAAG,yCAAyC,GAAG;IACtI,YAAY,EAAE,0BAA0B,CAAC;IACzC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;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CAAC,QAAQ,EAAE;IAEjE;;;OAGG;IACH,QAAQ,EAAE,CAAC,CAAC,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;AAgJH,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 { AppsBlueprint_FileFormat } from \"./apps-blueprint/artifacts.apps-blueprint.shared.schemas\";\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, AppsBlueprint_FileFormat, 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 * REUSES: AppsBlueprint_FileFormat (TEXT, TYPESCRIPT, MARKDOWN, JSON, YAML, etc.)\n */\n fileFormat: z.enum(AppsBlueprint_FileFormat).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. Optional: when omitted the executor\n * derives it from `config` (LLM keys → TEXT/STRUCTURED, image key → IMAGE).\n * Set explicitly to make a multimodal agent's output self-describing.\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 /** References to callable functions */\n functionRefs: string[],\n /** References to MCP servers */\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,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AAyCpG,MAAM,CAAN,IAAY,iCAGX;AAHD,WAAY,iCAAiC;IAC3C,0EAAqC,CAAA;IACrC,kFAA6C,C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AAC,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 { AppsBlueprint_FileFormat } from \"./apps-blueprint/artifacts.apps-blueprint.shared.schemas\";\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, AppsBlueprint_FileFormat, 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 * REUSES: AppsBlueprint_FileFormat (TEXT, TYPESCRIPT, MARKDOWN, JSON, YAML, etc.)\n */\n fileFormat: z.enum(AppsBlueprint_FileFormat).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"]}
@@ -27,9 +27,9 @@ export declare const AppsBlueprintSkill_CodeEditor_InputSchema: z.ZodObject<{
27
27
  fileKind: z.ZodString;
28
28
  location: z.ZodString;
29
29
  operation: z.ZodEnum<{
30
- update: "update";
31
- delete: "delete";
32
30
  create: "create";
31
+ delete: "delete";
32
+ update: "update";
33
33
  review: "review";
34
34
  }>;
35
35
  context: z.ZodString;
@@ -48,9 +48,9 @@ export type AppsBlueprintSkill_CodeEditor_Output = z.infer<typeof AppsBlueprintS
48
48
  export declare const AppsBlueprintSkill_ResourceEditor_InputSchema: z.ZodObject<{
49
49
  resourceType: z.ZodString;
50
50
  operation: z.ZodEnum<{
51
- update: "update";
52
- delete: "delete";
53
51
  create: "create";
52
+ delete: "delete";
53
+ update: "update";
54
54
  }>;
55
55
  requirements: z.ZodString;
56
56
  existingConfig: z.ZodOptional<z.ZodString>;
@@ -200,9 +200,9 @@ export declare const AppsBlueprintSourceCodeArtifactSchema: z.ZodObject<{
200
200
  format: z.ZodEnum<typeof AppsBlueprint_FileFormat>;
201
201
  resourceType: z.ZodOptional<z.ZodString>;
202
202
  operation: z.ZodOptional<z.ZodEnum<{
203
- update: "update";
204
- delete: "delete";
205
203
  create: "create";
204
+ delete: "delete";
205
+ update: "update";
206
206
  review: "review";
207
207
  }>>;
208
208
  componentType: z.ZodOptional<z.ZodString>;
@@ -399,7 +399,6 @@ declare const _DeliberationRecordSchema: z.ZodObject<{
399
399
  }, z.core.$strip>>;
400
400
  roundBudget: z.ZodNumber;
401
401
  status: z.ZodEnum<typeof DeliberationStatus>;
402
- charterInputsDigests: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
403
402
  humanDecision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
404
403
  decision: z.ZodString;
405
404
  decidedAt: z.ZodISODateTime;
@@ -593,8 +592,6 @@ export interface DeliberationPlan {
593
592
  roundBudget: number;
594
593
  /** Top-K candidates revised per round (RF-5 cost funnel). */
595
594
  shortlistSize: number;
596
- /** Participating charters' inputsDigests (staleness audit stamps). */
597
- charterInputsDigests: Record<string, string>;
598
595
  }
599
596
  /**
600
597
  * Result of the fail-closed criterion-ref validation of one verdict
@@ -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;;;;GAIG;AACH,oBAAY,0BAA0B;IACpC,4DAA4D;IAC5D,MAAM,WAAW;IACjB,kEAAkE;IAClE,MAAM,WAAW;IACjB,uEAAuE;IACvE,MAAM,WAAW;CAClB;AAED,uDAAuD;AACvD,oBAAY,+BA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AiD;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,YAAY;IACnB,kEAAkE;IAClE,SAAS,cAAc;IACvB,qEAAqE;IACrE,gBAAgB,qBAAqB;IACrC,yEAAyE;IACzE,MAAM,WAAW;IACjB;;;;;;;;;;;;;;OAcG;IACH,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ordSchema = z.object({
430
430
  /** Max rounds before the coordinator must synthesize (cost bound). */
431
431
  roundBudget: z.number().int().min(1),
432
432
  status: z.enum(DeliberationStatus),
433
- /**
434
- * The charters' `inputsDigest`s at deliberation time — lets an audit
435
- * see a decision was made under a stale persona (keyed by charterRef).
436
- */
437
- charterInputsDigests: z.record(z.string(), z.string()).default({}),
438
433
  /** The human authority's decision; null until the human acts. */
439
434
  humanDecision: _DeliberationHumanDecisionSchema.nullable().default(null),
440
435
  /** ISO-8601 timestamps. */