@makaio/framework 1.0.0-dev-1781022866275 → 1.0.0-dev-1781023871421

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 (456) hide show
  1. package/dist/.makaio-build.json +5 -0
  2. package/dist/account-identity-DT5NOtFi.mjs +1 -0
  3. package/dist/adapter-C1eI-fGV.mjs +1 -0
  4. package/dist/adapters/acp-client/index.d.mts +6208 -0
  5. package/dist/adapters/acp-client/index.mjs +3 -0
  6. package/dist/adapters/config/index.d.mts +429 -0
  7. package/dist/adapters/config/index.mjs +1 -0
  8. package/dist/adapters/index.d.mts +4202 -0
  9. package/dist/adapters/index.mjs +18 -0
  10. package/dist/adapters/node.d.mts +263 -0
  11. package/dist/adapters/node.mjs +4 -0
  12. package/dist/adapters/stream-session/index.d.mts +1414 -0
  13. package/dist/adapters/stream-session/index.mjs +1 -0
  14. package/dist/adapters/stream-session/testing/index.d.mts +29 -0
  15. package/dist/adapters/stream-session/testing/index.mjs +1 -0
  16. package/dist/artifact-B3npq1cy.mjs +1 -0
  17. package/dist/base-orchestrator-wyumsn3b.d.mts +772 -0
  18. package/dist/bus/index.d.mts +3994 -0
  19. package/dist/bus/index.mjs +1 -0
  20. package/dist/bus-Caz3Jpbc.mjs +1 -0
  21. package/dist/bus-Hb-LGzgb.mjs +2 -0
  22. package/dist/capability-service-CJbmhfv9.mjs +1 -0
  23. package/dist/chunk-DTipWd-i.mjs +1 -0
  24. package/dist/chunk-cpUYaJdV.mjs +1 -0
  25. package/dist/cleanEnvForAdapter-KkYzQa1f.mjs +1 -0
  26. package/dist/client-bx74gm4R.mjs +1 -0
  27. package/dist/clients/index.d.mts +2639 -0
  28. package/dist/clients/index.mjs +2 -0
  29. package/dist/clients-namespace-GmSJpBUV.d.mts +332 -0
  30. package/dist/config-namespace-CPY9YsR8.d.mts +638 -0
  31. package/dist/config-namespace-ncYg2ct_.mjs +1 -0
  32. package/dist/contracts/adapter/index.d.mts +3 -0
  33. package/dist/contracts/adapter/index.mjs +1 -0
  34. package/dist/contracts/adapter/schemas/session-lineage.d.mts +2 -0
  35. package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -0
  36. package/dist/contracts/artifact/index.d.mts +2 -0
  37. package/dist/contracts/artifact/index.mjs +1 -0
  38. package/dist/contracts/client/index.d.mts +3 -0
  39. package/dist/contracts/client/index.mjs +1 -0
  40. package/dist/contracts/common/index.d.mts +2 -0
  41. package/dist/contracts/common/index.mjs +1 -0
  42. package/dist/contracts/config/index.d.mts +455 -0
  43. package/dist/contracts/config/index.mjs +1 -0
  44. package/dist/contracts/extension/index.d.mts +4 -0
  45. package/dist/contracts/extension/index.mjs +1 -0
  46. package/dist/contracts/facet/index.d.mts +2 -0
  47. package/dist/contracts/facet/index.mjs +1 -0
  48. package/dist/contracts/harness/index.d.mts +2 -0
  49. package/dist/contracts/harness/index.mjs +1 -0
  50. package/dist/contracts/host/index.d.mts +2 -0
  51. package/dist/contracts/host/index.mjs +1 -0
  52. package/dist/contracts/index.d.mts +23046 -0
  53. package/dist/contracts/index.mjs +1 -0
  54. package/dist/contracts/materialization/index.d.mts +4 -0
  55. package/dist/contracts/materialization/index.mjs +1 -0
  56. package/dist/contracts/model-registry/index.d.mts +2 -0
  57. package/dist/contracts/model-registry/index.mjs +1 -0
  58. package/dist/contracts/native-session-supervisor/index.d.mts +2 -0
  59. package/dist/contracts/native-session-supervisor/index.mjs +1 -0
  60. package/dist/contracts/platform/index.d.mts +2 -0
  61. package/dist/contracts/platform/index.mjs +1 -0
  62. package/dist/contracts/provider/index.d.mts +3 -0
  63. package/dist/contracts/provider/index.mjs +1 -0
  64. package/dist/contracts/session/index.d.mts +3 -0
  65. package/dist/contracts/session/index.mjs +1 -0
  66. package/dist/contracts/shared/index.d.mts +2 -0
  67. package/dist/contracts/shared/index.mjs +1 -0
  68. package/dist/contracts/skill/index.d.mts +2 -0
  69. package/dist/contracts/skill/index.mjs +1 -0
  70. package/dist/contracts/telemetry/index.d.mts +2 -0
  71. package/dist/contracts/telemetry/index.mjs +1 -0
  72. package/dist/contracts/timeout/index.d.mts +2 -0
  73. package/dist/contracts/timeout/index.mjs +1 -0
  74. package/dist/contracts/toast/index.d.mts +198 -0
  75. package/dist/contracts/toast/index.mjs +1 -0
  76. package/dist/contracts/variant/index.d.mts +2 -0
  77. package/dist/contracts/variant/index.mjs +1 -0
  78. package/dist/core/index.d.mts +1263 -0
  79. package/dist/core/index.mjs +1 -0
  80. package/dist/credential-ref-YWQQENEo.mjs +1 -0
  81. package/dist/cursor-storage-CtVJ3JzB.mjs +1 -0
  82. package/dist/definition-BLCdXGzh.d.mts +383 -0
  83. package/dist/definition-CrgHIpTK.d.mts +60 -0
  84. package/dist/definition-DZMXOnjX.mjs +1 -0
  85. package/dist/definition-pkJ6szUl.d.mts +158 -0
  86. package/dist/drizzle-Eq8W1EbD.mjs +1 -0
  87. package/dist/event-Ca2yUf5i.mjs +1 -0
  88. package/dist/execution-target-CRPTfZlc.mjs +1 -0
  89. package/dist/extension-C-4BHMRI.mjs +1 -0
  90. package/dist/extension-CpIUgBKI.mjs +1 -0
  91. package/dist/extension-namespace-cMh_mMiL.mjs +1 -0
  92. package/dist/facet-BuwhrThl.mjs +1 -0
  93. package/dist/filesystem-service-B8rhBRgB.mjs +1 -0
  94. package/dist/filesystem-service-p_iJVHd4.d.mts +66 -0
  95. package/dist/git/index.d.mts +210 -0
  96. package/dist/git/index.mjs +18 -0
  97. package/dist/globby-rtWVaFHv.mjs +41 -0
  98. package/dist/handlers-CkTsQLra.mjs +41 -0
  99. package/dist/harness-BRCMcvQN.mjs +1 -0
  100. package/dist/hooks/index.d.mts +423 -0
  101. package/dist/hooks/index.mjs +1 -0
  102. package/dist/host-Br9VuOyr.mjs +1 -0
  103. package/dist/identity-Cz2IeEtm.mjs +1 -0
  104. package/dist/index-472sOmsW.d.mts +218 -0
  105. package/dist/index-8SZkg7s6.d.mts +353 -0
  106. package/dist/index-B3PK4FIn.d.mts +5116 -0
  107. package/dist/index-B80L4YqA.d.mts +180 -0
  108. package/dist/index-BFg9BUpx.d.mts +355 -0
  109. package/dist/index-BGfWS6GE.d.mts +483 -0
  110. package/dist/index-BVgfS-AJ.d.mts +109 -0
  111. package/dist/index-B_zQC98V.d.mts +995 -0
  112. package/dist/index-Bh_Ne7LF.d.mts +1008 -0
  113. package/dist/index-Bvb2mMH6.d.mts +1730 -0
  114. package/dist/index-CCGVh9BF2.d.mts +749 -0
  115. package/dist/index-CGmcS0Ma.d.mts +412 -0
  116. package/dist/index-CHQ1SqT0.d.mts +117 -0
  117. package/dist/index-CLpjm52M.d.mts +183 -0
  118. package/dist/index-Caig6TeF.d.mts +6746 -0
  119. package/dist/index-CelJCBjk.d.mts +2992 -0
  120. package/dist/index-ChunCFu4.d.mts +11 -0
  121. package/dist/index-Cm0dUkWL.d.mts +4651 -0
  122. package/dist/index-CokQYGVP.d.mts +184 -0
  123. package/dist/index-Cs0kZXIz2.d.mts +37 -0
  124. package/dist/index-D5d5HeWI2.d.mts +259 -0
  125. package/dist/index-D90OmGmV.d.mts +389 -0
  126. package/dist/index-D9MwJ2Q8.d.mts +67 -0
  127. package/dist/index-DANINzMu.d.mts +40 -0
  128. package/dist/index-DBw-89vC2.d.mts +3640 -0
  129. package/dist/index-DGBu6bHi2.d.mts +438 -0
  130. package/dist/index-DKC62dY5.d.mts +146 -0
  131. package/dist/index-DKia0MX1.d.mts +43 -0
  132. package/dist/index-DMKnON5s.d.mts +28 -0
  133. package/dist/index-DUaw0Dw8.d.mts +14747 -0
  134. package/dist/index-De3kPhlN.d.mts +72 -0
  135. package/dist/index-L4GjJDKb.d.mts +822 -0
  136. package/dist/index-U-A8eyGT.d.mts +1490 -0
  137. package/dist/index-eemAKwsB.d.mts +362 -0
  138. package/dist/index-mNec7V-9.d.mts +1075 -0
  139. package/dist/index-soFznFCy2.d.mts +89 -0
  140. package/dist/index-vtXJuwrz.d.mts +40 -0
  141. package/dist/index-x_lVDp_J.d.mts +134 -0
  142. package/dist/json-value-CmhSGMLv.mjs +1 -0
  143. package/dist/kernel/cli/index.d.mts +143 -0
  144. package/dist/kernel/cli/index.mjs +1 -0
  145. package/dist/kernel/cli/schemas.d.mts +64 -0
  146. package/dist/kernel/cli/schemas.mjs +1 -0
  147. package/dist/kernel/extension/index.d.mts +2 -0
  148. package/dist/kernel/extension/index.mjs +1 -0
  149. package/dist/kernel/index.d.mts +296 -0
  150. package/dist/kernel/index.mjs +1 -0
  151. package/dist/kernel/namespace/index.d.mts +2 -0
  152. package/dist/kernel/namespace/index.mjs +1 -0
  153. package/dist/kernel/observability/index.d.mts +2 -0
  154. package/dist/kernel/observability/index.mjs +1 -0
  155. package/dist/kernel/providers/index.d.mts +2 -0
  156. package/dist/kernel/providers/index.mjs +1 -0
  157. package/dist/kernel/window/index.d.mts +2 -0
  158. package/dist/kernel/window/index.mjs +1 -0
  159. package/dist/materialization-CuUBu4XI.mjs +1 -0
  160. package/dist/model-registry-CfXytvzx.mjs +1 -0
  161. package/dist/model-registry-Scn_MC2d.mjs +1 -0
  162. package/dist/namespace-5QQqbF-B.d.mts +3133 -0
  163. package/dist/namespace-BM7Djng9.d.mts +189 -0
  164. package/dist/namespace-BoD94mrN.mjs +1 -0
  165. package/dist/namespace-BwzZJqTV.mjs +1 -0
  166. package/dist/namespace-CFLAmQfh.mjs +1 -0
  167. package/dist/namespace-CTm3nEvh.d.mts +51 -0
  168. package/dist/namespace-CaaNnKcR.d.mts +921 -0
  169. package/dist/namespace-CaoZ3S78.d.mts +43 -0
  170. package/dist/namespace-CxhsoFUP.d.mts +607 -0
  171. package/dist/namespace-DD8Oiqo7.d.mts +580 -0
  172. package/dist/namespace-DLovh2Ws.d.mts +1313 -0
  173. package/dist/namespace-DgqkaOVu.d.mts +768 -0
  174. package/dist/namespace-DkRgbZYn.mjs +1 -0
  175. package/dist/namespace-Dr8K0MCp.d.mts +2047 -0
  176. package/dist/namespace-DuXK5AYN.mjs +1 -0
  177. package/dist/namespace-EQniz-Aw.d.mts +142 -0
  178. package/dist/namespace-IV1QK__V.d.mts +159 -0
  179. package/dist/namespace-LViZ-EQk.mjs +1 -0
  180. package/dist/namespace-TyiTsLFv.d.mts +3020 -0
  181. package/dist/namespace-Yna5-Pws.mjs +1 -0
  182. package/dist/namespace-xcmbQlxh.mjs +1 -0
  183. package/dist/native-session-supervisor-B1TnaPUF.mjs +1 -0
  184. package/dist/node/bus-server/index.d.mts +178 -0
  185. package/dist/node/bus-server/index.mjs +1 -0
  186. package/dist/node/bus-server/server-lifecycle.d.mts +2 -0
  187. package/dist/node/bus-server/server-lifecycle.mjs +1 -0
  188. package/dist/node/machine-identity/index.d.mts +85 -0
  189. package/dist/node/machine-identity/index.mjs +3 -0
  190. package/dist/node/transports/index.d.mts +1945 -0
  191. package/dist/node/transports/index.mjs +2 -0
  192. package/dist/orchestrator-shared-CIDiFJMD.mjs +1 -0
  193. package/dist/orchestrator-shared-Dfa7FMyw.d.mts +249 -0
  194. package/dist/package-DKVlsMP3.mjs +1 -0
  195. package/dist/platform-DZ7z-wXD.mjs +1 -0
  196. package/dist/profile-6ynCD5k3.mjs +1 -0
  197. package/dist/provider-context-CK6B4X_8.mjs +1 -0
  198. package/dist/providers/index.d.mts +135 -0
  199. package/dist/providers/index.mjs +1 -0
  200. package/dist/providers-namespace-DSEpli4A.d.mts +583 -0
  201. package/dist/providers-u8i15co9.mjs +1 -0
  202. package/dist/schema-CoyE6mPt.mjs +1 -0
  203. package/dist/schema-M5YTvSAG.d.mts +949 -0
  204. package/dist/schema-e0wU_lcV.mjs +1 -0
  205. package/dist/schema-introspection-Dn1jWQs1.mjs +1 -0
  206. package/dist/schemas-Bd0OjRQf.d.mts +46 -0
  207. package/dist/schemas-C46QfKzv.d.mts +459 -0
  208. package/dist/schemas-CDBSjg7o.d.mts +237 -0
  209. package/dist/schemas-CR1Rripy.mjs +1 -0
  210. package/dist/schemas-CVvwIfG4.mjs +1 -0
  211. package/dist/schemas-CaLhkkLn.mjs +1 -0
  212. package/dist/schemas-ClOOT1W6.d.mts +174 -0
  213. package/dist/schemas-DATniTHb.d.mts +182 -0
  214. package/dist/schemas-DE-GNmSD.mjs +1 -0
  215. package/dist/schemas-DVF1A4DF.d.mts +160 -0
  216. package/dist/schemas-DaRSfYLf.d.mts +73 -0
  217. package/dist/schemas-DiYVzG6e.d.mts +315 -0
  218. package/dist/schemas-hSrzflwZ.mjs +1 -0
  219. package/dist/schemas-j7ivZ2HI.d.mts +944 -0
  220. package/dist/schemas-jFe1AuI-.mjs +1 -0
  221. package/dist/schemas-wg_6PAdV.d.mts +153 -0
  222. package/dist/scoped-bus-04pwo1uM.mjs +1 -0
  223. package/dist/server-lifecycle-FXTPW39-.mjs +1 -0
  224. package/dist/server-lifecycle-YoSGFGnU.d.mts +160 -0
  225. package/dist/service-base/index.d.mts +98 -0
  226. package/dist/service-base/index.mjs +1 -0
  227. package/dist/services/adapter-runtime/index.d.mts +4 -0
  228. package/dist/services/adapter-runtime/index.mjs +1 -0
  229. package/dist/services/adapter-runtime/namespace.d.mts +2 -0
  230. package/dist/services/adapter-runtime/namespace.mjs +1 -0
  231. package/dist/services/adapter-runtime/schemas.d.mts +2 -0
  232. package/dist/services/adapter-runtime/schemas.mjs +1 -0
  233. package/dist/services/adapter-subsystem/index.d.mts +3 -0
  234. package/dist/services/adapter-subsystem/index.mjs +1 -0
  235. package/dist/services/adapter-subsystem/namespace.d.mts +2 -0
  236. package/dist/services/adapter-subsystem/namespace.mjs +1 -0
  237. package/dist/services/agent-runtime/index.d.mts +3 -0
  238. package/dist/services/agent-runtime/index.mjs +1 -0
  239. package/dist/services/agent-runtime/namespace.d.mts +2 -0
  240. package/dist/services/agent-runtime/namespace.mjs +1 -0
  241. package/dist/services/agent-runtime/schemas.d.mts +2 -0
  242. package/dist/services/agent-runtime/schemas.mjs +1 -0
  243. package/dist/services/capability/index.d.mts +2 -0
  244. package/dist/services/capability/index.mjs +1 -0
  245. package/dist/services/cli-detection/namespace.d.mts +56 -0
  246. package/dist/services/cli-detection/namespace.mjs +1 -0
  247. package/dist/services/codebase/index.d.mts +3 -0
  248. package/dist/services/codebase/index.mjs +1 -0
  249. package/dist/services/codebase/namespace.d.mts +2 -0
  250. package/dist/services/codebase/namespace.mjs +1 -0
  251. package/dist/services/codebase/schemas.d.mts +2 -0
  252. package/dist/services/codebase/schemas.mjs +1 -0
  253. package/dist/services/compression/index.d.mts +3 -0
  254. package/dist/services/compression/index.mjs +1 -0
  255. package/dist/services/compression/namespace.d.mts +2 -0
  256. package/dist/services/compression/namespace.mjs +1 -0
  257. package/dist/services/compression/schemas.d.mts +2 -0
  258. package/dist/services/compression/schemas.mjs +1 -0
  259. package/dist/services/context-rules/index.d.mts +412 -0
  260. package/dist/services/context-rules/index.mjs +1 -0
  261. package/dist/services/credential-change/index.d.mts +17 -0
  262. package/dist/services/credential-change/index.mjs +1 -0
  263. package/dist/services/definition/index.d.mts +2 -0
  264. package/dist/services/definition/index.mjs +1 -0
  265. package/dist/services/definition/namespace.d.mts +71 -0
  266. package/dist/services/definition/namespace.mjs +1 -0
  267. package/dist/services/definition/schemas.d.mts +38 -0
  268. package/dist/services/definition/schemas.mjs +1 -0
  269. package/dist/services/dialog/namespace.d.mts +105 -0
  270. package/dist/services/dialog/namespace.mjs +1 -0
  271. package/dist/services/dialog/schemas.d.mts +109 -0
  272. package/dist/services/dialog/schemas.mjs +1 -0
  273. package/dist/services/execution-target/index.d.mts +4 -0
  274. package/dist/services/execution-target/index.mjs +1 -0
  275. package/dist/services/execution-target/namespace.d.mts +2 -0
  276. package/dist/services/execution-target/namespace.mjs +1 -0
  277. package/dist/services/execution-target/schemas.d.mts +2 -0
  278. package/dist/services/execution-target/schemas.mjs +1 -0
  279. package/dist/services/filesystem/index.d.mts +3 -0
  280. package/dist/services/filesystem/index.mjs +1 -0
  281. package/dist/services/filesystem/namespace.d.mts +432 -0
  282. package/dist/services/filesystem/namespace.mjs +1 -0
  283. package/dist/services/filesystem/schemas.d.mts +240 -0
  284. package/dist/services/filesystem/schemas.mjs +1 -0
  285. package/dist/services/git/namespace.d.mts +1163 -0
  286. package/dist/services/git/namespace.mjs +1 -0
  287. package/dist/services/git/schemas.d.mts +932 -0
  288. package/dist/services/git/schemas.mjs +1 -0
  289. package/dist/services/harness/index.d.mts +861 -0
  290. package/dist/services/harness/index.mjs +1 -0
  291. package/dist/services/harness/storage/schema.d.mts +424 -0
  292. package/dist/services/harness/storage/schema.mjs +1 -0
  293. package/dist/services/index.d.mts +6185 -0
  294. package/dist/services/index.mjs +1 -0
  295. package/dist/services/local-notification/index.d.mts +25 -0
  296. package/dist/services/local-notification/index.mjs +1 -0
  297. package/dist/services/local-notification/namespace.d.mts +73 -0
  298. package/dist/services/local-notification/namespace.mjs +1 -0
  299. package/dist/services/local-notification/schemas.d.mts +88 -0
  300. package/dist/services/local-notification/schemas.mjs +1 -0
  301. package/dist/services/log-import/browser.d.mts +3 -0
  302. package/dist/services/log-import/browser.mjs +1 -0
  303. package/dist/services/log-import/index.d.mts +274 -0
  304. package/dist/services/log-import/index.mjs +2 -0
  305. package/dist/services/log-import/log-import.d.mts +3 -0
  306. package/dist/services/log-import/log-import.mjs +1 -0
  307. package/dist/services/log-import/namespace.d.mts +327 -0
  308. package/dist/services/log-import/namespace.mjs +1 -0
  309. package/dist/services/log-import/schemas.d.mts +217 -0
  310. package/dist/services/log-import/schemas.mjs +1 -0
  311. package/dist/services/model-registry/index.d.mts +2 -0
  312. package/dist/services/model-registry/index.mjs +1 -0
  313. package/dist/services/preferences/index.d.mts +3 -0
  314. package/dist/services/preferences/index.mjs +1 -0
  315. package/dist/services/preferences/schemas.d.mts +2 -0
  316. package/dist/services/preferences/schemas.mjs +1 -0
  317. package/dist/services/preferences/storage-namespace.d.mts +3 -0
  318. package/dist/services/preferences/storage-namespace.mjs +1 -0
  319. package/dist/services/provider-context/index.d.mts +2 -0
  320. package/dist/services/provider-context/index.mjs +1 -0
  321. package/dist/services/provider-runtime/index.d.mts +136 -0
  322. package/dist/services/provider-runtime/index.mjs +1 -0
  323. package/dist/services/session/handlers/index.d.mts +2 -0
  324. package/dist/services/session/handlers/index.mjs +1 -0
  325. package/dist/services/session/index.d.mts +10 -0
  326. package/dist/services/session/index.mjs +1 -0
  327. package/dist/services/session/messages/namespace.d.mts +2 -0
  328. package/dist/services/session/messages/namespace.mjs +1 -0
  329. package/dist/services/session/orchestrator-testing/index.d.mts +2 -0
  330. package/dist/services/session/orchestrator-testing/index.mjs +1 -0
  331. package/dist/services/session/session-events/namespace.d.mts +2 -0
  332. package/dist/services/session/session-events/namespace.mjs +1 -0
  333. package/dist/services/session/storage/namespace.d.mts +2 -0
  334. package/dist/services/session/storage/namespace.mjs +1 -0
  335. package/dist/services/session/storage/schema.d.mts +2 -0
  336. package/dist/services/session/storage/schema.mjs +1 -0
  337. package/dist/services/session/testing/index.d.mts +35 -0
  338. package/dist/services/session/testing/index.mjs +65 -0
  339. package/dist/services/session/testing/orchestrator-shared.d.mts +2 -0
  340. package/dist/services/session/testing/orchestrator-shared.mjs +1 -0
  341. package/dist/services/session/turns/namespace.d.mts +2 -0
  342. package/dist/services/session/turns/namespace.mjs +1 -0
  343. package/dist/services/session-editor/index.d.mts +119 -0
  344. package/dist/services/session-editor/index.mjs +1 -0
  345. package/dist/services/settings/index.d.mts +47 -0
  346. package/dist/services/settings/index.mjs +1 -0
  347. package/dist/services/settings/namespace.d.mts +663 -0
  348. package/dist/services/settings/namespace.mjs +1 -0
  349. package/dist/services/settings/storage/clients-namespace.d.mts +2 -0
  350. package/dist/services/settings/storage/clients-namespace.mjs +1 -0
  351. package/dist/services/settings/storage/extension-configs/namespace.d.mts +184 -0
  352. package/dist/services/settings/storage/extension-configs/namespace.mjs +1 -0
  353. package/dist/services/settings/storage/index.d.mts +4 -0
  354. package/dist/services/settings/storage/index.mjs +1 -0
  355. package/dist/services/settings/storage/providers-namespace.d.mts +2 -0
  356. package/dist/services/settings/storage/providers-namespace.mjs +1 -0
  357. package/dist/services/subagent/index.d.mts +2 -0
  358. package/dist/services/subagent/index.mjs +1 -0
  359. package/dist/services/subagent-template/index.d.mts +3 -0
  360. package/dist/services/subagent-template/index.mjs +1 -0
  361. package/dist/services/subagent-template/namespace.d.mts +2 -0
  362. package/dist/services/subagent-template/namespace.mjs +1 -0
  363. package/dist/services/subagent-template/schemas.d.mts +2 -0
  364. package/dist/services/subagent-template/schemas.mjs +1 -0
  365. package/dist/services/tool-approval/index.d.mts +2 -0
  366. package/dist/services/tool-approval/index.mjs +1 -0
  367. package/dist/services/tools/index.d.mts +2 -0
  368. package/dist/services/tools/index.mjs +1 -0
  369. package/dist/services/tray-menu/index.d.mts +4 -0
  370. package/dist/services/tray-menu/index.mjs +1 -0
  371. package/dist/services/tray-menu/namespace.d.mts +2 -0
  372. package/dist/services/tray-menu/namespace.mjs +1 -0
  373. package/dist/services/tray-menu/schemas.d.mts +2 -0
  374. package/dist/services/tray-menu/schemas.mjs +1 -0
  375. package/dist/services/turn/index.d.mts +2 -0
  376. package/dist/services/turn/index.mjs +1 -0
  377. package/dist/services/turn/namespace.d.mts +2 -0
  378. package/dist/services/turn/namespace.mjs +1 -0
  379. package/dist/services/turn/schemas.d.mts +335 -0
  380. package/dist/services/turn/schemas.mjs +1 -0
  381. package/dist/session-BoldSdNZ2.mjs +134 -0
  382. package/dist/session-DuVOYctZ.mjs +1 -0
  383. package/dist/session-lineage-CRsc9g1x.d.mts +65 -0
  384. package/dist/shared-DpOEfD8F.mjs +1 -0
  385. package/dist/shared-schemas-CPShiLNp.mjs +1 -0
  386. package/dist/skill-CQO4mDqK.mjs +1 -0
  387. package/dist/storage/drizzle/client.d.mts +78 -0
  388. package/dist/storage/drizzle/client.mjs +1 -0
  389. package/dist/storage/drizzle/index.d.mts +137 -0
  390. package/dist/storage/drizzle/index.mjs +1 -0
  391. package/dist/storage/handlers/drizzle/index.d.mts +2 -0
  392. package/dist/storage/handlers/drizzle/index.mjs +1 -0
  393. package/dist/storage/handlers/index.d.mts +33 -0
  394. package/dist/storage/handlers/index.mjs +1 -0
  395. package/dist/storage/index.d.mts +192 -0
  396. package/dist/storage/index.mjs +1 -0
  397. package/dist/storage-namespace-BXkoh5Sy.d.mts +221 -0
  398. package/dist/storage-namespace-DWsYLAXa.mjs +1 -0
  399. package/dist/storage-namespace-definition-Bkx5rSto.d.mts +17 -0
  400. package/dist/storage-namespace-definition-CqSdsuCC.mjs +1 -0
  401. package/dist/style.css +3782 -0
  402. package/dist/telemetry-CvdLBWuk.mjs +1 -0
  403. package/dist/testing/drizzle-harness.d.mts +130 -0
  404. package/dist/testing/drizzle-harness.mjs +1 -0
  405. package/dist/testing/index.d.mts +106 -0
  406. package/dist/testing/index.mjs +1 -0
  407. package/dist/timeout-XsYIOKrc.mjs +1 -0
  408. package/dist/tool-approval-service-BvZWhYZp.mjs +1 -0
  409. package/dist/tools/index.d.mts +835 -0
  410. package/dist/tools/index.mjs +1 -0
  411. package/dist/tools/testing/index.d.mts +53 -0
  412. package/dist/tools/testing/index.mjs +1 -0
  413. package/dist/tools-D-luYcDw.mjs +1431 -0
  414. package/dist/tray-menu-service-DuXq5k22.mjs +1 -0
  415. package/dist/types-BCMUtBj1.d.mts +1106 -0
  416. package/dist/types-C2Ob9zz_.d.mts +128 -0
  417. package/dist/types-CCdqjeuH.d.mts +262 -0
  418. package/dist/types-DZHvOc_Q.d.mts +305 -0
  419. package/dist/types-Dy3YTcTF.d.mts +6777 -0
  420. package/dist/types-MfJZ67e9.d.mts +315 -0
  421. package/dist/types-dyP-bXXE.d.mts +31 -0
  422. package/dist/ui-components/index.d.mts +2342 -0
  423. package/dist/ui-components/index.mjs +8 -0
  424. package/dist/ui-config-9bDRwFZr.mjs +1 -0
  425. package/dist/ui-hooks/index.d.mts +1915 -0
  426. package/dist/ui-hooks/index.mjs +1 -0
  427. package/dist/ui-kernel/index.d.mts +2793 -0
  428. package/dist/ui-kernel/index.mjs +1 -0
  429. package/dist/ui-kernel/pages/namespace.d.mts +88 -0
  430. package/dist/ui-kernel/pages/namespace.mjs +1 -0
  431. package/dist/ui-kernel/pages/schemas.d.mts +2 -0
  432. package/dist/ui-kernel/pages/schemas.mjs +1 -0
  433. package/dist/ui-views/index.d.mts +487 -0
  434. package/dist/ui-views/index.mjs +30 -0
  435. package/dist/utils/health-probe.d.mts +26 -0
  436. package/dist/utils/health-probe.mjs +1 -0
  437. package/dist/utils/index.d.mts +262 -0
  438. package/dist/utils/index.mjs +2 -0
  439. package/dist/utils/keychain.d.mts +31 -0
  440. package/dist/utils/keychain.mjs +1 -0
  441. package/dist/utils/project-manifest.d.mts +130 -0
  442. package/dist/utils/project-manifest.mjs +1 -0
  443. package/dist/utils/resolve-package-root.d.mts +12 -0
  444. package/dist/utils/resolve-package-root.mjs +1 -0
  445. package/dist/utils/scope-paths.d.mts +33 -0
  446. package/dist/utils/scope-paths.mjs +1 -0
  447. package/dist/utils/workspace-packages.d.mts +59 -0
  448. package/dist/utils/workspace-packages.mjs +1 -0
  449. package/dist/utils/workspace-root.d.mts +24 -0
  450. package/dist/utils/workspace-root.mjs +2 -0
  451. package/dist/variant-CT6XBP6T.mjs +1 -0
  452. package/dist/version-BeT3ASEe.mjs +1 -0
  453. package/dist/visibility-Cb62p9bv.mjs +1 -0
  454. package/dist/window-registry-CBcrGTv4.d.mts +130 -0
  455. package/dist/window-registry-DW-dKRjQ.mjs +1 -0
  456. package/package.json +1 -1
@@ -0,0 +1,3020 @@
1
+ import * as _$zod from "zod";
2
+ import * as _$_makaio_core0 from "@makaio/framework/core";
3
+ import { SessionEventStorageSubjects } from "@makaio/framework/contracts";
4
+ import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
5
+ import * as _$zod_v4_core0 from "zod/v4/core";
6
+
7
+ //#region services/core/src/session/session-events/namespace.d.ts
8
+ /**
9
+ * Session event storage namespace with Drizzle extension.
10
+ *
11
+ * Bus subjects are defined in `@makaio/contracts` (source of truth).
12
+ * This namespace extends the contracts definition with the Drizzle
13
+ * table schema so handlers can access the `sessionEvents` table.
14
+ * @example
15
+ * ```typescript
16
+ * import { SessionEventStorageNamespace, SessionEventStorageSubjects } from '@makaio/framework/services/session';
17
+ *
18
+ * // Use bus subjects
19
+ * const { events } = await bus.request(SessionEventStorageSubjects.getEvents, {
20
+ * sessionId: '123',
21
+ * });
22
+ *
23
+ * // Access drizzle schemas for custom queries
24
+ * const { sessionEvents } = SessionEventStorageNamespace.extensions.drizzle;
25
+ * ```
26
+ */
27
+ declare const SessionEventStorageNamespace$1: {
28
+ extensions: {
29
+ drizzle: {
30
+ sessionEvents: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
31
+ name: "session_events";
32
+ schema: undefined;
33
+ columns: {
34
+ id: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
35
+ name: "id";
36
+ tableName: "session_events";
37
+ dataType: "number";
38
+ columnType: "SQLiteInteger";
39
+ data: number;
40
+ driverParam: number;
41
+ notNull: true;
42
+ hasDefault: true;
43
+ isPrimaryKey: true;
44
+ isAutoincrement: false;
45
+ hasRuntimeDefault: false;
46
+ enumValues: undefined;
47
+ baseColumn: never;
48
+ identity: undefined;
49
+ generated: undefined;
50
+ }, {}, {}>;
51
+ sessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
52
+ name: "session_id";
53
+ tableName: "session_events";
54
+ dataType: "string";
55
+ columnType: "SQLiteText";
56
+ data: string;
57
+ driverParam: string;
58
+ notNull: true;
59
+ hasDefault: false;
60
+ isPrimaryKey: false;
61
+ isAutoincrement: false;
62
+ hasRuntimeDefault: false;
63
+ enumValues: [string, ...string[]];
64
+ baseColumn: never;
65
+ identity: undefined;
66
+ generated: undefined;
67
+ }, {}, {
68
+ length: number | undefined;
69
+ }>;
70
+ eventId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
71
+ name: "event_id";
72
+ tableName: "session_events";
73
+ dataType: "string";
74
+ columnType: "SQLiteText";
75
+ data: string;
76
+ driverParam: string;
77
+ notNull: true;
78
+ hasDefault: false;
79
+ isPrimaryKey: false;
80
+ isAutoincrement: false;
81
+ hasRuntimeDefault: false;
82
+ enumValues: [string, ...string[]];
83
+ baseColumn: never;
84
+ identity: undefined;
85
+ generated: undefined;
86
+ }, {}, {
87
+ length: number | undefined;
88
+ }>;
89
+ timestamp: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
90
+ name: "timestamp";
91
+ tableName: "session_events";
92
+ dataType: "number";
93
+ columnType: "SQLiteInteger";
94
+ data: number;
95
+ driverParam: number;
96
+ notNull: true;
97
+ hasDefault: false;
98
+ isPrimaryKey: false;
99
+ isAutoincrement: false;
100
+ hasRuntimeDefault: false;
101
+ enumValues: undefined;
102
+ baseColumn: never;
103
+ identity: undefined;
104
+ generated: undefined;
105
+ }, {}, {}>;
106
+ type: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
107
+ name: "type";
108
+ tableName: "session_events";
109
+ dataType: "string";
110
+ columnType: "SQLiteText";
111
+ data: string;
112
+ driverParam: string;
113
+ notNull: true;
114
+ hasDefault: false;
115
+ isPrimaryKey: false;
116
+ isAutoincrement: false;
117
+ hasRuntimeDefault: false;
118
+ enumValues: [string, ...string[]];
119
+ baseColumn: never;
120
+ identity: undefined;
121
+ generated: undefined;
122
+ }, {}, {
123
+ length: number | undefined;
124
+ }>;
125
+ agentId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
126
+ name: "agent_id";
127
+ tableName: "session_events";
128
+ dataType: "string";
129
+ columnType: "SQLiteText";
130
+ data: string;
131
+ driverParam: string;
132
+ notNull: false;
133
+ hasDefault: false;
134
+ isPrimaryKey: false;
135
+ isAutoincrement: false;
136
+ hasRuntimeDefault: false;
137
+ enumValues: [string, ...string[]];
138
+ baseColumn: never;
139
+ identity: undefined;
140
+ generated: undefined;
141
+ }, {}, {
142
+ length: number | undefined;
143
+ }>;
144
+ adapterId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
145
+ name: "adapter_id";
146
+ tableName: "session_events";
147
+ dataType: "string";
148
+ columnType: "SQLiteText";
149
+ data: string;
150
+ driverParam: string;
151
+ notNull: false;
152
+ hasDefault: false;
153
+ isPrimaryKey: false;
154
+ isAutoincrement: false;
155
+ hasRuntimeDefault: false;
156
+ enumValues: [string, ...string[]];
157
+ baseColumn: never;
158
+ identity: undefined;
159
+ generated: undefined;
160
+ }, {}, {
161
+ length: number | undefined;
162
+ }>;
163
+ originatingMessageId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
164
+ name: "originating_message_id";
165
+ tableName: "session_events";
166
+ dataType: "string";
167
+ columnType: "SQLiteText";
168
+ data: string;
169
+ driverParam: string;
170
+ notNull: false;
171
+ hasDefault: false;
172
+ isPrimaryKey: false;
173
+ isAutoincrement: false;
174
+ hasRuntimeDefault: false;
175
+ enumValues: [string, ...string[]];
176
+ baseColumn: never;
177
+ identity: undefined;
178
+ generated: undefined;
179
+ }, {}, {
180
+ length: number | undefined;
181
+ }>;
182
+ messageId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
183
+ name: "message_id";
184
+ tableName: "session_events";
185
+ dataType: "string";
186
+ columnType: "SQLiteText";
187
+ data: string;
188
+ driverParam: string;
189
+ notNull: false;
190
+ hasDefault: false;
191
+ isPrimaryKey: false;
192
+ isAutoincrement: false;
193
+ hasRuntimeDefault: false;
194
+ enumValues: [string, ...string[]];
195
+ baseColumn: never;
196
+ identity: undefined;
197
+ generated: undefined;
198
+ }, {}, {
199
+ length: number | undefined;
200
+ }>;
201
+ turnId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
202
+ name: "turn_id";
203
+ tableName: "session_events";
204
+ dataType: "string";
205
+ columnType: "SQLiteText";
206
+ data: string;
207
+ driverParam: string;
208
+ notNull: false;
209
+ hasDefault: false;
210
+ isPrimaryKey: false;
211
+ isAutoincrement: false;
212
+ hasRuntimeDefault: false;
213
+ enumValues: [string, ...string[]];
214
+ baseColumn: never;
215
+ identity: undefined;
216
+ generated: undefined;
217
+ }, {}, {
218
+ length: number | undefined;
219
+ }>;
220
+ contentText: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
221
+ name: "content_text";
222
+ tableName: "session_events";
223
+ dataType: "string";
224
+ columnType: "SQLiteText";
225
+ data: string;
226
+ driverParam: string;
227
+ notNull: false;
228
+ hasDefault: false;
229
+ isPrimaryKey: false;
230
+ isAutoincrement: false;
231
+ hasRuntimeDefault: false;
232
+ enumValues: [string, ...string[]];
233
+ baseColumn: never;
234
+ identity: undefined;
235
+ generated: undefined;
236
+ }, {}, {
237
+ length: number | undefined;
238
+ }>;
239
+ payload: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
240
+ name: "payload";
241
+ tableName: "session_events";
242
+ dataType: "string";
243
+ columnType: "SQLiteText";
244
+ data: string;
245
+ driverParam: string;
246
+ notNull: true;
247
+ hasDefault: false;
248
+ isPrimaryKey: false;
249
+ isAutoincrement: false;
250
+ hasRuntimeDefault: false;
251
+ enumValues: [string, ...string[]];
252
+ baseColumn: never;
253
+ identity: undefined;
254
+ generated: undefined;
255
+ }, {}, {
256
+ length: number | undefined;
257
+ }>;
258
+ };
259
+ dialect: "sqlite";
260
+ }>;
261
+ };
262
+ };
263
+ domain: "sessionEvent";
264
+ name: "storage:sessionEvent";
265
+ subjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"storage:sessionEvent", {
266
+ append: {
267
+ request: _$zod.ZodObject<{
268
+ event: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
269
+ sessionId: _$zod.ZodString;
270
+ eventId: _$zod.ZodString;
271
+ timestamp: _$zod.ZodNumber;
272
+ type: _$zod.ZodLiteral<"agent.added">;
273
+ payload: _$zod.ZodObject<{
274
+ sessionId: _$zod.ZodString;
275
+ adapterSessionId: _$zod.ZodString;
276
+ agentId: _$zod.ZodString;
277
+ adapterId: _$zod.ZodString;
278
+ adapterName: _$zod.ZodString;
279
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
280
+ lead: "lead";
281
+ member: "member";
282
+ }>>;
283
+ model: _$zod.ZodOptional<_$zod.ZodString>;
284
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
285
+ }, _$zod_v4_core0.$strip>;
286
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
287
+ sessionId: _$zod.ZodString;
288
+ eventId: _$zod.ZodString;
289
+ timestamp: _$zod.ZodNumber;
290
+ type: _$zod.ZodLiteral<"user_message.sent">;
291
+ payload: _$zod.ZodObject<{
292
+ sessionId: _$zod.ZodString;
293
+ turnId: _$zod.ZodString;
294
+ turnNumber: _$zod.ZodNumber;
295
+ messageId: _$zod.ZodString;
296
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
297
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
298
+ user: "user";
299
+ assistant: "assistant";
300
+ system: "system";
301
+ }>>;
302
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
303
+ type: _$zod.ZodLiteral<"text">;
304
+ content: _$zod.ZodString;
305
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
306
+ type: _$zod.ZodLiteral<"image">;
307
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
308
+ type: _$zod.ZodLiteral<"base64">;
309
+ data: _$zod.ZodString;
310
+ mimeType: _$zod.ZodString;
311
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
312
+ type: _$zod.ZodLiteral<"url">;
313
+ url: _$zod.ZodString;
314
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
315
+ }, _$zod_v4_core0.$strip>], "type">;
316
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
317
+ type: _$zod.ZodLiteral<"document">;
318
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
319
+ type: _$zod.ZodLiteral<"base64">;
320
+ data: _$zod.ZodString;
321
+ mimeType: _$zod.ZodString;
322
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
323
+ type: _$zod.ZodLiteral<"url">;
324
+ url: _$zod.ZodString;
325
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
326
+ }, _$zod_v4_core0.$strip>], "type">;
327
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
328
+ type: _$zod.ZodLiteral<"attachment">;
329
+ fileName: _$zod.ZodString;
330
+ filePath: _$zod.ZodString;
331
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
332
+ type: _$zod.ZodLiteral<"base64">;
333
+ data: _$zod.ZodString;
334
+ mimeType: _$zod.ZodString;
335
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
336
+ type: _$zod.ZodLiteral<"url">;
337
+ url: _$zod.ZodString;
338
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
339
+ }, _$zod_v4_core0.$strip>], "type">;
340
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
341
+ attachmentType: _$zod.ZodEnum<{
342
+ file: "file";
343
+ directory: "directory";
344
+ }>;
345
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
346
+ type: _$zod.ZodLiteral<"reasoning">;
347
+ content: _$zod.ZodString;
348
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
349
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
350
+ type: _$zod.ZodLiteral<"tool_call">;
351
+ toolCallId: _$zod.ZodString;
352
+ name: _$zod.ZodString;
353
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
354
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
355
+ type: _$zod.ZodLiteral<"tool_output">;
356
+ toolCallId: _$zod.ZodString;
357
+ output: _$zod.ZodString;
358
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
359
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
360
+ type: _$zod.ZodLiteral<"text">;
361
+ content: _$zod.ZodString;
362
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
363
+ type: _$zod.ZodLiteral<"image">;
364
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
365
+ type: _$zod.ZodLiteral<"base64">;
366
+ data: _$zod.ZodString;
367
+ mimeType: _$zod.ZodString;
368
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
369
+ type: _$zod.ZodLiteral<"url">;
370
+ url: _$zod.ZodString;
371
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
372
+ }, _$zod_v4_core0.$strip>], "type">;
373
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
374
+ type: _$zod.ZodLiteral<"document">;
375
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
376
+ type: _$zod.ZodLiteral<"base64">;
377
+ data: _$zod.ZodString;
378
+ mimeType: _$zod.ZodString;
379
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
380
+ type: _$zod.ZodLiteral<"url">;
381
+ url: _$zod.ZodString;
382
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
383
+ }, _$zod_v4_core0.$strip>], "type">;
384
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
385
+ type: _$zod.ZodLiteral<"attachment">;
386
+ fileName: _$zod.ZodString;
387
+ filePath: _$zod.ZodString;
388
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
389
+ type: _$zod.ZodLiteral<"base64">;
390
+ data: _$zod.ZodString;
391
+ mimeType: _$zod.ZodString;
392
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
393
+ type: _$zod.ZodLiteral<"url">;
394
+ url: _$zod.ZodString;
395
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
396
+ }, _$zod_v4_core0.$strip>], "type">;
397
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
398
+ attachmentType: _$zod.ZodEnum<{
399
+ file: "file";
400
+ directory: "directory";
401
+ }>;
402
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
403
+ type: _$zod.ZodLiteral<"reasoning">;
404
+ content: _$zod.ZodString;
405
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
406
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
407
+ type: _$zod.ZodLiteral<"tool_call">;
408
+ toolCallId: _$zod.ZodString;
409
+ name: _$zod.ZodString;
410
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
411
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
412
+ type: _$zod.ZodLiteral<"tool_output">;
413
+ toolCallId: _$zod.ZodString;
414
+ output: _$zod.ZodString;
415
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
416
+ }, _$zod_v4_core0.$strip>], "type">>]>;
417
+ }, _$zod_v4_core0.$strip>]>;
418
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
419
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
420
+ extension: "extension";
421
+ user: "user";
422
+ system: "system";
423
+ }>>;
424
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
425
+ text: "text";
426
+ voice: "voice";
427
+ compact: "compact";
428
+ }>>;
429
+ }, _$zod_v4_core0.$strip>;
430
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
431
+ sessionId: _$zod.ZodString;
432
+ eventId: _$zod.ZodString;
433
+ timestamp: _$zod.ZodNumber;
434
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
435
+ payload: _$zod.ZodObject<{
436
+ sessionId: _$zod.ZodString;
437
+ turnId: _$zod.ZodString;
438
+ turnNumber: _$zod.ZodNumber;
439
+ messageId: _$zod.ZodString;
440
+ agentId: _$zod.ZodString;
441
+ }, _$zod_v4_core0.$strip>;
442
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
443
+ sessionId: _$zod.ZodString;
444
+ eventId: _$zod.ZodString;
445
+ timestamp: _$zod.ZodNumber;
446
+ type: _$zod.ZodLiteral<"user_message.completed">;
447
+ payload: _$zod.ZodObject<{
448
+ sessionId: _$zod.ZodString;
449
+ turnId: _$zod.ZodString;
450
+ turnNumber: _$zod.ZodNumber;
451
+ messageId: _$zod.ZodString;
452
+ agentId: _$zod.ZodString;
453
+ outcome: _$zod.ZodEnum<{
454
+ error: "error";
455
+ completed: "completed";
456
+ cancelled: "cancelled";
457
+ superseded: "superseded";
458
+ merged: "merged";
459
+ rejected: "rejected";
460
+ }>;
461
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
462
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
463
+ error: _$zod.ZodOptional<_$zod.ZodString>;
464
+ }, _$zod_v4_core0.$strip>;
465
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
466
+ sessionId: _$zod.ZodString;
467
+ eventId: _$zod.ZodString;
468
+ timestamp: _$zod.ZodNumber;
469
+ type: _$zod.ZodLiteral<"turn.started">;
470
+ payload: _$zod.ZodObject<{
471
+ sessionId: _$zod.ZodString;
472
+ turnId: _$zod.ZodString;
473
+ turnNumber: _$zod.ZodNumber;
474
+ messageId: _$zod.ZodString;
475
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
476
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
477
+ source: _$zod.ZodEnum<{
478
+ extension: "extension";
479
+ user: "user";
480
+ system: "system";
481
+ }>;
482
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
483
+ }, _$zod_v4_core0.$strip>>;
484
+ }, _$zod_v4_core0.$strip>;
485
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
486
+ sessionId: _$zod.ZodString;
487
+ eventId: _$zod.ZodString;
488
+ timestamp: _$zod.ZodNumber;
489
+ type: _$zod.ZodLiteral<"turn.completed">;
490
+ payload: _$zod.ZodObject<{
491
+ sessionId: _$zod.ZodString;
492
+ turnId: _$zod.ZodString;
493
+ turnNumber: _$zod.ZodNumber;
494
+ success: _$zod.ZodBoolean;
495
+ error: _$zod.ZodOptional<_$zod.ZodString>;
496
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
497
+ source: _$zod.ZodEnum<{
498
+ extension: "extension";
499
+ user: "user";
500
+ system: "system";
501
+ }>;
502
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
503
+ }, _$zod_v4_core0.$strip>>;
504
+ }, _$zod_v4_core0.$strip>;
505
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
506
+ sessionId: _$zod.ZodString;
507
+ eventId: _$zod.ZodString;
508
+ timestamp: _$zod.ZodNumber;
509
+ type: _$zod.ZodLiteral<"message">;
510
+ payload: _$zod.ZodObject<{
511
+ messageId: _$zod.ZodString;
512
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
513
+ role: _$zod.ZodEnum<{
514
+ user: "user";
515
+ assistant: "assistant";
516
+ }>;
517
+ }, _$zod_v4_core0.$strip>;
518
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
519
+ sessionId: _$zod.ZodString;
520
+ eventId: _$zod.ZodString;
521
+ timestamp: _$zod.ZodNumber;
522
+ type: _$zod.ZodLiteral<"branch.created">;
523
+ payload: _$zod.ZodObject<{
524
+ childSessionId: _$zod.ZodString;
525
+ parentSessionId: _$zod.ZodString;
526
+ kind: _$zod.ZodEnum<{
527
+ fork: "fork";
528
+ subagent: "subagent";
529
+ compress: "compress";
530
+ branch: "branch";
531
+ rewrite: "rewrite";
532
+ coordinator: "coordinator";
533
+ aside: "aside";
534
+ }>;
535
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
536
+ }, _$zod_v4_core0.$strip>;
537
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
538
+ sessionId: _$zod.ZodString;
539
+ eventId: _$zod.ZodString;
540
+ timestamp: _$zod.ZodNumber;
541
+ type: _$zod.ZodLiteral<"branch.merged">;
542
+ payload: _$zod.ZodObject<{
543
+ childSessionId: _$zod.ZodString;
544
+ parentSessionId: _$zod.ZodString;
545
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
546
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
547
+ }, _$zod_v4_core0.$strip>;
548
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
549
+ sessionId: _$zod.ZodString;
550
+ eventId: _$zod.ZodString;
551
+ timestamp: _$zod.ZodNumber;
552
+ type: _$zod.ZodLiteral<"squash">;
553
+ payload: _$zod.ZodObject<{
554
+ summaryJson: _$zod.ZodString;
555
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
556
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
557
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
558
+ }, _$zod_v4_core0.$strip>;
559
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
560
+ sessionId: _$zod.ZodString;
561
+ eventId: _$zod.ZodString;
562
+ timestamp: _$zod.ZodNumber;
563
+ type: _$zod.ZodString;
564
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
565
+ }, _$zod_v4_core0.$strip>]>;
566
+ }, _$zod_v4_core0.$strip>;
567
+ response: _$zod.ZodObject<{
568
+ success: _$zod.ZodBoolean;
569
+ }, _$zod_v4_core0.$strip>;
570
+ };
571
+ getEvents: {
572
+ request: _$zod.ZodObject<{
573
+ sessionId: _$zod.ZodString;
574
+ options: _$zod.ZodOptional<_$zod.ZodObject<{
575
+ after: _$zod.ZodOptional<_$zod.ZodString>;
576
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
577
+ types: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
578
+ includeReasoning: _$zod.ZodOptional<_$zod.ZodBoolean>;
579
+ order: _$zod.ZodOptional<_$zod.ZodEnum<{
580
+ asc: "asc";
581
+ desc: "desc";
582
+ }>>;
583
+ }, _$zod_v4_core0.$strip>>;
584
+ }, _$zod_v4_core0.$strip>;
585
+ response: _$zod.ZodObject<{
586
+ events: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
587
+ sessionId: _$zod.ZodString;
588
+ eventId: _$zod.ZodString;
589
+ timestamp: _$zod.ZodNumber;
590
+ type: _$zod.ZodLiteral<"agent.added">;
591
+ payload: _$zod.ZodObject<{
592
+ sessionId: _$zod.ZodString;
593
+ adapterSessionId: _$zod.ZodString;
594
+ agentId: _$zod.ZodString;
595
+ adapterId: _$zod.ZodString;
596
+ adapterName: _$zod.ZodString;
597
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
598
+ lead: "lead";
599
+ member: "member";
600
+ }>>;
601
+ model: _$zod.ZodOptional<_$zod.ZodString>;
602
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
603
+ }, _$zod_v4_core0.$strip>;
604
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
605
+ sessionId: _$zod.ZodString;
606
+ eventId: _$zod.ZodString;
607
+ timestamp: _$zod.ZodNumber;
608
+ type: _$zod.ZodLiteral<"user_message.sent">;
609
+ payload: _$zod.ZodObject<{
610
+ sessionId: _$zod.ZodString;
611
+ turnId: _$zod.ZodString;
612
+ turnNumber: _$zod.ZodNumber;
613
+ messageId: _$zod.ZodString;
614
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
615
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
616
+ user: "user";
617
+ assistant: "assistant";
618
+ system: "system";
619
+ }>>;
620
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
621
+ type: _$zod.ZodLiteral<"text">;
622
+ content: _$zod.ZodString;
623
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
624
+ type: _$zod.ZodLiteral<"image">;
625
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
626
+ type: _$zod.ZodLiteral<"base64">;
627
+ data: _$zod.ZodString;
628
+ mimeType: _$zod.ZodString;
629
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
630
+ type: _$zod.ZodLiteral<"url">;
631
+ url: _$zod.ZodString;
632
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
633
+ }, _$zod_v4_core0.$strip>], "type">;
634
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
635
+ type: _$zod.ZodLiteral<"document">;
636
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
637
+ type: _$zod.ZodLiteral<"base64">;
638
+ data: _$zod.ZodString;
639
+ mimeType: _$zod.ZodString;
640
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
641
+ type: _$zod.ZodLiteral<"url">;
642
+ url: _$zod.ZodString;
643
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
644
+ }, _$zod_v4_core0.$strip>], "type">;
645
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
646
+ type: _$zod.ZodLiteral<"attachment">;
647
+ fileName: _$zod.ZodString;
648
+ filePath: _$zod.ZodString;
649
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
650
+ type: _$zod.ZodLiteral<"base64">;
651
+ data: _$zod.ZodString;
652
+ mimeType: _$zod.ZodString;
653
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
654
+ type: _$zod.ZodLiteral<"url">;
655
+ url: _$zod.ZodString;
656
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
657
+ }, _$zod_v4_core0.$strip>], "type">;
658
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
659
+ attachmentType: _$zod.ZodEnum<{
660
+ file: "file";
661
+ directory: "directory";
662
+ }>;
663
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
664
+ type: _$zod.ZodLiteral<"reasoning">;
665
+ content: _$zod.ZodString;
666
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
667
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
668
+ type: _$zod.ZodLiteral<"tool_call">;
669
+ toolCallId: _$zod.ZodString;
670
+ name: _$zod.ZodString;
671
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
672
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
673
+ type: _$zod.ZodLiteral<"tool_output">;
674
+ toolCallId: _$zod.ZodString;
675
+ output: _$zod.ZodString;
676
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
677
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
678
+ type: _$zod.ZodLiteral<"text">;
679
+ content: _$zod.ZodString;
680
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
681
+ type: _$zod.ZodLiteral<"image">;
682
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
683
+ type: _$zod.ZodLiteral<"base64">;
684
+ data: _$zod.ZodString;
685
+ mimeType: _$zod.ZodString;
686
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
687
+ type: _$zod.ZodLiteral<"url">;
688
+ url: _$zod.ZodString;
689
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
690
+ }, _$zod_v4_core0.$strip>], "type">;
691
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
692
+ type: _$zod.ZodLiteral<"document">;
693
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
694
+ type: _$zod.ZodLiteral<"base64">;
695
+ data: _$zod.ZodString;
696
+ mimeType: _$zod.ZodString;
697
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
698
+ type: _$zod.ZodLiteral<"url">;
699
+ url: _$zod.ZodString;
700
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
701
+ }, _$zod_v4_core0.$strip>], "type">;
702
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
703
+ type: _$zod.ZodLiteral<"attachment">;
704
+ fileName: _$zod.ZodString;
705
+ filePath: _$zod.ZodString;
706
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
707
+ type: _$zod.ZodLiteral<"base64">;
708
+ data: _$zod.ZodString;
709
+ mimeType: _$zod.ZodString;
710
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
711
+ type: _$zod.ZodLiteral<"url">;
712
+ url: _$zod.ZodString;
713
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
714
+ }, _$zod_v4_core0.$strip>], "type">;
715
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
716
+ attachmentType: _$zod.ZodEnum<{
717
+ file: "file";
718
+ directory: "directory";
719
+ }>;
720
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
721
+ type: _$zod.ZodLiteral<"reasoning">;
722
+ content: _$zod.ZodString;
723
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
724
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
725
+ type: _$zod.ZodLiteral<"tool_call">;
726
+ toolCallId: _$zod.ZodString;
727
+ name: _$zod.ZodString;
728
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
729
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
730
+ type: _$zod.ZodLiteral<"tool_output">;
731
+ toolCallId: _$zod.ZodString;
732
+ output: _$zod.ZodString;
733
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
734
+ }, _$zod_v4_core0.$strip>], "type">>]>;
735
+ }, _$zod_v4_core0.$strip>]>;
736
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
737
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
738
+ extension: "extension";
739
+ user: "user";
740
+ system: "system";
741
+ }>>;
742
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
743
+ text: "text";
744
+ voice: "voice";
745
+ compact: "compact";
746
+ }>>;
747
+ }, _$zod_v4_core0.$strip>;
748
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
749
+ sessionId: _$zod.ZodString;
750
+ eventId: _$zod.ZodString;
751
+ timestamp: _$zod.ZodNumber;
752
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
753
+ payload: _$zod.ZodObject<{
754
+ sessionId: _$zod.ZodString;
755
+ turnId: _$zod.ZodString;
756
+ turnNumber: _$zod.ZodNumber;
757
+ messageId: _$zod.ZodString;
758
+ agentId: _$zod.ZodString;
759
+ }, _$zod_v4_core0.$strip>;
760
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
761
+ sessionId: _$zod.ZodString;
762
+ eventId: _$zod.ZodString;
763
+ timestamp: _$zod.ZodNumber;
764
+ type: _$zod.ZodLiteral<"user_message.completed">;
765
+ payload: _$zod.ZodObject<{
766
+ sessionId: _$zod.ZodString;
767
+ turnId: _$zod.ZodString;
768
+ turnNumber: _$zod.ZodNumber;
769
+ messageId: _$zod.ZodString;
770
+ agentId: _$zod.ZodString;
771
+ outcome: _$zod.ZodEnum<{
772
+ error: "error";
773
+ completed: "completed";
774
+ cancelled: "cancelled";
775
+ superseded: "superseded";
776
+ merged: "merged";
777
+ rejected: "rejected";
778
+ }>;
779
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
780
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
781
+ error: _$zod.ZodOptional<_$zod.ZodString>;
782
+ }, _$zod_v4_core0.$strip>;
783
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
784
+ sessionId: _$zod.ZodString;
785
+ eventId: _$zod.ZodString;
786
+ timestamp: _$zod.ZodNumber;
787
+ type: _$zod.ZodLiteral<"turn.started">;
788
+ payload: _$zod.ZodObject<{
789
+ sessionId: _$zod.ZodString;
790
+ turnId: _$zod.ZodString;
791
+ turnNumber: _$zod.ZodNumber;
792
+ messageId: _$zod.ZodString;
793
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
794
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
795
+ source: _$zod.ZodEnum<{
796
+ extension: "extension";
797
+ user: "user";
798
+ system: "system";
799
+ }>;
800
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
801
+ }, _$zod_v4_core0.$strip>>;
802
+ }, _$zod_v4_core0.$strip>;
803
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
804
+ sessionId: _$zod.ZodString;
805
+ eventId: _$zod.ZodString;
806
+ timestamp: _$zod.ZodNumber;
807
+ type: _$zod.ZodLiteral<"turn.completed">;
808
+ payload: _$zod.ZodObject<{
809
+ sessionId: _$zod.ZodString;
810
+ turnId: _$zod.ZodString;
811
+ turnNumber: _$zod.ZodNumber;
812
+ success: _$zod.ZodBoolean;
813
+ error: _$zod.ZodOptional<_$zod.ZodString>;
814
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
815
+ source: _$zod.ZodEnum<{
816
+ extension: "extension";
817
+ user: "user";
818
+ system: "system";
819
+ }>;
820
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
821
+ }, _$zod_v4_core0.$strip>>;
822
+ }, _$zod_v4_core0.$strip>;
823
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
824
+ sessionId: _$zod.ZodString;
825
+ eventId: _$zod.ZodString;
826
+ timestamp: _$zod.ZodNumber;
827
+ type: _$zod.ZodLiteral<"message">;
828
+ payload: _$zod.ZodObject<{
829
+ messageId: _$zod.ZodString;
830
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
831
+ role: _$zod.ZodEnum<{
832
+ user: "user";
833
+ assistant: "assistant";
834
+ }>;
835
+ }, _$zod_v4_core0.$strip>;
836
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
837
+ sessionId: _$zod.ZodString;
838
+ eventId: _$zod.ZodString;
839
+ timestamp: _$zod.ZodNumber;
840
+ type: _$zod.ZodLiteral<"branch.created">;
841
+ payload: _$zod.ZodObject<{
842
+ childSessionId: _$zod.ZodString;
843
+ parentSessionId: _$zod.ZodString;
844
+ kind: _$zod.ZodEnum<{
845
+ fork: "fork";
846
+ subagent: "subagent";
847
+ compress: "compress";
848
+ branch: "branch";
849
+ rewrite: "rewrite";
850
+ coordinator: "coordinator";
851
+ aside: "aside";
852
+ }>;
853
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
854
+ }, _$zod_v4_core0.$strip>;
855
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
856
+ sessionId: _$zod.ZodString;
857
+ eventId: _$zod.ZodString;
858
+ timestamp: _$zod.ZodNumber;
859
+ type: _$zod.ZodLiteral<"branch.merged">;
860
+ payload: _$zod.ZodObject<{
861
+ childSessionId: _$zod.ZodString;
862
+ parentSessionId: _$zod.ZodString;
863
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
864
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
865
+ }, _$zod_v4_core0.$strip>;
866
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
867
+ sessionId: _$zod.ZodString;
868
+ eventId: _$zod.ZodString;
869
+ timestamp: _$zod.ZodNumber;
870
+ type: _$zod.ZodLiteral<"squash">;
871
+ payload: _$zod.ZodObject<{
872
+ summaryJson: _$zod.ZodString;
873
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
874
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
875
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
876
+ }, _$zod_v4_core0.$strip>;
877
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
878
+ sessionId: _$zod.ZodString;
879
+ eventId: _$zod.ZodString;
880
+ timestamp: _$zod.ZodNumber;
881
+ type: _$zod.ZodString;
882
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
883
+ }, _$zod_v4_core0.$strip>]>>;
884
+ nextCursor: _$zod.ZodNullable<_$zod.ZodString>;
885
+ totalCount: _$zod.ZodOptional<_$zod.ZodNumber>;
886
+ }, _$zod_v4_core0.$strip>;
887
+ };
888
+ getByIds: {
889
+ request: _$zod.ZodObject<{
890
+ sessionId: _$zod.ZodString;
891
+ eventIds: _$zod.ZodArray<_$zod.ZodString>;
892
+ }, _$zod_v4_core0.$strip>;
893
+ response: _$zod.ZodObject<{
894
+ events: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
895
+ sessionId: _$zod.ZodString;
896
+ eventId: _$zod.ZodString;
897
+ timestamp: _$zod.ZodNumber;
898
+ type: _$zod.ZodLiteral<"agent.added">;
899
+ payload: _$zod.ZodObject<{
900
+ sessionId: _$zod.ZodString;
901
+ adapterSessionId: _$zod.ZodString;
902
+ agentId: _$zod.ZodString;
903
+ adapterId: _$zod.ZodString;
904
+ adapterName: _$zod.ZodString;
905
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
906
+ lead: "lead";
907
+ member: "member";
908
+ }>>;
909
+ model: _$zod.ZodOptional<_$zod.ZodString>;
910
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
911
+ }, _$zod_v4_core0.$strip>;
912
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
913
+ sessionId: _$zod.ZodString;
914
+ eventId: _$zod.ZodString;
915
+ timestamp: _$zod.ZodNumber;
916
+ type: _$zod.ZodLiteral<"user_message.sent">;
917
+ payload: _$zod.ZodObject<{
918
+ sessionId: _$zod.ZodString;
919
+ turnId: _$zod.ZodString;
920
+ turnNumber: _$zod.ZodNumber;
921
+ messageId: _$zod.ZodString;
922
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
923
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
924
+ user: "user";
925
+ assistant: "assistant";
926
+ system: "system";
927
+ }>>;
928
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
929
+ type: _$zod.ZodLiteral<"text">;
930
+ content: _$zod.ZodString;
931
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
932
+ type: _$zod.ZodLiteral<"image">;
933
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
934
+ type: _$zod.ZodLiteral<"base64">;
935
+ data: _$zod.ZodString;
936
+ mimeType: _$zod.ZodString;
937
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
938
+ type: _$zod.ZodLiteral<"url">;
939
+ url: _$zod.ZodString;
940
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
941
+ }, _$zod_v4_core0.$strip>], "type">;
942
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
943
+ type: _$zod.ZodLiteral<"document">;
944
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
945
+ type: _$zod.ZodLiteral<"base64">;
946
+ data: _$zod.ZodString;
947
+ mimeType: _$zod.ZodString;
948
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
949
+ type: _$zod.ZodLiteral<"url">;
950
+ url: _$zod.ZodString;
951
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
952
+ }, _$zod_v4_core0.$strip>], "type">;
953
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
954
+ type: _$zod.ZodLiteral<"attachment">;
955
+ fileName: _$zod.ZodString;
956
+ filePath: _$zod.ZodString;
957
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
958
+ type: _$zod.ZodLiteral<"base64">;
959
+ data: _$zod.ZodString;
960
+ mimeType: _$zod.ZodString;
961
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
962
+ type: _$zod.ZodLiteral<"url">;
963
+ url: _$zod.ZodString;
964
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
965
+ }, _$zod_v4_core0.$strip>], "type">;
966
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
967
+ attachmentType: _$zod.ZodEnum<{
968
+ file: "file";
969
+ directory: "directory";
970
+ }>;
971
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
972
+ type: _$zod.ZodLiteral<"reasoning">;
973
+ content: _$zod.ZodString;
974
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
975
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
976
+ type: _$zod.ZodLiteral<"tool_call">;
977
+ toolCallId: _$zod.ZodString;
978
+ name: _$zod.ZodString;
979
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
980
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
981
+ type: _$zod.ZodLiteral<"tool_output">;
982
+ toolCallId: _$zod.ZodString;
983
+ output: _$zod.ZodString;
984
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
985
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
986
+ type: _$zod.ZodLiteral<"text">;
987
+ content: _$zod.ZodString;
988
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
989
+ type: _$zod.ZodLiteral<"image">;
990
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
991
+ type: _$zod.ZodLiteral<"base64">;
992
+ data: _$zod.ZodString;
993
+ mimeType: _$zod.ZodString;
994
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
995
+ type: _$zod.ZodLiteral<"url">;
996
+ url: _$zod.ZodString;
997
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
998
+ }, _$zod_v4_core0.$strip>], "type">;
999
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1000
+ type: _$zod.ZodLiteral<"document">;
1001
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1002
+ type: _$zod.ZodLiteral<"base64">;
1003
+ data: _$zod.ZodString;
1004
+ mimeType: _$zod.ZodString;
1005
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1006
+ type: _$zod.ZodLiteral<"url">;
1007
+ url: _$zod.ZodString;
1008
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1009
+ }, _$zod_v4_core0.$strip>], "type">;
1010
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1011
+ type: _$zod.ZodLiteral<"attachment">;
1012
+ fileName: _$zod.ZodString;
1013
+ filePath: _$zod.ZodString;
1014
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1015
+ type: _$zod.ZodLiteral<"base64">;
1016
+ data: _$zod.ZodString;
1017
+ mimeType: _$zod.ZodString;
1018
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1019
+ type: _$zod.ZodLiteral<"url">;
1020
+ url: _$zod.ZodString;
1021
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1022
+ }, _$zod_v4_core0.$strip>], "type">;
1023
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1024
+ attachmentType: _$zod.ZodEnum<{
1025
+ file: "file";
1026
+ directory: "directory";
1027
+ }>;
1028
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1029
+ type: _$zod.ZodLiteral<"reasoning">;
1030
+ content: _$zod.ZodString;
1031
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1032
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1033
+ type: _$zod.ZodLiteral<"tool_call">;
1034
+ toolCallId: _$zod.ZodString;
1035
+ name: _$zod.ZodString;
1036
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1037
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1038
+ type: _$zod.ZodLiteral<"tool_output">;
1039
+ toolCallId: _$zod.ZodString;
1040
+ output: _$zod.ZodString;
1041
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1042
+ }, _$zod_v4_core0.$strip>], "type">>]>;
1043
+ }, _$zod_v4_core0.$strip>]>;
1044
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
1045
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
1046
+ extension: "extension";
1047
+ user: "user";
1048
+ system: "system";
1049
+ }>>;
1050
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1051
+ text: "text";
1052
+ voice: "voice";
1053
+ compact: "compact";
1054
+ }>>;
1055
+ }, _$zod_v4_core0.$strip>;
1056
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1057
+ sessionId: _$zod.ZodString;
1058
+ eventId: _$zod.ZodString;
1059
+ timestamp: _$zod.ZodNumber;
1060
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
1061
+ payload: _$zod.ZodObject<{
1062
+ sessionId: _$zod.ZodString;
1063
+ turnId: _$zod.ZodString;
1064
+ turnNumber: _$zod.ZodNumber;
1065
+ messageId: _$zod.ZodString;
1066
+ agentId: _$zod.ZodString;
1067
+ }, _$zod_v4_core0.$strip>;
1068
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1069
+ sessionId: _$zod.ZodString;
1070
+ eventId: _$zod.ZodString;
1071
+ timestamp: _$zod.ZodNumber;
1072
+ type: _$zod.ZodLiteral<"user_message.completed">;
1073
+ payload: _$zod.ZodObject<{
1074
+ sessionId: _$zod.ZodString;
1075
+ turnId: _$zod.ZodString;
1076
+ turnNumber: _$zod.ZodNumber;
1077
+ messageId: _$zod.ZodString;
1078
+ agentId: _$zod.ZodString;
1079
+ outcome: _$zod.ZodEnum<{
1080
+ error: "error";
1081
+ completed: "completed";
1082
+ cancelled: "cancelled";
1083
+ superseded: "superseded";
1084
+ merged: "merged";
1085
+ rejected: "rejected";
1086
+ }>;
1087
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
1088
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
1089
+ error: _$zod.ZodOptional<_$zod.ZodString>;
1090
+ }, _$zod_v4_core0.$strip>;
1091
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1092
+ sessionId: _$zod.ZodString;
1093
+ eventId: _$zod.ZodString;
1094
+ timestamp: _$zod.ZodNumber;
1095
+ type: _$zod.ZodLiteral<"turn.started">;
1096
+ payload: _$zod.ZodObject<{
1097
+ sessionId: _$zod.ZodString;
1098
+ turnId: _$zod.ZodString;
1099
+ turnNumber: _$zod.ZodNumber;
1100
+ messageId: _$zod.ZodString;
1101
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
1102
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
1103
+ source: _$zod.ZodEnum<{
1104
+ extension: "extension";
1105
+ user: "user";
1106
+ system: "system";
1107
+ }>;
1108
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
1109
+ }, _$zod_v4_core0.$strip>>;
1110
+ }, _$zod_v4_core0.$strip>;
1111
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1112
+ sessionId: _$zod.ZodString;
1113
+ eventId: _$zod.ZodString;
1114
+ timestamp: _$zod.ZodNumber;
1115
+ type: _$zod.ZodLiteral<"turn.completed">;
1116
+ payload: _$zod.ZodObject<{
1117
+ sessionId: _$zod.ZodString;
1118
+ turnId: _$zod.ZodString;
1119
+ turnNumber: _$zod.ZodNumber;
1120
+ success: _$zod.ZodBoolean;
1121
+ error: _$zod.ZodOptional<_$zod.ZodString>;
1122
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
1123
+ source: _$zod.ZodEnum<{
1124
+ extension: "extension";
1125
+ user: "user";
1126
+ system: "system";
1127
+ }>;
1128
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
1129
+ }, _$zod_v4_core0.$strip>>;
1130
+ }, _$zod_v4_core0.$strip>;
1131
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1132
+ sessionId: _$zod.ZodString;
1133
+ eventId: _$zod.ZodString;
1134
+ timestamp: _$zod.ZodNumber;
1135
+ type: _$zod.ZodLiteral<"message">;
1136
+ payload: _$zod.ZodObject<{
1137
+ messageId: _$zod.ZodString;
1138
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1139
+ role: _$zod.ZodEnum<{
1140
+ user: "user";
1141
+ assistant: "assistant";
1142
+ }>;
1143
+ }, _$zod_v4_core0.$strip>;
1144
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1145
+ sessionId: _$zod.ZodString;
1146
+ eventId: _$zod.ZodString;
1147
+ timestamp: _$zod.ZodNumber;
1148
+ type: _$zod.ZodLiteral<"branch.created">;
1149
+ payload: _$zod.ZodObject<{
1150
+ childSessionId: _$zod.ZodString;
1151
+ parentSessionId: _$zod.ZodString;
1152
+ kind: _$zod.ZodEnum<{
1153
+ fork: "fork";
1154
+ subagent: "subagent";
1155
+ compress: "compress";
1156
+ branch: "branch";
1157
+ rewrite: "rewrite";
1158
+ coordinator: "coordinator";
1159
+ aside: "aside";
1160
+ }>;
1161
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1162
+ }, _$zod_v4_core0.$strip>;
1163
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1164
+ sessionId: _$zod.ZodString;
1165
+ eventId: _$zod.ZodString;
1166
+ timestamp: _$zod.ZodNumber;
1167
+ type: _$zod.ZodLiteral<"branch.merged">;
1168
+ payload: _$zod.ZodObject<{
1169
+ childSessionId: _$zod.ZodString;
1170
+ parentSessionId: _$zod.ZodString;
1171
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
1172
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1173
+ }, _$zod_v4_core0.$strip>;
1174
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1175
+ sessionId: _$zod.ZodString;
1176
+ eventId: _$zod.ZodString;
1177
+ timestamp: _$zod.ZodNumber;
1178
+ type: _$zod.ZodLiteral<"squash">;
1179
+ payload: _$zod.ZodObject<{
1180
+ summaryJson: _$zod.ZodString;
1181
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
1182
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
1183
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1184
+ }, _$zod_v4_core0.$strip>;
1185
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
1186
+ sessionId: _$zod.ZodString;
1187
+ eventId: _$zod.ZodString;
1188
+ timestamp: _$zod.ZodNumber;
1189
+ type: _$zod.ZodString;
1190
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1191
+ }, _$zod_v4_core0.$strip>]>>;
1192
+ }, _$zod_v4_core0.$strip>;
1193
+ };
1194
+ deleteBySession: {
1195
+ request: _$zod.ZodObject<{
1196
+ sessionId: _$zod.ZodString;
1197
+ }, _$zod_v4_core0.$strip>;
1198
+ response: _$zod.ZodObject<{
1199
+ success: _$zod.ZodBoolean;
1200
+ deletedCount: _$zod.ZodOptional<_$zod.ZodNumber>;
1201
+ }, _$zod_v4_core0.$strip>;
1202
+ };
1203
+ getEventsBySessions: {
1204
+ request: _$zod.ZodObject<{
1205
+ sessionIds: _$zod.ZodArray<_$zod.ZodString>;
1206
+ types: _$zod.ZodArray<_$zod.ZodString>;
1207
+ limitPerSession: _$zod.ZodOptional<_$zod.ZodNumber>;
1208
+ }, _$zod_v4_core0.$strip>;
1209
+ response: _$zod.ZodObject<{
1210
+ eventsBySession: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1211
+ sessionId: _$zod.ZodString;
1212
+ eventId: _$zod.ZodString;
1213
+ timestamp: _$zod.ZodNumber;
1214
+ type: _$zod.ZodLiteral<"agent.added">;
1215
+ payload: _$zod.ZodObject<{
1216
+ sessionId: _$zod.ZodString;
1217
+ adapterSessionId: _$zod.ZodString;
1218
+ agentId: _$zod.ZodString;
1219
+ adapterId: _$zod.ZodString;
1220
+ adapterName: _$zod.ZodString;
1221
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
1222
+ lead: "lead";
1223
+ member: "member";
1224
+ }>>;
1225
+ model: _$zod.ZodOptional<_$zod.ZodString>;
1226
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
1227
+ }, _$zod_v4_core0.$strip>;
1228
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1229
+ sessionId: _$zod.ZodString;
1230
+ eventId: _$zod.ZodString;
1231
+ timestamp: _$zod.ZodNumber;
1232
+ type: _$zod.ZodLiteral<"user_message.sent">;
1233
+ payload: _$zod.ZodObject<{
1234
+ sessionId: _$zod.ZodString;
1235
+ turnId: _$zod.ZodString;
1236
+ turnNumber: _$zod.ZodNumber;
1237
+ messageId: _$zod.ZodString;
1238
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
1239
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
1240
+ user: "user";
1241
+ assistant: "assistant";
1242
+ system: "system";
1243
+ }>>;
1244
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1245
+ type: _$zod.ZodLiteral<"text">;
1246
+ content: _$zod.ZodString;
1247
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1248
+ type: _$zod.ZodLiteral<"image">;
1249
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1250
+ type: _$zod.ZodLiteral<"base64">;
1251
+ data: _$zod.ZodString;
1252
+ mimeType: _$zod.ZodString;
1253
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1254
+ type: _$zod.ZodLiteral<"url">;
1255
+ url: _$zod.ZodString;
1256
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1257
+ }, _$zod_v4_core0.$strip>], "type">;
1258
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1259
+ type: _$zod.ZodLiteral<"document">;
1260
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1261
+ type: _$zod.ZodLiteral<"base64">;
1262
+ data: _$zod.ZodString;
1263
+ mimeType: _$zod.ZodString;
1264
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1265
+ type: _$zod.ZodLiteral<"url">;
1266
+ url: _$zod.ZodString;
1267
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1268
+ }, _$zod_v4_core0.$strip>], "type">;
1269
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1270
+ type: _$zod.ZodLiteral<"attachment">;
1271
+ fileName: _$zod.ZodString;
1272
+ filePath: _$zod.ZodString;
1273
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1274
+ type: _$zod.ZodLiteral<"base64">;
1275
+ data: _$zod.ZodString;
1276
+ mimeType: _$zod.ZodString;
1277
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1278
+ type: _$zod.ZodLiteral<"url">;
1279
+ url: _$zod.ZodString;
1280
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1281
+ }, _$zod_v4_core0.$strip>], "type">;
1282
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1283
+ attachmentType: _$zod.ZodEnum<{
1284
+ file: "file";
1285
+ directory: "directory";
1286
+ }>;
1287
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1288
+ type: _$zod.ZodLiteral<"reasoning">;
1289
+ content: _$zod.ZodString;
1290
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1291
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1292
+ type: _$zod.ZodLiteral<"tool_call">;
1293
+ toolCallId: _$zod.ZodString;
1294
+ name: _$zod.ZodString;
1295
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1296
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1297
+ type: _$zod.ZodLiteral<"tool_output">;
1298
+ toolCallId: _$zod.ZodString;
1299
+ output: _$zod.ZodString;
1300
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1301
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1302
+ type: _$zod.ZodLiteral<"text">;
1303
+ content: _$zod.ZodString;
1304
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1305
+ type: _$zod.ZodLiteral<"image">;
1306
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1307
+ type: _$zod.ZodLiteral<"base64">;
1308
+ data: _$zod.ZodString;
1309
+ mimeType: _$zod.ZodString;
1310
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1311
+ type: _$zod.ZodLiteral<"url">;
1312
+ url: _$zod.ZodString;
1313
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1314
+ }, _$zod_v4_core0.$strip>], "type">;
1315
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1316
+ type: _$zod.ZodLiteral<"document">;
1317
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1318
+ type: _$zod.ZodLiteral<"base64">;
1319
+ data: _$zod.ZodString;
1320
+ mimeType: _$zod.ZodString;
1321
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1322
+ type: _$zod.ZodLiteral<"url">;
1323
+ url: _$zod.ZodString;
1324
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1325
+ }, _$zod_v4_core0.$strip>], "type">;
1326
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1327
+ type: _$zod.ZodLiteral<"attachment">;
1328
+ fileName: _$zod.ZodString;
1329
+ filePath: _$zod.ZodString;
1330
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1331
+ type: _$zod.ZodLiteral<"base64">;
1332
+ data: _$zod.ZodString;
1333
+ mimeType: _$zod.ZodString;
1334
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1335
+ type: _$zod.ZodLiteral<"url">;
1336
+ url: _$zod.ZodString;
1337
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1338
+ }, _$zod_v4_core0.$strip>], "type">;
1339
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1340
+ attachmentType: _$zod.ZodEnum<{
1341
+ file: "file";
1342
+ directory: "directory";
1343
+ }>;
1344
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1345
+ type: _$zod.ZodLiteral<"reasoning">;
1346
+ content: _$zod.ZodString;
1347
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1348
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1349
+ type: _$zod.ZodLiteral<"tool_call">;
1350
+ toolCallId: _$zod.ZodString;
1351
+ name: _$zod.ZodString;
1352
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1353
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1354
+ type: _$zod.ZodLiteral<"tool_output">;
1355
+ toolCallId: _$zod.ZodString;
1356
+ output: _$zod.ZodString;
1357
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1358
+ }, _$zod_v4_core0.$strip>], "type">>]>;
1359
+ }, _$zod_v4_core0.$strip>]>;
1360
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
1361
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
1362
+ extension: "extension";
1363
+ user: "user";
1364
+ system: "system";
1365
+ }>>;
1366
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1367
+ text: "text";
1368
+ voice: "voice";
1369
+ compact: "compact";
1370
+ }>>;
1371
+ }, _$zod_v4_core0.$strip>;
1372
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1373
+ sessionId: _$zod.ZodString;
1374
+ eventId: _$zod.ZodString;
1375
+ timestamp: _$zod.ZodNumber;
1376
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
1377
+ payload: _$zod.ZodObject<{
1378
+ sessionId: _$zod.ZodString;
1379
+ turnId: _$zod.ZodString;
1380
+ turnNumber: _$zod.ZodNumber;
1381
+ messageId: _$zod.ZodString;
1382
+ agentId: _$zod.ZodString;
1383
+ }, _$zod_v4_core0.$strip>;
1384
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1385
+ sessionId: _$zod.ZodString;
1386
+ eventId: _$zod.ZodString;
1387
+ timestamp: _$zod.ZodNumber;
1388
+ type: _$zod.ZodLiteral<"user_message.completed">;
1389
+ payload: _$zod.ZodObject<{
1390
+ sessionId: _$zod.ZodString;
1391
+ turnId: _$zod.ZodString;
1392
+ turnNumber: _$zod.ZodNumber;
1393
+ messageId: _$zod.ZodString;
1394
+ agentId: _$zod.ZodString;
1395
+ outcome: _$zod.ZodEnum<{
1396
+ error: "error";
1397
+ completed: "completed";
1398
+ cancelled: "cancelled";
1399
+ superseded: "superseded";
1400
+ merged: "merged";
1401
+ rejected: "rejected";
1402
+ }>;
1403
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
1404
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
1405
+ error: _$zod.ZodOptional<_$zod.ZodString>;
1406
+ }, _$zod_v4_core0.$strip>;
1407
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1408
+ sessionId: _$zod.ZodString;
1409
+ eventId: _$zod.ZodString;
1410
+ timestamp: _$zod.ZodNumber;
1411
+ type: _$zod.ZodLiteral<"turn.started">;
1412
+ payload: _$zod.ZodObject<{
1413
+ sessionId: _$zod.ZodString;
1414
+ turnId: _$zod.ZodString;
1415
+ turnNumber: _$zod.ZodNumber;
1416
+ messageId: _$zod.ZodString;
1417
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
1418
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
1419
+ source: _$zod.ZodEnum<{
1420
+ extension: "extension";
1421
+ user: "user";
1422
+ system: "system";
1423
+ }>;
1424
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
1425
+ }, _$zod_v4_core0.$strip>>;
1426
+ }, _$zod_v4_core0.$strip>;
1427
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1428
+ sessionId: _$zod.ZodString;
1429
+ eventId: _$zod.ZodString;
1430
+ timestamp: _$zod.ZodNumber;
1431
+ type: _$zod.ZodLiteral<"turn.completed">;
1432
+ payload: _$zod.ZodObject<{
1433
+ sessionId: _$zod.ZodString;
1434
+ turnId: _$zod.ZodString;
1435
+ turnNumber: _$zod.ZodNumber;
1436
+ success: _$zod.ZodBoolean;
1437
+ error: _$zod.ZodOptional<_$zod.ZodString>;
1438
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
1439
+ source: _$zod.ZodEnum<{
1440
+ extension: "extension";
1441
+ user: "user";
1442
+ system: "system";
1443
+ }>;
1444
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
1445
+ }, _$zod_v4_core0.$strip>>;
1446
+ }, _$zod_v4_core0.$strip>;
1447
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1448
+ sessionId: _$zod.ZodString;
1449
+ eventId: _$zod.ZodString;
1450
+ timestamp: _$zod.ZodNumber;
1451
+ type: _$zod.ZodLiteral<"message">;
1452
+ payload: _$zod.ZodObject<{
1453
+ messageId: _$zod.ZodString;
1454
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1455
+ role: _$zod.ZodEnum<{
1456
+ user: "user";
1457
+ assistant: "assistant";
1458
+ }>;
1459
+ }, _$zod_v4_core0.$strip>;
1460
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1461
+ sessionId: _$zod.ZodString;
1462
+ eventId: _$zod.ZodString;
1463
+ timestamp: _$zod.ZodNumber;
1464
+ type: _$zod.ZodLiteral<"branch.created">;
1465
+ payload: _$zod.ZodObject<{
1466
+ childSessionId: _$zod.ZodString;
1467
+ parentSessionId: _$zod.ZodString;
1468
+ kind: _$zod.ZodEnum<{
1469
+ fork: "fork";
1470
+ subagent: "subagent";
1471
+ compress: "compress";
1472
+ branch: "branch";
1473
+ rewrite: "rewrite";
1474
+ coordinator: "coordinator";
1475
+ aside: "aside";
1476
+ }>;
1477
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1478
+ }, _$zod_v4_core0.$strip>;
1479
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1480
+ sessionId: _$zod.ZodString;
1481
+ eventId: _$zod.ZodString;
1482
+ timestamp: _$zod.ZodNumber;
1483
+ type: _$zod.ZodLiteral<"branch.merged">;
1484
+ payload: _$zod.ZodObject<{
1485
+ childSessionId: _$zod.ZodString;
1486
+ parentSessionId: _$zod.ZodString;
1487
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
1488
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1489
+ }, _$zod_v4_core0.$strip>;
1490
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1491
+ sessionId: _$zod.ZodString;
1492
+ eventId: _$zod.ZodString;
1493
+ timestamp: _$zod.ZodNumber;
1494
+ type: _$zod.ZodLiteral<"squash">;
1495
+ payload: _$zod.ZodObject<{
1496
+ summaryJson: _$zod.ZodString;
1497
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
1498
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
1499
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1500
+ }, _$zod_v4_core0.$strip>;
1501
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
1502
+ sessionId: _$zod.ZodString;
1503
+ eventId: _$zod.ZodString;
1504
+ timestamp: _$zod.ZodNumber;
1505
+ type: _$zod.ZodString;
1506
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1507
+ }, _$zod_v4_core0.$strip>]>>>;
1508
+ }, _$zod_v4_core0.$strip>;
1509
+ };
1510
+ }>, "storage:sessionEvent">;
1511
+ schemas: {
1512
+ append: {
1513
+ request: _$zod.ZodObject<{
1514
+ event: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1515
+ sessionId: _$zod.ZodString;
1516
+ eventId: _$zod.ZodString;
1517
+ timestamp: _$zod.ZodNumber;
1518
+ type: _$zod.ZodLiteral<"agent.added">;
1519
+ payload: _$zod.ZodObject<{
1520
+ sessionId: _$zod.ZodString;
1521
+ adapterSessionId: _$zod.ZodString;
1522
+ agentId: _$zod.ZodString;
1523
+ adapterId: _$zod.ZodString;
1524
+ adapterName: _$zod.ZodString;
1525
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
1526
+ lead: "lead";
1527
+ member: "member";
1528
+ }>>;
1529
+ model: _$zod.ZodOptional<_$zod.ZodString>;
1530
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
1531
+ }, _$zod_v4_core0.$strip>;
1532
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1533
+ sessionId: _$zod.ZodString;
1534
+ eventId: _$zod.ZodString;
1535
+ timestamp: _$zod.ZodNumber;
1536
+ type: _$zod.ZodLiteral<"user_message.sent">;
1537
+ payload: _$zod.ZodObject<{
1538
+ sessionId: _$zod.ZodString;
1539
+ turnId: _$zod.ZodString;
1540
+ turnNumber: _$zod.ZodNumber;
1541
+ messageId: _$zod.ZodString;
1542
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
1543
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
1544
+ user: "user";
1545
+ assistant: "assistant";
1546
+ system: "system";
1547
+ }>>;
1548
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1549
+ type: _$zod.ZodLiteral<"text">;
1550
+ content: _$zod.ZodString;
1551
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1552
+ type: _$zod.ZodLiteral<"image">;
1553
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1554
+ type: _$zod.ZodLiteral<"base64">;
1555
+ data: _$zod.ZodString;
1556
+ mimeType: _$zod.ZodString;
1557
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1558
+ type: _$zod.ZodLiteral<"url">;
1559
+ url: _$zod.ZodString;
1560
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1561
+ }, _$zod_v4_core0.$strip>], "type">;
1562
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1563
+ type: _$zod.ZodLiteral<"document">;
1564
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1565
+ type: _$zod.ZodLiteral<"base64">;
1566
+ data: _$zod.ZodString;
1567
+ mimeType: _$zod.ZodString;
1568
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1569
+ type: _$zod.ZodLiteral<"url">;
1570
+ url: _$zod.ZodString;
1571
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1572
+ }, _$zod_v4_core0.$strip>], "type">;
1573
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1574
+ type: _$zod.ZodLiteral<"attachment">;
1575
+ fileName: _$zod.ZodString;
1576
+ filePath: _$zod.ZodString;
1577
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1578
+ type: _$zod.ZodLiteral<"base64">;
1579
+ data: _$zod.ZodString;
1580
+ mimeType: _$zod.ZodString;
1581
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1582
+ type: _$zod.ZodLiteral<"url">;
1583
+ url: _$zod.ZodString;
1584
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1585
+ }, _$zod_v4_core0.$strip>], "type">;
1586
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1587
+ attachmentType: _$zod.ZodEnum<{
1588
+ file: "file";
1589
+ directory: "directory";
1590
+ }>;
1591
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1592
+ type: _$zod.ZodLiteral<"reasoning">;
1593
+ content: _$zod.ZodString;
1594
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1595
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1596
+ type: _$zod.ZodLiteral<"tool_call">;
1597
+ toolCallId: _$zod.ZodString;
1598
+ name: _$zod.ZodString;
1599
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1600
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1601
+ type: _$zod.ZodLiteral<"tool_output">;
1602
+ toolCallId: _$zod.ZodString;
1603
+ output: _$zod.ZodString;
1604
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1605
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1606
+ type: _$zod.ZodLiteral<"text">;
1607
+ content: _$zod.ZodString;
1608
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1609
+ type: _$zod.ZodLiteral<"image">;
1610
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1611
+ type: _$zod.ZodLiteral<"base64">;
1612
+ data: _$zod.ZodString;
1613
+ mimeType: _$zod.ZodString;
1614
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1615
+ type: _$zod.ZodLiteral<"url">;
1616
+ url: _$zod.ZodString;
1617
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1618
+ }, _$zod_v4_core0.$strip>], "type">;
1619
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1620
+ type: _$zod.ZodLiteral<"document">;
1621
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1622
+ type: _$zod.ZodLiteral<"base64">;
1623
+ data: _$zod.ZodString;
1624
+ mimeType: _$zod.ZodString;
1625
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1626
+ type: _$zod.ZodLiteral<"url">;
1627
+ url: _$zod.ZodString;
1628
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1629
+ }, _$zod_v4_core0.$strip>], "type">;
1630
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1631
+ type: _$zod.ZodLiteral<"attachment">;
1632
+ fileName: _$zod.ZodString;
1633
+ filePath: _$zod.ZodString;
1634
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1635
+ type: _$zod.ZodLiteral<"base64">;
1636
+ data: _$zod.ZodString;
1637
+ mimeType: _$zod.ZodString;
1638
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1639
+ type: _$zod.ZodLiteral<"url">;
1640
+ url: _$zod.ZodString;
1641
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1642
+ }, _$zod_v4_core0.$strip>], "type">;
1643
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1644
+ attachmentType: _$zod.ZodEnum<{
1645
+ file: "file";
1646
+ directory: "directory";
1647
+ }>;
1648
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1649
+ type: _$zod.ZodLiteral<"reasoning">;
1650
+ content: _$zod.ZodString;
1651
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1652
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1653
+ type: _$zod.ZodLiteral<"tool_call">;
1654
+ toolCallId: _$zod.ZodString;
1655
+ name: _$zod.ZodString;
1656
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1657
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1658
+ type: _$zod.ZodLiteral<"tool_output">;
1659
+ toolCallId: _$zod.ZodString;
1660
+ output: _$zod.ZodString;
1661
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1662
+ }, _$zod_v4_core0.$strip>], "type">>]>;
1663
+ }, _$zod_v4_core0.$strip>]>;
1664
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
1665
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
1666
+ extension: "extension";
1667
+ user: "user";
1668
+ system: "system";
1669
+ }>>;
1670
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1671
+ text: "text";
1672
+ voice: "voice";
1673
+ compact: "compact";
1674
+ }>>;
1675
+ }, _$zod_v4_core0.$strip>;
1676
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1677
+ sessionId: _$zod.ZodString;
1678
+ eventId: _$zod.ZodString;
1679
+ timestamp: _$zod.ZodNumber;
1680
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
1681
+ payload: _$zod.ZodObject<{
1682
+ sessionId: _$zod.ZodString;
1683
+ turnId: _$zod.ZodString;
1684
+ turnNumber: _$zod.ZodNumber;
1685
+ messageId: _$zod.ZodString;
1686
+ agentId: _$zod.ZodString;
1687
+ }, _$zod_v4_core0.$strip>;
1688
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1689
+ sessionId: _$zod.ZodString;
1690
+ eventId: _$zod.ZodString;
1691
+ timestamp: _$zod.ZodNumber;
1692
+ type: _$zod.ZodLiteral<"user_message.completed">;
1693
+ payload: _$zod.ZodObject<{
1694
+ sessionId: _$zod.ZodString;
1695
+ turnId: _$zod.ZodString;
1696
+ turnNumber: _$zod.ZodNumber;
1697
+ messageId: _$zod.ZodString;
1698
+ agentId: _$zod.ZodString;
1699
+ outcome: _$zod.ZodEnum<{
1700
+ error: "error";
1701
+ completed: "completed";
1702
+ cancelled: "cancelled";
1703
+ superseded: "superseded";
1704
+ merged: "merged";
1705
+ rejected: "rejected";
1706
+ }>;
1707
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
1708
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
1709
+ error: _$zod.ZodOptional<_$zod.ZodString>;
1710
+ }, _$zod_v4_core0.$strip>;
1711
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1712
+ sessionId: _$zod.ZodString;
1713
+ eventId: _$zod.ZodString;
1714
+ timestamp: _$zod.ZodNumber;
1715
+ type: _$zod.ZodLiteral<"turn.started">;
1716
+ payload: _$zod.ZodObject<{
1717
+ sessionId: _$zod.ZodString;
1718
+ turnId: _$zod.ZodString;
1719
+ turnNumber: _$zod.ZodNumber;
1720
+ messageId: _$zod.ZodString;
1721
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
1722
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
1723
+ source: _$zod.ZodEnum<{
1724
+ extension: "extension";
1725
+ user: "user";
1726
+ system: "system";
1727
+ }>;
1728
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
1729
+ }, _$zod_v4_core0.$strip>>;
1730
+ }, _$zod_v4_core0.$strip>;
1731
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1732
+ sessionId: _$zod.ZodString;
1733
+ eventId: _$zod.ZodString;
1734
+ timestamp: _$zod.ZodNumber;
1735
+ type: _$zod.ZodLiteral<"turn.completed">;
1736
+ payload: _$zod.ZodObject<{
1737
+ sessionId: _$zod.ZodString;
1738
+ turnId: _$zod.ZodString;
1739
+ turnNumber: _$zod.ZodNumber;
1740
+ success: _$zod.ZodBoolean;
1741
+ error: _$zod.ZodOptional<_$zod.ZodString>;
1742
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
1743
+ source: _$zod.ZodEnum<{
1744
+ extension: "extension";
1745
+ user: "user";
1746
+ system: "system";
1747
+ }>;
1748
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
1749
+ }, _$zod_v4_core0.$strip>>;
1750
+ }, _$zod_v4_core0.$strip>;
1751
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1752
+ sessionId: _$zod.ZodString;
1753
+ eventId: _$zod.ZodString;
1754
+ timestamp: _$zod.ZodNumber;
1755
+ type: _$zod.ZodLiteral<"message">;
1756
+ payload: _$zod.ZodObject<{
1757
+ messageId: _$zod.ZodString;
1758
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1759
+ role: _$zod.ZodEnum<{
1760
+ user: "user";
1761
+ assistant: "assistant";
1762
+ }>;
1763
+ }, _$zod_v4_core0.$strip>;
1764
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1765
+ sessionId: _$zod.ZodString;
1766
+ eventId: _$zod.ZodString;
1767
+ timestamp: _$zod.ZodNumber;
1768
+ type: _$zod.ZodLiteral<"branch.created">;
1769
+ payload: _$zod.ZodObject<{
1770
+ childSessionId: _$zod.ZodString;
1771
+ parentSessionId: _$zod.ZodString;
1772
+ kind: _$zod.ZodEnum<{
1773
+ fork: "fork";
1774
+ subagent: "subagent";
1775
+ compress: "compress";
1776
+ branch: "branch";
1777
+ rewrite: "rewrite";
1778
+ coordinator: "coordinator";
1779
+ aside: "aside";
1780
+ }>;
1781
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1782
+ }, _$zod_v4_core0.$strip>;
1783
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1784
+ sessionId: _$zod.ZodString;
1785
+ eventId: _$zod.ZodString;
1786
+ timestamp: _$zod.ZodNumber;
1787
+ type: _$zod.ZodLiteral<"branch.merged">;
1788
+ payload: _$zod.ZodObject<{
1789
+ childSessionId: _$zod.ZodString;
1790
+ parentSessionId: _$zod.ZodString;
1791
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
1792
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1793
+ }, _$zod_v4_core0.$strip>;
1794
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1795
+ sessionId: _$zod.ZodString;
1796
+ eventId: _$zod.ZodString;
1797
+ timestamp: _$zod.ZodNumber;
1798
+ type: _$zod.ZodLiteral<"squash">;
1799
+ payload: _$zod.ZodObject<{
1800
+ summaryJson: _$zod.ZodString;
1801
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
1802
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
1803
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1804
+ }, _$zod_v4_core0.$strip>;
1805
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
1806
+ sessionId: _$zod.ZodString;
1807
+ eventId: _$zod.ZodString;
1808
+ timestamp: _$zod.ZodNumber;
1809
+ type: _$zod.ZodString;
1810
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1811
+ }, _$zod_v4_core0.$strip>]>;
1812
+ }, _$zod_v4_core0.$strip>;
1813
+ response: _$zod.ZodObject<{
1814
+ success: _$zod.ZodBoolean;
1815
+ }, _$zod_v4_core0.$strip>;
1816
+ };
1817
+ getEvents: {
1818
+ request: _$zod.ZodObject<{
1819
+ sessionId: _$zod.ZodString;
1820
+ options: _$zod.ZodOptional<_$zod.ZodObject<{
1821
+ after: _$zod.ZodOptional<_$zod.ZodString>;
1822
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
1823
+ types: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1824
+ includeReasoning: _$zod.ZodOptional<_$zod.ZodBoolean>;
1825
+ order: _$zod.ZodOptional<_$zod.ZodEnum<{
1826
+ asc: "asc";
1827
+ desc: "desc";
1828
+ }>>;
1829
+ }, _$zod_v4_core0.$strip>>;
1830
+ }, _$zod_v4_core0.$strip>;
1831
+ response: _$zod.ZodObject<{
1832
+ events: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1833
+ sessionId: _$zod.ZodString;
1834
+ eventId: _$zod.ZodString;
1835
+ timestamp: _$zod.ZodNumber;
1836
+ type: _$zod.ZodLiteral<"agent.added">;
1837
+ payload: _$zod.ZodObject<{
1838
+ sessionId: _$zod.ZodString;
1839
+ adapterSessionId: _$zod.ZodString;
1840
+ agentId: _$zod.ZodString;
1841
+ adapterId: _$zod.ZodString;
1842
+ adapterName: _$zod.ZodString;
1843
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
1844
+ lead: "lead";
1845
+ member: "member";
1846
+ }>>;
1847
+ model: _$zod.ZodOptional<_$zod.ZodString>;
1848
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
1849
+ }, _$zod_v4_core0.$strip>;
1850
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1851
+ sessionId: _$zod.ZodString;
1852
+ eventId: _$zod.ZodString;
1853
+ timestamp: _$zod.ZodNumber;
1854
+ type: _$zod.ZodLiteral<"user_message.sent">;
1855
+ payload: _$zod.ZodObject<{
1856
+ sessionId: _$zod.ZodString;
1857
+ turnId: _$zod.ZodString;
1858
+ turnNumber: _$zod.ZodNumber;
1859
+ messageId: _$zod.ZodString;
1860
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
1861
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
1862
+ user: "user";
1863
+ assistant: "assistant";
1864
+ system: "system";
1865
+ }>>;
1866
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1867
+ type: _$zod.ZodLiteral<"text">;
1868
+ content: _$zod.ZodString;
1869
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1870
+ type: _$zod.ZodLiteral<"image">;
1871
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1872
+ type: _$zod.ZodLiteral<"base64">;
1873
+ data: _$zod.ZodString;
1874
+ mimeType: _$zod.ZodString;
1875
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1876
+ type: _$zod.ZodLiteral<"url">;
1877
+ url: _$zod.ZodString;
1878
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1879
+ }, _$zod_v4_core0.$strip>], "type">;
1880
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1881
+ type: _$zod.ZodLiteral<"document">;
1882
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1883
+ type: _$zod.ZodLiteral<"base64">;
1884
+ data: _$zod.ZodString;
1885
+ mimeType: _$zod.ZodString;
1886
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1887
+ type: _$zod.ZodLiteral<"url">;
1888
+ url: _$zod.ZodString;
1889
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1890
+ }, _$zod_v4_core0.$strip>], "type">;
1891
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1892
+ type: _$zod.ZodLiteral<"attachment">;
1893
+ fileName: _$zod.ZodString;
1894
+ filePath: _$zod.ZodString;
1895
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1896
+ type: _$zod.ZodLiteral<"base64">;
1897
+ data: _$zod.ZodString;
1898
+ mimeType: _$zod.ZodString;
1899
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1900
+ type: _$zod.ZodLiteral<"url">;
1901
+ url: _$zod.ZodString;
1902
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1903
+ }, _$zod_v4_core0.$strip>], "type">;
1904
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1905
+ attachmentType: _$zod.ZodEnum<{
1906
+ file: "file";
1907
+ directory: "directory";
1908
+ }>;
1909
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1910
+ type: _$zod.ZodLiteral<"reasoning">;
1911
+ content: _$zod.ZodString;
1912
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1913
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1914
+ type: _$zod.ZodLiteral<"tool_call">;
1915
+ toolCallId: _$zod.ZodString;
1916
+ name: _$zod.ZodString;
1917
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1918
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1919
+ type: _$zod.ZodLiteral<"tool_output">;
1920
+ toolCallId: _$zod.ZodString;
1921
+ output: _$zod.ZodString;
1922
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1923
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1924
+ type: _$zod.ZodLiteral<"text">;
1925
+ content: _$zod.ZodString;
1926
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1927
+ type: _$zod.ZodLiteral<"image">;
1928
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1929
+ type: _$zod.ZodLiteral<"base64">;
1930
+ data: _$zod.ZodString;
1931
+ mimeType: _$zod.ZodString;
1932
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1933
+ type: _$zod.ZodLiteral<"url">;
1934
+ url: _$zod.ZodString;
1935
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1936
+ }, _$zod_v4_core0.$strip>], "type">;
1937
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1938
+ type: _$zod.ZodLiteral<"document">;
1939
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1940
+ type: _$zod.ZodLiteral<"base64">;
1941
+ data: _$zod.ZodString;
1942
+ mimeType: _$zod.ZodString;
1943
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1944
+ type: _$zod.ZodLiteral<"url">;
1945
+ url: _$zod.ZodString;
1946
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1947
+ }, _$zod_v4_core0.$strip>], "type">;
1948
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1949
+ type: _$zod.ZodLiteral<"attachment">;
1950
+ fileName: _$zod.ZodString;
1951
+ filePath: _$zod.ZodString;
1952
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1953
+ type: _$zod.ZodLiteral<"base64">;
1954
+ data: _$zod.ZodString;
1955
+ mimeType: _$zod.ZodString;
1956
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1957
+ type: _$zod.ZodLiteral<"url">;
1958
+ url: _$zod.ZodString;
1959
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1960
+ }, _$zod_v4_core0.$strip>], "type">;
1961
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1962
+ attachmentType: _$zod.ZodEnum<{
1963
+ file: "file";
1964
+ directory: "directory";
1965
+ }>;
1966
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1967
+ type: _$zod.ZodLiteral<"reasoning">;
1968
+ content: _$zod.ZodString;
1969
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1970
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1971
+ type: _$zod.ZodLiteral<"tool_call">;
1972
+ toolCallId: _$zod.ZodString;
1973
+ name: _$zod.ZodString;
1974
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1975
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1976
+ type: _$zod.ZodLiteral<"tool_output">;
1977
+ toolCallId: _$zod.ZodString;
1978
+ output: _$zod.ZodString;
1979
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1980
+ }, _$zod_v4_core0.$strip>], "type">>]>;
1981
+ }, _$zod_v4_core0.$strip>]>;
1982
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
1983
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
1984
+ extension: "extension";
1985
+ user: "user";
1986
+ system: "system";
1987
+ }>>;
1988
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1989
+ text: "text";
1990
+ voice: "voice";
1991
+ compact: "compact";
1992
+ }>>;
1993
+ }, _$zod_v4_core0.$strip>;
1994
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1995
+ sessionId: _$zod.ZodString;
1996
+ eventId: _$zod.ZodString;
1997
+ timestamp: _$zod.ZodNumber;
1998
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
1999
+ payload: _$zod.ZodObject<{
2000
+ sessionId: _$zod.ZodString;
2001
+ turnId: _$zod.ZodString;
2002
+ turnNumber: _$zod.ZodNumber;
2003
+ messageId: _$zod.ZodString;
2004
+ agentId: _$zod.ZodString;
2005
+ }, _$zod_v4_core0.$strip>;
2006
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2007
+ sessionId: _$zod.ZodString;
2008
+ eventId: _$zod.ZodString;
2009
+ timestamp: _$zod.ZodNumber;
2010
+ type: _$zod.ZodLiteral<"user_message.completed">;
2011
+ payload: _$zod.ZodObject<{
2012
+ sessionId: _$zod.ZodString;
2013
+ turnId: _$zod.ZodString;
2014
+ turnNumber: _$zod.ZodNumber;
2015
+ messageId: _$zod.ZodString;
2016
+ agentId: _$zod.ZodString;
2017
+ outcome: _$zod.ZodEnum<{
2018
+ error: "error";
2019
+ completed: "completed";
2020
+ cancelled: "cancelled";
2021
+ superseded: "superseded";
2022
+ merged: "merged";
2023
+ rejected: "rejected";
2024
+ }>;
2025
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
2026
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
2027
+ error: _$zod.ZodOptional<_$zod.ZodString>;
2028
+ }, _$zod_v4_core0.$strip>;
2029
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2030
+ sessionId: _$zod.ZodString;
2031
+ eventId: _$zod.ZodString;
2032
+ timestamp: _$zod.ZodNumber;
2033
+ type: _$zod.ZodLiteral<"turn.started">;
2034
+ payload: _$zod.ZodObject<{
2035
+ sessionId: _$zod.ZodString;
2036
+ turnId: _$zod.ZodString;
2037
+ turnNumber: _$zod.ZodNumber;
2038
+ messageId: _$zod.ZodString;
2039
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
2040
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
2041
+ source: _$zod.ZodEnum<{
2042
+ extension: "extension";
2043
+ user: "user";
2044
+ system: "system";
2045
+ }>;
2046
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
2047
+ }, _$zod_v4_core0.$strip>>;
2048
+ }, _$zod_v4_core0.$strip>;
2049
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2050
+ sessionId: _$zod.ZodString;
2051
+ eventId: _$zod.ZodString;
2052
+ timestamp: _$zod.ZodNumber;
2053
+ type: _$zod.ZodLiteral<"turn.completed">;
2054
+ payload: _$zod.ZodObject<{
2055
+ sessionId: _$zod.ZodString;
2056
+ turnId: _$zod.ZodString;
2057
+ turnNumber: _$zod.ZodNumber;
2058
+ success: _$zod.ZodBoolean;
2059
+ error: _$zod.ZodOptional<_$zod.ZodString>;
2060
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
2061
+ source: _$zod.ZodEnum<{
2062
+ extension: "extension";
2063
+ user: "user";
2064
+ system: "system";
2065
+ }>;
2066
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
2067
+ }, _$zod_v4_core0.$strip>>;
2068
+ }, _$zod_v4_core0.$strip>;
2069
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2070
+ sessionId: _$zod.ZodString;
2071
+ eventId: _$zod.ZodString;
2072
+ timestamp: _$zod.ZodNumber;
2073
+ type: _$zod.ZodLiteral<"message">;
2074
+ payload: _$zod.ZodObject<{
2075
+ messageId: _$zod.ZodString;
2076
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
2077
+ role: _$zod.ZodEnum<{
2078
+ user: "user";
2079
+ assistant: "assistant";
2080
+ }>;
2081
+ }, _$zod_v4_core0.$strip>;
2082
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2083
+ sessionId: _$zod.ZodString;
2084
+ eventId: _$zod.ZodString;
2085
+ timestamp: _$zod.ZodNumber;
2086
+ type: _$zod.ZodLiteral<"branch.created">;
2087
+ payload: _$zod.ZodObject<{
2088
+ childSessionId: _$zod.ZodString;
2089
+ parentSessionId: _$zod.ZodString;
2090
+ kind: _$zod.ZodEnum<{
2091
+ fork: "fork";
2092
+ subagent: "subagent";
2093
+ compress: "compress";
2094
+ branch: "branch";
2095
+ rewrite: "rewrite";
2096
+ coordinator: "coordinator";
2097
+ aside: "aside";
2098
+ }>;
2099
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2100
+ }, _$zod_v4_core0.$strip>;
2101
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2102
+ sessionId: _$zod.ZodString;
2103
+ eventId: _$zod.ZodString;
2104
+ timestamp: _$zod.ZodNumber;
2105
+ type: _$zod.ZodLiteral<"branch.merged">;
2106
+ payload: _$zod.ZodObject<{
2107
+ childSessionId: _$zod.ZodString;
2108
+ parentSessionId: _$zod.ZodString;
2109
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
2110
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2111
+ }, _$zod_v4_core0.$strip>;
2112
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2113
+ sessionId: _$zod.ZodString;
2114
+ eventId: _$zod.ZodString;
2115
+ timestamp: _$zod.ZodNumber;
2116
+ type: _$zod.ZodLiteral<"squash">;
2117
+ payload: _$zod.ZodObject<{
2118
+ summaryJson: _$zod.ZodString;
2119
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
2120
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
2121
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2122
+ }, _$zod_v4_core0.$strip>;
2123
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
2124
+ sessionId: _$zod.ZodString;
2125
+ eventId: _$zod.ZodString;
2126
+ timestamp: _$zod.ZodNumber;
2127
+ type: _$zod.ZodString;
2128
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2129
+ }, _$zod_v4_core0.$strip>]>>;
2130
+ nextCursor: _$zod.ZodNullable<_$zod.ZodString>;
2131
+ totalCount: _$zod.ZodOptional<_$zod.ZodNumber>;
2132
+ }, _$zod_v4_core0.$strip>;
2133
+ };
2134
+ getByIds: {
2135
+ request: _$zod.ZodObject<{
2136
+ sessionId: _$zod.ZodString;
2137
+ eventIds: _$zod.ZodArray<_$zod.ZodString>;
2138
+ }, _$zod_v4_core0.$strip>;
2139
+ response: _$zod.ZodObject<{
2140
+ events: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2141
+ sessionId: _$zod.ZodString;
2142
+ eventId: _$zod.ZodString;
2143
+ timestamp: _$zod.ZodNumber;
2144
+ type: _$zod.ZodLiteral<"agent.added">;
2145
+ payload: _$zod.ZodObject<{
2146
+ sessionId: _$zod.ZodString;
2147
+ adapterSessionId: _$zod.ZodString;
2148
+ agentId: _$zod.ZodString;
2149
+ adapterId: _$zod.ZodString;
2150
+ adapterName: _$zod.ZodString;
2151
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
2152
+ lead: "lead";
2153
+ member: "member";
2154
+ }>>;
2155
+ model: _$zod.ZodOptional<_$zod.ZodString>;
2156
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
2157
+ }, _$zod_v4_core0.$strip>;
2158
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2159
+ sessionId: _$zod.ZodString;
2160
+ eventId: _$zod.ZodString;
2161
+ timestamp: _$zod.ZodNumber;
2162
+ type: _$zod.ZodLiteral<"user_message.sent">;
2163
+ payload: _$zod.ZodObject<{
2164
+ sessionId: _$zod.ZodString;
2165
+ turnId: _$zod.ZodString;
2166
+ turnNumber: _$zod.ZodNumber;
2167
+ messageId: _$zod.ZodString;
2168
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
2169
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
2170
+ user: "user";
2171
+ assistant: "assistant";
2172
+ system: "system";
2173
+ }>>;
2174
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2175
+ type: _$zod.ZodLiteral<"text">;
2176
+ content: _$zod.ZodString;
2177
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2178
+ type: _$zod.ZodLiteral<"image">;
2179
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2180
+ type: _$zod.ZodLiteral<"base64">;
2181
+ data: _$zod.ZodString;
2182
+ mimeType: _$zod.ZodString;
2183
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2184
+ type: _$zod.ZodLiteral<"url">;
2185
+ url: _$zod.ZodString;
2186
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2187
+ }, _$zod_v4_core0.$strip>], "type">;
2188
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2189
+ type: _$zod.ZodLiteral<"document">;
2190
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2191
+ type: _$zod.ZodLiteral<"base64">;
2192
+ data: _$zod.ZodString;
2193
+ mimeType: _$zod.ZodString;
2194
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2195
+ type: _$zod.ZodLiteral<"url">;
2196
+ url: _$zod.ZodString;
2197
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2198
+ }, _$zod_v4_core0.$strip>], "type">;
2199
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2200
+ type: _$zod.ZodLiteral<"attachment">;
2201
+ fileName: _$zod.ZodString;
2202
+ filePath: _$zod.ZodString;
2203
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2204
+ type: _$zod.ZodLiteral<"base64">;
2205
+ data: _$zod.ZodString;
2206
+ mimeType: _$zod.ZodString;
2207
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2208
+ type: _$zod.ZodLiteral<"url">;
2209
+ url: _$zod.ZodString;
2210
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2211
+ }, _$zod_v4_core0.$strip>], "type">;
2212
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
2213
+ attachmentType: _$zod.ZodEnum<{
2214
+ file: "file";
2215
+ directory: "directory";
2216
+ }>;
2217
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2218
+ type: _$zod.ZodLiteral<"reasoning">;
2219
+ content: _$zod.ZodString;
2220
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2221
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2222
+ type: _$zod.ZodLiteral<"tool_call">;
2223
+ toolCallId: _$zod.ZodString;
2224
+ name: _$zod.ZodString;
2225
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2226
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2227
+ type: _$zod.ZodLiteral<"tool_output">;
2228
+ toolCallId: _$zod.ZodString;
2229
+ output: _$zod.ZodString;
2230
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
2231
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2232
+ type: _$zod.ZodLiteral<"text">;
2233
+ content: _$zod.ZodString;
2234
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2235
+ type: _$zod.ZodLiteral<"image">;
2236
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2237
+ type: _$zod.ZodLiteral<"base64">;
2238
+ data: _$zod.ZodString;
2239
+ mimeType: _$zod.ZodString;
2240
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2241
+ type: _$zod.ZodLiteral<"url">;
2242
+ url: _$zod.ZodString;
2243
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2244
+ }, _$zod_v4_core0.$strip>], "type">;
2245
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2246
+ type: _$zod.ZodLiteral<"document">;
2247
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2248
+ type: _$zod.ZodLiteral<"base64">;
2249
+ data: _$zod.ZodString;
2250
+ mimeType: _$zod.ZodString;
2251
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2252
+ type: _$zod.ZodLiteral<"url">;
2253
+ url: _$zod.ZodString;
2254
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2255
+ }, _$zod_v4_core0.$strip>], "type">;
2256
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2257
+ type: _$zod.ZodLiteral<"attachment">;
2258
+ fileName: _$zod.ZodString;
2259
+ filePath: _$zod.ZodString;
2260
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2261
+ type: _$zod.ZodLiteral<"base64">;
2262
+ data: _$zod.ZodString;
2263
+ mimeType: _$zod.ZodString;
2264
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2265
+ type: _$zod.ZodLiteral<"url">;
2266
+ url: _$zod.ZodString;
2267
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2268
+ }, _$zod_v4_core0.$strip>], "type">;
2269
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
2270
+ attachmentType: _$zod.ZodEnum<{
2271
+ file: "file";
2272
+ directory: "directory";
2273
+ }>;
2274
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2275
+ type: _$zod.ZodLiteral<"reasoning">;
2276
+ content: _$zod.ZodString;
2277
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2278
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2279
+ type: _$zod.ZodLiteral<"tool_call">;
2280
+ toolCallId: _$zod.ZodString;
2281
+ name: _$zod.ZodString;
2282
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2283
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2284
+ type: _$zod.ZodLiteral<"tool_output">;
2285
+ toolCallId: _$zod.ZodString;
2286
+ output: _$zod.ZodString;
2287
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
2288
+ }, _$zod_v4_core0.$strip>], "type">>]>;
2289
+ }, _$zod_v4_core0.$strip>]>;
2290
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
2291
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
2292
+ extension: "extension";
2293
+ user: "user";
2294
+ system: "system";
2295
+ }>>;
2296
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2297
+ text: "text";
2298
+ voice: "voice";
2299
+ compact: "compact";
2300
+ }>>;
2301
+ }, _$zod_v4_core0.$strip>;
2302
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2303
+ sessionId: _$zod.ZodString;
2304
+ eventId: _$zod.ZodString;
2305
+ timestamp: _$zod.ZodNumber;
2306
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
2307
+ payload: _$zod.ZodObject<{
2308
+ sessionId: _$zod.ZodString;
2309
+ turnId: _$zod.ZodString;
2310
+ turnNumber: _$zod.ZodNumber;
2311
+ messageId: _$zod.ZodString;
2312
+ agentId: _$zod.ZodString;
2313
+ }, _$zod_v4_core0.$strip>;
2314
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2315
+ sessionId: _$zod.ZodString;
2316
+ eventId: _$zod.ZodString;
2317
+ timestamp: _$zod.ZodNumber;
2318
+ type: _$zod.ZodLiteral<"user_message.completed">;
2319
+ payload: _$zod.ZodObject<{
2320
+ sessionId: _$zod.ZodString;
2321
+ turnId: _$zod.ZodString;
2322
+ turnNumber: _$zod.ZodNumber;
2323
+ messageId: _$zod.ZodString;
2324
+ agentId: _$zod.ZodString;
2325
+ outcome: _$zod.ZodEnum<{
2326
+ error: "error";
2327
+ completed: "completed";
2328
+ cancelled: "cancelled";
2329
+ superseded: "superseded";
2330
+ merged: "merged";
2331
+ rejected: "rejected";
2332
+ }>;
2333
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
2334
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
2335
+ error: _$zod.ZodOptional<_$zod.ZodString>;
2336
+ }, _$zod_v4_core0.$strip>;
2337
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2338
+ sessionId: _$zod.ZodString;
2339
+ eventId: _$zod.ZodString;
2340
+ timestamp: _$zod.ZodNumber;
2341
+ type: _$zod.ZodLiteral<"turn.started">;
2342
+ payload: _$zod.ZodObject<{
2343
+ sessionId: _$zod.ZodString;
2344
+ turnId: _$zod.ZodString;
2345
+ turnNumber: _$zod.ZodNumber;
2346
+ messageId: _$zod.ZodString;
2347
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
2348
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
2349
+ source: _$zod.ZodEnum<{
2350
+ extension: "extension";
2351
+ user: "user";
2352
+ system: "system";
2353
+ }>;
2354
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
2355
+ }, _$zod_v4_core0.$strip>>;
2356
+ }, _$zod_v4_core0.$strip>;
2357
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2358
+ sessionId: _$zod.ZodString;
2359
+ eventId: _$zod.ZodString;
2360
+ timestamp: _$zod.ZodNumber;
2361
+ type: _$zod.ZodLiteral<"turn.completed">;
2362
+ payload: _$zod.ZodObject<{
2363
+ sessionId: _$zod.ZodString;
2364
+ turnId: _$zod.ZodString;
2365
+ turnNumber: _$zod.ZodNumber;
2366
+ success: _$zod.ZodBoolean;
2367
+ error: _$zod.ZodOptional<_$zod.ZodString>;
2368
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
2369
+ source: _$zod.ZodEnum<{
2370
+ extension: "extension";
2371
+ user: "user";
2372
+ system: "system";
2373
+ }>;
2374
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
2375
+ }, _$zod_v4_core0.$strip>>;
2376
+ }, _$zod_v4_core0.$strip>;
2377
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2378
+ sessionId: _$zod.ZodString;
2379
+ eventId: _$zod.ZodString;
2380
+ timestamp: _$zod.ZodNumber;
2381
+ type: _$zod.ZodLiteral<"message">;
2382
+ payload: _$zod.ZodObject<{
2383
+ messageId: _$zod.ZodString;
2384
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
2385
+ role: _$zod.ZodEnum<{
2386
+ user: "user";
2387
+ assistant: "assistant";
2388
+ }>;
2389
+ }, _$zod_v4_core0.$strip>;
2390
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2391
+ sessionId: _$zod.ZodString;
2392
+ eventId: _$zod.ZodString;
2393
+ timestamp: _$zod.ZodNumber;
2394
+ type: _$zod.ZodLiteral<"branch.created">;
2395
+ payload: _$zod.ZodObject<{
2396
+ childSessionId: _$zod.ZodString;
2397
+ parentSessionId: _$zod.ZodString;
2398
+ kind: _$zod.ZodEnum<{
2399
+ fork: "fork";
2400
+ subagent: "subagent";
2401
+ compress: "compress";
2402
+ branch: "branch";
2403
+ rewrite: "rewrite";
2404
+ coordinator: "coordinator";
2405
+ aside: "aside";
2406
+ }>;
2407
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2408
+ }, _$zod_v4_core0.$strip>;
2409
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2410
+ sessionId: _$zod.ZodString;
2411
+ eventId: _$zod.ZodString;
2412
+ timestamp: _$zod.ZodNumber;
2413
+ type: _$zod.ZodLiteral<"branch.merged">;
2414
+ payload: _$zod.ZodObject<{
2415
+ childSessionId: _$zod.ZodString;
2416
+ parentSessionId: _$zod.ZodString;
2417
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
2418
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2419
+ }, _$zod_v4_core0.$strip>;
2420
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2421
+ sessionId: _$zod.ZodString;
2422
+ eventId: _$zod.ZodString;
2423
+ timestamp: _$zod.ZodNumber;
2424
+ type: _$zod.ZodLiteral<"squash">;
2425
+ payload: _$zod.ZodObject<{
2426
+ summaryJson: _$zod.ZodString;
2427
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
2428
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
2429
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2430
+ }, _$zod_v4_core0.$strip>;
2431
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
2432
+ sessionId: _$zod.ZodString;
2433
+ eventId: _$zod.ZodString;
2434
+ timestamp: _$zod.ZodNumber;
2435
+ type: _$zod.ZodString;
2436
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2437
+ }, _$zod_v4_core0.$strip>]>>;
2438
+ }, _$zod_v4_core0.$strip>;
2439
+ };
2440
+ deleteBySession: {
2441
+ request: _$zod.ZodObject<{
2442
+ sessionId: _$zod.ZodString;
2443
+ }, _$zod_v4_core0.$strip>;
2444
+ response: _$zod.ZodObject<{
2445
+ success: _$zod.ZodBoolean;
2446
+ deletedCount: _$zod.ZodOptional<_$zod.ZodNumber>;
2447
+ }, _$zod_v4_core0.$strip>;
2448
+ };
2449
+ getEventsBySessions: {
2450
+ request: _$zod.ZodObject<{
2451
+ sessionIds: _$zod.ZodArray<_$zod.ZodString>;
2452
+ types: _$zod.ZodArray<_$zod.ZodString>;
2453
+ limitPerSession: _$zod.ZodOptional<_$zod.ZodNumber>;
2454
+ }, _$zod_v4_core0.$strip>;
2455
+ response: _$zod.ZodObject<{
2456
+ eventsBySession: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2457
+ sessionId: _$zod.ZodString;
2458
+ eventId: _$zod.ZodString;
2459
+ timestamp: _$zod.ZodNumber;
2460
+ type: _$zod.ZodLiteral<"agent.added">;
2461
+ payload: _$zod.ZodObject<{
2462
+ sessionId: _$zod.ZodString;
2463
+ adapterSessionId: _$zod.ZodString;
2464
+ agentId: _$zod.ZodString;
2465
+ adapterId: _$zod.ZodString;
2466
+ adapterName: _$zod.ZodString;
2467
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
2468
+ lead: "lead";
2469
+ member: "member";
2470
+ }>>;
2471
+ model: _$zod.ZodOptional<_$zod.ZodString>;
2472
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
2473
+ }, _$zod_v4_core0.$strip>;
2474
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2475
+ sessionId: _$zod.ZodString;
2476
+ eventId: _$zod.ZodString;
2477
+ timestamp: _$zod.ZodNumber;
2478
+ type: _$zod.ZodLiteral<"user_message.sent">;
2479
+ payload: _$zod.ZodObject<{
2480
+ sessionId: _$zod.ZodString;
2481
+ turnId: _$zod.ZodString;
2482
+ turnNumber: _$zod.ZodNumber;
2483
+ messageId: _$zod.ZodString;
2484
+ content: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
2485
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
2486
+ user: "user";
2487
+ assistant: "assistant";
2488
+ system: "system";
2489
+ }>>;
2490
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2491
+ type: _$zod.ZodLiteral<"text">;
2492
+ content: _$zod.ZodString;
2493
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2494
+ type: _$zod.ZodLiteral<"image">;
2495
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2496
+ type: _$zod.ZodLiteral<"base64">;
2497
+ data: _$zod.ZodString;
2498
+ mimeType: _$zod.ZodString;
2499
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2500
+ type: _$zod.ZodLiteral<"url">;
2501
+ url: _$zod.ZodString;
2502
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2503
+ }, _$zod_v4_core0.$strip>], "type">;
2504
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2505
+ type: _$zod.ZodLiteral<"document">;
2506
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2507
+ type: _$zod.ZodLiteral<"base64">;
2508
+ data: _$zod.ZodString;
2509
+ mimeType: _$zod.ZodString;
2510
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2511
+ type: _$zod.ZodLiteral<"url">;
2512
+ url: _$zod.ZodString;
2513
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2514
+ }, _$zod_v4_core0.$strip>], "type">;
2515
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2516
+ type: _$zod.ZodLiteral<"attachment">;
2517
+ fileName: _$zod.ZodString;
2518
+ filePath: _$zod.ZodString;
2519
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2520
+ type: _$zod.ZodLiteral<"base64">;
2521
+ data: _$zod.ZodString;
2522
+ mimeType: _$zod.ZodString;
2523
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2524
+ type: _$zod.ZodLiteral<"url">;
2525
+ url: _$zod.ZodString;
2526
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2527
+ }, _$zod_v4_core0.$strip>], "type">;
2528
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
2529
+ attachmentType: _$zod.ZodEnum<{
2530
+ file: "file";
2531
+ directory: "directory";
2532
+ }>;
2533
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2534
+ type: _$zod.ZodLiteral<"reasoning">;
2535
+ content: _$zod.ZodString;
2536
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2537
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2538
+ type: _$zod.ZodLiteral<"tool_call">;
2539
+ toolCallId: _$zod.ZodString;
2540
+ name: _$zod.ZodString;
2541
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2542
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2543
+ type: _$zod.ZodLiteral<"tool_output">;
2544
+ toolCallId: _$zod.ZodString;
2545
+ output: _$zod.ZodString;
2546
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
2547
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2548
+ type: _$zod.ZodLiteral<"text">;
2549
+ content: _$zod.ZodString;
2550
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2551
+ type: _$zod.ZodLiteral<"image">;
2552
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2553
+ type: _$zod.ZodLiteral<"base64">;
2554
+ data: _$zod.ZodString;
2555
+ mimeType: _$zod.ZodString;
2556
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2557
+ type: _$zod.ZodLiteral<"url">;
2558
+ url: _$zod.ZodString;
2559
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2560
+ }, _$zod_v4_core0.$strip>], "type">;
2561
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2562
+ type: _$zod.ZodLiteral<"document">;
2563
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2564
+ type: _$zod.ZodLiteral<"base64">;
2565
+ data: _$zod.ZodString;
2566
+ mimeType: _$zod.ZodString;
2567
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2568
+ type: _$zod.ZodLiteral<"url">;
2569
+ url: _$zod.ZodString;
2570
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2571
+ }, _$zod_v4_core0.$strip>], "type">;
2572
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2573
+ type: _$zod.ZodLiteral<"attachment">;
2574
+ fileName: _$zod.ZodString;
2575
+ filePath: _$zod.ZodString;
2576
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2577
+ type: _$zod.ZodLiteral<"base64">;
2578
+ data: _$zod.ZodString;
2579
+ mimeType: _$zod.ZodString;
2580
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2581
+ type: _$zod.ZodLiteral<"url">;
2582
+ url: _$zod.ZodString;
2583
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
2584
+ }, _$zod_v4_core0.$strip>], "type">;
2585
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
2586
+ attachmentType: _$zod.ZodEnum<{
2587
+ file: "file";
2588
+ directory: "directory";
2589
+ }>;
2590
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2591
+ type: _$zod.ZodLiteral<"reasoning">;
2592
+ content: _$zod.ZodString;
2593
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2594
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2595
+ type: _$zod.ZodLiteral<"tool_call">;
2596
+ toolCallId: _$zod.ZodString;
2597
+ name: _$zod.ZodString;
2598
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2599
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2600
+ type: _$zod.ZodLiteral<"tool_output">;
2601
+ toolCallId: _$zod.ZodString;
2602
+ output: _$zod.ZodString;
2603
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
2604
+ }, _$zod_v4_core0.$strip>], "type">>]>;
2605
+ }, _$zod_v4_core0.$strip>]>;
2606
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
2607
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
2608
+ extension: "extension";
2609
+ user: "user";
2610
+ system: "system";
2611
+ }>>;
2612
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2613
+ text: "text";
2614
+ voice: "voice";
2615
+ compact: "compact";
2616
+ }>>;
2617
+ }, _$zod_v4_core0.$strip>;
2618
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2619
+ sessionId: _$zod.ZodString;
2620
+ eventId: _$zod.ZodString;
2621
+ timestamp: _$zod.ZodNumber;
2622
+ type: _$zod.ZodLiteral<"user_message.acknowledged">;
2623
+ payload: _$zod.ZodObject<{
2624
+ sessionId: _$zod.ZodString;
2625
+ turnId: _$zod.ZodString;
2626
+ turnNumber: _$zod.ZodNumber;
2627
+ messageId: _$zod.ZodString;
2628
+ agentId: _$zod.ZodString;
2629
+ }, _$zod_v4_core0.$strip>;
2630
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2631
+ sessionId: _$zod.ZodString;
2632
+ eventId: _$zod.ZodString;
2633
+ timestamp: _$zod.ZodNumber;
2634
+ type: _$zod.ZodLiteral<"user_message.completed">;
2635
+ payload: _$zod.ZodObject<{
2636
+ sessionId: _$zod.ZodString;
2637
+ turnId: _$zod.ZodString;
2638
+ turnNumber: _$zod.ZodNumber;
2639
+ messageId: _$zod.ZodString;
2640
+ agentId: _$zod.ZodString;
2641
+ outcome: _$zod.ZodEnum<{
2642
+ error: "error";
2643
+ completed: "completed";
2644
+ cancelled: "cancelled";
2645
+ superseded: "superseded";
2646
+ merged: "merged";
2647
+ rejected: "rejected";
2648
+ }>;
2649
+ supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
2650
+ mergedInto: _$zod.ZodOptional<_$zod.ZodString>;
2651
+ error: _$zod.ZodOptional<_$zod.ZodString>;
2652
+ }, _$zod_v4_core0.$strip>;
2653
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2654
+ sessionId: _$zod.ZodString;
2655
+ eventId: _$zod.ZodString;
2656
+ timestamp: _$zod.ZodNumber;
2657
+ type: _$zod.ZodLiteral<"turn.started">;
2658
+ payload: _$zod.ZodObject<{
2659
+ sessionId: _$zod.ZodString;
2660
+ turnId: _$zod.ZodString;
2661
+ turnNumber: _$zod.ZodNumber;
2662
+ messageId: _$zod.ZodString;
2663
+ agentIds: _$zod.ZodArray<_$zod.ZodString>;
2664
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
2665
+ source: _$zod.ZodEnum<{
2666
+ extension: "extension";
2667
+ user: "user";
2668
+ system: "system";
2669
+ }>;
2670
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
2671
+ }, _$zod_v4_core0.$strip>>;
2672
+ }, _$zod_v4_core0.$strip>;
2673
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2674
+ sessionId: _$zod.ZodString;
2675
+ eventId: _$zod.ZodString;
2676
+ timestamp: _$zod.ZodNumber;
2677
+ type: _$zod.ZodLiteral<"turn.completed">;
2678
+ payload: _$zod.ZodObject<{
2679
+ sessionId: _$zod.ZodString;
2680
+ turnId: _$zod.ZodString;
2681
+ turnNumber: _$zod.ZodNumber;
2682
+ success: _$zod.ZodBoolean;
2683
+ error: _$zod.ZodOptional<_$zod.ZodString>;
2684
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
2685
+ source: _$zod.ZodEnum<{
2686
+ extension: "extension";
2687
+ user: "user";
2688
+ system: "system";
2689
+ }>;
2690
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
2691
+ }, _$zod_v4_core0.$strip>>;
2692
+ }, _$zod_v4_core0.$strip>;
2693
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2694
+ sessionId: _$zod.ZodString;
2695
+ eventId: _$zod.ZodString;
2696
+ timestamp: _$zod.ZodNumber;
2697
+ type: _$zod.ZodLiteral<"message">;
2698
+ payload: _$zod.ZodObject<{
2699
+ messageId: _$zod.ZodString;
2700
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
2701
+ role: _$zod.ZodEnum<{
2702
+ user: "user";
2703
+ assistant: "assistant";
2704
+ }>;
2705
+ }, _$zod_v4_core0.$strip>;
2706
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2707
+ sessionId: _$zod.ZodString;
2708
+ eventId: _$zod.ZodString;
2709
+ timestamp: _$zod.ZodNumber;
2710
+ type: _$zod.ZodLiteral<"branch.created">;
2711
+ payload: _$zod.ZodObject<{
2712
+ childSessionId: _$zod.ZodString;
2713
+ parentSessionId: _$zod.ZodString;
2714
+ kind: _$zod.ZodEnum<{
2715
+ fork: "fork";
2716
+ subagent: "subagent";
2717
+ compress: "compress";
2718
+ branch: "branch";
2719
+ rewrite: "rewrite";
2720
+ coordinator: "coordinator";
2721
+ aside: "aside";
2722
+ }>;
2723
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2724
+ }, _$zod_v4_core0.$strip>;
2725
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2726
+ sessionId: _$zod.ZodString;
2727
+ eventId: _$zod.ZodString;
2728
+ timestamp: _$zod.ZodNumber;
2729
+ type: _$zod.ZodLiteral<"branch.merged">;
2730
+ payload: _$zod.ZodObject<{
2731
+ childSessionId: _$zod.ZodString;
2732
+ parentSessionId: _$zod.ZodString;
2733
+ resultJson: _$zod.ZodOptional<_$zod.ZodString>;
2734
+ resultMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2735
+ }, _$zod_v4_core0.$strip>;
2736
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2737
+ sessionId: _$zod.ZodString;
2738
+ eventId: _$zod.ZodString;
2739
+ timestamp: _$zod.ZodNumber;
2740
+ type: _$zod.ZodLiteral<"squash">;
2741
+ payload: _$zod.ZodObject<{
2742
+ summaryJson: _$zod.ZodString;
2743
+ tokensBefore: _$zod.ZodOptional<_$zod.ZodNumber>;
2744
+ tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
2745
+ compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2746
+ }, _$zod_v4_core0.$strip>;
2747
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
2748
+ sessionId: _$zod.ZodString;
2749
+ eventId: _$zod.ZodString;
2750
+ timestamp: _$zod.ZodNumber;
2751
+ type: _$zod.ZodString;
2752
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2753
+ }, _$zod_v4_core0.$strip>]>>>;
2754
+ }, _$zod_v4_core0.$strip>;
2755
+ };
2756
+ };
2757
+ options?: _$_makaio_core0.NamespaceRegistrationOptions;
2758
+ defaultTransports?: _$_makaio_core0.TransportRoutingDefault;
2759
+ __filterPayload?: {
2760
+ options: never;
2761
+ sessionId: string;
2762
+ event: {
2763
+ sessionId: string;
2764
+ eventId: string;
2765
+ timestamp: number;
2766
+ type: "agent.added";
2767
+ payload: {
2768
+ sessionId: string;
2769
+ adapterSessionId: string;
2770
+ agentId: string;
2771
+ adapterId: string;
2772
+ adapterName: string;
2773
+ role?: "lead" | "member" | undefined;
2774
+ model?: string | undefined;
2775
+ cwd?: string | undefined;
2776
+ };
2777
+ } | {
2778
+ sessionId: string;
2779
+ eventId: string;
2780
+ timestamp: number;
2781
+ type: "user_message.sent";
2782
+ payload: {
2783
+ sessionId: string;
2784
+ turnId: string;
2785
+ turnNumber: number;
2786
+ messageId: string;
2787
+ content: string | {
2788
+ blocks: {
2789
+ type: "text";
2790
+ content: string;
2791
+ } | {
2792
+ type: "image";
2793
+ source: {
2794
+ type: "base64";
2795
+ data: string;
2796
+ mimeType: string;
2797
+ } | {
2798
+ type: "url";
2799
+ url: string;
2800
+ mimeType?: string | undefined;
2801
+ };
2802
+ } | {
2803
+ type: "document";
2804
+ source: {
2805
+ type: "base64";
2806
+ data: string;
2807
+ mimeType: string;
2808
+ } | {
2809
+ type: "url";
2810
+ url: string;
2811
+ mimeType?: string | undefined;
2812
+ };
2813
+ } | {
2814
+ type: "attachment";
2815
+ fileName: string;
2816
+ filePath: string;
2817
+ source: {
2818
+ type: "base64";
2819
+ data: string;
2820
+ mimeType: string;
2821
+ } | {
2822
+ type: "url";
2823
+ url: string;
2824
+ mimeType?: string | undefined;
2825
+ };
2826
+ attachmentType: "file" | "directory";
2827
+ displayName?: string | undefined;
2828
+ } | {
2829
+ type: "reasoning";
2830
+ content: string;
2831
+ metadata?: Record<string, unknown> | undefined;
2832
+ } | {
2833
+ type: "tool_call";
2834
+ toolCallId: string;
2835
+ name: string;
2836
+ args: Record<string, unknown>;
2837
+ } | {
2838
+ type: "tool_output";
2839
+ toolCallId: string;
2840
+ output: string;
2841
+ isError?: boolean | undefined;
2842
+ } | ({
2843
+ type: "text";
2844
+ content: string;
2845
+ } | {
2846
+ type: "image";
2847
+ source: {
2848
+ type: "base64";
2849
+ data: string;
2850
+ mimeType: string;
2851
+ } | {
2852
+ type: "url";
2853
+ url: string;
2854
+ mimeType?: string | undefined;
2855
+ };
2856
+ } | {
2857
+ type: "document";
2858
+ source: {
2859
+ type: "base64";
2860
+ data: string;
2861
+ mimeType: string;
2862
+ } | {
2863
+ type: "url";
2864
+ url: string;
2865
+ mimeType?: string | undefined;
2866
+ };
2867
+ } | {
2868
+ type: "attachment";
2869
+ fileName: string;
2870
+ filePath: string;
2871
+ source: {
2872
+ type: "base64";
2873
+ data: string;
2874
+ mimeType: string;
2875
+ } | {
2876
+ type: "url";
2877
+ url: string;
2878
+ mimeType?: string | undefined;
2879
+ };
2880
+ attachmentType: "file" | "directory";
2881
+ displayName?: string | undefined;
2882
+ } | {
2883
+ type: "reasoning";
2884
+ content: string;
2885
+ metadata?: Record<string, unknown> | undefined;
2886
+ } | {
2887
+ type: "tool_call";
2888
+ toolCallId: string;
2889
+ name: string;
2890
+ args: Record<string, unknown>;
2891
+ } | {
2892
+ type: "tool_output";
2893
+ toolCallId: string;
2894
+ output: string;
2895
+ isError?: boolean | undefined;
2896
+ })[];
2897
+ role?: "user" | "assistant" | "system" | undefined;
2898
+ };
2899
+ agentIds: string[];
2900
+ source?: "extension" | "user" | "system" | undefined;
2901
+ origin?: "text" | "voice" | "compact" | undefined;
2902
+ };
2903
+ } | {
2904
+ sessionId: string;
2905
+ eventId: string;
2906
+ timestamp: number;
2907
+ type: "user_message.acknowledged";
2908
+ payload: {
2909
+ sessionId: string;
2910
+ turnId: string;
2911
+ turnNumber: number;
2912
+ messageId: string;
2913
+ agentId: string;
2914
+ };
2915
+ } | {
2916
+ sessionId: string;
2917
+ eventId: string;
2918
+ timestamp: number;
2919
+ type: "user_message.completed";
2920
+ payload: {
2921
+ sessionId: string;
2922
+ turnId: string;
2923
+ turnNumber: number;
2924
+ messageId: string;
2925
+ agentId: string;
2926
+ outcome: "error" | "completed" | "cancelled" | "superseded" | "merged" | "rejected";
2927
+ supersededBy?: string | undefined;
2928
+ mergedInto?: string | undefined;
2929
+ error?: string | undefined;
2930
+ };
2931
+ } | {
2932
+ sessionId: string;
2933
+ eventId: string;
2934
+ timestamp: number;
2935
+ type: "turn.started";
2936
+ payload: {
2937
+ sessionId: string;
2938
+ turnId: string;
2939
+ turnNumber: number;
2940
+ messageId: string;
2941
+ agentIds: string[];
2942
+ initiator?: {
2943
+ source: "extension" | "user" | "system";
2944
+ sourceId?: string | undefined;
2945
+ } | undefined;
2946
+ };
2947
+ } | {
2948
+ sessionId: string;
2949
+ eventId: string;
2950
+ timestamp: number;
2951
+ type: "turn.completed";
2952
+ payload: {
2953
+ sessionId: string;
2954
+ turnId: string;
2955
+ turnNumber: number;
2956
+ success: boolean;
2957
+ error?: string | undefined;
2958
+ initiator?: {
2959
+ source: "extension" | "user" | "system";
2960
+ sourceId?: string | undefined;
2961
+ } | undefined;
2962
+ };
2963
+ } | {
2964
+ sessionId: string;
2965
+ eventId: string;
2966
+ timestamp: number;
2967
+ type: "message";
2968
+ payload: {
2969
+ messageId: string;
2970
+ turnId: string | null;
2971
+ role: "user" | "assistant";
2972
+ };
2973
+ } | {
2974
+ sessionId: string;
2975
+ eventId: string;
2976
+ timestamp: number;
2977
+ type: "branch.created";
2978
+ payload: {
2979
+ childSessionId: string;
2980
+ parentSessionId: string;
2981
+ kind: "fork" | "subagent" | "compress" | "branch" | "rewrite" | "coordinator" | "aside";
2982
+ forkPointMessageId?: string | undefined;
2983
+ };
2984
+ } | {
2985
+ sessionId: string;
2986
+ eventId: string;
2987
+ timestamp: number;
2988
+ type: "branch.merged";
2989
+ payload: {
2990
+ childSessionId: string;
2991
+ parentSessionId: string;
2992
+ resultJson?: string | undefined;
2993
+ resultMessageId?: string | undefined;
2994
+ };
2995
+ } | {
2996
+ sessionId: string;
2997
+ eventId: string;
2998
+ timestamp: number;
2999
+ type: "squash";
3000
+ payload: {
3001
+ summaryJson: string;
3002
+ tokensBefore?: number | undefined;
3003
+ tokensAfter?: number | undefined;
3004
+ compressedMessageIds?: string[] | undefined;
3005
+ };
3006
+ } | {
3007
+ sessionId: string;
3008
+ eventId: string;
3009
+ timestamp: number;
3010
+ type: string;
3011
+ payload: Record<string, unknown>;
3012
+ };
3013
+ types: string[];
3014
+ eventIds: string[];
3015
+ sessionIds: string[];
3016
+ limitPerSession: never;
3017
+ } | undefined;
3018
+ };
3019
+ //#endregion
3020
+ export { SessionEventStorageSubjects as n, SessionEventStorageNamespace$1 as t };