@teneo-protocol/sdk 1.0.1 → 2.2.0

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 (352) hide show
  1. package/.eslintrc.json +11 -2
  2. package/.github/CODEOWNERS +2 -0
  3. package/.github/ISSUE_TEMPLATE/01-bug.yml +85 -0
  4. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
  6. package/.github/workflows/claude-code-review.yml +8 -3
  7. package/.github/workflows/claude-reviewer.yml +6 -4
  8. package/.github/workflows/publish-npm.yml +9 -6
  9. package/.github/workflows/push-to-main.yml +1 -1
  10. package/.github/workflows/top-issue.yml +102 -0
  11. package/CHANGELOG.md +334 -0
  12. package/CONCEPTS.md +747 -0
  13. package/README.md +577 -54
  14. package/dist/constants.js +8 -8
  15. package/dist/constants.js.map +1 -1
  16. package/dist/core/websocket-client.d.ts +25 -1
  17. package/dist/core/websocket-client.d.ts.map +1 -1
  18. package/dist/core/websocket-client.js +74 -15
  19. package/dist/core/websocket-client.js.map +1 -1
  20. package/dist/formatters/response-formatter.js +4 -0
  21. package/dist/formatters/response-formatter.js.map +1 -1
  22. package/dist/handlers/message-handler-registry.js +2 -1
  23. package/dist/handlers/message-handler-registry.js.map +1 -1
  24. package/dist/handlers/message-handlers/agent-details-response-handler.d.ts +1666 -0
  25. package/dist/handlers/message-handlers/agent-details-response-handler.d.ts.map +1 -0
  26. package/dist/handlers/message-handlers/agent-details-response-handler.js +38 -0
  27. package/dist/handlers/message-handlers/agent-details-response-handler.js.map +1 -0
  28. package/dist/handlers/message-handlers/agent-room-operation-response-handler.d.ts +76 -0
  29. package/dist/handlers/message-handlers/agent-room-operation-response-handler.d.ts.map +1 -0
  30. package/dist/handlers/message-handlers/agent-room-operation-response-handler.js +67 -0
  31. package/dist/handlers/message-handlers/agent-room-operation-response-handler.js.map +1 -0
  32. package/dist/handlers/message-handlers/agent-selected-handler.d.ts +92 -38
  33. package/dist/handlers/message-handlers/agent-selected-handler.d.ts.map +1 -1
  34. package/dist/handlers/message-handlers/agent-selected-handler.js +2 -5
  35. package/dist/handlers/message-handlers/agent-selected-handler.js.map +1 -1
  36. package/dist/handlers/message-handlers/agent-status-update-handler.d.ts +1687 -0
  37. package/dist/handlers/message-handlers/agent-status-update-handler.d.ts.map +1 -0
  38. package/dist/handlers/message-handlers/agent-status-update-handler.js +48 -0
  39. package/dist/handlers/message-handlers/agent-status-update-handler.js.map +1 -0
  40. package/dist/handlers/message-handlers/agents-list-handler.js +2 -5
  41. package/dist/handlers/message-handlers/agents-list-handler.js.map +1 -1
  42. package/dist/handlers/message-handlers/all-agents-response-handler.d.ts +439 -0
  43. package/dist/handlers/message-handlers/all-agents-response-handler.d.ts.map +1 -0
  44. package/dist/handlers/message-handlers/all-agents-response-handler.js +36 -0
  45. package/dist/handlers/message-handlers/all-agents-response-handler.js.map +1 -0
  46. package/dist/handlers/message-handlers/auth-error-handler.d.ts +45 -31
  47. package/dist/handlers/message-handlers/auth-error-handler.d.ts.map +1 -1
  48. package/dist/handlers/message-handlers/auth-error-handler.js +2 -5
  49. package/dist/handlers/message-handlers/auth-error-handler.js.map +1 -1
  50. package/dist/handlers/message-handlers/auth-message-handler.d.ts +6 -0
  51. package/dist/handlers/message-handlers/auth-message-handler.d.ts.map +1 -1
  52. package/dist/handlers/message-handlers/auth-message-handler.js +71 -10
  53. package/dist/handlers/message-handlers/auth-message-handler.js.map +1 -1
  54. package/dist/handlers/message-handlers/auth-required-handler.d.ts +49 -31
  55. package/dist/handlers/message-handlers/auth-required-handler.d.ts.map +1 -1
  56. package/dist/handlers/message-handlers/auth-required-handler.js +2 -5
  57. package/dist/handlers/message-handlers/auth-required-handler.js.map +1 -1
  58. package/dist/handlers/message-handlers/auth-success-handler.d.ts +6 -0
  59. package/dist/handlers/message-handlers/auth-success-handler.d.ts.map +1 -1
  60. package/dist/handlers/message-handlers/auth-success-handler.js +52 -9
  61. package/dist/handlers/message-handlers/auth-success-handler.js.map +1 -1
  62. package/dist/handlers/message-handlers/base-handler.d.ts +4 -4
  63. package/dist/handlers/message-handlers/base-handler.d.ts.map +1 -1
  64. package/dist/handlers/message-handlers/base-handler.js +3 -1
  65. package/dist/handlers/message-handlers/base-handler.js.map +1 -1
  66. package/dist/handlers/message-handlers/challenge-handler.d.ts +45 -31
  67. package/dist/handlers/message-handlers/challenge-handler.d.ts.map +1 -1
  68. package/dist/handlers/message-handlers/challenge-handler.js +3 -2
  69. package/dist/handlers/message-handlers/challenge-handler.js.map +1 -1
  70. package/dist/handlers/message-handlers/error-message-handler.d.ts +49 -31
  71. package/dist/handlers/message-handlers/error-message-handler.d.ts.map +1 -1
  72. package/dist/handlers/message-handlers/error-message-handler.js +2 -5
  73. package/dist/handlers/message-handlers/error-message-handler.js.map +1 -1
  74. package/dist/handlers/message-handlers/index.d.ts +11 -0
  75. package/dist/handlers/message-handlers/index.d.ts.map +1 -1
  76. package/dist/handlers/message-handlers/index.js +55 -1
  77. package/dist/handlers/message-handlers/index.js.map +1 -1
  78. package/dist/handlers/message-handlers/list-available-agents-handler.d.ts +1660 -0
  79. package/dist/handlers/message-handlers/list-available-agents-handler.d.ts.map +1 -0
  80. package/dist/handlers/message-handlers/list-available-agents-handler.js +35 -0
  81. package/dist/handlers/message-handlers/list-available-agents-handler.js.map +1 -0
  82. package/dist/handlers/message-handlers/list-room-agents-handler.d.ts +1669 -0
  83. package/dist/handlers/message-handlers/list-room-agents-handler.d.ts.map +1 -0
  84. package/dist/handlers/message-handlers/list-room-agents-handler.js +48 -0
  85. package/dist/handlers/message-handlers/list-room-agents-handler.js.map +1 -0
  86. package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts +2 -110
  87. package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts.map +1 -1
  88. package/dist/handlers/message-handlers/list-rooms-response-handler.js +4 -6
  89. package/dist/handlers/message-handlers/list-rooms-response-handler.js.map +1 -1
  90. package/dist/handlers/message-handlers/ping-pong-handler.d.ts +62 -58
  91. package/dist/handlers/message-handlers/ping-pong-handler.d.ts.map +1 -1
  92. package/dist/handlers/message-handlers/ping-pong-handler.js +4 -10
  93. package/dist/handlers/message-handlers/ping-pong-handler.js.map +1 -1
  94. package/dist/handlers/message-handlers/rate-limit-notification-handler.d.ts +94 -0
  95. package/dist/handlers/message-handlers/rate-limit-notification-handler.d.ts.map +1 -0
  96. package/dist/handlers/message-handlers/rate-limit-notification-handler.js +35 -0
  97. package/dist/handlers/message-handlers/rate-limit-notification-handler.js.map +1 -0
  98. package/dist/handlers/message-handlers/regular-message-handler.d.ts +31 -29
  99. package/dist/handlers/message-handlers/regular-message-handler.d.ts.map +1 -1
  100. package/dist/handlers/message-handlers/regular-message-handler.js +4 -6
  101. package/dist/handlers/message-handlers/regular-message-handler.js.map +1 -1
  102. package/dist/handlers/message-handlers/room-operation-response-handler.d.ts +328 -0
  103. package/dist/handlers/message-handlers/room-operation-response-handler.d.ts.map +1 -0
  104. package/dist/handlers/message-handlers/room-operation-response-handler.js +89 -0
  105. package/dist/handlers/message-handlers/room-operation-response-handler.js.map +1 -0
  106. package/dist/handlers/message-handlers/subscribe-response-handler.d.ts +53 -31
  107. package/dist/handlers/message-handlers/subscribe-response-handler.d.ts.map +1 -1
  108. package/dist/handlers/message-handlers/subscribe-response-handler.js +4 -6
  109. package/dist/handlers/message-handlers/subscribe-response-handler.js.map +1 -1
  110. package/dist/handlers/message-handlers/task-quote-handler.d.ts +14 -0
  111. package/dist/handlers/message-handlers/task-quote-handler.d.ts.map +1 -0
  112. package/dist/handlers/message-handlers/task-quote-handler.js +29 -0
  113. package/dist/handlers/message-handlers/task-quote-handler.js.map +1 -0
  114. package/dist/handlers/message-handlers/task-response-handler.js +2 -5
  115. package/dist/handlers/message-handlers/task-response-handler.js.map +1 -1
  116. package/dist/handlers/message-handlers/types.d.ts +21 -7
  117. package/dist/handlers/message-handlers/types.d.ts.map +1 -1
  118. package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts +53 -31
  119. package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts.map +1 -1
  120. package/dist/handlers/message-handlers/unsubscribe-response-handler.js +4 -6
  121. package/dist/handlers/message-handlers/unsubscribe-response-handler.js.map +1 -1
  122. package/dist/handlers/message-handlers/user-authenticated-handler.d.ts +40 -0
  123. package/dist/handlers/message-handlers/user-authenticated-handler.d.ts.map +1 -0
  124. package/dist/handlers/message-handlers/user-authenticated-handler.js +28 -0
  125. package/dist/handlers/message-handlers/user-authenticated-handler.js.map +1 -0
  126. package/dist/handlers/message-handlers/user-count-handler.d.ts +49 -0
  127. package/dist/handlers/message-handlers/user-count-handler.d.ts.map +1 -0
  128. package/dist/handlers/message-handlers/user-count-handler.js +31 -0
  129. package/dist/handlers/message-handlers/user-count-handler.js.map +1 -0
  130. package/dist/handlers/webhook-handler.d.ts +1 -1
  131. package/dist/handlers/webhook-handler.d.ts.map +1 -1
  132. package/dist/handlers/webhook-handler.js +14 -5
  133. package/dist/handlers/webhook-handler.js.map +1 -1
  134. package/dist/index.d.ts +6 -1
  135. package/dist/index.d.ts.map +1 -1
  136. package/dist/index.js +19 -2
  137. package/dist/index.js.map +1 -1
  138. package/dist/managers/admin-manager.d.ts +116 -0
  139. package/dist/managers/admin-manager.d.ts.map +1 -0
  140. package/dist/managers/admin-manager.js +169 -0
  141. package/dist/managers/admin-manager.js.map +1 -0
  142. package/dist/managers/agent-registry.d.ts +52 -1
  143. package/dist/managers/agent-registry.d.ts.map +1 -1
  144. package/dist/managers/agent-registry.js +145 -6
  145. package/dist/managers/agent-registry.js.map +1 -1
  146. package/dist/managers/agent-room-manager.d.ts +216 -0
  147. package/dist/managers/agent-room-manager.d.ts.map +1 -0
  148. package/dist/managers/agent-room-manager.js +555 -0
  149. package/dist/managers/agent-room-manager.js.map +1 -0
  150. package/dist/managers/connection-manager.js +2 -0
  151. package/dist/managers/connection-manager.js.map +1 -1
  152. package/dist/managers/index.d.ts +4 -1
  153. package/dist/managers/index.d.ts.map +1 -1
  154. package/dist/managers/index.js +7 -1
  155. package/dist/managers/index.js.map +1 -1
  156. package/dist/managers/message-router.d.ts +56 -5
  157. package/dist/managers/message-router.d.ts.map +1 -1
  158. package/dist/managers/message-router.js +155 -8
  159. package/dist/managers/message-router.js.map +1 -1
  160. package/dist/managers/room-management-manager.d.ts +213 -0
  161. package/dist/managers/room-management-manager.d.ts.map +1 -0
  162. package/dist/managers/room-management-manager.js +442 -0
  163. package/dist/managers/room-management-manager.js.map +1 -0
  164. package/dist/managers/room-manager.d.ts +11 -9
  165. package/dist/managers/room-manager.d.ts.map +1 -1
  166. package/dist/managers/room-manager.js +14 -10
  167. package/dist/managers/room-manager.js.map +1 -1
  168. package/dist/payments/index.d.ts +5 -0
  169. package/dist/payments/index.d.ts.map +1 -0
  170. package/dist/payments/index.js +21 -0
  171. package/dist/payments/index.js.map +1 -0
  172. package/dist/payments/payment-client.d.ts +74 -0
  173. package/dist/payments/payment-client.d.ts.map +1 -0
  174. package/dist/payments/payment-client.js +207 -0
  175. package/dist/payments/payment-client.js.map +1 -0
  176. package/dist/teneo-sdk.d.ts +467 -33
  177. package/dist/teneo-sdk.d.ts.map +1 -1
  178. package/dist/teneo-sdk.js +735 -26
  179. package/dist/teneo-sdk.js.map +1 -1
  180. package/dist/types/categories.d.ts +22 -0
  181. package/dist/types/categories.d.ts.map +1 -0
  182. package/dist/types/categories.js +40 -0
  183. package/dist/types/categories.js.map +1 -0
  184. package/dist/types/config.d.ts +134 -54
  185. package/dist/types/config.d.ts.map +1 -1
  186. package/dist/types/config.js +70 -9
  187. package/dist/types/config.js.map +1 -1
  188. package/dist/types/error-codes.d.ts +10 -0
  189. package/dist/types/error-codes.d.ts.map +1 -1
  190. package/dist/types/error-codes.js +12 -0
  191. package/dist/types/error-codes.js.map +1 -1
  192. package/dist/types/events.d.ts +176 -68
  193. package/dist/types/events.d.ts.map +1 -1
  194. package/dist/types/events.js +19 -1
  195. package/dist/types/events.js.map +1 -1
  196. package/dist/types/index.d.ts +3 -2
  197. package/dist/types/index.d.ts.map +1 -1
  198. package/dist/types/index.js +57 -2
  199. package/dist/types/index.js.map +1 -1
  200. package/dist/types/messages.d.ts +22225 -2592
  201. package/dist/types/messages.d.ts.map +1 -1
  202. package/dist/types/messages.js +537 -28
  203. package/dist/types/messages.js.map +1 -1
  204. package/dist/utils/bounded-queue.d.ts.map +1 -1
  205. package/dist/utils/bounded-queue.js +5 -2
  206. package/dist/utils/bounded-queue.js.map +1 -1
  207. package/dist/utils/circuit-breaker.js +11 -4
  208. package/dist/utils/circuit-breaker.js.map +1 -1
  209. package/dist/utils/deduplication-cache.js +3 -1
  210. package/dist/utils/deduplication-cache.js.map +1 -1
  211. package/dist/utils/event-waiter.d.ts +3 -3
  212. package/dist/utils/event-waiter.d.ts.map +1 -1
  213. package/dist/utils/index.d.ts +1 -0
  214. package/dist/utils/index.d.ts.map +1 -1
  215. package/dist/utils/index.js +4 -1
  216. package/dist/utils/index.js.map +1 -1
  217. package/dist/utils/logger.js.map +1 -1
  218. package/dist/utils/pricing-resolver.d.ts +26 -0
  219. package/dist/utils/pricing-resolver.d.ts.map +1 -0
  220. package/dist/utils/pricing-resolver.js +85 -0
  221. package/dist/utils/pricing-resolver.js.map +1 -0
  222. package/dist/utils/rate-limiter.d.ts.map +1 -1
  223. package/dist/utils/rate-limiter.js +6 -0
  224. package/dist/utils/rate-limiter.js.map +1 -1
  225. package/dist/utils/retry-policy.js +1 -0
  226. package/dist/utils/retry-policy.js.map +1 -1
  227. package/dist/utils/secure-private-key.js +3 -1
  228. package/dist/utils/secure-private-key.js.map +1 -1
  229. package/dist/utils/signature-verifier.d.ts.map +1 -1
  230. package/dist/utils/signature-verifier.js +3 -1
  231. package/dist/utils/signature-verifier.js.map +1 -1
  232. package/examples/.env.example +2 -2
  233. package/examples/agent-room-management-example.ts +335 -0
  234. package/examples/basic-usage.ts +3 -4
  235. package/examples/claude-agent-x-follower/.env.example +3 -3
  236. package/examples/claude-agent-x-follower/QUICKSTART.md +3 -3
  237. package/examples/claude-agent-x-follower/README.md +3 -3
  238. package/examples/claude-agent-x-follower/index.ts +120 -96
  239. package/examples/n8n-teneo/.env.example +3 -3
  240. package/examples/n8n-teneo/README.md +2 -2
  241. package/examples/n8n-teneo/index.ts +54 -44
  242. package/examples/nestjs-dashboard/.env.example +11 -0
  243. package/examples/nestjs-dashboard/README.md +297 -0
  244. package/examples/nestjs-dashboard/nest-cli.json +10 -0
  245. package/examples/nestjs-dashboard/package.json +44 -0
  246. package/examples/nestjs-dashboard/pnpm-lock.yaml +3079 -0
  247. package/examples/nestjs-dashboard/src/app.controller.ts +24 -0
  248. package/examples/nestjs-dashboard/src/app.module.ts +15 -0
  249. package/examples/nestjs-dashboard/src/main.ts +32 -0
  250. package/examples/nestjs-dashboard/src/public/dashboard.html +1144 -0
  251. package/examples/nestjs-dashboard/src/teneo/agents.controller.ts +54 -0
  252. package/examples/nestjs-dashboard/src/teneo/events.controller.ts +65 -0
  253. package/examples/nestjs-dashboard/src/teneo/messages.controller.ts +47 -0
  254. package/examples/nestjs-dashboard/src/teneo/rooms.controller.ts +258 -0
  255. package/examples/nestjs-dashboard/src/teneo/teneo.module.ts +13 -0
  256. package/examples/nestjs-dashboard/src/teneo/teneo.service.ts +484 -0
  257. package/examples/nestjs-dashboard/tsconfig.json +22 -0
  258. package/examples/openai-teneo/.env.example +3 -3
  259. package/examples/openai-teneo/README.md +3 -3
  260. package/examples/openai-teneo/index.ts +82 -71
  261. package/examples/production-dashboard/.env.example +3 -3
  262. package/examples/production-dashboard/README.md +90 -13
  263. package/examples/production-dashboard/public/dashboard.html +1173 -601
  264. package/examples/production-dashboard/server.ts +349 -7
  265. package/examples/room-management-example.ts +282 -0
  266. package/examples/usage/.env.example +2 -2
  267. package/examples/usage/01-connect.ts +3 -4
  268. package/examples/usage/02-list-agents.ts +2 -3
  269. package/examples/usage/03-pick-agent.ts +2 -3
  270. package/examples/usage/04-find-by-capability.ts +2 -3
  271. package/examples/usage/05-webhook-example.ts +2 -3
  272. package/examples/usage/06-simple-api-server.ts +2 -3
  273. package/examples/usage/07-event-listener.ts +2 -3
  274. package/examples/usage/README.md +1 -1
  275. package/examples/webhook-integration.ts +1 -1
  276. package/examples/x-influencer-battle-server.ts +2 -2
  277. package/package.json +12 -1
  278. package/src/core/websocket-client.test.ts +8 -3
  279. package/src/core/websocket-client.ts +58 -4
  280. package/src/formatters/response-formatter.test.ts +2 -0
  281. package/src/formatters/response-formatter.ts +3 -3
  282. package/src/handlers/message-handlers/agent-details-response-handler.ts +42 -0
  283. package/src/handlers/message-handlers/agent-room-operation-response-handler.ts +77 -0
  284. package/src/handlers/message-handlers/agent-status-update-handler.ts +52 -0
  285. package/src/handlers/message-handlers/all-agents-response-handler.ts +39 -0
  286. package/src/handlers/message-handlers/auth-message-handler.ts +78 -5
  287. package/src/handlers/message-handlers/auth-success-handler.ts +63 -6
  288. package/src/handlers/message-handlers/base-handler.ts +20 -7
  289. package/src/handlers/message-handlers/index.ts +53 -0
  290. package/src/handlers/message-handlers/list-available-agents-handler.ts +41 -0
  291. package/src/handlers/message-handlers/list-room-agents-handler.ts +58 -0
  292. package/src/handlers/message-handlers/list-rooms-response-handler.ts +4 -2
  293. package/src/handlers/message-handlers/rate-limit-notification-handler.ts +45 -0
  294. package/src/handlers/message-handlers/regular-message-handler.ts +3 -2
  295. package/src/handlers/message-handlers/room-operation-response-handler.ts +102 -0
  296. package/src/handlers/message-handlers/subscribe-response-handler.ts +12 -2
  297. package/src/handlers/message-handlers/task-quote-handler.ts +31 -0
  298. package/src/handlers/message-handlers/types.ts +41 -7
  299. package/src/handlers/message-handlers/unsubscribe-response-handler.ts +12 -2
  300. package/src/handlers/message-handlers/user-authenticated-handler.ts +31 -0
  301. package/src/handlers/message-handlers/user-count-handler.ts +34 -0
  302. package/src/handlers/webhook-handler.test.ts +3 -2
  303. package/src/handlers/webhook-handler.ts +13 -7
  304. package/src/index.ts +21 -0
  305. package/src/managers/admin-manager.ts +249 -0
  306. package/src/managers/agent-registry.test.ts +2 -1
  307. package/src/managers/agent-registry.ts +170 -2
  308. package/src/managers/agent-room-manager.ts +665 -0
  309. package/src/managers/index.ts +15 -1
  310. package/src/managers/message-router.ts +215 -17
  311. package/src/managers/room-management-manager.ts +520 -0
  312. package/src/managers/room-manager.ts +15 -20
  313. package/src/payments/index.ts +22 -0
  314. package/src/payments/payment-client.ts +240 -0
  315. package/src/teneo-sdk.ts +806 -30
  316. package/src/types/categories.ts +45 -0
  317. package/src/types/config.ts +80 -7
  318. package/src/types/error-codes.ts +14 -0
  319. package/src/types/events.test.ts +1 -0
  320. package/src/types/events.ts +67 -0
  321. package/src/types/index.ts +111 -0
  322. package/src/types/messages.test.ts +2 -1
  323. package/src/types/messages.ts +677 -42
  324. package/src/utils/bounded-queue.test.ts +1 -1
  325. package/src/utils/bounded-queue.ts +2 -1
  326. package/src/utils/circuit-breaker.test.ts +1 -1
  327. package/src/utils/deduplication-cache.test.ts +1 -1
  328. package/src/utils/event-waiter.test.ts +1 -1
  329. package/src/utils/event-waiter.ts +3 -3
  330. package/src/utils/index.ts +7 -0
  331. package/src/utils/logger.ts +8 -8
  332. package/src/utils/pricing-resolver.ts +128 -0
  333. package/src/utils/rate-limiter.test.ts +1 -1
  334. package/src/utils/rate-limiter.ts +1 -0
  335. package/src/utils/signature-verifier.test.ts +2 -2
  336. package/src/utils/signature-verifier.ts +3 -2
  337. package/tests/.env.example +7 -0
  338. package/tests/direct-agent-test.ts +151 -0
  339. package/tests/integration/real-server.test.ts +2 -0
  340. package/tests/integration/room-management.test.ts +516 -0
  341. package/tests/integration/websocket.test.ts +5 -2
  342. package/tests/payment-flow-test.ts +147 -0
  343. package/tests/unit/handlers/agent-room-operation-response-handler.test.ts +382 -0
  344. package/tests/unit/handlers/agent-status-update-handler.test.ts +403 -0
  345. package/tests/unit/handlers/auth-success-handler-rooms.test.ts +697 -0
  346. package/tests/unit/handlers/list-available-agents-handler.test.ts +248 -0
  347. package/tests/unit/handlers/list-room-agents-handler.test.ts +290 -0
  348. package/tests/unit/handlers/room-operation-response-handler.test.ts +500 -0
  349. package/tests/unit/managers/agent-room-manager.test.ts +527 -0
  350. package/tests/unit/managers/room-management-manager.test.ts +420 -0
  351. package/tsconfig.json +2 -2
  352. package/vitest.config.ts +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-status-update-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/agent-status-update-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAkC,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,wBAAyB,SAAQ,kBAAkB,CAAC,wBAAwB,CAAC;IACxF,QAAQ,CAAC,IAAI,EAAG,qBAAqB,CAAU;IAC/C,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAkC;IAEjD,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CAsC5F"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * Handler for agent_status_update messages (v2.0.0)
4
+ * Processes real-time agent status updates for rooms
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.AgentStatusUpdateHandler = void 0;
8
+ const types_1 = require("../../types");
9
+ const base_handler_1 = require("./base-handler");
10
+ class AgentStatusUpdateHandler extends base_handler_1.BaseMessageHandler {
11
+ type = "agent_status_update";
12
+ schema = types_1.AgentStatusUpdateMessageSchema;
13
+ handleValidated(message, context) {
14
+ const { room_id, agent_id, status, agent } = message.data;
15
+ context.logger.debug("Handling agent_status_update", {
16
+ roomId: room_id,
17
+ agentId: agent_id,
18
+ status,
19
+ hasAgent: !!agent
20
+ });
21
+ // Invalidate cache for this room via agent room manager
22
+ const agentRoomManager = context.agentRoomManager;
23
+ if (agentRoomManager && typeof agentRoomManager.handleStatusUpdate === "function") {
24
+ agentRoomManager.handleStatusUpdate(room_id, agent_id, status);
25
+ }
26
+ context.logger.info("Agent status updated", {
27
+ roomId: room_id,
28
+ agentId: agent_id,
29
+ status
30
+ });
31
+ // Emit status update event
32
+ this.emit(context, "agent_room:status_update", {
33
+ roomId: room_id,
34
+ agentId: agent_id,
35
+ status,
36
+ agent
37
+ });
38
+ // Send webhook
39
+ this.sendWebhook(context, "agent_status_update", {
40
+ room_id,
41
+ agent_id,
42
+ status,
43
+ agent
44
+ });
45
+ }
46
+ }
47
+ exports.AgentStatusUpdateHandler = AgentStatusUpdateHandler;
48
+ //# sourceMappingURL=agent-status-update-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-status-update-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/agent-status-update-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAAuF;AACvF,iDAAoD;AAGpD,MAAa,wBAAyB,SAAQ,iCAA4C;IAC/E,IAAI,GAAG,qBAA8B,CAAC;IACtC,MAAM,GAAG,sCAA8B,CAAC;IAEvC,eAAe,CAAC,OAAiC,EAAE,OAAuB;QAClF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;QAE1D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE;YACnD,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,QAAQ;YACjB,MAAM;YACN,QAAQ,EAAE,CAAC,CAAC,KAAK;SAClB,CAAC,CAAC;QAEH,wDAAwD;QACxD,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;QAClD,IAAI,gBAAgB,IAAI,OAAO,gBAAgB,CAAC,kBAAkB,KAAK,UAAU,EAAE,CAAC;YAClF,gBAAgB,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QACjE,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC1C,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,QAAQ;YACjB,MAAM;SACP,CAAC,CAAC;QAEH,2BAA2B;QAC3B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,0BAA0B,EAAE;YAC7C,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,QAAQ;YACjB,MAAM;YACN,KAAK;SACN,CAAC,CAAC;QAEH,eAAe;QACf,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,qBAAqB,EAAE;YAC/C,OAAO;YACP,QAAQ;YACR,MAAM;YACN,KAAK;SACN,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,4DA0CC"}
@@ -8,11 +8,8 @@ exports.AgentsListHandler = void 0;
8
8
  const types_1 = require("../../types");
9
9
  const base_handler_1 = require("./base-handler");
10
10
  class AgentsListHandler extends base_handler_1.BaseMessageHandler {
11
- constructor() {
12
- super(...arguments);
13
- this.type = "agents";
14
- this.schema = types_1.AgentsListMessageSchema;
15
- }
11
+ type = "agents";
12
+ schema = types_1.AgentsListMessageSchema;
16
13
  async handleValidated(message, context) {
17
14
  context.logger.debug("Handling agents list message", {
18
15
  count: message.data.length
@@ -1 +1 @@
1
- {"version":3,"file":"agents-list-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/agents-list-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uCAAyE;AACzE,iDAAoD;AAGpD,MAAa,iBAAkB,SAAQ,iCAAqC;IAA5E;;QACW,SAAI,GAAG,QAAiB,CAAC;QACzB,WAAM,GAAG,+BAAyD,CAAC;IAa9E,CAAC;IAXW,KAAK,CAAC,eAAe,CAC7B,OAA0B,EAC1B,OAAuB;QAEvB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE;YACnD,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM;SAC3B,CAAC,CAAC;QAEH,8CAA8C;QAC9C,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;CACF;AAfD,8CAeC"}
1
+ {"version":3,"file":"agents-list-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/agents-list-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uCAAyE;AACzE,iDAAoD;AAGpD,MAAa,iBAAkB,SAAQ,iCAAqC;IACjE,IAAI,GAAG,QAAiB,CAAC;IACzB,MAAM,GAAG,+BAAyD,CAAC;IAElE,KAAK,CAAC,eAAe,CAC7B,OAA0B,EAC1B,OAAuB;QAEvB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE;YACnD,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM;SAC3B,CAAC,CAAC;QAEH,8CAA8C;QAC9C,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;CACF;AAfD,8CAeC"}
@@ -0,0 +1,439 @@
1
+ /**
2
+ * Handler for all_agents_response messages (Admin only)
3
+ * Processes paginated agent list for admin users
4
+ */
5
+ import { AllAgentsResponse } from "../../types";
6
+ import { BaseMessageHandler } from "./base-handler";
7
+ import { HandlerContext } from "./types";
8
+ export declare class AllAgentsResponseHandler extends BaseMessageHandler<AllAgentsResponse> {
9
+ readonly type: "all_agents_response";
10
+ readonly schema: import("zod").ZodObject<{
11
+ type: import("zod").ZodLiteral<"all_agents_response">;
12
+ request_id: import("zod").ZodOptional<import("zod").ZodString>;
13
+ data: import("zod").ZodObject<{
14
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
15
+ agent_id: import("zod").ZodString;
16
+ agent_name: import("zod").ZodString;
17
+ creator: import("zod").ZodString;
18
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
19
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
20
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
21
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
22
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
23
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
24
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
25
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
26
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
27
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
28
+ agent_id: import("zod").ZodString;
29
+ agent_name: import("zod").ZodString;
30
+ creator: import("zod").ZodString;
31
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
32
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
33
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
34
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
35
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
36
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
37
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
38
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
39
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
40
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
41
+ agent_id: import("zod").ZodString;
42
+ agent_name: import("zod").ZodString;
43
+ creator: import("zod").ZodString;
44
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
45
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
46
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
47
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
48
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
49
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
50
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
51
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
52
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
53
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
54
+ total: import("zod").ZodNumber;
55
+ offset: import("zod").ZodNumber;
56
+ limit: import("zod").ZodNumber;
57
+ has_more: import("zod").ZodBoolean;
58
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
59
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
60
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
61
+ agent_id: import("zod").ZodString;
62
+ agent_name: import("zod").ZodString;
63
+ creator: import("zod").ZodString;
64
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
65
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
66
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
67
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
68
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
69
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
70
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
71
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
72
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
73
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
74
+ agent_id: import("zod").ZodString;
75
+ agent_name: import("zod").ZodString;
76
+ creator: import("zod").ZodString;
77
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
78
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
79
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
80
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
81
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
82
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
83
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
84
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
85
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
86
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
87
+ agent_id: import("zod").ZodString;
88
+ agent_name: import("zod").ZodString;
89
+ creator: import("zod").ZodString;
90
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
91
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
92
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
93
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
94
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
95
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
96
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
97
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
98
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
99
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
100
+ total: import("zod").ZodNumber;
101
+ offset: import("zod").ZodNumber;
102
+ limit: import("zod").ZodNumber;
103
+ has_more: import("zod").ZodBoolean;
104
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
105
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
106
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
107
+ agent_id: import("zod").ZodString;
108
+ agent_name: import("zod").ZodString;
109
+ creator: import("zod").ZodString;
110
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
111
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
112
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
113
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
114
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
115
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
116
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
117
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
118
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
119
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
120
+ agent_id: import("zod").ZodString;
121
+ agent_name: import("zod").ZodString;
122
+ creator: import("zod").ZodString;
123
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
124
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
125
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
126
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
127
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
128
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
129
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
130
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
131
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
132
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
133
+ agent_id: import("zod").ZodString;
134
+ agent_name: import("zod").ZodString;
135
+ creator: import("zod").ZodString;
136
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
137
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
138
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
139
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
140
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
141
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
142
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
143
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
144
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
145
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
146
+ total: import("zod").ZodNumber;
147
+ offset: import("zod").ZodNumber;
148
+ limit: import("zod").ZodNumber;
149
+ has_more: import("zod").ZodBoolean;
150
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
151
+ }, import("zod").ZodTypeAny, "passthrough">>;
152
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
153
+ type: import("zod").ZodLiteral<"all_agents_response">;
154
+ request_id: import("zod").ZodOptional<import("zod").ZodString>;
155
+ data: import("zod").ZodObject<{
156
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
157
+ agent_id: import("zod").ZodString;
158
+ agent_name: import("zod").ZodString;
159
+ creator: import("zod").ZodString;
160
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
161
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
162
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
163
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
164
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
165
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
166
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
167
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
168
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
169
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
170
+ agent_id: import("zod").ZodString;
171
+ agent_name: import("zod").ZodString;
172
+ creator: import("zod").ZodString;
173
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
174
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
175
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
176
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
177
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
178
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
179
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
180
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
181
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
182
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
183
+ agent_id: import("zod").ZodString;
184
+ agent_name: import("zod").ZodString;
185
+ creator: import("zod").ZodString;
186
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
187
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
188
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
189
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
190
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
191
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
192
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
193
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
194
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
195
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
196
+ total: import("zod").ZodNumber;
197
+ offset: import("zod").ZodNumber;
198
+ limit: import("zod").ZodNumber;
199
+ has_more: import("zod").ZodBoolean;
200
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
201
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
202
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
203
+ agent_id: import("zod").ZodString;
204
+ agent_name: import("zod").ZodString;
205
+ creator: import("zod").ZodString;
206
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
207
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
208
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
209
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
210
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
211
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
212
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
213
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
214
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
215
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
216
+ agent_id: import("zod").ZodString;
217
+ agent_name: import("zod").ZodString;
218
+ creator: import("zod").ZodString;
219
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
220
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
221
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
222
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
223
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
224
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
225
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
226
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
227
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
228
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
229
+ agent_id: import("zod").ZodString;
230
+ agent_name: import("zod").ZodString;
231
+ creator: import("zod").ZodString;
232
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
233
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
234
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
235
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
236
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
237
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
238
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
239
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
240
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
241
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
242
+ total: import("zod").ZodNumber;
243
+ offset: import("zod").ZodNumber;
244
+ limit: import("zod").ZodNumber;
245
+ has_more: import("zod").ZodBoolean;
246
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
247
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
248
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
249
+ agent_id: import("zod").ZodString;
250
+ agent_name: import("zod").ZodString;
251
+ creator: import("zod").ZodString;
252
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
253
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
254
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
255
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
256
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
257
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
258
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
259
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
260
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
261
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
262
+ agent_id: import("zod").ZodString;
263
+ agent_name: import("zod").ZodString;
264
+ creator: import("zod").ZodString;
265
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
266
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
267
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
268
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
269
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
270
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
271
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
272
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
273
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
274
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
275
+ agent_id: import("zod").ZodString;
276
+ agent_name: import("zod").ZodString;
277
+ creator: import("zod").ZodString;
278
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
279
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
280
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
281
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
282
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
283
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
284
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
285
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
286
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
287
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
288
+ total: import("zod").ZodNumber;
289
+ offset: import("zod").ZodNumber;
290
+ limit: import("zod").ZodNumber;
291
+ has_more: import("zod").ZodBoolean;
292
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
293
+ }, import("zod").ZodTypeAny, "passthrough">>;
294
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
295
+ type: import("zod").ZodLiteral<"all_agents_response">;
296
+ request_id: import("zod").ZodOptional<import("zod").ZodString>;
297
+ data: import("zod").ZodObject<{
298
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
299
+ agent_id: import("zod").ZodString;
300
+ agent_name: import("zod").ZodString;
301
+ creator: import("zod").ZodString;
302
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
303
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
304
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
305
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
306
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
307
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
308
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
309
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
310
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
311
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
312
+ agent_id: import("zod").ZodString;
313
+ agent_name: import("zod").ZodString;
314
+ creator: import("zod").ZodString;
315
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
316
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
317
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
318
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
319
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
320
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
321
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
322
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
323
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
324
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
325
+ agent_id: import("zod").ZodString;
326
+ agent_name: import("zod").ZodString;
327
+ creator: import("zod").ZodString;
328
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
329
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
330
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
331
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
332
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
333
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
334
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
335
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
336
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
337
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
338
+ total: import("zod").ZodNumber;
339
+ offset: import("zod").ZodNumber;
340
+ limit: import("zod").ZodNumber;
341
+ has_more: import("zod").ZodBoolean;
342
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
343
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
344
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
345
+ agent_id: import("zod").ZodString;
346
+ agent_name: import("zod").ZodString;
347
+ creator: import("zod").ZodString;
348
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
349
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
350
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
351
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
352
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
353
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
354
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
355
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
356
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
357
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
358
+ agent_id: import("zod").ZodString;
359
+ agent_name: import("zod").ZodString;
360
+ creator: import("zod").ZodString;
361
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
362
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
363
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
364
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
365
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
366
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
367
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
368
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
369
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
370
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
371
+ agent_id: import("zod").ZodString;
372
+ agent_name: import("zod").ZodString;
373
+ creator: import("zod").ZodString;
374
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
375
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
376
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
377
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
378
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
379
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
380
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
381
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
382
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
383
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
384
+ total: import("zod").ZodNumber;
385
+ offset: import("zod").ZodNumber;
386
+ limit: import("zod").ZodNumber;
387
+ has_more: import("zod").ZodBoolean;
388
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
389
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
390
+ agents: import("zod").ZodArray<import("zod").ZodObject<{
391
+ agent_id: import("zod").ZodString;
392
+ agent_name: import("zod").ZodString;
393
+ creator: import("zod").ZodString;
394
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
395
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
396
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
397
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
398
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
399
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
400
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
401
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
402
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
403
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
404
+ agent_id: import("zod").ZodString;
405
+ agent_name: import("zod").ZodString;
406
+ creator: import("zod").ZodString;
407
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
408
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
409
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
410
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
411
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
412
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
413
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
414
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
415
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
416
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
417
+ agent_id: import("zod").ZodString;
418
+ agent_name: import("zod").ZodString;
419
+ creator: import("zod").ZodString;
420
+ creator_name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
421
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
422
+ image_url: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
423
+ is_online: import("zod").ZodOptional<import("zod").ZodBoolean>;
424
+ is_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
425
+ is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
426
+ is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
427
+ is_banned: import("zod").ZodOptional<import("zod").ZodBoolean>;
428
+ created_at: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
429
+ }, import("zod").ZodTypeAny, "passthrough">>, "many">;
430
+ total: import("zod").ZodNumber;
431
+ offset: import("zod").ZodNumber;
432
+ limit: import("zod").ZodNumber;
433
+ has_more: import("zod").ZodBoolean;
434
+ filter: import("zod").ZodOptional<import("zod").ZodString>;
435
+ }, import("zod").ZodTypeAny, "passthrough">>;
436
+ }, import("zod").ZodTypeAny, "passthrough">>;
437
+ protected handleValidated(message: AllAgentsResponse, context: HandlerContext): void;
438
+ }
439
+ //# sourceMappingURL=all-agents-response-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all-agents-response-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/all-agents-response-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAA2B,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,wBAAyB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IACjF,QAAQ,CAAC,IAAI,EAAG,qBAAqB,CAAU;IAC/C,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA2B;IAE1C,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CAyBrF"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * Handler for all_agents_response messages (Admin only)
4
+ * Processes paginated agent list for admin users
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.AllAgentsResponseHandler = void 0;
8
+ const types_1 = require("../../types");
9
+ const base_handler_1 = require("./base-handler");
10
+ class AllAgentsResponseHandler extends base_handler_1.BaseMessageHandler {
11
+ type = "all_agents_response";
12
+ schema = types_1.AllAgentsResponseSchema;
13
+ handleValidated(message, context) {
14
+ const { agents, total, offset, has_more, filter } = message.data;
15
+ context.logger.debug("Handling all_agents_response", {
16
+ count: agents.length,
17
+ total,
18
+ offset,
19
+ hasMore: has_more
20
+ });
21
+ // Delegate to admin manager if available
22
+ const adminManager = context.adminManager;
23
+ if (adminManager && typeof adminManager.handleAllAgentsResponse === "function") {
24
+ adminManager.handleAllAgentsResponse(message.data, message.request_id);
25
+ }
26
+ context.logger.info("All agents response received", {
27
+ count: agents.length,
28
+ total,
29
+ filter
30
+ });
31
+ // Send webhook
32
+ this.sendWebhook(context, "all_agents_response", message.data);
33
+ }
34
+ }
35
+ exports.AllAgentsResponseHandler = AllAgentsResponseHandler;
36
+ //# sourceMappingURL=all-agents-response-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all-agents-response-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/all-agents-response-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAAyE;AACzE,iDAAoD;AAGpD,MAAa,wBAAyB,SAAQ,iCAAqC;IACxE,IAAI,GAAG,qBAA8B,CAAC;IACtC,MAAM,GAAG,+BAAuB,CAAC;IAEhC,eAAe,CAAC,OAA0B,EAAE,OAAuB;QAC3E,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;QAEjE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE;YACnD,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,KAAK;YACL,MAAM;YACN,OAAO,EAAE,QAAQ;SAClB,CAAC,CAAC;QAEH,yCAAyC;QACzC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;QAC1C,IAAI,YAAY,IAAI,OAAO,YAAY,CAAC,uBAAuB,KAAK,UAAU,EAAE,CAAC;YAC/E,YAAY,CAAC,uBAAuB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;QACzE,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,8BAA8B,EAAE;YAClD,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,KAAK;YACL,MAAM;SACP,CAAC,CAAC;QAEH,eAAe;QACf,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;CACF;AA7BD,4DA6BC"}