@dxos/plugin-thread 0.8.2-main.f11618f → 0.8.2-staging.42af850

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 (400) hide show
  1. package/dist/lib/browser/ChannelContainer-LGYSQMC7.mjs +15 -0
  2. package/dist/lib/browser/ChatContainer-JWRI73OG.mjs +14 -0
  3. package/dist/lib/browser/app-graph-builder-K3CFBN7V.mjs +171 -0
  4. package/dist/lib/browser/app-graph-builder-K3CFBN7V.mjs.map +7 -0
  5. package/dist/lib/browser/call-manager-APQAZWHT.mjs +23 -0
  6. package/dist/lib/browser/call-manager-APQAZWHT.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-4H4A264L.mjs +1708 -0
  8. package/dist/lib/browser/chunk-4H4A264L.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-AYNXYEKP.mjs → chunk-5P5BH5GE.mjs} +57 -35
  10. package/dist/lib/browser/chunk-5P5BH5GE.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-5PGLGDIP.mjs +983 -0
  12. package/dist/lib/browser/chunk-5PGLGDIP.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-CF2MXRCH.mjs +21 -0
  14. package/dist/lib/browser/chunk-CF2MXRCH.mjs.map +7 -0
  15. package/dist/lib/browser/chunk-G3TS64FP.mjs +351 -0
  16. package/dist/lib/browser/chunk-G3TS64FP.mjs.map +7 -0
  17. package/dist/lib/browser/{chunk-WBJLUUOK.mjs → chunk-IIUTBDVB.mjs} +4 -4
  18. package/dist/lib/browser/chunk-IIUTBDVB.mjs.map +7 -0
  19. package/dist/lib/browser/chunk-JKQUJOTX.mjs +31 -0
  20. package/dist/lib/browser/chunk-JKQUJOTX.mjs.map +7 -0
  21. package/dist/lib/browser/chunk-KMVGJG23.mjs +545 -0
  22. package/dist/lib/browser/chunk-KMVGJG23.mjs.map +7 -0
  23. package/dist/lib/browser/{chunk-EP6MRLY7.mjs → chunk-R5MDLUPC.mjs} +5 -3
  24. package/dist/lib/browser/chunk-R5MDLUPC.mjs.map +7 -0
  25. package/dist/lib/browser/chunk-WDOQXTI2.mjs +126 -0
  26. package/dist/lib/browser/chunk-WDOQXTI2.mjs.map +7 -0
  27. package/dist/lib/browser/index.mjs +107 -41
  28. package/dist/lib/browser/index.mjs.map +4 -4
  29. package/dist/lib/browser/{intent-resolver-3UW6ROYT.mjs → intent-resolver-YUYZCTLF.mjs} +100 -72
  30. package/dist/lib/browser/intent-resolver-YUYZCTLF.mjs.map +7 -0
  31. package/dist/lib/browser/markdown-4EC3OCF2.mjs +169 -0
  32. package/dist/lib/browser/markdown-4EC3OCF2.mjs.map +7 -0
  33. package/dist/lib/browser/meta.json +1 -1
  34. package/dist/lib/browser/react-root-EECCWHCW.mjs +27 -0
  35. package/dist/lib/browser/react-root-EECCWHCW.mjs.map +7 -0
  36. package/dist/lib/browser/react-surface-5QLZAFDL.mjs +108 -0
  37. package/dist/lib/browser/react-surface-5QLZAFDL.mjs.map +7 -0
  38. package/dist/lib/browser/{settings-2VZ7S4SK.mjs → settings-KVBQQSO5.mjs} +3 -3
  39. package/dist/lib/browser/{state-KBGI3QTR.mjs → state-RKL5MSDP.mjs} +4 -4
  40. package/dist/lib/browser/{state-KBGI3QTR.mjs.map → state-RKL5MSDP.mjs.map} +3 -3
  41. package/dist/lib/browser/types/index.mjs +16 -0
  42. package/dist/lib/browser/types/index.mjs.map +7 -0
  43. package/dist/lib/node/ChannelContainer-5EKNEH56.cjs +36 -0
  44. package/dist/lib/node/ChannelContainer-5EKNEH56.cjs.map +7 -0
  45. package/dist/lib/node/ChatContainer-EE3FPSYO.cjs +35 -0
  46. package/dist/lib/node/ChatContainer-EE3FPSYO.cjs.map +7 -0
  47. package/dist/lib/node/app-graph-builder-IRE3GYKE.cjs +179 -0
  48. package/dist/lib/node/app-graph-builder-IRE3GYKE.cjs.map +7 -0
  49. package/dist/lib/node/call-manager-HV2XJW5O.cjs +37 -0
  50. package/dist/lib/node/call-manager-HV2XJW5O.cjs.map +7 -0
  51. package/dist/lib/node/chunk-44I33JDT.cjs +1731 -0
  52. package/dist/lib/node/chunk-44I33JDT.cjs.map +7 -0
  53. package/dist/lib/node/chunk-4B3PPXA6.cjs +371 -0
  54. package/dist/lib/node/chunk-4B3PPXA6.cjs.map +7 -0
  55. package/dist/lib/node/{chunk-NQ5DTPOY.cjs → chunk-4YSNVPWU.cjs} +10 -8
  56. package/dist/lib/node/chunk-4YSNVPWU.cjs.map +7 -0
  57. package/dist/lib/node/chunk-6B3M6XRE.cjs +984 -0
  58. package/dist/lib/node/chunk-6B3M6XRE.cjs.map +7 -0
  59. package/dist/lib/node/{chunk-W25MBII2.cjs → chunk-FUXJAVFZ.cjs} +50 -29
  60. package/dist/lib/node/chunk-FUXJAVFZ.cjs.map +7 -0
  61. package/dist/lib/node/{chunk-ONLWOUYZ.cjs → chunk-HLMCEE5K.cjs} +7 -7
  62. package/dist/lib/node/{chunk-ONLWOUYZ.cjs.map → chunk-HLMCEE5K.cjs.map} +2 -2
  63. package/dist/lib/node/chunk-JLHENFGK.cjs +549 -0
  64. package/dist/lib/node/chunk-JLHENFGK.cjs.map +7 -0
  65. package/dist/lib/node/chunk-LR5NENBE.cjs +54 -0
  66. package/dist/lib/node/chunk-LR5NENBE.cjs.map +7 -0
  67. package/dist/lib/node/chunk-TKHJVC2C.cjs +147 -0
  68. package/dist/lib/node/chunk-TKHJVC2C.cjs.map +7 -0
  69. package/dist/lib/node/{chunk-IX63EKGL.cjs → chunk-U7NOIXN6.cjs} +16 -10
  70. package/dist/lib/node/chunk-U7NOIXN6.cjs.map +7 -0
  71. package/dist/lib/node/index.cjs +142 -80
  72. package/dist/lib/node/index.cjs.map +4 -4
  73. package/dist/lib/node/{intent-resolver-DC6HDNTX.cjs → intent-resolver-MZ3HADNY.cjs} +108 -82
  74. package/dist/lib/node/intent-resolver-MZ3HADNY.cjs.map +7 -0
  75. package/dist/lib/node/markdown-NJDPXIKD.cjs +178 -0
  76. package/dist/lib/node/markdown-NJDPXIKD.cjs.map +7 -0
  77. package/dist/lib/node/meta.json +1 -1
  78. package/dist/lib/node/react-root-IAYQ2DBO.cjs +51 -0
  79. package/dist/lib/node/react-root-IAYQ2DBO.cjs.map +7 -0
  80. package/dist/lib/node/react-surface-AVC5VVIS.cjs +122 -0
  81. package/dist/lib/node/react-surface-AVC5VVIS.cjs.map +7 -0
  82. package/dist/lib/node/{settings-7MGTJ46L.cjs → settings-H45P5YO2.cjs} +8 -8
  83. package/dist/lib/node/{state-FOHMAVSU.cjs → state-IY5XX3H2.cjs} +8 -8
  84. package/dist/lib/node/{state-FOHMAVSU.cjs.map → state-IY5XX3H2.cjs.map} +3 -3
  85. package/dist/lib/node/{types.cjs → types/index.cjs} +12 -6
  86. package/dist/lib/node/types/index.cjs.map +7 -0
  87. package/dist/lib/node-esm/ChannelContainer-KFS2RWWW.mjs +16 -0
  88. package/dist/lib/node-esm/ChannelContainer-KFS2RWWW.mjs.map +7 -0
  89. package/dist/lib/node-esm/ChatContainer-UJYPQMLV.mjs +15 -0
  90. package/dist/lib/node-esm/ChatContainer-UJYPQMLV.mjs.map +7 -0
  91. package/dist/lib/node-esm/app-graph-builder-I5VMPLE4.mjs +172 -0
  92. package/dist/lib/node-esm/app-graph-builder-I5VMPLE4.mjs.map +7 -0
  93. package/dist/lib/node-esm/call-manager-UUYXLF4T.mjs +24 -0
  94. package/dist/lib/node-esm/call-manager-UUYXLF4T.mjs.map +7 -0
  95. package/dist/lib/node-esm/{chunk-42F2DTMM.mjs → chunk-ESQC6SYE.mjs} +4 -4
  96. package/dist/lib/node-esm/chunk-ESQC6SYE.mjs.map +7 -0
  97. package/dist/lib/node-esm/chunk-J323VQ4P.mjs +127 -0
  98. package/dist/lib/node-esm/chunk-J323VQ4P.mjs.map +7 -0
  99. package/dist/lib/node-esm/{chunk-WLY2HMDB.mjs → chunk-K4KAUOKT.mjs} +5 -3
  100. package/dist/lib/node-esm/chunk-K4KAUOKT.mjs.map +7 -0
  101. package/dist/lib/node-esm/chunk-MNJ3V4XM.mjs +546 -0
  102. package/dist/lib/node-esm/chunk-MNJ3V4XM.mjs.map +7 -0
  103. package/dist/lib/node-esm/{chunk-T6E5EY7Z.mjs → chunk-O3V45YJP.mjs} +57 -35
  104. package/dist/lib/node-esm/chunk-O3V45YJP.mjs.map +7 -0
  105. package/dist/lib/node-esm/chunk-ODUB4GAB.mjs +23 -0
  106. package/dist/lib/node-esm/chunk-ODUB4GAB.mjs.map +7 -0
  107. package/dist/lib/node-esm/chunk-PGRP3O4O.mjs +33 -0
  108. package/dist/lib/node-esm/chunk-PGRP3O4O.mjs.map +7 -0
  109. package/dist/lib/node-esm/chunk-POKXRTII.mjs +352 -0
  110. package/dist/lib/node-esm/chunk-POKXRTII.mjs.map +7 -0
  111. package/dist/lib/node-esm/chunk-WXNPD542.mjs +1710 -0
  112. package/dist/lib/node-esm/chunk-WXNPD542.mjs.map +7 -0
  113. package/dist/lib/node-esm/chunk-X6AUQDTE.mjs +984 -0
  114. package/dist/lib/node-esm/chunk-X6AUQDTE.mjs.map +7 -0
  115. package/dist/lib/node-esm/index.mjs +107 -41
  116. package/dist/lib/node-esm/index.mjs.map +4 -4
  117. package/dist/lib/node-esm/{intent-resolver-OAMDKGAA.mjs → intent-resolver-CU22OPAH.mjs} +100 -72
  118. package/dist/lib/node-esm/intent-resolver-CU22OPAH.mjs.map +7 -0
  119. package/dist/lib/node-esm/markdown-HRGGO7IA.mjs +170 -0
  120. package/dist/lib/node-esm/markdown-HRGGO7IA.mjs.map +7 -0
  121. package/dist/lib/node-esm/meta.json +1 -1
  122. package/dist/lib/node-esm/react-root-NQMUEI6Z.mjs +28 -0
  123. package/dist/lib/node-esm/react-root-NQMUEI6Z.mjs.map +7 -0
  124. package/dist/lib/node-esm/react-surface-Z4X5VLMY.mjs +109 -0
  125. package/dist/lib/node-esm/react-surface-Z4X5VLMY.mjs.map +7 -0
  126. package/dist/lib/node-esm/{settings-AJAZ3O47.mjs → settings-IJGUOU3F.mjs} +3 -3
  127. package/dist/lib/node-esm/{state-IRLEO2SB.mjs → state-6AUTNROZ.mjs} +4 -4
  128. package/dist/lib/node-esm/{state-IRLEO2SB.mjs.map → state-6AUTNROZ.mjs.map} +3 -3
  129. package/dist/lib/node-esm/types/index.mjs +17 -0
  130. package/dist/lib/node-esm/types/index.mjs.map +7 -0
  131. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  132. package/dist/types/src/calls/call-manager.d.ts +77 -0
  133. package/dist/types/src/calls/call-manager.d.ts.map +1 -0
  134. package/dist/types/src/calls/call-swarm-synchronizer.d.ts +66 -0
  135. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -0
  136. package/dist/types/src/calls/index.d.ts +7 -0
  137. package/dist/types/src/calls/index.d.ts.map +1 -0
  138. package/dist/types/src/calls/media-manager.d.ts +60 -0
  139. package/dist/types/src/calls/media-manager.d.ts.map +1 -0
  140. package/dist/types/src/calls/speaking-monitor.d.ts +24 -0
  141. package/dist/types/src/calls/speaking-monitor.d.ts.map +1 -0
  142. package/dist/types/src/calls/types.d.ts +45 -0
  143. package/dist/types/src/calls/types.d.ts.map +1 -0
  144. package/dist/types/src/calls/util/audio.d.ts +6 -0
  145. package/dist/types/src/calls/util/audio.d.ts.map +1 -0
  146. package/dist/types/src/calls/util/calls-service.d.ts +72 -0
  147. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -0
  148. package/dist/types/src/calls/util/history-cache.d.ts +11 -0
  149. package/dist/types/src/calls/util/history-cache.d.ts.map +1 -0
  150. package/dist/types/src/calls/util/index.d.ts +5 -0
  151. package/dist/types/src/calls/util/index.d.ts.map +1 -0
  152. package/dist/types/src/calls/util/media.d.ts +6 -0
  153. package/dist/types/src/calls/util/media.d.ts.map +1 -0
  154. package/dist/types/src/calls/util/stub-media-streams.d.ts +18 -0
  155. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -0
  156. package/dist/types/src/calls/util/task-scheduling.d.ts +17 -0
  157. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -0
  158. package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
  159. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  160. package/dist/types/src/capabilities/call-manager.d.ts +5 -0
  161. package/dist/types/src/capabilities/call-manager.d.ts.map +1 -0
  162. package/dist/types/src/capabilities/capabilities.d.ts +13 -1
  163. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  164. package/dist/types/src/capabilities/index.d.ts +8 -179
  165. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  166. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
  167. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  168. package/dist/types/src/capabilities/markdown.d.ts +2 -2
  169. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  170. package/dist/types/src/capabilities/react-root.d.ts +7 -0
  171. package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
  172. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  173. package/dist/types/src/components/Call/Call.d.ts +17 -0
  174. package/dist/types/src/components/Call/Call.d.ts.map +1 -0
  175. package/dist/types/src/components/Call/Toolbar.d.ts +16 -0
  176. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -0
  177. package/dist/types/src/components/Call/index.d.ts +3 -0
  178. package/dist/types/src/components/Call/index.d.ts.map +1 -0
  179. package/dist/types/src/components/CallDebugPanel.d.ts +8 -0
  180. package/dist/types/src/components/CallDebugPanel.d.ts.map +1 -0
  181. package/dist/types/src/components/CallSidebar.d.ts +4 -0
  182. package/dist/types/src/components/CallSidebar.d.ts.map +1 -0
  183. package/dist/types/src/components/ChannelContainer.d.ts +14 -0
  184. package/dist/types/src/components/ChannelContainer.d.ts.map +1 -0
  185. package/dist/types/src/components/ChannelContainer.stories.d.ts +10 -0
  186. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +1 -0
  187. package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
  188. package/dist/types/src/components/ChatContainer.d.ts +9 -7
  189. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  190. package/dist/types/src/components/CommentContainer.d.ts +11 -2
  191. package/dist/types/src/components/CommentContainer.d.ts.map +1 -1
  192. package/dist/types/src/components/Comments.stories.d.ts +1 -1
  193. package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
  194. package/dist/types/src/components/CommentsContainer.d.ts +5 -9
  195. package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
  196. package/dist/types/src/components/Lobby/Lobby.d.ts +15 -0
  197. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -0
  198. package/dist/types/src/components/Lobby/index.d.ts +2 -0
  199. package/dist/types/src/components/Lobby/index.d.ts.map +1 -0
  200. package/dist/types/src/components/Media/AudioStream.d.ts +6 -0
  201. package/dist/types/src/components/Media/AudioStream.d.ts.map +1 -0
  202. package/dist/types/src/components/Media/VideoObject.d.ts +15 -0
  203. package/dist/types/src/components/Media/VideoObject.d.ts.map +1 -0
  204. package/dist/types/src/components/Media/VideoObject.stories.d.ts +8 -0
  205. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -0
  206. package/dist/types/src/components/Media/index.d.ts +3 -0
  207. package/dist/types/src/components/Media/index.d.ts.map +1 -0
  208. package/dist/types/src/components/MessageContainer.d.ts +5 -4
  209. package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
  210. package/dist/types/src/components/Participant/Participant.d.ts +6 -0
  211. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -0
  212. package/dist/types/src/components/Participant/ParticipantGrid.d.ts +11 -0
  213. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -0
  214. package/dist/types/src/components/Participant/index.d.ts +3 -0
  215. package/dist/types/src/components/Participant/index.d.ts.map +1 -0
  216. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts +12 -0
  217. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts.map +1 -0
  218. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +10 -0
  219. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -0
  220. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts +32 -0
  221. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -0
  222. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +23 -0
  223. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -0
  224. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts +21 -0
  225. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -0
  226. package/dist/types/src/components/ResponsiveGrid/index.d.ts +4 -0
  227. package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +1 -0
  228. package/dist/types/src/components/ThreadComplementary.d.ts.map +1 -1
  229. package/dist/types/src/components/ThreadSettings.d.ts.map +1 -1
  230. package/dist/types/src/components/index.d.ts +5 -1
  231. package/dist/types/src/components/index.d.ts.map +1 -1
  232. package/dist/types/src/components/testing.d.ts +54 -119
  233. package/dist/types/src/components/testing.d.ts.map +1 -1
  234. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  235. package/dist/types/src/hooks/analytics.d.ts +2 -2
  236. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  237. package/dist/types/src/hooks/index.d.ts +2 -1
  238. package/dist/types/src/hooks/index.d.ts.map +1 -1
  239. package/dist/types/src/hooks/useDebugMode.d.ts +2 -0
  240. package/dist/types/src/hooks/useDebugMode.d.ts.map +1 -0
  241. package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
  242. package/dist/types/src/index.d.ts +1 -1
  243. package/dist/types/src/index.d.ts.map +1 -1
  244. package/dist/types/src/meta.d.ts.map +1 -1
  245. package/dist/types/src/peers.stories.d.ts +11 -0
  246. package/dist/types/src/peers.stories.d.ts.map +1 -0
  247. package/dist/types/src/testing/index.d.ts +2 -0
  248. package/dist/types/src/testing/index.d.ts.map +1 -0
  249. package/dist/types/src/testing/stories.d.ts +2 -0
  250. package/dist/types/src/testing/stories.d.ts.map +1 -0
  251. package/dist/types/src/translations.d.ts +35 -56
  252. package/dist/types/src/translations.d.ts.map +1 -1
  253. package/dist/types/src/types/index.d.ts +3 -0
  254. package/dist/types/src/types/index.d.ts.map +1 -0
  255. package/dist/types/src/types/schema.d.ts +317 -0
  256. package/dist/types/src/types/schema.d.ts.map +1 -0
  257. package/dist/types/src/types/types.d.ts +1015 -0
  258. package/dist/types/src/types/types.d.ts.map +1 -0
  259. package/dist/types/src/util.d.ts +2 -0
  260. package/dist/types/src/util.d.ts.map +1 -1
  261. package/dist/types/tsconfig.tsbuildinfo +1 -1
  262. package/package.json +60 -40
  263. package/src/ThreadPlugin.tsx +33 -14
  264. package/src/calls/call-manager.ts +242 -0
  265. package/src/calls/call-swarm-synchronizer.ts +350 -0
  266. package/src/calls/index.ts +10 -0
  267. package/src/calls/media-manager.ts +342 -0
  268. package/src/calls/speaking-monitor.ts +85 -0
  269. package/src/calls/types.ts +70 -0
  270. package/src/calls/util/audio.ts +58 -0
  271. package/src/calls/util/calls-service.ts +527 -0
  272. package/src/calls/util/history-cache.ts +27 -0
  273. package/src/calls/util/index.ts +8 -0
  274. package/src/calls/util/media.ts +52 -0
  275. package/src/calls/util/stub-media-streams.ts +73 -0
  276. package/src/calls/util/task-scheduling.ts +92 -0
  277. package/src/capabilities/app-graph-builder.ts +171 -25
  278. package/src/capabilities/call-manager.ts +19 -0
  279. package/src/capabilities/capabilities.ts +15 -1
  280. package/src/capabilities/index.ts +2 -0
  281. package/src/capabilities/intent-resolver.ts +76 -55
  282. package/src/capabilities/markdown.ts +54 -4
  283. package/src/capabilities/react-root.tsx +17 -0
  284. package/src/capabilities/react-surface.tsx +52 -27
  285. package/src/capabilities/state.ts +1 -1
  286. package/src/components/Call/Call.tsx +88 -0
  287. package/src/components/Call/Toolbar.tsx +182 -0
  288. package/src/components/Call/index.ts +6 -0
  289. package/src/components/CallDebugPanel.tsx +115 -0
  290. package/src/components/CallSidebar.tsx +17 -0
  291. package/src/components/ChannelContainer.stories.tsx +58 -0
  292. package/src/components/ChannelContainer.tsx +203 -0
  293. package/src/components/Chat.stories.tsx +9 -10
  294. package/src/components/ChatContainer.tsx +37 -25
  295. package/src/components/CommentContainer.tsx +56 -61
  296. package/src/components/Comments.stories.tsx +20 -16
  297. package/src/components/CommentsContainer.tsx +18 -28
  298. package/src/components/Lobby/Lobby.tsx +119 -0
  299. package/src/components/Lobby/index.ts +5 -0
  300. package/src/components/Media/AudioStream.tsx +67 -0
  301. package/src/components/Media/VideoObject.stories.tsx +52 -0
  302. package/src/components/Media/VideoObject.tsx +58 -0
  303. package/src/components/Media/index.ts +6 -0
  304. package/src/components/MessageContainer.tsx +31 -50
  305. package/src/components/Participant/Participant.tsx +57 -0
  306. package/src/components/Participant/ParticipantGrid.tsx +88 -0
  307. package/src/components/Participant/index.ts +6 -0
  308. package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +54 -0
  309. package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +31 -0
  310. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +156 -0
  311. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +341 -0
  312. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +131 -0
  313. package/src/components/ResponsiveGrid/index.ts +7 -0
  314. package/src/components/ThreadComplementary.tsx +37 -42
  315. package/src/components/index.ts +4 -0
  316. package/src/components/testing.ts +4 -3
  317. package/src/extensions/threads.ts +42 -24
  318. package/src/hooks/analytics.ts +6 -2
  319. package/src/hooks/index.ts +2 -1
  320. package/src/hooks/useDebugMode.ts +25 -0
  321. package/src/index.ts +1 -1
  322. package/src/meta.ts +4 -3
  323. package/src/peers.stories.tsx +189 -0
  324. package/src/testing/index.ts +5 -0
  325. package/src/testing/stories.ts +50 -0
  326. package/src/translations.ts +46 -5
  327. package/src/types/index.ts +6 -0
  328. package/src/types/schema.ts +29 -0
  329. package/src/types/types.ts +110 -0
  330. package/src/typings/peermetrics-webrtc-stats.d.ts +30 -0
  331. package/src/util.ts +12 -0
  332. package/dist/lib/browser/ChatContainer-WC6KQDDU.mjs +0 -138
  333. package/dist/lib/browser/ChatContainer-WC6KQDDU.mjs.map +0 -7
  334. package/dist/lib/browser/app-graph-builder-6W4UKJDI.mjs +0 -41
  335. package/dist/lib/browser/app-graph-builder-6W4UKJDI.mjs.map +0 -7
  336. package/dist/lib/browser/chunk-AYNXYEKP.mjs.map +0 -7
  337. package/dist/lib/browser/chunk-EP6MRLY7.mjs.map +0 -7
  338. package/dist/lib/browser/chunk-FY5OCUP6.mjs +0 -207
  339. package/dist/lib/browser/chunk-FY5OCUP6.mjs.map +0 -7
  340. package/dist/lib/browser/chunk-Q66FBBJD.mjs +0 -17
  341. package/dist/lib/browser/chunk-Q66FBBJD.mjs.map +0 -7
  342. package/dist/lib/browser/chunk-WBJLUUOK.mjs.map +0 -7
  343. package/dist/lib/browser/chunk-WOG72DWE.mjs +0 -93
  344. package/dist/lib/browser/chunk-WOG72DWE.mjs.map +0 -7
  345. package/dist/lib/browser/intent-resolver-3UW6ROYT.mjs.map +0 -7
  346. package/dist/lib/browser/markdown-7KXBXCUS.mjs +0 -111
  347. package/dist/lib/browser/markdown-7KXBXCUS.mjs.map +0 -7
  348. package/dist/lib/browser/react-surface-F2AIYIUH.mjs +0 -437
  349. package/dist/lib/browser/react-surface-F2AIYIUH.mjs.map +0 -7
  350. package/dist/lib/browser/types.mjs +0 -10
  351. package/dist/lib/node/ChatContainer-LVYQ67PJ.cjs +0 -163
  352. package/dist/lib/node/ChatContainer-LVYQ67PJ.cjs.map +0 -7
  353. package/dist/lib/node/app-graph-builder-HZNWT4QU.cjs +0 -57
  354. package/dist/lib/node/app-graph-builder-HZNWT4QU.cjs.map +0 -7
  355. package/dist/lib/node/chunk-46BSFPBV.cjs +0 -113
  356. package/dist/lib/node/chunk-46BSFPBV.cjs.map +0 -7
  357. package/dist/lib/node/chunk-IX63EKGL.cjs.map +0 -7
  358. package/dist/lib/node/chunk-NQ5DTPOY.cjs.map +0 -7
  359. package/dist/lib/node/chunk-RIYLEDQ7.cjs +0 -232
  360. package/dist/lib/node/chunk-RIYLEDQ7.cjs.map +0 -7
  361. package/dist/lib/node/chunk-W25MBII2.cjs.map +0 -7
  362. package/dist/lib/node/intent-resolver-DC6HDNTX.cjs.map +0 -7
  363. package/dist/lib/node/markdown-L2WMCQKM.cjs +0 -121
  364. package/dist/lib/node/markdown-L2WMCQKM.cjs.map +0 -7
  365. package/dist/lib/node/react-surface-GP5IH5LN.cjs +0 -439
  366. package/dist/lib/node/react-surface-GP5IH5LN.cjs.map +0 -7
  367. package/dist/lib/node/types.cjs.map +0 -7
  368. package/dist/lib/node-esm/ChatContainer-WMOPMK5H.mjs +0 -139
  369. package/dist/lib/node-esm/ChatContainer-WMOPMK5H.mjs.map +0 -7
  370. package/dist/lib/node-esm/app-graph-builder-M3KK5QJH.mjs +0 -42
  371. package/dist/lib/node-esm/app-graph-builder-M3KK5QJH.mjs.map +0 -7
  372. package/dist/lib/node-esm/chunk-42F2DTMM.mjs.map +0 -7
  373. package/dist/lib/node-esm/chunk-7DOPZH6Y.mjs +0 -208
  374. package/dist/lib/node-esm/chunk-7DOPZH6Y.mjs.map +0 -7
  375. package/dist/lib/node-esm/chunk-E446MGLP.mjs +0 -94
  376. package/dist/lib/node-esm/chunk-E446MGLP.mjs.map +0 -7
  377. package/dist/lib/node-esm/chunk-QUTIMZJ4.mjs +0 -19
  378. package/dist/lib/node-esm/chunk-QUTIMZJ4.mjs.map +0 -7
  379. package/dist/lib/node-esm/chunk-T6E5EY7Z.mjs.map +0 -7
  380. package/dist/lib/node-esm/chunk-WLY2HMDB.mjs.map +0 -7
  381. package/dist/lib/node-esm/intent-resolver-OAMDKGAA.mjs.map +0 -7
  382. package/dist/lib/node-esm/markdown-ZKU23UVD.mjs +0 -112
  383. package/dist/lib/node-esm/markdown-ZKU23UVD.mjs.map +0 -7
  384. package/dist/lib/node-esm/react-surface-45GRKLWG.mjs +0 -438
  385. package/dist/lib/node-esm/react-surface-45GRKLWG.mjs.map +0 -7
  386. package/dist/lib/node-esm/types.mjs +0 -11
  387. package/dist/types/src/components/types.d.ts +0 -28
  388. package/dist/types/src/components/types.d.ts.map +0 -1
  389. package/dist/types/src/events.d.ts +0 -4
  390. package/dist/types/src/events.d.ts.map +0 -1
  391. package/dist/types/src/types.d.ts +0 -231
  392. package/dist/types/src/types.d.ts.map +0 -1
  393. package/src/components/types.ts +0 -32
  394. package/src/events.ts +0 -11
  395. package/src/types.ts +0 -100
  396. /package/dist/lib/browser/{types.mjs.map → ChannelContainer-LGYSQMC7.mjs.map} +0 -0
  397. /package/dist/lib/{node-esm/types.mjs.map → browser/ChatContainer-JWRI73OG.mjs.map} +0 -0
  398. /package/dist/lib/browser/{settings-2VZ7S4SK.mjs.map → settings-KVBQQSO5.mjs.map} +0 -0
  399. /package/dist/lib/node/{settings-7MGTJ46L.cjs.map → settings-H45P5YO2.cjs.map} +0 -0
  400. /package/dist/lib/node-esm/{settings-AJAZ3O47.mjs.map → settings-IJGUOU3F.mjs.map} +0 -0
@@ -0,0 +1,1015 @@
1
+ import { Schema } from 'effect';
2
+ import { Type } from '@dxos/echo';
3
+ import { AnchoredTo } from '@dxos/schema';
4
+ import { ThreadType } from './schema';
5
+ export declare namespace ThreadAction {
6
+ const CreateChannel_base: Schema.TaggedClass<CreateChannel, "dxos.org/plugin/thread/action/create-channel", {
7
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel">;
8
+ } & {
9
+ input: Schema.Struct<{
10
+ spaceId: Schema.Schema<Type.SpaceId, string, never> & {
11
+ byteLength: number;
12
+ encode: (value: Uint8Array) => Type.SpaceId;
13
+ decode: (value: Type.SpaceId) => Uint8Array;
14
+ isValid: (value: string) => value is Type.SpaceId;
15
+ make: (value: string) => Type.SpaceId;
16
+ random: () => Type.SpaceId;
17
+ };
18
+ name: Schema.optional<typeof Schema.String>;
19
+ }>;
20
+ output: Schema.Struct<{
21
+ object: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
22
+ name: Schema.optional<typeof Schema.String>;
23
+ defaultThread: import("@dxos/echo-schema").Ref$<{
24
+ readonly id: string;
25
+ name?: string | undefined;
26
+ status?: "staged" | "active" | "resolved" | undefined;
27
+ messages: import("@dxos/echo-schema").Ref<{
28
+ readonly id: string;
29
+ created: string;
30
+ sender: {
31
+ name?: string | undefined;
32
+ email?: string | undefined;
33
+ contact?: import("@dxos/echo-schema").Ref<{
34
+ readonly id: string;
35
+ fields?: {
36
+ readonly value: string;
37
+ readonly label: string;
38
+ readonly category?: string | undefined;
39
+ }[] | undefined;
40
+ organization?: import("@dxos/echo-schema").Ref<{
41
+ readonly id: string;
42
+ description?: string | undefined;
43
+ name?: string | undefined;
44
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
45
+ image?: string | undefined;
46
+ website?: string | undefined;
47
+ }> | undefined;
48
+ image?: string | undefined;
49
+ fullName?: string | undefined;
50
+ preferredName?: string | undefined;
51
+ nickname?: string | undefined;
52
+ jobTitle?: string | undefined;
53
+ department?: string | undefined;
54
+ notes?: string | undefined;
55
+ emails?: {
56
+ readonly value: string;
57
+ readonly label?: string | undefined;
58
+ }[] | undefined;
59
+ identities?: {
60
+ readonly value: string;
61
+ readonly label?: string | undefined;
62
+ }[] | undefined;
63
+ phoneNumbers?: {
64
+ readonly value: string;
65
+ readonly label?: string | undefined;
66
+ }[] | undefined;
67
+ addresses?: {
68
+ readonly value: {
69
+ readonly street?: string | undefined;
70
+ readonly extended?: string | undefined;
71
+ readonly locality?: string | undefined;
72
+ readonly region?: string | undefined;
73
+ readonly postalCode?: string | undefined;
74
+ readonly postOfficeBoxNumber?: string | undefined;
75
+ readonly country?: string | undefined;
76
+ };
77
+ readonly label?: string | undefined;
78
+ }[] | undefined;
79
+ urls?: {
80
+ readonly value: string;
81
+ readonly label?: string | undefined;
82
+ }[] | undefined;
83
+ birthday?: string | undefined;
84
+ }> | undefined;
85
+ identityDid?: string | undefined;
86
+ identityKey?: string | undefined;
87
+ role?: "user" | "assistant" | undefined;
88
+ };
89
+ blocks: ({
90
+ pending?: boolean | undefined;
91
+ text: string;
92
+ type: "text";
93
+ disposition?: string | undefined;
94
+ } | {
95
+ pending?: boolean | undefined;
96
+ data: string;
97
+ type: "json";
98
+ disposition?: string | undefined;
99
+ } | {
100
+ pending?: boolean | undefined;
101
+ id?: string | undefined;
102
+ source?: {
103
+ data: string;
104
+ type: "base64";
105
+ mediaType: string;
106
+ } | {
107
+ url: string;
108
+ type: "http";
109
+ } | undefined;
110
+ type: "image";
111
+ } | {
112
+ pending?: boolean | undefined;
113
+ type: "reference";
114
+ reference: import("@dxos/echo-schema").Ref<Type.Expando>;
115
+ } | {
116
+ pending?: boolean | undefined;
117
+ text: string;
118
+ type: "transcription";
119
+ started: string;
120
+ })[];
121
+ properties?: {
122
+ [x: string]: any;
123
+ } | undefined;
124
+ }>[];
125
+ }>;
126
+ threads: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
127
+ readonly id: string;
128
+ name?: string | undefined;
129
+ status?: "staged" | "active" | "resolved" | undefined;
130
+ messages: import("@dxos/echo-schema").Ref<{
131
+ readonly id: string;
132
+ created: string;
133
+ sender: {
134
+ name?: string | undefined;
135
+ email?: string | undefined;
136
+ contact?: import("@dxos/echo-schema").Ref<{
137
+ readonly id: string;
138
+ fields?: {
139
+ readonly value: string;
140
+ readonly label: string;
141
+ readonly category?: string | undefined;
142
+ }[] | undefined;
143
+ organization?: import("@dxos/echo-schema").Ref<{
144
+ readonly id: string;
145
+ description?: string | undefined;
146
+ name?: string | undefined;
147
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
148
+ image?: string | undefined;
149
+ website?: string | undefined;
150
+ }> | undefined;
151
+ image?: string | undefined;
152
+ fullName?: string | undefined;
153
+ preferredName?: string | undefined;
154
+ nickname?: string | undefined;
155
+ jobTitle?: string | undefined;
156
+ department?: string | undefined;
157
+ notes?: string | undefined;
158
+ emails?: {
159
+ readonly value: string;
160
+ readonly label?: string | undefined;
161
+ }[] | undefined;
162
+ identities?: {
163
+ readonly value: string;
164
+ readonly label?: string | undefined;
165
+ }[] | undefined;
166
+ phoneNumbers?: {
167
+ readonly value: string;
168
+ readonly label?: string | undefined;
169
+ }[] | undefined;
170
+ addresses?: {
171
+ readonly value: {
172
+ readonly street?: string | undefined;
173
+ readonly extended?: string | undefined;
174
+ readonly locality?: string | undefined;
175
+ readonly region?: string | undefined;
176
+ readonly postalCode?: string | undefined;
177
+ readonly postOfficeBoxNumber?: string | undefined;
178
+ readonly country?: string | undefined;
179
+ };
180
+ readonly label?: string | undefined;
181
+ }[] | undefined;
182
+ urls?: {
183
+ readonly value: string;
184
+ readonly label?: string | undefined;
185
+ }[] | undefined;
186
+ birthday?: string | undefined;
187
+ }> | undefined;
188
+ identityDid?: string | undefined;
189
+ identityKey?: string | undefined;
190
+ role?: "user" | "assistant" | undefined;
191
+ };
192
+ blocks: ({
193
+ pending?: boolean | undefined;
194
+ text: string;
195
+ type: "text";
196
+ disposition?: string | undefined;
197
+ } | {
198
+ pending?: boolean | undefined;
199
+ data: string;
200
+ type: "json";
201
+ disposition?: string | undefined;
202
+ } | {
203
+ pending?: boolean | undefined;
204
+ id?: string | undefined;
205
+ source?: {
206
+ data: string;
207
+ type: "base64";
208
+ mediaType: string;
209
+ } | {
210
+ url: string;
211
+ type: "http";
212
+ } | undefined;
213
+ type: "image";
214
+ } | {
215
+ pending?: boolean | undefined;
216
+ type: "reference";
217
+ reference: import("@dxos/echo-schema").Ref<Type.Expando>;
218
+ } | {
219
+ pending?: boolean | undefined;
220
+ text: string;
221
+ type: "transcription";
222
+ started: string;
223
+ })[];
224
+ properties?: {
225
+ [x: string]: any;
226
+ } | undefined;
227
+ }>[];
228
+ }>>>;
229
+ }>, {}>;
230
+ }>;
231
+ }>;
232
+ export class CreateChannel extends CreateChannel_base {
233
+ }
234
+ const CreateChannelThread_base: Schema.TaggedClass<CreateChannelThread, "dxos.org/plugin/thread/action/create-channel-thread", {
235
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel-thread">;
236
+ } & {
237
+ input: Schema.Struct<{
238
+ channel: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
239
+ name: Schema.optional<typeof Schema.String>;
240
+ defaultThread: import("@dxos/echo-schema").Ref$<{
241
+ readonly id: string;
242
+ name?: string | undefined;
243
+ status?: "staged" | "active" | "resolved" | undefined;
244
+ messages: import("@dxos/echo-schema").Ref<{
245
+ readonly id: string;
246
+ created: string;
247
+ sender: {
248
+ name?: string | undefined;
249
+ email?: string | undefined;
250
+ contact?: import("@dxos/echo-schema").Ref<{
251
+ readonly id: string;
252
+ fields?: {
253
+ readonly value: string;
254
+ readonly label: string;
255
+ readonly category?: string | undefined;
256
+ }[] | undefined;
257
+ organization?: import("@dxos/echo-schema").Ref<{
258
+ readonly id: string;
259
+ description?: string | undefined;
260
+ name?: string | undefined;
261
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
262
+ image?: string | undefined;
263
+ website?: string | undefined;
264
+ }> | undefined;
265
+ image?: string | undefined;
266
+ fullName?: string | undefined;
267
+ preferredName?: string | undefined;
268
+ nickname?: string | undefined;
269
+ jobTitle?: string | undefined;
270
+ department?: string | undefined;
271
+ notes?: string | undefined;
272
+ emails?: {
273
+ readonly value: string;
274
+ readonly label?: string | undefined;
275
+ }[] | undefined;
276
+ identities?: {
277
+ readonly value: string;
278
+ readonly label?: string | undefined;
279
+ }[] | undefined;
280
+ phoneNumbers?: {
281
+ readonly value: string;
282
+ readonly label?: string | undefined;
283
+ }[] | undefined;
284
+ addresses?: {
285
+ readonly value: {
286
+ readonly street?: string | undefined;
287
+ readonly extended?: string | undefined;
288
+ readonly locality?: string | undefined;
289
+ readonly region?: string | undefined;
290
+ readonly postalCode?: string | undefined;
291
+ readonly postOfficeBoxNumber?: string | undefined;
292
+ readonly country?: string | undefined;
293
+ };
294
+ readonly label?: string | undefined;
295
+ }[] | undefined;
296
+ urls?: {
297
+ readonly value: string;
298
+ readonly label?: string | undefined;
299
+ }[] | undefined;
300
+ birthday?: string | undefined;
301
+ }> | undefined;
302
+ identityDid?: string | undefined;
303
+ identityKey?: string | undefined;
304
+ role?: "user" | "assistant" | undefined;
305
+ };
306
+ blocks: ({
307
+ pending?: boolean | undefined;
308
+ text: string;
309
+ type: "text";
310
+ disposition?: string | undefined;
311
+ } | {
312
+ pending?: boolean | undefined;
313
+ data: string;
314
+ type: "json";
315
+ disposition?: string | undefined;
316
+ } | {
317
+ pending?: boolean | undefined;
318
+ id?: string | undefined;
319
+ source?: {
320
+ data: string;
321
+ type: "base64";
322
+ mediaType: string;
323
+ } | {
324
+ url: string;
325
+ type: "http";
326
+ } | undefined;
327
+ type: "image";
328
+ } | {
329
+ pending?: boolean | undefined;
330
+ type: "reference";
331
+ reference: import("@dxos/echo-schema").Ref<Type.Expando>;
332
+ } | {
333
+ pending?: boolean | undefined;
334
+ text: string;
335
+ type: "transcription";
336
+ started: string;
337
+ })[];
338
+ properties?: {
339
+ [x: string]: any;
340
+ } | undefined;
341
+ }>[];
342
+ }>;
343
+ threads: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
344
+ readonly id: string;
345
+ name?: string | undefined;
346
+ status?: "staged" | "active" | "resolved" | undefined;
347
+ messages: import("@dxos/echo-schema").Ref<{
348
+ readonly id: string;
349
+ created: string;
350
+ sender: {
351
+ name?: string | undefined;
352
+ email?: string | undefined;
353
+ contact?: import("@dxos/echo-schema").Ref<{
354
+ readonly id: string;
355
+ fields?: {
356
+ readonly value: string;
357
+ readonly label: string;
358
+ readonly category?: string | undefined;
359
+ }[] | undefined;
360
+ organization?: import("@dxos/echo-schema").Ref<{
361
+ readonly id: string;
362
+ description?: string | undefined;
363
+ name?: string | undefined;
364
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
365
+ image?: string | undefined;
366
+ website?: string | undefined;
367
+ }> | undefined;
368
+ image?: string | undefined;
369
+ fullName?: string | undefined;
370
+ preferredName?: string | undefined;
371
+ nickname?: string | undefined;
372
+ jobTitle?: string | undefined;
373
+ department?: string | undefined;
374
+ notes?: string | undefined;
375
+ emails?: {
376
+ readonly value: string;
377
+ readonly label?: string | undefined;
378
+ }[] | undefined;
379
+ identities?: {
380
+ readonly value: string;
381
+ readonly label?: string | undefined;
382
+ }[] | undefined;
383
+ phoneNumbers?: {
384
+ readonly value: string;
385
+ readonly label?: string | undefined;
386
+ }[] | undefined;
387
+ addresses?: {
388
+ readonly value: {
389
+ readonly street?: string | undefined;
390
+ readonly extended?: string | undefined;
391
+ readonly locality?: string | undefined;
392
+ readonly region?: string | undefined;
393
+ readonly postalCode?: string | undefined;
394
+ readonly postOfficeBoxNumber?: string | undefined;
395
+ readonly country?: string | undefined;
396
+ };
397
+ readonly label?: string | undefined;
398
+ }[] | undefined;
399
+ urls?: {
400
+ readonly value: string;
401
+ readonly label?: string | undefined;
402
+ }[] | undefined;
403
+ birthday?: string | undefined;
404
+ }> | undefined;
405
+ identityDid?: string | undefined;
406
+ identityKey?: string | undefined;
407
+ role?: "user" | "assistant" | undefined;
408
+ };
409
+ blocks: ({
410
+ pending?: boolean | undefined;
411
+ text: string;
412
+ type: "text";
413
+ disposition?: string | undefined;
414
+ } | {
415
+ pending?: boolean | undefined;
416
+ data: string;
417
+ type: "json";
418
+ disposition?: string | undefined;
419
+ } | {
420
+ pending?: boolean | undefined;
421
+ id?: string | undefined;
422
+ source?: {
423
+ data: string;
424
+ type: "base64";
425
+ mediaType: string;
426
+ } | {
427
+ url: string;
428
+ type: "http";
429
+ } | undefined;
430
+ type: "image";
431
+ } | {
432
+ pending?: boolean | undefined;
433
+ type: "reference";
434
+ reference: import("@dxos/echo-schema").Ref<Type.Expando>;
435
+ } | {
436
+ pending?: boolean | undefined;
437
+ text: string;
438
+ type: "transcription";
439
+ started: string;
440
+ })[];
441
+ properties?: {
442
+ [x: string]: any;
443
+ } | undefined;
444
+ }>[];
445
+ }>>>;
446
+ }>, {}>;
447
+ }>;
448
+ output: Schema.Struct<{
449
+ object: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
450
+ name: Schema.optional<typeof Schema.String>;
451
+ status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
452
+ messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
453
+ readonly id: string;
454
+ created: string;
455
+ sender: {
456
+ name?: string | undefined;
457
+ email?: string | undefined;
458
+ contact?: import("@dxos/echo-schema").Ref<{
459
+ readonly id: string;
460
+ fields?: {
461
+ readonly value: string;
462
+ readonly label: string;
463
+ readonly category?: string | undefined;
464
+ }[] | undefined;
465
+ organization?: import("@dxos/echo-schema").Ref<{
466
+ readonly id: string;
467
+ description?: string | undefined;
468
+ name?: string | undefined;
469
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
470
+ image?: string | undefined;
471
+ website?: string | undefined;
472
+ }> | undefined;
473
+ image?: string | undefined;
474
+ fullName?: string | undefined;
475
+ preferredName?: string | undefined;
476
+ nickname?: string | undefined;
477
+ jobTitle?: string | undefined;
478
+ department?: string | undefined;
479
+ notes?: string | undefined;
480
+ emails?: {
481
+ readonly value: string;
482
+ readonly label?: string | undefined;
483
+ }[] | undefined;
484
+ identities?: {
485
+ readonly value: string;
486
+ readonly label?: string | undefined;
487
+ }[] | undefined;
488
+ phoneNumbers?: {
489
+ readonly value: string;
490
+ readonly label?: string | undefined;
491
+ }[] | undefined;
492
+ addresses?: {
493
+ readonly value: {
494
+ readonly street?: string | undefined;
495
+ readonly extended?: string | undefined;
496
+ readonly locality?: string | undefined;
497
+ readonly region?: string | undefined;
498
+ readonly postalCode?: string | undefined;
499
+ readonly postOfficeBoxNumber?: string | undefined;
500
+ readonly country?: string | undefined;
501
+ };
502
+ readonly label?: string | undefined;
503
+ }[] | undefined;
504
+ urls?: {
505
+ readonly value: string;
506
+ readonly label?: string | undefined;
507
+ }[] | undefined;
508
+ birthday?: string | undefined;
509
+ }> | undefined;
510
+ identityDid?: string | undefined;
511
+ identityKey?: string | undefined;
512
+ role?: "user" | "assistant" | undefined;
513
+ };
514
+ blocks: ({
515
+ pending?: boolean | undefined;
516
+ text: string;
517
+ type: "text";
518
+ disposition?: string | undefined;
519
+ } | {
520
+ pending?: boolean | undefined;
521
+ data: string;
522
+ type: "json";
523
+ disposition?: string | undefined;
524
+ } | {
525
+ pending?: boolean | undefined;
526
+ id?: string | undefined;
527
+ source?: {
528
+ data: string;
529
+ type: "base64";
530
+ mediaType: string;
531
+ } | {
532
+ url: string;
533
+ type: "http";
534
+ } | undefined;
535
+ type: "image";
536
+ } | {
537
+ pending?: boolean | undefined;
538
+ type: "reference";
539
+ reference: import("@dxos/echo-schema").Ref<Type.Expando>;
540
+ } | {
541
+ pending?: boolean | undefined;
542
+ text: string;
543
+ type: "transcription";
544
+ started: string;
545
+ })[];
546
+ properties?: {
547
+ [x: string]: any;
548
+ } | undefined;
549
+ }>>>;
550
+ }>, {}>;
551
+ }>;
552
+ }>;
553
+ export class CreateChannelThread extends CreateChannelThread_base {
554
+ }
555
+ const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/thread/action/create", {
556
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create">;
557
+ } & {
558
+ input: Schema.Struct<{
559
+ name: Schema.optional<typeof Schema.String>;
560
+ anchor: Schema.optional<typeof Schema.String>;
561
+ subject: Schema.Schema<any, any, never>;
562
+ }>;
563
+ output: typeof Schema.Void;
564
+ }>;
565
+ export class Create extends Create_base {
566
+ }
567
+ const Delete_base: Schema.TaggedClass<Delete, "dxos.org/plugin/thread/action/delete", {
568
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete">;
569
+ } & {
570
+ input: Schema.Struct<{
571
+ anchor: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
572
+ id: import("@dxos/keys").ObjectIdClass;
573
+ anchor: Schema.optional<typeof Schema.String>;
574
+ }>, import("@dxos/echo-schema").RelationSourceTargetRefs<Type.Expando, Type.Expando>>;
575
+ subject: Schema.Schema<any, any, never>;
576
+ thread: Schema.optional<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
577
+ name: Schema.optional<typeof Schema.String>;
578
+ status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
579
+ messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
580
+ readonly id: string;
581
+ created: string;
582
+ sender: {
583
+ name?: string | undefined;
584
+ email?: string | undefined;
585
+ contact?: import("@dxos/echo-schema").Ref<{
586
+ readonly id: string;
587
+ fields?: {
588
+ readonly value: string;
589
+ readonly label: string;
590
+ readonly category?: string | undefined;
591
+ }[] | undefined;
592
+ organization?: import("@dxos/echo-schema").Ref<{
593
+ readonly id: string;
594
+ description?: string | undefined;
595
+ name?: string | undefined;
596
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
597
+ image?: string | undefined;
598
+ website?: string | undefined;
599
+ }> | undefined;
600
+ image?: string | undefined;
601
+ fullName?: string | undefined;
602
+ preferredName?: string | undefined;
603
+ nickname?: string | undefined;
604
+ jobTitle?: string | undefined;
605
+ department?: string | undefined;
606
+ notes?: string | undefined;
607
+ emails?: {
608
+ readonly value: string;
609
+ readonly label?: string | undefined;
610
+ }[] | undefined;
611
+ identities?: {
612
+ readonly value: string;
613
+ readonly label?: string | undefined;
614
+ }[] | undefined;
615
+ phoneNumbers?: {
616
+ readonly value: string;
617
+ readonly label?: string | undefined;
618
+ }[] | undefined;
619
+ addresses?: {
620
+ readonly value: {
621
+ readonly street?: string | undefined;
622
+ readonly extended?: string | undefined;
623
+ readonly locality?: string | undefined;
624
+ readonly region?: string | undefined;
625
+ readonly postalCode?: string | undefined;
626
+ readonly postOfficeBoxNumber?: string | undefined;
627
+ readonly country?: string | undefined;
628
+ };
629
+ readonly label?: string | undefined;
630
+ }[] | undefined;
631
+ urls?: {
632
+ readonly value: string;
633
+ readonly label?: string | undefined;
634
+ }[] | undefined;
635
+ birthday?: string | undefined;
636
+ }> | undefined;
637
+ identityDid?: string | undefined;
638
+ identityKey?: string | undefined;
639
+ role?: "user" | "assistant" | undefined;
640
+ };
641
+ blocks: ({
642
+ pending?: boolean | undefined;
643
+ text: string;
644
+ type: "text";
645
+ disposition?: string | undefined;
646
+ } | {
647
+ pending?: boolean | undefined;
648
+ data: string;
649
+ type: "json";
650
+ disposition?: string | undefined;
651
+ } | {
652
+ pending?: boolean | undefined;
653
+ id?: string | undefined;
654
+ source?: {
655
+ data: string;
656
+ type: "base64";
657
+ mediaType: string;
658
+ } | {
659
+ url: string;
660
+ type: "http";
661
+ } | undefined;
662
+ type: "image";
663
+ } | {
664
+ pending?: boolean | undefined;
665
+ type: "reference";
666
+ reference: import("@dxos/echo-schema").Ref<Type.Expando>;
667
+ } | {
668
+ pending?: boolean | undefined;
669
+ text: string;
670
+ type: "transcription";
671
+ started: string;
672
+ })[];
673
+ properties?: {
674
+ [x: string]: any;
675
+ } | undefined;
676
+ }>>>;
677
+ }>, {}>>;
678
+ }>;
679
+ output: typeof Schema.Void;
680
+ }>;
681
+ export class Delete extends Delete_base {
682
+ }
683
+ const Select_base: Schema.TaggedClass<Select, "dxos.org/plugin/thread/action/select", {
684
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/select">;
685
+ } & {
686
+ input: Schema.Struct<{
687
+ current: typeof Schema.String;
688
+ }>;
689
+ output: typeof Schema.Void;
690
+ }>;
691
+ export class Select extends Select_base {
692
+ }
693
+ const ToggleResolved_base: Schema.TaggedClass<ToggleResolved, "dxos.org/plugin/thread/action/toggle-resolved", {
694
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/toggle-resolved">;
695
+ } & {
696
+ input: Schema.Struct<{
697
+ thread: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
698
+ name: Schema.optional<typeof Schema.String>;
699
+ status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
700
+ messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
701
+ readonly id: string;
702
+ created: string;
703
+ sender: {
704
+ name?: string | undefined;
705
+ email?: string | undefined;
706
+ contact?: import("@dxos/echo-schema").Ref<{
707
+ readonly id: string;
708
+ fields?: {
709
+ readonly value: string;
710
+ readonly label: string;
711
+ readonly category?: string | undefined;
712
+ }[] | undefined;
713
+ organization?: import("@dxos/echo-schema").Ref<{
714
+ readonly id: string;
715
+ description?: string | undefined;
716
+ name?: string | undefined;
717
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
718
+ image?: string | undefined;
719
+ website?: string | undefined;
720
+ }> | undefined;
721
+ image?: string | undefined;
722
+ fullName?: string | undefined;
723
+ preferredName?: string | undefined;
724
+ nickname?: string | undefined;
725
+ jobTitle?: string | undefined;
726
+ department?: string | undefined;
727
+ notes?: string | undefined;
728
+ emails?: {
729
+ readonly value: string;
730
+ readonly label?: string | undefined;
731
+ }[] | undefined;
732
+ identities?: {
733
+ readonly value: string;
734
+ readonly label?: string | undefined;
735
+ }[] | undefined;
736
+ phoneNumbers?: {
737
+ readonly value: string;
738
+ readonly label?: string | undefined;
739
+ }[] | undefined;
740
+ addresses?: {
741
+ readonly value: {
742
+ readonly street?: string | undefined;
743
+ readonly extended?: string | undefined;
744
+ readonly locality?: string | undefined;
745
+ readonly region?: string | undefined;
746
+ readonly postalCode?: string | undefined;
747
+ readonly postOfficeBoxNumber?: string | undefined;
748
+ readonly country?: string | undefined;
749
+ };
750
+ readonly label?: string | undefined;
751
+ }[] | undefined;
752
+ urls?: {
753
+ readonly value: string;
754
+ readonly label?: string | undefined;
755
+ }[] | undefined;
756
+ birthday?: string | undefined;
757
+ }> | undefined;
758
+ identityDid?: string | undefined;
759
+ identityKey?: string | undefined;
760
+ role?: "user" | "assistant" | undefined;
761
+ };
762
+ blocks: ({
763
+ pending?: boolean | undefined;
764
+ text: string;
765
+ type: "text";
766
+ disposition?: string | undefined;
767
+ } | {
768
+ pending?: boolean | undefined;
769
+ data: string;
770
+ type: "json";
771
+ disposition?: string | undefined;
772
+ } | {
773
+ pending?: boolean | undefined;
774
+ id?: string | undefined;
775
+ source?: {
776
+ data: string;
777
+ type: "base64";
778
+ mediaType: string;
779
+ } | {
780
+ url: string;
781
+ type: "http";
782
+ } | undefined;
783
+ type: "image";
784
+ } | {
785
+ pending?: boolean | undefined;
786
+ type: "reference";
787
+ reference: import("@dxos/echo-schema").Ref<Type.Expando>;
788
+ } | {
789
+ pending?: boolean | undefined;
790
+ text: string;
791
+ type: "transcription";
792
+ started: string;
793
+ })[];
794
+ properties?: {
795
+ [x: string]: any;
796
+ } | undefined;
797
+ }>>>;
798
+ }>, {}>;
799
+ }>;
800
+ output: typeof Schema.Void;
801
+ }>;
802
+ export class ToggleResolved extends ToggleResolved_base {
803
+ }
804
+ const AddMessage_base: Schema.TaggedClass<AddMessage, "dxos.org/plugin/thread/action/add-message", {
805
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/add-message">;
806
+ } & {
807
+ input: Schema.Struct<{
808
+ subject: Schema.Schema<any, any, never>;
809
+ anchor: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
810
+ id: import("@dxos/keys").ObjectIdClass;
811
+ anchor: Schema.optional<typeof Schema.String>;
812
+ }>, import("@dxos/echo-schema").RelationSourceTargetRefs<Type.Expando, Type.Expando>>;
813
+ sender: Schema.Struct<{
814
+ contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
815
+ readonly id: string;
816
+ fields?: {
817
+ readonly value: string;
818
+ readonly label: string;
819
+ readonly category?: string | undefined;
820
+ }[] | undefined;
821
+ organization?: import("@dxos/echo-schema").Ref<{
822
+ readonly id: string;
823
+ description?: string | undefined;
824
+ name?: string | undefined;
825
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
826
+ image?: string | undefined;
827
+ website?: string | undefined;
828
+ }> | undefined;
829
+ image?: string | undefined;
830
+ fullName?: string | undefined;
831
+ preferredName?: string | undefined;
832
+ nickname?: string | undefined;
833
+ jobTitle?: string | undefined;
834
+ department?: string | undefined;
835
+ notes?: string | undefined;
836
+ emails?: {
837
+ readonly value: string;
838
+ readonly label?: string | undefined;
839
+ }[] | undefined;
840
+ identities?: {
841
+ readonly value: string;
842
+ readonly label?: string | undefined;
843
+ }[] | undefined;
844
+ phoneNumbers?: {
845
+ readonly value: string;
846
+ readonly label?: string | undefined;
847
+ }[] | undefined;
848
+ addresses?: {
849
+ readonly value: {
850
+ readonly street?: string | undefined;
851
+ readonly extended?: string | undefined;
852
+ readonly locality?: string | undefined;
853
+ readonly region?: string | undefined;
854
+ readonly postalCode?: string | undefined;
855
+ readonly postOfficeBoxNumber?: string | undefined;
856
+ readonly country?: string | undefined;
857
+ };
858
+ readonly label?: string | undefined;
859
+ }[] | undefined;
860
+ urls?: {
861
+ readonly value: string;
862
+ readonly label?: string | undefined;
863
+ }[] | undefined;
864
+ birthday?: string | undefined;
865
+ }>>;
866
+ identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
867
+ identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
868
+ email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
869
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
870
+ role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
871
+ }>;
872
+ text: typeof Schema.String;
873
+ }>;
874
+ output: typeof Schema.Void;
875
+ }>;
876
+ export class AddMessage extends AddMessage_base {
877
+ }
878
+ const DeleteMessage_base: Schema.TaggedClass<DeleteMessage, "dxos.org/plugin/thread/action/delete-message", {
879
+ readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete-message">;
880
+ } & {
881
+ input: Schema.Struct<{
882
+ anchor: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
883
+ id: import("@dxos/keys").ObjectIdClass;
884
+ anchor: Schema.optional<typeof Schema.String>;
885
+ }>, import("@dxos/echo-schema").RelationSourceTargetRefs<Type.Expando, Type.Expando>>;
886
+ subject: Schema.Schema<any, any, never>;
887
+ messageId: typeof Schema.String;
888
+ message: Schema.optional<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
889
+ id: import("@dxos/keys").ObjectIdClass;
890
+ created: import("effect/Schema").SchemaClass<string, string, never>;
891
+ sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
892
+ contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
893
+ readonly id: string;
894
+ fields?: {
895
+ readonly value: string;
896
+ readonly label: string;
897
+ readonly category?: string | undefined;
898
+ }[] | undefined;
899
+ organization?: import("@dxos/echo-schema").Ref<{
900
+ readonly id: string;
901
+ description?: string | undefined;
902
+ name?: string | undefined;
903
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
904
+ image?: string | undefined;
905
+ website?: string | undefined;
906
+ }> | undefined;
907
+ image?: string | undefined;
908
+ fullName?: string | undefined;
909
+ preferredName?: string | undefined;
910
+ nickname?: string | undefined;
911
+ jobTitle?: string | undefined;
912
+ department?: string | undefined;
913
+ notes?: string | undefined;
914
+ emails?: {
915
+ readonly value: string;
916
+ readonly label?: string | undefined;
917
+ }[] | undefined;
918
+ identities?: {
919
+ readonly value: string;
920
+ readonly label?: string | undefined;
921
+ }[] | undefined;
922
+ phoneNumbers?: {
923
+ readonly value: string;
924
+ readonly label?: string | undefined;
925
+ }[] | undefined;
926
+ addresses?: {
927
+ readonly value: {
928
+ readonly street?: string | undefined;
929
+ readonly extended?: string | undefined;
930
+ readonly locality?: string | undefined;
931
+ readonly region?: string | undefined;
932
+ readonly postalCode?: string | undefined;
933
+ readonly postOfficeBoxNumber?: string | undefined;
934
+ readonly country?: string | undefined;
935
+ };
936
+ readonly label?: string | undefined;
937
+ }[] | undefined;
938
+ urls?: {
939
+ readonly value: string;
940
+ readonly label?: string | undefined;
941
+ }[] | undefined;
942
+ birthday?: string | undefined;
943
+ }>>;
944
+ identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
945
+ identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
946
+ email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
947
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
948
+ role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
949
+ }>>;
950
+ blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
951
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
952
+ }>, import("effect/Schema").Struct<{
953
+ type: import("effect/Schema").Literal<["text"]>;
954
+ disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
955
+ text: typeof import("effect/Schema").String;
956
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
957
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
958
+ }>, import("effect/Schema").Struct<{
959
+ type: import("effect/Schema").Literal<["json"]>;
960
+ disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
961
+ data: typeof import("effect/Schema").String;
962
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
963
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
964
+ }>, import("effect/Schema").Struct<{
965
+ type: import("effect/Schema").Literal<["image"]>;
966
+ id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
967
+ source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
968
+ type: import("effect/Schema").Literal<["base64"]>;
969
+ mediaType: typeof import("effect/Schema").String;
970
+ data: typeof import("effect/Schema").String;
971
+ }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
972
+ type: import("effect/Schema").Literal<["http"]>;
973
+ url: typeof import("effect/Schema").String;
974
+ }>>]>>;
975
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
976
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
977
+ }>, import("effect/Schema").Struct<{
978
+ type: import("effect/Schema").Literal<["reference"]>;
979
+ reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
980
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
981
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
982
+ }>, import("effect/Schema").Struct<{
983
+ type: import("effect/Schema").Literal<["transcription"]>;
984
+ started: typeof import("effect/Schema").String;
985
+ text: typeof import("effect/Schema").String;
986
+ }>>>]>>>;
987
+ properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
988
+ }>, {}>>;
989
+ messageIndex: Schema.optional<typeof Schema.Number>;
990
+ }>;
991
+ output: typeof Schema.Void;
992
+ }>;
993
+ export class DeleteMessage extends DeleteMessage_base {
994
+ }
995
+ export {};
996
+ }
997
+ export declare const ThreadSettingsSchema: Schema.mutable<Schema.Struct<{}>>;
998
+ export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
999
+ export interface ThreadModel {
1000
+ root: ThreadType;
1001
+ }
1002
+ type SubjectId = string;
1003
+ export type ViewState = {
1004
+ showResolvedThreads: boolean;
1005
+ };
1006
+ export type ViewStore = Record<SubjectId, ViewState>;
1007
+ export type ThreadState = {
1008
+ /** Object toolbar state. */
1009
+ toolbar: Record<string, boolean>;
1010
+ /** In-memory draft threads. */
1011
+ drafts: Record<string, AnchoredTo[]>;
1012
+ current?: string | undefined;
1013
+ };
1014
+ export {};
1015
+ //# sourceMappingURL=types.d.ts.map