@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,2047 @@
1
+ import * as _$zod from "zod";
2
+ import * as _$_makaio_core0 from "@makaio/framework/core";
3
+ import { MessagePageCursor, MessagePageCursorSchema, MessageStorageSubjects } 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/messages/namespace.d.ts
8
+ /**
9
+ * Message 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 `messages` table.
14
+ * @example
15
+ * ```typescript
16
+ * import { MessageStorageNamespace, MessageStorageSubjects } from '@makaio/framework/services/session';
17
+ *
18
+ * // Use bus subjects
19
+ * const { message } = await bus.request(MessageStorageSubjects.get, { messageId: '123' });
20
+ *
21
+ * // Access drizzle schemas for custom queries
22
+ * const { messages } = MessageStorageNamespace.extensions.drizzle;
23
+ * ```
24
+ */
25
+ declare const MessageStorageNamespace$1: {
26
+ extensions: {
27
+ drizzle: {
28
+ messages: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
29
+ name: "messages";
30
+ schema: undefined;
31
+ columns: {
32
+ messageId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
33
+ name: "message_id";
34
+ tableName: "messages";
35
+ dataType: "string";
36
+ columnType: "SQLiteText";
37
+ data: string;
38
+ driverParam: string;
39
+ notNull: true;
40
+ hasDefault: false;
41
+ isPrimaryKey: true;
42
+ isAutoincrement: false;
43
+ hasRuntimeDefault: false;
44
+ enumValues: [string, ...string[]];
45
+ baseColumn: never;
46
+ identity: undefined;
47
+ generated: undefined;
48
+ }, {}, {
49
+ length: number | undefined;
50
+ }>;
51
+ turnId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
52
+ name: "turn_id";
53
+ tableName: "messages";
54
+ dataType: "string";
55
+ columnType: "SQLiteText";
56
+ data: string;
57
+ driverParam: string;
58
+ notNull: false;
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
+ sessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
71
+ name: "session_id";
72
+ tableName: "messages";
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
+ role: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
90
+ name: "role";
91
+ tableName: "messages";
92
+ dataType: "string";
93
+ columnType: "SQLiteText";
94
+ data: "user" | "assistant";
95
+ driverParam: string;
96
+ notNull: true;
97
+ hasDefault: false;
98
+ isPrimaryKey: false;
99
+ isAutoincrement: false;
100
+ hasRuntimeDefault: false;
101
+ enumValues: ["user", "assistant"];
102
+ baseColumn: never;
103
+ identity: undefined;
104
+ generated: undefined;
105
+ }, {}, {
106
+ length: number | undefined;
107
+ }>;
108
+ contentText: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
109
+ name: "content_text";
110
+ tableName: "messages";
111
+ dataType: "string";
112
+ columnType: "SQLiteText";
113
+ data: string;
114
+ driverParam: string;
115
+ notNull: true;
116
+ hasDefault: false;
117
+ isPrimaryKey: false;
118
+ isAutoincrement: false;
119
+ hasRuntimeDefault: false;
120
+ enumValues: [string, ...string[]];
121
+ baseColumn: never;
122
+ identity: undefined;
123
+ generated: undefined;
124
+ }, {}, {
125
+ length: number | undefined;
126
+ }>;
127
+ blocks: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
128
+ name: "blocks";
129
+ tableName: "messages";
130
+ dataType: "string";
131
+ columnType: "SQLiteText";
132
+ data: string;
133
+ driverParam: string;
134
+ notNull: true;
135
+ hasDefault: true;
136
+ isPrimaryKey: false;
137
+ isAutoincrement: false;
138
+ hasRuntimeDefault: false;
139
+ enumValues: [string, ...string[]];
140
+ baseColumn: never;
141
+ identity: undefined;
142
+ generated: undefined;
143
+ }, {}, {
144
+ length: number | undefined;
145
+ }>;
146
+ agentId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
147
+ name: "agent_id";
148
+ tableName: "messages";
149
+ dataType: "string";
150
+ columnType: "SQLiteText";
151
+ data: string;
152
+ driverParam: string;
153
+ notNull: false;
154
+ hasDefault: false;
155
+ isPrimaryKey: false;
156
+ isAutoincrement: false;
157
+ hasRuntimeDefault: false;
158
+ enumValues: [string, ...string[]];
159
+ baseColumn: never;
160
+ identity: undefined;
161
+ generated: undefined;
162
+ }, {}, {
163
+ length: number | undefined;
164
+ }>;
165
+ adapterSessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
166
+ name: "adapter_session_id";
167
+ tableName: "messages";
168
+ dataType: "string";
169
+ columnType: "SQLiteText";
170
+ data: string;
171
+ driverParam: string;
172
+ notNull: false;
173
+ hasDefault: false;
174
+ isPrimaryKey: false;
175
+ isAutoincrement: false;
176
+ hasRuntimeDefault: false;
177
+ enumValues: [string, ...string[]];
178
+ baseColumn: never;
179
+ identity: undefined;
180
+ generated: undefined;
181
+ }, {}, {
182
+ length: number | undefined;
183
+ }>;
184
+ adapterMessageId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
185
+ name: "adapter_message_id";
186
+ tableName: "messages";
187
+ dataType: "string";
188
+ columnType: "SQLiteText";
189
+ data: string;
190
+ driverParam: string;
191
+ notNull: false;
192
+ hasDefault: false;
193
+ isPrimaryKey: false;
194
+ isAutoincrement: false;
195
+ hasRuntimeDefault: false;
196
+ enumValues: [string, ...string[]];
197
+ baseColumn: never;
198
+ identity: undefined;
199
+ generated: undefined;
200
+ }, {}, {
201
+ length: number | undefined;
202
+ }>;
203
+ timestamp: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
204
+ name: "timestamp";
205
+ tableName: "messages";
206
+ dataType: "number";
207
+ columnType: "SQLiteInteger";
208
+ data: number;
209
+ driverParam: number;
210
+ notNull: true;
211
+ hasDefault: false;
212
+ isPrimaryKey: false;
213
+ isAutoincrement: false;
214
+ hasRuntimeDefault: false;
215
+ enumValues: undefined;
216
+ baseColumn: never;
217
+ identity: undefined;
218
+ generated: undefined;
219
+ }, {}, {}>;
220
+ editOf: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
221
+ name: "edit_of";
222
+ tableName: "messages";
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
+ origin: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
240
+ name: "origin";
241
+ tableName: "messages";
242
+ dataType: "string";
243
+ columnType: "SQLiteText";
244
+ data: "text" | "voice" | "compact";
245
+ driverParam: string;
246
+ notNull: false;
247
+ hasDefault: false;
248
+ isPrimaryKey: false;
249
+ isAutoincrement: false;
250
+ hasRuntimeDefault: false;
251
+ enumValues: ["voice", "text", "compact"];
252
+ baseColumn: never;
253
+ identity: undefined;
254
+ generated: undefined;
255
+ }, {}, {
256
+ length: number | undefined;
257
+ }>;
258
+ };
259
+ dialect: "sqlite";
260
+ }>;
261
+ };
262
+ };
263
+ domain: "message";
264
+ name: "storage:message";
265
+ subjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"storage:message", {
266
+ append: {
267
+ request: _$zod.ZodObject<{
268
+ message: _$zod.ZodObject<{
269
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
270
+ text: "text";
271
+ voice: "voice";
272
+ compact: "compact";
273
+ }>>;
274
+ sessionId: _$zod.ZodString;
275
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
276
+ timestamp: _$zod.ZodNumber;
277
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
278
+ role: _$zod.ZodEnum<{
279
+ user: "user";
280
+ assistant: "assistant";
281
+ }>;
282
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
283
+ type: _$zod.ZodLiteral<"text">;
284
+ content: _$zod.ZodString;
285
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
286
+ type: _$zod.ZodLiteral<"image">;
287
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
288
+ type: _$zod.ZodLiteral<"base64">;
289
+ data: _$zod.ZodString;
290
+ mimeType: _$zod.ZodString;
291
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
292
+ type: _$zod.ZodLiteral<"url">;
293
+ url: _$zod.ZodString;
294
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
295
+ }, _$zod_v4_core0.$strip>], "type">;
296
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
297
+ type: _$zod.ZodLiteral<"document">;
298
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
299
+ type: _$zod.ZodLiteral<"base64">;
300
+ data: _$zod.ZodString;
301
+ mimeType: _$zod.ZodString;
302
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
303
+ type: _$zod.ZodLiteral<"url">;
304
+ url: _$zod.ZodString;
305
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
306
+ }, _$zod_v4_core0.$strip>], "type">;
307
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
308
+ type: _$zod.ZodLiteral<"attachment">;
309
+ fileName: _$zod.ZodString;
310
+ filePath: _$zod.ZodString;
311
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
312
+ type: _$zod.ZodLiteral<"base64">;
313
+ data: _$zod.ZodString;
314
+ mimeType: _$zod.ZodString;
315
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
316
+ type: _$zod.ZodLiteral<"url">;
317
+ url: _$zod.ZodString;
318
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
319
+ }, _$zod_v4_core0.$strip>], "type">;
320
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
321
+ attachmentType: _$zod.ZodEnum<{
322
+ file: "file";
323
+ directory: "directory";
324
+ }>;
325
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
326
+ type: _$zod.ZodLiteral<"reasoning">;
327
+ content: _$zod.ZodString;
328
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
329
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
330
+ type: _$zod.ZodLiteral<"tool_call">;
331
+ toolCallId: _$zod.ZodString;
332
+ name: _$zod.ZodString;
333
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
334
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
335
+ type: _$zod.ZodLiteral<"tool_output">;
336
+ toolCallId: _$zod.ZodString;
337
+ output: _$zod.ZodString;
338
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
339
+ }, _$zod_v4_core0.$strip>], "type">>;
340
+ contentText: _$zod.ZodString;
341
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
342
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
343
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
344
+ messageId: _$zod.ZodOptional<_$zod.ZodString>;
345
+ }, _$zod_v4_core0.$strip>;
346
+ emitEvent: _$zod.ZodOptional<_$zod.ZodBoolean>;
347
+ }, _$zod_v4_core0.$strip>;
348
+ response: _$zod.ZodObject<{
349
+ message: _$zod.ZodObject<{
350
+ messageId: _$zod.ZodString;
351
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
352
+ sessionId: _$zod.ZodString;
353
+ role: _$zod.ZodEnum<{
354
+ user: "user";
355
+ assistant: "assistant";
356
+ }>;
357
+ contentText: _$zod.ZodString;
358
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
359
+ type: _$zod.ZodLiteral<"text">;
360
+ content: _$zod.ZodString;
361
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
362
+ type: _$zod.ZodLiteral<"image">;
363
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
364
+ type: _$zod.ZodLiteral<"base64">;
365
+ data: _$zod.ZodString;
366
+ mimeType: _$zod.ZodString;
367
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
368
+ type: _$zod.ZodLiteral<"url">;
369
+ url: _$zod.ZodString;
370
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
371
+ }, _$zod_v4_core0.$strip>], "type">;
372
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
373
+ type: _$zod.ZodLiteral<"document">;
374
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
375
+ type: _$zod.ZodLiteral<"base64">;
376
+ data: _$zod.ZodString;
377
+ mimeType: _$zod.ZodString;
378
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
379
+ type: _$zod.ZodLiteral<"url">;
380
+ url: _$zod.ZodString;
381
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
382
+ }, _$zod_v4_core0.$strip>], "type">;
383
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
384
+ type: _$zod.ZodLiteral<"attachment">;
385
+ fileName: _$zod.ZodString;
386
+ filePath: _$zod.ZodString;
387
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
388
+ type: _$zod.ZodLiteral<"base64">;
389
+ data: _$zod.ZodString;
390
+ mimeType: _$zod.ZodString;
391
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
392
+ type: _$zod.ZodLiteral<"url">;
393
+ url: _$zod.ZodString;
394
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
395
+ }, _$zod_v4_core0.$strip>], "type">;
396
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
397
+ attachmentType: _$zod.ZodEnum<{
398
+ file: "file";
399
+ directory: "directory";
400
+ }>;
401
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
402
+ type: _$zod.ZodLiteral<"reasoning">;
403
+ content: _$zod.ZodString;
404
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
405
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
406
+ type: _$zod.ZodLiteral<"tool_call">;
407
+ toolCallId: _$zod.ZodString;
408
+ name: _$zod.ZodString;
409
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
410
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
411
+ type: _$zod.ZodLiteral<"tool_output">;
412
+ toolCallId: _$zod.ZodString;
413
+ output: _$zod.ZodString;
414
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
415
+ }, _$zod_v4_core0.$strip>], "type">>;
416
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
417
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
418
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
419
+ timestamp: _$zod.ZodNumber;
420
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
421
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
422
+ text: "text";
423
+ voice: "voice";
424
+ compact: "compact";
425
+ }>>;
426
+ }, _$zod_v4_core0.$strip>;
427
+ }, _$zod_v4_core0.$strip>;
428
+ };
429
+ getBySession: {
430
+ request: _$zod.ZodObject<{
431
+ sessionId: _$zod.ZodString;
432
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
433
+ after: _$zod.ZodOptional<_$zod.ZodObject<{
434
+ timestamp: _$zod.ZodNumber;
435
+ messageId: _$zod.ZodString;
436
+ }, _$zod_v4_core0.$strip>>;
437
+ includeAfter: _$zod.ZodOptional<_$zod.ZodBoolean>;
438
+ order: _$zod.ZodOptional<_$zod.ZodEnum<{
439
+ asc: "asc";
440
+ desc: "desc";
441
+ }>>;
442
+ }, _$zod_v4_core0.$strip>;
443
+ response: _$zod.ZodObject<{
444
+ messages: _$zod.ZodArray<_$zod.ZodObject<{
445
+ messageId: _$zod.ZodString;
446
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
447
+ sessionId: _$zod.ZodString;
448
+ role: _$zod.ZodEnum<{
449
+ user: "user";
450
+ assistant: "assistant";
451
+ }>;
452
+ contentText: _$zod.ZodString;
453
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
454
+ type: _$zod.ZodLiteral<"text">;
455
+ content: _$zod.ZodString;
456
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
457
+ type: _$zod.ZodLiteral<"image">;
458
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
459
+ type: _$zod.ZodLiteral<"base64">;
460
+ data: _$zod.ZodString;
461
+ mimeType: _$zod.ZodString;
462
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
463
+ type: _$zod.ZodLiteral<"url">;
464
+ url: _$zod.ZodString;
465
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
466
+ }, _$zod_v4_core0.$strip>], "type">;
467
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
468
+ type: _$zod.ZodLiteral<"document">;
469
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
470
+ type: _$zod.ZodLiteral<"base64">;
471
+ data: _$zod.ZodString;
472
+ mimeType: _$zod.ZodString;
473
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
474
+ type: _$zod.ZodLiteral<"url">;
475
+ url: _$zod.ZodString;
476
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
477
+ }, _$zod_v4_core0.$strip>], "type">;
478
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
479
+ type: _$zod.ZodLiteral<"attachment">;
480
+ fileName: _$zod.ZodString;
481
+ filePath: _$zod.ZodString;
482
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
483
+ type: _$zod.ZodLiteral<"base64">;
484
+ data: _$zod.ZodString;
485
+ mimeType: _$zod.ZodString;
486
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
487
+ type: _$zod.ZodLiteral<"url">;
488
+ url: _$zod.ZodString;
489
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
490
+ }, _$zod_v4_core0.$strip>], "type">;
491
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
492
+ attachmentType: _$zod.ZodEnum<{
493
+ file: "file";
494
+ directory: "directory";
495
+ }>;
496
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
497
+ type: _$zod.ZodLiteral<"reasoning">;
498
+ content: _$zod.ZodString;
499
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
500
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
501
+ type: _$zod.ZodLiteral<"tool_call">;
502
+ toolCallId: _$zod.ZodString;
503
+ name: _$zod.ZodString;
504
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
505
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
506
+ type: _$zod.ZodLiteral<"tool_output">;
507
+ toolCallId: _$zod.ZodString;
508
+ output: _$zod.ZodString;
509
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
510
+ }, _$zod_v4_core0.$strip>], "type">>;
511
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
512
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
513
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
514
+ timestamp: _$zod.ZodNumber;
515
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
516
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
517
+ text: "text";
518
+ voice: "voice";
519
+ compact: "compact";
520
+ }>>;
521
+ }, _$zod_v4_core0.$strip>>;
522
+ nextCursor: _$zod.ZodNullable<_$zod.ZodObject<{
523
+ timestamp: _$zod.ZodNumber;
524
+ messageId: _$zod.ZodString;
525
+ }, _$zod_v4_core0.$strip>>;
526
+ }, _$zod_v4_core0.$strip>;
527
+ };
528
+ getByTurn: {
529
+ request: _$zod.ZodObject<{
530
+ turnId: _$zod.ZodString;
531
+ }, _$zod_v4_core0.$strip>;
532
+ response: _$zod.ZodObject<{
533
+ messages: _$zod.ZodArray<_$zod.ZodObject<{
534
+ messageId: _$zod.ZodString;
535
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
536
+ sessionId: _$zod.ZodString;
537
+ role: _$zod.ZodEnum<{
538
+ user: "user";
539
+ assistant: "assistant";
540
+ }>;
541
+ contentText: _$zod.ZodString;
542
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
543
+ type: _$zod.ZodLiteral<"text">;
544
+ content: _$zod.ZodString;
545
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
546
+ type: _$zod.ZodLiteral<"image">;
547
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
548
+ type: _$zod.ZodLiteral<"base64">;
549
+ data: _$zod.ZodString;
550
+ mimeType: _$zod.ZodString;
551
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
552
+ type: _$zod.ZodLiteral<"url">;
553
+ url: _$zod.ZodString;
554
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
555
+ }, _$zod_v4_core0.$strip>], "type">;
556
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
557
+ type: _$zod.ZodLiteral<"document">;
558
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
559
+ type: _$zod.ZodLiteral<"base64">;
560
+ data: _$zod.ZodString;
561
+ mimeType: _$zod.ZodString;
562
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
563
+ type: _$zod.ZodLiteral<"url">;
564
+ url: _$zod.ZodString;
565
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
566
+ }, _$zod_v4_core0.$strip>], "type">;
567
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
568
+ type: _$zod.ZodLiteral<"attachment">;
569
+ fileName: _$zod.ZodString;
570
+ filePath: _$zod.ZodString;
571
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
572
+ type: _$zod.ZodLiteral<"base64">;
573
+ data: _$zod.ZodString;
574
+ mimeType: _$zod.ZodString;
575
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
576
+ type: _$zod.ZodLiteral<"url">;
577
+ url: _$zod.ZodString;
578
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
579
+ }, _$zod_v4_core0.$strip>], "type">;
580
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
581
+ attachmentType: _$zod.ZodEnum<{
582
+ file: "file";
583
+ directory: "directory";
584
+ }>;
585
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
586
+ type: _$zod.ZodLiteral<"reasoning">;
587
+ content: _$zod.ZodString;
588
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
589
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
590
+ type: _$zod.ZodLiteral<"tool_call">;
591
+ toolCallId: _$zod.ZodString;
592
+ name: _$zod.ZodString;
593
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
594
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
595
+ type: _$zod.ZodLiteral<"tool_output">;
596
+ toolCallId: _$zod.ZodString;
597
+ output: _$zod.ZodString;
598
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
599
+ }, _$zod_v4_core0.$strip>], "type">>;
600
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
601
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
602
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
603
+ timestamp: _$zod.ZodNumber;
604
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
605
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
606
+ text: "text";
607
+ voice: "voice";
608
+ compact: "compact";
609
+ }>>;
610
+ }, _$zod_v4_core0.$strip>>;
611
+ }, _$zod_v4_core0.$strip>;
612
+ };
613
+ get: {
614
+ request: _$zod.ZodObject<{
615
+ messageId: _$zod.ZodString;
616
+ }, _$zod_v4_core0.$strip>;
617
+ response: _$zod.ZodObject<{
618
+ message: _$zod.ZodNullable<_$zod.ZodObject<{
619
+ messageId: _$zod.ZodString;
620
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
621
+ sessionId: _$zod.ZodString;
622
+ role: _$zod.ZodEnum<{
623
+ user: "user";
624
+ assistant: "assistant";
625
+ }>;
626
+ contentText: _$zod.ZodString;
627
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
628
+ type: _$zod.ZodLiteral<"text">;
629
+ content: _$zod.ZodString;
630
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
631
+ type: _$zod.ZodLiteral<"image">;
632
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
633
+ type: _$zod.ZodLiteral<"base64">;
634
+ data: _$zod.ZodString;
635
+ mimeType: _$zod.ZodString;
636
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
637
+ type: _$zod.ZodLiteral<"url">;
638
+ url: _$zod.ZodString;
639
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
640
+ }, _$zod_v4_core0.$strip>], "type">;
641
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
642
+ type: _$zod.ZodLiteral<"document">;
643
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
644
+ type: _$zod.ZodLiteral<"base64">;
645
+ data: _$zod.ZodString;
646
+ mimeType: _$zod.ZodString;
647
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
648
+ type: _$zod.ZodLiteral<"url">;
649
+ url: _$zod.ZodString;
650
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
651
+ }, _$zod_v4_core0.$strip>], "type">;
652
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
653
+ type: _$zod.ZodLiteral<"attachment">;
654
+ fileName: _$zod.ZodString;
655
+ filePath: _$zod.ZodString;
656
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
657
+ type: _$zod.ZodLiteral<"base64">;
658
+ data: _$zod.ZodString;
659
+ mimeType: _$zod.ZodString;
660
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
661
+ type: _$zod.ZodLiteral<"url">;
662
+ url: _$zod.ZodString;
663
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
664
+ }, _$zod_v4_core0.$strip>], "type">;
665
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
666
+ attachmentType: _$zod.ZodEnum<{
667
+ file: "file";
668
+ directory: "directory";
669
+ }>;
670
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
671
+ type: _$zod.ZodLiteral<"reasoning">;
672
+ content: _$zod.ZodString;
673
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
674
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
675
+ type: _$zod.ZodLiteral<"tool_call">;
676
+ toolCallId: _$zod.ZodString;
677
+ name: _$zod.ZodString;
678
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
679
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
680
+ type: _$zod.ZodLiteral<"tool_output">;
681
+ toolCallId: _$zod.ZodString;
682
+ output: _$zod.ZodString;
683
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
684
+ }, _$zod_v4_core0.$strip>], "type">>;
685
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
686
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
687
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
688
+ timestamp: _$zod.ZodNumber;
689
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
690
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
691
+ text: "text";
692
+ voice: "voice";
693
+ compact: "compact";
694
+ }>>;
695
+ }, _$zod_v4_core0.$strip>>;
696
+ }, _$zod_v4_core0.$strip>;
697
+ };
698
+ getByAdapterMessageId: {
699
+ request: _$zod.ZodObject<{
700
+ adapterMessageId: _$zod.ZodString;
701
+ }, _$zod_v4_core0.$strip>;
702
+ response: _$zod.ZodObject<{
703
+ message: _$zod.ZodNullable<_$zod.ZodObject<{
704
+ messageId: _$zod.ZodString;
705
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
706
+ sessionId: _$zod.ZodString;
707
+ role: _$zod.ZodEnum<{
708
+ user: "user";
709
+ assistant: "assistant";
710
+ }>;
711
+ contentText: _$zod.ZodString;
712
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
713
+ type: _$zod.ZodLiteral<"text">;
714
+ content: _$zod.ZodString;
715
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
716
+ type: _$zod.ZodLiteral<"image">;
717
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
718
+ type: _$zod.ZodLiteral<"base64">;
719
+ data: _$zod.ZodString;
720
+ mimeType: _$zod.ZodString;
721
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
722
+ type: _$zod.ZodLiteral<"url">;
723
+ url: _$zod.ZodString;
724
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
725
+ }, _$zod_v4_core0.$strip>], "type">;
726
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
727
+ type: _$zod.ZodLiteral<"document">;
728
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
729
+ type: _$zod.ZodLiteral<"base64">;
730
+ data: _$zod.ZodString;
731
+ mimeType: _$zod.ZodString;
732
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
733
+ type: _$zod.ZodLiteral<"url">;
734
+ url: _$zod.ZodString;
735
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
736
+ }, _$zod_v4_core0.$strip>], "type">;
737
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
738
+ type: _$zod.ZodLiteral<"attachment">;
739
+ fileName: _$zod.ZodString;
740
+ filePath: _$zod.ZodString;
741
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
742
+ type: _$zod.ZodLiteral<"base64">;
743
+ data: _$zod.ZodString;
744
+ mimeType: _$zod.ZodString;
745
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
746
+ type: _$zod.ZodLiteral<"url">;
747
+ url: _$zod.ZodString;
748
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
749
+ }, _$zod_v4_core0.$strip>], "type">;
750
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
751
+ attachmentType: _$zod.ZodEnum<{
752
+ file: "file";
753
+ directory: "directory";
754
+ }>;
755
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
756
+ type: _$zod.ZodLiteral<"reasoning">;
757
+ content: _$zod.ZodString;
758
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
759
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
760
+ type: _$zod.ZodLiteral<"tool_call">;
761
+ toolCallId: _$zod.ZodString;
762
+ name: _$zod.ZodString;
763
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
764
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
765
+ type: _$zod.ZodLiteral<"tool_output">;
766
+ toolCallId: _$zod.ZodString;
767
+ output: _$zod.ZodString;
768
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
769
+ }, _$zod_v4_core0.$strip>], "type">>;
770
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
771
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
772
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
773
+ timestamp: _$zod.ZodNumber;
774
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
775
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
776
+ text: "text";
777
+ voice: "voice";
778
+ compact: "compact";
779
+ }>>;
780
+ }, _$zod_v4_core0.$strip>>;
781
+ }, _$zod_v4_core0.$strip>;
782
+ };
783
+ search: {
784
+ request: _$zod.ZodObject<{
785
+ query: _$zod.ZodString;
786
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
787
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
788
+ }, _$zod_v4_core0.$strip>;
789
+ response: _$zod.ZodObject<{
790
+ messages: _$zod.ZodArray<_$zod.ZodObject<{
791
+ messageId: _$zod.ZodString;
792
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
793
+ sessionId: _$zod.ZodString;
794
+ role: _$zod.ZodEnum<{
795
+ user: "user";
796
+ assistant: "assistant";
797
+ }>;
798
+ contentText: _$zod.ZodString;
799
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
800
+ type: _$zod.ZodLiteral<"text">;
801
+ content: _$zod.ZodString;
802
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
803
+ type: _$zod.ZodLiteral<"image">;
804
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
805
+ type: _$zod.ZodLiteral<"base64">;
806
+ data: _$zod.ZodString;
807
+ mimeType: _$zod.ZodString;
808
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
809
+ type: _$zod.ZodLiteral<"url">;
810
+ url: _$zod.ZodString;
811
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
812
+ }, _$zod_v4_core0.$strip>], "type">;
813
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
814
+ type: _$zod.ZodLiteral<"document">;
815
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
816
+ type: _$zod.ZodLiteral<"base64">;
817
+ data: _$zod.ZodString;
818
+ mimeType: _$zod.ZodString;
819
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
820
+ type: _$zod.ZodLiteral<"url">;
821
+ url: _$zod.ZodString;
822
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
823
+ }, _$zod_v4_core0.$strip>], "type">;
824
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
825
+ type: _$zod.ZodLiteral<"attachment">;
826
+ fileName: _$zod.ZodString;
827
+ filePath: _$zod.ZodString;
828
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
829
+ type: _$zod.ZodLiteral<"base64">;
830
+ data: _$zod.ZodString;
831
+ mimeType: _$zod.ZodString;
832
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
833
+ type: _$zod.ZodLiteral<"url">;
834
+ url: _$zod.ZodString;
835
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
836
+ }, _$zod_v4_core0.$strip>], "type">;
837
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
838
+ attachmentType: _$zod.ZodEnum<{
839
+ file: "file";
840
+ directory: "directory";
841
+ }>;
842
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
843
+ type: _$zod.ZodLiteral<"reasoning">;
844
+ content: _$zod.ZodString;
845
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
846
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
847
+ type: _$zod.ZodLiteral<"tool_call">;
848
+ toolCallId: _$zod.ZodString;
849
+ name: _$zod.ZodString;
850
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
851
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
852
+ type: _$zod.ZodLiteral<"tool_output">;
853
+ toolCallId: _$zod.ZodString;
854
+ output: _$zod.ZodString;
855
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
856
+ }, _$zod_v4_core0.$strip>], "type">>;
857
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
858
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
859
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
860
+ timestamp: _$zod.ZodNumber;
861
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
862
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
863
+ text: "text";
864
+ voice: "voice";
865
+ compact: "compact";
866
+ }>>;
867
+ }, _$zod_v4_core0.$strip>>;
868
+ total: _$zod.ZodNumber;
869
+ }, _$zod_v4_core0.$strip>;
870
+ };
871
+ ftsSearch: {
872
+ request: _$zod.ZodObject<{
873
+ query: _$zod.ZodString;
874
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
875
+ limit: _$zod.ZodDefault<_$zod.ZodOptional<_$zod.ZodNumber>>;
876
+ }, _$zod_v4_core0.$strip>;
877
+ response: _$zod.ZodObject<{
878
+ results: _$zod.ZodArray<_$zod.ZodObject<{
879
+ messageId: _$zod.ZodString;
880
+ sessionId: _$zod.ZodString;
881
+ score: _$zod.ZodNumber;
882
+ excerpt: _$zod.ZodString;
883
+ }, _$zod_v4_core0.$strip>>;
884
+ total: _$zod.ZodNumber;
885
+ }, _$zod_v4_core0.$strip>;
886
+ };
887
+ upsertByAdapterMessageId: {
888
+ request: _$zod.ZodObject<{
889
+ sessionId: _$zod.ZodString;
890
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
891
+ adapterMessageId: _$zod.ZodString;
892
+ role: _$zod.ZodEnum<{
893
+ user: "user";
894
+ assistant: "assistant";
895
+ }>;
896
+ contentText: _$zod.ZodString;
897
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
898
+ type: _$zod.ZodLiteral<"text">;
899
+ content: _$zod.ZodString;
900
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
901
+ type: _$zod.ZodLiteral<"image">;
902
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
903
+ type: _$zod.ZodLiteral<"base64">;
904
+ data: _$zod.ZodString;
905
+ mimeType: _$zod.ZodString;
906
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
907
+ type: _$zod.ZodLiteral<"url">;
908
+ url: _$zod.ZodString;
909
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
910
+ }, _$zod_v4_core0.$strip>], "type">;
911
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
912
+ type: _$zod.ZodLiteral<"document">;
913
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
914
+ type: _$zod.ZodLiteral<"base64">;
915
+ data: _$zod.ZodString;
916
+ mimeType: _$zod.ZodString;
917
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
918
+ type: _$zod.ZodLiteral<"url">;
919
+ url: _$zod.ZodString;
920
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
921
+ }, _$zod_v4_core0.$strip>], "type">;
922
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
923
+ type: _$zod.ZodLiteral<"attachment">;
924
+ fileName: _$zod.ZodString;
925
+ filePath: _$zod.ZodString;
926
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
927
+ type: _$zod.ZodLiteral<"base64">;
928
+ data: _$zod.ZodString;
929
+ mimeType: _$zod.ZodString;
930
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
931
+ type: _$zod.ZodLiteral<"url">;
932
+ url: _$zod.ZodString;
933
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
934
+ }, _$zod_v4_core0.$strip>], "type">;
935
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
936
+ attachmentType: _$zod.ZodEnum<{
937
+ file: "file";
938
+ directory: "directory";
939
+ }>;
940
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
941
+ type: _$zod.ZodLiteral<"reasoning">;
942
+ content: _$zod.ZodString;
943
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
944
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
945
+ type: _$zod.ZodLiteral<"tool_call">;
946
+ toolCallId: _$zod.ZodString;
947
+ name: _$zod.ZodString;
948
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
949
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
950
+ type: _$zod.ZodLiteral<"tool_output">;
951
+ toolCallId: _$zod.ZodString;
952
+ output: _$zod.ZodString;
953
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
954
+ }, _$zod_v4_core0.$strip>], "type">>;
955
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
956
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
957
+ timestamp: _$zod.ZodNumber;
958
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
959
+ text: "text";
960
+ voice: "voice";
961
+ compact: "compact";
962
+ }>>;
963
+ }, _$zod_v4_core0.$strip>;
964
+ response: _$zod.ZodObject<{
965
+ messageId: _$zod.ZodString;
966
+ created: _$zod.ZodBoolean;
967
+ }, _$zod_v4_core0.$strip>;
968
+ };
969
+ stored: _$zod.ZodObject<{
970
+ message: _$zod.ZodObject<{
971
+ messageId: _$zod.ZodString;
972
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
973
+ sessionId: _$zod.ZodString;
974
+ role: _$zod.ZodEnum<{
975
+ user: "user";
976
+ assistant: "assistant";
977
+ }>;
978
+ contentText: _$zod.ZodString;
979
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
980
+ type: _$zod.ZodLiteral<"text">;
981
+ content: _$zod.ZodString;
982
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
983
+ type: _$zod.ZodLiteral<"image">;
984
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
985
+ type: _$zod.ZodLiteral<"base64">;
986
+ data: _$zod.ZodString;
987
+ mimeType: _$zod.ZodString;
988
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
989
+ type: _$zod.ZodLiteral<"url">;
990
+ url: _$zod.ZodString;
991
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
992
+ }, _$zod_v4_core0.$strip>], "type">;
993
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
994
+ type: _$zod.ZodLiteral<"document">;
995
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
996
+ type: _$zod.ZodLiteral<"base64">;
997
+ data: _$zod.ZodString;
998
+ mimeType: _$zod.ZodString;
999
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1000
+ type: _$zod.ZodLiteral<"url">;
1001
+ url: _$zod.ZodString;
1002
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1003
+ }, _$zod_v4_core0.$strip>], "type">;
1004
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1005
+ type: _$zod.ZodLiteral<"attachment">;
1006
+ fileName: _$zod.ZodString;
1007
+ filePath: _$zod.ZodString;
1008
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1009
+ type: _$zod.ZodLiteral<"base64">;
1010
+ data: _$zod.ZodString;
1011
+ mimeType: _$zod.ZodString;
1012
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1013
+ type: _$zod.ZodLiteral<"url">;
1014
+ url: _$zod.ZodString;
1015
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1016
+ }, _$zod_v4_core0.$strip>], "type">;
1017
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1018
+ attachmentType: _$zod.ZodEnum<{
1019
+ file: "file";
1020
+ directory: "directory";
1021
+ }>;
1022
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1023
+ type: _$zod.ZodLiteral<"reasoning">;
1024
+ content: _$zod.ZodString;
1025
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1026
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1027
+ type: _$zod.ZodLiteral<"tool_call">;
1028
+ toolCallId: _$zod.ZodString;
1029
+ name: _$zod.ZodString;
1030
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1031
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1032
+ type: _$zod.ZodLiteral<"tool_output">;
1033
+ toolCallId: _$zod.ZodString;
1034
+ output: _$zod.ZodString;
1035
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1036
+ }, _$zod_v4_core0.$strip>], "type">>;
1037
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1038
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1039
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1040
+ timestamp: _$zod.ZodNumber;
1041
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1042
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1043
+ text: "text";
1044
+ voice: "voice";
1045
+ compact: "compact";
1046
+ }>>;
1047
+ }, _$zod_v4_core0.$strip>;
1048
+ }, _$zod_v4_core0.$strip>;
1049
+ }>, "storage:message">;
1050
+ schemas: {
1051
+ append: {
1052
+ request: _$zod.ZodObject<{
1053
+ message: _$zod.ZodObject<{
1054
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1055
+ text: "text";
1056
+ voice: "voice";
1057
+ compact: "compact";
1058
+ }>>;
1059
+ sessionId: _$zod.ZodString;
1060
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1061
+ timestamp: _$zod.ZodNumber;
1062
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1063
+ role: _$zod.ZodEnum<{
1064
+ user: "user";
1065
+ assistant: "assistant";
1066
+ }>;
1067
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1068
+ type: _$zod.ZodLiteral<"text">;
1069
+ content: _$zod.ZodString;
1070
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1071
+ type: _$zod.ZodLiteral<"image">;
1072
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1073
+ type: _$zod.ZodLiteral<"base64">;
1074
+ data: _$zod.ZodString;
1075
+ mimeType: _$zod.ZodString;
1076
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1077
+ type: _$zod.ZodLiteral<"url">;
1078
+ url: _$zod.ZodString;
1079
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1080
+ }, _$zod_v4_core0.$strip>], "type">;
1081
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1082
+ type: _$zod.ZodLiteral<"document">;
1083
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1084
+ type: _$zod.ZodLiteral<"base64">;
1085
+ data: _$zod.ZodString;
1086
+ mimeType: _$zod.ZodString;
1087
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1088
+ type: _$zod.ZodLiteral<"url">;
1089
+ url: _$zod.ZodString;
1090
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1091
+ }, _$zod_v4_core0.$strip>], "type">;
1092
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1093
+ type: _$zod.ZodLiteral<"attachment">;
1094
+ fileName: _$zod.ZodString;
1095
+ filePath: _$zod.ZodString;
1096
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1097
+ type: _$zod.ZodLiteral<"base64">;
1098
+ data: _$zod.ZodString;
1099
+ mimeType: _$zod.ZodString;
1100
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1101
+ type: _$zod.ZodLiteral<"url">;
1102
+ url: _$zod.ZodString;
1103
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1104
+ }, _$zod_v4_core0.$strip>], "type">;
1105
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1106
+ attachmentType: _$zod.ZodEnum<{
1107
+ file: "file";
1108
+ directory: "directory";
1109
+ }>;
1110
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1111
+ type: _$zod.ZodLiteral<"reasoning">;
1112
+ content: _$zod.ZodString;
1113
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1114
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1115
+ type: _$zod.ZodLiteral<"tool_call">;
1116
+ toolCallId: _$zod.ZodString;
1117
+ name: _$zod.ZodString;
1118
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1119
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1120
+ type: _$zod.ZodLiteral<"tool_output">;
1121
+ toolCallId: _$zod.ZodString;
1122
+ output: _$zod.ZodString;
1123
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1124
+ }, _$zod_v4_core0.$strip>], "type">>;
1125
+ contentText: _$zod.ZodString;
1126
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1127
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1128
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1129
+ messageId: _$zod.ZodOptional<_$zod.ZodString>;
1130
+ }, _$zod_v4_core0.$strip>;
1131
+ emitEvent: _$zod.ZodOptional<_$zod.ZodBoolean>;
1132
+ }, _$zod_v4_core0.$strip>;
1133
+ response: _$zod.ZodObject<{
1134
+ message: _$zod.ZodObject<{
1135
+ messageId: _$zod.ZodString;
1136
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1137
+ sessionId: _$zod.ZodString;
1138
+ role: _$zod.ZodEnum<{
1139
+ user: "user";
1140
+ assistant: "assistant";
1141
+ }>;
1142
+ contentText: _$zod.ZodString;
1143
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1144
+ type: _$zod.ZodLiteral<"text">;
1145
+ content: _$zod.ZodString;
1146
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1147
+ type: _$zod.ZodLiteral<"image">;
1148
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1149
+ type: _$zod.ZodLiteral<"base64">;
1150
+ data: _$zod.ZodString;
1151
+ mimeType: _$zod.ZodString;
1152
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1153
+ type: _$zod.ZodLiteral<"url">;
1154
+ url: _$zod.ZodString;
1155
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1156
+ }, _$zod_v4_core0.$strip>], "type">;
1157
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1158
+ type: _$zod.ZodLiteral<"document">;
1159
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1160
+ type: _$zod.ZodLiteral<"base64">;
1161
+ data: _$zod.ZodString;
1162
+ mimeType: _$zod.ZodString;
1163
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1164
+ type: _$zod.ZodLiteral<"url">;
1165
+ url: _$zod.ZodString;
1166
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1167
+ }, _$zod_v4_core0.$strip>], "type">;
1168
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1169
+ type: _$zod.ZodLiteral<"attachment">;
1170
+ fileName: _$zod.ZodString;
1171
+ filePath: _$zod.ZodString;
1172
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1173
+ type: _$zod.ZodLiteral<"base64">;
1174
+ data: _$zod.ZodString;
1175
+ mimeType: _$zod.ZodString;
1176
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1177
+ type: _$zod.ZodLiteral<"url">;
1178
+ url: _$zod.ZodString;
1179
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1180
+ }, _$zod_v4_core0.$strip>], "type">;
1181
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1182
+ attachmentType: _$zod.ZodEnum<{
1183
+ file: "file";
1184
+ directory: "directory";
1185
+ }>;
1186
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1187
+ type: _$zod.ZodLiteral<"reasoning">;
1188
+ content: _$zod.ZodString;
1189
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1190
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1191
+ type: _$zod.ZodLiteral<"tool_call">;
1192
+ toolCallId: _$zod.ZodString;
1193
+ name: _$zod.ZodString;
1194
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1195
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1196
+ type: _$zod.ZodLiteral<"tool_output">;
1197
+ toolCallId: _$zod.ZodString;
1198
+ output: _$zod.ZodString;
1199
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1200
+ }, _$zod_v4_core0.$strip>], "type">>;
1201
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1202
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1203
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1204
+ timestamp: _$zod.ZodNumber;
1205
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1206
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1207
+ text: "text";
1208
+ voice: "voice";
1209
+ compact: "compact";
1210
+ }>>;
1211
+ }, _$zod_v4_core0.$strip>;
1212
+ }, _$zod_v4_core0.$strip>;
1213
+ };
1214
+ getBySession: {
1215
+ request: _$zod.ZodObject<{
1216
+ sessionId: _$zod.ZodString;
1217
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
1218
+ after: _$zod.ZodOptional<_$zod.ZodObject<{
1219
+ timestamp: _$zod.ZodNumber;
1220
+ messageId: _$zod.ZodString;
1221
+ }, _$zod_v4_core0.$strip>>;
1222
+ includeAfter: _$zod.ZodOptional<_$zod.ZodBoolean>;
1223
+ order: _$zod.ZodOptional<_$zod.ZodEnum<{
1224
+ asc: "asc";
1225
+ desc: "desc";
1226
+ }>>;
1227
+ }, _$zod_v4_core0.$strip>;
1228
+ response: _$zod.ZodObject<{
1229
+ messages: _$zod.ZodArray<_$zod.ZodObject<{
1230
+ messageId: _$zod.ZodString;
1231
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1232
+ sessionId: _$zod.ZodString;
1233
+ role: _$zod.ZodEnum<{
1234
+ user: "user";
1235
+ assistant: "assistant";
1236
+ }>;
1237
+ contentText: _$zod.ZodString;
1238
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1239
+ type: _$zod.ZodLiteral<"text">;
1240
+ content: _$zod.ZodString;
1241
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1242
+ type: _$zod.ZodLiteral<"image">;
1243
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1244
+ type: _$zod.ZodLiteral<"base64">;
1245
+ data: _$zod.ZodString;
1246
+ mimeType: _$zod.ZodString;
1247
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1248
+ type: _$zod.ZodLiteral<"url">;
1249
+ url: _$zod.ZodString;
1250
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1251
+ }, _$zod_v4_core0.$strip>], "type">;
1252
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1253
+ type: _$zod.ZodLiteral<"document">;
1254
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1255
+ type: _$zod.ZodLiteral<"base64">;
1256
+ data: _$zod.ZodString;
1257
+ mimeType: _$zod.ZodString;
1258
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1259
+ type: _$zod.ZodLiteral<"url">;
1260
+ url: _$zod.ZodString;
1261
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1262
+ }, _$zod_v4_core0.$strip>], "type">;
1263
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1264
+ type: _$zod.ZodLiteral<"attachment">;
1265
+ fileName: _$zod.ZodString;
1266
+ filePath: _$zod.ZodString;
1267
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1268
+ type: _$zod.ZodLiteral<"base64">;
1269
+ data: _$zod.ZodString;
1270
+ mimeType: _$zod.ZodString;
1271
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1272
+ type: _$zod.ZodLiteral<"url">;
1273
+ url: _$zod.ZodString;
1274
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1275
+ }, _$zod_v4_core0.$strip>], "type">;
1276
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1277
+ attachmentType: _$zod.ZodEnum<{
1278
+ file: "file";
1279
+ directory: "directory";
1280
+ }>;
1281
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1282
+ type: _$zod.ZodLiteral<"reasoning">;
1283
+ content: _$zod.ZodString;
1284
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1285
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1286
+ type: _$zod.ZodLiteral<"tool_call">;
1287
+ toolCallId: _$zod.ZodString;
1288
+ name: _$zod.ZodString;
1289
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1290
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1291
+ type: _$zod.ZodLiteral<"tool_output">;
1292
+ toolCallId: _$zod.ZodString;
1293
+ output: _$zod.ZodString;
1294
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1295
+ }, _$zod_v4_core0.$strip>], "type">>;
1296
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1297
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1298
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1299
+ timestamp: _$zod.ZodNumber;
1300
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1301
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1302
+ text: "text";
1303
+ voice: "voice";
1304
+ compact: "compact";
1305
+ }>>;
1306
+ }, _$zod_v4_core0.$strip>>;
1307
+ nextCursor: _$zod.ZodNullable<_$zod.ZodObject<{
1308
+ timestamp: _$zod.ZodNumber;
1309
+ messageId: _$zod.ZodString;
1310
+ }, _$zod_v4_core0.$strip>>;
1311
+ }, _$zod_v4_core0.$strip>;
1312
+ };
1313
+ getByTurn: {
1314
+ request: _$zod.ZodObject<{
1315
+ turnId: _$zod.ZodString;
1316
+ }, _$zod_v4_core0.$strip>;
1317
+ response: _$zod.ZodObject<{
1318
+ messages: _$zod.ZodArray<_$zod.ZodObject<{
1319
+ messageId: _$zod.ZodString;
1320
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1321
+ sessionId: _$zod.ZodString;
1322
+ role: _$zod.ZodEnum<{
1323
+ user: "user";
1324
+ assistant: "assistant";
1325
+ }>;
1326
+ contentText: _$zod.ZodString;
1327
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1328
+ type: _$zod.ZodLiteral<"text">;
1329
+ content: _$zod.ZodString;
1330
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1331
+ type: _$zod.ZodLiteral<"image">;
1332
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1333
+ type: _$zod.ZodLiteral<"base64">;
1334
+ data: _$zod.ZodString;
1335
+ mimeType: _$zod.ZodString;
1336
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1337
+ type: _$zod.ZodLiteral<"url">;
1338
+ url: _$zod.ZodString;
1339
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1340
+ }, _$zod_v4_core0.$strip>], "type">;
1341
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1342
+ type: _$zod.ZodLiteral<"document">;
1343
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1344
+ type: _$zod.ZodLiteral<"base64">;
1345
+ data: _$zod.ZodString;
1346
+ mimeType: _$zod.ZodString;
1347
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1348
+ type: _$zod.ZodLiteral<"url">;
1349
+ url: _$zod.ZodString;
1350
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1351
+ }, _$zod_v4_core0.$strip>], "type">;
1352
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1353
+ type: _$zod.ZodLiteral<"attachment">;
1354
+ fileName: _$zod.ZodString;
1355
+ filePath: _$zod.ZodString;
1356
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1357
+ type: _$zod.ZodLiteral<"base64">;
1358
+ data: _$zod.ZodString;
1359
+ mimeType: _$zod.ZodString;
1360
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1361
+ type: _$zod.ZodLiteral<"url">;
1362
+ url: _$zod.ZodString;
1363
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1364
+ }, _$zod_v4_core0.$strip>], "type">;
1365
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1366
+ attachmentType: _$zod.ZodEnum<{
1367
+ file: "file";
1368
+ directory: "directory";
1369
+ }>;
1370
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1371
+ type: _$zod.ZodLiteral<"reasoning">;
1372
+ content: _$zod.ZodString;
1373
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1374
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1375
+ type: _$zod.ZodLiteral<"tool_call">;
1376
+ toolCallId: _$zod.ZodString;
1377
+ name: _$zod.ZodString;
1378
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1379
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1380
+ type: _$zod.ZodLiteral<"tool_output">;
1381
+ toolCallId: _$zod.ZodString;
1382
+ output: _$zod.ZodString;
1383
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1384
+ }, _$zod_v4_core0.$strip>], "type">>;
1385
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1386
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1387
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1388
+ timestamp: _$zod.ZodNumber;
1389
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1390
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1391
+ text: "text";
1392
+ voice: "voice";
1393
+ compact: "compact";
1394
+ }>>;
1395
+ }, _$zod_v4_core0.$strip>>;
1396
+ }, _$zod_v4_core0.$strip>;
1397
+ };
1398
+ get: {
1399
+ request: _$zod.ZodObject<{
1400
+ messageId: _$zod.ZodString;
1401
+ }, _$zod_v4_core0.$strip>;
1402
+ response: _$zod.ZodObject<{
1403
+ message: _$zod.ZodNullable<_$zod.ZodObject<{
1404
+ messageId: _$zod.ZodString;
1405
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1406
+ sessionId: _$zod.ZodString;
1407
+ role: _$zod.ZodEnum<{
1408
+ user: "user";
1409
+ assistant: "assistant";
1410
+ }>;
1411
+ contentText: _$zod.ZodString;
1412
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1413
+ type: _$zod.ZodLiteral<"text">;
1414
+ content: _$zod.ZodString;
1415
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1416
+ type: _$zod.ZodLiteral<"image">;
1417
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1418
+ type: _$zod.ZodLiteral<"base64">;
1419
+ data: _$zod.ZodString;
1420
+ mimeType: _$zod.ZodString;
1421
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1422
+ type: _$zod.ZodLiteral<"url">;
1423
+ url: _$zod.ZodString;
1424
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1425
+ }, _$zod_v4_core0.$strip>], "type">;
1426
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1427
+ type: _$zod.ZodLiteral<"document">;
1428
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1429
+ type: _$zod.ZodLiteral<"base64">;
1430
+ data: _$zod.ZodString;
1431
+ mimeType: _$zod.ZodString;
1432
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1433
+ type: _$zod.ZodLiteral<"url">;
1434
+ url: _$zod.ZodString;
1435
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1436
+ }, _$zod_v4_core0.$strip>], "type">;
1437
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1438
+ type: _$zod.ZodLiteral<"attachment">;
1439
+ fileName: _$zod.ZodString;
1440
+ filePath: _$zod.ZodString;
1441
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1442
+ type: _$zod.ZodLiteral<"base64">;
1443
+ data: _$zod.ZodString;
1444
+ mimeType: _$zod.ZodString;
1445
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1446
+ type: _$zod.ZodLiteral<"url">;
1447
+ url: _$zod.ZodString;
1448
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1449
+ }, _$zod_v4_core0.$strip>], "type">;
1450
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1451
+ attachmentType: _$zod.ZodEnum<{
1452
+ file: "file";
1453
+ directory: "directory";
1454
+ }>;
1455
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1456
+ type: _$zod.ZodLiteral<"reasoning">;
1457
+ content: _$zod.ZodString;
1458
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1459
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1460
+ type: _$zod.ZodLiteral<"tool_call">;
1461
+ toolCallId: _$zod.ZodString;
1462
+ name: _$zod.ZodString;
1463
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1464
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1465
+ type: _$zod.ZodLiteral<"tool_output">;
1466
+ toolCallId: _$zod.ZodString;
1467
+ output: _$zod.ZodString;
1468
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1469
+ }, _$zod_v4_core0.$strip>], "type">>;
1470
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1471
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1472
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1473
+ timestamp: _$zod.ZodNumber;
1474
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1475
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1476
+ text: "text";
1477
+ voice: "voice";
1478
+ compact: "compact";
1479
+ }>>;
1480
+ }, _$zod_v4_core0.$strip>>;
1481
+ }, _$zod_v4_core0.$strip>;
1482
+ };
1483
+ getByAdapterMessageId: {
1484
+ request: _$zod.ZodObject<{
1485
+ adapterMessageId: _$zod.ZodString;
1486
+ }, _$zod_v4_core0.$strip>;
1487
+ response: _$zod.ZodObject<{
1488
+ message: _$zod.ZodNullable<_$zod.ZodObject<{
1489
+ messageId: _$zod.ZodString;
1490
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1491
+ sessionId: _$zod.ZodString;
1492
+ role: _$zod.ZodEnum<{
1493
+ user: "user";
1494
+ assistant: "assistant";
1495
+ }>;
1496
+ contentText: _$zod.ZodString;
1497
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1498
+ type: _$zod.ZodLiteral<"text">;
1499
+ content: _$zod.ZodString;
1500
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1501
+ type: _$zod.ZodLiteral<"image">;
1502
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1503
+ type: _$zod.ZodLiteral<"base64">;
1504
+ data: _$zod.ZodString;
1505
+ mimeType: _$zod.ZodString;
1506
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1507
+ type: _$zod.ZodLiteral<"url">;
1508
+ url: _$zod.ZodString;
1509
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1510
+ }, _$zod_v4_core0.$strip>], "type">;
1511
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1512
+ type: _$zod.ZodLiteral<"document">;
1513
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1514
+ type: _$zod.ZodLiteral<"base64">;
1515
+ data: _$zod.ZodString;
1516
+ mimeType: _$zod.ZodString;
1517
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1518
+ type: _$zod.ZodLiteral<"url">;
1519
+ url: _$zod.ZodString;
1520
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1521
+ }, _$zod_v4_core0.$strip>], "type">;
1522
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1523
+ type: _$zod.ZodLiteral<"attachment">;
1524
+ fileName: _$zod.ZodString;
1525
+ filePath: _$zod.ZodString;
1526
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1527
+ type: _$zod.ZodLiteral<"base64">;
1528
+ data: _$zod.ZodString;
1529
+ mimeType: _$zod.ZodString;
1530
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1531
+ type: _$zod.ZodLiteral<"url">;
1532
+ url: _$zod.ZodString;
1533
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1534
+ }, _$zod_v4_core0.$strip>], "type">;
1535
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1536
+ attachmentType: _$zod.ZodEnum<{
1537
+ file: "file";
1538
+ directory: "directory";
1539
+ }>;
1540
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1541
+ type: _$zod.ZodLiteral<"reasoning">;
1542
+ content: _$zod.ZodString;
1543
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1544
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1545
+ type: _$zod.ZodLiteral<"tool_call">;
1546
+ toolCallId: _$zod.ZodString;
1547
+ name: _$zod.ZodString;
1548
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1549
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1550
+ type: _$zod.ZodLiteral<"tool_output">;
1551
+ toolCallId: _$zod.ZodString;
1552
+ output: _$zod.ZodString;
1553
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1554
+ }, _$zod_v4_core0.$strip>], "type">>;
1555
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1556
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1557
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1558
+ timestamp: _$zod.ZodNumber;
1559
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1560
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1561
+ text: "text";
1562
+ voice: "voice";
1563
+ compact: "compact";
1564
+ }>>;
1565
+ }, _$zod_v4_core0.$strip>>;
1566
+ }, _$zod_v4_core0.$strip>;
1567
+ };
1568
+ search: {
1569
+ request: _$zod.ZodObject<{
1570
+ query: _$zod.ZodString;
1571
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1572
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
1573
+ }, _$zod_v4_core0.$strip>;
1574
+ response: _$zod.ZodObject<{
1575
+ messages: _$zod.ZodArray<_$zod.ZodObject<{
1576
+ messageId: _$zod.ZodString;
1577
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1578
+ sessionId: _$zod.ZodString;
1579
+ role: _$zod.ZodEnum<{
1580
+ user: "user";
1581
+ assistant: "assistant";
1582
+ }>;
1583
+ contentText: _$zod.ZodString;
1584
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1585
+ type: _$zod.ZodLiteral<"text">;
1586
+ content: _$zod.ZodString;
1587
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1588
+ type: _$zod.ZodLiteral<"image">;
1589
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1590
+ type: _$zod.ZodLiteral<"base64">;
1591
+ data: _$zod.ZodString;
1592
+ mimeType: _$zod.ZodString;
1593
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1594
+ type: _$zod.ZodLiteral<"url">;
1595
+ url: _$zod.ZodString;
1596
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1597
+ }, _$zod_v4_core0.$strip>], "type">;
1598
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1599
+ type: _$zod.ZodLiteral<"document">;
1600
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1601
+ type: _$zod.ZodLiteral<"base64">;
1602
+ data: _$zod.ZodString;
1603
+ mimeType: _$zod.ZodString;
1604
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1605
+ type: _$zod.ZodLiteral<"url">;
1606
+ url: _$zod.ZodString;
1607
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1608
+ }, _$zod_v4_core0.$strip>], "type">;
1609
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1610
+ type: _$zod.ZodLiteral<"attachment">;
1611
+ fileName: _$zod.ZodString;
1612
+ filePath: _$zod.ZodString;
1613
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1614
+ type: _$zod.ZodLiteral<"base64">;
1615
+ data: _$zod.ZodString;
1616
+ mimeType: _$zod.ZodString;
1617
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1618
+ type: _$zod.ZodLiteral<"url">;
1619
+ url: _$zod.ZodString;
1620
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1621
+ }, _$zod_v4_core0.$strip>], "type">;
1622
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1623
+ attachmentType: _$zod.ZodEnum<{
1624
+ file: "file";
1625
+ directory: "directory";
1626
+ }>;
1627
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1628
+ type: _$zod.ZodLiteral<"reasoning">;
1629
+ content: _$zod.ZodString;
1630
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1631
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1632
+ type: _$zod.ZodLiteral<"tool_call">;
1633
+ toolCallId: _$zod.ZodString;
1634
+ name: _$zod.ZodString;
1635
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1636
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1637
+ type: _$zod.ZodLiteral<"tool_output">;
1638
+ toolCallId: _$zod.ZodString;
1639
+ output: _$zod.ZodString;
1640
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1641
+ }, _$zod_v4_core0.$strip>], "type">>;
1642
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1643
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1644
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1645
+ timestamp: _$zod.ZodNumber;
1646
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1647
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1648
+ text: "text";
1649
+ voice: "voice";
1650
+ compact: "compact";
1651
+ }>>;
1652
+ }, _$zod_v4_core0.$strip>>;
1653
+ total: _$zod.ZodNumber;
1654
+ }, _$zod_v4_core0.$strip>;
1655
+ };
1656
+ ftsSearch: {
1657
+ request: _$zod.ZodObject<{
1658
+ query: _$zod.ZodString;
1659
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1660
+ limit: _$zod.ZodDefault<_$zod.ZodOptional<_$zod.ZodNumber>>;
1661
+ }, _$zod_v4_core0.$strip>;
1662
+ response: _$zod.ZodObject<{
1663
+ results: _$zod.ZodArray<_$zod.ZodObject<{
1664
+ messageId: _$zod.ZodString;
1665
+ sessionId: _$zod.ZodString;
1666
+ score: _$zod.ZodNumber;
1667
+ excerpt: _$zod.ZodString;
1668
+ }, _$zod_v4_core0.$strip>>;
1669
+ total: _$zod.ZodNumber;
1670
+ }, _$zod_v4_core0.$strip>;
1671
+ };
1672
+ upsertByAdapterMessageId: {
1673
+ request: _$zod.ZodObject<{
1674
+ sessionId: _$zod.ZodString;
1675
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1676
+ adapterMessageId: _$zod.ZodString;
1677
+ role: _$zod.ZodEnum<{
1678
+ user: "user";
1679
+ assistant: "assistant";
1680
+ }>;
1681
+ contentText: _$zod.ZodString;
1682
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1683
+ type: _$zod.ZodLiteral<"text">;
1684
+ content: _$zod.ZodString;
1685
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1686
+ type: _$zod.ZodLiteral<"image">;
1687
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1688
+ type: _$zod.ZodLiteral<"base64">;
1689
+ data: _$zod.ZodString;
1690
+ mimeType: _$zod.ZodString;
1691
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1692
+ type: _$zod.ZodLiteral<"url">;
1693
+ url: _$zod.ZodString;
1694
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1695
+ }, _$zod_v4_core0.$strip>], "type">;
1696
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1697
+ type: _$zod.ZodLiteral<"document">;
1698
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1699
+ type: _$zod.ZodLiteral<"base64">;
1700
+ data: _$zod.ZodString;
1701
+ mimeType: _$zod.ZodString;
1702
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1703
+ type: _$zod.ZodLiteral<"url">;
1704
+ url: _$zod.ZodString;
1705
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1706
+ }, _$zod_v4_core0.$strip>], "type">;
1707
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1708
+ type: _$zod.ZodLiteral<"attachment">;
1709
+ fileName: _$zod.ZodString;
1710
+ filePath: _$zod.ZodString;
1711
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1712
+ type: _$zod.ZodLiteral<"base64">;
1713
+ data: _$zod.ZodString;
1714
+ mimeType: _$zod.ZodString;
1715
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1716
+ type: _$zod.ZodLiteral<"url">;
1717
+ url: _$zod.ZodString;
1718
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1719
+ }, _$zod_v4_core0.$strip>], "type">;
1720
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1721
+ attachmentType: _$zod.ZodEnum<{
1722
+ file: "file";
1723
+ directory: "directory";
1724
+ }>;
1725
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1726
+ type: _$zod.ZodLiteral<"reasoning">;
1727
+ content: _$zod.ZodString;
1728
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1729
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1730
+ type: _$zod.ZodLiteral<"tool_call">;
1731
+ toolCallId: _$zod.ZodString;
1732
+ name: _$zod.ZodString;
1733
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1734
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1735
+ type: _$zod.ZodLiteral<"tool_output">;
1736
+ toolCallId: _$zod.ZodString;
1737
+ output: _$zod.ZodString;
1738
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1739
+ }, _$zod_v4_core0.$strip>], "type">>;
1740
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1741
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1742
+ timestamp: _$zod.ZodNumber;
1743
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1744
+ text: "text";
1745
+ voice: "voice";
1746
+ compact: "compact";
1747
+ }>>;
1748
+ }, _$zod_v4_core0.$strip>;
1749
+ response: _$zod.ZodObject<{
1750
+ messageId: _$zod.ZodString;
1751
+ created: _$zod.ZodBoolean;
1752
+ }, _$zod_v4_core0.$strip>;
1753
+ };
1754
+ stored: _$zod.ZodObject<{
1755
+ message: _$zod.ZodObject<{
1756
+ messageId: _$zod.ZodString;
1757
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1758
+ sessionId: _$zod.ZodString;
1759
+ role: _$zod.ZodEnum<{
1760
+ user: "user";
1761
+ assistant: "assistant";
1762
+ }>;
1763
+ contentText: _$zod.ZodString;
1764
+ blocks: _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1765
+ type: _$zod.ZodLiteral<"text">;
1766
+ content: _$zod.ZodString;
1767
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1768
+ type: _$zod.ZodLiteral<"image">;
1769
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1770
+ type: _$zod.ZodLiteral<"base64">;
1771
+ data: _$zod.ZodString;
1772
+ mimeType: _$zod.ZodString;
1773
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1774
+ type: _$zod.ZodLiteral<"url">;
1775
+ url: _$zod.ZodString;
1776
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1777
+ }, _$zod_v4_core0.$strip>], "type">;
1778
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1779
+ type: _$zod.ZodLiteral<"document">;
1780
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1781
+ type: _$zod.ZodLiteral<"base64">;
1782
+ data: _$zod.ZodString;
1783
+ mimeType: _$zod.ZodString;
1784
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1785
+ type: _$zod.ZodLiteral<"url">;
1786
+ url: _$zod.ZodString;
1787
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1788
+ }, _$zod_v4_core0.$strip>], "type">;
1789
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1790
+ type: _$zod.ZodLiteral<"attachment">;
1791
+ fileName: _$zod.ZodString;
1792
+ filePath: _$zod.ZodString;
1793
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1794
+ type: _$zod.ZodLiteral<"base64">;
1795
+ data: _$zod.ZodString;
1796
+ mimeType: _$zod.ZodString;
1797
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1798
+ type: _$zod.ZodLiteral<"url">;
1799
+ url: _$zod.ZodString;
1800
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1801
+ }, _$zod_v4_core0.$strip>], "type">;
1802
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
1803
+ attachmentType: _$zod.ZodEnum<{
1804
+ file: "file";
1805
+ directory: "directory";
1806
+ }>;
1807
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1808
+ type: _$zod.ZodLiteral<"reasoning">;
1809
+ content: _$zod.ZodString;
1810
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1811
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1812
+ type: _$zod.ZodLiteral<"tool_call">;
1813
+ toolCallId: _$zod.ZodString;
1814
+ name: _$zod.ZodString;
1815
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1816
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1817
+ type: _$zod.ZodLiteral<"tool_output">;
1818
+ toolCallId: _$zod.ZodString;
1819
+ output: _$zod.ZodString;
1820
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1821
+ }, _$zod_v4_core0.$strip>], "type">>;
1822
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1823
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1824
+ adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1825
+ timestamp: _$zod.ZodNumber;
1826
+ editOf: _$zod.ZodOptional<_$zod.ZodString>;
1827
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1828
+ text: "text";
1829
+ voice: "voice";
1830
+ compact: "compact";
1831
+ }>>;
1832
+ }, _$zod_v4_core0.$strip>;
1833
+ }, _$zod_v4_core0.$strip>;
1834
+ };
1835
+ options?: _$_makaio_core0.NamespaceRegistrationOptions;
1836
+ defaultTransports?: _$_makaio_core0.TransportRoutingDefault;
1837
+ __filterPayload?: {
1838
+ message: {
1839
+ messageId: string;
1840
+ turnId: string | null;
1841
+ sessionId: string;
1842
+ role: "user" | "assistant";
1843
+ contentText: string;
1844
+ blocks: ({
1845
+ type: "text";
1846
+ content: string;
1847
+ } | {
1848
+ type: "image";
1849
+ source: {
1850
+ type: "base64";
1851
+ data: string;
1852
+ mimeType: string;
1853
+ } | {
1854
+ type: "url";
1855
+ url: string;
1856
+ mimeType?: string | undefined;
1857
+ };
1858
+ } | {
1859
+ type: "document";
1860
+ source: {
1861
+ type: "base64";
1862
+ data: string;
1863
+ mimeType: string;
1864
+ } | {
1865
+ type: "url";
1866
+ url: string;
1867
+ mimeType?: string | undefined;
1868
+ };
1869
+ } | {
1870
+ type: "attachment";
1871
+ fileName: string;
1872
+ filePath: string;
1873
+ source: {
1874
+ type: "base64";
1875
+ data: string;
1876
+ mimeType: string;
1877
+ } | {
1878
+ type: "url";
1879
+ url: string;
1880
+ mimeType?: string | undefined;
1881
+ };
1882
+ attachmentType: "file" | "directory";
1883
+ displayName?: string | undefined;
1884
+ } | {
1885
+ type: "reasoning";
1886
+ content: string;
1887
+ metadata?: Record<string, unknown> | undefined;
1888
+ } | {
1889
+ type: "tool_call";
1890
+ toolCallId: string;
1891
+ name: string;
1892
+ args: Record<string, unknown>;
1893
+ } | {
1894
+ type: "tool_output";
1895
+ toolCallId: string;
1896
+ output: string;
1897
+ isError?: boolean | undefined;
1898
+ })[];
1899
+ timestamp: number;
1900
+ agentId?: string | undefined;
1901
+ adapterSessionId?: string | undefined;
1902
+ adapterMessageId?: string | undefined;
1903
+ editOf?: string | undefined;
1904
+ origin?: "text" | "voice" | "compact" | undefined;
1905
+ } | {
1906
+ sessionId: string;
1907
+ turnId: string | null;
1908
+ timestamp: number;
1909
+ role: "user" | "assistant";
1910
+ blocks: ({
1911
+ type: "text";
1912
+ content: string;
1913
+ } | {
1914
+ type: "image";
1915
+ source: {
1916
+ type: "base64";
1917
+ data: string;
1918
+ mimeType: string;
1919
+ } | {
1920
+ type: "url";
1921
+ url: string;
1922
+ mimeType?: string | undefined;
1923
+ };
1924
+ } | {
1925
+ type: "document";
1926
+ source: {
1927
+ type: "base64";
1928
+ data: string;
1929
+ mimeType: string;
1930
+ } | {
1931
+ type: "url";
1932
+ url: string;
1933
+ mimeType?: string | undefined;
1934
+ };
1935
+ } | {
1936
+ type: "attachment";
1937
+ fileName: string;
1938
+ filePath: string;
1939
+ source: {
1940
+ type: "base64";
1941
+ data: string;
1942
+ mimeType: string;
1943
+ } | {
1944
+ type: "url";
1945
+ url: string;
1946
+ mimeType?: string | undefined;
1947
+ };
1948
+ attachmentType: "file" | "directory";
1949
+ displayName?: string | undefined;
1950
+ } | {
1951
+ type: "reasoning";
1952
+ content: string;
1953
+ metadata?: Record<string, unknown> | undefined;
1954
+ } | {
1955
+ type: "tool_call";
1956
+ toolCallId: string;
1957
+ name: string;
1958
+ args: Record<string, unknown>;
1959
+ } | {
1960
+ type: "tool_output";
1961
+ toolCallId: string;
1962
+ output: string;
1963
+ isError?: boolean | undefined;
1964
+ })[];
1965
+ contentText: string;
1966
+ origin?: "text" | "voice" | "compact" | undefined;
1967
+ adapterSessionId?: string | undefined;
1968
+ agentId?: string | undefined;
1969
+ adapterMessageId?: string | undefined;
1970
+ editOf?: string | undefined;
1971
+ messageId?: string | undefined;
1972
+ };
1973
+ origin: never;
1974
+ sessionId: string;
1975
+ turnId: string | null;
1976
+ limit: never;
1977
+ timestamp: number;
1978
+ adapterSessionId: never;
1979
+ role: "user" | "assistant";
1980
+ blocks: ({
1981
+ type: "text";
1982
+ content: string;
1983
+ } | {
1984
+ type: "image";
1985
+ source: {
1986
+ type: "base64";
1987
+ data: string;
1988
+ mimeType: string;
1989
+ } | {
1990
+ type: "url";
1991
+ url: string;
1992
+ mimeType?: string | undefined;
1993
+ };
1994
+ } | {
1995
+ type: "document";
1996
+ source: {
1997
+ type: "base64";
1998
+ data: string;
1999
+ mimeType: string;
2000
+ } | {
2001
+ type: "url";
2002
+ url: string;
2003
+ mimeType?: string | undefined;
2004
+ };
2005
+ } | {
2006
+ type: "attachment";
2007
+ fileName: string;
2008
+ filePath: string;
2009
+ source: {
2010
+ type: "base64";
2011
+ data: string;
2012
+ mimeType: string;
2013
+ } | {
2014
+ type: "url";
2015
+ url: string;
2016
+ mimeType?: string | undefined;
2017
+ };
2018
+ attachmentType: "file" | "directory";
2019
+ displayName?: string | undefined;
2020
+ } | {
2021
+ type: "reasoning";
2022
+ content: string;
2023
+ metadata?: Record<string, unknown> | undefined;
2024
+ } | {
2025
+ type: "tool_call";
2026
+ toolCallId: string;
2027
+ name: string;
2028
+ args: Record<string, unknown>;
2029
+ } | {
2030
+ type: "tool_output";
2031
+ toolCallId: string;
2032
+ output: string;
2033
+ isError?: boolean | undefined;
2034
+ })[];
2035
+ messageId: string;
2036
+ contentText: string;
2037
+ agentId: never;
2038
+ adapterMessageId: string;
2039
+ emitEvent: never;
2040
+ after: never;
2041
+ includeAfter: never;
2042
+ order: never;
2043
+ query: string;
2044
+ } | undefined;
2045
+ };
2046
+ //#endregion
2047
+ export { MessageStorageSubjects as i, MessagePageCursorSchema as n, MessageStorageNamespace$1 as r, MessagePageCursor as t };