@teneo-protocol/sdk 1.0.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 (281) hide show
  1. package/.dockerignore +14 -0
  2. package/.env.test.example +14 -0
  3. package/.eslintrc.json +26 -0
  4. package/.github/workflows/claude-code-review.yml +78 -0
  5. package/.github/workflows/claude-reviewer.yml +64 -0
  6. package/.github/workflows/publish-npm.yml +38 -0
  7. package/.github/workflows/push-to-main.yml +23 -0
  8. package/.node-version +1 -0
  9. package/.prettierrc +11 -0
  10. package/Dockerfile +25 -0
  11. package/LICENCE +661 -0
  12. package/README.md +709 -0
  13. package/dist/constants.d.ts +42 -0
  14. package/dist/constants.d.ts.map +1 -0
  15. package/dist/constants.js +45 -0
  16. package/dist/constants.js.map +1 -0
  17. package/dist/core/websocket-client.d.ts +261 -0
  18. package/dist/core/websocket-client.d.ts.map +1 -0
  19. package/dist/core/websocket-client.js +875 -0
  20. package/dist/core/websocket-client.js.map +1 -0
  21. package/dist/formatters/response-formatter.d.ts +354 -0
  22. package/dist/formatters/response-formatter.d.ts.map +1 -0
  23. package/dist/formatters/response-formatter.js +575 -0
  24. package/dist/formatters/response-formatter.js.map +1 -0
  25. package/dist/handlers/message-handler-registry.d.ts +155 -0
  26. package/dist/handlers/message-handler-registry.d.ts.map +1 -0
  27. package/dist/handlers/message-handler-registry.js +216 -0
  28. package/dist/handlers/message-handler-registry.js.map +1 -0
  29. package/dist/handlers/message-handlers/agent-selected-handler.d.ts +112 -0
  30. package/dist/handlers/message-handlers/agent-selected-handler.d.ts.map +1 -0
  31. package/dist/handlers/message-handlers/agent-selected-handler.js +40 -0
  32. package/dist/handlers/message-handlers/agent-selected-handler.js.map +1 -0
  33. package/dist/handlers/message-handlers/agents-list-handler.d.ts +14 -0
  34. package/dist/handlers/message-handlers/agents-list-handler.d.ts.map +1 -0
  35. package/dist/handlers/message-handlers/agents-list-handler.js +25 -0
  36. package/dist/handlers/message-handlers/agents-list-handler.js.map +1 -0
  37. package/dist/handlers/message-handlers/auth-error-handler.d.ts +71 -0
  38. package/dist/handlers/message-handlers/auth-error-handler.d.ts.map +1 -0
  39. package/dist/handlers/message-handlers/auth-error-handler.js +30 -0
  40. package/dist/handlers/message-handlers/auth-error-handler.js.map +1 -0
  41. package/dist/handlers/message-handlers/auth-message-handler.d.ts +18 -0
  42. package/dist/handlers/message-handlers/auth-message-handler.d.ts.map +1 -0
  43. package/dist/handlers/message-handlers/auth-message-handler.js +60 -0
  44. package/dist/handlers/message-handlers/auth-message-handler.js.map +1 -0
  45. package/dist/handlers/message-handlers/auth-required-handler.d.ts +76 -0
  46. package/dist/handlers/message-handlers/auth-required-handler.d.ts.map +1 -0
  47. package/dist/handlers/message-handlers/auth-required-handler.js +23 -0
  48. package/dist/handlers/message-handlers/auth-required-handler.js.map +1 -0
  49. package/dist/handlers/message-handlers/auth-success-handler.d.ts +18 -0
  50. package/dist/handlers/message-handlers/auth-success-handler.d.ts.map +1 -0
  51. package/dist/handlers/message-handlers/auth-success-handler.js +51 -0
  52. package/dist/handlers/message-handlers/auth-success-handler.js.map +1 -0
  53. package/dist/handlers/message-handlers/base-handler.d.ts +55 -0
  54. package/dist/handlers/message-handlers/base-handler.d.ts.map +1 -0
  55. package/dist/handlers/message-handlers/base-handler.js +83 -0
  56. package/dist/handlers/message-handlers/base-handler.js.map +1 -0
  57. package/dist/handlers/message-handlers/challenge-handler.d.ts +73 -0
  58. package/dist/handlers/message-handlers/challenge-handler.d.ts.map +1 -0
  59. package/dist/handlers/message-handlers/challenge-handler.js +47 -0
  60. package/dist/handlers/message-handlers/challenge-handler.js.map +1 -0
  61. package/dist/handlers/message-handlers/error-message-handler.d.ts +76 -0
  62. package/dist/handlers/message-handlers/error-message-handler.d.ts.map +1 -0
  63. package/dist/handlers/message-handlers/error-message-handler.js +29 -0
  64. package/dist/handlers/message-handlers/error-message-handler.js.map +1 -0
  65. package/dist/handlers/message-handlers/index.d.ts +28 -0
  66. package/dist/handlers/message-handlers/index.d.ts.map +1 -0
  67. package/dist/handlers/message-handlers/index.js +100 -0
  68. package/dist/handlers/message-handlers/index.js.map +1 -0
  69. package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts +122 -0
  70. package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts.map +1 -0
  71. package/dist/handlers/message-handlers/list-rooms-response-handler.js +30 -0
  72. package/dist/handlers/message-handlers/list-rooms-response-handler.js.map +1 -0
  73. package/dist/handlers/message-handlers/ping-pong-handler.d.ts +104 -0
  74. package/dist/handlers/message-handlers/ping-pong-handler.d.ts.map +1 -0
  75. package/dist/handlers/message-handlers/ping-pong-handler.js +36 -0
  76. package/dist/handlers/message-handlers/ping-pong-handler.js.map +1 -0
  77. package/dist/handlers/message-handlers/regular-message-handler.d.ts +56 -0
  78. package/dist/handlers/message-handlers/regular-message-handler.d.ts.map +1 -0
  79. package/dist/handlers/message-handlers/regular-message-handler.js +59 -0
  80. package/dist/handlers/message-handlers/regular-message-handler.js.map +1 -0
  81. package/dist/handlers/message-handlers/subscribe-response-handler.d.ts +81 -0
  82. package/dist/handlers/message-handlers/subscribe-response-handler.d.ts.map +1 -0
  83. package/dist/handlers/message-handlers/subscribe-response-handler.js +48 -0
  84. package/dist/handlers/message-handlers/subscribe-response-handler.js.map +1 -0
  85. package/dist/handlers/message-handlers/task-response-handler.d.ts +14 -0
  86. package/dist/handlers/message-handlers/task-response-handler.d.ts.map +1 -0
  87. package/dist/handlers/message-handlers/task-response-handler.js +44 -0
  88. package/dist/handlers/message-handlers/task-response-handler.js.map +1 -0
  89. package/dist/handlers/message-handlers/types.d.ts +51 -0
  90. package/dist/handlers/message-handlers/types.d.ts.map +1 -0
  91. package/dist/handlers/message-handlers/types.js +7 -0
  92. package/dist/handlers/message-handlers/types.js.map +1 -0
  93. package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts +81 -0
  94. package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts.map +1 -0
  95. package/dist/handlers/message-handlers/unsubscribe-response-handler.js +48 -0
  96. package/dist/handlers/message-handlers/unsubscribe-response-handler.js.map +1 -0
  97. package/dist/handlers/webhook-handler.d.ts +202 -0
  98. package/dist/handlers/webhook-handler.d.ts.map +1 -0
  99. package/dist/handlers/webhook-handler.js +511 -0
  100. package/dist/handlers/webhook-handler.js.map +1 -0
  101. package/dist/index.d.ts +71 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +217 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/managers/agent-registry.d.ts +173 -0
  106. package/dist/managers/agent-registry.d.ts.map +1 -0
  107. package/dist/managers/agent-registry.js +310 -0
  108. package/dist/managers/agent-registry.js.map +1 -0
  109. package/dist/managers/connection-manager.d.ts +134 -0
  110. package/dist/managers/connection-manager.d.ts.map +1 -0
  111. package/dist/managers/connection-manager.js +176 -0
  112. package/dist/managers/connection-manager.js.map +1 -0
  113. package/dist/managers/index.d.ts +9 -0
  114. package/dist/managers/index.d.ts.map +1 -0
  115. package/dist/managers/index.js +16 -0
  116. package/dist/managers/index.js.map +1 -0
  117. package/dist/managers/message-router.d.ts +112 -0
  118. package/dist/managers/message-router.d.ts.map +1 -0
  119. package/dist/managers/message-router.js +260 -0
  120. package/dist/managers/message-router.js.map +1 -0
  121. package/dist/managers/room-manager.d.ts +165 -0
  122. package/dist/managers/room-manager.d.ts.map +1 -0
  123. package/dist/managers/room-manager.js +227 -0
  124. package/dist/managers/room-manager.js.map +1 -0
  125. package/dist/teneo-sdk.d.ts +703 -0
  126. package/dist/teneo-sdk.d.ts.map +1 -0
  127. package/dist/teneo-sdk.js +907 -0
  128. package/dist/teneo-sdk.js.map +1 -0
  129. package/dist/types/config.d.ts +1047 -0
  130. package/dist/types/config.d.ts.map +1 -0
  131. package/dist/types/config.js +720 -0
  132. package/dist/types/config.js.map +1 -0
  133. package/dist/types/error-codes.d.ts +29 -0
  134. package/dist/types/error-codes.d.ts.map +1 -0
  135. package/dist/types/error-codes.js +41 -0
  136. package/dist/types/error-codes.js.map +1 -0
  137. package/dist/types/events.d.ts +616 -0
  138. package/dist/types/events.d.ts.map +1 -0
  139. package/dist/types/events.js +261 -0
  140. package/dist/types/events.js.map +1 -0
  141. package/dist/types/health.d.ts +40 -0
  142. package/dist/types/health.d.ts.map +1 -0
  143. package/dist/types/health.js +6 -0
  144. package/dist/types/health.js.map +1 -0
  145. package/dist/types/index.d.ts +10 -0
  146. package/dist/types/index.d.ts.map +1 -0
  147. package/dist/types/index.js +123 -0
  148. package/dist/types/index.js.map +1 -0
  149. package/dist/types/messages.d.ts +3734 -0
  150. package/dist/types/messages.d.ts.map +1 -0
  151. package/dist/types/messages.js +482 -0
  152. package/dist/types/messages.js.map +1 -0
  153. package/dist/types/validation.d.ts +81 -0
  154. package/dist/types/validation.d.ts.map +1 -0
  155. package/dist/types/validation.js +115 -0
  156. package/dist/types/validation.js.map +1 -0
  157. package/dist/utils/bounded-queue.d.ts +127 -0
  158. package/dist/utils/bounded-queue.d.ts.map +1 -0
  159. package/dist/utils/bounded-queue.js +181 -0
  160. package/dist/utils/bounded-queue.js.map +1 -0
  161. package/dist/utils/circuit-breaker.d.ts +141 -0
  162. package/dist/utils/circuit-breaker.d.ts.map +1 -0
  163. package/dist/utils/circuit-breaker.js +215 -0
  164. package/dist/utils/circuit-breaker.js.map +1 -0
  165. package/dist/utils/deduplication-cache.d.ts +110 -0
  166. package/dist/utils/deduplication-cache.d.ts.map +1 -0
  167. package/dist/utils/deduplication-cache.js +177 -0
  168. package/dist/utils/deduplication-cache.js.map +1 -0
  169. package/dist/utils/event-waiter.d.ts +101 -0
  170. package/dist/utils/event-waiter.d.ts.map +1 -0
  171. package/dist/utils/event-waiter.js +118 -0
  172. package/dist/utils/event-waiter.js.map +1 -0
  173. package/dist/utils/index.d.ts +51 -0
  174. package/dist/utils/index.d.ts.map +1 -0
  175. package/dist/utils/index.js +72 -0
  176. package/dist/utils/index.js.map +1 -0
  177. package/dist/utils/logger.d.ts +22 -0
  178. package/dist/utils/logger.d.ts.map +1 -0
  179. package/dist/utils/logger.js +91 -0
  180. package/dist/utils/logger.js.map +1 -0
  181. package/dist/utils/rate-limiter.d.ts +122 -0
  182. package/dist/utils/rate-limiter.d.ts.map +1 -0
  183. package/dist/utils/rate-limiter.js +190 -0
  184. package/dist/utils/rate-limiter.js.map +1 -0
  185. package/dist/utils/retry-policy.d.ts +191 -0
  186. package/dist/utils/retry-policy.d.ts.map +1 -0
  187. package/dist/utils/retry-policy.js +225 -0
  188. package/dist/utils/retry-policy.js.map +1 -0
  189. package/dist/utils/secure-private-key.d.ts +113 -0
  190. package/dist/utils/secure-private-key.d.ts.map +1 -0
  191. package/dist/utils/secure-private-key.js +188 -0
  192. package/dist/utils/secure-private-key.js.map +1 -0
  193. package/dist/utils/signature-verifier.d.ts +143 -0
  194. package/dist/utils/signature-verifier.d.ts.map +1 -0
  195. package/dist/utils/signature-verifier.js +238 -0
  196. package/dist/utils/signature-verifier.js.map +1 -0
  197. package/dist/utils/ssrf-validator.d.ts +36 -0
  198. package/dist/utils/ssrf-validator.d.ts.map +1 -0
  199. package/dist/utils/ssrf-validator.js +195 -0
  200. package/dist/utils/ssrf-validator.js.map +1 -0
  201. package/examples/.env.example +17 -0
  202. package/examples/basic-usage.ts +211 -0
  203. package/examples/production-dashboard/.env.example +153 -0
  204. package/examples/production-dashboard/package.json +39 -0
  205. package/examples/production-dashboard/public/dashboard.html +642 -0
  206. package/examples/production-dashboard/server.ts +753 -0
  207. package/examples/webhook-integration.ts +239 -0
  208. package/examples/x-influencer-battle-redesign.html +1065 -0
  209. package/examples/x-influencer-battle-server.ts +217 -0
  210. package/examples/x-influencer-battle.html +787 -0
  211. package/package.json +65 -0
  212. package/src/constants.ts +43 -0
  213. package/src/core/websocket-client.test.ts +512 -0
  214. package/src/core/websocket-client.ts +1056 -0
  215. package/src/formatters/response-formatter.test.ts +571 -0
  216. package/src/formatters/response-formatter.ts +677 -0
  217. package/src/handlers/message-handler-registry.ts +239 -0
  218. package/src/handlers/message-handlers/agent-selected-handler.ts +40 -0
  219. package/src/handlers/message-handlers/agents-list-handler.ts +26 -0
  220. package/src/handlers/message-handlers/auth-error-handler.ts +31 -0
  221. package/src/handlers/message-handlers/auth-message-handler.ts +66 -0
  222. package/src/handlers/message-handlers/auth-required-handler.ts +23 -0
  223. package/src/handlers/message-handlers/auth-success-handler.ts +57 -0
  224. package/src/handlers/message-handlers/base-handler.ts +101 -0
  225. package/src/handlers/message-handlers/challenge-handler.ts +57 -0
  226. package/src/handlers/message-handlers/error-message-handler.ts +27 -0
  227. package/src/handlers/message-handlers/index.ts +77 -0
  228. package/src/handlers/message-handlers/list-rooms-response-handler.ts +28 -0
  229. package/src/handlers/message-handlers/ping-pong-handler.ts +30 -0
  230. package/src/handlers/message-handlers/regular-message-handler.ts +65 -0
  231. package/src/handlers/message-handlers/subscribe-response-handler.ts +47 -0
  232. package/src/handlers/message-handlers/task-response-handler.ts +45 -0
  233. package/src/handlers/message-handlers/types.ts +77 -0
  234. package/src/handlers/message-handlers/unsubscribe-response-handler.ts +47 -0
  235. package/src/handlers/webhook-handler.test.ts +789 -0
  236. package/src/handlers/webhook-handler.ts +576 -0
  237. package/src/index.ts +269 -0
  238. package/src/managers/agent-registry.test.ts +466 -0
  239. package/src/managers/agent-registry.ts +347 -0
  240. package/src/managers/connection-manager.ts +195 -0
  241. package/src/managers/index.ts +9 -0
  242. package/src/managers/message-router.ts +349 -0
  243. package/src/managers/room-manager.ts +248 -0
  244. package/src/teneo-sdk.ts +1022 -0
  245. package/src/types/config.test.ts +325 -0
  246. package/src/types/config.ts +799 -0
  247. package/src/types/error-codes.ts +44 -0
  248. package/src/types/events.test.ts +302 -0
  249. package/src/types/events.ts +382 -0
  250. package/src/types/health.ts +46 -0
  251. package/src/types/index.ts +199 -0
  252. package/src/types/messages.test.ts +660 -0
  253. package/src/types/messages.ts +570 -0
  254. package/src/types/validation.ts +123 -0
  255. package/src/utils/bounded-queue.test.ts +356 -0
  256. package/src/utils/bounded-queue.ts +205 -0
  257. package/src/utils/circuit-breaker.test.ts +394 -0
  258. package/src/utils/circuit-breaker.ts +262 -0
  259. package/src/utils/deduplication-cache.test.ts +380 -0
  260. package/src/utils/deduplication-cache.ts +198 -0
  261. package/src/utils/event-waiter.test.ts +381 -0
  262. package/src/utils/event-waiter.ts +172 -0
  263. package/src/utils/index.ts +74 -0
  264. package/src/utils/logger.ts +87 -0
  265. package/src/utils/rate-limiter.test.ts +341 -0
  266. package/src/utils/rate-limiter.ts +211 -0
  267. package/src/utils/retry-policy.test.ts +558 -0
  268. package/src/utils/retry-policy.ts +272 -0
  269. package/src/utils/secure-private-key.test.ts +356 -0
  270. package/src/utils/secure-private-key.ts +205 -0
  271. package/src/utils/signature-verifier.test.ts +464 -0
  272. package/src/utils/signature-verifier.ts +298 -0
  273. package/src/utils/ssrf-validator.test.ts +372 -0
  274. package/src/utils/ssrf-validator.ts +224 -0
  275. package/tests/integration/real-server.test.ts +740 -0
  276. package/tests/integration/websocket.test.ts +381 -0
  277. package/tests/integration-setup.ts +16 -0
  278. package/tests/setup.ts +34 -0
  279. package/tsconfig.json +32 -0
  280. package/vitest.config.ts +42 -0
  281. package/vitest.integration.config.ts +23 -0
@@ -0,0 +1,3734 @@
1
+ /**
2
+ * Core message schemas for Teneo Protocol SDK using Zod
3
+ * Provides runtime validation and TypeScript type inference
4
+ */
5
+ import { z } from "zod";
6
+ export declare const MessageTypeSchema: z.ZodEnum<["request_challenge", "challenge", "check_cached_auth", "auth", "auth_required", "auth_success", "auth_error", "register", "registration_success", "message", "task", "task_response", "agent_selected", "agents", "error", "ping", "pong", "capabilities", "subscribe", "unsubscribe", "list_rooms"]>;
7
+ export declare const ContentTypeSchema: z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>;
8
+ export declare const ClientTypeSchema: z.ZodEnum<["user", "agent", "coordinator"]>;
9
+ export declare const AgentTypeSchema: z.ZodEnum<["command", "nlp", "mcp"]>;
10
+ export declare const AgentStatusSchema: z.ZodEnum<["online", "offline"]>;
11
+ export declare const CapabilitySchema: z.ZodObject<{
12
+ name: z.ZodString;
13
+ description: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ description: string;
17
+ }, {
18
+ name: string;
19
+ description: string;
20
+ }>;
21
+ export declare const CommandSchema: z.ZodObject<{
22
+ trigger: z.ZodString;
23
+ argument: z.ZodOptional<z.ZodString>;
24
+ description: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ description: string;
27
+ trigger: string;
28
+ argument?: string | undefined;
29
+ }, {
30
+ description: string;
31
+ trigger: string;
32
+ argument?: string | undefined;
33
+ }>;
34
+ export declare const RoomSchema: z.ZodObject<{
35
+ id: z.ZodString;
36
+ name: z.ZodString;
37
+ description: z.ZodOptional<z.ZodString>;
38
+ is_public: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
39
+ is_active: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
40
+ created_by: z.ZodString;
41
+ created_at: z.ZodString;
42
+ updated_at: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ name: string;
45
+ id: string;
46
+ is_public: boolean;
47
+ is_active: boolean;
48
+ created_by: string;
49
+ created_at: string;
50
+ updated_at: string;
51
+ description?: string | undefined;
52
+ }, {
53
+ name: string;
54
+ id: string;
55
+ is_public: string | boolean;
56
+ is_active: string | boolean;
57
+ created_by: string;
58
+ created_at: string;
59
+ updated_at: string;
60
+ description?: string | undefined;
61
+ }>;
62
+ export declare const AgentSchema: z.ZodObject<{
63
+ id: z.ZodString;
64
+ name: z.ZodString;
65
+ description: z.ZodOptional<z.ZodString>;
66
+ room: z.ZodOptional<z.ZodString>;
67
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
+ name: z.ZodString;
69
+ description: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ name: string;
72
+ description: string;
73
+ }, {
74
+ name: string;
75
+ description: string;
76
+ }>, "many">>;
77
+ commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
+ trigger: z.ZodString;
79
+ argument: z.ZodOptional<z.ZodString>;
80
+ description: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ description: string;
83
+ trigger: string;
84
+ argument?: string | undefined;
85
+ }, {
86
+ description: string;
87
+ trigger: string;
88
+ argument?: string | undefined;
89
+ }>, "many">>;
90
+ status: z.ZodEnum<["online", "offline"]>;
91
+ image: z.ZodOptional<z.ZodString>;
92
+ agentType: z.ZodOptional<z.ZodEnum<["command", "nlp", "mcp"]>>;
93
+ nlpFallback: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
94
+ webhookUrl: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ status: "online" | "offline";
97
+ name: string;
98
+ id: string;
99
+ capabilities?: {
100
+ name: string;
101
+ description: string;
102
+ }[] | undefined;
103
+ description?: string | undefined;
104
+ room?: string | undefined;
105
+ commands?: {
106
+ description: string;
107
+ trigger: string;
108
+ argument?: string | undefined;
109
+ }[] | undefined;
110
+ image?: string | undefined;
111
+ agentType?: "command" | "nlp" | "mcp" | undefined;
112
+ nlpFallback?: boolean | undefined;
113
+ webhookUrl?: string | undefined;
114
+ }, {
115
+ status: "online" | "offline";
116
+ name: string;
117
+ id: string;
118
+ capabilities?: {
119
+ name: string;
120
+ description: string;
121
+ }[] | undefined;
122
+ description?: string | undefined;
123
+ room?: string | undefined;
124
+ commands?: {
125
+ description: string;
126
+ trigger: string;
127
+ argument?: string | undefined;
128
+ }[] | undefined;
129
+ image?: string | undefined;
130
+ agentType?: "command" | "nlp" | "mcp" | undefined;
131
+ nlpFallback?: string | boolean | undefined;
132
+ webhookUrl?: string | undefined;
133
+ }>;
134
+ export declare const BaseMessageSchema: z.ZodObject<{
135
+ type: z.ZodEnum<["request_challenge", "challenge", "check_cached_auth", "auth", "auth_required", "auth_success", "auth_error", "register", "registration_success", "message", "task", "task_response", "agent_selected", "agents", "error", "ping", "pong", "capabilities", "subscribe", "unsubscribe", "list_rooms"]>;
136
+ content: z.ZodOptional<z.ZodAny>;
137
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
138
+ from: z.ZodOptional<z.ZodString>;
139
+ to: z.ZodOptional<z.ZodString>;
140
+ room: z.ZodOptional<z.ZodString>;
141
+ timestamp: z.ZodOptional<z.ZodString>;
142
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
143
+ signature: z.ZodOptional<z.ZodString>;
144
+ publicKey: z.ZodOptional<z.ZodString>;
145
+ reasoning: z.ZodOptional<z.ZodString>;
146
+ task_id: z.ZodOptional<z.ZodString>;
147
+ id: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: "message" | "request_challenge" | "challenge" | "check_cached_auth" | "auth" | "auth_required" | "auth_success" | "auth_error" | "register" | "registration_success" | "task" | "task_response" | "agent_selected" | "agents" | "error" | "ping" | "pong" | "capabilities" | "subscribe" | "unsubscribe" | "list_rooms";
150
+ id?: string | undefined;
151
+ room?: string | undefined;
152
+ content?: any;
153
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
154
+ from?: string | undefined;
155
+ to?: string | undefined;
156
+ timestamp?: string | undefined;
157
+ data?: Record<string, any> | undefined;
158
+ signature?: string | undefined;
159
+ publicKey?: string | undefined;
160
+ reasoning?: string | undefined;
161
+ task_id?: string | undefined;
162
+ }, {
163
+ type: "message" | "request_challenge" | "challenge" | "check_cached_auth" | "auth" | "auth_required" | "auth_success" | "auth_error" | "register" | "registration_success" | "task" | "task_response" | "agent_selected" | "agents" | "error" | "ping" | "pong" | "capabilities" | "subscribe" | "unsubscribe" | "list_rooms";
164
+ id?: string | undefined;
165
+ room?: string | undefined;
166
+ content?: any;
167
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
168
+ from?: string | undefined;
169
+ to?: string | undefined;
170
+ timestamp?: string | undefined;
171
+ data?: Record<string, any> | undefined;
172
+ signature?: string | undefined;
173
+ publicKey?: string | undefined;
174
+ reasoning?: string | undefined;
175
+ task_id?: string | undefined;
176
+ }>;
177
+ export declare const RequestChallengeMessageSchema: z.ZodObject<{
178
+ content: z.ZodOptional<z.ZodAny>;
179
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
180
+ from: z.ZodOptional<z.ZodString>;
181
+ to: z.ZodOptional<z.ZodString>;
182
+ room: z.ZodOptional<z.ZodString>;
183
+ timestamp: z.ZodOptional<z.ZodString>;
184
+ signature: z.ZodOptional<z.ZodString>;
185
+ publicKey: z.ZodOptional<z.ZodString>;
186
+ reasoning: z.ZodOptional<z.ZodString>;
187
+ task_id: z.ZodOptional<z.ZodString>;
188
+ id: z.ZodOptional<z.ZodString>;
189
+ } & {
190
+ type: z.ZodLiteral<"request_challenge">;
191
+ data: z.ZodObject<{
192
+ userType: z.ZodEnum<["user", "agent", "coordinator"]>;
193
+ address: z.ZodOptional<z.ZodString>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ userType: "user" | "agent" | "coordinator";
196
+ address?: string | undefined;
197
+ }, {
198
+ userType: "user" | "agent" | "coordinator";
199
+ address?: string | undefined;
200
+ }>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ type: "request_challenge";
203
+ data: {
204
+ userType: "user" | "agent" | "coordinator";
205
+ address?: string | undefined;
206
+ };
207
+ id?: string | undefined;
208
+ room?: string | undefined;
209
+ content?: any;
210
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
211
+ from?: string | undefined;
212
+ to?: string | undefined;
213
+ timestamp?: string | undefined;
214
+ signature?: string | undefined;
215
+ publicKey?: string | undefined;
216
+ reasoning?: string | undefined;
217
+ task_id?: string | undefined;
218
+ }, {
219
+ type: "request_challenge";
220
+ data: {
221
+ userType: "user" | "agent" | "coordinator";
222
+ address?: string | undefined;
223
+ };
224
+ id?: string | undefined;
225
+ room?: string | undefined;
226
+ content?: any;
227
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
228
+ from?: string | undefined;
229
+ to?: string | undefined;
230
+ timestamp?: string | undefined;
231
+ signature?: string | undefined;
232
+ publicKey?: string | undefined;
233
+ reasoning?: string | undefined;
234
+ task_id?: string | undefined;
235
+ }>;
236
+ export declare const ChallengeMessageSchema: z.ZodObject<{
237
+ content: z.ZodOptional<z.ZodAny>;
238
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
239
+ from: z.ZodOptional<z.ZodString>;
240
+ to: z.ZodOptional<z.ZodString>;
241
+ room: z.ZodOptional<z.ZodString>;
242
+ timestamp: z.ZodOptional<z.ZodString>;
243
+ signature: z.ZodOptional<z.ZodString>;
244
+ publicKey: z.ZodOptional<z.ZodString>;
245
+ reasoning: z.ZodOptional<z.ZodString>;
246
+ task_id: z.ZodOptional<z.ZodString>;
247
+ id: z.ZodOptional<z.ZodString>;
248
+ } & {
249
+ type: z.ZodLiteral<"challenge">;
250
+ data: z.ZodObject<{
251
+ challenge: z.ZodString;
252
+ timestamp: z.ZodNumber;
253
+ }, "strip", z.ZodTypeAny, {
254
+ challenge: string;
255
+ timestamp: number;
256
+ }, {
257
+ challenge: string;
258
+ timestamp: number;
259
+ }>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ type: "challenge";
262
+ data: {
263
+ challenge: string;
264
+ timestamp: number;
265
+ };
266
+ id?: string | undefined;
267
+ room?: string | undefined;
268
+ content?: any;
269
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
270
+ from?: string | undefined;
271
+ to?: string | undefined;
272
+ timestamp?: string | undefined;
273
+ signature?: string | undefined;
274
+ publicKey?: string | undefined;
275
+ reasoning?: string | undefined;
276
+ task_id?: string | undefined;
277
+ }, {
278
+ type: "challenge";
279
+ data: {
280
+ challenge: string;
281
+ timestamp: number;
282
+ };
283
+ id?: string | undefined;
284
+ room?: string | undefined;
285
+ content?: any;
286
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
287
+ from?: string | undefined;
288
+ to?: string | undefined;
289
+ timestamp?: string | undefined;
290
+ signature?: string | undefined;
291
+ publicKey?: string | undefined;
292
+ reasoning?: string | undefined;
293
+ task_id?: string | undefined;
294
+ }>;
295
+ export declare const CheckCachedAuthMessageSchema: z.ZodObject<{
296
+ content: z.ZodOptional<z.ZodAny>;
297
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
298
+ from: z.ZodOptional<z.ZodString>;
299
+ to: z.ZodOptional<z.ZodString>;
300
+ room: z.ZodOptional<z.ZodString>;
301
+ timestamp: z.ZodOptional<z.ZodString>;
302
+ signature: z.ZodOptional<z.ZodString>;
303
+ publicKey: z.ZodOptional<z.ZodString>;
304
+ reasoning: z.ZodOptional<z.ZodString>;
305
+ task_id: z.ZodOptional<z.ZodString>;
306
+ id: z.ZodOptional<z.ZodString>;
307
+ } & {
308
+ type: z.ZodLiteral<"check_cached_auth">;
309
+ data: z.ZodObject<{
310
+ address: z.ZodString;
311
+ }, "strip", z.ZodTypeAny, {
312
+ address: string;
313
+ }, {
314
+ address: string;
315
+ }>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ type: "check_cached_auth";
318
+ data: {
319
+ address: string;
320
+ };
321
+ id?: string | undefined;
322
+ room?: string | undefined;
323
+ content?: any;
324
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
325
+ from?: string | undefined;
326
+ to?: string | undefined;
327
+ timestamp?: string | undefined;
328
+ signature?: string | undefined;
329
+ publicKey?: string | undefined;
330
+ reasoning?: string | undefined;
331
+ task_id?: string | undefined;
332
+ }, {
333
+ type: "check_cached_auth";
334
+ data: {
335
+ address: string;
336
+ };
337
+ id?: string | undefined;
338
+ room?: string | undefined;
339
+ content?: any;
340
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
341
+ from?: string | undefined;
342
+ to?: string | undefined;
343
+ timestamp?: string | undefined;
344
+ signature?: string | undefined;
345
+ publicKey?: string | undefined;
346
+ reasoning?: string | undefined;
347
+ task_id?: string | undefined;
348
+ }>;
349
+ export declare const AuthRequiredMessageSchema: z.ZodObject<{
350
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
351
+ to: z.ZodOptional<z.ZodString>;
352
+ room: z.ZodOptional<z.ZodString>;
353
+ timestamp: z.ZodOptional<z.ZodString>;
354
+ signature: z.ZodOptional<z.ZodString>;
355
+ publicKey: z.ZodOptional<z.ZodString>;
356
+ reasoning: z.ZodOptional<z.ZodString>;
357
+ task_id: z.ZodOptional<z.ZodString>;
358
+ id: z.ZodOptional<z.ZodString>;
359
+ } & {
360
+ type: z.ZodLiteral<"auth_required">;
361
+ content: z.ZodOptional<z.ZodString>;
362
+ from: z.ZodOptional<z.ZodLiteral<"system">>;
363
+ data: z.ZodOptional<z.ZodObject<{
364
+ cache_ttl_hours: z.ZodOptional<z.ZodNumber>;
365
+ supported_auth_methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
366
+ supports_cache_check: z.ZodOptional<z.ZodBoolean>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ cache_ttl_hours?: number | undefined;
369
+ supported_auth_methods?: string[] | undefined;
370
+ supports_cache_check?: boolean | undefined;
371
+ }, {
372
+ cache_ttl_hours?: number | undefined;
373
+ supported_auth_methods?: string[] | undefined;
374
+ supports_cache_check?: boolean | undefined;
375
+ }>>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ type: "auth_required";
378
+ id?: string | undefined;
379
+ room?: string | undefined;
380
+ content?: string | undefined;
381
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
382
+ from?: "system" | undefined;
383
+ to?: string | undefined;
384
+ timestamp?: string | undefined;
385
+ data?: {
386
+ cache_ttl_hours?: number | undefined;
387
+ supported_auth_methods?: string[] | undefined;
388
+ supports_cache_check?: boolean | undefined;
389
+ } | undefined;
390
+ signature?: string | undefined;
391
+ publicKey?: string | undefined;
392
+ reasoning?: string | undefined;
393
+ task_id?: string | undefined;
394
+ }, {
395
+ type: "auth_required";
396
+ id?: string | undefined;
397
+ room?: string | undefined;
398
+ content?: string | undefined;
399
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
400
+ from?: "system" | undefined;
401
+ to?: string | undefined;
402
+ timestamp?: string | undefined;
403
+ data?: {
404
+ cache_ttl_hours?: number | undefined;
405
+ supported_auth_methods?: string[] | undefined;
406
+ supports_cache_check?: boolean | undefined;
407
+ } | undefined;
408
+ signature?: string | undefined;
409
+ publicKey?: string | undefined;
410
+ reasoning?: string | undefined;
411
+ task_id?: string | undefined;
412
+ }>;
413
+ export declare const AuthMessageSchema: z.ZodObject<{
414
+ content: z.ZodOptional<z.ZodAny>;
415
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
416
+ from: z.ZodOptional<z.ZodString>;
417
+ to: z.ZodOptional<z.ZodString>;
418
+ room: z.ZodOptional<z.ZodString>;
419
+ timestamp: z.ZodOptional<z.ZodString>;
420
+ signature: z.ZodOptional<z.ZodString>;
421
+ publicKey: z.ZodOptional<z.ZodString>;
422
+ reasoning: z.ZodOptional<z.ZodString>;
423
+ task_id: z.ZodOptional<z.ZodString>;
424
+ id: z.ZodOptional<z.ZodString>;
425
+ } & {
426
+ type: z.ZodLiteral<"auth">;
427
+ data: z.ZodOptional<z.ZodObject<{
428
+ address: z.ZodOptional<z.ZodString>;
429
+ signature: z.ZodOptional<z.ZodString>;
430
+ message: z.ZodOptional<z.ZodString>;
431
+ userType: z.ZodOptional<z.ZodEnum<["user", "agent", "coordinator"]>>;
432
+ agentName: z.ZodOptional<z.ZodString>;
433
+ id: z.ZodOptional<z.ZodString>;
434
+ type: z.ZodOptional<z.ZodEnum<["user", "agent", "coordinator"]>>;
435
+ nft_verified: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
436
+ is_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
437
+ is_admin_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
438
+ rooms: z.ZodOptional<z.ZodArray<z.ZodObject<{
439
+ id: z.ZodString;
440
+ name: z.ZodString;
441
+ description: z.ZodOptional<z.ZodString>;
442
+ is_public: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
443
+ is_active: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
444
+ created_by: z.ZodString;
445
+ created_at: z.ZodString;
446
+ updated_at: z.ZodString;
447
+ }, "strip", z.ZodTypeAny, {
448
+ name: string;
449
+ id: string;
450
+ is_public: boolean;
451
+ is_active: boolean;
452
+ created_by: string;
453
+ created_at: string;
454
+ updated_at: string;
455
+ description?: string | undefined;
456
+ }, {
457
+ name: string;
458
+ id: string;
459
+ is_public: string | boolean;
460
+ is_active: string | boolean;
461
+ created_by: string;
462
+ created_at: string;
463
+ updated_at: string;
464
+ description?: string | undefined;
465
+ }>, "many">>;
466
+ private_room_id: z.ZodOptional<z.ZodString>;
467
+ cached_auth: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ message?: string | undefined;
470
+ type?: "user" | "agent" | "coordinator" | undefined;
471
+ id?: string | undefined;
472
+ signature?: string | undefined;
473
+ userType?: "user" | "agent" | "coordinator" | undefined;
474
+ address?: string | undefined;
475
+ agentName?: string | undefined;
476
+ nft_verified?: boolean | undefined;
477
+ is_whitelisted?: boolean | undefined;
478
+ is_admin_whitelisted?: boolean | undefined;
479
+ rooms?: {
480
+ name: string;
481
+ id: string;
482
+ is_public: boolean;
483
+ is_active: boolean;
484
+ created_by: string;
485
+ created_at: string;
486
+ updated_at: string;
487
+ description?: string | undefined;
488
+ }[] | undefined;
489
+ private_room_id?: string | undefined;
490
+ cached_auth?: boolean | undefined;
491
+ }, {
492
+ message?: string | undefined;
493
+ type?: "user" | "agent" | "coordinator" | undefined;
494
+ id?: string | undefined;
495
+ signature?: string | undefined;
496
+ userType?: "user" | "agent" | "coordinator" | undefined;
497
+ address?: string | undefined;
498
+ agentName?: string | undefined;
499
+ nft_verified?: string | boolean | undefined;
500
+ is_whitelisted?: string | boolean | undefined;
501
+ is_admin_whitelisted?: string | boolean | undefined;
502
+ rooms?: {
503
+ name: string;
504
+ id: string;
505
+ is_public: string | boolean;
506
+ is_active: string | boolean;
507
+ created_by: string;
508
+ created_at: string;
509
+ updated_at: string;
510
+ description?: string | undefined;
511
+ }[] | undefined;
512
+ private_room_id?: string | undefined;
513
+ cached_auth?: string | boolean | undefined;
514
+ }>>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ type: "auth";
517
+ id?: string | undefined;
518
+ room?: string | undefined;
519
+ content?: any;
520
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
521
+ from?: string | undefined;
522
+ to?: string | undefined;
523
+ timestamp?: string | undefined;
524
+ data?: {
525
+ message?: string | undefined;
526
+ type?: "user" | "agent" | "coordinator" | undefined;
527
+ id?: string | undefined;
528
+ signature?: string | undefined;
529
+ userType?: "user" | "agent" | "coordinator" | undefined;
530
+ address?: string | undefined;
531
+ agentName?: string | undefined;
532
+ nft_verified?: boolean | undefined;
533
+ is_whitelisted?: boolean | undefined;
534
+ is_admin_whitelisted?: boolean | undefined;
535
+ rooms?: {
536
+ name: string;
537
+ id: string;
538
+ is_public: boolean;
539
+ is_active: boolean;
540
+ created_by: string;
541
+ created_at: string;
542
+ updated_at: string;
543
+ description?: string | undefined;
544
+ }[] | undefined;
545
+ private_room_id?: string | undefined;
546
+ cached_auth?: boolean | undefined;
547
+ } | undefined;
548
+ signature?: string | undefined;
549
+ publicKey?: string | undefined;
550
+ reasoning?: string | undefined;
551
+ task_id?: string | undefined;
552
+ }, {
553
+ type: "auth";
554
+ id?: string | undefined;
555
+ room?: string | undefined;
556
+ content?: any;
557
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
558
+ from?: string | undefined;
559
+ to?: string | undefined;
560
+ timestamp?: string | undefined;
561
+ data?: {
562
+ message?: string | undefined;
563
+ type?: "user" | "agent" | "coordinator" | undefined;
564
+ id?: string | undefined;
565
+ signature?: string | undefined;
566
+ userType?: "user" | "agent" | "coordinator" | undefined;
567
+ address?: string | undefined;
568
+ agentName?: string | undefined;
569
+ nft_verified?: string | boolean | undefined;
570
+ is_whitelisted?: string | boolean | undefined;
571
+ is_admin_whitelisted?: string | boolean | undefined;
572
+ rooms?: {
573
+ name: string;
574
+ id: string;
575
+ is_public: string | boolean;
576
+ is_active: string | boolean;
577
+ created_by: string;
578
+ created_at: string;
579
+ updated_at: string;
580
+ description?: string | undefined;
581
+ }[] | undefined;
582
+ private_room_id?: string | undefined;
583
+ cached_auth?: string | boolean | undefined;
584
+ } | undefined;
585
+ signature?: string | undefined;
586
+ publicKey?: string | undefined;
587
+ reasoning?: string | undefined;
588
+ task_id?: string | undefined;
589
+ }>;
590
+ export declare const AuthSuccessMessageSchema: z.ZodObject<{
591
+ content: z.ZodOptional<z.ZodAny>;
592
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
593
+ from: z.ZodOptional<z.ZodString>;
594
+ to: z.ZodOptional<z.ZodString>;
595
+ room: z.ZodOptional<z.ZodString>;
596
+ timestamp: z.ZodOptional<z.ZodString>;
597
+ signature: z.ZodOptional<z.ZodString>;
598
+ publicKey: z.ZodOptional<z.ZodString>;
599
+ reasoning: z.ZodOptional<z.ZodString>;
600
+ task_id: z.ZodOptional<z.ZodString>;
601
+ id: z.ZodOptional<z.ZodString>;
602
+ } & {
603
+ type: z.ZodLiteral<"auth_success">;
604
+ data: z.ZodObject<{
605
+ id: z.ZodString;
606
+ type: z.ZodEnum<["user", "agent", "coordinator"]>;
607
+ address: z.ZodString;
608
+ nft_verified: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
609
+ is_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
610
+ is_admin_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
611
+ rooms: z.ZodOptional<z.ZodArray<z.ZodObject<{
612
+ id: z.ZodString;
613
+ name: z.ZodString;
614
+ description: z.ZodOptional<z.ZodString>;
615
+ is_public: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
616
+ is_active: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
617
+ created_by: z.ZodString;
618
+ created_at: z.ZodString;
619
+ updated_at: z.ZodString;
620
+ }, "strip", z.ZodTypeAny, {
621
+ name: string;
622
+ id: string;
623
+ is_public: boolean;
624
+ is_active: boolean;
625
+ created_by: string;
626
+ created_at: string;
627
+ updated_at: string;
628
+ description?: string | undefined;
629
+ }, {
630
+ name: string;
631
+ id: string;
632
+ is_public: string | boolean;
633
+ is_active: string | boolean;
634
+ created_by: string;
635
+ created_at: string;
636
+ updated_at: string;
637
+ description?: string | undefined;
638
+ }>, "many">>;
639
+ private_room_id: z.ZodOptional<z.ZodString>;
640
+ cached_auth: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ type: "user" | "agent" | "coordinator";
643
+ id: string;
644
+ address: string;
645
+ nft_verified?: boolean | undefined;
646
+ is_whitelisted?: boolean | undefined;
647
+ is_admin_whitelisted?: boolean | undefined;
648
+ rooms?: {
649
+ name: string;
650
+ id: string;
651
+ is_public: boolean;
652
+ is_active: boolean;
653
+ created_by: string;
654
+ created_at: string;
655
+ updated_at: string;
656
+ description?: string | undefined;
657
+ }[] | undefined;
658
+ private_room_id?: string | undefined;
659
+ cached_auth?: boolean | undefined;
660
+ }, {
661
+ type: "user" | "agent" | "coordinator";
662
+ id: string;
663
+ address: string;
664
+ nft_verified?: string | boolean | undefined;
665
+ is_whitelisted?: string | boolean | undefined;
666
+ is_admin_whitelisted?: string | boolean | undefined;
667
+ rooms?: {
668
+ name: string;
669
+ id: string;
670
+ is_public: string | boolean;
671
+ is_active: string | boolean;
672
+ created_by: string;
673
+ created_at: string;
674
+ updated_at: string;
675
+ description?: string | undefined;
676
+ }[] | undefined;
677
+ private_room_id?: string | undefined;
678
+ cached_auth?: string | boolean | undefined;
679
+ }>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ type: "auth_success";
682
+ data: {
683
+ type: "user" | "agent" | "coordinator";
684
+ id: string;
685
+ address: string;
686
+ nft_verified?: boolean | undefined;
687
+ is_whitelisted?: boolean | undefined;
688
+ is_admin_whitelisted?: boolean | undefined;
689
+ rooms?: {
690
+ name: string;
691
+ id: string;
692
+ is_public: boolean;
693
+ is_active: boolean;
694
+ created_by: string;
695
+ created_at: string;
696
+ updated_at: string;
697
+ description?: string | undefined;
698
+ }[] | undefined;
699
+ private_room_id?: string | undefined;
700
+ cached_auth?: boolean | undefined;
701
+ };
702
+ id?: string | undefined;
703
+ room?: string | undefined;
704
+ content?: any;
705
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
706
+ from?: string | undefined;
707
+ to?: string | undefined;
708
+ timestamp?: string | undefined;
709
+ signature?: string | undefined;
710
+ publicKey?: string | undefined;
711
+ reasoning?: string | undefined;
712
+ task_id?: string | undefined;
713
+ }, {
714
+ type: "auth_success";
715
+ data: {
716
+ type: "user" | "agent" | "coordinator";
717
+ id: string;
718
+ address: string;
719
+ nft_verified?: string | boolean | undefined;
720
+ is_whitelisted?: string | boolean | undefined;
721
+ is_admin_whitelisted?: string | boolean | undefined;
722
+ rooms?: {
723
+ name: string;
724
+ id: string;
725
+ is_public: string | boolean;
726
+ is_active: string | boolean;
727
+ created_by: string;
728
+ created_at: string;
729
+ updated_at: string;
730
+ description?: string | undefined;
731
+ }[] | undefined;
732
+ private_room_id?: string | undefined;
733
+ cached_auth?: string | boolean | undefined;
734
+ };
735
+ id?: string | undefined;
736
+ room?: string | undefined;
737
+ content?: any;
738
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
739
+ from?: string | undefined;
740
+ to?: string | undefined;
741
+ timestamp?: string | undefined;
742
+ signature?: string | undefined;
743
+ publicKey?: string | undefined;
744
+ reasoning?: string | undefined;
745
+ task_id?: string | undefined;
746
+ }>;
747
+ export declare const AuthErrorMessageSchema: z.ZodObject<{
748
+ content: z.ZodOptional<z.ZodAny>;
749
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
750
+ from: z.ZodOptional<z.ZodString>;
751
+ to: z.ZodOptional<z.ZodString>;
752
+ room: z.ZodOptional<z.ZodString>;
753
+ timestamp: z.ZodOptional<z.ZodString>;
754
+ signature: z.ZodOptional<z.ZodString>;
755
+ publicKey: z.ZodOptional<z.ZodString>;
756
+ reasoning: z.ZodOptional<z.ZodString>;
757
+ task_id: z.ZodOptional<z.ZodString>;
758
+ id: z.ZodOptional<z.ZodString>;
759
+ } & {
760
+ type: z.ZodLiteral<"auth_error">;
761
+ data: z.ZodObject<{
762
+ error: z.ZodString;
763
+ code: z.ZodOptional<z.ZodNumber>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ error: string;
766
+ code?: number | undefined;
767
+ }, {
768
+ error: string;
769
+ code?: number | undefined;
770
+ }>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ type: "auth_error";
773
+ data: {
774
+ error: string;
775
+ code?: number | undefined;
776
+ };
777
+ id?: string | undefined;
778
+ room?: string | undefined;
779
+ content?: any;
780
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
781
+ from?: string | undefined;
782
+ to?: string | undefined;
783
+ timestamp?: string | undefined;
784
+ signature?: string | undefined;
785
+ publicKey?: string | undefined;
786
+ reasoning?: string | undefined;
787
+ task_id?: string | undefined;
788
+ }, {
789
+ type: "auth_error";
790
+ data: {
791
+ error: string;
792
+ code?: number | undefined;
793
+ };
794
+ id?: string | undefined;
795
+ room?: string | undefined;
796
+ content?: any;
797
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
798
+ from?: string | undefined;
799
+ to?: string | undefined;
800
+ timestamp?: string | undefined;
801
+ signature?: string | undefined;
802
+ publicKey?: string | undefined;
803
+ reasoning?: string | undefined;
804
+ task_id?: string | undefined;
805
+ }>;
806
+ export declare const RegisterMessageSchema: z.ZodObject<{
807
+ content: z.ZodOptional<z.ZodAny>;
808
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
809
+ from: z.ZodOptional<z.ZodString>;
810
+ to: z.ZodOptional<z.ZodString>;
811
+ room: z.ZodOptional<z.ZodString>;
812
+ timestamp: z.ZodOptional<z.ZodString>;
813
+ signature: z.ZodOptional<z.ZodString>;
814
+ publicKey: z.ZodOptional<z.ZodString>;
815
+ reasoning: z.ZodOptional<z.ZodString>;
816
+ task_id: z.ZodOptional<z.ZodString>;
817
+ id: z.ZodOptional<z.ZodString>;
818
+ } & {
819
+ type: z.ZodLiteral<"register">;
820
+ data: z.ZodObject<{
821
+ name: z.ZodOptional<z.ZodString>;
822
+ userType: z.ZodEnum<["user", "agent", "coordinator"]>;
823
+ room: z.ZodString;
824
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
825
+ name: z.ZodString;
826
+ description: z.ZodString;
827
+ }, "strip", z.ZodTypeAny, {
828
+ name: string;
829
+ description: string;
830
+ }, {
831
+ name: string;
832
+ description: string;
833
+ }>, "many">>;
834
+ commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
+ trigger: z.ZodString;
836
+ argument: z.ZodOptional<z.ZodString>;
837
+ description: z.ZodString;
838
+ }, "strip", z.ZodTypeAny, {
839
+ description: string;
840
+ trigger: string;
841
+ argument?: string | undefined;
842
+ }, {
843
+ description: string;
844
+ trigger: string;
845
+ argument?: string | undefined;
846
+ }>, "many">>;
847
+ nft_token_id: z.ZodOptional<z.ZodString>;
848
+ wallet_address: z.ZodOptional<z.ZodString>;
849
+ challenge: z.ZodOptional<z.ZodString>;
850
+ challenge_response: z.ZodOptional<z.ZodString>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ room: string;
853
+ userType: "user" | "agent" | "coordinator";
854
+ challenge?: string | undefined;
855
+ capabilities?: {
856
+ name: string;
857
+ description: string;
858
+ }[] | undefined;
859
+ name?: string | undefined;
860
+ commands?: {
861
+ description: string;
862
+ trigger: string;
863
+ argument?: string | undefined;
864
+ }[] | undefined;
865
+ nft_token_id?: string | undefined;
866
+ wallet_address?: string | undefined;
867
+ challenge_response?: string | undefined;
868
+ }, {
869
+ room: string;
870
+ userType: "user" | "agent" | "coordinator";
871
+ challenge?: string | undefined;
872
+ capabilities?: {
873
+ name: string;
874
+ description: string;
875
+ }[] | undefined;
876
+ name?: string | undefined;
877
+ commands?: {
878
+ description: string;
879
+ trigger: string;
880
+ argument?: string | undefined;
881
+ }[] | undefined;
882
+ nft_token_id?: string | undefined;
883
+ wallet_address?: string | undefined;
884
+ challenge_response?: string | undefined;
885
+ }>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ type: "register";
888
+ data: {
889
+ room: string;
890
+ userType: "user" | "agent" | "coordinator";
891
+ challenge?: string | undefined;
892
+ capabilities?: {
893
+ name: string;
894
+ description: string;
895
+ }[] | undefined;
896
+ name?: string | undefined;
897
+ commands?: {
898
+ description: string;
899
+ trigger: string;
900
+ argument?: string | undefined;
901
+ }[] | undefined;
902
+ nft_token_id?: string | undefined;
903
+ wallet_address?: string | undefined;
904
+ challenge_response?: string | undefined;
905
+ };
906
+ id?: string | undefined;
907
+ room?: string | undefined;
908
+ content?: any;
909
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
910
+ from?: string | undefined;
911
+ to?: string | undefined;
912
+ timestamp?: string | undefined;
913
+ signature?: string | undefined;
914
+ publicKey?: string | undefined;
915
+ reasoning?: string | undefined;
916
+ task_id?: string | undefined;
917
+ }, {
918
+ type: "register";
919
+ data: {
920
+ room: string;
921
+ userType: "user" | "agent" | "coordinator";
922
+ challenge?: string | undefined;
923
+ capabilities?: {
924
+ name: string;
925
+ description: string;
926
+ }[] | undefined;
927
+ name?: string | undefined;
928
+ commands?: {
929
+ description: string;
930
+ trigger: string;
931
+ argument?: string | undefined;
932
+ }[] | undefined;
933
+ nft_token_id?: string | undefined;
934
+ wallet_address?: string | undefined;
935
+ challenge_response?: string | undefined;
936
+ };
937
+ id?: string | undefined;
938
+ room?: string | undefined;
939
+ content?: any;
940
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
941
+ from?: string | undefined;
942
+ to?: string | undefined;
943
+ timestamp?: string | undefined;
944
+ signature?: string | undefined;
945
+ publicKey?: string | undefined;
946
+ reasoning?: string | undefined;
947
+ task_id?: string | undefined;
948
+ }>;
949
+ export declare const RegistrationSuccessMessageSchema: z.ZodObject<{
950
+ content: z.ZodOptional<z.ZodAny>;
951
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
952
+ from: z.ZodOptional<z.ZodString>;
953
+ to: z.ZodOptional<z.ZodString>;
954
+ room: z.ZodOptional<z.ZodString>;
955
+ timestamp: z.ZodOptional<z.ZodString>;
956
+ signature: z.ZodOptional<z.ZodString>;
957
+ publicKey: z.ZodOptional<z.ZodString>;
958
+ reasoning: z.ZodOptional<z.ZodString>;
959
+ task_id: z.ZodOptional<z.ZodString>;
960
+ id: z.ZodOptional<z.ZodString>;
961
+ } & {
962
+ type: z.ZodLiteral<"registration_success">;
963
+ data: z.ZodObject<{
964
+ agent_id: z.ZodString;
965
+ name: z.ZodString;
966
+ room: z.ZodString;
967
+ }, "strip", z.ZodTypeAny, {
968
+ name: string;
969
+ room: string;
970
+ agent_id: string;
971
+ }, {
972
+ name: string;
973
+ room: string;
974
+ agent_id: string;
975
+ }>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ type: "registration_success";
978
+ data: {
979
+ name: string;
980
+ room: string;
981
+ agent_id: string;
982
+ };
983
+ id?: string | undefined;
984
+ room?: string | undefined;
985
+ content?: any;
986
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
987
+ from?: string | undefined;
988
+ to?: string | undefined;
989
+ timestamp?: string | undefined;
990
+ signature?: string | undefined;
991
+ publicKey?: string | undefined;
992
+ reasoning?: string | undefined;
993
+ task_id?: string | undefined;
994
+ }, {
995
+ type: "registration_success";
996
+ data: {
997
+ name: string;
998
+ room: string;
999
+ agent_id: string;
1000
+ };
1001
+ id?: string | undefined;
1002
+ room?: string | undefined;
1003
+ content?: any;
1004
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1005
+ from?: string | undefined;
1006
+ to?: string | undefined;
1007
+ timestamp?: string | undefined;
1008
+ signature?: string | undefined;
1009
+ publicKey?: string | undefined;
1010
+ reasoning?: string | undefined;
1011
+ task_id?: string | undefined;
1012
+ }>;
1013
+ export declare const UserMessageSchema: z.ZodObject<{
1014
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1015
+ from: z.ZodOptional<z.ZodString>;
1016
+ to: z.ZodOptional<z.ZodString>;
1017
+ timestamp: z.ZodOptional<z.ZodString>;
1018
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1019
+ signature: z.ZodOptional<z.ZodString>;
1020
+ publicKey: z.ZodOptional<z.ZodString>;
1021
+ reasoning: z.ZodOptional<z.ZodString>;
1022
+ task_id: z.ZodOptional<z.ZodString>;
1023
+ id: z.ZodOptional<z.ZodString>;
1024
+ } & {
1025
+ type: z.ZodLiteral<"message">;
1026
+ content: z.ZodString;
1027
+ room: z.ZodOptional<z.ZodString>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ type: "message";
1030
+ content: string;
1031
+ id?: string | undefined;
1032
+ room?: string | undefined;
1033
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1034
+ from?: string | undefined;
1035
+ to?: string | undefined;
1036
+ timestamp?: string | undefined;
1037
+ data?: Record<string, any> | undefined;
1038
+ signature?: string | undefined;
1039
+ publicKey?: string | undefined;
1040
+ reasoning?: string | undefined;
1041
+ task_id?: string | undefined;
1042
+ }, {
1043
+ type: "message";
1044
+ content: string;
1045
+ id?: string | undefined;
1046
+ room?: string | undefined;
1047
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1048
+ from?: string | undefined;
1049
+ to?: string | undefined;
1050
+ timestamp?: string | undefined;
1051
+ data?: Record<string, any> | undefined;
1052
+ signature?: string | undefined;
1053
+ publicKey?: string | undefined;
1054
+ reasoning?: string | undefined;
1055
+ task_id?: string | undefined;
1056
+ }>;
1057
+ export declare const TaskMessageSchema: z.ZodObject<{
1058
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1059
+ timestamp: z.ZodOptional<z.ZodString>;
1060
+ signature: z.ZodOptional<z.ZodString>;
1061
+ publicKey: z.ZodOptional<z.ZodString>;
1062
+ reasoning: z.ZodOptional<z.ZodString>;
1063
+ task_id: z.ZodOptional<z.ZodString>;
1064
+ id: z.ZodOptional<z.ZodString>;
1065
+ } & {
1066
+ type: z.ZodLiteral<"task">;
1067
+ content: z.ZodString;
1068
+ from: z.ZodLiteral<"coordinator">;
1069
+ to: z.ZodString;
1070
+ room: z.ZodString;
1071
+ data: z.ZodObject<{
1072
+ task_id: z.ZodString;
1073
+ user_prompt: z.ZodString;
1074
+ requesting_user_id: z.ZodString;
1075
+ room_id: z.ZodString;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ task_id: string;
1078
+ user_prompt: string;
1079
+ requesting_user_id: string;
1080
+ room_id: string;
1081
+ }, {
1082
+ task_id: string;
1083
+ user_prompt: string;
1084
+ requesting_user_id: string;
1085
+ room_id: string;
1086
+ }>;
1087
+ }, "strip", z.ZodTypeAny, {
1088
+ type: "task";
1089
+ room: string;
1090
+ content: string;
1091
+ from: "coordinator";
1092
+ to: string;
1093
+ data: {
1094
+ task_id: string;
1095
+ user_prompt: string;
1096
+ requesting_user_id: string;
1097
+ room_id: string;
1098
+ };
1099
+ id?: string | undefined;
1100
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1101
+ timestamp?: string | undefined;
1102
+ signature?: string | undefined;
1103
+ publicKey?: string | undefined;
1104
+ reasoning?: string | undefined;
1105
+ task_id?: string | undefined;
1106
+ }, {
1107
+ type: "task";
1108
+ room: string;
1109
+ content: string;
1110
+ from: "coordinator";
1111
+ to: string;
1112
+ data: {
1113
+ task_id: string;
1114
+ user_prompt: string;
1115
+ requesting_user_id: string;
1116
+ room_id: string;
1117
+ };
1118
+ id?: string | undefined;
1119
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1120
+ timestamp?: string | undefined;
1121
+ signature?: string | undefined;
1122
+ publicKey?: string | undefined;
1123
+ reasoning?: string | undefined;
1124
+ task_id?: string | undefined;
1125
+ }>;
1126
+ export declare const TaskResponseMessageSchema: z.ZodObject<{
1127
+ to: z.ZodOptional<z.ZodString>;
1128
+ room: z.ZodOptional<z.ZodString>;
1129
+ timestamp: z.ZodOptional<z.ZodString>;
1130
+ signature: z.ZodOptional<z.ZodString>;
1131
+ publicKey: z.ZodOptional<z.ZodString>;
1132
+ reasoning: z.ZodOptional<z.ZodString>;
1133
+ task_id: z.ZodOptional<z.ZodString>;
1134
+ id: z.ZodOptional<z.ZodString>;
1135
+ } & {
1136
+ type: z.ZodLiteral<"task_response">;
1137
+ content: z.ZodString;
1138
+ content_type: z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>;
1139
+ from: z.ZodString;
1140
+ data: z.ZodObject<{
1141
+ task_id: z.ZodString;
1142
+ agent_name: z.ZodOptional<z.ZodString>;
1143
+ success: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
1144
+ error: z.ZodOptional<z.ZodString>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ task_id: string;
1147
+ error?: string | undefined;
1148
+ agent_name?: string | undefined;
1149
+ success?: boolean | undefined;
1150
+ }, {
1151
+ task_id: string;
1152
+ error?: string | undefined;
1153
+ agent_name?: string | undefined;
1154
+ success?: string | boolean | undefined;
1155
+ }>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ type: "task_response";
1158
+ content: string;
1159
+ content_type: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY";
1160
+ from: string;
1161
+ data: {
1162
+ task_id: string;
1163
+ error?: string | undefined;
1164
+ agent_name?: string | undefined;
1165
+ success?: boolean | undefined;
1166
+ };
1167
+ id?: string | undefined;
1168
+ room?: string | undefined;
1169
+ to?: string | undefined;
1170
+ timestamp?: string | undefined;
1171
+ signature?: string | undefined;
1172
+ publicKey?: string | undefined;
1173
+ reasoning?: string | undefined;
1174
+ task_id?: string | undefined;
1175
+ }, {
1176
+ type: "task_response";
1177
+ content: string;
1178
+ content_type: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY";
1179
+ from: string;
1180
+ data: {
1181
+ task_id: string;
1182
+ error?: string | undefined;
1183
+ agent_name?: string | undefined;
1184
+ success?: string | boolean | undefined;
1185
+ };
1186
+ id?: string | undefined;
1187
+ room?: string | undefined;
1188
+ to?: string | undefined;
1189
+ timestamp?: string | undefined;
1190
+ signature?: string | undefined;
1191
+ publicKey?: string | undefined;
1192
+ reasoning?: string | undefined;
1193
+ task_id?: string | undefined;
1194
+ }>;
1195
+ export declare const AgentSelectedMessageSchema: z.ZodObject<{
1196
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1197
+ to: z.ZodOptional<z.ZodString>;
1198
+ room: z.ZodOptional<z.ZodString>;
1199
+ timestamp: z.ZodOptional<z.ZodString>;
1200
+ signature: z.ZodOptional<z.ZodString>;
1201
+ publicKey: z.ZodOptional<z.ZodString>;
1202
+ task_id: z.ZodOptional<z.ZodString>;
1203
+ id: z.ZodOptional<z.ZodString>;
1204
+ } & {
1205
+ type: z.ZodLiteral<"agent_selected">;
1206
+ content: z.ZodString;
1207
+ from: z.ZodLiteral<"coordinator">;
1208
+ reasoning: z.ZodString;
1209
+ data: z.ZodObject<{
1210
+ agent_id: z.ZodString;
1211
+ agent_name: z.ZodString;
1212
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1213
+ name: z.ZodString;
1214
+ description: z.ZodString;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ name: string;
1217
+ description: string;
1218
+ }, {
1219
+ name: string;
1220
+ description: string;
1221
+ }>, "many">>;
1222
+ user_request: z.ZodString;
1223
+ command: z.ZodOptional<z.ZodString>;
1224
+ command_reasoning: z.ZodOptional<z.ZodString>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ agent_id: string;
1227
+ agent_name: string;
1228
+ user_request: string;
1229
+ capabilities?: {
1230
+ name: string;
1231
+ description: string;
1232
+ }[] | undefined;
1233
+ command?: string | undefined;
1234
+ command_reasoning?: string | undefined;
1235
+ }, {
1236
+ agent_id: string;
1237
+ agent_name: string;
1238
+ user_request: string;
1239
+ capabilities?: {
1240
+ name: string;
1241
+ description: string;
1242
+ }[] | undefined;
1243
+ command?: string | undefined;
1244
+ command_reasoning?: string | undefined;
1245
+ }>;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ type: "agent_selected";
1248
+ content: string;
1249
+ from: "coordinator";
1250
+ data: {
1251
+ agent_id: string;
1252
+ agent_name: string;
1253
+ user_request: string;
1254
+ capabilities?: {
1255
+ name: string;
1256
+ description: string;
1257
+ }[] | undefined;
1258
+ command?: string | undefined;
1259
+ command_reasoning?: string | undefined;
1260
+ };
1261
+ reasoning: string;
1262
+ id?: string | undefined;
1263
+ room?: string | undefined;
1264
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1265
+ to?: string | undefined;
1266
+ timestamp?: string | undefined;
1267
+ signature?: string | undefined;
1268
+ publicKey?: string | undefined;
1269
+ task_id?: string | undefined;
1270
+ }, {
1271
+ type: "agent_selected";
1272
+ content: string;
1273
+ from: "coordinator";
1274
+ data: {
1275
+ agent_id: string;
1276
+ agent_name: string;
1277
+ user_request: string;
1278
+ capabilities?: {
1279
+ name: string;
1280
+ description: string;
1281
+ }[] | undefined;
1282
+ command?: string | undefined;
1283
+ command_reasoning?: string | undefined;
1284
+ };
1285
+ reasoning: string;
1286
+ id?: string | undefined;
1287
+ room?: string | undefined;
1288
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1289
+ to?: string | undefined;
1290
+ timestamp?: string | undefined;
1291
+ signature?: string | undefined;
1292
+ publicKey?: string | undefined;
1293
+ task_id?: string | undefined;
1294
+ }>;
1295
+ export declare const AgentsListMessageSchema: z.ZodObject<{
1296
+ content: z.ZodOptional<z.ZodAny>;
1297
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1298
+ to: z.ZodOptional<z.ZodString>;
1299
+ room: z.ZodOptional<z.ZodString>;
1300
+ timestamp: z.ZodOptional<z.ZodString>;
1301
+ signature: z.ZodOptional<z.ZodString>;
1302
+ publicKey: z.ZodOptional<z.ZodString>;
1303
+ reasoning: z.ZodOptional<z.ZodString>;
1304
+ task_id: z.ZodOptional<z.ZodString>;
1305
+ id: z.ZodOptional<z.ZodString>;
1306
+ } & {
1307
+ type: z.ZodLiteral<"agents">;
1308
+ from: z.ZodLiteral<"system">;
1309
+ data: z.ZodArray<z.ZodObject<{
1310
+ id: z.ZodString;
1311
+ name: z.ZodString;
1312
+ description: z.ZodOptional<z.ZodString>;
1313
+ room: z.ZodOptional<z.ZodString>;
1314
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1315
+ name: z.ZodString;
1316
+ description: z.ZodString;
1317
+ }, "strip", z.ZodTypeAny, {
1318
+ name: string;
1319
+ description: string;
1320
+ }, {
1321
+ name: string;
1322
+ description: string;
1323
+ }>, "many">>;
1324
+ commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
1325
+ trigger: z.ZodString;
1326
+ argument: z.ZodOptional<z.ZodString>;
1327
+ description: z.ZodString;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ description: string;
1330
+ trigger: string;
1331
+ argument?: string | undefined;
1332
+ }, {
1333
+ description: string;
1334
+ trigger: string;
1335
+ argument?: string | undefined;
1336
+ }>, "many">>;
1337
+ status: z.ZodEnum<["online", "offline"]>;
1338
+ image: z.ZodOptional<z.ZodString>;
1339
+ agentType: z.ZodOptional<z.ZodEnum<["command", "nlp", "mcp"]>>;
1340
+ nlpFallback: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
1341
+ webhookUrl: z.ZodOptional<z.ZodString>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ status: "online" | "offline";
1344
+ name: string;
1345
+ id: string;
1346
+ capabilities?: {
1347
+ name: string;
1348
+ description: string;
1349
+ }[] | undefined;
1350
+ description?: string | undefined;
1351
+ room?: string | undefined;
1352
+ commands?: {
1353
+ description: string;
1354
+ trigger: string;
1355
+ argument?: string | undefined;
1356
+ }[] | undefined;
1357
+ image?: string | undefined;
1358
+ agentType?: "command" | "nlp" | "mcp" | undefined;
1359
+ nlpFallback?: boolean | undefined;
1360
+ webhookUrl?: string | undefined;
1361
+ }, {
1362
+ status: "online" | "offline";
1363
+ name: string;
1364
+ id: string;
1365
+ capabilities?: {
1366
+ name: string;
1367
+ description: string;
1368
+ }[] | undefined;
1369
+ description?: string | undefined;
1370
+ room?: string | undefined;
1371
+ commands?: {
1372
+ description: string;
1373
+ trigger: string;
1374
+ argument?: string | undefined;
1375
+ }[] | undefined;
1376
+ image?: string | undefined;
1377
+ agentType?: "command" | "nlp" | "mcp" | undefined;
1378
+ nlpFallback?: string | boolean | undefined;
1379
+ webhookUrl?: string | undefined;
1380
+ }>, "many">;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ type: "agents";
1383
+ from: "system";
1384
+ data: {
1385
+ status: "online" | "offline";
1386
+ name: string;
1387
+ id: string;
1388
+ capabilities?: {
1389
+ name: string;
1390
+ description: string;
1391
+ }[] | undefined;
1392
+ description?: string | undefined;
1393
+ room?: string | undefined;
1394
+ commands?: {
1395
+ description: string;
1396
+ trigger: string;
1397
+ argument?: string | undefined;
1398
+ }[] | undefined;
1399
+ image?: string | undefined;
1400
+ agentType?: "command" | "nlp" | "mcp" | undefined;
1401
+ nlpFallback?: boolean | undefined;
1402
+ webhookUrl?: string | undefined;
1403
+ }[];
1404
+ id?: string | undefined;
1405
+ room?: string | undefined;
1406
+ content?: any;
1407
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1408
+ to?: string | undefined;
1409
+ timestamp?: string | undefined;
1410
+ signature?: string | undefined;
1411
+ publicKey?: string | undefined;
1412
+ reasoning?: string | undefined;
1413
+ task_id?: string | undefined;
1414
+ }, {
1415
+ type: "agents";
1416
+ from: "system";
1417
+ data: {
1418
+ status: "online" | "offline";
1419
+ name: string;
1420
+ id: string;
1421
+ capabilities?: {
1422
+ name: string;
1423
+ description: string;
1424
+ }[] | undefined;
1425
+ description?: string | undefined;
1426
+ room?: string | undefined;
1427
+ commands?: {
1428
+ description: string;
1429
+ trigger: string;
1430
+ argument?: string | undefined;
1431
+ }[] | undefined;
1432
+ image?: string | undefined;
1433
+ agentType?: "command" | "nlp" | "mcp" | undefined;
1434
+ nlpFallback?: string | boolean | undefined;
1435
+ webhookUrl?: string | undefined;
1436
+ }[];
1437
+ id?: string | undefined;
1438
+ room?: string | undefined;
1439
+ content?: any;
1440
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1441
+ to?: string | undefined;
1442
+ timestamp?: string | undefined;
1443
+ signature?: string | undefined;
1444
+ publicKey?: string | undefined;
1445
+ reasoning?: string | undefined;
1446
+ task_id?: string | undefined;
1447
+ }>;
1448
+ export declare const ErrorMessageSchema: z.ZodObject<{
1449
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1450
+ to: z.ZodOptional<z.ZodString>;
1451
+ room: z.ZodOptional<z.ZodString>;
1452
+ timestamp: z.ZodOptional<z.ZodString>;
1453
+ signature: z.ZodOptional<z.ZodString>;
1454
+ publicKey: z.ZodOptional<z.ZodString>;
1455
+ reasoning: z.ZodOptional<z.ZodString>;
1456
+ task_id: z.ZodOptional<z.ZodString>;
1457
+ id: z.ZodOptional<z.ZodString>;
1458
+ } & {
1459
+ type: z.ZodLiteral<"error">;
1460
+ content: z.ZodString;
1461
+ from: z.ZodLiteral<"system">;
1462
+ data: z.ZodObject<{
1463
+ code: z.ZodNumber;
1464
+ message: z.ZodString;
1465
+ details: z.ZodOptional<z.ZodAny>;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ code: number;
1468
+ message: string;
1469
+ details?: any;
1470
+ }, {
1471
+ code: number;
1472
+ message: string;
1473
+ details?: any;
1474
+ }>;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ type: "error";
1477
+ content: string;
1478
+ from: "system";
1479
+ data: {
1480
+ code: number;
1481
+ message: string;
1482
+ details?: any;
1483
+ };
1484
+ id?: string | undefined;
1485
+ room?: string | undefined;
1486
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1487
+ to?: string | undefined;
1488
+ timestamp?: string | undefined;
1489
+ signature?: string | undefined;
1490
+ publicKey?: string | undefined;
1491
+ reasoning?: string | undefined;
1492
+ task_id?: string | undefined;
1493
+ }, {
1494
+ type: "error";
1495
+ content: string;
1496
+ from: "system";
1497
+ data: {
1498
+ code: number;
1499
+ message: string;
1500
+ details?: any;
1501
+ };
1502
+ id?: string | undefined;
1503
+ room?: string | undefined;
1504
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1505
+ to?: string | undefined;
1506
+ timestamp?: string | undefined;
1507
+ signature?: string | undefined;
1508
+ publicKey?: string | undefined;
1509
+ reasoning?: string | undefined;
1510
+ task_id?: string | undefined;
1511
+ }>;
1512
+ export declare const PingMessageSchema: z.ZodObject<{
1513
+ content: z.ZodOptional<z.ZodAny>;
1514
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1515
+ from: z.ZodOptional<z.ZodString>;
1516
+ to: z.ZodOptional<z.ZodString>;
1517
+ room: z.ZodOptional<z.ZodString>;
1518
+ timestamp: z.ZodOptional<z.ZodString>;
1519
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1520
+ signature: z.ZodOptional<z.ZodString>;
1521
+ publicKey: z.ZodOptional<z.ZodString>;
1522
+ reasoning: z.ZodOptional<z.ZodString>;
1523
+ task_id: z.ZodOptional<z.ZodString>;
1524
+ id: z.ZodOptional<z.ZodString>;
1525
+ } & {
1526
+ type: z.ZodLiteral<"ping">;
1527
+ }, "strip", z.ZodTypeAny, {
1528
+ type: "ping";
1529
+ id?: string | undefined;
1530
+ room?: string | undefined;
1531
+ content?: any;
1532
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1533
+ from?: string | undefined;
1534
+ to?: string | undefined;
1535
+ timestamp?: string | undefined;
1536
+ data?: Record<string, any> | undefined;
1537
+ signature?: string | undefined;
1538
+ publicKey?: string | undefined;
1539
+ reasoning?: string | undefined;
1540
+ task_id?: string | undefined;
1541
+ }, {
1542
+ type: "ping";
1543
+ id?: string | undefined;
1544
+ room?: string | undefined;
1545
+ content?: any;
1546
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1547
+ from?: string | undefined;
1548
+ to?: string | undefined;
1549
+ timestamp?: string | undefined;
1550
+ data?: Record<string, any> | undefined;
1551
+ signature?: string | undefined;
1552
+ publicKey?: string | undefined;
1553
+ reasoning?: string | undefined;
1554
+ task_id?: string | undefined;
1555
+ }>;
1556
+ export declare const PongMessageSchema: z.ZodObject<{
1557
+ content: z.ZodOptional<z.ZodAny>;
1558
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1559
+ from: z.ZodOptional<z.ZodString>;
1560
+ to: z.ZodOptional<z.ZodString>;
1561
+ room: z.ZodOptional<z.ZodString>;
1562
+ timestamp: z.ZodOptional<z.ZodString>;
1563
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1564
+ signature: z.ZodOptional<z.ZodString>;
1565
+ publicKey: z.ZodOptional<z.ZodString>;
1566
+ reasoning: z.ZodOptional<z.ZodString>;
1567
+ task_id: z.ZodOptional<z.ZodString>;
1568
+ id: z.ZodOptional<z.ZodString>;
1569
+ } & {
1570
+ type: z.ZodLiteral<"pong">;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ type: "pong";
1573
+ id?: string | undefined;
1574
+ room?: string | undefined;
1575
+ content?: any;
1576
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1577
+ from?: string | undefined;
1578
+ to?: string | undefined;
1579
+ timestamp?: string | undefined;
1580
+ data?: Record<string, any> | undefined;
1581
+ signature?: string | undefined;
1582
+ publicKey?: string | undefined;
1583
+ reasoning?: string | undefined;
1584
+ task_id?: string | undefined;
1585
+ }, {
1586
+ type: "pong";
1587
+ id?: string | undefined;
1588
+ room?: string | undefined;
1589
+ content?: any;
1590
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1591
+ from?: string | undefined;
1592
+ to?: string | undefined;
1593
+ timestamp?: string | undefined;
1594
+ data?: Record<string, any> | undefined;
1595
+ signature?: string | undefined;
1596
+ publicKey?: string | undefined;
1597
+ reasoning?: string | undefined;
1598
+ task_id?: string | undefined;
1599
+ }>;
1600
+ export declare const SubscribeMessageSchema: z.ZodObject<{
1601
+ content: z.ZodOptional<z.ZodAny>;
1602
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1603
+ from: z.ZodOptional<z.ZodString>;
1604
+ to: z.ZodOptional<z.ZodString>;
1605
+ room: z.ZodOptional<z.ZodString>;
1606
+ timestamp: z.ZodOptional<z.ZodString>;
1607
+ signature: z.ZodOptional<z.ZodString>;
1608
+ publicKey: z.ZodOptional<z.ZodString>;
1609
+ reasoning: z.ZodOptional<z.ZodString>;
1610
+ task_id: z.ZodOptional<z.ZodString>;
1611
+ id: z.ZodOptional<z.ZodString>;
1612
+ } & {
1613
+ type: z.ZodLiteral<"subscribe">;
1614
+ data: z.ZodObject<{
1615
+ room_id: z.ZodString;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ room_id: string;
1618
+ }, {
1619
+ room_id: string;
1620
+ }>;
1621
+ }, "strip", z.ZodTypeAny, {
1622
+ type: "subscribe";
1623
+ data: {
1624
+ room_id: string;
1625
+ };
1626
+ id?: string | undefined;
1627
+ room?: string | undefined;
1628
+ content?: any;
1629
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1630
+ from?: string | undefined;
1631
+ to?: string | undefined;
1632
+ timestamp?: string | undefined;
1633
+ signature?: string | undefined;
1634
+ publicKey?: string | undefined;
1635
+ reasoning?: string | undefined;
1636
+ task_id?: string | undefined;
1637
+ }, {
1638
+ type: "subscribe";
1639
+ data: {
1640
+ room_id: string;
1641
+ };
1642
+ id?: string | undefined;
1643
+ room?: string | undefined;
1644
+ content?: any;
1645
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1646
+ from?: string | undefined;
1647
+ to?: string | undefined;
1648
+ timestamp?: string | undefined;
1649
+ signature?: string | undefined;
1650
+ publicKey?: string | undefined;
1651
+ reasoning?: string | undefined;
1652
+ task_id?: string | undefined;
1653
+ }>;
1654
+ export declare const UnsubscribeMessageSchema: z.ZodObject<{
1655
+ content: z.ZodOptional<z.ZodAny>;
1656
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1657
+ from: z.ZodOptional<z.ZodString>;
1658
+ to: z.ZodOptional<z.ZodString>;
1659
+ room: z.ZodOptional<z.ZodString>;
1660
+ timestamp: z.ZodOptional<z.ZodString>;
1661
+ signature: z.ZodOptional<z.ZodString>;
1662
+ publicKey: z.ZodOptional<z.ZodString>;
1663
+ reasoning: z.ZodOptional<z.ZodString>;
1664
+ task_id: z.ZodOptional<z.ZodString>;
1665
+ id: z.ZodOptional<z.ZodString>;
1666
+ } & {
1667
+ type: z.ZodLiteral<"unsubscribe">;
1668
+ data: z.ZodObject<{
1669
+ room_id: z.ZodString;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ room_id: string;
1672
+ }, {
1673
+ room_id: string;
1674
+ }>;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ type: "unsubscribe";
1677
+ data: {
1678
+ room_id: string;
1679
+ };
1680
+ id?: string | undefined;
1681
+ room?: string | undefined;
1682
+ content?: any;
1683
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1684
+ from?: string | undefined;
1685
+ to?: string | undefined;
1686
+ timestamp?: string | undefined;
1687
+ signature?: string | undefined;
1688
+ publicKey?: string | undefined;
1689
+ reasoning?: string | undefined;
1690
+ task_id?: string | undefined;
1691
+ }, {
1692
+ type: "unsubscribe";
1693
+ data: {
1694
+ room_id: string;
1695
+ };
1696
+ id?: string | undefined;
1697
+ room?: string | undefined;
1698
+ content?: any;
1699
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1700
+ from?: string | undefined;
1701
+ to?: string | undefined;
1702
+ timestamp?: string | undefined;
1703
+ signature?: string | undefined;
1704
+ publicKey?: string | undefined;
1705
+ reasoning?: string | undefined;
1706
+ task_id?: string | undefined;
1707
+ }>;
1708
+ export declare const ListRoomsMessageSchema: z.ZodObject<{
1709
+ content: z.ZodOptional<z.ZodAny>;
1710
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1711
+ from: z.ZodOptional<z.ZodString>;
1712
+ to: z.ZodOptional<z.ZodString>;
1713
+ room: z.ZodOptional<z.ZodString>;
1714
+ timestamp: z.ZodOptional<z.ZodString>;
1715
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1716
+ signature: z.ZodOptional<z.ZodString>;
1717
+ publicKey: z.ZodOptional<z.ZodString>;
1718
+ reasoning: z.ZodOptional<z.ZodString>;
1719
+ task_id: z.ZodOptional<z.ZodString>;
1720
+ id: z.ZodOptional<z.ZodString>;
1721
+ } & {
1722
+ type: z.ZodLiteral<"list_rooms">;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ type: "list_rooms";
1725
+ id?: string | undefined;
1726
+ room?: string | undefined;
1727
+ content?: any;
1728
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1729
+ from?: string | undefined;
1730
+ to?: string | undefined;
1731
+ timestamp?: string | undefined;
1732
+ data?: Record<string, any> | undefined;
1733
+ signature?: string | undefined;
1734
+ publicKey?: string | undefined;
1735
+ reasoning?: string | undefined;
1736
+ task_id?: string | undefined;
1737
+ }, {
1738
+ type: "list_rooms";
1739
+ id?: string | undefined;
1740
+ room?: string | undefined;
1741
+ content?: any;
1742
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1743
+ from?: string | undefined;
1744
+ to?: string | undefined;
1745
+ timestamp?: string | undefined;
1746
+ data?: Record<string, any> | undefined;
1747
+ signature?: string | undefined;
1748
+ publicKey?: string | undefined;
1749
+ reasoning?: string | undefined;
1750
+ task_id?: string | undefined;
1751
+ }>;
1752
+ export declare const SubscribeResponseSchema: z.ZodObject<{
1753
+ content: z.ZodOptional<z.ZodAny>;
1754
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1755
+ from: z.ZodOptional<z.ZodString>;
1756
+ to: z.ZodOptional<z.ZodString>;
1757
+ room: z.ZodOptional<z.ZodString>;
1758
+ timestamp: z.ZodOptional<z.ZodString>;
1759
+ signature: z.ZodOptional<z.ZodString>;
1760
+ publicKey: z.ZodOptional<z.ZodString>;
1761
+ reasoning: z.ZodOptional<z.ZodString>;
1762
+ task_id: z.ZodOptional<z.ZodString>;
1763
+ id: z.ZodOptional<z.ZodString>;
1764
+ } & {
1765
+ type: z.ZodLiteral<"subscribe">;
1766
+ data: z.ZodObject<{
1767
+ room_id: z.ZodString;
1768
+ success: z.ZodBoolean;
1769
+ message: z.ZodString;
1770
+ subscriptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ message: string;
1773
+ room_id: string;
1774
+ success: boolean;
1775
+ subscriptions?: string[] | undefined;
1776
+ }, {
1777
+ message: string;
1778
+ room_id: string;
1779
+ success: boolean;
1780
+ subscriptions?: string[] | undefined;
1781
+ }>;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ type: "subscribe";
1784
+ data: {
1785
+ message: string;
1786
+ room_id: string;
1787
+ success: boolean;
1788
+ subscriptions?: string[] | undefined;
1789
+ };
1790
+ id?: string | undefined;
1791
+ room?: string | undefined;
1792
+ content?: any;
1793
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1794
+ from?: string | undefined;
1795
+ to?: string | undefined;
1796
+ timestamp?: string | undefined;
1797
+ signature?: string | undefined;
1798
+ publicKey?: string | undefined;
1799
+ reasoning?: string | undefined;
1800
+ task_id?: string | undefined;
1801
+ }, {
1802
+ type: "subscribe";
1803
+ data: {
1804
+ message: string;
1805
+ room_id: string;
1806
+ success: boolean;
1807
+ subscriptions?: string[] | undefined;
1808
+ };
1809
+ id?: string | undefined;
1810
+ room?: string | undefined;
1811
+ content?: any;
1812
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1813
+ from?: string | undefined;
1814
+ to?: string | undefined;
1815
+ timestamp?: string | undefined;
1816
+ signature?: string | undefined;
1817
+ publicKey?: string | undefined;
1818
+ reasoning?: string | undefined;
1819
+ task_id?: string | undefined;
1820
+ }>;
1821
+ export declare const UnsubscribeResponseSchema: z.ZodObject<{
1822
+ content: z.ZodOptional<z.ZodAny>;
1823
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1824
+ from: z.ZodOptional<z.ZodString>;
1825
+ to: z.ZodOptional<z.ZodString>;
1826
+ room: z.ZodOptional<z.ZodString>;
1827
+ timestamp: z.ZodOptional<z.ZodString>;
1828
+ signature: z.ZodOptional<z.ZodString>;
1829
+ publicKey: z.ZodOptional<z.ZodString>;
1830
+ reasoning: z.ZodOptional<z.ZodString>;
1831
+ task_id: z.ZodOptional<z.ZodString>;
1832
+ id: z.ZodOptional<z.ZodString>;
1833
+ } & {
1834
+ type: z.ZodLiteral<"unsubscribe">;
1835
+ data: z.ZodObject<{
1836
+ room_id: z.ZodString;
1837
+ success: z.ZodBoolean;
1838
+ message: z.ZodString;
1839
+ subscriptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1840
+ }, "strip", z.ZodTypeAny, {
1841
+ message: string;
1842
+ room_id: string;
1843
+ success: boolean;
1844
+ subscriptions?: string[] | undefined;
1845
+ }, {
1846
+ message: string;
1847
+ room_id: string;
1848
+ success: boolean;
1849
+ subscriptions?: string[] | undefined;
1850
+ }>;
1851
+ }, "strip", z.ZodTypeAny, {
1852
+ type: "unsubscribe";
1853
+ data: {
1854
+ message: string;
1855
+ room_id: string;
1856
+ success: boolean;
1857
+ subscriptions?: string[] | undefined;
1858
+ };
1859
+ id?: string | undefined;
1860
+ room?: string | undefined;
1861
+ content?: any;
1862
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1863
+ from?: string | undefined;
1864
+ to?: string | undefined;
1865
+ timestamp?: string | undefined;
1866
+ signature?: string | undefined;
1867
+ publicKey?: string | undefined;
1868
+ reasoning?: string | undefined;
1869
+ task_id?: string | undefined;
1870
+ }, {
1871
+ type: "unsubscribe";
1872
+ data: {
1873
+ message: string;
1874
+ room_id: string;
1875
+ success: boolean;
1876
+ subscriptions?: string[] | undefined;
1877
+ };
1878
+ id?: string | undefined;
1879
+ room?: string | undefined;
1880
+ content?: any;
1881
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1882
+ from?: string | undefined;
1883
+ to?: string | undefined;
1884
+ timestamp?: string | undefined;
1885
+ signature?: string | undefined;
1886
+ publicKey?: string | undefined;
1887
+ reasoning?: string | undefined;
1888
+ task_id?: string | undefined;
1889
+ }>;
1890
+ export declare const RoomInfoSchema: z.ZodObject<{
1891
+ id: z.ZodString;
1892
+ name: z.ZodString;
1893
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1894
+ is_public: z.ZodBoolean;
1895
+ created_at: z.ZodString;
1896
+ updated_at: z.ZodString;
1897
+ is_owner: z.ZodBoolean;
1898
+ }, "strip", z.ZodTypeAny, {
1899
+ name: string;
1900
+ id: string;
1901
+ is_public: boolean;
1902
+ created_at: string;
1903
+ updated_at: string;
1904
+ is_owner: boolean;
1905
+ description?: string | null | undefined;
1906
+ }, {
1907
+ name: string;
1908
+ id: string;
1909
+ is_public: boolean;
1910
+ created_at: string;
1911
+ updated_at: string;
1912
+ is_owner: boolean;
1913
+ description?: string | null | undefined;
1914
+ }>;
1915
+ export declare const ListRoomsResponseSchema: z.ZodObject<{
1916
+ content: z.ZodOptional<z.ZodAny>;
1917
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
1918
+ from: z.ZodOptional<z.ZodString>;
1919
+ to: z.ZodOptional<z.ZodString>;
1920
+ room: z.ZodOptional<z.ZodString>;
1921
+ timestamp: z.ZodOptional<z.ZodString>;
1922
+ signature: z.ZodOptional<z.ZodString>;
1923
+ publicKey: z.ZodOptional<z.ZodString>;
1924
+ reasoning: z.ZodOptional<z.ZodString>;
1925
+ task_id: z.ZodOptional<z.ZodString>;
1926
+ id: z.ZodOptional<z.ZodString>;
1927
+ } & {
1928
+ type: z.ZodLiteral<"list_rooms">;
1929
+ data: z.ZodObject<{
1930
+ rooms: z.ZodArray<z.ZodObject<{
1931
+ id: z.ZodString;
1932
+ name: z.ZodString;
1933
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1934
+ is_public: z.ZodBoolean;
1935
+ created_at: z.ZodString;
1936
+ updated_at: z.ZodString;
1937
+ is_owner: z.ZodBoolean;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ name: string;
1940
+ id: string;
1941
+ is_public: boolean;
1942
+ created_at: string;
1943
+ updated_at: string;
1944
+ is_owner: boolean;
1945
+ description?: string | null | undefined;
1946
+ }, {
1947
+ name: string;
1948
+ id: string;
1949
+ is_public: boolean;
1950
+ created_at: string;
1951
+ updated_at: string;
1952
+ is_owner: boolean;
1953
+ description?: string | null | undefined;
1954
+ }>, "many">;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ rooms: {
1957
+ name: string;
1958
+ id: string;
1959
+ is_public: boolean;
1960
+ created_at: string;
1961
+ updated_at: string;
1962
+ is_owner: boolean;
1963
+ description?: string | null | undefined;
1964
+ }[];
1965
+ }, {
1966
+ rooms: {
1967
+ name: string;
1968
+ id: string;
1969
+ is_public: boolean;
1970
+ created_at: string;
1971
+ updated_at: string;
1972
+ is_owner: boolean;
1973
+ description?: string | null | undefined;
1974
+ }[];
1975
+ }>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ type: "list_rooms";
1978
+ data: {
1979
+ rooms: {
1980
+ name: string;
1981
+ id: string;
1982
+ is_public: boolean;
1983
+ created_at: string;
1984
+ updated_at: string;
1985
+ is_owner: boolean;
1986
+ description?: string | null | undefined;
1987
+ }[];
1988
+ };
1989
+ id?: string | undefined;
1990
+ room?: string | undefined;
1991
+ content?: any;
1992
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
1993
+ from?: string | undefined;
1994
+ to?: string | undefined;
1995
+ timestamp?: string | undefined;
1996
+ signature?: string | undefined;
1997
+ publicKey?: string | undefined;
1998
+ reasoning?: string | undefined;
1999
+ task_id?: string | undefined;
2000
+ }, {
2001
+ type: "list_rooms";
2002
+ data: {
2003
+ rooms: {
2004
+ name: string;
2005
+ id: string;
2006
+ is_public: boolean;
2007
+ created_at: string;
2008
+ updated_at: string;
2009
+ is_owner: boolean;
2010
+ description?: string | null | undefined;
2011
+ }[];
2012
+ };
2013
+ id?: string | undefined;
2014
+ room?: string | undefined;
2015
+ content?: any;
2016
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2017
+ from?: string | undefined;
2018
+ to?: string | undefined;
2019
+ timestamp?: string | undefined;
2020
+ signature?: string | undefined;
2021
+ publicKey?: string | undefined;
2022
+ reasoning?: string | undefined;
2023
+ task_id?: string | undefined;
2024
+ }>;
2025
+ export declare const AnyMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2026
+ content: z.ZodOptional<z.ZodAny>;
2027
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2028
+ from: z.ZodOptional<z.ZodString>;
2029
+ to: z.ZodOptional<z.ZodString>;
2030
+ room: z.ZodOptional<z.ZodString>;
2031
+ timestamp: z.ZodOptional<z.ZodString>;
2032
+ signature: z.ZodOptional<z.ZodString>;
2033
+ publicKey: z.ZodOptional<z.ZodString>;
2034
+ reasoning: z.ZodOptional<z.ZodString>;
2035
+ task_id: z.ZodOptional<z.ZodString>;
2036
+ id: z.ZodOptional<z.ZodString>;
2037
+ } & {
2038
+ type: z.ZodLiteral<"request_challenge">;
2039
+ data: z.ZodObject<{
2040
+ userType: z.ZodEnum<["user", "agent", "coordinator"]>;
2041
+ address: z.ZodOptional<z.ZodString>;
2042
+ }, "strip", z.ZodTypeAny, {
2043
+ userType: "user" | "agent" | "coordinator";
2044
+ address?: string | undefined;
2045
+ }, {
2046
+ userType: "user" | "agent" | "coordinator";
2047
+ address?: string | undefined;
2048
+ }>;
2049
+ }, "strip", z.ZodTypeAny, {
2050
+ type: "request_challenge";
2051
+ data: {
2052
+ userType: "user" | "agent" | "coordinator";
2053
+ address?: string | undefined;
2054
+ };
2055
+ id?: string | undefined;
2056
+ room?: string | undefined;
2057
+ content?: any;
2058
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2059
+ from?: string | undefined;
2060
+ to?: string | undefined;
2061
+ timestamp?: string | undefined;
2062
+ signature?: string | undefined;
2063
+ publicKey?: string | undefined;
2064
+ reasoning?: string | undefined;
2065
+ task_id?: string | undefined;
2066
+ }, {
2067
+ type: "request_challenge";
2068
+ data: {
2069
+ userType: "user" | "agent" | "coordinator";
2070
+ address?: string | undefined;
2071
+ };
2072
+ id?: string | undefined;
2073
+ room?: string | undefined;
2074
+ content?: any;
2075
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2076
+ from?: string | undefined;
2077
+ to?: string | undefined;
2078
+ timestamp?: string | undefined;
2079
+ signature?: string | undefined;
2080
+ publicKey?: string | undefined;
2081
+ reasoning?: string | undefined;
2082
+ task_id?: string | undefined;
2083
+ }>, z.ZodObject<{
2084
+ content: z.ZodOptional<z.ZodAny>;
2085
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2086
+ from: z.ZodOptional<z.ZodString>;
2087
+ to: z.ZodOptional<z.ZodString>;
2088
+ room: z.ZodOptional<z.ZodString>;
2089
+ timestamp: z.ZodOptional<z.ZodString>;
2090
+ signature: z.ZodOptional<z.ZodString>;
2091
+ publicKey: z.ZodOptional<z.ZodString>;
2092
+ reasoning: z.ZodOptional<z.ZodString>;
2093
+ task_id: z.ZodOptional<z.ZodString>;
2094
+ id: z.ZodOptional<z.ZodString>;
2095
+ } & {
2096
+ type: z.ZodLiteral<"challenge">;
2097
+ data: z.ZodObject<{
2098
+ challenge: z.ZodString;
2099
+ timestamp: z.ZodNumber;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ challenge: string;
2102
+ timestamp: number;
2103
+ }, {
2104
+ challenge: string;
2105
+ timestamp: number;
2106
+ }>;
2107
+ }, "strip", z.ZodTypeAny, {
2108
+ type: "challenge";
2109
+ data: {
2110
+ challenge: string;
2111
+ timestamp: number;
2112
+ };
2113
+ id?: string | undefined;
2114
+ room?: string | undefined;
2115
+ content?: any;
2116
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2117
+ from?: string | undefined;
2118
+ to?: string | undefined;
2119
+ timestamp?: string | undefined;
2120
+ signature?: string | undefined;
2121
+ publicKey?: string | undefined;
2122
+ reasoning?: string | undefined;
2123
+ task_id?: string | undefined;
2124
+ }, {
2125
+ type: "challenge";
2126
+ data: {
2127
+ challenge: string;
2128
+ timestamp: number;
2129
+ };
2130
+ id?: string | undefined;
2131
+ room?: string | undefined;
2132
+ content?: any;
2133
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2134
+ from?: string | undefined;
2135
+ to?: string | undefined;
2136
+ timestamp?: string | undefined;
2137
+ signature?: string | undefined;
2138
+ publicKey?: string | undefined;
2139
+ reasoning?: string | undefined;
2140
+ task_id?: string | undefined;
2141
+ }>, z.ZodObject<{
2142
+ content: z.ZodOptional<z.ZodAny>;
2143
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2144
+ from: z.ZodOptional<z.ZodString>;
2145
+ to: z.ZodOptional<z.ZodString>;
2146
+ room: z.ZodOptional<z.ZodString>;
2147
+ timestamp: z.ZodOptional<z.ZodString>;
2148
+ signature: z.ZodOptional<z.ZodString>;
2149
+ publicKey: z.ZodOptional<z.ZodString>;
2150
+ reasoning: z.ZodOptional<z.ZodString>;
2151
+ task_id: z.ZodOptional<z.ZodString>;
2152
+ id: z.ZodOptional<z.ZodString>;
2153
+ } & {
2154
+ type: z.ZodLiteral<"check_cached_auth">;
2155
+ data: z.ZodObject<{
2156
+ address: z.ZodString;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ address: string;
2159
+ }, {
2160
+ address: string;
2161
+ }>;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ type: "check_cached_auth";
2164
+ data: {
2165
+ address: string;
2166
+ };
2167
+ id?: string | undefined;
2168
+ room?: string | undefined;
2169
+ content?: any;
2170
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2171
+ from?: string | undefined;
2172
+ to?: string | undefined;
2173
+ timestamp?: string | undefined;
2174
+ signature?: string | undefined;
2175
+ publicKey?: string | undefined;
2176
+ reasoning?: string | undefined;
2177
+ task_id?: string | undefined;
2178
+ }, {
2179
+ type: "check_cached_auth";
2180
+ data: {
2181
+ address: string;
2182
+ };
2183
+ id?: string | undefined;
2184
+ room?: string | undefined;
2185
+ content?: any;
2186
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2187
+ from?: string | undefined;
2188
+ to?: string | undefined;
2189
+ timestamp?: string | undefined;
2190
+ signature?: string | undefined;
2191
+ publicKey?: string | undefined;
2192
+ reasoning?: string | undefined;
2193
+ task_id?: string | undefined;
2194
+ }>, z.ZodObject<{
2195
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2196
+ to: z.ZodOptional<z.ZodString>;
2197
+ room: z.ZodOptional<z.ZodString>;
2198
+ timestamp: z.ZodOptional<z.ZodString>;
2199
+ signature: z.ZodOptional<z.ZodString>;
2200
+ publicKey: z.ZodOptional<z.ZodString>;
2201
+ reasoning: z.ZodOptional<z.ZodString>;
2202
+ task_id: z.ZodOptional<z.ZodString>;
2203
+ id: z.ZodOptional<z.ZodString>;
2204
+ } & {
2205
+ type: z.ZodLiteral<"auth_required">;
2206
+ content: z.ZodOptional<z.ZodString>;
2207
+ from: z.ZodOptional<z.ZodLiteral<"system">>;
2208
+ data: z.ZodOptional<z.ZodObject<{
2209
+ cache_ttl_hours: z.ZodOptional<z.ZodNumber>;
2210
+ supported_auth_methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2211
+ supports_cache_check: z.ZodOptional<z.ZodBoolean>;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ cache_ttl_hours?: number | undefined;
2214
+ supported_auth_methods?: string[] | undefined;
2215
+ supports_cache_check?: boolean | undefined;
2216
+ }, {
2217
+ cache_ttl_hours?: number | undefined;
2218
+ supported_auth_methods?: string[] | undefined;
2219
+ supports_cache_check?: boolean | undefined;
2220
+ }>>;
2221
+ }, "strip", z.ZodTypeAny, {
2222
+ type: "auth_required";
2223
+ id?: string | undefined;
2224
+ room?: string | undefined;
2225
+ content?: string | undefined;
2226
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2227
+ from?: "system" | undefined;
2228
+ to?: string | undefined;
2229
+ timestamp?: string | undefined;
2230
+ data?: {
2231
+ cache_ttl_hours?: number | undefined;
2232
+ supported_auth_methods?: string[] | undefined;
2233
+ supports_cache_check?: boolean | undefined;
2234
+ } | undefined;
2235
+ signature?: string | undefined;
2236
+ publicKey?: string | undefined;
2237
+ reasoning?: string | undefined;
2238
+ task_id?: string | undefined;
2239
+ }, {
2240
+ type: "auth_required";
2241
+ id?: string | undefined;
2242
+ room?: string | undefined;
2243
+ content?: string | undefined;
2244
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2245
+ from?: "system" | undefined;
2246
+ to?: string | undefined;
2247
+ timestamp?: string | undefined;
2248
+ data?: {
2249
+ cache_ttl_hours?: number | undefined;
2250
+ supported_auth_methods?: string[] | undefined;
2251
+ supports_cache_check?: boolean | undefined;
2252
+ } | undefined;
2253
+ signature?: string | undefined;
2254
+ publicKey?: string | undefined;
2255
+ reasoning?: string | undefined;
2256
+ task_id?: string | undefined;
2257
+ }>, z.ZodObject<{
2258
+ content: z.ZodOptional<z.ZodAny>;
2259
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2260
+ from: z.ZodOptional<z.ZodString>;
2261
+ to: z.ZodOptional<z.ZodString>;
2262
+ room: z.ZodOptional<z.ZodString>;
2263
+ timestamp: z.ZodOptional<z.ZodString>;
2264
+ signature: z.ZodOptional<z.ZodString>;
2265
+ publicKey: z.ZodOptional<z.ZodString>;
2266
+ reasoning: z.ZodOptional<z.ZodString>;
2267
+ task_id: z.ZodOptional<z.ZodString>;
2268
+ id: z.ZodOptional<z.ZodString>;
2269
+ } & {
2270
+ type: z.ZodLiteral<"auth">;
2271
+ data: z.ZodOptional<z.ZodObject<{
2272
+ address: z.ZodOptional<z.ZodString>;
2273
+ signature: z.ZodOptional<z.ZodString>;
2274
+ message: z.ZodOptional<z.ZodString>;
2275
+ userType: z.ZodOptional<z.ZodEnum<["user", "agent", "coordinator"]>>;
2276
+ agentName: z.ZodOptional<z.ZodString>;
2277
+ id: z.ZodOptional<z.ZodString>;
2278
+ type: z.ZodOptional<z.ZodEnum<["user", "agent", "coordinator"]>>;
2279
+ nft_verified: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2280
+ is_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2281
+ is_admin_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2282
+ rooms: z.ZodOptional<z.ZodArray<z.ZodObject<{
2283
+ id: z.ZodString;
2284
+ name: z.ZodString;
2285
+ description: z.ZodOptional<z.ZodString>;
2286
+ is_public: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
2287
+ is_active: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
2288
+ created_by: z.ZodString;
2289
+ created_at: z.ZodString;
2290
+ updated_at: z.ZodString;
2291
+ }, "strip", z.ZodTypeAny, {
2292
+ name: string;
2293
+ id: string;
2294
+ is_public: boolean;
2295
+ is_active: boolean;
2296
+ created_by: string;
2297
+ created_at: string;
2298
+ updated_at: string;
2299
+ description?: string | undefined;
2300
+ }, {
2301
+ name: string;
2302
+ id: string;
2303
+ is_public: string | boolean;
2304
+ is_active: string | boolean;
2305
+ created_by: string;
2306
+ created_at: string;
2307
+ updated_at: string;
2308
+ description?: string | undefined;
2309
+ }>, "many">>;
2310
+ private_room_id: z.ZodOptional<z.ZodString>;
2311
+ cached_auth: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2312
+ }, "strip", z.ZodTypeAny, {
2313
+ message?: string | undefined;
2314
+ type?: "user" | "agent" | "coordinator" | undefined;
2315
+ id?: string | undefined;
2316
+ signature?: string | undefined;
2317
+ userType?: "user" | "agent" | "coordinator" | undefined;
2318
+ address?: string | undefined;
2319
+ agentName?: string | undefined;
2320
+ nft_verified?: boolean | undefined;
2321
+ is_whitelisted?: boolean | undefined;
2322
+ is_admin_whitelisted?: boolean | undefined;
2323
+ rooms?: {
2324
+ name: string;
2325
+ id: string;
2326
+ is_public: boolean;
2327
+ is_active: boolean;
2328
+ created_by: string;
2329
+ created_at: string;
2330
+ updated_at: string;
2331
+ description?: string | undefined;
2332
+ }[] | undefined;
2333
+ private_room_id?: string | undefined;
2334
+ cached_auth?: boolean | undefined;
2335
+ }, {
2336
+ message?: string | undefined;
2337
+ type?: "user" | "agent" | "coordinator" | undefined;
2338
+ id?: string | undefined;
2339
+ signature?: string | undefined;
2340
+ userType?: "user" | "agent" | "coordinator" | undefined;
2341
+ address?: string | undefined;
2342
+ agentName?: string | undefined;
2343
+ nft_verified?: string | boolean | undefined;
2344
+ is_whitelisted?: string | boolean | undefined;
2345
+ is_admin_whitelisted?: string | boolean | undefined;
2346
+ rooms?: {
2347
+ name: string;
2348
+ id: string;
2349
+ is_public: string | boolean;
2350
+ is_active: string | boolean;
2351
+ created_by: string;
2352
+ created_at: string;
2353
+ updated_at: string;
2354
+ description?: string | undefined;
2355
+ }[] | undefined;
2356
+ private_room_id?: string | undefined;
2357
+ cached_auth?: string | boolean | undefined;
2358
+ }>>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ type: "auth";
2361
+ id?: string | undefined;
2362
+ room?: string | undefined;
2363
+ content?: any;
2364
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2365
+ from?: string | undefined;
2366
+ to?: string | undefined;
2367
+ timestamp?: string | undefined;
2368
+ data?: {
2369
+ message?: string | undefined;
2370
+ type?: "user" | "agent" | "coordinator" | undefined;
2371
+ id?: string | undefined;
2372
+ signature?: string | undefined;
2373
+ userType?: "user" | "agent" | "coordinator" | undefined;
2374
+ address?: string | undefined;
2375
+ agentName?: string | undefined;
2376
+ nft_verified?: boolean | undefined;
2377
+ is_whitelisted?: boolean | undefined;
2378
+ is_admin_whitelisted?: boolean | undefined;
2379
+ rooms?: {
2380
+ name: string;
2381
+ id: string;
2382
+ is_public: boolean;
2383
+ is_active: boolean;
2384
+ created_by: string;
2385
+ created_at: string;
2386
+ updated_at: string;
2387
+ description?: string | undefined;
2388
+ }[] | undefined;
2389
+ private_room_id?: string | undefined;
2390
+ cached_auth?: boolean | undefined;
2391
+ } | undefined;
2392
+ signature?: string | undefined;
2393
+ publicKey?: string | undefined;
2394
+ reasoning?: string | undefined;
2395
+ task_id?: string | undefined;
2396
+ }, {
2397
+ type: "auth";
2398
+ id?: string | undefined;
2399
+ room?: string | undefined;
2400
+ content?: any;
2401
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2402
+ from?: string | undefined;
2403
+ to?: string | undefined;
2404
+ timestamp?: string | undefined;
2405
+ data?: {
2406
+ message?: string | undefined;
2407
+ type?: "user" | "agent" | "coordinator" | undefined;
2408
+ id?: string | undefined;
2409
+ signature?: string | undefined;
2410
+ userType?: "user" | "agent" | "coordinator" | undefined;
2411
+ address?: string | undefined;
2412
+ agentName?: string | undefined;
2413
+ nft_verified?: string | boolean | undefined;
2414
+ is_whitelisted?: string | boolean | undefined;
2415
+ is_admin_whitelisted?: string | boolean | undefined;
2416
+ rooms?: {
2417
+ name: string;
2418
+ id: string;
2419
+ is_public: string | boolean;
2420
+ is_active: string | boolean;
2421
+ created_by: string;
2422
+ created_at: string;
2423
+ updated_at: string;
2424
+ description?: string | undefined;
2425
+ }[] | undefined;
2426
+ private_room_id?: string | undefined;
2427
+ cached_auth?: string | boolean | undefined;
2428
+ } | undefined;
2429
+ signature?: string | undefined;
2430
+ publicKey?: string | undefined;
2431
+ reasoning?: string | undefined;
2432
+ task_id?: string | undefined;
2433
+ }>, z.ZodObject<{
2434
+ content: z.ZodOptional<z.ZodAny>;
2435
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2436
+ from: z.ZodOptional<z.ZodString>;
2437
+ to: z.ZodOptional<z.ZodString>;
2438
+ room: z.ZodOptional<z.ZodString>;
2439
+ timestamp: z.ZodOptional<z.ZodString>;
2440
+ signature: z.ZodOptional<z.ZodString>;
2441
+ publicKey: z.ZodOptional<z.ZodString>;
2442
+ reasoning: z.ZodOptional<z.ZodString>;
2443
+ task_id: z.ZodOptional<z.ZodString>;
2444
+ id: z.ZodOptional<z.ZodString>;
2445
+ } & {
2446
+ type: z.ZodLiteral<"auth_success">;
2447
+ data: z.ZodObject<{
2448
+ id: z.ZodString;
2449
+ type: z.ZodEnum<["user", "agent", "coordinator"]>;
2450
+ address: z.ZodString;
2451
+ nft_verified: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2452
+ is_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2453
+ is_admin_whitelisted: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2454
+ rooms: z.ZodOptional<z.ZodArray<z.ZodObject<{
2455
+ id: z.ZodString;
2456
+ name: z.ZodString;
2457
+ description: z.ZodOptional<z.ZodString>;
2458
+ is_public: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
2459
+ is_active: z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>;
2460
+ created_by: z.ZodString;
2461
+ created_at: z.ZodString;
2462
+ updated_at: z.ZodString;
2463
+ }, "strip", z.ZodTypeAny, {
2464
+ name: string;
2465
+ id: string;
2466
+ is_public: boolean;
2467
+ is_active: boolean;
2468
+ created_by: string;
2469
+ created_at: string;
2470
+ updated_at: string;
2471
+ description?: string | undefined;
2472
+ }, {
2473
+ name: string;
2474
+ id: string;
2475
+ is_public: string | boolean;
2476
+ is_active: string | boolean;
2477
+ created_by: string;
2478
+ created_at: string;
2479
+ updated_at: string;
2480
+ description?: string | undefined;
2481
+ }>, "many">>;
2482
+ private_room_id: z.ZodOptional<z.ZodString>;
2483
+ cached_auth: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2484
+ }, "strip", z.ZodTypeAny, {
2485
+ type: "user" | "agent" | "coordinator";
2486
+ id: string;
2487
+ address: string;
2488
+ nft_verified?: boolean | undefined;
2489
+ is_whitelisted?: boolean | undefined;
2490
+ is_admin_whitelisted?: boolean | undefined;
2491
+ rooms?: {
2492
+ name: string;
2493
+ id: string;
2494
+ is_public: boolean;
2495
+ is_active: boolean;
2496
+ created_by: string;
2497
+ created_at: string;
2498
+ updated_at: string;
2499
+ description?: string | undefined;
2500
+ }[] | undefined;
2501
+ private_room_id?: string | undefined;
2502
+ cached_auth?: boolean | undefined;
2503
+ }, {
2504
+ type: "user" | "agent" | "coordinator";
2505
+ id: string;
2506
+ address: string;
2507
+ nft_verified?: string | boolean | undefined;
2508
+ is_whitelisted?: string | boolean | undefined;
2509
+ is_admin_whitelisted?: string | boolean | undefined;
2510
+ rooms?: {
2511
+ name: string;
2512
+ id: string;
2513
+ is_public: string | boolean;
2514
+ is_active: string | boolean;
2515
+ created_by: string;
2516
+ created_at: string;
2517
+ updated_at: string;
2518
+ description?: string | undefined;
2519
+ }[] | undefined;
2520
+ private_room_id?: string | undefined;
2521
+ cached_auth?: string | boolean | undefined;
2522
+ }>;
2523
+ }, "strip", z.ZodTypeAny, {
2524
+ type: "auth_success";
2525
+ data: {
2526
+ type: "user" | "agent" | "coordinator";
2527
+ id: string;
2528
+ address: string;
2529
+ nft_verified?: boolean | undefined;
2530
+ is_whitelisted?: boolean | undefined;
2531
+ is_admin_whitelisted?: boolean | undefined;
2532
+ rooms?: {
2533
+ name: string;
2534
+ id: string;
2535
+ is_public: boolean;
2536
+ is_active: boolean;
2537
+ created_by: string;
2538
+ created_at: string;
2539
+ updated_at: string;
2540
+ description?: string | undefined;
2541
+ }[] | undefined;
2542
+ private_room_id?: string | undefined;
2543
+ cached_auth?: boolean | undefined;
2544
+ };
2545
+ id?: string | undefined;
2546
+ room?: string | undefined;
2547
+ content?: any;
2548
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2549
+ from?: string | undefined;
2550
+ to?: string | undefined;
2551
+ timestamp?: string | undefined;
2552
+ signature?: string | undefined;
2553
+ publicKey?: string | undefined;
2554
+ reasoning?: string | undefined;
2555
+ task_id?: string | undefined;
2556
+ }, {
2557
+ type: "auth_success";
2558
+ data: {
2559
+ type: "user" | "agent" | "coordinator";
2560
+ id: string;
2561
+ address: string;
2562
+ nft_verified?: string | boolean | undefined;
2563
+ is_whitelisted?: string | boolean | undefined;
2564
+ is_admin_whitelisted?: string | boolean | undefined;
2565
+ rooms?: {
2566
+ name: string;
2567
+ id: string;
2568
+ is_public: string | boolean;
2569
+ is_active: string | boolean;
2570
+ created_by: string;
2571
+ created_at: string;
2572
+ updated_at: string;
2573
+ description?: string | undefined;
2574
+ }[] | undefined;
2575
+ private_room_id?: string | undefined;
2576
+ cached_auth?: string | boolean | undefined;
2577
+ };
2578
+ id?: string | undefined;
2579
+ room?: string | undefined;
2580
+ content?: any;
2581
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2582
+ from?: string | undefined;
2583
+ to?: string | undefined;
2584
+ timestamp?: string | undefined;
2585
+ signature?: string | undefined;
2586
+ publicKey?: string | undefined;
2587
+ reasoning?: string | undefined;
2588
+ task_id?: string | undefined;
2589
+ }>, z.ZodObject<{
2590
+ content: z.ZodOptional<z.ZodAny>;
2591
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2592
+ from: z.ZodOptional<z.ZodString>;
2593
+ to: z.ZodOptional<z.ZodString>;
2594
+ room: z.ZodOptional<z.ZodString>;
2595
+ timestamp: z.ZodOptional<z.ZodString>;
2596
+ signature: z.ZodOptional<z.ZodString>;
2597
+ publicKey: z.ZodOptional<z.ZodString>;
2598
+ reasoning: z.ZodOptional<z.ZodString>;
2599
+ task_id: z.ZodOptional<z.ZodString>;
2600
+ id: z.ZodOptional<z.ZodString>;
2601
+ } & {
2602
+ type: z.ZodLiteral<"auth_error">;
2603
+ data: z.ZodObject<{
2604
+ error: z.ZodString;
2605
+ code: z.ZodOptional<z.ZodNumber>;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ error: string;
2608
+ code?: number | undefined;
2609
+ }, {
2610
+ error: string;
2611
+ code?: number | undefined;
2612
+ }>;
2613
+ }, "strip", z.ZodTypeAny, {
2614
+ type: "auth_error";
2615
+ data: {
2616
+ error: string;
2617
+ code?: number | undefined;
2618
+ };
2619
+ id?: string | undefined;
2620
+ room?: string | undefined;
2621
+ content?: any;
2622
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2623
+ from?: string | undefined;
2624
+ to?: string | undefined;
2625
+ timestamp?: string | undefined;
2626
+ signature?: string | undefined;
2627
+ publicKey?: string | undefined;
2628
+ reasoning?: string | undefined;
2629
+ task_id?: string | undefined;
2630
+ }, {
2631
+ type: "auth_error";
2632
+ data: {
2633
+ error: string;
2634
+ code?: number | undefined;
2635
+ };
2636
+ id?: string | undefined;
2637
+ room?: string | undefined;
2638
+ content?: any;
2639
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2640
+ from?: string | undefined;
2641
+ to?: string | undefined;
2642
+ timestamp?: string | undefined;
2643
+ signature?: string | undefined;
2644
+ publicKey?: string | undefined;
2645
+ reasoning?: string | undefined;
2646
+ task_id?: string | undefined;
2647
+ }>, z.ZodObject<{
2648
+ content: z.ZodOptional<z.ZodAny>;
2649
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2650
+ from: z.ZodOptional<z.ZodString>;
2651
+ to: z.ZodOptional<z.ZodString>;
2652
+ room: z.ZodOptional<z.ZodString>;
2653
+ timestamp: z.ZodOptional<z.ZodString>;
2654
+ signature: z.ZodOptional<z.ZodString>;
2655
+ publicKey: z.ZodOptional<z.ZodString>;
2656
+ reasoning: z.ZodOptional<z.ZodString>;
2657
+ task_id: z.ZodOptional<z.ZodString>;
2658
+ id: z.ZodOptional<z.ZodString>;
2659
+ } & {
2660
+ type: z.ZodLiteral<"register">;
2661
+ data: z.ZodObject<{
2662
+ name: z.ZodOptional<z.ZodString>;
2663
+ userType: z.ZodEnum<["user", "agent", "coordinator"]>;
2664
+ room: z.ZodString;
2665
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
2666
+ name: z.ZodString;
2667
+ description: z.ZodString;
2668
+ }, "strip", z.ZodTypeAny, {
2669
+ name: string;
2670
+ description: string;
2671
+ }, {
2672
+ name: string;
2673
+ description: string;
2674
+ }>, "many">>;
2675
+ commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
2676
+ trigger: z.ZodString;
2677
+ argument: z.ZodOptional<z.ZodString>;
2678
+ description: z.ZodString;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ description: string;
2681
+ trigger: string;
2682
+ argument?: string | undefined;
2683
+ }, {
2684
+ description: string;
2685
+ trigger: string;
2686
+ argument?: string | undefined;
2687
+ }>, "many">>;
2688
+ nft_token_id: z.ZodOptional<z.ZodString>;
2689
+ wallet_address: z.ZodOptional<z.ZodString>;
2690
+ challenge: z.ZodOptional<z.ZodString>;
2691
+ challenge_response: z.ZodOptional<z.ZodString>;
2692
+ }, "strip", z.ZodTypeAny, {
2693
+ room: string;
2694
+ userType: "user" | "agent" | "coordinator";
2695
+ challenge?: string | undefined;
2696
+ capabilities?: {
2697
+ name: string;
2698
+ description: string;
2699
+ }[] | undefined;
2700
+ name?: string | undefined;
2701
+ commands?: {
2702
+ description: string;
2703
+ trigger: string;
2704
+ argument?: string | undefined;
2705
+ }[] | undefined;
2706
+ nft_token_id?: string | undefined;
2707
+ wallet_address?: string | undefined;
2708
+ challenge_response?: string | undefined;
2709
+ }, {
2710
+ room: string;
2711
+ userType: "user" | "agent" | "coordinator";
2712
+ challenge?: string | undefined;
2713
+ capabilities?: {
2714
+ name: string;
2715
+ description: string;
2716
+ }[] | undefined;
2717
+ name?: string | undefined;
2718
+ commands?: {
2719
+ description: string;
2720
+ trigger: string;
2721
+ argument?: string | undefined;
2722
+ }[] | undefined;
2723
+ nft_token_id?: string | undefined;
2724
+ wallet_address?: string | undefined;
2725
+ challenge_response?: string | undefined;
2726
+ }>;
2727
+ }, "strip", z.ZodTypeAny, {
2728
+ type: "register";
2729
+ data: {
2730
+ room: string;
2731
+ userType: "user" | "agent" | "coordinator";
2732
+ challenge?: string | undefined;
2733
+ capabilities?: {
2734
+ name: string;
2735
+ description: string;
2736
+ }[] | undefined;
2737
+ name?: string | undefined;
2738
+ commands?: {
2739
+ description: string;
2740
+ trigger: string;
2741
+ argument?: string | undefined;
2742
+ }[] | undefined;
2743
+ nft_token_id?: string | undefined;
2744
+ wallet_address?: string | undefined;
2745
+ challenge_response?: string | undefined;
2746
+ };
2747
+ id?: string | undefined;
2748
+ room?: string | undefined;
2749
+ content?: any;
2750
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2751
+ from?: string | undefined;
2752
+ to?: string | undefined;
2753
+ timestamp?: string | undefined;
2754
+ signature?: string | undefined;
2755
+ publicKey?: string | undefined;
2756
+ reasoning?: string | undefined;
2757
+ task_id?: string | undefined;
2758
+ }, {
2759
+ type: "register";
2760
+ data: {
2761
+ room: string;
2762
+ userType: "user" | "agent" | "coordinator";
2763
+ challenge?: string | undefined;
2764
+ capabilities?: {
2765
+ name: string;
2766
+ description: string;
2767
+ }[] | undefined;
2768
+ name?: string | undefined;
2769
+ commands?: {
2770
+ description: string;
2771
+ trigger: string;
2772
+ argument?: string | undefined;
2773
+ }[] | undefined;
2774
+ nft_token_id?: string | undefined;
2775
+ wallet_address?: string | undefined;
2776
+ challenge_response?: string | undefined;
2777
+ };
2778
+ id?: string | undefined;
2779
+ room?: string | undefined;
2780
+ content?: any;
2781
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2782
+ from?: string | undefined;
2783
+ to?: string | undefined;
2784
+ timestamp?: string | undefined;
2785
+ signature?: string | undefined;
2786
+ publicKey?: string | undefined;
2787
+ reasoning?: string | undefined;
2788
+ task_id?: string | undefined;
2789
+ }>, z.ZodObject<{
2790
+ content: z.ZodOptional<z.ZodAny>;
2791
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2792
+ from: z.ZodOptional<z.ZodString>;
2793
+ to: z.ZodOptional<z.ZodString>;
2794
+ room: z.ZodOptional<z.ZodString>;
2795
+ timestamp: z.ZodOptional<z.ZodString>;
2796
+ signature: z.ZodOptional<z.ZodString>;
2797
+ publicKey: z.ZodOptional<z.ZodString>;
2798
+ reasoning: z.ZodOptional<z.ZodString>;
2799
+ task_id: z.ZodOptional<z.ZodString>;
2800
+ id: z.ZodOptional<z.ZodString>;
2801
+ } & {
2802
+ type: z.ZodLiteral<"registration_success">;
2803
+ data: z.ZodObject<{
2804
+ agent_id: z.ZodString;
2805
+ name: z.ZodString;
2806
+ room: z.ZodString;
2807
+ }, "strip", z.ZodTypeAny, {
2808
+ name: string;
2809
+ room: string;
2810
+ agent_id: string;
2811
+ }, {
2812
+ name: string;
2813
+ room: string;
2814
+ agent_id: string;
2815
+ }>;
2816
+ }, "strip", z.ZodTypeAny, {
2817
+ type: "registration_success";
2818
+ data: {
2819
+ name: string;
2820
+ room: string;
2821
+ agent_id: string;
2822
+ };
2823
+ id?: string | undefined;
2824
+ room?: string | undefined;
2825
+ content?: any;
2826
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2827
+ from?: string | undefined;
2828
+ to?: string | undefined;
2829
+ timestamp?: string | undefined;
2830
+ signature?: string | undefined;
2831
+ publicKey?: string | undefined;
2832
+ reasoning?: string | undefined;
2833
+ task_id?: string | undefined;
2834
+ }, {
2835
+ type: "registration_success";
2836
+ data: {
2837
+ name: string;
2838
+ room: string;
2839
+ agent_id: string;
2840
+ };
2841
+ id?: string | undefined;
2842
+ room?: string | undefined;
2843
+ content?: any;
2844
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2845
+ from?: string | undefined;
2846
+ to?: string | undefined;
2847
+ timestamp?: string | undefined;
2848
+ signature?: string | undefined;
2849
+ publicKey?: string | undefined;
2850
+ reasoning?: string | undefined;
2851
+ task_id?: string | undefined;
2852
+ }>, z.ZodObject<{
2853
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2854
+ from: z.ZodOptional<z.ZodString>;
2855
+ to: z.ZodOptional<z.ZodString>;
2856
+ timestamp: z.ZodOptional<z.ZodString>;
2857
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2858
+ signature: z.ZodOptional<z.ZodString>;
2859
+ publicKey: z.ZodOptional<z.ZodString>;
2860
+ reasoning: z.ZodOptional<z.ZodString>;
2861
+ task_id: z.ZodOptional<z.ZodString>;
2862
+ id: z.ZodOptional<z.ZodString>;
2863
+ } & {
2864
+ type: z.ZodLiteral<"message">;
2865
+ content: z.ZodString;
2866
+ room: z.ZodOptional<z.ZodString>;
2867
+ }, "strip", z.ZodTypeAny, {
2868
+ type: "message";
2869
+ content: string;
2870
+ id?: string | undefined;
2871
+ room?: string | undefined;
2872
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2873
+ from?: string | undefined;
2874
+ to?: string | undefined;
2875
+ timestamp?: string | undefined;
2876
+ data?: Record<string, any> | undefined;
2877
+ signature?: string | undefined;
2878
+ publicKey?: string | undefined;
2879
+ reasoning?: string | undefined;
2880
+ task_id?: string | undefined;
2881
+ }, {
2882
+ type: "message";
2883
+ content: string;
2884
+ id?: string | undefined;
2885
+ room?: string | undefined;
2886
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2887
+ from?: string | undefined;
2888
+ to?: string | undefined;
2889
+ timestamp?: string | undefined;
2890
+ data?: Record<string, any> | undefined;
2891
+ signature?: string | undefined;
2892
+ publicKey?: string | undefined;
2893
+ reasoning?: string | undefined;
2894
+ task_id?: string | undefined;
2895
+ }>, z.ZodObject<{
2896
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
2897
+ timestamp: z.ZodOptional<z.ZodString>;
2898
+ signature: z.ZodOptional<z.ZodString>;
2899
+ publicKey: z.ZodOptional<z.ZodString>;
2900
+ reasoning: z.ZodOptional<z.ZodString>;
2901
+ task_id: z.ZodOptional<z.ZodString>;
2902
+ id: z.ZodOptional<z.ZodString>;
2903
+ } & {
2904
+ type: z.ZodLiteral<"task">;
2905
+ content: z.ZodString;
2906
+ from: z.ZodLiteral<"coordinator">;
2907
+ to: z.ZodString;
2908
+ room: z.ZodString;
2909
+ data: z.ZodObject<{
2910
+ task_id: z.ZodString;
2911
+ user_prompt: z.ZodString;
2912
+ requesting_user_id: z.ZodString;
2913
+ room_id: z.ZodString;
2914
+ }, "strip", z.ZodTypeAny, {
2915
+ task_id: string;
2916
+ user_prompt: string;
2917
+ requesting_user_id: string;
2918
+ room_id: string;
2919
+ }, {
2920
+ task_id: string;
2921
+ user_prompt: string;
2922
+ requesting_user_id: string;
2923
+ room_id: string;
2924
+ }>;
2925
+ }, "strip", z.ZodTypeAny, {
2926
+ type: "task";
2927
+ room: string;
2928
+ content: string;
2929
+ from: "coordinator";
2930
+ to: string;
2931
+ data: {
2932
+ task_id: string;
2933
+ user_prompt: string;
2934
+ requesting_user_id: string;
2935
+ room_id: string;
2936
+ };
2937
+ id?: string | undefined;
2938
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2939
+ timestamp?: string | undefined;
2940
+ signature?: string | undefined;
2941
+ publicKey?: string | undefined;
2942
+ reasoning?: string | undefined;
2943
+ task_id?: string | undefined;
2944
+ }, {
2945
+ type: "task";
2946
+ room: string;
2947
+ content: string;
2948
+ from: "coordinator";
2949
+ to: string;
2950
+ data: {
2951
+ task_id: string;
2952
+ user_prompt: string;
2953
+ requesting_user_id: string;
2954
+ room_id: string;
2955
+ };
2956
+ id?: string | undefined;
2957
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
2958
+ timestamp?: string | undefined;
2959
+ signature?: string | undefined;
2960
+ publicKey?: string | undefined;
2961
+ reasoning?: string | undefined;
2962
+ task_id?: string | undefined;
2963
+ }>, z.ZodObject<{
2964
+ to: z.ZodOptional<z.ZodString>;
2965
+ room: z.ZodOptional<z.ZodString>;
2966
+ timestamp: z.ZodOptional<z.ZodString>;
2967
+ signature: z.ZodOptional<z.ZodString>;
2968
+ publicKey: z.ZodOptional<z.ZodString>;
2969
+ reasoning: z.ZodOptional<z.ZodString>;
2970
+ task_id: z.ZodOptional<z.ZodString>;
2971
+ id: z.ZodOptional<z.ZodString>;
2972
+ } & {
2973
+ type: z.ZodLiteral<"task_response">;
2974
+ content: z.ZodString;
2975
+ content_type: z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>;
2976
+ from: z.ZodString;
2977
+ data: z.ZodObject<{
2978
+ task_id: z.ZodString;
2979
+ agent_name: z.ZodOptional<z.ZodString>;
2980
+ success: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
2981
+ error: z.ZodOptional<z.ZodString>;
2982
+ }, "strip", z.ZodTypeAny, {
2983
+ task_id: string;
2984
+ error?: string | undefined;
2985
+ agent_name?: string | undefined;
2986
+ success?: boolean | undefined;
2987
+ }, {
2988
+ task_id: string;
2989
+ error?: string | undefined;
2990
+ agent_name?: string | undefined;
2991
+ success?: string | boolean | undefined;
2992
+ }>;
2993
+ }, "strip", z.ZodTypeAny, {
2994
+ type: "task_response";
2995
+ content: string;
2996
+ content_type: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY";
2997
+ from: string;
2998
+ data: {
2999
+ task_id: string;
3000
+ error?: string | undefined;
3001
+ agent_name?: string | undefined;
3002
+ success?: boolean | undefined;
3003
+ };
3004
+ id?: string | undefined;
3005
+ room?: string | undefined;
3006
+ to?: string | undefined;
3007
+ timestamp?: string | undefined;
3008
+ signature?: string | undefined;
3009
+ publicKey?: string | undefined;
3010
+ reasoning?: string | undefined;
3011
+ task_id?: string | undefined;
3012
+ }, {
3013
+ type: "task_response";
3014
+ content: string;
3015
+ content_type: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY";
3016
+ from: string;
3017
+ data: {
3018
+ task_id: string;
3019
+ error?: string | undefined;
3020
+ agent_name?: string | undefined;
3021
+ success?: string | boolean | undefined;
3022
+ };
3023
+ id?: string | undefined;
3024
+ room?: string | undefined;
3025
+ to?: string | undefined;
3026
+ timestamp?: string | undefined;
3027
+ signature?: string | undefined;
3028
+ publicKey?: string | undefined;
3029
+ reasoning?: string | undefined;
3030
+ task_id?: string | undefined;
3031
+ }>, z.ZodObject<{
3032
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3033
+ to: z.ZodOptional<z.ZodString>;
3034
+ room: z.ZodOptional<z.ZodString>;
3035
+ timestamp: z.ZodOptional<z.ZodString>;
3036
+ signature: z.ZodOptional<z.ZodString>;
3037
+ publicKey: z.ZodOptional<z.ZodString>;
3038
+ task_id: z.ZodOptional<z.ZodString>;
3039
+ id: z.ZodOptional<z.ZodString>;
3040
+ } & {
3041
+ type: z.ZodLiteral<"agent_selected">;
3042
+ content: z.ZodString;
3043
+ from: z.ZodLiteral<"coordinator">;
3044
+ reasoning: z.ZodString;
3045
+ data: z.ZodObject<{
3046
+ agent_id: z.ZodString;
3047
+ agent_name: z.ZodString;
3048
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
3049
+ name: z.ZodString;
3050
+ description: z.ZodString;
3051
+ }, "strip", z.ZodTypeAny, {
3052
+ name: string;
3053
+ description: string;
3054
+ }, {
3055
+ name: string;
3056
+ description: string;
3057
+ }>, "many">>;
3058
+ user_request: z.ZodString;
3059
+ command: z.ZodOptional<z.ZodString>;
3060
+ command_reasoning: z.ZodOptional<z.ZodString>;
3061
+ }, "strip", z.ZodTypeAny, {
3062
+ agent_id: string;
3063
+ agent_name: string;
3064
+ user_request: string;
3065
+ capabilities?: {
3066
+ name: string;
3067
+ description: string;
3068
+ }[] | undefined;
3069
+ command?: string | undefined;
3070
+ command_reasoning?: string | undefined;
3071
+ }, {
3072
+ agent_id: string;
3073
+ agent_name: string;
3074
+ user_request: string;
3075
+ capabilities?: {
3076
+ name: string;
3077
+ description: string;
3078
+ }[] | undefined;
3079
+ command?: string | undefined;
3080
+ command_reasoning?: string | undefined;
3081
+ }>;
3082
+ }, "strip", z.ZodTypeAny, {
3083
+ type: "agent_selected";
3084
+ content: string;
3085
+ from: "coordinator";
3086
+ data: {
3087
+ agent_id: string;
3088
+ agent_name: string;
3089
+ user_request: string;
3090
+ capabilities?: {
3091
+ name: string;
3092
+ description: string;
3093
+ }[] | undefined;
3094
+ command?: string | undefined;
3095
+ command_reasoning?: string | undefined;
3096
+ };
3097
+ reasoning: string;
3098
+ id?: string | undefined;
3099
+ room?: string | undefined;
3100
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3101
+ to?: string | undefined;
3102
+ timestamp?: string | undefined;
3103
+ signature?: string | undefined;
3104
+ publicKey?: string | undefined;
3105
+ task_id?: string | undefined;
3106
+ }, {
3107
+ type: "agent_selected";
3108
+ content: string;
3109
+ from: "coordinator";
3110
+ data: {
3111
+ agent_id: string;
3112
+ agent_name: string;
3113
+ user_request: string;
3114
+ capabilities?: {
3115
+ name: string;
3116
+ description: string;
3117
+ }[] | undefined;
3118
+ command?: string | undefined;
3119
+ command_reasoning?: string | undefined;
3120
+ };
3121
+ reasoning: string;
3122
+ id?: string | undefined;
3123
+ room?: string | undefined;
3124
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3125
+ to?: string | undefined;
3126
+ timestamp?: string | undefined;
3127
+ signature?: string | undefined;
3128
+ publicKey?: string | undefined;
3129
+ task_id?: string | undefined;
3130
+ }>, z.ZodObject<{
3131
+ content: z.ZodOptional<z.ZodAny>;
3132
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3133
+ to: z.ZodOptional<z.ZodString>;
3134
+ room: z.ZodOptional<z.ZodString>;
3135
+ timestamp: z.ZodOptional<z.ZodString>;
3136
+ signature: z.ZodOptional<z.ZodString>;
3137
+ publicKey: z.ZodOptional<z.ZodString>;
3138
+ reasoning: z.ZodOptional<z.ZodString>;
3139
+ task_id: z.ZodOptional<z.ZodString>;
3140
+ id: z.ZodOptional<z.ZodString>;
3141
+ } & {
3142
+ type: z.ZodLiteral<"agents">;
3143
+ from: z.ZodLiteral<"system">;
3144
+ data: z.ZodArray<z.ZodObject<{
3145
+ id: z.ZodString;
3146
+ name: z.ZodString;
3147
+ description: z.ZodOptional<z.ZodString>;
3148
+ room: z.ZodOptional<z.ZodString>;
3149
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
3150
+ name: z.ZodString;
3151
+ description: z.ZodString;
3152
+ }, "strip", z.ZodTypeAny, {
3153
+ name: string;
3154
+ description: string;
3155
+ }, {
3156
+ name: string;
3157
+ description: string;
3158
+ }>, "many">>;
3159
+ commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
3160
+ trigger: z.ZodString;
3161
+ argument: z.ZodOptional<z.ZodString>;
3162
+ description: z.ZodString;
3163
+ }, "strip", z.ZodTypeAny, {
3164
+ description: string;
3165
+ trigger: string;
3166
+ argument?: string | undefined;
3167
+ }, {
3168
+ description: string;
3169
+ trigger: string;
3170
+ argument?: string | undefined;
3171
+ }>, "many">>;
3172
+ status: z.ZodEnum<["online", "offline"]>;
3173
+ image: z.ZodOptional<z.ZodString>;
3174
+ agentType: z.ZodOptional<z.ZodEnum<["command", "nlp", "mcp"]>>;
3175
+ nlpFallback: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>, z.ZodBoolean>>;
3176
+ webhookUrl: z.ZodOptional<z.ZodString>;
3177
+ }, "strip", z.ZodTypeAny, {
3178
+ status: "online" | "offline";
3179
+ name: string;
3180
+ id: string;
3181
+ capabilities?: {
3182
+ name: string;
3183
+ description: string;
3184
+ }[] | undefined;
3185
+ description?: string | undefined;
3186
+ room?: string | undefined;
3187
+ commands?: {
3188
+ description: string;
3189
+ trigger: string;
3190
+ argument?: string | undefined;
3191
+ }[] | undefined;
3192
+ image?: string | undefined;
3193
+ agentType?: "command" | "nlp" | "mcp" | undefined;
3194
+ nlpFallback?: boolean | undefined;
3195
+ webhookUrl?: string | undefined;
3196
+ }, {
3197
+ status: "online" | "offline";
3198
+ name: string;
3199
+ id: string;
3200
+ capabilities?: {
3201
+ name: string;
3202
+ description: string;
3203
+ }[] | undefined;
3204
+ description?: string | undefined;
3205
+ room?: string | undefined;
3206
+ commands?: {
3207
+ description: string;
3208
+ trigger: string;
3209
+ argument?: string | undefined;
3210
+ }[] | undefined;
3211
+ image?: string | undefined;
3212
+ agentType?: "command" | "nlp" | "mcp" | undefined;
3213
+ nlpFallback?: string | boolean | undefined;
3214
+ webhookUrl?: string | undefined;
3215
+ }>, "many">;
3216
+ }, "strip", z.ZodTypeAny, {
3217
+ type: "agents";
3218
+ from: "system";
3219
+ data: {
3220
+ status: "online" | "offline";
3221
+ name: string;
3222
+ id: string;
3223
+ capabilities?: {
3224
+ name: string;
3225
+ description: string;
3226
+ }[] | undefined;
3227
+ description?: string | undefined;
3228
+ room?: string | undefined;
3229
+ commands?: {
3230
+ description: string;
3231
+ trigger: string;
3232
+ argument?: string | undefined;
3233
+ }[] | undefined;
3234
+ image?: string | undefined;
3235
+ agentType?: "command" | "nlp" | "mcp" | undefined;
3236
+ nlpFallback?: boolean | undefined;
3237
+ webhookUrl?: string | undefined;
3238
+ }[];
3239
+ id?: string | undefined;
3240
+ room?: string | undefined;
3241
+ content?: any;
3242
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3243
+ to?: string | undefined;
3244
+ timestamp?: string | undefined;
3245
+ signature?: string | undefined;
3246
+ publicKey?: string | undefined;
3247
+ reasoning?: string | undefined;
3248
+ task_id?: string | undefined;
3249
+ }, {
3250
+ type: "agents";
3251
+ from: "system";
3252
+ data: {
3253
+ status: "online" | "offline";
3254
+ name: string;
3255
+ id: string;
3256
+ capabilities?: {
3257
+ name: string;
3258
+ description: string;
3259
+ }[] | undefined;
3260
+ description?: string | undefined;
3261
+ room?: string | undefined;
3262
+ commands?: {
3263
+ description: string;
3264
+ trigger: string;
3265
+ argument?: string | undefined;
3266
+ }[] | undefined;
3267
+ image?: string | undefined;
3268
+ agentType?: "command" | "nlp" | "mcp" | undefined;
3269
+ nlpFallback?: string | boolean | undefined;
3270
+ webhookUrl?: string | undefined;
3271
+ }[];
3272
+ id?: string | undefined;
3273
+ room?: string | undefined;
3274
+ content?: any;
3275
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3276
+ to?: string | undefined;
3277
+ timestamp?: string | undefined;
3278
+ signature?: string | undefined;
3279
+ publicKey?: string | undefined;
3280
+ reasoning?: string | undefined;
3281
+ task_id?: string | undefined;
3282
+ }>, z.ZodObject<{
3283
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3284
+ to: z.ZodOptional<z.ZodString>;
3285
+ room: z.ZodOptional<z.ZodString>;
3286
+ timestamp: z.ZodOptional<z.ZodString>;
3287
+ signature: z.ZodOptional<z.ZodString>;
3288
+ publicKey: z.ZodOptional<z.ZodString>;
3289
+ reasoning: z.ZodOptional<z.ZodString>;
3290
+ task_id: z.ZodOptional<z.ZodString>;
3291
+ id: z.ZodOptional<z.ZodString>;
3292
+ } & {
3293
+ type: z.ZodLiteral<"error">;
3294
+ content: z.ZodString;
3295
+ from: z.ZodLiteral<"system">;
3296
+ data: z.ZodObject<{
3297
+ code: z.ZodNumber;
3298
+ message: z.ZodString;
3299
+ details: z.ZodOptional<z.ZodAny>;
3300
+ }, "strip", z.ZodTypeAny, {
3301
+ code: number;
3302
+ message: string;
3303
+ details?: any;
3304
+ }, {
3305
+ code: number;
3306
+ message: string;
3307
+ details?: any;
3308
+ }>;
3309
+ }, "strip", z.ZodTypeAny, {
3310
+ type: "error";
3311
+ content: string;
3312
+ from: "system";
3313
+ data: {
3314
+ code: number;
3315
+ message: string;
3316
+ details?: any;
3317
+ };
3318
+ id?: string | undefined;
3319
+ room?: string | undefined;
3320
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3321
+ to?: string | undefined;
3322
+ timestamp?: string | undefined;
3323
+ signature?: string | undefined;
3324
+ publicKey?: string | undefined;
3325
+ reasoning?: string | undefined;
3326
+ task_id?: string | undefined;
3327
+ }, {
3328
+ type: "error";
3329
+ content: string;
3330
+ from: "system";
3331
+ data: {
3332
+ code: number;
3333
+ message: string;
3334
+ details?: any;
3335
+ };
3336
+ id?: string | undefined;
3337
+ room?: string | undefined;
3338
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3339
+ to?: string | undefined;
3340
+ timestamp?: string | undefined;
3341
+ signature?: string | undefined;
3342
+ publicKey?: string | undefined;
3343
+ reasoning?: string | undefined;
3344
+ task_id?: string | undefined;
3345
+ }>, z.ZodObject<{
3346
+ content: z.ZodOptional<z.ZodAny>;
3347
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3348
+ from: z.ZodOptional<z.ZodString>;
3349
+ to: z.ZodOptional<z.ZodString>;
3350
+ room: z.ZodOptional<z.ZodString>;
3351
+ timestamp: z.ZodOptional<z.ZodString>;
3352
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3353
+ signature: z.ZodOptional<z.ZodString>;
3354
+ publicKey: z.ZodOptional<z.ZodString>;
3355
+ reasoning: z.ZodOptional<z.ZodString>;
3356
+ task_id: z.ZodOptional<z.ZodString>;
3357
+ id: z.ZodOptional<z.ZodString>;
3358
+ } & {
3359
+ type: z.ZodLiteral<"ping">;
3360
+ }, "strip", z.ZodTypeAny, {
3361
+ type: "ping";
3362
+ id?: string | undefined;
3363
+ room?: string | undefined;
3364
+ content?: any;
3365
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3366
+ from?: string | undefined;
3367
+ to?: string | undefined;
3368
+ timestamp?: string | undefined;
3369
+ data?: Record<string, any> | undefined;
3370
+ signature?: string | undefined;
3371
+ publicKey?: string | undefined;
3372
+ reasoning?: string | undefined;
3373
+ task_id?: string | undefined;
3374
+ }, {
3375
+ type: "ping";
3376
+ id?: string | undefined;
3377
+ room?: string | undefined;
3378
+ content?: any;
3379
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3380
+ from?: string | undefined;
3381
+ to?: string | undefined;
3382
+ timestamp?: string | undefined;
3383
+ data?: Record<string, any> | undefined;
3384
+ signature?: string | undefined;
3385
+ publicKey?: string | undefined;
3386
+ reasoning?: string | undefined;
3387
+ task_id?: string | undefined;
3388
+ }>, z.ZodObject<{
3389
+ content: z.ZodOptional<z.ZodAny>;
3390
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3391
+ from: z.ZodOptional<z.ZodString>;
3392
+ to: z.ZodOptional<z.ZodString>;
3393
+ room: z.ZodOptional<z.ZodString>;
3394
+ timestamp: z.ZodOptional<z.ZodString>;
3395
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3396
+ signature: z.ZodOptional<z.ZodString>;
3397
+ publicKey: z.ZodOptional<z.ZodString>;
3398
+ reasoning: z.ZodOptional<z.ZodString>;
3399
+ task_id: z.ZodOptional<z.ZodString>;
3400
+ id: z.ZodOptional<z.ZodString>;
3401
+ } & {
3402
+ type: z.ZodLiteral<"pong">;
3403
+ }, "strip", z.ZodTypeAny, {
3404
+ type: "pong";
3405
+ id?: string | undefined;
3406
+ room?: string | undefined;
3407
+ content?: any;
3408
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3409
+ from?: string | undefined;
3410
+ to?: string | undefined;
3411
+ timestamp?: string | undefined;
3412
+ data?: Record<string, any> | undefined;
3413
+ signature?: string | undefined;
3414
+ publicKey?: string | undefined;
3415
+ reasoning?: string | undefined;
3416
+ task_id?: string | undefined;
3417
+ }, {
3418
+ type: "pong";
3419
+ id?: string | undefined;
3420
+ room?: string | undefined;
3421
+ content?: any;
3422
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3423
+ from?: string | undefined;
3424
+ to?: string | undefined;
3425
+ timestamp?: string | undefined;
3426
+ data?: Record<string, any> | undefined;
3427
+ signature?: string | undefined;
3428
+ publicKey?: string | undefined;
3429
+ reasoning?: string | undefined;
3430
+ task_id?: string | undefined;
3431
+ }>, z.ZodObject<{
3432
+ content: z.ZodOptional<z.ZodAny>;
3433
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3434
+ from: z.ZodOptional<z.ZodString>;
3435
+ to: z.ZodOptional<z.ZodString>;
3436
+ room: z.ZodOptional<z.ZodString>;
3437
+ timestamp: z.ZodOptional<z.ZodString>;
3438
+ signature: z.ZodOptional<z.ZodString>;
3439
+ publicKey: z.ZodOptional<z.ZodString>;
3440
+ reasoning: z.ZodOptional<z.ZodString>;
3441
+ task_id: z.ZodOptional<z.ZodString>;
3442
+ id: z.ZodOptional<z.ZodString>;
3443
+ } & {
3444
+ type: z.ZodLiteral<"subscribe">;
3445
+ data: z.ZodObject<{
3446
+ room_id: z.ZodString;
3447
+ success: z.ZodBoolean;
3448
+ message: z.ZodString;
3449
+ subscriptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3450
+ }, "strip", z.ZodTypeAny, {
3451
+ message: string;
3452
+ room_id: string;
3453
+ success: boolean;
3454
+ subscriptions?: string[] | undefined;
3455
+ }, {
3456
+ message: string;
3457
+ room_id: string;
3458
+ success: boolean;
3459
+ subscriptions?: string[] | undefined;
3460
+ }>;
3461
+ }, "strip", z.ZodTypeAny, {
3462
+ type: "subscribe";
3463
+ data: {
3464
+ message: string;
3465
+ room_id: string;
3466
+ success: boolean;
3467
+ subscriptions?: string[] | undefined;
3468
+ };
3469
+ id?: string | undefined;
3470
+ room?: string | undefined;
3471
+ content?: any;
3472
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3473
+ from?: string | undefined;
3474
+ to?: string | undefined;
3475
+ timestamp?: string | undefined;
3476
+ signature?: string | undefined;
3477
+ publicKey?: string | undefined;
3478
+ reasoning?: string | undefined;
3479
+ task_id?: string | undefined;
3480
+ }, {
3481
+ type: "subscribe";
3482
+ data: {
3483
+ message: string;
3484
+ room_id: string;
3485
+ success: boolean;
3486
+ subscriptions?: string[] | undefined;
3487
+ };
3488
+ id?: string | undefined;
3489
+ room?: string | undefined;
3490
+ content?: any;
3491
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3492
+ from?: string | undefined;
3493
+ to?: string | undefined;
3494
+ timestamp?: string | undefined;
3495
+ signature?: string | undefined;
3496
+ publicKey?: string | undefined;
3497
+ reasoning?: string | undefined;
3498
+ task_id?: string | undefined;
3499
+ }>, z.ZodObject<{
3500
+ content: z.ZodOptional<z.ZodAny>;
3501
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3502
+ from: z.ZodOptional<z.ZodString>;
3503
+ to: z.ZodOptional<z.ZodString>;
3504
+ room: z.ZodOptional<z.ZodString>;
3505
+ timestamp: z.ZodOptional<z.ZodString>;
3506
+ signature: z.ZodOptional<z.ZodString>;
3507
+ publicKey: z.ZodOptional<z.ZodString>;
3508
+ reasoning: z.ZodOptional<z.ZodString>;
3509
+ task_id: z.ZodOptional<z.ZodString>;
3510
+ id: z.ZodOptional<z.ZodString>;
3511
+ } & {
3512
+ type: z.ZodLiteral<"unsubscribe">;
3513
+ data: z.ZodObject<{
3514
+ room_id: z.ZodString;
3515
+ success: z.ZodBoolean;
3516
+ message: z.ZodString;
3517
+ subscriptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3518
+ }, "strip", z.ZodTypeAny, {
3519
+ message: string;
3520
+ room_id: string;
3521
+ success: boolean;
3522
+ subscriptions?: string[] | undefined;
3523
+ }, {
3524
+ message: string;
3525
+ room_id: string;
3526
+ success: boolean;
3527
+ subscriptions?: string[] | undefined;
3528
+ }>;
3529
+ }, "strip", z.ZodTypeAny, {
3530
+ type: "unsubscribe";
3531
+ data: {
3532
+ message: string;
3533
+ room_id: string;
3534
+ success: boolean;
3535
+ subscriptions?: string[] | undefined;
3536
+ };
3537
+ id?: string | undefined;
3538
+ room?: string | undefined;
3539
+ content?: any;
3540
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3541
+ from?: string | undefined;
3542
+ to?: string | undefined;
3543
+ timestamp?: string | undefined;
3544
+ signature?: string | undefined;
3545
+ publicKey?: string | undefined;
3546
+ reasoning?: string | undefined;
3547
+ task_id?: string | undefined;
3548
+ }, {
3549
+ type: "unsubscribe";
3550
+ data: {
3551
+ message: string;
3552
+ room_id: string;
3553
+ success: boolean;
3554
+ subscriptions?: string[] | undefined;
3555
+ };
3556
+ id?: string | undefined;
3557
+ room?: string | undefined;
3558
+ content?: any;
3559
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3560
+ from?: string | undefined;
3561
+ to?: string | undefined;
3562
+ timestamp?: string | undefined;
3563
+ signature?: string | undefined;
3564
+ publicKey?: string | undefined;
3565
+ reasoning?: string | undefined;
3566
+ task_id?: string | undefined;
3567
+ }>, z.ZodObject<{
3568
+ content: z.ZodOptional<z.ZodAny>;
3569
+ content_type: z.ZodOptional<z.ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
3570
+ from: z.ZodOptional<z.ZodString>;
3571
+ to: z.ZodOptional<z.ZodString>;
3572
+ room: z.ZodOptional<z.ZodString>;
3573
+ timestamp: z.ZodOptional<z.ZodString>;
3574
+ signature: z.ZodOptional<z.ZodString>;
3575
+ publicKey: z.ZodOptional<z.ZodString>;
3576
+ reasoning: z.ZodOptional<z.ZodString>;
3577
+ task_id: z.ZodOptional<z.ZodString>;
3578
+ id: z.ZodOptional<z.ZodString>;
3579
+ } & {
3580
+ type: z.ZodLiteral<"list_rooms">;
3581
+ data: z.ZodObject<{
3582
+ rooms: z.ZodArray<z.ZodObject<{
3583
+ id: z.ZodString;
3584
+ name: z.ZodString;
3585
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3586
+ is_public: z.ZodBoolean;
3587
+ created_at: z.ZodString;
3588
+ updated_at: z.ZodString;
3589
+ is_owner: z.ZodBoolean;
3590
+ }, "strip", z.ZodTypeAny, {
3591
+ name: string;
3592
+ id: string;
3593
+ is_public: boolean;
3594
+ created_at: string;
3595
+ updated_at: string;
3596
+ is_owner: boolean;
3597
+ description?: string | null | undefined;
3598
+ }, {
3599
+ name: string;
3600
+ id: string;
3601
+ is_public: boolean;
3602
+ created_at: string;
3603
+ updated_at: string;
3604
+ is_owner: boolean;
3605
+ description?: string | null | undefined;
3606
+ }>, "many">;
3607
+ }, "strip", z.ZodTypeAny, {
3608
+ rooms: {
3609
+ name: string;
3610
+ id: string;
3611
+ is_public: boolean;
3612
+ created_at: string;
3613
+ updated_at: string;
3614
+ is_owner: boolean;
3615
+ description?: string | null | undefined;
3616
+ }[];
3617
+ }, {
3618
+ rooms: {
3619
+ name: string;
3620
+ id: string;
3621
+ is_public: boolean;
3622
+ created_at: string;
3623
+ updated_at: string;
3624
+ is_owner: boolean;
3625
+ description?: string | null | undefined;
3626
+ }[];
3627
+ }>;
3628
+ }, "strip", z.ZodTypeAny, {
3629
+ type: "list_rooms";
3630
+ data: {
3631
+ rooms: {
3632
+ name: string;
3633
+ id: string;
3634
+ is_public: boolean;
3635
+ created_at: string;
3636
+ updated_at: string;
3637
+ is_owner: boolean;
3638
+ description?: string | null | undefined;
3639
+ }[];
3640
+ };
3641
+ id?: string | undefined;
3642
+ room?: string | undefined;
3643
+ content?: any;
3644
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3645
+ from?: string | undefined;
3646
+ to?: string | undefined;
3647
+ timestamp?: string | undefined;
3648
+ signature?: string | undefined;
3649
+ publicKey?: string | undefined;
3650
+ reasoning?: string | undefined;
3651
+ task_id?: string | undefined;
3652
+ }, {
3653
+ type: "list_rooms";
3654
+ data: {
3655
+ rooms: {
3656
+ name: string;
3657
+ id: string;
3658
+ is_public: boolean;
3659
+ created_at: string;
3660
+ updated_at: string;
3661
+ is_owner: boolean;
3662
+ description?: string | null | undefined;
3663
+ }[];
3664
+ };
3665
+ id?: string | undefined;
3666
+ room?: string | undefined;
3667
+ content?: any;
3668
+ content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
3669
+ from?: string | undefined;
3670
+ to?: string | undefined;
3671
+ timestamp?: string | undefined;
3672
+ signature?: string | undefined;
3673
+ publicKey?: string | undefined;
3674
+ reasoning?: string | undefined;
3675
+ task_id?: string | undefined;
3676
+ }>]>;
3677
+ export type MessageType = z.infer<typeof MessageTypeSchema>;
3678
+ export type ContentType = z.infer<typeof ContentTypeSchema>;
3679
+ export type ClientType = z.infer<typeof ClientTypeSchema>;
3680
+ export type AgentType = z.infer<typeof AgentTypeSchema>;
3681
+ export type AgentStatus = z.infer<typeof AgentStatusSchema>;
3682
+ export type Capability = z.infer<typeof CapabilitySchema>;
3683
+ export type Command = z.infer<typeof CommandSchema>;
3684
+ export type Room = z.infer<typeof RoomSchema>;
3685
+ export type Agent = z.infer<typeof AgentSchema>;
3686
+ export type BaseMessage = z.infer<typeof BaseMessageSchema>;
3687
+ export type RequestChallengeMessage = z.infer<typeof RequestChallengeMessageSchema>;
3688
+ export type ChallengeMessage = z.infer<typeof ChallengeMessageSchema>;
3689
+ export type CheckCachedAuthMessage = z.infer<typeof CheckCachedAuthMessageSchema>;
3690
+ export type AuthRequiredMessage = z.infer<typeof AuthRequiredMessageSchema>;
3691
+ export type AuthMessage = z.infer<typeof AuthMessageSchema>;
3692
+ export type AuthSuccessMessage = z.infer<typeof AuthSuccessMessageSchema>;
3693
+ export type AuthErrorMessage = z.infer<typeof AuthErrorMessageSchema>;
3694
+ export type RegisterMessage = z.infer<typeof RegisterMessageSchema>;
3695
+ export type RegistrationSuccessMessage = z.infer<typeof RegistrationSuccessMessageSchema>;
3696
+ export type UserMessage = z.infer<typeof UserMessageSchema>;
3697
+ export type TaskMessage = z.infer<typeof TaskMessageSchema>;
3698
+ export type TaskResponseMessage = z.infer<typeof TaskResponseMessageSchema>;
3699
+ export type AgentSelectedMessage = z.infer<typeof AgentSelectedMessageSchema>;
3700
+ export type AgentsListMessage = z.infer<typeof AgentsListMessageSchema>;
3701
+ export type ErrorMessage = z.infer<typeof ErrorMessageSchema>;
3702
+ export type PingMessage = z.infer<typeof PingMessageSchema>;
3703
+ export type PongMessage = z.infer<typeof PongMessageSchema>;
3704
+ export type SubscribeMessage = z.infer<typeof SubscribeMessageSchema>;
3705
+ export type UnsubscribeMessage = z.infer<typeof UnsubscribeMessageSchema>;
3706
+ export type ListRoomsMessage = z.infer<typeof ListRoomsMessageSchema>;
3707
+ export type SubscribeResponse = z.infer<typeof SubscribeResponseSchema>;
3708
+ export type UnsubscribeResponse = z.infer<typeof UnsubscribeResponseSchema>;
3709
+ export type RoomInfo = z.infer<typeof RoomInfoSchema>;
3710
+ export type ListRoomsResponse = z.infer<typeof ListRoomsResponseSchema>;
3711
+ export type AnyMessage = z.infer<typeof AnyMessageSchema>;
3712
+ export declare function isAuthSuccess(msg: unknown): msg is AuthSuccessMessage;
3713
+ export declare function isAuthError(msg: unknown): msg is AuthErrorMessage;
3714
+ export declare function isAuth(msg: unknown): msg is AuthMessage;
3715
+ export declare function isChallenge(msg: unknown): msg is ChallengeMessage;
3716
+ export declare function isAgentSelected(msg: unknown): msg is AgentSelectedMessage;
3717
+ export declare function isTaskResponse(msg: unknown): msg is TaskResponseMessage;
3718
+ export declare function isError(msg: unknown): msg is ErrorMessage;
3719
+ export declare function isAgentsList(msg: unknown): msg is AgentsListMessage;
3720
+ export declare function createRequestChallenge(userType?: ClientType, address?: string): RequestChallengeMessage;
3721
+ export declare function createCheckCachedAuth(address: string): CheckCachedAuthMessage;
3722
+ export declare function createAuth(address: string, signature: string, message: string, userType?: ClientType): AuthMessage;
3723
+ export declare function createUserMessage(content: string, room: string, from?: string): UserMessage;
3724
+ export declare function createPing(): PingMessage;
3725
+ export declare function createSubscribe(roomId: string): SubscribeMessage;
3726
+ export declare function createUnsubscribe(roomId: string): UnsubscribeMessage;
3727
+ export declare function createListRooms(): ListRoomsMessage;
3728
+ export declare function validateMessage(message: unknown): AnyMessage;
3729
+ export declare function safeParseMessage(message: unknown): {
3730
+ success: boolean;
3731
+ data?: AnyMessage;
3732
+ error?: z.ZodError;
3733
+ };
3734
+ //# sourceMappingURL=messages.d.ts.map