@futdevpro/nts-dynamo 1.14.28 → 1.14.31

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 (287) hide show
  1. package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-chunk-data.service.d.ts → data-services/oai-doc-chunk-data.service.d.ts} +4 -4
  2. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-chunk-data.service.d.ts.map +1 -0
  3. package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-chunk-data.service.js → data-services/oai-doc-chunk-data.service.js} +4 -4
  4. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-chunk-data.service.js.map +1 -0
  5. package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-page.data-service.d.ts → data-services/oai-doc-page.data-service.d.ts} +5 -5
  6. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-page.data-service.d.ts.map +1 -0
  7. package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-page.data-service.js → data-services/oai-doc-page.data-service.js} +3 -3
  8. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-page.data-service.js.map +1 -0
  9. package/build/_modules/ai/_modules/open-ai/_services/{oai-document.data-service.d.ts → data-services/oai-document.data-service.d.ts} +5 -5
  10. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-document.data-service.d.ts.map +1 -0
  11. package/build/_modules/ai/_modules/open-ai/_services/{oai-document.data-service.js → data-services/oai-document.data-service.js} +3 -3
  12. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-document.data-service.js.map +1 -0
  13. package/build/_modules/ai/_modules/open-ai/_services/{oai-vector-data.service.d.ts → data-services/oai-vector-data.service.d.ts} +2 -2
  14. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-vector-data.service.d.ts.map +1 -0
  15. package/build/_modules/ai/_modules/open-ai/_services/{oai-vector-data.service.js → data-services/oai-vector-data.service.js} +3 -3
  16. package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-vector-data.service.js.map +1 -0
  17. package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.d.ts +9 -1
  18. package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.d.ts.map +1 -1
  19. package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.js +14 -1
  20. package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.js.map +1 -1
  21. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts +49 -3
  22. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +1 -1
  23. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js +72 -2
  24. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +1 -1
  25. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts +61 -6
  26. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
  27. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js +207 -16
  28. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
  29. package/build/_modules/ai/_modules/open-ai/index.d.ts +4 -4
  30. package/build/_modules/ai/_modules/open-ai/index.d.ts.map +1 -1
  31. package/build/_modules/ai/_modules/open-ai/index.js +6 -5
  32. package/build/_modules/ai/_modules/open-ai/index.js.map +1 -1
  33. package/build/_modules/ai/_services/ai-llm.service-base.d.ts +0 -2
  34. package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -1
  35. package/build/_modules/ai/_services/ai-provider.service-base.d.ts +2 -1
  36. package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -1
  37. package/build/_modules/ai/_services/ai-provider.service-base.js +2 -1
  38. package/build/_modules/ai/_services/ai-provider.service-base.js.map +1 -1
  39. package/build/_modules/assistant/_collections/ass.util.d.ts +2 -2
  40. package/build/_modules/assistant/_collections/ass.util.d.ts.map +1 -1
  41. package/build/_modules/assistant/_services/ass-io.control-service.d.ts +5 -9
  42. package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -1
  43. package/build/_modules/assistant/_services/ass-io.control-service.js +9 -10
  44. package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -1
  45. package/build/_modules/assistant/_services/ass-main.control-service.d.ts +26 -10
  46. package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -1
  47. package/build/_modules/assistant/_services/ass-main.control-service.js +49 -4
  48. package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -1
  49. package/build/_modules/assistant/index.d.ts +1 -1
  50. package/build/_modules/assistant/index.d.ts.map +1 -1
  51. package/build/_modules/assistant/index.js +1 -1
  52. package/build/_modules/assistant/index.js.map +1 -1
  53. package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts +17 -0
  54. package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts.map +1 -0
  55. package/build/_modules/bot/_models/{bot-message.interface.js → bot-channel-wrapper.interface.js} +1 -1
  56. package/build/_modules/bot/_models/bot-channel-wrapper.interface.js.map +1 -0
  57. package/build/_modules/bot/_models/bot-command.interface.d.ts +2 -2
  58. package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -1
  59. package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +1 -1
  60. package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -1
  61. package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts +16 -13
  62. package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts.map +1 -1
  63. package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts +17 -0
  64. package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts.map +1 -0
  65. package/build/_modules/bot/_models/{bot-channel.interface.js → bot-user-wrapper.interface.js} +1 -1
  66. package/build/_modules/bot/_models/bot-user-wrapper.interface.js.map +1 -0
  67. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts +0 -7
  68. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts.map +1 -1
  69. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js +10 -2
  70. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js.map +1 -1
  71. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts +67 -0
  72. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts.map +1 -0
  73. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js +391 -0
  74. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js.map +1 -0
  75. package/build/_modules/bot/_modules/discord-bot/index.d.ts +1 -4
  76. package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -1
  77. package/build/_modules/bot/_modules/discord-bot/index.js +2 -5
  78. package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -1
  79. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts +3 -3
  80. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts.map +1 -1
  81. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js +2 -2
  82. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js.map +1 -1
  83. package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts +6 -6
  84. package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts.map +1 -1
  85. package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts +59 -0
  86. package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts.map +1 -0
  87. package/build/_modules/bot/_modules/dynamo-bot/_services/{dyb-messaging-provider.service.js → dyb-messaging-provider.control-service.js} +130 -108
  88. package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.js.map +1 -0
  89. package/build/_modules/bot/_modules/dynamo-bot/index.d.ts +1 -2
  90. package/build/_modules/bot/_modules/dynamo-bot/index.d.ts.map +1 -1
  91. package/build/_modules/bot/_modules/dynamo-bot/index.js +1 -2
  92. package/build/_modules/bot/_modules/dynamo-bot/index.js.map +1 -1
  93. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts +6 -6
  94. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts.map +1 -1
  95. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts +55 -0
  96. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts.map +1 -0
  97. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js +132 -0
  98. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js.map +1 -0
  99. package/build/_modules/bot/_modules/slack-bot/index.d.ts +1 -2
  100. package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -1
  101. package/build/_modules/bot/_modules/slack-bot/index.js +1 -3
  102. package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -1
  103. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts +6 -6
  104. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts.map +1 -1
  105. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts +55 -0
  106. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts.map +1 -0
  107. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js +132 -0
  108. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js.map +1 -0
  109. package/build/_modules/bot/_modules/teams-bot/index.d.ts +1 -2
  110. package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -1
  111. package/build/_modules/bot/_modules/teams-bot/index.js +1 -3
  112. package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -1
  113. package/build/_modules/bot/_services/bot-commands.control-service.d.ts +8 -11
  114. package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -1
  115. package/build/_modules/bot/_services/bot-commands.control-service.js +60 -15
  116. package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -1
  117. package/build/_modules/bot/_services/bot-io.control-service.d.ts +16 -17
  118. package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -1
  119. package/build/_modules/bot/_services/bot-io.control-service.js +60 -51
  120. package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -1
  121. package/build/_modules/bot/_services/bot-main.control-service.d.ts +17 -37
  122. package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -1
  123. package/build/_modules/bot/_services/bot-main.control-service.js +107 -263
  124. package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -1
  125. package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts +70 -0
  126. package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts.map +1 -0
  127. package/build/_modules/bot/_services/bot-messaging-provider.service-base.js +16 -0
  128. package/build/_modules/bot/_services/bot-messaging-provider.service-base.js.map +1 -0
  129. package/build/_modules/bot/_services/bot-routines.control-service.d.ts +6 -9
  130. package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -1
  131. package/build/_modules/bot/_services/bot-routines.control-service.js +29 -9
  132. package/build/_modules/bot/_services/bot-routines.control-service.js.map +1 -1
  133. package/build/_modules/bot/index.d.ts +3 -7
  134. package/build/_modules/bot/index.d.ts.map +1 -1
  135. package/build/_modules/bot/index.js +9 -7
  136. package/build/_modules/bot/index.js.map +1 -1
  137. package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts +1 -1
  138. package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts.map +1 -1
  139. package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js +1 -1
  140. package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js.map +1 -1
  141. package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts.map +1 -1
  142. package/build/_modules/messaging/_collections/msg-global-settings.const.js +0 -5
  143. package/build/_modules/messaging/_collections/msg-global-settings.const.js.map +1 -1
  144. package/build/_modules/messaging/_collections/msg.util.d.ts +2 -2
  145. package/build/_modules/messaging/_collections/msg.util.d.ts.map +1 -1
  146. package/build/_modules/messaging/_collections/msg.util.js.map +1 -1
  147. package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts +0 -9
  148. package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts.map +1 -1
  149. package/build/_modules/messaging/_services/msg-integration.control-service.d.ts +0 -25
  150. package/build/_modules/messaging/_services/msg-integration.control-service.d.ts.map +1 -1
  151. package/build/_modules/messaging/_services/msg-integration.control-service.js +180 -125
  152. package/build/_modules/messaging/_services/msg-integration.control-service.js.map +1 -1
  153. package/build/_modules/messaging/index.d.ts +0 -1
  154. package/build/_modules/messaging/index.d.ts.map +1 -1
  155. package/build/_modules/messaging/index.js +1 -1
  156. package/build/_modules/messaging/index.js.map +1 -1
  157. package/package.json +1 -1
  158. package/src/_modules/ai/_modules/open-ai/_services/{oai-doc-chunk-data.service.ts → data-services/oai-doc-chunk-data.service.ts} +8 -8
  159. package/src/_modules/ai/_modules/open-ai/_services/{oai-doc-page.data-service.ts → data-services/oai-doc-page.data-service.ts} +8 -8
  160. package/src/_modules/ai/_modules/open-ai/_services/{oai-document.data-service.ts → data-services/oai-document.data-service.ts} +7 -7
  161. package/src/_modules/ai/_modules/open-ai/_services/{oai-vector-data.service.ts → data-services/oai-vector-data.service.ts} +4 -4
  162. package/src/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.ts +18 -2
  163. package/src/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.ts +84 -3
  164. package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +243 -8
  165. package/src/_modules/ai/_modules/open-ai/index.ts +6 -5
  166. package/src/_modules/ai/_services/ai-llm.service-base.ts +2 -2
  167. package/src/_modules/ai/_services/ai-provider.service-base.ts +2 -1
  168. package/src/_modules/assistant/_collections/ass.util.ts +2 -2
  169. package/src/_modules/assistant/_services/ass-io.control-service.ts +17 -48
  170. package/src/_modules/assistant/_services/ass-main.control-service.ts +83 -32
  171. package/src/_modules/assistant/index.ts +1 -1
  172. package/src/_modules/bot/_models/bot-channel-wrapper.interface.ts +24 -0
  173. package/src/_modules/bot/_models/bot-command.interface.ts +2 -2
  174. package/src/_modules/bot/_models/bot-global-settings.interface.ts +1 -1
  175. package/src/_modules/bot/_models/bot-message-wrapper.interface.ts +18 -18
  176. package/src/_modules/bot/_models/bot-user-wrapper.interface.ts +35 -0
  177. package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +8 -7
  178. package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.ts +521 -0
  179. package/src/_modules/bot/_modules/discord-bot/index.ts +2 -5
  180. package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts +8 -5
  181. package/src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts +6 -6
  182. package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts +431 -0
  183. package/src/_modules/bot/_modules/dynamo-bot/index.ts +1 -2
  184. package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +6 -6
  185. package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.ts +186 -0
  186. package/src/_modules/bot/_modules/slack-bot/index.ts +1 -3
  187. package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +6 -6
  188. package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.ts +186 -0
  189. package/src/_modules/bot/_modules/teams-bot/index.ts +1 -4
  190. package/src/_modules/bot/_services/bot-commands.control-service.ts +64 -34
  191. package/src/_modules/bot/_services/bot-io.control-service.ts +86 -95
  192. package/src/_modules/bot/_services/bot-main.control-service.ts +249 -240
  193. package/src/_modules/bot/_services/bot-messaging-provider.service-base.ts +152 -0
  194. package/src/_modules/bot/_services/bot-routines.control-service.ts +39 -44
  195. package/src/_modules/bot/index.ts +9 -7
  196. package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +1 -1
  197. package/src/_modules/messaging/README.md +2 -7
  198. package/src/_modules/messaging/_collections/msg-global-settings.const.ts +0 -6
  199. package/src/_modules/messaging/_collections/msg.util.ts +2 -2
  200. package/src/_modules/messaging/_models/msg-global-settings.interface.ts +0 -12
  201. package/src/_modules/messaging/_services/msg-integration.control-service.ts +180 -179
  202. package/src/_modules/messaging/index.ts +1 -1
  203. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts.map +0 -1
  204. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js.map +0 -1
  205. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts.map +0 -1
  206. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js.map +0 -1
  207. package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts.map +0 -1
  208. package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.map +0 -1
  209. package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.d.ts.map +0 -1
  210. package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js.map +0 -1
  211. package/build/_modules/assistant/_services/ass.service-base.d.ts +0 -33
  212. package/build/_modules/assistant/_services/ass.service-base.d.ts.map +0 -1
  213. package/build/_modules/assistant/_services/ass.service-base.js +0 -58
  214. package/build/_modules/assistant/_services/ass.service-base.js.map +0 -1
  215. package/build/_modules/bot/_collections/bot-operations.util.d.ts +0 -21
  216. package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +0 -1
  217. package/build/_modules/bot/_collections/bot-operations.util.js +0 -74
  218. package/build/_modules/bot/_collections/bot-operations.util.js.map +0 -1
  219. package/build/_modules/bot/_models/bot-channel.interface.d.ts +0 -8
  220. package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +0 -1
  221. package/build/_modules/bot/_models/bot-channel.interface.js.map +0 -1
  222. package/build/_modules/bot/_models/bot-message.interface.d.ts +0 -15
  223. package/build/_modules/bot/_models/bot-message.interface.d.ts.map +0 -1
  224. package/build/_modules/bot/_models/bot-message.interface.js.map +0 -1
  225. package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts +0 -68
  226. package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts.map +0 -1
  227. package/build/_modules/bot/_models/bot-messaging-provider.interface.js +0 -3
  228. package/build/_modules/bot/_models/bot-messaging-provider.interface.js.map +0 -1
  229. package/build/_modules/bot/_models/bot-user.interface.d.ts +0 -8
  230. package/build/_modules/bot/_models/bot-user.interface.d.ts.map +0 -1
  231. package/build/_modules/bot/_models/bot-user.interface.js +0 -3
  232. package/build/_modules/bot/_models/bot-user.interface.js.map +0 -1
  233. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +0 -11
  234. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +0 -1
  235. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js +0 -13
  236. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js.map +0 -1
  237. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +0 -5
  238. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +0 -1
  239. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js +0 -19
  240. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +0 -1
  241. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts +0 -56
  242. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts.map +0 -1
  243. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js +0 -379
  244. package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js.map +0 -1
  245. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts +0 -5
  246. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts.map +0 -1
  247. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js +0 -26
  248. package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js.map +0 -1
  249. package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts +0 -55
  250. package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts.map +0 -1
  251. package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.js.map +0 -1
  252. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +0 -11
  253. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +0 -1
  254. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js +0 -13
  255. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js.map +0 -1
  256. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts +0 -41
  257. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts.map +0 -1
  258. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js +0 -119
  259. package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js.map +0 -1
  260. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +0 -11
  261. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +0 -1
  262. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js +0 -13
  263. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js.map +0 -1
  264. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts +0 -41
  265. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts.map +0 -1
  266. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js +0 -119
  267. package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js.map +0 -1
  268. package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts +0 -6
  269. package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts.map +0 -1
  270. package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js +0 -47
  271. package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js.map +0 -1
  272. package/src/_modules/assistant/_services/ass.service-base.ts +0 -100
  273. package/src/_modules/bot/_collections/bot-operations.util.ts +0 -149
  274. package/src/_modules/bot/_models/bot-channel.interface.ts +0 -7
  275. package/src/_modules/bot/_models/bot-message.interface.ts +0 -14
  276. package/src/_modules/bot/_models/bot-messaging-provider.interface.ts +0 -88
  277. package/src/_modules/bot/_models/bot-user.interface.ts +0 -7
  278. package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +0 -18
  279. package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +0 -20
  280. package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.ts +0 -475
  281. package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.ts +0 -26
  282. package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.ts +0 -403
  283. package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +0 -18
  284. package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.ts +0 -156
  285. package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +0 -18
  286. package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.ts +0 -156
  287. package/src/_modules/bot/_services/bot-messaging-provider-factory.service.ts +0 -56
@@ -1,119 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DyNTS_SlB_MessagingProvider = void 0;
4
- const bot_message_provider_enum_1 = require("../../../_enums/bot-message-provider.enum");
5
- class DyNTS_SlB_MessagingProvider {
6
- isInitialized = false;
7
- config;
8
- // Event handlers
9
- messageHandlers = [];
10
- readyHandlers = [];
11
- errorHandlers = [];
12
- async initialize(config) {
13
- this.config = config;
14
- if (config.messageProvider !== bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.slack) {
15
- throw new Error(`Invalid provider type: ${config.messageProvider}. Expected 'slack'`);
16
- }
17
- if (!config.slack) {
18
- throw new Error('Slack configuration is required');
19
- }
20
- this.isInitialized = true;
21
- // TODO: Initialize Slack client
22
- }
23
- async login(token) {
24
- if (!this.isInitialized) {
25
- throw new Error('Provider not initialized. Call initialize() first.');
26
- }
27
- // TODO: Implement Slack login
28
- throw new Error('Slack provider not yet implemented');
29
- }
30
- // Channel operations
31
- async getChannelByName(name) {
32
- throw new Error('Slack provider not yet implemented');
33
- }
34
- async sendMessageToChannelByName(channelName, message) {
35
- throw new Error('Slack provider not yet implemented');
36
- }
37
- async getMessagesFromChannelByChannelName(channelName, limit) {
38
- throw new Error('Slack provider not yet implemented');
39
- }
40
- async getLastMessageInChannel(channelName) {
41
- throw new Error('Slack provider not yet implemented');
42
- }
43
- async clearChannel(channelId) {
44
- throw new Error('Slack provider not yet implemented');
45
- }
46
- // Message operations
47
- async sendMessage(channelId, content) {
48
- throw new Error('Slack provider not yet implemented');
49
- }
50
- async replyToMessage(messageId, channelId, content) {
51
- throw new Error('Slack provider not yet implemented');
52
- }
53
- async sendTyping(channelId) {
54
- throw new Error('Slack provider not yet implemented');
55
- }
56
- async fetchMessages(channelId, limit) {
57
- throw new Error('Slack provider not yet implemented');
58
- }
59
- async fetchAllMessagesWithPaging(channelId, maxFetch) {
60
- throw new Error('Slack provider not yet implemented');
61
- }
62
- async deleteMessage(messageId, channelId) {
63
- throw new Error('Slack provider not yet implemented');
64
- }
65
- // User operations
66
- async getUserByName(username) {
67
- throw new Error('Slack provider not yet implemented');
68
- }
69
- getUserMention(userId) {
70
- return `<@${userId}>`;
71
- }
72
- async readMembersInChannel(channelName) {
73
- throw new Error('Slack provider not yet implemented');
74
- }
75
- async readMemberNamesInChannel(channelName) {
76
- throw new Error('Slack provider not yet implemented');
77
- }
78
- // Advanced message queries
79
- async getLastMessageSentBy(channelName, username) {
80
- throw new Error('Slack provider not yet implemented');
81
- }
82
- async getLastMentionOf(channelName, username) {
83
- throw new Error('Slack provider not yet implemented');
84
- }
85
- async readLastMessageDatesByMembers(channelName, memberNames) {
86
- throw new Error('Slack provider not yet implemented');
87
- }
88
- async readLastMessageWithMemberNamePingInIt(channelName, users) {
89
- throw new Error('Slack provider not yet implemented');
90
- }
91
- // Event binding
92
- onMessage(handler) {
93
- this.messageHandlers.push(handler);
94
- }
95
- onReady(handler) {
96
- this.readyHandlers.push(handler);
97
- }
98
- onError(handler) {
99
- this.errorHandlers.push(handler);
100
- }
101
- // Metadata
102
- getBotId() {
103
- return 'slack-bot-stub';
104
- }
105
- getBotDisplayName() {
106
- return 'Slack Bot (Stub)';
107
- }
108
- getProviderName() {
109
- return 'slack';
110
- }
111
- getProviderId() {
112
- return this.config?.providerId || this.getProviderName();
113
- }
114
- isReady() {
115
- return this.isInitialized;
116
- }
117
- }
118
- exports.DyNTS_SlB_MessagingProvider = DyNTS_SlB_MessagingProvider;
119
- //# sourceMappingURL=slb-messaging-provider.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slb-messaging-provider.service.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.ts"],"names":[],"mappings":";;;AAGA,yFAA6F;AAG7F,MAAa,2BAA2B;IAK9B,aAAa,GAAY,KAAK,CAAC;IAC/B,MAAM,CAAqC;IAEnD,iBAAiB;IACT,eAAe,GAAgE,EAAE,CAAC;IAClF,aAAa,GAAsB,EAAE,CAAC;IACtC,aAAa,GAAkC,EAAE,CAAC;IAE1D,KAAK,CAAC,UAAU,CAAC,MAA0C;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,MAAM,CAAC,eAAe,KAAK,4DAAgC,CAAC,KAAK,EAAE,CAAC;YACtE,MAAM,IAAI,KAAK,CAAC,0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AC,WAAmB,EAAE,KAAuB;QACtF,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IAED,gBAAgB;IAChB,SAAS,CAAC,OAA6D;QACrE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,CAAC,OAAmB;QACzB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,CAAC,OAA+B;QACrC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,WAAW;IACX,QAAQ;QACN,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,iBAAiB;QACf,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,eAAe;QACb,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,MAAM,EAAE,UAAU,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3D,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;CACF;AArJD,kEAqJC"}
@@ -1,11 +0,0 @@
1
- import { DyNTS_Bot_Operations_Util } from '../../../_collections/bot-operations.util';
2
- import { DyNTS_TeB_Message, DyNTS_TeB_Channel, DyNTS_TeB_User } from '../_models/teb-platform.types';
3
- import { DyNTS_TeB_MessagingProvider } from '../_services/teb-messaging-provider.service';
4
- /**
5
- * Teams Bot Operations Utility
6
- *
7
- * Platform-specific implementation of bot operations for Teams
8
- */
9
- export declare class DyNTS_TeB_Operations_Util extends DyNTS_Bot_Operations_Util<DyNTS_TeB_Channel, DyNTS_TeB_Message, DyNTS_TeB_User, DyNTS_TeB_MessagingProvider> {
10
- }
11
- //# sourceMappingURL=teb-operations.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"teb-operations.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAE1F;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,yBAAyB,CACtE,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,2BAA2B,CAC5B;CAGA"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DyNTS_TeB_Operations_Util = void 0;
4
- const bot_operations_util_1 = require("../../../_collections/bot-operations.util");
5
- /**
6
- * Teams Bot Operations Utility
7
- *
8
- * Platform-specific implementation of bot operations for Teams
9
- */
10
- class DyNTS_TeB_Operations_Util extends bot_operations_util_1.DyNTS_Bot_Operations_Util {
11
- }
12
- exports.DyNTS_TeB_Operations_Util = DyNTS_TeB_Operations_Util;
13
- //# sourceMappingURL=teb-operations.util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"teb-operations.util.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts"],"names":[],"mappings":";;;AAAA,mFAAsF;AAItF;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,+CAK9C;CAGA;AARD,8DAQC"}
@@ -1,41 +0,0 @@
1
- import { DyNTS_Bot_MessagingProvider, DyNTS_Bot_MessagingProvider_Config } from '../../../_models/bot-messaging-provider.interface';
2
- import { DyNTS_Bot_LastMessageDate } from '../../../_models/bot-last-message-date.interface';
3
- import { DyNTS_Bot_LastMentionDate } from '../../../_models/bot-last-mention-date.interface';
4
- import { DyNTS_TeB_Message, DyNTS_TeB_Channel, DyNTS_TeB_User } from '../_models/teb-platform.types';
5
- export declare class DyNTS_TeB_MessagingProvider implements DyNTS_Bot_MessagingProvider<DyNTS_TeB_Channel, DyNTS_TeB_Message, DyNTS_TeB_User> {
6
- private isInitialized;
7
- private config;
8
- private messageHandlers;
9
- private readyHandlers;
10
- private errorHandlers;
11
- initialize(config: DyNTS_Bot_MessagingProvider_Config): Promise<void>;
12
- login(token: string): Promise<void>;
13
- getChannelByName(name: string): Promise<DyNTS_TeB_Channel>;
14
- sendMessageToChannelByName(channelName: string, message: string): Promise<DyNTS_TeB_Message>;
15
- getMessagesFromChannelByChannelName(channelName: string, limit?: number): Promise<DyNTS_TeB_Message[]>;
16
- getLastMessageInChannel(channelName: string): Promise<DyNTS_TeB_Message>;
17
- clearChannel(channelId: string): Promise<void>;
18
- sendMessage(channelId: string, content: string): Promise<DyNTS_TeB_Message>;
19
- replyToMessage(messageId: string, channelId: string, content: string): Promise<DyNTS_TeB_Message>;
20
- sendTyping(channelId: string): Promise<void>;
21
- fetchMessages(channelId: string, limit: number): Promise<DyNTS_TeB_Message[]>;
22
- fetchAllMessagesWithPaging(channelId: string, maxFetch?: number): Promise<DyNTS_TeB_Message[]>;
23
- deleteMessage(messageId: string, channelId: string): Promise<void>;
24
- getUserByName(username: string): Promise<DyNTS_TeB_User>;
25
- getUserMention(userId: string): string;
26
- readMembersInChannel(channelName: string): Promise<DyNTS_TeB_User[]>;
27
- readMemberNamesInChannel(channelName: string): Promise<string[]>;
28
- getLastMessageSentBy(channelName: string, username: string): Promise<DyNTS_TeB_Message>;
29
- getLastMentionOf(channelName: string, username: string): Promise<DyNTS_TeB_Message>;
30
- readLastMessageDatesByMembers(channelName: string, memberNames: string[]): Promise<DyNTS_Bot_LastMessageDate[]>;
31
- readLastMessageWithMemberNamePingInIt(channelName: string, users: DyNTS_TeB_User[]): Promise<DyNTS_Bot_LastMentionDate[]>;
32
- onMessage(handler: (message: DyNTS_TeB_Message, issuer: string) => void): void;
33
- onReady(handler: () => void): void;
34
- onError(handler: (error: Error) => void): void;
35
- getBotId(): string;
36
- getBotDisplayName(): string;
37
- getProviderName(): string;
38
- getProviderId(): string;
39
- isReady(): boolean;
40
- }
41
- //# sourceMappingURL=teb-messaging-provider.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"teb-messaging-provider.service.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AACpI,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAErG,qBAAa,2BAA4B,YAAW,2BAA2B,CAC7E,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CACf;IACC,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,MAAM,CAAqC;IAGnD,OAAO,CAAC,eAAe,CAAmE;IAC1F,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,aAAa,CAAqC;IAEpD,UAAU,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,IAAI,CAAC;IAerE,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IASnC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI1D,0BAA0B,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI5F,mCAAmC,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAItG,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIxE,YAAY,CAAC,SAAS,EAAE,MAA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AK,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAK/H,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAI9E,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI;IAIlC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI;IAK9C,QAAQ,IAAI,MAAM;IAIlB,iBAAiB,IAAI,MAAM;IAI3B,eAAe,IAAI,MAAM;IAIzB,aAAa,IAAI,MAAM;IAIvB,OAAO,IAAI,OAAO;CAGnB"}
@@ -1,119 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DyNTS_TeB_MessagingProvider = void 0;
4
- const bot_message_provider_enum_1 = require("../../../_enums/bot-message-provider.enum");
5
- class DyNTS_TeB_MessagingProvider {
6
- isInitialized = false;
7
- config;
8
- // Event handlers
9
- messageHandlers = [];
10
- readyHandlers = [];
11
- errorHandlers = [];
12
- async initialize(config) {
13
- this.config = config;
14
- if (config.messageProvider !== bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.teams) {
15
- throw new Error(`Invalid provider type: ${config.messageProvider}. Expected 'teams'`);
16
- }
17
- if (!config.teams) {
18
- throw new Error('Teams configuration is required');
19
- }
20
- this.isInitialized = true;
21
- // TODO: Initialize Teams client
22
- }
23
- async login(token) {
24
- if (!this.isInitialized) {
25
- throw new Error('Provider not initialized. Call initialize() first.');
26
- }
27
- // TODO: Implement Teams login
28
- throw new Error('Teams provider not yet implemented');
29
- }
30
- // Channel operations
31
- async getChannelByName(name) {
32
- throw new Error('Teams provider not yet implemented');
33
- }
34
- async sendMessageToChannelByName(channelName, message) {
35
- throw new Error('Teams provider not yet implemented');
36
- }
37
- async getMessagesFromChannelByChannelName(channelName, limit) {
38
- throw new Error('Teams provider not yet implemented');
39
- }
40
- async getLastMessageInChannel(channelName) {
41
- throw new Error('Teams provider not yet implemented');
42
- }
43
- async clearChannel(channelId) {
44
- throw new Error('Teams provider not yet implemented');
45
- }
46
- // Message operations
47
- async sendMessage(channelId, content) {
48
- throw new Error('Teams provider not yet implemented');
49
- }
50
- async replyToMessage(messageId, channelId, content) {
51
- throw new Error('Teams provider not yet implemented');
52
- }
53
- async sendTyping(channelId) {
54
- throw new Error('Teams provider not yet implemented');
55
- }
56
- async fetchMessages(channelId, limit) {
57
- throw new Error('Teams provider not yet implemented');
58
- }
59
- async fetchAllMessagesWithPaging(channelId, maxFetch) {
60
- throw new Error('Teams provider not yet implemented');
61
- }
62
- async deleteMessage(messageId, channelId) {
63
- throw new Error('Teams provider not yet implemented');
64
- }
65
- // User operations
66
- async getUserByName(username) {
67
- throw new Error('Teams provider not yet implemented');
68
- }
69
- getUserMention(userId) {
70
- return `<@${userId}>`;
71
- }
72
- async readMembersInChannel(channelName) {
73
- throw new Error('Teams provider not yet implemented');
74
- }
75
- async readMemberNamesInChannel(channelName) {
76
- throw new Error('Teams provider not yet implemented');
77
- }
78
- // Advanced message queries
79
- async getLastMessageSentBy(channelName, username) {
80
- throw new Error('Teams provider not yet implemented');
81
- }
82
- async getLastMentionOf(channelName, username) {
83
- throw new Error('Teams provider not yet implemented');
84
- }
85
- async readLastMessageDatesByMembers(channelName, memberNames) {
86
- throw new Error('Teams provider not yet implemented');
87
- }
88
- async readLastMessageWithMemberNamePingInIt(channelName, users) {
89
- throw new Error('Teams provider not yet implemented');
90
- }
91
- // Event binding
92
- onMessage(handler) {
93
- this.messageHandlers.push(handler);
94
- }
95
- onReady(handler) {
96
- this.readyHandlers.push(handler);
97
- }
98
- onError(handler) {
99
- this.errorHandlers.push(handler);
100
- }
101
- // Metadata
102
- getBotId() {
103
- return 'teams-bot-stub';
104
- }
105
- getBotDisplayName() {
106
- return 'Teams Bot (Stub)';
107
- }
108
- getProviderName() {
109
- return 'teams';
110
- }
111
- getProviderId() {
112
- return this.config?.providerId || this.getProviderName();
113
- }
114
- isReady() {
115
- return this.isInitialized;
116
- }
117
- }
118
- exports.DyNTS_TeB_MessagingProvider = DyNTS_TeB_MessagingProvider;
119
- //# sourceMappingURL=teb-messaging-provider.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"teb-messaging-provider.service.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.ts"],"names":[],"mappings":";;;AAGA,yFAA6F;AAG7F,MAAa,2BAA2B;IAK9B,aAAa,GAAY,KAAK,CAAC;IAC/B,MAAM,CAAqC;IAEnD,iBAAiB;IACT,eAAe,GAAgE,EAAE,CAAC;IAClF,aAAa,GAAsB,EAAE,CAAC;IACtC,aAAa,GAAkC,EAAE,CAAC;IAE1D,KAAK,CAAC,UAAU,CAAC,MAA0C;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,MAAM,CAAC,eAAe,KAAK,4DAAgC,CAAC,KAAK,EAAE,CAAC;YACtE,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,eAAe,oBAAoB,CAAC,CAAC;QACxF,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,gCAAgC;IAClC,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,KAAa;QACvB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QACD,8BAA8B;QAC9B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IAED,qBAAqB;IACrB,KAAK,CAAC,gBAAgB,CAAC,IAAY;QACjC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC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QACX,OAAO,IAAI,CAAC,MAAM,EAAE,UAAU,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3D,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;CACF;AArJD,kEAqJC"}
@@ -1,6 +0,0 @@
1
- import { DyNTS_Bot_MessagingProvider, DyNTS_Bot_MessagingProvider_Config } from '../_models/bot-messaging-provider.interface';
2
- export declare class DyNTS_Bot_MessagingProvider_Factory {
3
- static createProvider(config: DyNTS_Bot_MessagingProvider_Config): DyNTS_Bot_MessagingProvider;
4
- static createProviders(configs: DyNTS_Bot_MessagingProvider_Config[]): Map<string, DyNTS_Bot_MessagingProvider>;
5
- }
6
- //# sourceMappingURL=bot-messaging-provider-factory.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bot-messaging-provider-factory.service.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_services/bot-messaging-provider-factory.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAC;AAO9H,qBAAa,mCAAmC;IAE9C,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,kCAAkC,GAAG,2BAA2B;IAyB9F,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,kCAAkC,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,2BAA2B,CAAC;CAqBhH"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DyNTS_Bot_MessagingProvider_Factory = void 0;
4
- const bot_message_provider_enum_1 = require("../_enums/bot-message-provider.enum");
5
- const dib_messaging_provider_service_1 = require("../_modules/discord-bot/_services/dib-messaging-provider.service");
6
- const slb_messaging_provider_service_1 = require("../_modules/slack-bot/_services/slb-messaging-provider.service");
7
- const teb_messaging_provider_service_1 = require("../_modules/teams-bot/_services/teb-messaging-provider.service");
8
- const dyb_messaging_provider_service_1 = require("../_modules/dynamo-bot/_services/dyb-messaging-provider.service");
9
- class DyNTS_Bot_MessagingProvider_Factory {
10
- static createProvider(config) {
11
- switch (config.messageProvider) {
12
- case bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.discord:
13
- return new dib_messaging_provider_service_1.DyNTS_DiB_MessagingProvider();
14
- case bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.slack:
15
- return new slb_messaging_provider_service_1.DyNTS_SlB_MessagingProvider();
16
- case bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.teams:
17
- return new teb_messaging_provider_service_1.DyNTS_TeB_MessagingProvider();
18
- case bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.dynamo:
19
- return new dyb_messaging_provider_service_1.DyNTS_DyB_MessagingProvider();
20
- case bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.custom:
21
- if (!config.messageProviderInstance) {
22
- throw new Error('Custom provider instance is required when provider type is "custom"');
23
- }
24
- return config.messageProviderInstance;
25
- default:
26
- throw new Error(`Unsupported provider type: ${config.messageProvider}`);
27
- }
28
- }
29
- static createProviders(configs) {
30
- const providers = new Map();
31
- const providerIds = new Set();
32
- for (const config of configs) {
33
- if (!config.providerId) {
34
- throw new Error('providerId is required when using multiple providers');
35
- }
36
- if (providerIds.has(config.providerId)) {
37
- throw new Error(`Duplicate providerId detected: ${config.providerId}`);
38
- }
39
- providerIds.add(config.providerId);
40
- const provider = this.createProvider(config);
41
- providers.set(config.providerId, provider);
42
- }
43
- return providers;
44
- }
45
- }
46
- exports.DyNTS_Bot_MessagingProvider_Factory = DyNTS_Bot_MessagingProvider_Factory;
47
- //# sourceMappingURL=bot-messaging-provider-factory.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bot-messaging-provider-factory.service.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_services/bot-messaging-provider-factory.service.ts"],"names":[],"mappings":";;;AACA,mFAAuF;AACvF,qHAA+G;AAC/G,mHAA6G;AAC7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AAC;YAEnC,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAC7C,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC7C,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAhDD,kFAgDC"}
@@ -1,100 +0,0 @@
1
- import { DyNTS_Bot_Main_ControlService } from '../../bot/_services/bot-main.control-service';
2
- import { DyNTS_Bot_Message } from '../../bot/_models/bot-message.interface';
3
- import { DyNTS_Bot_MessageWrapper } from '../../bot/_models/bot-message-wrapper.interface';
4
- import { DyNTS_Bot_Channel } from '../../bot/_models/bot-channel.interface';
5
- import { DyNTS_Bot_User } from '../../bot/_models/bot-user.interface';
6
- import { DyNTS_Bot_MessagingProvider } from '../../bot/_models/bot-messaging-provider.interface';
7
- import { DyNTS_AI_LLMChat_ServiceBase } from '../../ai/_services/ai-llm-chat.service-base';
8
- import { DyFM_AI_Message } from '@futdevpro/fsm-dynamo/ai';
9
- import { DyNTS_Ass_global_settings } from '../_collections/ass-global-settings.const';
10
- import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
11
- import { DyNTS_Ass_Util } from '../_collections/ass.util';
12
- import { DyNTS_Ass_IO_ControlService } from './ass-io.control-service';
13
-
14
- /**
15
- * Assistant Service Base
16
- * Integrates commsProvider (bot) and aiProvider (LLMChat) to create AI-powered assistant
17
- * USES EXISTING AI ABSTRACTIONS - no duplication
18
- */
19
- export abstract class DyNTS_Ass_ServiceBase<
20
- T_MessagePlatformChannel extends DyNTS_Bot_Channel<any> = DyNTS_Bot_Channel<any>,
21
- T_MessagePlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>,
22
- T_MessagePlatformUser extends DyNTS_Bot_User<any> = DyNTS_Bot_User<any>,
23
- T_MessageProvider extends DyNTS_Bot_MessagingProvider<T_MessagePlatformChannel, T_MessagePlatformMessage, T_MessagePlatformUser> = DyNTS_Bot_MessagingProvider<T_MessagePlatformChannel, T_MessagePlatformMessage, T_MessagePlatformUser>
24
- > extends DyNTS_Bot_Main_ControlService<T_MessagePlatformChannel, T_MessagePlatformMessage, T_MessagePlatformUser, T_MessageProvider> {
25
-
26
- // AI Provider - uses EXISTING abstraction
27
- protected _aiProvider: DyNTS_AI_LLMChat_ServiceBase;
28
-
29
- get aiProvider(): DyNTS_AI_LLMChat_ServiceBase {
30
- return this._aiProvider;
31
- }
32
-
33
- protected abstract getAIProvider(): DyNTS_AI_LLMChat_ServiceBase;
34
-
35
- // Override botIO to use assistant IO
36
- protected abstract override getBotIOControlService(): DyNTS_Ass_IO_ControlService<
37
- T_MessagePlatformChannel,
38
- T_MessagePlatformMessage,
39
- T_MessagePlatformUser,
40
- T_MessageProvider
41
- >;
42
-
43
- // Assistant-specific settings
44
- defaultSystemPrompt: string = DyNTS_Ass_global_settings.defaultSystemPrompt;
45
-
46
- protected constructor(setupAutomatically?: boolean) {
47
- super(setupAutomatically);
48
-
49
- // Initialize AI provider
50
- this._aiProvider = this.getAIProvider();
51
-
52
- // Apply system prompt
53
- if (this._aiProvider.defaultSettings) {
54
- this._aiProvider.defaultSettings.systemPrompt = this.defaultSystemPrompt;
55
- }
56
-
57
- // Set global settings
58
- DyNTS_global_settings.assistant_settings ??= DyNTS_Ass_global_settings;
59
- }
60
-
61
- /**
62
- * Gather messages from comms platform (any platform)
63
- * Same as dias.service-base but platform-agnostic
64
- * Now uses wrapper's provider to ensure messages from correct platform
65
- */
66
- async gatherMessagesForMessage(
67
- message: T_MessagePlatformMessage,
68
- wrapper: DyNTS_Bot_MessageWrapper<T_MessagePlatformMessage>,
69
- limit: number = 100
70
- ): Promise<T_MessagePlatformMessage[]> {
71
- const channelId = message.channelId;
72
- // Use wrapper's provider to fetch messages from the correct platform
73
- const messages = await wrapper.provider.fetchMessages(channelId, limit);
74
-
75
- // Filter out messages with skip flags
76
- return messages.filter(
77
- msg => !DyNTS_Ass_global_settings.skipConversationMessagesFlags.some(
78
- flag => msg.content.includes(flag)
79
- )
80
- ).sort((a, b) => a.timestamp - b.timestamp);
81
- }
82
-
83
- /**
84
- * Convert gathered messages to AI conversation using EXISTING DyFM_AI_Message
85
- */
86
- async gatherMessagesAsAIConversation(
87
- message: T_MessagePlatformMessage,
88
- wrapper: DyNTS_Bot_MessageWrapper<T_MessagePlatformMessage>,
89
- issuer: string,
90
- ): Promise<DyFM_AI_Message[]> {
91
- const messages = await this.gatherMessagesForMessage(message, wrapper);
92
-
93
- return DyNTS_Ass_Util.convertBotMessagesToAIConversation({
94
- messages: messages,
95
- botClientId: this.botClientId,
96
- botDisplayName: this.botDisplayName,
97
- issuer: issuer,
98
- });
99
- }
100
- }
@@ -1,149 +0,0 @@
1
- import { DyFM_Error, DyFM_Log } from '@futdevpro/fsm-dynamo';
2
- import { DyNTS_Bot_MessagingProvider } from '../_models/bot-messaging-provider.interface';
3
- import { DyNTS_Bot_Message } from '../_models/bot-message.interface';
4
- import { DyNTS_Bot_Channel } from '../_models/bot-channel.interface';
5
- import { DyNTS_Bot_User } from '../_models/bot-user.interface';
6
- import { DyNTS_Bot_LastMessageDate } from '../_models/bot-last-message-date.interface';
7
- import { DyNTS_Bot_LastMentionDate } from '../_models/bot-last-mention-date.interface';
8
- import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
9
-
10
- export abstract class DyNTS_Bot_Operations_Util<
11
- T_PlatformChannel extends DyNTS_Bot_Channel<any> = DyNTS_Bot_Channel<any>,
12
- T_PlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>,
13
- T_PlatformUser extends DyNTS_Bot_User<any> = DyNTS_Bot_User<any>,
14
- T_PlatformProvider extends DyNTS_Bot_MessagingProvider<
15
- T_PlatformChannel,
16
- T_PlatformMessage,
17
- T_PlatformUser
18
- > = DyNTS_Bot_MessagingProvider<
19
- T_PlatformChannel,
20
- T_PlatformMessage,
21
- T_PlatformUser
22
- >
23
- > {
24
-
25
- static async findChannelByName<
26
- T_PlatformChannel extends DyNTS_Bot_Channel<any>,
27
- T_PlatformProvider extends DyNTS_Bot_MessagingProvider<T_PlatformChannel, any, any>
28
- >(
29
- provider: T_PlatformProvider,
30
- name: string
31
- ): Promise<T_PlatformChannel> {
32
- const channel = await provider.getChannelByName(name);
33
-
34
- if (!channel) {
35
- DyFM_Log.error(`No text channel found with name "${name}"`)
36
- return null;
37
- }
38
-
39
- return channel;
40
- }
41
-
42
- static async sendMessageToChannelByName<T_PlatformChannel extends DyNTS_Bot_Channel<any>, T_PlatformProvider extends DyNTS_Bot_MessagingProvider<T_PlatformChannel, any, any>>(
43
- provider: T_PlatformProvider,
44
- channelName: string,
45
- message: string
46
- ): Promise<void> {
47
- const channel = await this.findChannelByName(provider, channelName);
48
-
49
- if (channel?.isTextBased) {
50
- await provider.sendMessageToChannelByName(channelName, message);
51
- DyFM_Log.success('Message sent to channel', channel.name);
52
- } else {
53
- DyFM_Log.error(`Channel is not text based "${channelName}"`);
54
- }
55
- }
56
-
57
- static async readMembersInChannel<T_PlatformUser extends DyNTS_Bot_User<any>, T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, any, T_PlatformUser>>(
58
- provider: T_PlatformProvider,
59
- channelName: string
60
- ): Promise<T_PlatformUser[]> {
61
- return await provider.readMembersInChannel(channelName);
62
- }
63
-
64
- static async readMemberNamesInChannel<T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, any, any>>(
65
- provider: T_PlatformProvider,
66
- channelName: string
67
- ): Promise<string[]> {
68
- return await provider.readMemberNamesInChannel(channelName);
69
- }
70
-
71
- static async fetchAllMessagesWithPaging<T_PlatformMessage extends DyNTS_Bot_Message<any>, T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, T_PlatformMessage, any>>(
72
- provider: T_PlatformProvider,
73
- channelId: string,
74
- maxFetch = 1000
75
- ): Promise<T_PlatformMessage[]> {
76
- return await provider.fetchAllMessagesWithPaging(channelId, maxFetch);
77
- }
78
-
79
- static async readLastMessageDatesByMembers<T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, any, any>>(
80
- provider: T_PlatformProvider,
81
- channelName: string,
82
- memberNames: string[]
83
- ): Promise<DyNTS_Bot_LastMessageDate[]> {
84
- return await provider.readLastMessageDatesByMembers(channelName, memberNames);
85
- }
86
-
87
- static async readLastMessageWithMemberNamePingInIt<T_PlatformUser extends DyNTS_Bot_User<any>, T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, any, T_PlatformUser>>(
88
- provider: T_PlatformProvider,
89
- channelName: string,
90
- users: T_PlatformUser[]
91
- ): Promise<DyNTS_Bot_LastMentionDate[]> {
92
- return await provider.readLastMessageWithMemberNamePingInIt(channelName, users);
93
- }
94
-
95
- static readMentionsInChannel = this.readLastMessageWithMemberNamePingInIt;
96
-
97
- static async readLastMessagesInChannel<T_PlatformMessage extends DyNTS_Bot_Message<any>, T_PlatformChannel extends DyNTS_Bot_Channel<any>, T_PlatformProvider extends DyNTS_Bot_MessagingProvider<T_PlatformChannel, T_PlatformMessage, any>>(
98
- provider: T_PlatformProvider,
99
- channelName: string,
100
- ): Promise<T_PlatformMessage[]> {
101
- const channel = await provider.getChannelByName(channelName);
102
- return await provider.fetchMessages(channel.id, 100);
103
- }
104
-
105
- static async getLastMessageInChannel<T_PlatformMessage extends DyNTS_Bot_Message<any>, T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, T_PlatformMessage, any>>(
106
- provider: T_PlatformProvider,
107
- channelName: string
108
- ): Promise<T_PlatformMessage> {
109
- return await provider.getLastMessageInChannel(channelName);
110
- }
111
-
112
- static async deleteMessage<T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, any, any>>(
113
- provider: T_PlatformProvider,
114
- messageId: string,
115
- channelId: string
116
- ): Promise<void> {
117
- await provider.deleteMessage(messageId, channelId).catch((error) => {
118
- DyFM_Error.logSimple('Failed to delete message', error);
119
- });
120
-
121
- DyFM_Log.success('Message deleted');
122
- }
123
-
124
- static async reportIn<T_PlatformMessage extends DyNTS_Bot_Message<any>, T_PlatformProvider extends DyNTS_Bot_MessagingProvider<any, T_PlatformMessage, any>>(provider: T_PlatformProvider): Promise<void> {
125
- try {
126
- const lastReportMessage = await this.getLastMessageInChannel(
127
- provider,
128
- 'bot-reports' // Use default since we can't access channelSettings from provider config
129
- );
130
-
131
- const reportMessage = `${provider.getBotDisplayName()} report for duty! ` +
132
- `(v${DyNTS_global_settings.systemVersion} ${DyNTS_global_settings.env_settings?.environment})`;
133
-
134
- if (lastReportMessage?.content === reportMessage) {
135
- await this.deleteMessage(provider, lastReportMessage.id, lastReportMessage.channelId).catch((error) => {
136
- DyFM_Error.logSimple('Failed to delete message', error);
137
- });
138
- }
139
-
140
- this.sendMessageToChannelByName(
141
- provider,
142
- 'bot-reports', // Use default since we can't access channelSettings from provider config
143
- reportMessage
144
- );
145
- } catch (error) {
146
- DyFM_Error.logSimple('Failed to report in', error);
147
- }
148
- }
149
- }