@andre.li/memoark 0.3.1

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 (441) hide show
  1. package/LICENSE +191 -0
  2. package/README.en.md +606 -0
  3. package/README.md +560 -0
  4. package/bin/memoark.mjs +36 -0
  5. package/dist/adapters/file.d.ts +19 -0
  6. package/dist/adapters/file.d.ts.map +1 -0
  7. package/dist/adapters/file.js +61 -0
  8. package/dist/adapters/file.js.map +1 -0
  9. package/dist/adapters/gbrain.d.ts +29 -0
  10. package/dist/adapters/gbrain.d.ts.map +1 -0
  11. package/dist/adapters/gbrain.js +622 -0
  12. package/dist/adapters/gbrain.js.map +1 -0
  13. package/dist/adapters/index.d.ts +6 -0
  14. package/dist/adapters/index.d.ts.map +1 -0
  15. package/dist/adapters/index.js +5 -0
  16. package/dist/adapters/index.js.map +1 -0
  17. package/dist/adapters/registry.d.ts +18 -0
  18. package/dist/adapters/registry.d.ts.map +1 -0
  19. package/dist/adapters/registry.js +18 -0
  20. package/dist/adapters/registry.js.map +1 -0
  21. package/dist/adapters/stdout.d.ts +12 -0
  22. package/dist/adapters/stdout.d.ts.map +1 -0
  23. package/dist/adapters/stdout.js +29 -0
  24. package/dist/adapters/stdout.js.map +1 -0
  25. package/dist/adapters/store.d.ts +47 -0
  26. package/dist/adapters/store.d.ts.map +1 -0
  27. package/dist/adapters/store.js +641 -0
  28. package/dist/adapters/store.js.map +1 -0
  29. package/dist/cli.d.ts +2 -0
  30. package/dist/cli.d.ts.map +1 -0
  31. package/dist/cli.js +694 -0
  32. package/dist/cli.js.map +1 -0
  33. package/dist/collectors/agent/claude-code.d.ts +12 -0
  34. package/dist/collectors/agent/claude-code.d.ts.map +1 -0
  35. package/dist/collectors/agent/claude-code.js +94 -0
  36. package/dist/collectors/agent/claude-code.js.map +1 -0
  37. package/dist/collectors/agent/codex.d.ts +16 -0
  38. package/dist/collectors/agent/codex.d.ts.map +1 -0
  39. package/dist/collectors/agent/codex.js +149 -0
  40. package/dist/collectors/agent/codex.js.map +1 -0
  41. package/dist/collectors/agent/collector.d.ts +20 -0
  42. package/dist/collectors/agent/collector.d.ts.map +1 -0
  43. package/dist/collectors/agent/collector.js +108 -0
  44. package/dist/collectors/agent/collector.js.map +1 -0
  45. package/dist/collectors/agent/hermes.d.ts +13 -0
  46. package/dist/collectors/agent/hermes.d.ts.map +1 -0
  47. package/dist/collectors/agent/hermes.js +90 -0
  48. package/dist/collectors/agent/hermes.js.map +1 -0
  49. package/dist/collectors/agent/index.d.ts +6 -0
  50. package/dist/collectors/agent/index.d.ts.map +1 -0
  51. package/dist/collectors/agent/index.js +5 -0
  52. package/dist/collectors/agent/index.js.map +1 -0
  53. package/dist/collectors/agent/types.d.ts +61 -0
  54. package/dist/collectors/agent/types.d.ts.map +1 -0
  55. package/dist/collectors/agent/types.js +6 -0
  56. package/dist/collectors/agent/types.js.map +1 -0
  57. package/dist/collectors/feishu/auth.d.ts +13 -0
  58. package/dist/collectors/feishu/auth.d.ts.map +1 -0
  59. package/dist/collectors/feishu/auth.js +72 -0
  60. package/dist/collectors/feishu/auth.js.map +1 -0
  61. package/dist/collectors/feishu/collector.d.ts +23 -0
  62. package/dist/collectors/feishu/collector.d.ts.map +1 -0
  63. package/dist/collectors/feishu/collector.js +113 -0
  64. package/dist/collectors/feishu/collector.js.map +1 -0
  65. package/dist/collectors/feishu/cursor-staging.d.ts +11 -0
  66. package/dist/collectors/feishu/cursor-staging.d.ts.map +1 -0
  67. package/dist/collectors/feishu/cursor-staging.js +37 -0
  68. package/dist/collectors/feishu/cursor-staging.js.map +1 -0
  69. package/dist/collectors/feishu/http-client.d.ts +26 -0
  70. package/dist/collectors/feishu/http-client.d.ts.map +1 -0
  71. package/dist/collectors/feishu/http-client.js +94 -0
  72. package/dist/collectors/feishu/http-client.js.map +1 -0
  73. package/dist/collectors/feishu/index.d.ts +3 -0
  74. package/dist/collectors/feishu/index.d.ts.map +1 -0
  75. package/dist/collectors/feishu/index.js +2 -0
  76. package/dist/collectors/feishu/index.js.map +1 -0
  77. package/dist/collectors/feishu/lark-cli-client.d.ts +16 -0
  78. package/dist/collectors/feishu/lark-cli-client.d.ts.map +1 -0
  79. package/dist/collectors/feishu/lark-cli-client.js +69 -0
  80. package/dist/collectors/feishu/lark-cli-client.js.map +1 -0
  81. package/dist/collectors/feishu/rate-limiter.d.ts +10 -0
  82. package/dist/collectors/feishu/rate-limiter.d.ts.map +1 -0
  83. package/dist/collectors/feishu/rate-limiter.js +33 -0
  84. package/dist/collectors/feishu/rate-limiter.js.map +1 -0
  85. package/dist/collectors/feishu/sources/base.d.ts +9 -0
  86. package/dist/collectors/feishu/sources/base.d.ts.map +1 -0
  87. package/dist/collectors/feishu/sources/base.js +2 -0
  88. package/dist/collectors/feishu/sources/base.js.map +1 -0
  89. package/dist/collectors/feishu/sources/calendar.d.ts +16 -0
  90. package/dist/collectors/feishu/sources/calendar.d.ts.map +1 -0
  91. package/dist/collectors/feishu/sources/calendar.js +93 -0
  92. package/dist/collectors/feishu/sources/calendar.js.map +1 -0
  93. package/dist/collectors/feishu/sources/dm.d.ts +28 -0
  94. package/dist/collectors/feishu/sources/dm.d.ts.map +1 -0
  95. package/dist/collectors/feishu/sources/dm.js +152 -0
  96. package/dist/collectors/feishu/sources/dm.js.map +1 -0
  97. package/dist/collectors/feishu/sources/docs.d.ts +23 -0
  98. package/dist/collectors/feishu/sources/docs.d.ts.map +1 -0
  99. package/dist/collectors/feishu/sources/docs.js +154 -0
  100. package/dist/collectors/feishu/sources/docs.js.map +1 -0
  101. package/dist/collectors/feishu/sources/mail.d.ts +27 -0
  102. package/dist/collectors/feishu/sources/mail.d.ts.map +1 -0
  103. package/dist/collectors/feishu/sources/mail.js +136 -0
  104. package/dist/collectors/feishu/sources/mail.js.map +1 -0
  105. package/dist/collectors/feishu/sources/message-search.d.ts +37 -0
  106. package/dist/collectors/feishu/sources/message-search.d.ts.map +1 -0
  107. package/dist/collectors/feishu/sources/message-search.js +140 -0
  108. package/dist/collectors/feishu/sources/message-search.js.map +1 -0
  109. package/dist/collectors/feishu/sources/messages.d.ts +26 -0
  110. package/dist/collectors/feishu/sources/messages.d.ts.map +1 -0
  111. package/dist/collectors/feishu/sources/messages.js +148 -0
  112. package/dist/collectors/feishu/sources/messages.js.map +1 -0
  113. package/dist/collectors/feishu/sources/tasks.d.ts +15 -0
  114. package/dist/collectors/feishu/sources/tasks.d.ts.map +1 -0
  115. package/dist/collectors/feishu/sources/tasks.js +74 -0
  116. package/dist/collectors/feishu/sources/tasks.js.map +1 -0
  117. package/dist/collectors/feishu/types.d.ts +224 -0
  118. package/dist/collectors/feishu/types.d.ts.map +1 -0
  119. package/dist/collectors/feishu/types.js +17 -0
  120. package/dist/collectors/feishu/types.js.map +1 -0
  121. package/dist/collectors/index.d.ts +10 -0
  122. package/dist/collectors/index.d.ts.map +1 -0
  123. package/dist/collectors/index.js +18 -0
  124. package/dist/collectors/index.js.map +1 -0
  125. package/dist/config-center/connection-checks.d.ts +28 -0
  126. package/dist/config-center/connection-checks.d.ts.map +1 -0
  127. package/dist/config-center/connection-checks.js +114 -0
  128. package/dist/config-center/connection-checks.js.map +1 -0
  129. package/dist/config-center/document.d.ts +21 -0
  130. package/dist/config-center/document.d.ts.map +1 -0
  131. package/dist/config-center/document.js +93 -0
  132. package/dist/config-center/document.js.map +1 -0
  133. package/dist/config-center/index.d.ts +9 -0
  134. package/dist/config-center/index.d.ts.map +1 -0
  135. package/dist/config-center/index.js +29 -0
  136. package/dist/config-center/index.js.map +1 -0
  137. package/dist/config-center/recommendations.d.ts +16 -0
  138. package/dist/config-center/recommendations.d.ts.map +1 -0
  139. package/dist/config-center/recommendations.js +50 -0
  140. package/dist/config-center/recommendations.js.map +1 -0
  141. package/dist/config-center/reducer.d.ts +57 -0
  142. package/dist/config-center/reducer.d.ts.map +1 -0
  143. package/dist/config-center/reducer.js +192 -0
  144. package/dist/config-center/reducer.js.map +1 -0
  145. package/dist/config-center/schema.d.ts +31 -0
  146. package/dist/config-center/schema.d.ts.map +1 -0
  147. package/dist/config-center/schema.js +365 -0
  148. package/dist/config-center/schema.js.map +1 -0
  149. package/dist/config-center/secrets.d.ts +4 -0
  150. package/dist/config-center/secrets.d.ts.map +1 -0
  151. package/dist/config-center/secrets.js +27 -0
  152. package/dist/config-center/secrets.js.map +1 -0
  153. package/dist/config-center/source-dirs.d.ts +16 -0
  154. package/dist/config-center/source-dirs.d.ts.map +1 -0
  155. package/dist/config-center/source-dirs.js +81 -0
  156. package/dist/config-center/source-dirs.js.map +1 -0
  157. package/dist/config-center/tui/app.d.ts +22 -0
  158. package/dist/config-center/tui/app.d.ts.map +1 -0
  159. package/dist/config-center/tui/app.js +142 -0
  160. package/dist/config-center/tui/app.js.map +1 -0
  161. package/dist/config-center/tui/render.d.ts +20 -0
  162. package/dist/config-center/tui/render.d.ts.map +1 -0
  163. package/dist/config-center/tui/render.js +166 -0
  164. package/dist/config-center/tui/render.js.map +1 -0
  165. package/dist/config-center/validation.d.ts +9 -0
  166. package/dist/config-center/validation.d.ts.map +1 -0
  167. package/dist/config-center/validation.js +59 -0
  168. package/dist/config-center/validation.js.map +1 -0
  169. package/dist/consolidator/consolidator.d.ts +31 -0
  170. package/dist/consolidator/consolidator.d.ts.map +1 -0
  171. package/dist/consolidator/consolidator.js +57 -0
  172. package/dist/consolidator/consolidator.js.map +1 -0
  173. package/dist/consolidator/dead-link.d.ts +7 -0
  174. package/dist/consolidator/dead-link.d.ts.map +1 -0
  175. package/dist/consolidator/dead-link.js +57 -0
  176. package/dist/consolidator/dead-link.js.map +1 -0
  177. package/dist/consolidator/hot-warm.d.ts +9 -0
  178. package/dist/consolidator/hot-warm.d.ts.map +1 -0
  179. package/dist/consolidator/hot-warm.js +88 -0
  180. package/dist/consolidator/hot-warm.js.map +1 -0
  181. package/dist/consolidator/infer-preferences.d.ts +14 -0
  182. package/dist/consolidator/infer-preferences.d.ts.map +1 -0
  183. package/dist/consolidator/infer-preferences.js +73 -0
  184. package/dist/consolidator/infer-preferences.js.map +1 -0
  185. package/dist/consolidator/rules.d.ts +5 -0
  186. package/dist/consolidator/rules.d.ts.map +1 -0
  187. package/dist/consolidator/rules.js +53 -0
  188. package/dist/consolidator/rules.js.map +1 -0
  189. package/dist/consolidator/warm-cold.d.ts +13 -0
  190. package/dist/consolidator/warm-cold.d.ts.map +1 -0
  191. package/dist/consolidator/warm-cold.js +91 -0
  192. package/dist/consolidator/warm-cold.js.map +1 -0
  193. package/dist/core/block-builder.d.ts +15 -0
  194. package/dist/core/block-builder.d.ts.map +1 -0
  195. package/dist/core/block-builder.js +185 -0
  196. package/dist/core/block-builder.js.map +1 -0
  197. package/dist/core/canonicalize.d.ts +3 -0
  198. package/dist/core/canonicalize.d.ts.map +1 -0
  199. package/dist/core/canonicalize.js +137 -0
  200. package/dist/core/canonicalize.js.map +1 -0
  201. package/dist/core/concurrency.d.ts +2 -0
  202. package/dist/core/concurrency.d.ts.map +1 -0
  203. package/dist/core/concurrency.js +14 -0
  204. package/dist/core/concurrency.js.map +1 -0
  205. package/dist/core/config.d.ts +184 -0
  206. package/dist/core/config.d.ts.map +1 -0
  207. package/dist/core/config.js +136 -0
  208. package/dist/core/config.js.map +1 -0
  209. package/dist/core/cursors.d.ts +36 -0
  210. package/dist/core/cursors.d.ts.map +1 -0
  211. package/dist/core/cursors.js +90 -0
  212. package/dist/core/cursors.js.map +1 -0
  213. package/dist/core/dedup.d.ts +45 -0
  214. package/dist/core/dedup.d.ts.map +1 -0
  215. package/dist/core/dedup.js +111 -0
  216. package/dist/core/dedup.js.map +1 -0
  217. package/dist/core/entity-extract.d.ts +3 -0
  218. package/dist/core/entity-extract.d.ts.map +1 -0
  219. package/dist/core/entity-extract.js +54 -0
  220. package/dist/core/entity-extract.js.map +1 -0
  221. package/dist/core/helpers.d.ts +3 -0
  222. package/dist/core/helpers.d.ts.map +1 -0
  223. package/dist/core/helpers.js +10 -0
  224. package/dist/core/helpers.js.map +1 -0
  225. package/dist/core/identity-resolver.d.ts +21 -0
  226. package/dist/core/identity-resolver.d.ts.map +1 -0
  227. package/dist/core/identity-resolver.js +62 -0
  228. package/dist/core/identity-resolver.js.map +1 -0
  229. package/dist/core/pipeline-factory.d.ts +13 -0
  230. package/dist/core/pipeline-factory.d.ts.map +1 -0
  231. package/dist/core/pipeline-factory.js +32 -0
  232. package/dist/core/pipeline-factory.js.map +1 -0
  233. package/dist/core/pipeline.d.ts +61 -0
  234. package/dist/core/pipeline.d.ts.map +1 -0
  235. package/dist/core/pipeline.js +261 -0
  236. package/dist/core/pipeline.js.map +1 -0
  237. package/dist/core/schemas.d.ts +2470 -0
  238. package/dist/core/schemas.d.ts.map +1 -0
  239. package/dist/core/schemas.js +229 -0
  240. package/dist/core/schemas.js.map +1 -0
  241. package/dist/core/signal-scoring.d.ts +3 -0
  242. package/dist/core/signal-scoring.d.ts.map +1 -0
  243. package/dist/core/signal-scoring.js +124 -0
  244. package/dist/core/signal-scoring.js.map +1 -0
  245. package/dist/core/state.d.ts +22 -0
  246. package/dist/core/state.d.ts.map +1 -0
  247. package/dist/core/state.js +32 -0
  248. package/dist/core/state.js.map +1 -0
  249. package/dist/core/types.d.ts +231 -0
  250. package/dist/core/types.d.ts.map +1 -0
  251. package/dist/core/types.js +6 -0
  252. package/dist/core/types.js.map +1 -0
  253. package/dist/daemon/alerts.d.ts +12 -0
  254. package/dist/daemon/alerts.d.ts.map +1 -0
  255. package/dist/daemon/alerts.js +34 -0
  256. package/dist/daemon/alerts.js.map +1 -0
  257. package/dist/daemon/index.d.ts +6 -0
  258. package/dist/daemon/index.d.ts.map +1 -0
  259. package/dist/daemon/index.js +6 -0
  260. package/dist/daemon/index.js.map +1 -0
  261. package/dist/daemon/logger.d.ts +8 -0
  262. package/dist/daemon/logger.d.ts.map +1 -0
  263. package/dist/daemon/logger.js +35 -0
  264. package/dist/daemon/logger.js.map +1 -0
  265. package/dist/daemon/run-history.d.ts +29 -0
  266. package/dist/daemon/run-history.d.ts.map +1 -0
  267. package/dist/daemon/run-history.js +54 -0
  268. package/dist/daemon/run-history.js.map +1 -0
  269. package/dist/daemon/scheduler.d.ts +37 -0
  270. package/dist/daemon/scheduler.d.ts.map +1 -0
  271. package/dist/daemon/scheduler.js +142 -0
  272. package/dist/daemon/scheduler.js.map +1 -0
  273. package/dist/daemon/source-schedule.d.ts +25 -0
  274. package/dist/daemon/source-schedule.d.ts.map +1 -0
  275. package/dist/daemon/source-schedule.js +87 -0
  276. package/dist/daemon/source-schedule.js.map +1 -0
  277. package/dist/embedded-assets.generated.d.ts +4 -0
  278. package/dist/embedded-assets.generated.d.ts.map +1 -0
  279. package/dist/embedded-assets.generated.js +12 -0
  280. package/dist/embedded-assets.generated.js.map +1 -0
  281. package/dist/extractors/noise-filter.d.ts +30 -0
  282. package/dist/extractors/noise-filter.d.ts.map +1 -0
  283. package/dist/extractors/noise-filter.js +185 -0
  284. package/dist/extractors/noise-filter.js.map +1 -0
  285. package/dist/extractors/providers/anthropic.d.ts +13 -0
  286. package/dist/extractors/providers/anthropic.d.ts.map +1 -0
  287. package/dist/extractors/providers/anthropic.js +67 -0
  288. package/dist/extractors/providers/anthropic.js.map +1 -0
  289. package/dist/extractors/providers/index.d.ts +12 -0
  290. package/dist/extractors/providers/index.d.ts.map +1 -0
  291. package/dist/extractors/providers/index.js +41 -0
  292. package/dist/extractors/providers/index.js.map +1 -0
  293. package/dist/extractors/providers/mock.d.ts +14 -0
  294. package/dist/extractors/providers/mock.d.ts.map +1 -0
  295. package/dist/extractors/providers/mock.js +37 -0
  296. package/dist/extractors/providers/mock.js.map +1 -0
  297. package/dist/extractors/providers/openai.d.ts +15 -0
  298. package/dist/extractors/providers/openai.d.ts.map +1 -0
  299. package/dist/extractors/providers/openai.js +109 -0
  300. package/dist/extractors/providers/openai.js.map +1 -0
  301. package/dist/extractors/providers/types.d.ts +27 -0
  302. package/dist/extractors/providers/types.d.ts.map +1 -0
  303. package/dist/extractors/providers/types.js +6 -0
  304. package/dist/extractors/providers/types.js.map +1 -0
  305. package/dist/extractors/signal-extractor.d.ts +29 -0
  306. package/dist/extractors/signal-extractor.d.ts.map +1 -0
  307. package/dist/extractors/signal-extractor.js +279 -0
  308. package/dist/extractors/signal-extractor.js.map +1 -0
  309. package/dist/formatters/index.d.ts +3 -0
  310. package/dist/formatters/index.d.ts.map +1 -0
  311. package/dist/formatters/index.js +3 -0
  312. package/dist/formatters/index.js.map +1 -0
  313. package/dist/formatters/json.d.ts +6 -0
  314. package/dist/formatters/json.d.ts.map +1 -0
  315. package/dist/formatters/json.js +16 -0
  316. package/dist/formatters/json.js.map +1 -0
  317. package/dist/formatters/markdown.d.ts +6 -0
  318. package/dist/formatters/markdown.d.ts.map +1 -0
  319. package/dist/formatters/markdown.js +198 -0
  320. package/dist/formatters/markdown.js.map +1 -0
  321. package/dist/processors/privacy.d.ts +98 -0
  322. package/dist/processors/privacy.d.ts.map +1 -0
  323. package/dist/processors/privacy.js +271 -0
  324. package/dist/processors/privacy.js.map +1 -0
  325. package/dist/server/api.d.ts +35 -0
  326. package/dist/server/api.d.ts.map +1 -0
  327. package/dist/server/api.js +453 -0
  328. package/dist/server/api.js.map +1 -0
  329. package/dist/server/backfill-job.d.ts +36 -0
  330. package/dist/server/backfill-job.d.ts.map +1 -0
  331. package/dist/server/backfill-job.js +88 -0
  332. package/dist/server/backfill-job.js.map +1 -0
  333. package/dist/server/backfill-routes.d.ts +7 -0
  334. package/dist/server/backfill-routes.d.ts.map +1 -0
  335. package/dist/server/backfill-routes.js +123 -0
  336. package/dist/server/backfill-routes.js.map +1 -0
  337. package/dist/server/config-routes.d.ts +8 -0
  338. package/dist/server/config-routes.d.ts.map +1 -0
  339. package/dist/server/config-routes.js +114 -0
  340. package/dist/server/config-routes.js.map +1 -0
  341. package/dist/server/context.d.ts +13 -0
  342. package/dist/server/context.d.ts.map +1 -0
  343. package/dist/server/context.js +47 -0
  344. package/dist/server/context.js.map +1 -0
  345. package/dist/server/entity.d.ts +25 -0
  346. package/dist/server/entity.d.ts.map +1 -0
  347. package/dist/server/entity.js +34 -0
  348. package/dist/server/entity.js.map +1 -0
  349. package/dist/server/event-bus.d.ts +35 -0
  350. package/dist/server/event-bus.d.ts.map +1 -0
  351. package/dist/server/event-bus.js +4 -0
  352. package/dist/server/event-bus.js.map +1 -0
  353. package/dist/server/mcp.d.ts +126 -0
  354. package/dist/server/mcp.d.ts.map +1 -0
  355. package/dist/server/mcp.js +103 -0
  356. package/dist/server/mcp.js.map +1 -0
  357. package/dist/server/setup-server.d.ts +7 -0
  358. package/dist/server/setup-server.d.ts.map +1 -0
  359. package/dist/server/setup-server.js +52 -0
  360. package/dist/server/setup-server.js.map +1 -0
  361. package/dist/setup/assess-hardware.d.ts +34 -0
  362. package/dist/setup/assess-hardware.d.ts.map +1 -0
  363. package/dist/setup/assess-hardware.js +179 -0
  364. package/dist/setup/assess-hardware.js.map +1 -0
  365. package/dist/setup/connection-tests.d.ts +17 -0
  366. package/dist/setup/connection-tests.d.ts.map +1 -0
  367. package/dist/setup/connection-tests.js +67 -0
  368. package/dist/setup/connection-tests.js.map +1 -0
  369. package/dist/setup/detect-api-keys.d.ts +13 -0
  370. package/dist/setup/detect-api-keys.d.ts.map +1 -0
  371. package/dist/setup/detect-api-keys.js +41 -0
  372. package/dist/setup/detect-api-keys.js.map +1 -0
  373. package/dist/setup/detect-runtime.d.ts +14 -0
  374. package/dist/setup/detect-runtime.d.ts.map +1 -0
  375. package/dist/setup/detect-runtime.js +43 -0
  376. package/dist/setup/detect-runtime.js.map +1 -0
  377. package/dist/setup/detect-sources.d.ts +14 -0
  378. package/dist/setup/detect-sources.d.ts.map +1 -0
  379. package/dist/setup/detect-sources.js +75 -0
  380. package/dist/setup/detect-sources.js.map +1 -0
  381. package/dist/setup/generate-config.d.ts +5 -0
  382. package/dist/setup/generate-config.d.ts.map +1 -0
  383. package/dist/setup/generate-config.js +103 -0
  384. package/dist/setup/generate-config.js.map +1 -0
  385. package/dist/setup/index.d.ts +9 -0
  386. package/dist/setup/index.d.ts.map +1 -0
  387. package/dist/setup/index.js +9 -0
  388. package/dist/setup/index.js.map +1 -0
  389. package/dist/setup/init-wizard.d.ts +19 -0
  390. package/dist/setup/init-wizard.d.ts.map +1 -0
  391. package/dist/setup/init-wizard.js +501 -0
  392. package/dist/setup/init-wizard.js.map +1 -0
  393. package/dist/setup/terminal.d.ts +28 -0
  394. package/dist/setup/terminal.d.ts.map +1 -0
  395. package/dist/setup/terminal.js +258 -0
  396. package/dist/setup/terminal.js.map +1 -0
  397. package/dist/setup/validate-config.d.ts +26 -0
  398. package/dist/setup/validate-config.d.ts.map +1 -0
  399. package/dist/setup/validate-config.js +27 -0
  400. package/dist/setup/validate-config.js.map +1 -0
  401. package/dist/store/chunks.d.ts +19 -0
  402. package/dist/store/chunks.d.ts.map +1 -0
  403. package/dist/store/chunks.js +70 -0
  404. package/dist/store/chunks.js.map +1 -0
  405. package/dist/store/database.d.ts +24 -0
  406. package/dist/store/database.d.ts.map +1 -0
  407. package/dist/store/database.js +62 -0
  408. package/dist/store/database.js.map +1 -0
  409. package/dist/store/embedding.d.ts +23 -0
  410. package/dist/store/embedding.d.ts.map +1 -0
  411. package/dist/store/embedding.js +62 -0
  412. package/dist/store/embedding.js.map +1 -0
  413. package/dist/store/graph.d.ts +53 -0
  414. package/dist/store/graph.d.ts.map +1 -0
  415. package/dist/store/graph.js +186 -0
  416. package/dist/store/graph.js.map +1 -0
  417. package/dist/store/migrations/index.d.ts +9 -0
  418. package/dist/store/migrations/index.d.ts.map +1 -0
  419. package/dist/store/migrations/index.js +68 -0
  420. package/dist/store/migrations/index.js.map +1 -0
  421. package/dist/store/pages.d.ts +39 -0
  422. package/dist/store/pages.d.ts.map +1 -0
  423. package/dist/store/pages.js +150 -0
  424. package/dist/store/pages.js.map +1 -0
  425. package/dist/store/search.d.ts +37 -0
  426. package/dist/store/search.d.ts.map +1 -0
  427. package/dist/store/search.js +200 -0
  428. package/dist/store/search.js.map +1 -0
  429. package/dist/store/tags.d.ts +10 -0
  430. package/dist/store/tags.d.ts.map +1 -0
  431. package/dist/store/tags.js +31 -0
  432. package/dist/store/tags.js.map +1 -0
  433. package/dist/store/timeline.d.ts +26 -0
  434. package/dist/store/timeline.d.ts.map +1 -0
  435. package/dist/store/timeline.js +43 -0
  436. package/dist/store/timeline.js.map +1 -0
  437. package/dist/sync/obsidian.d.ts +136 -0
  438. package/dist/sync/obsidian.d.ts.map +1 -0
  439. package/dist/sync/obsidian.js +539 -0
  440. package/dist/sync/obsidian.js.map +1 -0
  441. package/package.json +84 -0
@@ -0,0 +1,2470 @@
1
+ /**
2
+ * Zod runtime validation schemas for LLM output
3
+ * Corresponds to types in types.ts but with runtime validation
4
+ */
5
+ import { z } from "zod";
6
+ import type { ExtractionResult, SignificanceVerdict } from "./types.js";
7
+ export declare const SignalConfidenceSchema: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
8
+ export declare const SourceRefSchema: z.ZodObject<{
9
+ platform: z.ZodString;
10
+ channel: z.ZodString;
11
+ timestamp: z.ZodDefault<z.ZodString>;
12
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
13
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
14
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
15
+ line_range: z.ZodOptional<z.ZodObject<{
16
+ start: z.ZodNumber;
17
+ end: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ start: number;
20
+ end: number;
21
+ }, {
22
+ start: number;
23
+ end: number;
24
+ }>>;
25
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
26
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
27
+ raw_hash: z.ZodDefault<z.ZodString>;
28
+ quote: z.ZodDefault<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ timestamp: string;
31
+ platform: string;
32
+ channel: string;
33
+ raw_hash: string;
34
+ quote: string;
35
+ url?: string | undefined;
36
+ file_path?: string | undefined;
37
+ message_id?: string | undefined;
38
+ thread_id?: string | undefined;
39
+ line_range?: {
40
+ start: number;
41
+ end: number;
42
+ } | undefined;
43
+ attachment_id?: string | undefined;
44
+ }, {
45
+ platform: string;
46
+ channel: string;
47
+ url?: string | null | undefined;
48
+ file_path?: string | null | undefined;
49
+ timestamp?: string | undefined;
50
+ message_id?: string | null | undefined;
51
+ thread_id?: string | null | undefined;
52
+ line_range?: {
53
+ start: number;
54
+ end: number;
55
+ } | undefined;
56
+ attachment_id?: string | null | undefined;
57
+ raw_hash?: string | undefined;
58
+ quote?: string | undefined;
59
+ }>;
60
+ export declare const EntitySchema: z.ZodObject<{
61
+ slug: z.ZodString;
62
+ name: z.ZodString;
63
+ type: z.ZodEnum<["person", "project", "organization", "tool", "concept"]>;
64
+ context: z.ZodString;
65
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "person" | "project" | "organization" | "tool" | "concept";
68
+ name: string;
69
+ slug: string;
70
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
71
+ context: string;
72
+ }, {
73
+ type: "person" | "project" | "organization" | "tool" | "concept";
74
+ name: string;
75
+ slug: string;
76
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
77
+ context: string;
78
+ }>;
79
+ export declare const TimelineEntrySchema: z.ZodObject<{
80
+ date: z.ZodString;
81
+ summary: z.ZodString;
82
+ entities: z.ZodArray<z.ZodString, "many">;
83
+ source: z.ZodObject<{
84
+ platform: z.ZodString;
85
+ channel: z.ZodString;
86
+ timestamp: z.ZodDefault<z.ZodString>;
87
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
88
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
89
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
90
+ line_range: z.ZodOptional<z.ZodObject<{
91
+ start: z.ZodNumber;
92
+ end: z.ZodNumber;
93
+ }, "strip", z.ZodTypeAny, {
94
+ start: number;
95
+ end: number;
96
+ }, {
97
+ start: number;
98
+ end: number;
99
+ }>>;
100
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
101
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
102
+ raw_hash: z.ZodDefault<z.ZodString>;
103
+ quote: z.ZodDefault<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ timestamp: string;
106
+ platform: string;
107
+ channel: string;
108
+ raw_hash: string;
109
+ quote: string;
110
+ url?: string | undefined;
111
+ file_path?: string | undefined;
112
+ message_id?: string | undefined;
113
+ thread_id?: string | undefined;
114
+ line_range?: {
115
+ start: number;
116
+ end: number;
117
+ } | undefined;
118
+ attachment_id?: string | undefined;
119
+ }, {
120
+ platform: string;
121
+ channel: string;
122
+ url?: string | null | undefined;
123
+ file_path?: string | null | undefined;
124
+ timestamp?: string | undefined;
125
+ message_id?: string | null | undefined;
126
+ thread_id?: string | null | undefined;
127
+ line_range?: {
128
+ start: number;
129
+ end: number;
130
+ } | undefined;
131
+ attachment_id?: string | null | undefined;
132
+ raw_hash?: string | undefined;
133
+ quote?: string | undefined;
134
+ }>;
135
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ source: {
138
+ timestamp: string;
139
+ platform: string;
140
+ channel: string;
141
+ raw_hash: string;
142
+ quote: string;
143
+ url?: string | undefined;
144
+ file_path?: string | undefined;
145
+ message_id?: string | undefined;
146
+ thread_id?: string | undefined;
147
+ line_range?: {
148
+ start: number;
149
+ end: number;
150
+ } | undefined;
151
+ attachment_id?: string | undefined;
152
+ };
153
+ summary: string;
154
+ date: string;
155
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
156
+ entities: string[];
157
+ }, {
158
+ source: {
159
+ platform: string;
160
+ channel: string;
161
+ url?: string | null | undefined;
162
+ file_path?: string | null | undefined;
163
+ timestamp?: string | undefined;
164
+ message_id?: string | null | undefined;
165
+ thread_id?: string | null | undefined;
166
+ line_range?: {
167
+ start: number;
168
+ end: number;
169
+ } | undefined;
170
+ attachment_id?: string | null | undefined;
171
+ raw_hash?: string | undefined;
172
+ quote?: string | undefined;
173
+ };
174
+ summary: string;
175
+ date: string;
176
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
177
+ entities: string[];
178
+ }>;
179
+ declare const VALID_LINK_TYPES: readonly ["works_on", "works_at", "reports_to", "collaborates", "depends_on", "mentions", "custom"];
180
+ export declare const LinkTypeSchema: z.ZodType<(typeof VALID_LINK_TYPES)[number]>;
181
+ export declare const LinkSchema: z.ZodObject<{
182
+ from: z.ZodString;
183
+ to: z.ZodString;
184
+ type: z.ZodType<"works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom", z.ZodTypeDef, "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom">;
185
+ context: z.ZodString;
186
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
187
+ source: z.ZodEffects<z.ZodOptional<z.ZodObject<{
188
+ platform: z.ZodString;
189
+ channel: z.ZodString;
190
+ timestamp: z.ZodDefault<z.ZodString>;
191
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
192
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
193
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
194
+ line_range: z.ZodOptional<z.ZodObject<{
195
+ start: z.ZodNumber;
196
+ end: z.ZodNumber;
197
+ }, "strip", z.ZodTypeAny, {
198
+ start: number;
199
+ end: number;
200
+ }, {
201
+ start: number;
202
+ end: number;
203
+ }>>;
204
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
205
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
206
+ raw_hash: z.ZodDefault<z.ZodString>;
207
+ quote: z.ZodDefault<z.ZodString>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ timestamp: string;
210
+ platform: string;
211
+ channel: string;
212
+ raw_hash: string;
213
+ quote: string;
214
+ url?: string | undefined;
215
+ file_path?: string | undefined;
216
+ message_id?: string | undefined;
217
+ thread_id?: string | undefined;
218
+ line_range?: {
219
+ start: number;
220
+ end: number;
221
+ } | undefined;
222
+ attachment_id?: string | undefined;
223
+ }, {
224
+ platform: string;
225
+ channel: string;
226
+ url?: string | null | undefined;
227
+ file_path?: string | null | undefined;
228
+ timestamp?: string | undefined;
229
+ message_id?: string | null | undefined;
230
+ thread_id?: string | null | undefined;
231
+ line_range?: {
232
+ start: number;
233
+ end: number;
234
+ } | undefined;
235
+ attachment_id?: string | null | undefined;
236
+ raw_hash?: string | undefined;
237
+ quote?: string | undefined;
238
+ }>>, {
239
+ timestamp: string;
240
+ platform: string;
241
+ channel: string;
242
+ raw_hash: string;
243
+ quote: string;
244
+ url?: string | undefined;
245
+ file_path?: string | undefined;
246
+ message_id?: string | undefined;
247
+ thread_id?: string | undefined;
248
+ line_range?: {
249
+ start: number;
250
+ end: number;
251
+ } | undefined;
252
+ attachment_id?: string | undefined;
253
+ }, {
254
+ platform: string;
255
+ channel: string;
256
+ url?: string | null | undefined;
257
+ file_path?: string | null | undefined;
258
+ timestamp?: string | undefined;
259
+ message_id?: string | null | undefined;
260
+ thread_id?: string | null | undefined;
261
+ line_range?: {
262
+ start: number;
263
+ end: number;
264
+ } | undefined;
265
+ attachment_id?: string | null | undefined;
266
+ raw_hash?: string | undefined;
267
+ quote?: string | undefined;
268
+ } | undefined>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ type: "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom";
271
+ source: {
272
+ timestamp: string;
273
+ platform: string;
274
+ channel: string;
275
+ raw_hash: string;
276
+ quote: string;
277
+ url?: string | undefined;
278
+ file_path?: string | undefined;
279
+ message_id?: string | undefined;
280
+ thread_id?: string | undefined;
281
+ line_range?: {
282
+ start: number;
283
+ end: number;
284
+ } | undefined;
285
+ attachment_id?: string | undefined;
286
+ };
287
+ to: string;
288
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
289
+ context: string;
290
+ from: string;
291
+ }, {
292
+ type: "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom";
293
+ to: string;
294
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
295
+ context: string;
296
+ from: string;
297
+ source?: {
298
+ platform: string;
299
+ channel: string;
300
+ url?: string | null | undefined;
301
+ file_path?: string | null | undefined;
302
+ timestamp?: string | undefined;
303
+ message_id?: string | null | undefined;
304
+ thread_id?: string | null | undefined;
305
+ line_range?: {
306
+ start: number;
307
+ end: number;
308
+ } | undefined;
309
+ attachment_id?: string | null | undefined;
310
+ raw_hash?: string | undefined;
311
+ quote?: string | undefined;
312
+ } | undefined;
313
+ }>;
314
+ export declare const DecisionSchema: z.ZodObject<{
315
+ summary: z.ZodString;
316
+ reasoning: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
317
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
318
+ entities: z.ZodArray<z.ZodString, "many">;
319
+ date: z.ZodString;
320
+ valid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
321
+ invalid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
322
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
323
+ source: z.ZodObject<{
324
+ platform: z.ZodString;
325
+ channel: z.ZodString;
326
+ timestamp: z.ZodDefault<z.ZodString>;
327
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
328
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
329
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
330
+ line_range: z.ZodOptional<z.ZodObject<{
331
+ start: z.ZodNumber;
332
+ end: z.ZodNumber;
333
+ }, "strip", z.ZodTypeAny, {
334
+ start: number;
335
+ end: number;
336
+ }, {
337
+ start: number;
338
+ end: number;
339
+ }>>;
340
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
341
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
342
+ raw_hash: z.ZodDefault<z.ZodString>;
343
+ quote: z.ZodDefault<z.ZodString>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ timestamp: string;
346
+ platform: string;
347
+ channel: string;
348
+ raw_hash: string;
349
+ quote: string;
350
+ url?: string | undefined;
351
+ file_path?: string | undefined;
352
+ message_id?: string | undefined;
353
+ thread_id?: string | undefined;
354
+ line_range?: {
355
+ start: number;
356
+ end: number;
357
+ } | undefined;
358
+ attachment_id?: string | undefined;
359
+ }, {
360
+ platform: string;
361
+ channel: string;
362
+ url?: string | null | undefined;
363
+ file_path?: string | null | undefined;
364
+ timestamp?: string | undefined;
365
+ message_id?: string | null | undefined;
366
+ thread_id?: string | null | undefined;
367
+ line_range?: {
368
+ start: number;
369
+ end: number;
370
+ } | undefined;
371
+ attachment_id?: string | null | undefined;
372
+ raw_hash?: string | undefined;
373
+ quote?: string | undefined;
374
+ }>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ source: {
377
+ timestamp: string;
378
+ platform: string;
379
+ channel: string;
380
+ raw_hash: string;
381
+ quote: string;
382
+ url?: string | undefined;
383
+ file_path?: string | undefined;
384
+ message_id?: string | undefined;
385
+ thread_id?: string | undefined;
386
+ line_range?: {
387
+ start: number;
388
+ end: number;
389
+ } | undefined;
390
+ attachment_id?: string | undefined;
391
+ };
392
+ summary: string;
393
+ date: string;
394
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
395
+ entities: string[];
396
+ valid_at?: string | undefined;
397
+ invalid_at?: string | undefined;
398
+ reasoning?: string | undefined;
399
+ alternatives?: string[] | undefined;
400
+ }, {
401
+ source: {
402
+ platform: string;
403
+ channel: string;
404
+ url?: string | null | undefined;
405
+ file_path?: string | null | undefined;
406
+ timestamp?: string | undefined;
407
+ message_id?: string | null | undefined;
408
+ thread_id?: string | null | undefined;
409
+ line_range?: {
410
+ start: number;
411
+ end: number;
412
+ } | undefined;
413
+ attachment_id?: string | null | undefined;
414
+ raw_hash?: string | undefined;
415
+ quote?: string | undefined;
416
+ };
417
+ summary: string;
418
+ date: string;
419
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
420
+ entities: string[];
421
+ valid_at?: string | null | undefined;
422
+ invalid_at?: string | null | undefined;
423
+ reasoning?: string | null | undefined;
424
+ alternatives?: string[] | undefined;
425
+ }>;
426
+ export declare const TaskSignalSchema: z.ZodObject<{
427
+ title: z.ZodString;
428
+ status: z.ZodEnum<["open", "in_progress", "done", "cancelled"]>;
429
+ owner: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
430
+ project: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
431
+ due_date: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
432
+ valid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
433
+ invalid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
434
+ source: z.ZodObject<{
435
+ platform: z.ZodString;
436
+ channel: z.ZodString;
437
+ timestamp: z.ZodDefault<z.ZodString>;
438
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
439
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
440
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
441
+ line_range: z.ZodOptional<z.ZodObject<{
442
+ start: z.ZodNumber;
443
+ end: z.ZodNumber;
444
+ }, "strip", z.ZodTypeAny, {
445
+ start: number;
446
+ end: number;
447
+ }, {
448
+ start: number;
449
+ end: number;
450
+ }>>;
451
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
452
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
453
+ raw_hash: z.ZodDefault<z.ZodString>;
454
+ quote: z.ZodDefault<z.ZodString>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ timestamp: string;
457
+ platform: string;
458
+ channel: string;
459
+ raw_hash: string;
460
+ quote: string;
461
+ url?: string | undefined;
462
+ file_path?: string | undefined;
463
+ message_id?: string | undefined;
464
+ thread_id?: string | undefined;
465
+ line_range?: {
466
+ start: number;
467
+ end: number;
468
+ } | undefined;
469
+ attachment_id?: string | undefined;
470
+ }, {
471
+ platform: string;
472
+ channel: string;
473
+ url?: string | null | undefined;
474
+ file_path?: string | null | undefined;
475
+ timestamp?: string | undefined;
476
+ message_id?: string | null | undefined;
477
+ thread_id?: string | null | undefined;
478
+ line_range?: {
479
+ start: number;
480
+ end: number;
481
+ } | undefined;
482
+ attachment_id?: string | null | undefined;
483
+ raw_hash?: string | undefined;
484
+ quote?: string | undefined;
485
+ }>;
486
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ source: {
489
+ timestamp: string;
490
+ platform: string;
491
+ channel: string;
492
+ raw_hash: string;
493
+ quote: string;
494
+ url?: string | undefined;
495
+ file_path?: string | undefined;
496
+ message_id?: string | undefined;
497
+ thread_id?: string | undefined;
498
+ line_range?: {
499
+ start: number;
500
+ end: number;
501
+ } | undefined;
502
+ attachment_id?: string | undefined;
503
+ };
504
+ status: "open" | "in_progress" | "done" | "cancelled";
505
+ title: string;
506
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
507
+ project?: string | undefined;
508
+ due_date?: string | undefined;
509
+ valid_at?: string | undefined;
510
+ invalid_at?: string | undefined;
511
+ owner?: string | undefined;
512
+ }, {
513
+ source: {
514
+ platform: string;
515
+ channel: string;
516
+ url?: string | null | undefined;
517
+ file_path?: string | null | undefined;
518
+ timestamp?: string | undefined;
519
+ message_id?: string | null | undefined;
520
+ thread_id?: string | null | undefined;
521
+ line_range?: {
522
+ start: number;
523
+ end: number;
524
+ } | undefined;
525
+ attachment_id?: string | null | undefined;
526
+ raw_hash?: string | undefined;
527
+ quote?: string | undefined;
528
+ };
529
+ status: "open" | "in_progress" | "done" | "cancelled";
530
+ title: string;
531
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
532
+ project?: string | null | undefined;
533
+ due_date?: string | null | undefined;
534
+ valid_at?: string | null | undefined;
535
+ invalid_at?: string | null | undefined;
536
+ owner?: string | null | undefined;
537
+ }>;
538
+ export declare const DiscoverySchema: z.ZodObject<{
539
+ summary: z.ZodString;
540
+ detail: z.ZodOptional<z.ZodString>;
541
+ type: z.ZodEnum<["procedure", "pattern", "insight", "risk"]>;
542
+ entities: z.ZodArray<z.ZodString, "many">;
543
+ source: z.ZodObject<{
544
+ platform: z.ZodString;
545
+ channel: z.ZodString;
546
+ timestamp: z.ZodDefault<z.ZodString>;
547
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
548
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
549
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
550
+ line_range: z.ZodOptional<z.ZodObject<{
551
+ start: z.ZodNumber;
552
+ end: z.ZodNumber;
553
+ }, "strip", z.ZodTypeAny, {
554
+ start: number;
555
+ end: number;
556
+ }, {
557
+ start: number;
558
+ end: number;
559
+ }>>;
560
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
561
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
562
+ raw_hash: z.ZodDefault<z.ZodString>;
563
+ quote: z.ZodDefault<z.ZodString>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ timestamp: string;
566
+ platform: string;
567
+ channel: string;
568
+ raw_hash: string;
569
+ quote: string;
570
+ url?: string | undefined;
571
+ file_path?: string | undefined;
572
+ message_id?: string | undefined;
573
+ thread_id?: string | undefined;
574
+ line_range?: {
575
+ start: number;
576
+ end: number;
577
+ } | undefined;
578
+ attachment_id?: string | undefined;
579
+ }, {
580
+ platform: string;
581
+ channel: string;
582
+ url?: string | null | undefined;
583
+ file_path?: string | null | undefined;
584
+ timestamp?: string | undefined;
585
+ message_id?: string | null | undefined;
586
+ thread_id?: string | null | undefined;
587
+ line_range?: {
588
+ start: number;
589
+ end: number;
590
+ } | undefined;
591
+ attachment_id?: string | null | undefined;
592
+ raw_hash?: string | undefined;
593
+ quote?: string | undefined;
594
+ }>;
595
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ type: "procedure" | "pattern" | "insight" | "risk";
598
+ source: {
599
+ timestamp: string;
600
+ platform: string;
601
+ channel: string;
602
+ raw_hash: string;
603
+ quote: string;
604
+ url?: string | undefined;
605
+ file_path?: string | undefined;
606
+ message_id?: string | undefined;
607
+ thread_id?: string | undefined;
608
+ line_range?: {
609
+ start: number;
610
+ end: number;
611
+ } | undefined;
612
+ attachment_id?: string | undefined;
613
+ };
614
+ summary: string;
615
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
616
+ entities: string[];
617
+ detail?: string | undefined;
618
+ }, {
619
+ type: "procedure" | "pattern" | "insight" | "risk";
620
+ source: {
621
+ platform: string;
622
+ channel: string;
623
+ url?: string | null | undefined;
624
+ file_path?: string | null | undefined;
625
+ timestamp?: string | undefined;
626
+ message_id?: string | null | undefined;
627
+ thread_id?: string | null | undefined;
628
+ line_range?: {
629
+ start: number;
630
+ end: number;
631
+ } | undefined;
632
+ attachment_id?: string | null | undefined;
633
+ raw_hash?: string | undefined;
634
+ quote?: string | undefined;
635
+ };
636
+ summary: string;
637
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
638
+ entities: string[];
639
+ detail?: string | undefined;
640
+ }>;
641
+ export declare const PreferenceSchema: z.ZodObject<{
642
+ summary: z.ZodString;
643
+ detail: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
644
+ category: z.ZodEnum<["communication", "tooling", "scheduling", "workflow", "other"]>;
645
+ entities: z.ZodArray<z.ZodString, "many">;
646
+ source: z.ZodObject<{
647
+ platform: z.ZodString;
648
+ channel: z.ZodString;
649
+ timestamp: z.ZodDefault<z.ZodString>;
650
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
651
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
652
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
653
+ line_range: z.ZodOptional<z.ZodObject<{
654
+ start: z.ZodNumber;
655
+ end: z.ZodNumber;
656
+ }, "strip", z.ZodTypeAny, {
657
+ start: number;
658
+ end: number;
659
+ }, {
660
+ start: number;
661
+ end: number;
662
+ }>>;
663
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
664
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
665
+ raw_hash: z.ZodDefault<z.ZodString>;
666
+ quote: z.ZodDefault<z.ZodString>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ timestamp: string;
669
+ platform: string;
670
+ channel: string;
671
+ raw_hash: string;
672
+ quote: string;
673
+ url?: string | undefined;
674
+ file_path?: string | undefined;
675
+ message_id?: string | undefined;
676
+ thread_id?: string | undefined;
677
+ line_range?: {
678
+ start: number;
679
+ end: number;
680
+ } | undefined;
681
+ attachment_id?: string | undefined;
682
+ }, {
683
+ platform: string;
684
+ channel: string;
685
+ url?: string | null | undefined;
686
+ file_path?: string | null | undefined;
687
+ timestamp?: string | undefined;
688
+ message_id?: string | null | undefined;
689
+ thread_id?: string | null | undefined;
690
+ line_range?: {
691
+ start: number;
692
+ end: number;
693
+ } | undefined;
694
+ attachment_id?: string | null | undefined;
695
+ raw_hash?: string | undefined;
696
+ quote?: string | undefined;
697
+ }>;
698
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ source: {
701
+ timestamp: string;
702
+ platform: string;
703
+ channel: string;
704
+ raw_hash: string;
705
+ quote: string;
706
+ url?: string | undefined;
707
+ file_path?: string | undefined;
708
+ message_id?: string | undefined;
709
+ thread_id?: string | undefined;
710
+ line_range?: {
711
+ start: number;
712
+ end: number;
713
+ } | undefined;
714
+ attachment_id?: string | undefined;
715
+ };
716
+ summary: string;
717
+ category: "communication" | "tooling" | "scheduling" | "workflow" | "other";
718
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
719
+ entities: string[];
720
+ detail?: string | undefined;
721
+ }, {
722
+ source: {
723
+ platform: string;
724
+ channel: string;
725
+ url?: string | null | undefined;
726
+ file_path?: string | null | undefined;
727
+ timestamp?: string | undefined;
728
+ message_id?: string | null | undefined;
729
+ thread_id?: string | null | undefined;
730
+ line_range?: {
731
+ start: number;
732
+ end: number;
733
+ } | undefined;
734
+ attachment_id?: string | null | undefined;
735
+ raw_hash?: string | undefined;
736
+ quote?: string | undefined;
737
+ };
738
+ summary: string;
739
+ category: "communication" | "tooling" | "scheduling" | "workflow" | "other";
740
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
741
+ entities: string[];
742
+ detail?: string | null | undefined;
743
+ }>;
744
+ export declare const ReferenceSchema: z.ZodObject<{
745
+ title: z.ZodString;
746
+ url: z.ZodString;
747
+ summary: z.ZodString;
748
+ trigger: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
749
+ entities: z.ZodArray<z.ZodString, "many">;
750
+ source: z.ZodObject<{
751
+ platform: z.ZodString;
752
+ channel: z.ZodString;
753
+ timestamp: z.ZodDefault<z.ZodString>;
754
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
755
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
756
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
757
+ line_range: z.ZodOptional<z.ZodObject<{
758
+ start: z.ZodNumber;
759
+ end: z.ZodNumber;
760
+ }, "strip", z.ZodTypeAny, {
761
+ start: number;
762
+ end: number;
763
+ }, {
764
+ start: number;
765
+ end: number;
766
+ }>>;
767
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
768
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
769
+ raw_hash: z.ZodDefault<z.ZodString>;
770
+ quote: z.ZodDefault<z.ZodString>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ timestamp: string;
773
+ platform: string;
774
+ channel: string;
775
+ raw_hash: string;
776
+ quote: string;
777
+ url?: string | undefined;
778
+ file_path?: string | undefined;
779
+ message_id?: string | undefined;
780
+ thread_id?: string | undefined;
781
+ line_range?: {
782
+ start: number;
783
+ end: number;
784
+ } | undefined;
785
+ attachment_id?: string | undefined;
786
+ }, {
787
+ platform: string;
788
+ channel: string;
789
+ url?: string | null | undefined;
790
+ file_path?: string | null | undefined;
791
+ timestamp?: string | undefined;
792
+ message_id?: string | null | undefined;
793
+ thread_id?: string | null | undefined;
794
+ line_range?: {
795
+ start: number;
796
+ end: number;
797
+ } | undefined;
798
+ attachment_id?: string | null | undefined;
799
+ raw_hash?: string | undefined;
800
+ quote?: string | undefined;
801
+ }>;
802
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
803
+ }, "strip", z.ZodTypeAny, {
804
+ url: string;
805
+ source: {
806
+ timestamp: string;
807
+ platform: string;
808
+ channel: string;
809
+ raw_hash: string;
810
+ quote: string;
811
+ url?: string | undefined;
812
+ file_path?: string | undefined;
813
+ message_id?: string | undefined;
814
+ thread_id?: string | undefined;
815
+ line_range?: {
816
+ start: number;
817
+ end: number;
818
+ } | undefined;
819
+ attachment_id?: string | undefined;
820
+ };
821
+ summary: string;
822
+ title: string;
823
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
824
+ entities: string[];
825
+ trigger?: string | undefined;
826
+ }, {
827
+ url: string;
828
+ source: {
829
+ platform: string;
830
+ channel: string;
831
+ url?: string | null | undefined;
832
+ file_path?: string | null | undefined;
833
+ timestamp?: string | undefined;
834
+ message_id?: string | null | undefined;
835
+ thread_id?: string | null | undefined;
836
+ line_range?: {
837
+ start: number;
838
+ end: number;
839
+ } | undefined;
840
+ attachment_id?: string | null | undefined;
841
+ raw_hash?: string | undefined;
842
+ quote?: string | undefined;
843
+ };
844
+ summary: string;
845
+ title: string;
846
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
847
+ entities: string[];
848
+ trigger?: string | null | undefined;
849
+ }>;
850
+ export declare const KnowledgeSourceTypeSchema: z.ZodEnum<["conversation", "document", "teaching"]>;
851
+ export declare const KnowledgeSchema: z.ZodEffects<z.ZodObject<{
852
+ topic: z.ZodEffects<z.ZodString, string, string>;
853
+ content: z.ZodString;
854
+ source_type: z.ZodEnum<["conversation", "document", "teaching"]>;
855
+ related_entities: z.ZodArray<z.ZodString, "many">;
856
+ valid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
857
+ invalid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
858
+ source: z.ZodObject<{
859
+ platform: z.ZodString;
860
+ channel: z.ZodString;
861
+ timestamp: z.ZodDefault<z.ZodString>;
862
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
863
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
864
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
865
+ line_range: z.ZodOptional<z.ZodObject<{
866
+ start: z.ZodNumber;
867
+ end: z.ZodNumber;
868
+ }, "strip", z.ZodTypeAny, {
869
+ start: number;
870
+ end: number;
871
+ }, {
872
+ start: number;
873
+ end: number;
874
+ }>>;
875
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
876
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
877
+ raw_hash: z.ZodDefault<z.ZodString>;
878
+ quote: z.ZodDefault<z.ZodString>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ timestamp: string;
881
+ platform: string;
882
+ channel: string;
883
+ raw_hash: string;
884
+ quote: string;
885
+ url?: string | undefined;
886
+ file_path?: string | undefined;
887
+ message_id?: string | undefined;
888
+ thread_id?: string | undefined;
889
+ line_range?: {
890
+ start: number;
891
+ end: number;
892
+ } | undefined;
893
+ attachment_id?: string | undefined;
894
+ }, {
895
+ platform: string;
896
+ channel: string;
897
+ url?: string | null | undefined;
898
+ file_path?: string | null | undefined;
899
+ timestamp?: string | undefined;
900
+ message_id?: string | null | undefined;
901
+ thread_id?: string | null | undefined;
902
+ line_range?: {
903
+ start: number;
904
+ end: number;
905
+ } | undefined;
906
+ attachment_id?: string | null | undefined;
907
+ raw_hash?: string | undefined;
908
+ quote?: string | undefined;
909
+ }>;
910
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ content: string;
913
+ source: {
914
+ timestamp: string;
915
+ platform: string;
916
+ channel: string;
917
+ raw_hash: string;
918
+ quote: string;
919
+ url?: string | undefined;
920
+ file_path?: string | undefined;
921
+ message_id?: string | undefined;
922
+ thread_id?: string | undefined;
923
+ line_range?: {
924
+ start: number;
925
+ end: number;
926
+ } | undefined;
927
+ attachment_id?: string | undefined;
928
+ };
929
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
930
+ topic: string;
931
+ source_type: "conversation" | "document" | "teaching";
932
+ related_entities: string[];
933
+ valid_at?: string | undefined;
934
+ invalid_at?: string | undefined;
935
+ }, {
936
+ content: string;
937
+ source: {
938
+ platform: string;
939
+ channel: string;
940
+ url?: string | null | undefined;
941
+ file_path?: string | null | undefined;
942
+ timestamp?: string | undefined;
943
+ message_id?: string | null | undefined;
944
+ thread_id?: string | null | undefined;
945
+ line_range?: {
946
+ start: number;
947
+ end: number;
948
+ } | undefined;
949
+ attachment_id?: string | null | undefined;
950
+ raw_hash?: string | undefined;
951
+ quote?: string | undefined;
952
+ };
953
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
954
+ topic: string;
955
+ source_type: "conversation" | "document" | "teaching";
956
+ related_entities: string[];
957
+ valid_at?: string | null | undefined;
958
+ invalid_at?: string | null | undefined;
959
+ }>, {
960
+ content: string;
961
+ source: {
962
+ timestamp: string;
963
+ platform: string;
964
+ channel: string;
965
+ raw_hash: string;
966
+ quote: string;
967
+ url?: string | undefined;
968
+ file_path?: string | undefined;
969
+ message_id?: string | undefined;
970
+ thread_id?: string | undefined;
971
+ line_range?: {
972
+ start: number;
973
+ end: number;
974
+ } | undefined;
975
+ attachment_id?: string | undefined;
976
+ };
977
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
978
+ topic: string;
979
+ source_type: "conversation" | "document" | "teaching";
980
+ related_entities: string[];
981
+ valid_at?: string | undefined;
982
+ invalid_at?: string | undefined;
983
+ }, {
984
+ content: string;
985
+ source: {
986
+ platform: string;
987
+ channel: string;
988
+ url?: string | null | undefined;
989
+ file_path?: string | null | undefined;
990
+ timestamp?: string | undefined;
991
+ message_id?: string | null | undefined;
992
+ thread_id?: string | null | undefined;
993
+ line_range?: {
994
+ start: number;
995
+ end: number;
996
+ } | undefined;
997
+ attachment_id?: string | null | undefined;
998
+ raw_hash?: string | undefined;
999
+ quote?: string | undefined;
1000
+ };
1001
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1002
+ topic: string;
1003
+ source_type: "conversation" | "document" | "teaching";
1004
+ related_entities: string[];
1005
+ valid_at?: string | null | undefined;
1006
+ invalid_at?: string | null | undefined;
1007
+ }>;
1008
+ export declare const ExtractionResultSchema: z.ZodObject<{
1009
+ source: z.ZodObject<{
1010
+ platform: z.ZodString;
1011
+ channel: z.ZodString;
1012
+ timestamp: z.ZodDefault<z.ZodString>;
1013
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1014
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1015
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1016
+ line_range: z.ZodOptional<z.ZodObject<{
1017
+ start: z.ZodNumber;
1018
+ end: z.ZodNumber;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ start: number;
1021
+ end: number;
1022
+ }, {
1023
+ start: number;
1024
+ end: number;
1025
+ }>>;
1026
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1027
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1028
+ raw_hash: z.ZodDefault<z.ZodString>;
1029
+ quote: z.ZodDefault<z.ZodString>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ timestamp: string;
1032
+ platform: string;
1033
+ channel: string;
1034
+ raw_hash: string;
1035
+ quote: string;
1036
+ url?: string | undefined;
1037
+ file_path?: string | undefined;
1038
+ message_id?: string | undefined;
1039
+ thread_id?: string | undefined;
1040
+ line_range?: {
1041
+ start: number;
1042
+ end: number;
1043
+ } | undefined;
1044
+ attachment_id?: string | undefined;
1045
+ }, {
1046
+ platform: string;
1047
+ channel: string;
1048
+ url?: string | null | undefined;
1049
+ file_path?: string | null | undefined;
1050
+ timestamp?: string | undefined;
1051
+ message_id?: string | null | undefined;
1052
+ thread_id?: string | null | undefined;
1053
+ line_range?: {
1054
+ start: number;
1055
+ end: number;
1056
+ } | undefined;
1057
+ attachment_id?: string | null | undefined;
1058
+ raw_hash?: string | undefined;
1059
+ quote?: string | undefined;
1060
+ }>;
1061
+ entities: z.ZodArray<z.ZodObject<{
1062
+ slug: z.ZodString;
1063
+ name: z.ZodString;
1064
+ type: z.ZodEnum<["person", "project", "organization", "tool", "concept"]>;
1065
+ context: z.ZodString;
1066
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ type: "person" | "project" | "organization" | "tool" | "concept";
1069
+ name: string;
1070
+ slug: string;
1071
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1072
+ context: string;
1073
+ }, {
1074
+ type: "person" | "project" | "organization" | "tool" | "concept";
1075
+ name: string;
1076
+ slug: string;
1077
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1078
+ context: string;
1079
+ }>, "many">;
1080
+ timeline: z.ZodArray<z.ZodObject<{
1081
+ date: z.ZodString;
1082
+ summary: z.ZodString;
1083
+ entities: z.ZodArray<z.ZodString, "many">;
1084
+ source: z.ZodObject<{
1085
+ platform: z.ZodString;
1086
+ channel: z.ZodString;
1087
+ timestamp: z.ZodDefault<z.ZodString>;
1088
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1089
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1090
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1091
+ line_range: z.ZodOptional<z.ZodObject<{
1092
+ start: z.ZodNumber;
1093
+ end: z.ZodNumber;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ start: number;
1096
+ end: number;
1097
+ }, {
1098
+ start: number;
1099
+ end: number;
1100
+ }>>;
1101
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1102
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1103
+ raw_hash: z.ZodDefault<z.ZodString>;
1104
+ quote: z.ZodDefault<z.ZodString>;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ timestamp: string;
1107
+ platform: string;
1108
+ channel: string;
1109
+ raw_hash: string;
1110
+ quote: string;
1111
+ url?: string | undefined;
1112
+ file_path?: string | undefined;
1113
+ message_id?: string | undefined;
1114
+ thread_id?: string | undefined;
1115
+ line_range?: {
1116
+ start: number;
1117
+ end: number;
1118
+ } | undefined;
1119
+ attachment_id?: string | undefined;
1120
+ }, {
1121
+ platform: string;
1122
+ channel: string;
1123
+ url?: string | null | undefined;
1124
+ file_path?: string | null | undefined;
1125
+ timestamp?: string | undefined;
1126
+ message_id?: string | null | undefined;
1127
+ thread_id?: string | null | undefined;
1128
+ line_range?: {
1129
+ start: number;
1130
+ end: number;
1131
+ } | undefined;
1132
+ attachment_id?: string | null | undefined;
1133
+ raw_hash?: string | undefined;
1134
+ quote?: string | undefined;
1135
+ }>;
1136
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ source: {
1139
+ timestamp: string;
1140
+ platform: string;
1141
+ channel: string;
1142
+ raw_hash: string;
1143
+ quote: string;
1144
+ url?: string | undefined;
1145
+ file_path?: string | undefined;
1146
+ message_id?: string | undefined;
1147
+ thread_id?: string | undefined;
1148
+ line_range?: {
1149
+ start: number;
1150
+ end: number;
1151
+ } | undefined;
1152
+ attachment_id?: string | undefined;
1153
+ };
1154
+ summary: string;
1155
+ date: string;
1156
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1157
+ entities: string[];
1158
+ }, {
1159
+ source: {
1160
+ platform: string;
1161
+ channel: string;
1162
+ url?: string | null | undefined;
1163
+ file_path?: string | null | undefined;
1164
+ timestamp?: string | undefined;
1165
+ message_id?: string | null | undefined;
1166
+ thread_id?: string | null | undefined;
1167
+ line_range?: {
1168
+ start: number;
1169
+ end: number;
1170
+ } | undefined;
1171
+ attachment_id?: string | null | undefined;
1172
+ raw_hash?: string | undefined;
1173
+ quote?: string | undefined;
1174
+ };
1175
+ summary: string;
1176
+ date: string;
1177
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1178
+ entities: string[];
1179
+ }>, "many">;
1180
+ links: z.ZodArray<z.ZodObject<{
1181
+ from: z.ZodString;
1182
+ to: z.ZodString;
1183
+ type: z.ZodType<"works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom", z.ZodTypeDef, "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom">;
1184
+ context: z.ZodString;
1185
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1186
+ source: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1187
+ platform: z.ZodString;
1188
+ channel: z.ZodString;
1189
+ timestamp: z.ZodDefault<z.ZodString>;
1190
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1191
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1192
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1193
+ line_range: z.ZodOptional<z.ZodObject<{
1194
+ start: z.ZodNumber;
1195
+ end: z.ZodNumber;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ start: number;
1198
+ end: number;
1199
+ }, {
1200
+ start: number;
1201
+ end: number;
1202
+ }>>;
1203
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1204
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1205
+ raw_hash: z.ZodDefault<z.ZodString>;
1206
+ quote: z.ZodDefault<z.ZodString>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ timestamp: string;
1209
+ platform: string;
1210
+ channel: string;
1211
+ raw_hash: string;
1212
+ quote: string;
1213
+ url?: string | undefined;
1214
+ file_path?: string | undefined;
1215
+ message_id?: string | undefined;
1216
+ thread_id?: string | undefined;
1217
+ line_range?: {
1218
+ start: number;
1219
+ end: number;
1220
+ } | undefined;
1221
+ attachment_id?: string | undefined;
1222
+ }, {
1223
+ platform: string;
1224
+ channel: string;
1225
+ url?: string | null | undefined;
1226
+ file_path?: string | null | undefined;
1227
+ timestamp?: string | undefined;
1228
+ message_id?: string | null | undefined;
1229
+ thread_id?: string | null | undefined;
1230
+ line_range?: {
1231
+ start: number;
1232
+ end: number;
1233
+ } | undefined;
1234
+ attachment_id?: string | null | undefined;
1235
+ raw_hash?: string | undefined;
1236
+ quote?: string | undefined;
1237
+ }>>, {
1238
+ timestamp: string;
1239
+ platform: string;
1240
+ channel: string;
1241
+ raw_hash: string;
1242
+ quote: string;
1243
+ url?: string | undefined;
1244
+ file_path?: string | undefined;
1245
+ message_id?: string | undefined;
1246
+ thread_id?: string | undefined;
1247
+ line_range?: {
1248
+ start: number;
1249
+ end: number;
1250
+ } | undefined;
1251
+ attachment_id?: string | undefined;
1252
+ }, {
1253
+ platform: string;
1254
+ channel: string;
1255
+ url?: string | null | undefined;
1256
+ file_path?: string | null | undefined;
1257
+ timestamp?: string | undefined;
1258
+ message_id?: string | null | undefined;
1259
+ thread_id?: string | null | undefined;
1260
+ line_range?: {
1261
+ start: number;
1262
+ end: number;
1263
+ } | undefined;
1264
+ attachment_id?: string | null | undefined;
1265
+ raw_hash?: string | undefined;
1266
+ quote?: string | undefined;
1267
+ } | undefined>;
1268
+ }, "strip", z.ZodTypeAny, {
1269
+ type: "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom";
1270
+ source: {
1271
+ timestamp: string;
1272
+ platform: string;
1273
+ channel: string;
1274
+ raw_hash: string;
1275
+ quote: string;
1276
+ url?: string | undefined;
1277
+ file_path?: string | undefined;
1278
+ message_id?: string | undefined;
1279
+ thread_id?: string | undefined;
1280
+ line_range?: {
1281
+ start: number;
1282
+ end: number;
1283
+ } | undefined;
1284
+ attachment_id?: string | undefined;
1285
+ };
1286
+ to: string;
1287
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1288
+ context: string;
1289
+ from: string;
1290
+ }, {
1291
+ type: "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom";
1292
+ to: string;
1293
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1294
+ context: string;
1295
+ from: string;
1296
+ source?: {
1297
+ platform: string;
1298
+ channel: string;
1299
+ url?: string | null | undefined;
1300
+ file_path?: string | null | undefined;
1301
+ timestamp?: string | undefined;
1302
+ message_id?: string | null | undefined;
1303
+ thread_id?: string | null | undefined;
1304
+ line_range?: {
1305
+ start: number;
1306
+ end: number;
1307
+ } | undefined;
1308
+ attachment_id?: string | null | undefined;
1309
+ raw_hash?: string | undefined;
1310
+ quote?: string | undefined;
1311
+ } | undefined;
1312
+ }>, "many">;
1313
+ decisions: z.ZodArray<z.ZodObject<{
1314
+ summary: z.ZodString;
1315
+ reasoning: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1316
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1317
+ entities: z.ZodArray<z.ZodString, "many">;
1318
+ date: z.ZodString;
1319
+ valid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1320
+ invalid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1321
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1322
+ source: z.ZodObject<{
1323
+ platform: z.ZodString;
1324
+ channel: z.ZodString;
1325
+ timestamp: z.ZodDefault<z.ZodString>;
1326
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1327
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1328
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1329
+ line_range: z.ZodOptional<z.ZodObject<{
1330
+ start: z.ZodNumber;
1331
+ end: z.ZodNumber;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ start: number;
1334
+ end: number;
1335
+ }, {
1336
+ start: number;
1337
+ end: number;
1338
+ }>>;
1339
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1340
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1341
+ raw_hash: z.ZodDefault<z.ZodString>;
1342
+ quote: z.ZodDefault<z.ZodString>;
1343
+ }, "strip", z.ZodTypeAny, {
1344
+ timestamp: string;
1345
+ platform: string;
1346
+ channel: string;
1347
+ raw_hash: string;
1348
+ quote: string;
1349
+ url?: string | undefined;
1350
+ file_path?: string | undefined;
1351
+ message_id?: string | undefined;
1352
+ thread_id?: string | undefined;
1353
+ line_range?: {
1354
+ start: number;
1355
+ end: number;
1356
+ } | undefined;
1357
+ attachment_id?: string | undefined;
1358
+ }, {
1359
+ platform: string;
1360
+ channel: string;
1361
+ url?: string | null | undefined;
1362
+ file_path?: string | null | undefined;
1363
+ timestamp?: string | undefined;
1364
+ message_id?: string | null | undefined;
1365
+ thread_id?: string | null | undefined;
1366
+ line_range?: {
1367
+ start: number;
1368
+ end: number;
1369
+ } | undefined;
1370
+ attachment_id?: string | null | undefined;
1371
+ raw_hash?: string | undefined;
1372
+ quote?: string | undefined;
1373
+ }>;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ source: {
1376
+ timestamp: string;
1377
+ platform: string;
1378
+ channel: string;
1379
+ raw_hash: string;
1380
+ quote: string;
1381
+ url?: string | undefined;
1382
+ file_path?: string | undefined;
1383
+ message_id?: string | undefined;
1384
+ thread_id?: string | undefined;
1385
+ line_range?: {
1386
+ start: number;
1387
+ end: number;
1388
+ } | undefined;
1389
+ attachment_id?: string | undefined;
1390
+ };
1391
+ summary: string;
1392
+ date: string;
1393
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1394
+ entities: string[];
1395
+ valid_at?: string | undefined;
1396
+ invalid_at?: string | undefined;
1397
+ reasoning?: string | undefined;
1398
+ alternatives?: string[] | undefined;
1399
+ }, {
1400
+ source: {
1401
+ platform: string;
1402
+ channel: string;
1403
+ url?: string | null | undefined;
1404
+ file_path?: string | null | undefined;
1405
+ timestamp?: string | undefined;
1406
+ message_id?: string | null | undefined;
1407
+ thread_id?: string | null | undefined;
1408
+ line_range?: {
1409
+ start: number;
1410
+ end: number;
1411
+ } | undefined;
1412
+ attachment_id?: string | null | undefined;
1413
+ raw_hash?: string | undefined;
1414
+ quote?: string | undefined;
1415
+ };
1416
+ summary: string;
1417
+ date: string;
1418
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1419
+ entities: string[];
1420
+ valid_at?: string | null | undefined;
1421
+ invalid_at?: string | null | undefined;
1422
+ reasoning?: string | null | undefined;
1423
+ alternatives?: string[] | undefined;
1424
+ }>, "many">;
1425
+ tasks: z.ZodArray<z.ZodObject<{
1426
+ title: z.ZodString;
1427
+ status: z.ZodEnum<["open", "in_progress", "done", "cancelled"]>;
1428
+ owner: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1429
+ project: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1430
+ due_date: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1431
+ valid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1432
+ invalid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1433
+ source: z.ZodObject<{
1434
+ platform: z.ZodString;
1435
+ channel: z.ZodString;
1436
+ timestamp: z.ZodDefault<z.ZodString>;
1437
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1438
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1439
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1440
+ line_range: z.ZodOptional<z.ZodObject<{
1441
+ start: z.ZodNumber;
1442
+ end: z.ZodNumber;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ start: number;
1445
+ end: number;
1446
+ }, {
1447
+ start: number;
1448
+ end: number;
1449
+ }>>;
1450
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1451
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1452
+ raw_hash: z.ZodDefault<z.ZodString>;
1453
+ quote: z.ZodDefault<z.ZodString>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ timestamp: string;
1456
+ platform: string;
1457
+ channel: string;
1458
+ raw_hash: string;
1459
+ quote: string;
1460
+ url?: string | undefined;
1461
+ file_path?: string | undefined;
1462
+ message_id?: string | undefined;
1463
+ thread_id?: string | undefined;
1464
+ line_range?: {
1465
+ start: number;
1466
+ end: number;
1467
+ } | undefined;
1468
+ attachment_id?: string | undefined;
1469
+ }, {
1470
+ platform: string;
1471
+ channel: string;
1472
+ url?: string | null | undefined;
1473
+ file_path?: string | null | undefined;
1474
+ timestamp?: string | undefined;
1475
+ message_id?: string | null | undefined;
1476
+ thread_id?: string | null | undefined;
1477
+ line_range?: {
1478
+ start: number;
1479
+ end: number;
1480
+ } | undefined;
1481
+ attachment_id?: string | null | undefined;
1482
+ raw_hash?: string | undefined;
1483
+ quote?: string | undefined;
1484
+ }>;
1485
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ source: {
1488
+ timestamp: string;
1489
+ platform: string;
1490
+ channel: string;
1491
+ raw_hash: string;
1492
+ quote: string;
1493
+ url?: string | undefined;
1494
+ file_path?: string | undefined;
1495
+ message_id?: string | undefined;
1496
+ thread_id?: string | undefined;
1497
+ line_range?: {
1498
+ start: number;
1499
+ end: number;
1500
+ } | undefined;
1501
+ attachment_id?: string | undefined;
1502
+ };
1503
+ status: "open" | "in_progress" | "done" | "cancelled";
1504
+ title: string;
1505
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1506
+ project?: string | undefined;
1507
+ due_date?: string | undefined;
1508
+ valid_at?: string | undefined;
1509
+ invalid_at?: string | undefined;
1510
+ owner?: string | undefined;
1511
+ }, {
1512
+ source: {
1513
+ platform: string;
1514
+ channel: string;
1515
+ url?: string | null | undefined;
1516
+ file_path?: string | null | undefined;
1517
+ timestamp?: string | undefined;
1518
+ message_id?: string | null | undefined;
1519
+ thread_id?: string | null | undefined;
1520
+ line_range?: {
1521
+ start: number;
1522
+ end: number;
1523
+ } | undefined;
1524
+ attachment_id?: string | null | undefined;
1525
+ raw_hash?: string | undefined;
1526
+ quote?: string | undefined;
1527
+ };
1528
+ status: "open" | "in_progress" | "done" | "cancelled";
1529
+ title: string;
1530
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1531
+ project?: string | null | undefined;
1532
+ due_date?: string | null | undefined;
1533
+ valid_at?: string | null | undefined;
1534
+ invalid_at?: string | null | undefined;
1535
+ owner?: string | null | undefined;
1536
+ }>, "many">;
1537
+ discoveries: z.ZodArray<z.ZodObject<{
1538
+ summary: z.ZodString;
1539
+ detail: z.ZodOptional<z.ZodString>;
1540
+ type: z.ZodEnum<["procedure", "pattern", "insight", "risk"]>;
1541
+ entities: z.ZodArray<z.ZodString, "many">;
1542
+ source: z.ZodObject<{
1543
+ platform: z.ZodString;
1544
+ channel: z.ZodString;
1545
+ timestamp: z.ZodDefault<z.ZodString>;
1546
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1547
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1548
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1549
+ line_range: z.ZodOptional<z.ZodObject<{
1550
+ start: z.ZodNumber;
1551
+ end: z.ZodNumber;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ start: number;
1554
+ end: number;
1555
+ }, {
1556
+ start: number;
1557
+ end: number;
1558
+ }>>;
1559
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1560
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1561
+ raw_hash: z.ZodDefault<z.ZodString>;
1562
+ quote: z.ZodDefault<z.ZodString>;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ timestamp: string;
1565
+ platform: string;
1566
+ channel: string;
1567
+ raw_hash: string;
1568
+ quote: string;
1569
+ url?: string | undefined;
1570
+ file_path?: string | undefined;
1571
+ message_id?: string | undefined;
1572
+ thread_id?: string | undefined;
1573
+ line_range?: {
1574
+ start: number;
1575
+ end: number;
1576
+ } | undefined;
1577
+ attachment_id?: string | undefined;
1578
+ }, {
1579
+ platform: string;
1580
+ channel: string;
1581
+ url?: string | null | undefined;
1582
+ file_path?: string | null | undefined;
1583
+ timestamp?: string | undefined;
1584
+ message_id?: string | null | undefined;
1585
+ thread_id?: string | null | undefined;
1586
+ line_range?: {
1587
+ start: number;
1588
+ end: number;
1589
+ } | undefined;
1590
+ attachment_id?: string | null | undefined;
1591
+ raw_hash?: string | undefined;
1592
+ quote?: string | undefined;
1593
+ }>;
1594
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ type: "procedure" | "pattern" | "insight" | "risk";
1597
+ source: {
1598
+ timestamp: string;
1599
+ platform: string;
1600
+ channel: string;
1601
+ raw_hash: string;
1602
+ quote: string;
1603
+ url?: string | undefined;
1604
+ file_path?: string | undefined;
1605
+ message_id?: string | undefined;
1606
+ thread_id?: string | undefined;
1607
+ line_range?: {
1608
+ start: number;
1609
+ end: number;
1610
+ } | undefined;
1611
+ attachment_id?: string | undefined;
1612
+ };
1613
+ summary: string;
1614
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1615
+ entities: string[];
1616
+ detail?: string | undefined;
1617
+ }, {
1618
+ type: "procedure" | "pattern" | "insight" | "risk";
1619
+ source: {
1620
+ platform: string;
1621
+ channel: string;
1622
+ url?: string | null | undefined;
1623
+ file_path?: string | null | undefined;
1624
+ timestamp?: string | undefined;
1625
+ message_id?: string | null | undefined;
1626
+ thread_id?: string | null | undefined;
1627
+ line_range?: {
1628
+ start: number;
1629
+ end: number;
1630
+ } | undefined;
1631
+ attachment_id?: string | null | undefined;
1632
+ raw_hash?: string | undefined;
1633
+ quote?: string | undefined;
1634
+ };
1635
+ summary: string;
1636
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1637
+ entities: string[];
1638
+ detail?: string | undefined;
1639
+ }>, "many">;
1640
+ knowledge: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1641
+ topic: z.ZodEffects<z.ZodString, string, string>;
1642
+ content: z.ZodString;
1643
+ source_type: z.ZodEnum<["conversation", "document", "teaching"]>;
1644
+ related_entities: z.ZodArray<z.ZodString, "many">;
1645
+ valid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1646
+ invalid_at: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1647
+ source: z.ZodObject<{
1648
+ platform: z.ZodString;
1649
+ channel: z.ZodString;
1650
+ timestamp: z.ZodDefault<z.ZodString>;
1651
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1652
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1653
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1654
+ line_range: z.ZodOptional<z.ZodObject<{
1655
+ start: z.ZodNumber;
1656
+ end: z.ZodNumber;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ start: number;
1659
+ end: number;
1660
+ }, {
1661
+ start: number;
1662
+ end: number;
1663
+ }>>;
1664
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1665
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1666
+ raw_hash: z.ZodDefault<z.ZodString>;
1667
+ quote: z.ZodDefault<z.ZodString>;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ timestamp: string;
1670
+ platform: string;
1671
+ channel: string;
1672
+ raw_hash: string;
1673
+ quote: string;
1674
+ url?: string | undefined;
1675
+ file_path?: string | undefined;
1676
+ message_id?: string | undefined;
1677
+ thread_id?: string | undefined;
1678
+ line_range?: {
1679
+ start: number;
1680
+ end: number;
1681
+ } | undefined;
1682
+ attachment_id?: string | undefined;
1683
+ }, {
1684
+ platform: string;
1685
+ channel: string;
1686
+ url?: string | null | undefined;
1687
+ file_path?: string | null | undefined;
1688
+ timestamp?: string | undefined;
1689
+ message_id?: string | null | undefined;
1690
+ thread_id?: string | null | undefined;
1691
+ line_range?: {
1692
+ start: number;
1693
+ end: number;
1694
+ } | undefined;
1695
+ attachment_id?: string | null | undefined;
1696
+ raw_hash?: string | undefined;
1697
+ quote?: string | undefined;
1698
+ }>;
1699
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ content: string;
1702
+ source: {
1703
+ timestamp: string;
1704
+ platform: string;
1705
+ channel: string;
1706
+ raw_hash: string;
1707
+ quote: string;
1708
+ url?: string | undefined;
1709
+ file_path?: string | undefined;
1710
+ message_id?: string | undefined;
1711
+ thread_id?: string | undefined;
1712
+ line_range?: {
1713
+ start: number;
1714
+ end: number;
1715
+ } | undefined;
1716
+ attachment_id?: string | undefined;
1717
+ };
1718
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1719
+ topic: string;
1720
+ source_type: "conversation" | "document" | "teaching";
1721
+ related_entities: string[];
1722
+ valid_at?: string | undefined;
1723
+ invalid_at?: string | undefined;
1724
+ }, {
1725
+ content: string;
1726
+ source: {
1727
+ platform: string;
1728
+ channel: string;
1729
+ url?: string | null | undefined;
1730
+ file_path?: string | null | undefined;
1731
+ timestamp?: string | undefined;
1732
+ message_id?: string | null | undefined;
1733
+ thread_id?: string | null | undefined;
1734
+ line_range?: {
1735
+ start: number;
1736
+ end: number;
1737
+ } | undefined;
1738
+ attachment_id?: string | null | undefined;
1739
+ raw_hash?: string | undefined;
1740
+ quote?: string | undefined;
1741
+ };
1742
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1743
+ topic: string;
1744
+ source_type: "conversation" | "document" | "teaching";
1745
+ related_entities: string[];
1746
+ valid_at?: string | null | undefined;
1747
+ invalid_at?: string | null | undefined;
1748
+ }>, {
1749
+ content: string;
1750
+ source: {
1751
+ timestamp: string;
1752
+ platform: string;
1753
+ channel: string;
1754
+ raw_hash: string;
1755
+ quote: string;
1756
+ url?: string | undefined;
1757
+ file_path?: string | undefined;
1758
+ message_id?: string | undefined;
1759
+ thread_id?: string | undefined;
1760
+ line_range?: {
1761
+ start: number;
1762
+ end: number;
1763
+ } | undefined;
1764
+ attachment_id?: string | undefined;
1765
+ };
1766
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1767
+ topic: string;
1768
+ source_type: "conversation" | "document" | "teaching";
1769
+ related_entities: string[];
1770
+ valid_at?: string | undefined;
1771
+ invalid_at?: string | undefined;
1772
+ }, {
1773
+ content: string;
1774
+ source: {
1775
+ platform: string;
1776
+ channel: string;
1777
+ url?: string | null | undefined;
1778
+ file_path?: string | null | undefined;
1779
+ timestamp?: string | undefined;
1780
+ message_id?: string | null | undefined;
1781
+ thread_id?: string | null | undefined;
1782
+ line_range?: {
1783
+ start: number;
1784
+ end: number;
1785
+ } | undefined;
1786
+ attachment_id?: string | null | undefined;
1787
+ raw_hash?: string | undefined;
1788
+ quote?: string | undefined;
1789
+ };
1790
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1791
+ topic: string;
1792
+ source_type: "conversation" | "document" | "teaching";
1793
+ related_entities: string[];
1794
+ valid_at?: string | null | undefined;
1795
+ invalid_at?: string | null | undefined;
1796
+ }>, "many">>;
1797
+ preferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
1798
+ summary: z.ZodString;
1799
+ detail: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1800
+ category: z.ZodEnum<["communication", "tooling", "scheduling", "workflow", "other"]>;
1801
+ entities: z.ZodArray<z.ZodString, "many">;
1802
+ source: z.ZodObject<{
1803
+ platform: z.ZodString;
1804
+ channel: z.ZodString;
1805
+ timestamp: z.ZodDefault<z.ZodString>;
1806
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1807
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1808
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1809
+ line_range: z.ZodOptional<z.ZodObject<{
1810
+ start: z.ZodNumber;
1811
+ end: z.ZodNumber;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ start: number;
1814
+ end: number;
1815
+ }, {
1816
+ start: number;
1817
+ end: number;
1818
+ }>>;
1819
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1820
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1821
+ raw_hash: z.ZodDefault<z.ZodString>;
1822
+ quote: z.ZodDefault<z.ZodString>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ timestamp: string;
1825
+ platform: string;
1826
+ channel: string;
1827
+ raw_hash: string;
1828
+ quote: string;
1829
+ url?: string | undefined;
1830
+ file_path?: string | undefined;
1831
+ message_id?: string | undefined;
1832
+ thread_id?: string | undefined;
1833
+ line_range?: {
1834
+ start: number;
1835
+ end: number;
1836
+ } | undefined;
1837
+ attachment_id?: string | undefined;
1838
+ }, {
1839
+ platform: string;
1840
+ channel: string;
1841
+ url?: string | null | undefined;
1842
+ file_path?: string | null | undefined;
1843
+ timestamp?: string | undefined;
1844
+ message_id?: string | null | undefined;
1845
+ thread_id?: string | null | undefined;
1846
+ line_range?: {
1847
+ start: number;
1848
+ end: number;
1849
+ } | undefined;
1850
+ attachment_id?: string | null | undefined;
1851
+ raw_hash?: string | undefined;
1852
+ quote?: string | undefined;
1853
+ }>;
1854
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1855
+ }, "strip", z.ZodTypeAny, {
1856
+ source: {
1857
+ timestamp: string;
1858
+ platform: string;
1859
+ channel: string;
1860
+ raw_hash: string;
1861
+ quote: string;
1862
+ url?: string | undefined;
1863
+ file_path?: string | undefined;
1864
+ message_id?: string | undefined;
1865
+ thread_id?: string | undefined;
1866
+ line_range?: {
1867
+ start: number;
1868
+ end: number;
1869
+ } | undefined;
1870
+ attachment_id?: string | undefined;
1871
+ };
1872
+ summary: string;
1873
+ category: "communication" | "tooling" | "scheduling" | "workflow" | "other";
1874
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1875
+ entities: string[];
1876
+ detail?: string | undefined;
1877
+ }, {
1878
+ source: {
1879
+ platform: string;
1880
+ channel: string;
1881
+ url?: string | null | undefined;
1882
+ file_path?: string | null | undefined;
1883
+ timestamp?: string | undefined;
1884
+ message_id?: string | null | undefined;
1885
+ thread_id?: string | null | undefined;
1886
+ line_range?: {
1887
+ start: number;
1888
+ end: number;
1889
+ } | undefined;
1890
+ attachment_id?: string | null | undefined;
1891
+ raw_hash?: string | undefined;
1892
+ quote?: string | undefined;
1893
+ };
1894
+ summary: string;
1895
+ category: "communication" | "tooling" | "scheduling" | "workflow" | "other";
1896
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1897
+ entities: string[];
1898
+ detail?: string | null | undefined;
1899
+ }>, "many">>;
1900
+ references: z.ZodDefault<z.ZodArray<z.ZodObject<{
1901
+ title: z.ZodString;
1902
+ url: z.ZodString;
1903
+ summary: z.ZodString;
1904
+ trigger: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1905
+ entities: z.ZodArray<z.ZodString, "many">;
1906
+ source: z.ZodObject<{
1907
+ platform: z.ZodString;
1908
+ channel: z.ZodString;
1909
+ timestamp: z.ZodDefault<z.ZodString>;
1910
+ message_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1911
+ thread_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1912
+ file_path: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1913
+ line_range: z.ZodOptional<z.ZodObject<{
1914
+ start: z.ZodNumber;
1915
+ end: z.ZodNumber;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ start: number;
1918
+ end: number;
1919
+ }, {
1920
+ start: number;
1921
+ end: number;
1922
+ }>>;
1923
+ attachment_id: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1924
+ url: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string | undefined, string | null | undefined>;
1925
+ raw_hash: z.ZodDefault<z.ZodString>;
1926
+ quote: z.ZodDefault<z.ZodString>;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ timestamp: string;
1929
+ platform: string;
1930
+ channel: string;
1931
+ raw_hash: string;
1932
+ quote: string;
1933
+ url?: string | undefined;
1934
+ file_path?: string | undefined;
1935
+ message_id?: string | undefined;
1936
+ thread_id?: string | undefined;
1937
+ line_range?: {
1938
+ start: number;
1939
+ end: number;
1940
+ } | undefined;
1941
+ attachment_id?: string | undefined;
1942
+ }, {
1943
+ platform: string;
1944
+ channel: string;
1945
+ url?: string | null | undefined;
1946
+ file_path?: string | null | undefined;
1947
+ timestamp?: string | undefined;
1948
+ message_id?: string | null | undefined;
1949
+ thread_id?: string | null | undefined;
1950
+ line_range?: {
1951
+ start: number;
1952
+ end: number;
1953
+ } | undefined;
1954
+ attachment_id?: string | null | undefined;
1955
+ raw_hash?: string | undefined;
1956
+ quote?: string | undefined;
1957
+ }>;
1958
+ confidence: z.ZodEnum<["direct", "paraphrased", "inferred", "speculative"]>;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ url: string;
1961
+ source: {
1962
+ timestamp: string;
1963
+ platform: string;
1964
+ channel: string;
1965
+ raw_hash: string;
1966
+ quote: string;
1967
+ url?: string | undefined;
1968
+ file_path?: string | undefined;
1969
+ message_id?: string | undefined;
1970
+ thread_id?: string | undefined;
1971
+ line_range?: {
1972
+ start: number;
1973
+ end: number;
1974
+ } | undefined;
1975
+ attachment_id?: string | undefined;
1976
+ };
1977
+ summary: string;
1978
+ title: string;
1979
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
1980
+ entities: string[];
1981
+ trigger?: string | undefined;
1982
+ }, {
1983
+ url: string;
1984
+ source: {
1985
+ platform: string;
1986
+ channel: string;
1987
+ url?: string | null | undefined;
1988
+ file_path?: string | null | undefined;
1989
+ timestamp?: string | undefined;
1990
+ message_id?: string | null | undefined;
1991
+ thread_id?: string | null | undefined;
1992
+ line_range?: {
1993
+ start: number;
1994
+ end: number;
1995
+ } | undefined;
1996
+ attachment_id?: string | null | undefined;
1997
+ raw_hash?: string | undefined;
1998
+ quote?: string | undefined;
1999
+ };
2000
+ summary: string;
2001
+ title: string;
2002
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2003
+ entities: string[];
2004
+ trigger?: string | null | undefined;
2005
+ }>, "many">>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ source: {
2008
+ timestamp: string;
2009
+ platform: string;
2010
+ channel: string;
2011
+ raw_hash: string;
2012
+ quote: string;
2013
+ url?: string | undefined;
2014
+ file_path?: string | undefined;
2015
+ message_id?: string | undefined;
2016
+ thread_id?: string | undefined;
2017
+ line_range?: {
2018
+ start: number;
2019
+ end: number;
2020
+ } | undefined;
2021
+ attachment_id?: string | undefined;
2022
+ };
2023
+ tasks: {
2024
+ source: {
2025
+ timestamp: string;
2026
+ platform: string;
2027
+ channel: string;
2028
+ raw_hash: string;
2029
+ quote: string;
2030
+ url?: string | undefined;
2031
+ file_path?: string | undefined;
2032
+ message_id?: string | undefined;
2033
+ thread_id?: string | undefined;
2034
+ line_range?: {
2035
+ start: number;
2036
+ end: number;
2037
+ } | undefined;
2038
+ attachment_id?: string | undefined;
2039
+ };
2040
+ status: "open" | "in_progress" | "done" | "cancelled";
2041
+ title: string;
2042
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2043
+ project?: string | undefined;
2044
+ due_date?: string | undefined;
2045
+ valid_at?: string | undefined;
2046
+ invalid_at?: string | undefined;
2047
+ owner?: string | undefined;
2048
+ }[];
2049
+ knowledge: {
2050
+ content: string;
2051
+ source: {
2052
+ timestamp: string;
2053
+ platform: string;
2054
+ channel: string;
2055
+ raw_hash: string;
2056
+ quote: string;
2057
+ url?: string | undefined;
2058
+ file_path?: string | undefined;
2059
+ message_id?: string | undefined;
2060
+ thread_id?: string | undefined;
2061
+ line_range?: {
2062
+ start: number;
2063
+ end: number;
2064
+ } | undefined;
2065
+ attachment_id?: string | undefined;
2066
+ };
2067
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2068
+ topic: string;
2069
+ source_type: "conversation" | "document" | "teaching";
2070
+ related_entities: string[];
2071
+ valid_at?: string | undefined;
2072
+ invalid_at?: string | undefined;
2073
+ }[];
2074
+ decisions: {
2075
+ source: {
2076
+ timestamp: string;
2077
+ platform: string;
2078
+ channel: string;
2079
+ raw_hash: string;
2080
+ quote: string;
2081
+ url?: string | undefined;
2082
+ file_path?: string | undefined;
2083
+ message_id?: string | undefined;
2084
+ thread_id?: string | undefined;
2085
+ line_range?: {
2086
+ start: number;
2087
+ end: number;
2088
+ } | undefined;
2089
+ attachment_id?: string | undefined;
2090
+ };
2091
+ summary: string;
2092
+ date: string;
2093
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2094
+ entities: string[];
2095
+ valid_at?: string | undefined;
2096
+ invalid_at?: string | undefined;
2097
+ reasoning?: string | undefined;
2098
+ alternatives?: string[] | undefined;
2099
+ }[];
2100
+ discoveries: {
2101
+ type: "procedure" | "pattern" | "insight" | "risk";
2102
+ source: {
2103
+ timestamp: string;
2104
+ platform: string;
2105
+ channel: string;
2106
+ raw_hash: string;
2107
+ quote: string;
2108
+ url?: string | undefined;
2109
+ file_path?: string | undefined;
2110
+ message_id?: string | undefined;
2111
+ thread_id?: string | undefined;
2112
+ line_range?: {
2113
+ start: number;
2114
+ end: number;
2115
+ } | undefined;
2116
+ attachment_id?: string | undefined;
2117
+ };
2118
+ summary: string;
2119
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2120
+ entities: string[];
2121
+ detail?: string | undefined;
2122
+ }[];
2123
+ entities: {
2124
+ type: "person" | "project" | "organization" | "tool" | "concept";
2125
+ name: string;
2126
+ slug: string;
2127
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2128
+ context: string;
2129
+ }[];
2130
+ timeline: {
2131
+ source: {
2132
+ timestamp: string;
2133
+ platform: string;
2134
+ channel: string;
2135
+ raw_hash: string;
2136
+ quote: string;
2137
+ url?: string | undefined;
2138
+ file_path?: string | undefined;
2139
+ message_id?: string | undefined;
2140
+ thread_id?: string | undefined;
2141
+ line_range?: {
2142
+ start: number;
2143
+ end: number;
2144
+ } | undefined;
2145
+ attachment_id?: string | undefined;
2146
+ };
2147
+ summary: string;
2148
+ date: string;
2149
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2150
+ entities: string[];
2151
+ }[];
2152
+ links: {
2153
+ type: "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom";
2154
+ source: {
2155
+ timestamp: string;
2156
+ platform: string;
2157
+ channel: string;
2158
+ raw_hash: string;
2159
+ quote: string;
2160
+ url?: string | undefined;
2161
+ file_path?: string | undefined;
2162
+ message_id?: string | undefined;
2163
+ thread_id?: string | undefined;
2164
+ line_range?: {
2165
+ start: number;
2166
+ end: number;
2167
+ } | undefined;
2168
+ attachment_id?: string | undefined;
2169
+ };
2170
+ to: string;
2171
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2172
+ context: string;
2173
+ from: string;
2174
+ }[];
2175
+ preferences: {
2176
+ source: {
2177
+ timestamp: string;
2178
+ platform: string;
2179
+ channel: string;
2180
+ raw_hash: string;
2181
+ quote: string;
2182
+ url?: string | undefined;
2183
+ file_path?: string | undefined;
2184
+ message_id?: string | undefined;
2185
+ thread_id?: string | undefined;
2186
+ line_range?: {
2187
+ start: number;
2188
+ end: number;
2189
+ } | undefined;
2190
+ attachment_id?: string | undefined;
2191
+ };
2192
+ summary: string;
2193
+ category: "communication" | "tooling" | "scheduling" | "workflow" | "other";
2194
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2195
+ entities: string[];
2196
+ detail?: string | undefined;
2197
+ }[];
2198
+ references: {
2199
+ url: string;
2200
+ source: {
2201
+ timestamp: string;
2202
+ platform: string;
2203
+ channel: string;
2204
+ raw_hash: string;
2205
+ quote: string;
2206
+ url?: string | undefined;
2207
+ file_path?: string | undefined;
2208
+ message_id?: string | undefined;
2209
+ thread_id?: string | undefined;
2210
+ line_range?: {
2211
+ start: number;
2212
+ end: number;
2213
+ } | undefined;
2214
+ attachment_id?: string | undefined;
2215
+ };
2216
+ summary: string;
2217
+ title: string;
2218
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2219
+ entities: string[];
2220
+ trigger?: string | undefined;
2221
+ }[];
2222
+ }, {
2223
+ source: {
2224
+ platform: string;
2225
+ channel: string;
2226
+ url?: string | null | undefined;
2227
+ file_path?: string | null | undefined;
2228
+ timestamp?: string | undefined;
2229
+ message_id?: string | null | undefined;
2230
+ thread_id?: string | null | undefined;
2231
+ line_range?: {
2232
+ start: number;
2233
+ end: number;
2234
+ } | undefined;
2235
+ attachment_id?: string | null | undefined;
2236
+ raw_hash?: string | undefined;
2237
+ quote?: string | undefined;
2238
+ };
2239
+ tasks: {
2240
+ source: {
2241
+ platform: string;
2242
+ channel: string;
2243
+ url?: string | null | undefined;
2244
+ file_path?: string | null | undefined;
2245
+ timestamp?: string | undefined;
2246
+ message_id?: string | null | undefined;
2247
+ thread_id?: string | null | undefined;
2248
+ line_range?: {
2249
+ start: number;
2250
+ end: number;
2251
+ } | undefined;
2252
+ attachment_id?: string | null | undefined;
2253
+ raw_hash?: string | undefined;
2254
+ quote?: string | undefined;
2255
+ };
2256
+ status: "open" | "in_progress" | "done" | "cancelled";
2257
+ title: string;
2258
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2259
+ project?: string | null | undefined;
2260
+ due_date?: string | null | undefined;
2261
+ valid_at?: string | null | undefined;
2262
+ invalid_at?: string | null | undefined;
2263
+ owner?: string | null | undefined;
2264
+ }[];
2265
+ decisions: {
2266
+ source: {
2267
+ platform: string;
2268
+ channel: string;
2269
+ url?: string | null | undefined;
2270
+ file_path?: string | null | undefined;
2271
+ timestamp?: string | undefined;
2272
+ message_id?: string | null | undefined;
2273
+ thread_id?: string | null | undefined;
2274
+ line_range?: {
2275
+ start: number;
2276
+ end: number;
2277
+ } | undefined;
2278
+ attachment_id?: string | null | undefined;
2279
+ raw_hash?: string | undefined;
2280
+ quote?: string | undefined;
2281
+ };
2282
+ summary: string;
2283
+ date: string;
2284
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2285
+ entities: string[];
2286
+ valid_at?: string | null | undefined;
2287
+ invalid_at?: string | null | undefined;
2288
+ reasoning?: string | null | undefined;
2289
+ alternatives?: string[] | undefined;
2290
+ }[];
2291
+ discoveries: {
2292
+ type: "procedure" | "pattern" | "insight" | "risk";
2293
+ source: {
2294
+ platform: string;
2295
+ channel: string;
2296
+ url?: string | null | undefined;
2297
+ file_path?: string | null | undefined;
2298
+ timestamp?: string | undefined;
2299
+ message_id?: string | null | undefined;
2300
+ thread_id?: string | null | undefined;
2301
+ line_range?: {
2302
+ start: number;
2303
+ end: number;
2304
+ } | undefined;
2305
+ attachment_id?: string | null | undefined;
2306
+ raw_hash?: string | undefined;
2307
+ quote?: string | undefined;
2308
+ };
2309
+ summary: string;
2310
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2311
+ entities: string[];
2312
+ detail?: string | undefined;
2313
+ }[];
2314
+ entities: {
2315
+ type: "person" | "project" | "organization" | "tool" | "concept";
2316
+ name: string;
2317
+ slug: string;
2318
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2319
+ context: string;
2320
+ }[];
2321
+ timeline: {
2322
+ source: {
2323
+ platform: string;
2324
+ channel: string;
2325
+ url?: string | null | undefined;
2326
+ file_path?: string | null | undefined;
2327
+ timestamp?: string | undefined;
2328
+ message_id?: string | null | undefined;
2329
+ thread_id?: string | null | undefined;
2330
+ line_range?: {
2331
+ start: number;
2332
+ end: number;
2333
+ } | undefined;
2334
+ attachment_id?: string | null | undefined;
2335
+ raw_hash?: string | undefined;
2336
+ quote?: string | undefined;
2337
+ };
2338
+ summary: string;
2339
+ date: string;
2340
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2341
+ entities: string[];
2342
+ }[];
2343
+ links: {
2344
+ type: "works_on" | "works_at" | "reports_to" | "collaborates" | "depends_on" | "mentions" | "custom";
2345
+ to: string;
2346
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2347
+ context: string;
2348
+ from: string;
2349
+ source?: {
2350
+ platform: string;
2351
+ channel: string;
2352
+ url?: string | null | undefined;
2353
+ file_path?: string | null | undefined;
2354
+ timestamp?: string | undefined;
2355
+ message_id?: string | null | undefined;
2356
+ thread_id?: string | null | undefined;
2357
+ line_range?: {
2358
+ start: number;
2359
+ end: number;
2360
+ } | undefined;
2361
+ attachment_id?: string | null | undefined;
2362
+ raw_hash?: string | undefined;
2363
+ quote?: string | undefined;
2364
+ } | undefined;
2365
+ }[];
2366
+ knowledge?: {
2367
+ content: string;
2368
+ source: {
2369
+ platform: string;
2370
+ channel: string;
2371
+ url?: string | null | undefined;
2372
+ file_path?: string | null | undefined;
2373
+ timestamp?: string | undefined;
2374
+ message_id?: string | null | undefined;
2375
+ thread_id?: string | null | undefined;
2376
+ line_range?: {
2377
+ start: number;
2378
+ end: number;
2379
+ } | undefined;
2380
+ attachment_id?: string | null | undefined;
2381
+ raw_hash?: string | undefined;
2382
+ quote?: string | undefined;
2383
+ };
2384
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2385
+ topic: string;
2386
+ source_type: "conversation" | "document" | "teaching";
2387
+ related_entities: string[];
2388
+ valid_at?: string | null | undefined;
2389
+ invalid_at?: string | null | undefined;
2390
+ }[] | undefined;
2391
+ preferences?: {
2392
+ source: {
2393
+ platform: string;
2394
+ channel: string;
2395
+ url?: string | null | undefined;
2396
+ file_path?: string | null | undefined;
2397
+ timestamp?: string | undefined;
2398
+ message_id?: string | null | undefined;
2399
+ thread_id?: string | null | undefined;
2400
+ line_range?: {
2401
+ start: number;
2402
+ end: number;
2403
+ } | undefined;
2404
+ attachment_id?: string | null | undefined;
2405
+ raw_hash?: string | undefined;
2406
+ quote?: string | undefined;
2407
+ };
2408
+ summary: string;
2409
+ category: "communication" | "tooling" | "scheduling" | "workflow" | "other";
2410
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2411
+ entities: string[];
2412
+ detail?: string | null | undefined;
2413
+ }[] | undefined;
2414
+ references?: {
2415
+ url: string;
2416
+ source: {
2417
+ platform: string;
2418
+ channel: string;
2419
+ url?: string | null | undefined;
2420
+ file_path?: string | null | undefined;
2421
+ timestamp?: string | undefined;
2422
+ message_id?: string | null | undefined;
2423
+ thread_id?: string | null | undefined;
2424
+ line_range?: {
2425
+ start: number;
2426
+ end: number;
2427
+ } | undefined;
2428
+ attachment_id?: string | null | undefined;
2429
+ raw_hash?: string | undefined;
2430
+ quote?: string | undefined;
2431
+ };
2432
+ summary: string;
2433
+ title: string;
2434
+ confidence: "direct" | "paraphrased" | "inferred" | "speculative";
2435
+ entities: string[];
2436
+ trigger?: string | null | undefined;
2437
+ }[] | undefined;
2438
+ }>;
2439
+ export declare const SignificanceVerdictSchema: z.ZodObject<{
2440
+ worth_processing: z.ZodBoolean;
2441
+ reason: z.ZodString;
2442
+ topics: z.ZodArray<z.ZodString, "many">;
2443
+ confidence: z.ZodNumber;
2444
+ }, "strip", z.ZodTypeAny, {
2445
+ confidence: number;
2446
+ worth_processing: boolean;
2447
+ reason: string;
2448
+ topics: string[];
2449
+ }, {
2450
+ confidence: number;
2451
+ worth_processing: boolean;
2452
+ reason: string;
2453
+ topics: string[];
2454
+ }>;
2455
+ /**
2456
+ * Parse and validate LLM output as ExtractionResult
2457
+ * @param raw - Raw JSON from LLM (unknown type)
2458
+ * @returns Validated ExtractionResult
2459
+ * @throws ZodError with clear field-level validation messages
2460
+ */
2461
+ export declare function parseExtractionResult(raw: unknown): ExtractionResult;
2462
+ /**
2463
+ * Parse and validate LLM output as SignificanceVerdict
2464
+ * @param raw - Raw JSON from LLM (unknown type)
2465
+ * @returns Validated SignificanceVerdict
2466
+ * @throws ZodError with clear field-level validation messages
2467
+ */
2468
+ export declare function parseSignificanceVerdict(raw: unknown): SignificanceVerdict;
2469
+ export {};
2470
+ //# sourceMappingURL=schemas.d.ts.map