@hed-hog/core 0.0.350 → 0.0.353

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 (284) hide show
  1. package/dist/access-log/access-log.controller.d.ts +16 -0
  2. package/dist/access-log/access-log.controller.d.ts.map +1 -0
  3. package/dist/access-log/access-log.controller.js +44 -0
  4. package/dist/access-log/access-log.controller.js.map +1 -0
  5. package/dist/access-log/access-log.interceptor.d.ts +9 -0
  6. package/dist/access-log/access-log.interceptor.d.ts.map +1 -0
  7. package/dist/access-log/access-log.interceptor.js +46 -0
  8. package/dist/access-log/access-log.interceptor.js.map +1 -0
  9. package/dist/access-log/access-log.module.d.ts +3 -0
  10. package/dist/access-log/access-log.module.d.ts.map +1 -0
  11. package/dist/access-log/access-log.module.js +29 -0
  12. package/dist/access-log/access-log.module.js.map +1 -0
  13. package/dist/access-log/access-log.service.d.ts +47 -0
  14. package/dist/access-log/access-log.service.d.ts.map +1 -0
  15. package/dist/access-log/access-log.service.js +113 -0
  16. package/dist/access-log/access-log.service.js.map +1 -0
  17. package/dist/access-log/dto/query-access-log.dto.d.ts +8 -0
  18. package/dist/access-log/dto/query-access-log.dto.d.ts.map +1 -0
  19. package/dist/access-log/dto/query-access-log.dto.js +42 -0
  20. package/dist/access-log/dto/query-access-log.dto.js.map +1 -0
  21. package/dist/auth/auth.controller.d.ts +9 -9
  22. package/dist/auth/auth.service.d.ts +19 -19
  23. package/dist/auth/auth.service.d.ts.map +1 -1
  24. package/dist/auth/auth.service.js +0 -4
  25. package/dist/auth/auth.service.js.map +1 -1
  26. package/dist/challenge/challenge.service.d.ts +2 -2
  27. package/dist/challenge/challenge.service.d.ts.map +1 -1
  28. package/dist/challenge/challenge.service.js +0 -1
  29. package/dist/challenge/challenge.service.js.map +1 -1
  30. package/dist/core/system.module.d.ts.map +1 -1
  31. package/dist/core/system.module.js +1 -0
  32. package/dist/core/system.module.js.map +1 -1
  33. package/dist/core.module.d.ts.map +1 -1
  34. package/dist/core.module.js +12 -0
  35. package/dist/core.module.js.map +1 -1
  36. package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
  37. package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
  38. package/dist/dashboard/dashboard.module.d.ts.map +1 -1
  39. package/dist/dashboard/dashboard.module.js +4 -1
  40. package/dist/dashboard/dashboard.module.js.map +1 -1
  41. package/dist/file/file.controller.js +0 -1
  42. package/dist/file/file.controller.js.map +1 -1
  43. package/dist/file/file.service.d.ts +65 -0
  44. package/dist/file/file.service.d.ts.map +1 -1
  45. package/dist/file/file.service.js +151 -3
  46. package/dist/file/file.service.js.map +1 -1
  47. package/dist/file/provider/abstract.provider.d.ts +8 -0
  48. package/dist/file/provider/abstract.provider.d.ts.map +1 -1
  49. package/dist/file/provider/abstract.provider.js.map +1 -1
  50. package/dist/file/provider/azure.provider.d.ts +4 -0
  51. package/dist/file/provider/azure.provider.d.ts.map +1 -1
  52. package/dist/file/provider/azure.provider.js +14 -0
  53. package/dist/file/provider/azure.provider.js.map +1 -1
  54. package/dist/file/provider/gcs.provider.d.ts +4 -0
  55. package/dist/file/provider/gcs.provider.d.ts.map +1 -1
  56. package/dist/file/provider/gcs.provider.js +14 -0
  57. package/dist/file/provider/gcs.provider.js.map +1 -1
  58. package/dist/file/provider/local.provider.d.ts +4 -0
  59. package/dist/file/provider/local.provider.d.ts.map +1 -1
  60. package/dist/file/provider/local.provider.js +19 -0
  61. package/dist/file/provider/local.provider.js.map +1 -1
  62. package/dist/file/provider/provider.factory.d.ts.map +1 -1
  63. package/dist/file/provider/provider.factory.js +3 -0
  64. package/dist/file/provider/provider.factory.js.map +1 -1
  65. package/dist/file/provider/s3.provider.d.ts +4 -0
  66. package/dist/file/provider/s3.provider.d.ts.map +1 -1
  67. package/dist/file/provider/s3.provider.js +17 -0
  68. package/dist/file/provider/s3.provider.js.map +1 -1
  69. package/dist/mcp/mcp-audit.service.d.ts +3 -1
  70. package/dist/mcp/mcp-audit.service.d.ts.map +1 -1
  71. package/dist/mcp/mcp-audit.service.js +14 -2
  72. package/dist/mcp/mcp-audit.service.js.map +1 -1
  73. package/dist/mcp/mcp.controller.d.ts +3 -1
  74. package/dist/mcp/mcp.controller.d.ts.map +1 -1
  75. package/dist/mcp/mcp.controller.js +10 -2
  76. package/dist/mcp/mcp.controller.js.map +1 -1
  77. package/dist/mcp/mcp.module.d.ts.map +1 -1
  78. package/dist/mcp/mcp.module.js +72 -0
  79. package/dist/mcp/mcp.module.js.map +1 -1
  80. package/dist/mcp/tools/core-ai.mcp-tools.d.ts +45 -0
  81. package/dist/mcp/tools/core-ai.mcp-tools.d.ts.map +1 -0
  82. package/dist/mcp/tools/core-ai.mcp-tools.js +214 -0
  83. package/dist/mcp/tools/core-ai.mcp-tools.js.map +1 -0
  84. package/dist/mcp/tools/core-dashboard-items.mcp-tools.d.ts +21 -0
  85. package/dist/mcp/tools/core-dashboard-items.mcp-tools.d.ts.map +1 -0
  86. package/dist/mcp/tools/core-dashboard-items.mcp-tools.js +89 -0
  87. package/dist/mcp/tools/core-dashboard-items.mcp-tools.js.map +1 -0
  88. package/dist/mcp/tools/core-dashboard.mcp-tools.d.ts +29 -0
  89. package/dist/mcp/tools/core-dashboard.mcp-tools.d.ts.map +1 -0
  90. package/dist/mcp/tools/core-dashboard.mcp-tools.js +149 -0
  91. package/dist/mcp/tools/core-dashboard.mcp-tools.js.map +1 -0
  92. package/dist/mcp/tools/core-event-webhooks.mcp-tools.d.ts +30 -0
  93. package/dist/mcp/tools/core-event-webhooks.mcp-tools.d.ts.map +1 -0
  94. package/dist/mcp/tools/core-event-webhooks.mcp-tools.js +185 -0
  95. package/dist/mcp/tools/core-event-webhooks.mcp-tools.js.map +1 -0
  96. package/dist/mcp/tools/core-files.mcp-tools.d.ts +26 -0
  97. package/dist/mcp/tools/core-files.mcp-tools.d.ts.map +1 -0
  98. package/dist/mcp/tools/core-files.mcp-tools.js +140 -0
  99. package/dist/mcp/tools/core-files.mcp-tools.js.map +1 -0
  100. package/dist/mcp/tools/core-integration-events.mcp-tools.d.ts +26 -0
  101. package/dist/mcp/tools/core-integration-events.mcp-tools.d.ts.map +1 -0
  102. package/dist/mcp/tools/core-integration-events.mcp-tools.js +168 -0
  103. package/dist/mcp/tools/core-integration-events.mcp-tools.js.map +1 -0
  104. package/dist/mcp/tools/core-mail-profile.mcp-tools.d.ts +32 -0
  105. package/dist/mcp/tools/core-mail-profile.mcp-tools.d.ts.map +1 -0
  106. package/dist/mcp/tools/core-mail-profile.mcp-tools.js +178 -0
  107. package/dist/mcp/tools/core-mail-profile.mcp-tools.js.map +1 -0
  108. package/dist/mcp/tools/core-mail-sent.mcp-tools.d.ts +14 -0
  109. package/dist/mcp/tools/core-mail-sent.mcp-tools.d.ts.map +1 -0
  110. package/dist/mcp/tools/core-mail-sent.mcp-tools.js +106 -0
  111. package/dist/mcp/tools/core-mail-sent.mcp-tools.js.map +1 -0
  112. package/dist/mcp/tools/core-mail.mcp-tools.d.ts +36 -0
  113. package/dist/mcp/tools/core-mail.mcp-tools.d.ts.map +1 -0
  114. package/dist/mcp/tools/core-mail.mcp-tools.js +184 -0
  115. package/dist/mcp/tools/core-mail.mcp-tools.js.map +1 -0
  116. package/dist/mcp/tools/core-mcp-chat.mcp-tools.d.ts +21 -0
  117. package/dist/mcp/tools/core-mcp-chat.mcp-tools.d.ts.map +1 -0
  118. package/dist/mcp/tools/core-mcp-chat.mcp-tools.js +118 -0
  119. package/dist/mcp/tools/core-mcp-chat.mcp-tools.js.map +1 -0
  120. package/dist/mcp/tools/core-menus.mcp-tools.d.ts +40 -0
  121. package/dist/mcp/tools/core-menus.mcp-tools.d.ts.map +1 -0
  122. package/dist/mcp/tools/core-menus.mcp-tools.js +268 -0
  123. package/dist/mcp/tools/core-menus.mcp-tools.js.map +1 -0
  124. package/dist/mcp/tools/core-notifications.mcp-tools.d.ts +31 -0
  125. package/dist/mcp/tools/core-notifications.mcp-tools.d.ts.map +1 -0
  126. package/dist/mcp/tools/core-notifications.mcp-tools.js +178 -0
  127. package/dist/mcp/tools/core-notifications.mcp-tools.js.map +1 -0
  128. package/dist/mcp/tools/core-profile.mcp-tools.d.ts +20 -0
  129. package/dist/mcp/tools/core-profile.mcp-tools.d.ts.map +1 -0
  130. package/dist/mcp/tools/core-profile.mcp-tools.js +111 -0
  131. package/dist/mcp/tools/core-profile.mcp-tools.js.map +1 -0
  132. package/dist/mcp/tools/core-roles.mcp-tools.d.ts +70 -0
  133. package/dist/mcp/tools/core-roles.mcp-tools.d.ts.map +1 -0
  134. package/dist/mcp/tools/core-roles.mcp-tools.js +355 -0
  135. package/dist/mcp/tools/core-roles.mcp-tools.js.map +1 -0
  136. package/dist/mcp/tools/core-routes.mcp-tools.d.ts +52 -0
  137. package/dist/mcp/tools/core-routes.mcp-tools.d.ts.map +1 -0
  138. package/dist/mcp/tools/core-routes.mcp-tools.js +254 -0
  139. package/dist/mcp/tools/core-routes.mcp-tools.js.map +1 -0
  140. package/dist/mcp/tools/core-screens.mcp-tools.d.ts +47 -0
  141. package/dist/mcp/tools/core-screens.mcp-tools.d.ts.map +1 -0
  142. package/dist/mcp/tools/core-screens.mcp-tools.js +250 -0
  143. package/dist/mcp/tools/core-screens.mcp-tools.js.map +1 -0
  144. package/dist/mcp/tools/core-sessions.mcp-tools.d.ts +20 -0
  145. package/dist/mcp/tools/core-sessions.mcp-tools.d.ts.map +1 -0
  146. package/dist/mcp/tools/core-sessions.mcp-tools.js +128 -0
  147. package/dist/mcp/tools/core-sessions.mcp-tools.js.map +1 -0
  148. package/dist/mcp/tools/core-settings.mcp-tools.d.ts +25 -0
  149. package/dist/mcp/tools/core-settings.mcp-tools.d.ts.map +1 -1
  150. package/dist/mcp/tools/core-settings.mcp-tools.js +138 -0
  151. package/dist/mcp/tools/core-settings.mcp-tools.js.map +1 -1
  152. package/dist/mcp/tools/core-system.mcp-tools.d.ts +8 -0
  153. package/dist/mcp/tools/core-system.mcp-tools.d.ts.map +1 -0
  154. package/dist/mcp/tools/core-system.mcp-tools.js +40 -0
  155. package/dist/mcp/tools/core-system.mcp-tools.js.map +1 -0
  156. package/dist/mcp/tools/core-webhooks.mcp-tools.d.ts +46 -0
  157. package/dist/mcp/tools/core-webhooks.mcp-tools.d.ts.map +1 -0
  158. package/dist/mcp/tools/core-webhooks.mcp-tools.js +266 -0
  159. package/dist/mcp/tools/core-webhooks.mcp-tools.js.map +1 -0
  160. package/dist/mcp-chat/mcp-chat.controller.d.ts +1 -1
  161. package/dist/mcp-chat/mcp-chat.service.d.ts +25 -2
  162. package/dist/mcp-chat/mcp-chat.service.d.ts.map +1 -1
  163. package/dist/mcp-chat/mcp-chat.service.js +666 -36
  164. package/dist/mcp-chat/mcp-chat.service.js.map +1 -1
  165. package/dist/notification/notification.controller.d.ts +8 -4
  166. package/dist/notification/notification.controller.d.ts.map +1 -1
  167. package/dist/notification/notification.controller.js +12 -0
  168. package/dist/notification/notification.controller.js.map +1 -1
  169. package/dist/notification/notification.service.d.ts +19 -5
  170. package/dist/notification/notification.service.d.ts.map +1 -1
  171. package/dist/notification/notification.service.js +155 -9
  172. package/dist/notification/notification.service.js.map +1 -1
  173. package/dist/pdf/pdf.service.js +1 -1
  174. package/dist/pdf/pdf.service.js.map +1 -1
  175. package/dist/profile/profile.controller.d.ts +3 -3
  176. package/dist/profile/profile.controller.js +0 -1
  177. package/dist/profile/profile.controller.js.map +1 -1
  178. package/dist/profile/profile.module.d.ts.map +1 -1
  179. package/dist/profile/profile.module.js +1 -0
  180. package/dist/profile/profile.module.js.map +1 -1
  181. package/dist/profile/profile.service.d.ts +3 -3
  182. package/dist/session/session.controller.d.ts +2 -2
  183. package/dist/session/session.service.d.ts +6 -6
  184. package/dist/setting/setting.controller.d.ts +1 -1
  185. package/dist/setting/setting.service.d.ts +1 -1
  186. package/dist/setting/setting.service.d.ts.map +1 -1
  187. package/dist/setting/setting.service.js +1 -4
  188. package/dist/setting/setting.service.js.map +1 -1
  189. package/dist/task/task.service.d.ts +1 -0
  190. package/dist/task/task.service.d.ts.map +1 -1
  191. package/dist/task/task.service.js +25 -0
  192. package/dist/task/task.service.js.map +1 -1
  193. package/dist/token/token.service.d.ts.map +1 -1
  194. package/dist/token/token.service.js +0 -1
  195. package/dist/token/token.service.js.map +1 -1
  196. package/dist/user/user.controller.d.ts +9 -9
  197. package/dist/user/user.service.d.ts +21 -21
  198. package/dist/webhook-integration/dto/webhook-action.dto.d.ts +22 -0
  199. package/dist/webhook-integration/dto/webhook-action.dto.d.ts.map +1 -0
  200. package/dist/webhook-integration/dto/webhook-action.dto.js +120 -0
  201. package/dist/webhook-integration/dto/webhook-action.dto.js.map +1 -0
  202. package/dist/webhook-integration/webhook-integration.controller.d.ts +7 -5
  203. package/dist/webhook-integration/webhook-integration.controller.d.ts.map +1 -1
  204. package/dist/webhook-integration/webhook-integration.controller.js +18 -5
  205. package/dist/webhook-integration/webhook-integration.controller.js.map +1 -1
  206. package/dist/webhook-integration/webhook-integration.service.d.ts +14 -5
  207. package/dist/webhook-integration/webhook-integration.service.d.ts.map +1 -1
  208. package/dist/webhook-integration/webhook-integration.service.js +174 -41
  209. package/dist/webhook-integration/webhook-integration.service.js.map +1 -1
  210. package/hedhog/data/menu.yaml +15 -0
  211. package/hedhog/data/route.yaml +1304 -0
  212. package/hedhog/data/setting_group.yaml +67 -0
  213. package/hedhog/data/setting_subgroup.yaml +16 -0
  214. package/hedhog/frontend/app/access-log/page.tsx.ejs +772 -0
  215. package/hedhog/frontend/app/ai_agent/page.tsx.ejs +10 -3
  216. package/hedhog/frontend/app/dashboard/dashboard-home-tabs.tsx.ejs +33 -13
  217. package/hedhog/frontend/app/dashboard/management/tabs/components-tab.tsx.ejs +12 -5
  218. package/hedhog/frontend/app/dashboard/management/tabs/dashboards-tab.tsx.ejs +12 -5
  219. package/hedhog/frontend/app/integrations-webhooks/page.tsx.ejs +1817 -356
  220. package/hedhog/frontend/app/mcp_chat/chat-components.tsx.ejs +43 -5
  221. package/hedhog/frontend/app/mcp_chat/page.tsx.ejs +35 -7
  222. package/hedhog/frontend/app/menu/page.tsx.ejs +9 -3
  223. package/hedhog/frontend/app/roles/page.tsx.ejs +18 -6
  224. package/hedhog/frontend/app/routes/page.tsx.ejs +9 -3
  225. package/hedhog/frontend/app/setting-list/page.tsx.ejs +344 -171
  226. package/hedhog/frontend/app/users/user-access-sheet.tsx.ejs +310 -304
  227. package/hedhog/frontend/app/users/user-sheet.tsx.ejs +25 -7
  228. package/hedhog/frontend/messages/en.json +104 -3
  229. package/hedhog/frontend/messages/pt.json +104 -3
  230. package/hedhog/table/access_log.yaml +31 -0
  231. package/package.json +4 -3
  232. package/src/access-log/access-log.controller.ts +29 -0
  233. package/src/access-log/access-log.interceptor.ts +38 -0
  234. package/src/access-log/access-log.module.ts +16 -0
  235. package/src/access-log/access-log.service.ts +129 -0
  236. package/src/access-log/dto/query-access-log.dto.ts +23 -0
  237. package/src/auth/auth.service.ts +0 -7
  238. package/src/challenge/challenge.service.ts +0 -2
  239. package/src/core/system.module.ts +1 -0
  240. package/src/core.module.ts +12 -0
  241. package/src/dashboard/dashboard.module.ts +4 -1
  242. package/src/file/file.controller.ts +14 -14
  243. package/src/file/file.service.ts +198 -4
  244. package/src/file/provider/abstract.provider.ts +10 -0
  245. package/src/file/provider/azure.provider.ts +24 -0
  246. package/src/file/provider/gcs.provider.ts +20 -0
  247. package/src/file/provider/local.provider.ts +30 -2
  248. package/src/file/provider/provider.factory.ts +3 -0
  249. package/src/file/provider/s3.provider.ts +22 -0
  250. package/src/mcp/mcp-audit.service.ts +47 -36
  251. package/src/mcp/mcp.controller.ts +40 -30
  252. package/src/mcp/mcp.module.ts +72 -0
  253. package/src/mcp/tools/core-ai.mcp-tools.ts +156 -0
  254. package/src/mcp/tools/core-dashboard-items.mcp-tools.ts +63 -0
  255. package/src/mcp/tools/core-dashboard.mcp-tools.ts +103 -0
  256. package/src/mcp/tools/core-event-webhooks.mcp-tools.ts +134 -0
  257. package/src/mcp/tools/core-files.mcp-tools.ts +105 -0
  258. package/src/mcp/tools/core-integration-events.mcp-tools.ts +118 -0
  259. package/src/mcp/tools/core-mail-profile.mcp-tools.ts +128 -0
  260. package/src/mcp/tools/core-mail-sent.mcp-tools.ts +76 -0
  261. package/src/mcp/tools/core-mail.mcp-tools.ts +130 -0
  262. package/src/mcp/tools/core-mcp-chat.mcp-tools.ts +81 -0
  263. package/src/mcp/tools/core-menus.mcp-tools.ts +197 -0
  264. package/src/mcp/tools/core-notifications.mcp-tools.ts +128 -0
  265. package/src/mcp/tools/core-profile.mcp-tools.ts +74 -0
  266. package/src/mcp/tools/core-roles.mcp-tools.ts +288 -0
  267. package/src/mcp/tools/core-routes.mcp-tools.ts +196 -0
  268. package/src/mcp/tools/core-screens.mcp-tools.ts +186 -0
  269. package/src/mcp/tools/core-sessions.mcp-tools.ts +97 -0
  270. package/src/mcp/tools/core-settings.mcp-tools.ts +171 -53
  271. package/src/mcp/tools/core-system.mcp-tools.ts +19 -0
  272. package/src/mcp/tools/core-webhooks.mcp-tools.ts +199 -0
  273. package/src/mcp-chat/mcp-chat.service.ts +887 -38
  274. package/src/notification/notification.controller.ts +20 -8
  275. package/src/notification/notification.service.ts +209 -9
  276. package/src/pdf/pdf.service.ts +1 -1
  277. package/src/profile/profile.controller.ts +1 -1
  278. package/src/profile/profile.module.ts +1 -0
  279. package/src/setting/setting.service.ts +8 -11
  280. package/src/task/task.service.ts +31 -0
  281. package/src/token/token.service.ts +0 -2
  282. package/src/webhook-integration/dto/webhook-action.dto.ts +96 -0
  283. package/src/webhook-integration/webhook-integration.controller.ts +124 -103
  284. package/src/webhook-integration/webhook-integration.service.ts +267 -64
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CoreFilesMcpTools = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const file_service_1 = require("../../file/file.service");
15
+ const mcp_tool_decorator_1 = require("../decorators/mcp-tool.decorator");
16
+ let CoreFilesMcpTools = class CoreFilesMcpTools {
17
+ constructor(fileService) {
18
+ this.fileService = fileService;
19
+ }
20
+ async listFiles(args, _context) {
21
+ var _a, _b, _c, _d, _e;
22
+ return this.fileService.getFiles({
23
+ page: (_a = args.page) !== null && _a !== void 0 ? _a : 1,
24
+ pageSize: (_b = args.pageSize) !== null && _b !== void 0 ? _b : 20,
25
+ search: (_c = args.search) !== null && _c !== void 0 ? _c : '',
26
+ sortField: (_d = args.sortField) !== null && _d !== void 0 ? _d : 'id',
27
+ sortOrder: (_e = args.sortOrder) !== null && _e !== void 0 ? _e : 'asc',
28
+ fields: '',
29
+ });
30
+ }
31
+ async getFile(args, _context) {
32
+ return this.fileService.get(args.fileId);
33
+ }
34
+ async getOpenUrl(args, _context) {
35
+ const file = await this.fileService.get(args.fileId);
36
+ const url = await this.fileService.tempOpenURL(file.path);
37
+ return { url };
38
+ }
39
+ async getDownloadUrl(args, _context) {
40
+ const file = await this.fileService.get(args.fileId);
41
+ const url = await this.fileService.tempURL(file.path);
42
+ return { url };
43
+ }
44
+ async deleteFiles(args, context) {
45
+ return this.fileService.delete(context.locale, { ids: args.ids });
46
+ }
47
+ };
48
+ exports.CoreFilesMcpTools = CoreFilesMcpTools;
49
+ __decorate([
50
+ (0, mcp_tool_decorator_1.McpTool)({
51
+ name: 'core.files.list',
52
+ description: 'Lists uploaded files with optional pagination. Admin only.',
53
+ inputSchema: {
54
+ type: 'object',
55
+ properties: {
56
+ page: { type: 'number', description: 'Page number (default: 1)' },
57
+ pageSize: { type: 'number', description: 'Items per page (default: 20)' },
58
+ search: { type: 'string', description: 'Search term' },
59
+ sortField: { type: 'string', description: 'Field to sort by' },
60
+ sortOrder: { type: 'string', enum: ['asc', 'desc'], description: 'Sort direction' },
61
+ },
62
+ },
63
+ readOnly: true,
64
+ }),
65
+ __metadata("design:type", Function),
66
+ __metadata("design:paramtypes", [Object, Object]),
67
+ __metadata("design:returntype", Promise)
68
+ ], CoreFilesMcpTools.prototype, "listFiles", null);
69
+ __decorate([
70
+ (0, mcp_tool_decorator_1.McpTool)({
71
+ name: 'core.files.get',
72
+ description: 'Returns file details by ID. Admin only.',
73
+ inputSchema: {
74
+ type: 'object',
75
+ properties: {
76
+ fileId: { type: 'number', description: 'File ID' },
77
+ },
78
+ required: ['fileId'],
79
+ },
80
+ readOnly: true,
81
+ }),
82
+ __metadata("design:type", Function),
83
+ __metadata("design:paramtypes", [Object, Object]),
84
+ __metadata("design:returntype", Promise)
85
+ ], CoreFilesMcpTools.prototype, "getFile", null);
86
+ __decorate([
87
+ (0, mcp_tool_decorator_1.McpTool)({
88
+ name: 'core.files.open-url',
89
+ description: 'Returns a temporary URL to open/view a file inline. Admin only.',
90
+ inputSchema: {
91
+ type: 'object',
92
+ properties: {
93
+ fileId: { type: 'number', description: 'File ID' },
94
+ },
95
+ required: ['fileId'],
96
+ },
97
+ readOnly: true,
98
+ }),
99
+ __metadata("design:type", Function),
100
+ __metadata("design:paramtypes", [Object, Object]),
101
+ __metadata("design:returntype", Promise)
102
+ ], CoreFilesMcpTools.prototype, "getOpenUrl", null);
103
+ __decorate([
104
+ (0, mcp_tool_decorator_1.McpTool)({
105
+ name: 'core.files.download-url',
106
+ description: 'Returns a temporary URL to download a file. Admin only.',
107
+ inputSchema: {
108
+ type: 'object',
109
+ properties: {
110
+ fileId: { type: 'number', description: 'File ID' },
111
+ },
112
+ required: ['fileId'],
113
+ },
114
+ readOnly: true,
115
+ }),
116
+ __metadata("design:type", Function),
117
+ __metadata("design:paramtypes", [Object, Object]),
118
+ __metadata("design:returntype", Promise)
119
+ ], CoreFilesMcpTools.prototype, "getDownloadUrl", null);
120
+ __decorate([
121
+ (0, mcp_tool_decorator_1.McpTool)({
122
+ name: 'core.files.delete',
123
+ description: 'Deletes one or more files by their IDs. Admin only.',
124
+ inputSchema: {
125
+ type: 'object',
126
+ properties: {
127
+ ids: { type: 'array', items: { type: 'number' }, description: 'File IDs to delete' },
128
+ },
129
+ required: ['ids'],
130
+ },
131
+ }),
132
+ __metadata("design:type", Function),
133
+ __metadata("design:paramtypes", [Object, Object]),
134
+ __metadata("design:returntype", Promise)
135
+ ], CoreFilesMcpTools.prototype, "deleteFiles", null);
136
+ exports.CoreFilesMcpTools = CoreFilesMcpTools = __decorate([
137
+ (0, common_1.Injectable)(),
138
+ __metadata("design:paramtypes", [file_service_1.FileService])
139
+ ], CoreFilesMcpTools);
140
+ //# sourceMappingURL=core-files.mcp-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-files.mcp-tools.js","sourceRoot":"","sources":["../../../src/mcp/tools/core-files.mcp-tools.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,0DAAsD;AACtD,yEAA2D;AAIpD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAiBnD,AAAN,KAAK,CAAC,SAAS,CACb,IAAmG,EACnG,QAAoB;;QAEpB,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC/B,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,mCAAI,CAAC;YACpB,QAAQ,EAAE,MAAA,IAAI,CAAC,QAAQ,mCAAI,EAAE;YAC7B,MAAM,EAAE,MAAA,IAAI,CA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AyB;QAC/B,WAAW,EAAE,yDAAyD;QACtE,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE;aACnD;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;QACD,QAAQ,EAAE,IAAI;KACf,CAAC;;;;uDAKD;AAaK;IAXL,IAAA,4BAAO,EAAC;QACP,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE;aACrF;YACD,QAAQ,EAAE,CAAC,KAAK,CAAC;SAClB;KACF,CAAC;;;;oDAGD;4BAjGU,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAE+B,0BAAW;GAD1C,iBAAiB,CAkG7B"}
@@ -0,0 +1,26 @@
1
+ import { IntegrationEventCatalogService } from '../../webhook-integration/integration-event-catalog.service';
2
+ import { McpContext } from '../types/mcp-context.type';
3
+ export declare class CoreIntegrationEventsMcpTools {
4
+ private readonly catalogService;
5
+ constructor(catalogService: IntegrationEventCatalogService);
6
+ listIntegrationEvents(args: {
7
+ page?: number;
8
+ pageSize?: number;
9
+ search?: string;
10
+ sortField?: string;
11
+ sortOrder?: string;
12
+ }, _context: McpContext): Promise<any>;
13
+ getIntegrationEventOptions(_args: Record<string, any>, _context: McpContext): Promise<any>;
14
+ getIntegrationEvent(args: {
15
+ id: number;
16
+ }, _context: McpContext): Promise<any>;
17
+ createIntegrationEvent(args: Record<string, any>, _context: McpContext): Promise<any>;
18
+ updateIntegrationEvent(args: {
19
+ id: number;
20
+ [key: string]: any;
21
+ }, _context: McpContext): Promise<any>;
22
+ deleteIntegrationEvents(args: {
23
+ ids: number[];
24
+ }, _context: McpContext): Promise<any>;
25
+ }
26
+ //# sourceMappingURL=core-integration-events.mcp-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-integration-events.mcp-tools.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/core-integration-events.mcp-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAE7G,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,qBACa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,8BAA8B;IAiBrE,qBAAqB,CACzB,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EACnG,QAAQ,EAAE,UAAU,GACnB,OAAO,CAAC,GAAG,CAAC;IAiBT,0BAA0B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAgB1F,mBAAmB,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAmB7E,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAmBrF,sBAAsB,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAgBpG,uBAAuB,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;CAG3F"}
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.CoreIntegrationEventsMcpTools = void 0;
24
+ const common_1 = require("@nestjs/common");
25
+ const integration_event_catalog_service_1 = require("../../webhook-integration/integration-event-catalog.service");
26
+ const mcp_tool_decorator_1 = require("../decorators/mcp-tool.decorator");
27
+ let CoreIntegrationEventsMcpTools = class CoreIntegrationEventsMcpTools {
28
+ constructor(catalogService) {
29
+ this.catalogService = catalogService;
30
+ }
31
+ async listIntegrationEvents(args, _context) {
32
+ var _a, _b, _c, _d, _e;
33
+ return this.catalogService.list({
34
+ page: (_a = args.page) !== null && _a !== void 0 ? _a : 1,
35
+ pageSize: (_b = args.pageSize) !== null && _b !== void 0 ? _b : 20,
36
+ search: (_c = args.search) !== null && _c !== void 0 ? _c : '',
37
+ sortField: (_d = args.sortField) !== null && _d !== void 0 ? _d : 'slug',
38
+ sortOrder: (_e = args.sortOrder) !== null && _e !== void 0 ? _e : 'asc',
39
+ fields: '',
40
+ });
41
+ }
42
+ async getIntegrationEventOptions(_args, _context) {
43
+ return this.catalogService.options();
44
+ }
45
+ async getIntegrationEvent(args, _context) {
46
+ return this.catalogService.get(args.id);
47
+ }
48
+ async createIntegrationEvent(args, _context) {
49
+ return this.catalogService.create(args);
50
+ }
51
+ async updateIntegrationEvent(args, _context) {
52
+ const { id } = args, data = __rest(args, ["id"]);
53
+ return this.catalogService.update(id, data);
54
+ }
55
+ async deleteIntegrationEvents(args, _context) {
56
+ return this.catalogService.delete({ ids: args.ids });
57
+ }
58
+ };
59
+ exports.CoreIntegrationEventsMcpTools = CoreIntegrationEventsMcpTools;
60
+ __decorate([
61
+ (0, mcp_tool_decorator_1.McpTool)({
62
+ name: 'core.integration-events.list',
63
+ description: 'Lists integration event catalog entries with optional pagination. Admin only.',
64
+ inputSchema: {
65
+ type: 'object',
66
+ properties: {
67
+ page: { type: 'number', description: 'Page number (default: 1)' },
68
+ pageSize: { type: 'number', description: 'Items per page (default: 20)' },
69
+ search: { type: 'string', description: 'Search term' },
70
+ sortField: { type: 'string', description: 'Field to sort by' },
71
+ sortOrder: { type: 'string', enum: ['asc', 'desc'], description: 'Sort direction' },
72
+ },
73
+ },
74
+ readOnly: true,
75
+ }),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", [Object, Object]),
78
+ __metadata("design:returntype", Promise)
79
+ ], CoreIntegrationEventsMcpTools.prototype, "listIntegrationEvents", null);
80
+ __decorate([
81
+ (0, mcp_tool_decorator_1.McpTool)({
82
+ name: 'core.integration-events.options',
83
+ description: 'Returns active integration event options (for dropdown selection). Admin only.',
84
+ inputSchema: { type: 'object', properties: {} },
85
+ readOnly: true,
86
+ }),
87
+ __metadata("design:type", Function),
88
+ __metadata("design:paramtypes", [Object, Object]),
89
+ __metadata("design:returntype", Promise)
90
+ ], CoreIntegrationEventsMcpTools.prototype, "getIntegrationEventOptions", null);
91
+ __decorate([
92
+ (0, mcp_tool_decorator_1.McpTool)({
93
+ name: 'core.integration-events.get',
94
+ description: 'Returns a single integration event catalog entry by ID. Admin only.',
95
+ inputSchema: {
96
+ type: 'object',
97
+ properties: {
98
+ id: { type: 'number', description: 'Event catalog entry ID' },
99
+ },
100
+ required: ['id'],
101
+ },
102
+ readOnly: true,
103
+ }),
104
+ __metadata("design:type", Function),
105
+ __metadata("design:paramtypes", [Object, Object]),
106
+ __metadata("design:returntype", Promise)
107
+ ], CoreIntegrationEventsMcpTools.prototype, "getIntegrationEvent", null);
108
+ __decorate([
109
+ (0, mcp_tool_decorator_1.McpTool)({
110
+ name: 'core.integration-events.create',
111
+ description: 'Creates a new integration event catalog entry. Admin only.',
112
+ inputSchema: {
113
+ type: 'object',
114
+ properties: {
115
+ slug: { type: 'string', description: 'Event slug (unique identifier)' },
116
+ name: { type: 'string', description: 'Event display name' },
117
+ module: { type: 'string', description: 'Module this event belongs to' },
118
+ description: { type: 'string', description: 'Event description' },
119
+ status: { type: 'string', description: 'Event status (active, inactive)' },
120
+ },
121
+ required: ['slug', 'name'],
122
+ },
123
+ }),
124
+ __metadata("design:type", Function),
125
+ __metadata("design:paramtypes", [Object, Object]),
126
+ __metadata("design:returntype", Promise)
127
+ ], CoreIntegrationEventsMcpTools.prototype, "createIntegrationEvent", null);
128
+ __decorate([
129
+ (0, mcp_tool_decorator_1.McpTool)({
130
+ name: 'core.integration-events.update',
131
+ description: 'Updates an integration event catalog entry by ID. Admin only.',
132
+ inputSchema: {
133
+ type: 'object',
134
+ properties: {
135
+ id: { type: 'number', description: 'Event catalog entry ID' },
136
+ slug: { type: 'string', description: 'New slug' },
137
+ name: { type: 'string', description: 'New display name' },
138
+ description: { type: 'string', description: 'New description' },
139
+ status: { type: 'string', description: 'New status' },
140
+ },
141
+ required: ['id'],
142
+ },
143
+ }),
144
+ __metadata("design:type", Function),
145
+ __metadata("design:paramtypes", [Object, Object]),
146
+ __metadata("design:returntype", Promise)
147
+ ], CoreIntegrationEventsMcpTools.prototype, "updateIntegrationEvent", null);
148
+ __decorate([
149
+ (0, mcp_tool_decorator_1.McpTool)({
150
+ name: 'core.integration-events.delete',
151
+ description: 'Deletes one or more integration event catalog entries by their IDs. Admin only.',
152
+ inputSchema: {
153
+ type: 'object',
154
+ properties: {
155
+ ids: { type: 'array', items: { type: 'number' }, description: 'Entry IDs to delete' },
156
+ },
157
+ required: ['ids'],
158
+ },
159
+ }),
160
+ __metadata("design:type", Function),
161
+ __metadata("design:paramtypes", [Object, Object]),
162
+ __metadata("design:returntype", Promise)
163
+ ], CoreIntegrationEventsMcpTools.prototype, "deleteIntegrationEvents", null);
164
+ exports.CoreIntegrationEventsMcpTools = CoreIntegrationEventsMcpTools = __decorate([
165
+ (0, common_1.Injectable)(),
166
+ __metadata("design:paramtypes", [integration_event_catalog_service_1.IntegrationEventCatalogService])
167
+ ], CoreIntegrationEventsMcpTools);
168
+ //# sourceMappingURL=core-integration-events.mcp-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-integration-events.mcp-tools.js","sourceRoot":"","sources":["../../../src/mcp/tools/core-integration-events.mcp-tools.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mHAA6G;AAC7G,yEAA2D;AAIpD,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACxC,YAA6B,cAA8C;QAA9C,mBAAc,GAAd,cAAc,CAAgC;IAAG,CAAC;IAiBzE,AAAN,KAAK,CAAC,qBAAqB,CACzB,IAAmG,EACnG,QAAoB;;QAEpB,OAAO,IAAI,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E,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;aACtF;YACD,QAAQ,EAAE,CAAC,KAAK,CAAC;SAClB;KACF,CAAC;;;;4EAGD;wCA9GU,6BAA6B;IADzC,IAAA,mBAAU,GAAE;qCAEkC,kEAA8B;GADhE,6BAA6B,CA+GzC"}
@@ -0,0 +1,32 @@
1
+ import { MailProfileService } from '../../mail-profile/mail-profile.service';
2
+ import { McpContext } from '../types/mcp-context.type';
3
+ export declare class CoreMailProfileMcpTools {
4
+ private readonly mailProfileService;
5
+ constructor(mailProfileService: MailProfileService);
6
+ listMailProfiles(args: {
7
+ page?: number;
8
+ pageSize?: number;
9
+ search?: string;
10
+ sortField?: string;
11
+ sortOrder?: string;
12
+ }, _context: McpContext): Promise<any>;
13
+ getMailProfile(args: {
14
+ id: number;
15
+ }, _context: McpContext): Promise<any>;
16
+ createMailProfile(args: {
17
+ name: string;
18
+ host: string;
19
+ port: number;
20
+ username: string;
21
+ password?: string;
22
+ }, _context: McpContext): Promise<any>;
23
+ updateMailProfile(args: {
24
+ id: number;
25
+ [key: string]: any;
26
+ }, _context: McpContext): Promise<any>;
27
+ deleteMailProfiles(args: {
28
+ ids: number[];
29
+ }, _context: McpContext): Promise<any>;
30
+ testMailProfile(args: Record<string, any>, _context: McpContext): Promise<any>;
31
+ }
32
+ //# sourceMappingURL=core-mail-profile.mcp-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-mail-profile.mcp-tools.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/core-mail-profile.mcp-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,qBACa,uBAAuB;IACtB,OAAO,CA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var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.CoreMailProfileMcpTools = void 0;
24
+ const common_1 = require("@nestjs/common");
25
+ const mail_profile_service_1 = require("../../mail-profile/mail-profile.service");
26
+ const mcp_tool_decorator_1 = require("../decorators/mcp-tool.decorator");
27
+ let CoreMailProfileMcpTools = class CoreMailProfileMcpTools {
28
+ constructor(mailProfileService) {
29
+ this.mailProfileService = mailProfileService;
30
+ }
31
+ async listMailProfiles(args, _context) {
32
+ var _a, _b, _c, _d, _e;
33
+ return this.mailProfileService.list({
34
+ page: (_a = args.page) !== null && _a !== void 0 ? _a : 1,
35
+ pageSize: (_b = args.pageSize) !== null && _b !== void 0 ? _b : 20,
36
+ search: (_c = args.search) !== null && _c !== void 0 ? _c : '',
37
+ sortField: (_d = args.sortField) !== null && _d !== void 0 ? _d : 'id',
38
+ sortOrder: (_e = args.sortOrder) !== null && _e !== void 0 ? _e : 'asc',
39
+ fields: '',
40
+ });
41
+ }
42
+ async getMailProfile(args, _context) {
43
+ return this.mailProfileService.get(args.id);
44
+ }
45
+ async createMailProfile(args, _context) {
46
+ return this.mailProfileService.create(args);
47
+ }
48
+ async updateMailProfile(args, _context) {
49
+ const { id } = args, data = __rest(args, ["id"]);
50
+ return this.mailProfileService.update({ id, data: data });
51
+ }
52
+ async deleteMailProfiles(args, _context) {
53
+ return this.mailProfileService.delete({ ids: args.ids });
54
+ }
55
+ async testMailProfile(args, _context) {
56
+ return this.mailProfileService.test(args);
57
+ }
58
+ };
59
+ exports.CoreMailProfileMcpTools = CoreMailProfileMcpTools;
60
+ __decorate([
61
+ (0, mcp_tool_decorator_1.McpTool)({
62
+ name: 'core.mail-profile.list',
63
+ description: 'Lists mail profiles with optional pagination. Admin only.',
64
+ inputSchema: {
65
+ type: 'object',
66
+ properties: {
67
+ page: { type: 'number', description: 'Page number (default: 1)' },
68
+ pageSize: { type: 'number', description: 'Items per page (default: 20)' },
69
+ search: { type: 'string', description: 'Search term' },
70
+ sortField: { type: 'string', description: 'Field to sort by' },
71
+ sortOrder: { type: 'string', enum: ['asc', 'desc'], description: 'Sort direction' },
72
+ },
73
+ },
74
+ readOnly: true,
75
+ }),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", [Object, Object]),
78
+ __metadata("design:returntype", Promise)
79
+ ], CoreMailProfileMcpTools.prototype, "listMailProfiles", null);
80
+ __decorate([
81
+ (0, mcp_tool_decorator_1.McpTool)({
82
+ name: 'core.mail-profile.get',
83
+ description: 'Returns a single mail profile by ID. Admin only.',
84
+ inputSchema: {
85
+ type: 'object',
86
+ properties: {
87
+ id: { type: 'number', description: 'Mail profile ID' },
88
+ },
89
+ required: ['id'],
90
+ },
91
+ readOnly: true,
92
+ }),
93
+ __metadata("design:type", Function),
94
+ __metadata("design:paramtypes", [Object, Object]),
95
+ __metadata("design:returntype", Promise)
96
+ ], CoreMailProfileMcpTools.prototype, "getMailProfile", null);
97
+ __decorate([
98
+ (0, mcp_tool_decorator_1.McpTool)({
99
+ name: 'core.mail-profile.create',
100
+ description: 'Creates a new mail profile (SMTP configuration). Admin only.',
101
+ inputSchema: {
102
+ type: 'object',
103
+ properties: {
104
+ name: { type: 'string', description: 'Profile name' },
105
+ host: { type: 'string', description: 'SMTP host' },
106
+ port: { type: 'number', description: 'SMTP port' },
107
+ username: { type: 'string', description: 'SMTP username' },
108
+ password: { type: 'string', description: 'SMTP password' },
109
+ },
110
+ required: ['name', 'host', 'port', 'username'],
111
+ },
112
+ }),
113
+ __metadata("design:type", Function),
114
+ __metadata("design:paramtypes", [Object, Object]),
115
+ __metadata("design:returntype", Promise)
116
+ ], CoreMailProfileMcpTools.prototype, "createMailProfile", null);
117
+ __decorate([
118
+ (0, mcp_tool_decorator_1.McpTool)({
119
+ name: 'core.mail-profile.update',
120
+ description: 'Updates an existing mail profile by ID. Admin only.',
121
+ inputSchema: {
122
+ type: 'object',
123
+ properties: {
124
+ id: { type: 'number', description: 'Mail profile ID' },
125
+ name: { type: 'string', description: 'New profile name' },
126
+ host: { type: 'string', description: 'New SMTP host' },
127
+ port: { type: 'number', description: 'New SMTP port' },
128
+ username: { type: 'string', description: 'New SMTP username' },
129
+ password: { type: 'string', description: 'New SMTP password' },
130
+ },
131
+ required: ['id'],
132
+ },
133
+ }),
134
+ __metadata("design:type", Function),
135
+ __metadata("design:paramtypes", [Object, Object]),
136
+ __metadata("design:returntype", Promise)
137
+ ], CoreMailProfileMcpTools.prototype, "updateMailProfile", null);
138
+ __decorate([
139
+ (0, mcp_tool_decorator_1.McpTool)({
140
+ name: 'core.mail-profile.delete',
141
+ description: 'Deletes one or more mail profiles by their IDs. Admin only.',
142
+ inputSchema: {
143
+ type: 'object',
144
+ properties: {
145
+ ids: { type: 'array', items: { type: 'number' }, description: 'Mail profile IDs to delete' },
146
+ },
147
+ required: ['ids'],
148
+ },
149
+ }),
150
+ __metadata("design:type", Function),
151
+ __metadata("design:paramtypes", [Object, Object]),
152
+ __metadata("design:returntype", Promise)
153
+ ], CoreMailProfileMcpTools.prototype, "deleteMailProfiles", null);
154
+ __decorate([
155
+ (0, mcp_tool_decorator_1.McpTool)({
156
+ name: 'core.mail-profile.test',
157
+ description: 'Tests a mail profile by sending a test message. Admin only.',
158
+ inputSchema: {
159
+ type: 'object',
160
+ properties: {
161
+ name: { type: 'string', description: 'Profile name' },
162
+ host: { type: 'string', description: 'SMTP host' },
163
+ port: { type: 'number', description: 'SMTP port' },
164
+ username: { type: 'string', description: 'SMTP username' },
165
+ password: { type: 'string', description: 'SMTP password' },
166
+ },
167
+ required: ['host', 'port', 'username'],
168
+ },
169
+ }),
170
+ __metadata("design:type", Function),
171
+ __metadata("design:paramtypes", [Object, Object]),
172
+ __metadata("design:returntype", Promise)
173
+ ], CoreMailProfileMcpTools.prototype, "testMailProfile", null);
174
+ exports.CoreMailProfileMcpTools = CoreMailProfileMcpTools = __decorate([
175
+ (0, common_1.Injectable)(),
176
+ __metadata("design:paramtypes", [mail_profile_service_1.MailProfileService])
177
+ ], CoreMailProfileMcpTools);
178
+ //# sourceMappingURL=core-mail-profile.mcp-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-mail-profile.mcp-tools.js","sourceRoot":"","sources":["../../../src/mcp/tools/core-mail-profile.mcp-tools.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,kFAA6E;AAC7E,yEAA2D;AAIpD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAA6B,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IAAG,CAAC;IAiBjE,AAAN,KAAK,CAAC,gBAAgB,CACpB,IAAmG,EACnG,QAAoB;;QAEpB,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YAClC,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,mCAAI,CAAC;YACpB,Q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D,QAAQ,EAAE,CAAC,KAAK,CAAC;SAClB;KACF,CAAC;;;;iEAGD;AAiBK;IAfL,IAAA,4BAAO,EAAC;QACP,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,6DAA6D;QAC1E,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;gBACrD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE;gBAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE;gBAClD,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;gBAC1D,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;aAC3D;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC;SACvC;KACF,CAAC;;;;8DAGD;kCAxHU,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAEsC,yCAAkB;GADxD,uBAAuB,CAyHnC"}
@@ -0,0 +1,14 @@
1
+ import { MailSentService } from '../../mail-sent/mail-sent.service';
2
+ import { McpContext } from '../types/mcp-context.type';
3
+ export declare class CoreMailSentMcpTools {
4
+ private readonly mailSentService;
5
+ constructor(mailSentService: MailSentService);
6
+ listMailSent(args: Record<string, any>, _context: McpContext): Promise<any>;
7
+ getMailSent(args: {
8
+ id: number;
9
+ }, context: McpContext): Promise<any>;
10
+ deleteMailSent(args: {
11
+ ids: number[];
12
+ }, context: McpContext): Promise<any>;
13
+ }
14
+ //# sourceMappingURL=core-mail-sent.mcp-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-mail-sent.mcp-tools.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/core-mail-sent.mcp-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,eAAe;IAsBvD,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IA4B3E,WAAW,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAepE,cAAc,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;CAGjF"}