@hed-hog/core 0.0.386 → 0.0.390

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 (556) hide show
  1. package/README.md +12 -11
  2. package/dist/access-log/access-log.interceptor.d.ts.map +1 -1
  3. package/dist/access-log/access-log.interceptor.js +4 -2
  4. package/dist/access-log/access-log.interceptor.js.map +1 -1
  5. package/dist/ai/ai-attachment.fragments.d.ts +23 -0
  6. package/dist/ai/ai-attachment.fragments.d.ts.map +1 -0
  7. package/dist/ai/ai-attachment.fragments.js +34 -0
  8. package/dist/ai/ai-attachment.fragments.js.map +1 -0
  9. package/dist/ai/ai.controller.d.ts +7 -16
  10. package/dist/ai/ai.controller.d.ts.map +1 -1
  11. package/dist/ai/ai.prompts.d.ts +16 -0
  12. package/dist/ai/ai.prompts.d.ts.map +1 -0
  13. package/dist/ai/ai.prompts.js +37 -0
  14. package/dist/ai/ai.prompts.js.map +1 -0
  15. package/dist/ai/ai.service.d.ts +63 -12
  16. package/dist/ai/ai.service.d.ts.map +1 -1
  17. package/dist/ai/ai.service.js +215 -88
  18. package/dist/ai/ai.service.js.map +1 -1
  19. package/dist/ai/dto/chat.dto.d.ts +4 -1
  20. package/dist/ai/dto/chat.dto.d.ts.map +1 -1
  21. package/dist/ai/dto/chat.dto.js +23 -1
  22. package/dist/ai/dto/chat.dto.js.map +1 -1
  23. package/dist/ai/dto/create-agent.dto.d.ts +1 -1
  24. package/dist/ai/dto/create-agent.dto.d.ts.map +1 -1
  25. package/dist/ai/dto/create-agent.dto.js +1 -1
  26. package/dist/ai/dto/create-agent.dto.js.map +1 -1
  27. package/dist/ai/dto/update-agent.dto.d.ts +1 -1
  28. package/dist/ai/dto/update-agent.dto.d.ts.map +1 -1
  29. package/dist/ai/dto/update-agent.dto.js +1 -1
  30. package/dist/ai/dto/update-agent.dto.js.map +1 -1
  31. package/dist/ai-instruction/ai-instruction.controller.d.ts +61 -7
  32. package/dist/ai-instruction/ai-instruction.controller.d.ts.map +1 -1
  33. package/dist/ai-instruction/ai-instruction.controller.js +63 -20
  34. package/dist/ai-instruction/ai-instruction.controller.js.map +1 -1
  35. package/dist/ai-instruction/ai-instruction.module.d.ts.map +1 -1
  36. package/dist/ai-instruction/ai-instruction.module.js +13 -2
  37. package/dist/ai-instruction/ai-instruction.module.js.map +1 -1
  38. package/dist/ai-instruction/ai-instruction.service.d.ts +131 -6
  39. package/dist/ai-instruction/ai-instruction.service.d.ts.map +1 -1
  40. package/dist/ai-instruction/ai-instruction.service.js +533 -60
  41. package/dist/ai-instruction/ai-instruction.service.js.map +1 -1
  42. package/dist/ai-instruction/ai-prompt-builder.service.d.ts +8 -0
  43. package/dist/ai-instruction/ai-prompt-builder.service.d.ts.map +1 -1
  44. package/dist/ai-instruction/ai-prompt-builder.service.js +10 -1
  45. package/dist/ai-instruction/ai-prompt-builder.service.js.map +1 -1
  46. package/dist/ai-instruction/ai-prompt-registry.d.ts +45 -0
  47. package/dist/ai-instruction/ai-prompt-registry.d.ts.map +1 -0
  48. package/dist/ai-instruction/ai-prompt-registry.js +49 -0
  49. package/dist/ai-instruction/ai-prompt-registry.js.map +1 -0
  50. package/dist/ai-instruction/ai-prompt-resolver.service.d.ts +89 -0
  51. package/dist/ai-instruction/ai-prompt-resolver.service.d.ts.map +1 -0
  52. package/dist/ai-instruction/ai-prompt-resolver.service.js +222 -0
  53. package/dist/ai-instruction/ai-prompt-resolver.service.js.map +1 -0
  54. package/dist/ai-instruction/ai-prompt-template.util.d.ts +70 -0
  55. package/dist/ai-instruction/ai-prompt-template.util.d.ts.map +1 -0
  56. package/dist/ai-instruction/ai-prompt-template.util.js +154 -0
  57. package/dist/ai-instruction/ai-prompt-template.util.js.map +1 -0
  58. package/dist/ai-instruction/dto/create-ai-instruction.dto.d.ts +5 -0
  59. package/dist/ai-instruction/dto/create-ai-instruction.dto.d.ts.map +1 -1
  60. package/dist/ai-instruction/dto/create-ai-instruction.dto.js +27 -1
  61. package/dist/ai-instruction/dto/create-ai-instruction.dto.js.map +1 -1
  62. package/dist/ai-instruction/dto/preview-ai-instruction.dto.d.ts +14 -0
  63. package/dist/ai-instruction/dto/preview-ai-instruction.dto.d.ts.map +1 -0
  64. package/dist/ai-instruction/dto/preview-ai-instruction.dto.js +42 -0
  65. package/dist/ai-instruction/dto/preview-ai-instruction.dto.js.map +1 -0
  66. package/dist/ai-instruction/dto/update-ai-instruction.dto.d.ts +11 -0
  67. package/dist/ai-instruction/dto/update-ai-instruction.dto.d.ts.map +1 -1
  68. package/dist/ai-instruction/dto/update-ai-instruction.dto.js +34 -0
  69. package/dist/ai-instruction/dto/update-ai-instruction.dto.js.map +1 -1
  70. package/dist/ai-instruction/types/ai-instruction.types.d.ts +13 -1
  71. package/dist/ai-instruction/types/ai-instruction.types.d.ts.map +1 -1
  72. package/dist/ai-instruction/types/ai-instruction.types.js +10 -0
  73. package/dist/ai-instruction/types/ai-instruction.types.js.map +1 -1
  74. package/dist/auth/auth.controller.d.ts +26 -10
  75. package/dist/auth/auth.controller.d.ts.map +1 -1
  76. package/dist/auth/auth.controller.js +49 -21
  77. package/dist/auth/auth.controller.js.map +1 -1
  78. package/dist/auth/auth.service.d.ts +35 -9
  79. package/dist/auth/auth.service.d.ts.map +1 -1
  80. package/dist/auth/auth.service.js +78 -29
  81. package/dist/auth/auth.service.js.map +1 -1
  82. package/dist/captcha/captcha.module.d.ts +3 -0
  83. package/dist/captcha/captcha.module.d.ts.map +1 -0
  84. package/dist/captcha/captcha.module.js +23 -0
  85. package/dist/captcha/captcha.module.js.map +1 -0
  86. package/dist/captcha/captcha.service.d.ts +38 -0
  87. package/dist/captcha/captcha.service.d.ts.map +1 -0
  88. package/dist/captcha/captcha.service.js +144 -0
  89. package/dist/captcha/captcha.service.js.map +1 -0
  90. package/dist/challenge/challenge.service.d.ts +16 -7
  91. package/dist/challenge/challenge.service.d.ts.map +1 -1
  92. package/dist/challenge/challenge.service.js +64 -16
  93. package/dist/challenge/challenge.service.js.map +1 -1
  94. package/dist/core.module.d.ts +3 -1
  95. package/dist/core.module.d.ts.map +1 -1
  96. package/dist/core.module.js +29 -2
  97. package/dist/core.module.js.map +1 -1
  98. package/dist/dashboard/dashboard/dashboard.controller.d.ts +15 -15
  99. package/dist/dashboard/dashboard/dashboard.service.d.ts +15 -15
  100. package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +6 -6
  101. package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +6 -6
  102. package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +20 -20
  103. package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +20 -20
  104. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +1 -1
  105. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +1 -1
  106. package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +13 -13
  107. package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +13 -13
  108. package/dist/file/file.service.d.ts +6 -0
  109. package/dist/file/file.service.d.ts.map +1 -1
  110. package/dist/file/file.service.js +44 -4
  111. package/dist/file/file.service.js.map +1 -1
  112. package/dist/incident/incident-notifier.service.d.ts +36 -0
  113. package/dist/incident/incident-notifier.service.d.ts.map +1 -0
  114. package/dist/incident/incident-notifier.service.js +208 -0
  115. package/dist/incident/incident-notifier.service.js.map +1 -0
  116. package/dist/incident/incident.controller.d.ts +23 -0
  117. package/dist/incident/incident.controller.d.ts.map +1 -0
  118. package/dist/incident/incident.controller.js +75 -0
  119. package/dist/incident/incident.controller.js.map +1 -0
  120. package/dist/incident/incident.module.d.ts +7 -0
  121. package/dist/incident/incident.module.d.ts.map +1 -0
  122. package/dist/incident/incident.module.js +32 -0
  123. package/dist/incident/incident.module.js.map +1 -0
  124. package/dist/incident/incident.service.d.ts +72 -0
  125. package/dist/incident/incident.service.d.ts.map +1 -0
  126. package/dist/incident/incident.service.js +184 -0
  127. package/dist/incident/incident.service.js.map +1 -0
  128. package/dist/index.d.ts +27 -0
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +31 -0
  131. package/dist/index.js.map +1 -1
  132. package/dist/integration-profile/dto/test.dto.d.ts +13 -0
  133. package/dist/integration-profile/dto/test.dto.d.ts.map +1 -0
  134. package/dist/integration-profile/dto/test.dto.js +26 -0
  135. package/dist/integration-profile/dto/test.dto.js.map +1 -0
  136. package/dist/integration-profile/integration-profile.controller.d.ts +12 -1
  137. package/dist/integration-profile/integration-profile.controller.d.ts.map +1 -1
  138. package/dist/integration-profile/integration-profile.controller.js +9 -1
  139. package/dist/integration-profile/integration-profile.controller.js.map +1 -1
  140. package/dist/integration-profile/integration-profile.module.d.ts +6 -1
  141. package/dist/integration-profile/integration-profile.module.d.ts.map +1 -1
  142. package/dist/integration-profile/integration-profile.module.js +26 -3
  143. package/dist/integration-profile/integration-profile.module.js.map +1 -1
  144. package/dist/integration-profile/integration-profile.secrets.d.ts.map +1 -1
  145. package/dist/integration-profile/integration-profile.secrets.js +12 -2
  146. package/dist/integration-profile/integration-profile.secrets.js.map +1 -1
  147. package/dist/integration-profile/integration-profile.service.d.ts +28 -2
  148. package/dist/integration-profile/integration-profile.service.d.ts.map +1 -1
  149. package/dist/integration-profile/integration-profile.service.js +105 -31
  150. package/dist/integration-profile/integration-profile.service.js.map +1 -1
  151. package/dist/integration-profile/integration-profile.utils.d.ts +31 -1
  152. package/dist/integration-profile/integration-profile.utils.d.ts.map +1 -1
  153. package/dist/integration-profile/integration-profile.utils.js +35 -4
  154. package/dist/integration-profile/integration-profile.utils.js.map +1 -1
  155. package/dist/integration-profile/testers/ai.testers.d.ts +3 -0
  156. package/dist/integration-profile/testers/ai.testers.d.ts.map +1 -0
  157. package/dist/integration-profile/testers/ai.testers.js +125 -0
  158. package/dist/integration-profile/testers/ai.testers.js.map +1 -0
  159. package/dist/integration-profile/testers/captcha.testers.d.ts +3 -0
  160. package/dist/integration-profile/testers/captcha.testers.d.ts.map +1 -0
  161. package/dist/integration-profile/testers/captcha.testers.js +121 -0
  162. package/dist/integration-profile/testers/captcha.testers.js.map +1 -0
  163. package/dist/integration-profile/testers/email.testers.d.ts +3 -0
  164. package/dist/integration-profile/testers/email.testers.d.ts.map +1 -0
  165. package/dist/integration-profile/testers/email.testers.js +128 -0
  166. package/dist/integration-profile/testers/email.testers.js.map +1 -0
  167. package/dist/integration-profile/testers/http-probe.d.ts +57 -0
  168. package/dist/integration-profile/testers/http-probe.d.ts.map +1 -0
  169. package/dist/integration-profile/testers/http-probe.js +140 -0
  170. package/dist/integration-profile/testers/http-probe.js.map +1 -0
  171. package/dist/integration-profile/testers/index.d.ts +12 -0
  172. package/dist/integration-profile/testers/index.d.ts.map +1 -0
  173. package/dist/integration-profile/testers/index.js +45 -0
  174. package/dist/integration-profile/testers/index.js.map +1 -0
  175. package/dist/integration-profile/testers/infrastructure.testers.d.ts +3 -0
  176. package/dist/integration-profile/testers/infrastructure.testers.d.ts.map +1 -0
  177. package/dist/integration-profile/testers/infrastructure.testers.js +105 -0
  178. package/dist/integration-profile/testers/infrastructure.testers.js.map +1 -0
  179. package/dist/integration-profile/testers/integration-tester.registry.d.ts +17 -0
  180. package/dist/integration-profile/testers/integration-tester.registry.d.ts.map +1 -0
  181. package/dist/integration-profile/testers/integration-tester.registry.js +52 -0
  182. package/dist/integration-profile/testers/integration-tester.registry.js.map +1 -0
  183. package/dist/integration-profile/testers/integration-tester.types.d.ts +55 -0
  184. package/dist/integration-profile/testers/integration-tester.types.d.ts.map +1 -0
  185. package/dist/integration-profile/testers/integration-tester.types.js +16 -0
  186. package/dist/integration-profile/testers/integration-tester.types.js.map +1 -0
  187. package/dist/integration-profile/testers/messaging.testers.d.ts +3 -0
  188. package/dist/integration-profile/testers/messaging.testers.d.ts.map +1 -0
  189. package/dist/integration-profile/testers/messaging.testers.js +70 -0
  190. package/dist/integration-profile/testers/messaging.testers.js.map +1 -0
  191. package/dist/integration-profile/testers/oauth.testers.d.ts +3 -0
  192. package/dist/integration-profile/testers/oauth.testers.d.ts.map +1 -0
  193. package/dist/integration-profile/testers/oauth.testers.js +285 -0
  194. package/dist/integration-profile/testers/oauth.testers.js.map +1 -0
  195. package/dist/integration-profile/testers/payment.testers.d.ts +3 -0
  196. package/dist/integration-profile/testers/payment.testers.d.ts.map +1 -0
  197. package/dist/integration-profile/testers/payment.testers.js +169 -0
  198. package/dist/integration-profile/testers/payment.testers.js.map +1 -0
  199. package/dist/integration-profile/testers/storage.testers.d.ts +3 -0
  200. package/dist/integration-profile/testers/storage.testers.d.ts.map +1 -0
  201. package/dist/integration-profile/testers/storage.testers.js +208 -0
  202. package/dist/integration-profile/testers/storage.testers.js.map +1 -0
  203. package/dist/language/en.json +4 -2
  204. package/dist/language/pt.json +4 -2
  205. package/dist/leaked-password/leaked-password.controller.d.ts +24 -0
  206. package/dist/leaked-password/leaked-password.controller.d.ts.map +1 -0
  207. package/dist/leaked-password/leaked-password.controller.js +78 -0
  208. package/dist/leaked-password/leaked-password.controller.js.map +1 -0
  209. package/dist/leaked-password/leaked-password.module.d.ts +8 -0
  210. package/dist/leaked-password/leaked-password.module.d.ts.map +1 -0
  211. package/dist/leaked-password/leaked-password.module.js +31 -0
  212. package/dist/leaked-password/leaked-password.module.js.map +1 -0
  213. package/dist/leaked-password/leaked-password.service.d.ts +64 -0
  214. package/dist/leaked-password/leaked-password.service.d.ts.map +1 -0
  215. package/dist/leaked-password/leaked-password.service.js +218 -0
  216. package/dist/leaked-password/leaked-password.service.js.map +1 -0
  217. package/dist/locale/locale.controller.d.ts +1 -1
  218. package/dist/locale/locale.service.d.ts +1 -1
  219. package/dist/mail/dto/preview.dto.d.ts +18 -0
  220. package/dist/mail/dto/preview.dto.d.ts.map +1 -0
  221. package/dist/mail/dto/preview.dto.js +66 -0
  222. package/dist/mail/dto/preview.dto.js.map +1 -0
  223. package/dist/mail/dto/send.dto.d.ts +7 -0
  224. package/dist/mail/dto/send.dto.d.ts.map +1 -1
  225. package/dist/mail/dto/send.dto.js +10 -0
  226. package/dist/mail/dto/send.dto.js.map +1 -1
  227. package/dist/mail/mail.controller.d.ts +4 -0
  228. package/dist/mail/mail.controller.d.ts.map +1 -1
  229. package/dist/mail/mail.controller.js +16 -2
  230. package/dist/mail/mail.controller.js.map +1 -1
  231. package/dist/mail/mail.service.d.ts +23 -2
  232. package/dist/mail/mail.service.d.ts.map +1 -1
  233. package/dist/mail/mail.service.js +102 -13
  234. package/dist/mail/mail.service.js.map +1 -1
  235. package/dist/mail-layout/dto/update.dto.d.ts +17 -0
  236. package/dist/mail-layout/dto/update.dto.d.ts.map +1 -0
  237. package/dist/mail-layout/dto/update.dto.js +27 -0
  238. package/dist/mail-layout/dto/update.dto.js.map +1 -0
  239. package/dist/mail-layout/mail-layout.controller.d.ts +15 -0
  240. package/dist/mail-layout/mail-layout.controller.d.ts.map +1 -0
  241. package/dist/mail-layout/mail-layout.controller.js +71 -0
  242. package/dist/mail-layout/mail-layout.controller.js.map +1 -0
  243. package/dist/mail-layout/mail-layout.module.d.ts +3 -0
  244. package/dist/mail-layout/mail-layout.module.d.ts.map +1 -0
  245. package/dist/mail-layout/mail-layout.module.js +35 -0
  246. package/dist/mail-layout/mail-layout.module.js.map +1 -0
  247. package/dist/mail-layout/mail-layout.service.d.ts +27 -0
  248. package/dist/mail-layout/mail-layout.service.d.ts.map +1 -0
  249. package/dist/mail-layout/mail-layout.service.js +80 -0
  250. package/dist/mail-layout/mail-layout.service.js.map +1 -0
  251. package/dist/mcp-chat/mcp-chat.controller.d.ts +2 -2
  252. package/dist/mcp-chat/mcp-chat.service.d.ts +24 -2
  253. package/dist/mcp-chat/mcp-chat.service.d.ts.map +1 -1
  254. package/dist/mcp-chat/mcp-chat.service.js +80 -24
  255. package/dist/mcp-chat/mcp-chat.service.js.map +1 -1
  256. package/dist/menu/menu.controller.d.ts +3 -3
  257. package/dist/menu/menu.service.d.ts +3 -3
  258. package/dist/notification/notification.controller.d.ts +12 -12
  259. package/dist/notification/notification.service.d.ts +12 -12
  260. package/dist/oauth/oauth-token-broker.service.d.ts +72 -0
  261. package/dist/oauth/oauth-token-broker.service.d.ts.map +1 -0
  262. package/dist/oauth/oauth-token-broker.service.js +258 -0
  263. package/dist/oauth/oauth-token-broker.service.js.map +1 -0
  264. package/dist/oauth/oauth.module.d.ts.map +1 -1
  265. package/dist/oauth/oauth.module.js +3 -1
  266. package/dist/oauth/oauth.module.js.map +1 -1
  267. package/dist/oauth/oauth.service.d.ts +2 -0
  268. package/dist/oauth/oauth.service.d.ts.map +1 -1
  269. package/dist/oauth/oauth.service.js +6 -3
  270. package/dist/oauth/oauth.service.js.map +1 -1
  271. package/dist/pdf/pdf.service.d.ts +8 -0
  272. package/dist/pdf/pdf.service.d.ts.map +1 -1
  273. package/dist/pdf/pdf.service.js +52 -0
  274. package/dist/pdf/pdf.service.js.map +1 -1
  275. package/dist/presence/presence.controller.d.ts +16 -0
  276. package/dist/presence/presence.controller.d.ts.map +1 -0
  277. package/dist/presence/presence.controller.js +60 -0
  278. package/dist/presence/presence.controller.js.map +1 -0
  279. package/dist/presence/presence.listener.d.ts +29 -0
  280. package/dist/presence/presence.listener.d.ts.map +1 -0
  281. package/dist/presence/presence.listener.js +82 -0
  282. package/dist/presence/presence.listener.js.map +1 -0
  283. package/dist/presence/presence.module.d.ts +3 -0
  284. package/dist/presence/presence.module.d.ts.map +1 -0
  285. package/dist/presence/presence.module.js +32 -0
  286. package/dist/presence/presence.module.js.map +1 -0
  287. package/dist/presence/presence.service.d.ts +42 -0
  288. package/dist/presence/presence.service.d.ts.map +1 -0
  289. package/dist/presence/presence.service.js +147 -0
  290. package/dist/presence/presence.service.js.map +1 -0
  291. package/dist/profile/dto/delete-account.dto.d.ts +8 -0
  292. package/dist/profile/dto/delete-account.dto.d.ts.map +1 -0
  293. package/dist/profile/dto/delete-account.dto.js +22 -0
  294. package/dist/profile/dto/delete-account.dto.js.map +1 -0
  295. package/dist/profile/events/profile-account-deleted.event.d.ts +12 -0
  296. package/dist/profile/events/profile-account-deleted.event.d.ts.map +1 -0
  297. package/dist/profile/events/profile-account-deleted.event.js +17 -0
  298. package/dist/profile/events/profile-account-deleted.event.js.map +1 -0
  299. package/dist/profile/profile.controller.d.ts +24 -17
  300. package/dist/profile/profile.controller.d.ts.map +1 -1
  301. package/dist/profile/profile.controller.js +75 -46
  302. package/dist/profile/profile.controller.js.map +1 -1
  303. package/dist/profile/profile.service.d.ts +34 -21
  304. package/dist/profile/profile.service.d.ts.map +1 -1
  305. package/dist/profile/profile.service.js +113 -37
  306. package/dist/profile/profile.service.js.map +1 -1
  307. package/dist/realtime/realtime.gateway.d.ts +48 -0
  308. package/dist/realtime/realtime.gateway.d.ts.map +1 -0
  309. package/dist/realtime/realtime.gateway.js +156 -0
  310. package/dist/realtime/realtime.gateway.js.map +1 -0
  311. package/dist/realtime/realtime.module.d.ts +8 -0
  312. package/dist/realtime/realtime.module.d.ts.map +1 -0
  313. package/dist/realtime/realtime.module.js +29 -0
  314. package/dist/realtime/realtime.module.js.map +1 -0
  315. package/dist/realtime/realtime.service.d.ts +51 -0
  316. package/dist/realtime/realtime.service.d.ts.map +1 -0
  317. package/dist/realtime/realtime.service.js +177 -0
  318. package/dist/realtime/realtime.service.js.map +1 -0
  319. package/dist/redis/redis-pubsub.d.ts +27 -0
  320. package/dist/redis/redis-pubsub.d.ts.map +1 -0
  321. package/dist/redis/redis-pubsub.js +140 -0
  322. package/dist/redis/redis-pubsub.js.map +1 -0
  323. package/dist/role/role.controller.d.ts +3 -3
  324. package/dist/role/role.service.d.ts +3 -3
  325. package/dist/setting/dto/create.dto.d.ts.map +1 -1
  326. package/dist/setting/dto/create.dto.js +9 -2
  327. package/dist/setting/dto/create.dto.js.map +1 -1
  328. package/dist/setting/setting.controller.d.ts +5 -5
  329. package/dist/setting/setting.service.d.ts +8 -5
  330. package/dist/setting/setting.service.d.ts.map +1 -1
  331. package/dist/setting/setting.service.js +25 -1
  332. package/dist/setting/setting.service.js.map +1 -1
  333. package/dist/user/dto/create-with-email-and-password.dto.d.ts +2 -0
  334. package/dist/user/dto/create-with-email-and-password.dto.d.ts.map +1 -1
  335. package/dist/user/dto/create-with-email-and-password.dto.js +5 -0
  336. package/dist/user/dto/create-with-email-and-password.dto.js.map +1 -1
  337. package/dist/user/dto/query-user-mail-list.dto.d.ts +5 -0
  338. package/dist/user/dto/query-user-mail-list.dto.d.ts.map +1 -0
  339. package/dist/user/dto/query-user-mail-list.dto.js +25 -0
  340. package/dist/user/dto/query-user-mail-list.dto.js.map +1 -0
  341. package/dist/user/user-credential.util.d.ts +19 -0
  342. package/dist/user/user-credential.util.d.ts.map +1 -0
  343. package/dist/user/user-credential.util.js +32 -0
  344. package/dist/user/user-credential.util.js.map +1 -0
  345. package/dist/user/user.controller.d.ts +17 -5
  346. package/dist/user/user.controller.d.ts.map +1 -1
  347. package/dist/user/user.controller.js +18 -3
  348. package/dist/user/user.controller.js.map +1 -1
  349. package/dist/user/user.service.d.ts +28 -6
  350. package/dist/user/user.service.d.ts.map +1 -1
  351. package/dist/user/user.service.js +204 -13
  352. package/dist/user/user.service.js.map +1 -1
  353. package/dist/validators/is-strong-password-with-settings.validator.d.ts.map +1 -1
  354. package/dist/validators/is-strong-password-with-settings.validator.js +11 -0
  355. package/dist/validators/is-strong-password-with-settings.validator.js.map +1 -1
  356. package/dist/validators/service-locator.d.ts +9 -0
  357. package/dist/validators/service-locator.d.ts.map +1 -1
  358. package/dist/validators/service-locator.js +12 -0
  359. package/dist/validators/service-locator.js.map +1 -1
  360. package/dist/webhook-integration/webhook-integration.controller.d.ts +5 -8
  361. package/dist/webhook-integration/webhook-integration.controller.d.ts.map +1 -1
  362. package/dist/webhook-integration/webhook-integration.controller.js +31 -8
  363. package/dist/webhook-integration/webhook-integration.controller.js.map +1 -1
  364. package/dist/webhook-integration/webhook-integration.module.d.ts.map +1 -1
  365. package/dist/webhook-integration/webhook-integration.module.js +5 -0
  366. package/dist/webhook-integration/webhook-integration.module.js.map +1 -1
  367. package/dist/webhook-integration/webhook-integration.service.d.ts +33 -1
  368. package/dist/webhook-integration/webhook-integration.service.d.ts.map +1 -1
  369. package/dist/webhook-integration/webhook-integration.service.js +109 -4
  370. package/dist/webhook-integration/webhook-integration.service.js.map +1 -1
  371. package/dist/webhook-integration/webhook-protocol.registry.d.ts +63 -0
  372. package/dist/webhook-integration/webhook-protocol.registry.d.ts.map +1 -0
  373. package/dist/webhook-integration/webhook-protocol.registry.js +51 -0
  374. package/dist/webhook-integration/webhook-protocol.registry.js.map +1 -0
  375. package/dist/whatsapp-sender/whatsapp-sender.module.d.ts +3 -0
  376. package/dist/whatsapp-sender/whatsapp-sender.module.d.ts.map +1 -0
  377. package/dist/whatsapp-sender/whatsapp-sender.module.js +23 -0
  378. package/dist/whatsapp-sender/whatsapp-sender.module.js.map +1 -0
  379. package/dist/whatsapp-sender/whatsapp-sender.service.d.ts +50 -0
  380. package/dist/whatsapp-sender/whatsapp-sender.service.d.ts.map +1 -0
  381. package/dist/whatsapp-sender/whatsapp-sender.service.js +224 -0
  382. package/dist/whatsapp-sender/whatsapp-sender.service.js.map +1 -0
  383. package/hedhog/data/integration_provider.yaml +16 -0
  384. package/hedhog/data/mail.yaml +88 -61
  385. package/hedhog/data/mail_layout.yaml +188 -0
  386. package/hedhog/data/menu.yaml +67 -3
  387. package/hedhog/data/route.yaml +135 -0
  388. package/hedhog/data/setting_group.yaml +139 -1
  389. package/hedhog/frontend/app/account/components/mfa-setup-dialog.tsx.ejs +36 -0
  390. package/hedhog/frontend/app/account/components/two-factor-auth.tsx.ejs +2 -0
  391. package/hedhog/frontend/app/account/hooks/use-mfa-setup.ts.ejs +10 -7
  392. package/hedhog/frontend/app/ai_agent/page.tsx.ejs +7 -4
  393. package/hedhog/frontend/app/ai_instruction/_components/ai-instruction-form.tsx.ejs +580 -0
  394. package/hedhog/frontend/app/ai_instruction/_components/ai-instruction-preview.tsx.ejs +150 -0
  395. package/hedhog/frontend/app/ai_instruction/_components/ai-instruction-versions.tsx.ejs +199 -0
  396. package/hedhog/frontend/app/ai_instruction/_components/prompt-diff.tsx.ejs +63 -0
  397. package/hedhog/frontend/app/ai_instruction/_lib/line-diff.spec.ts.ejs +59 -0
  398. package/hedhog/frontend/app/ai_instruction/_lib/line-diff.ts.ejs +72 -0
  399. package/hedhog/frontend/app/ai_instruction/_lib/prompt-template.spec.ts.ejs +170 -0
  400. package/hedhog/frontend/app/ai_instruction/_lib/prompt-template.ts.ejs +167 -0
  401. package/hedhog/frontend/app/ai_instruction/_lib/types.ts.ejs +99 -0
  402. package/hedhog/frontend/app/ai_instruction/page.tsx.ejs +422 -0
  403. package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +51 -4
  404. package/hedhog/frontend/app/incidents/page.tsx.ejs +400 -0
  405. package/hedhog/frontend/app/integration/profiles/page.tsx.ejs +169 -92
  406. package/hedhog/frontend/app/mail/layout/page.tsx.ejs +344 -0
  407. package/hedhog/frontend/app/mail/template/page.tsx.ejs +155 -121
  408. package/hedhog/frontend/app/mcp_chat/page.tsx.ejs +129 -17
  409. package/hedhog/frontend/app/pages/_components/page-delete-dialog.tsx.ejs +343 -0
  410. package/hedhog/frontend/app/pages/_components/page-detail-sheet.tsx.ejs +438 -0
  411. package/hedhog/frontend/app/pages/_components/page-wizard-sheet.tsx.ejs +1009 -0
  412. package/hedhog/frontend/app/pages/_components/system-page-types.ts.ejs +56 -0
  413. package/hedhog/frontend/app/pages/_components/use-system-pages.ts.ejs +171 -0
  414. package/hedhog/frontend/app/pages/page.tsx.ejs +514 -0
  415. package/hedhog/frontend/app/users/page.tsx.ejs +119 -13
  416. package/hedhog/frontend/app/users/user-activity-timeline.tsx.ejs +231 -0
  417. package/hedhog/frontend/app/users/user-mails.tsx.ejs +399 -0
  418. package/hedhog/frontend/app/users/user-sheet.tsx.ejs +60 -75
  419. package/hedhog/frontend/messages/en.json +521 -3
  420. package/hedhog/frontend/messages/pt.json +521 -3
  421. package/hedhog/table/ai_agent.yaml +1 -0
  422. package/hedhog/table/ai_instruction.yaml +15 -0
  423. package/hedhog/table/leaked_password.yaml +18 -0
  424. package/hedhog/table/mail_layout.yaml +35 -0
  425. package/hedhog/table/mail_var.yaml +4 -0
  426. package/hedhog/table/setting.yaml +1 -0
  427. package/hedhog/table/system_incident.yaml +59 -0
  428. package/hedhog/table/user_presence.yaml +36 -0
  429. package/hedhog/table/webhook_integration.yaml +64 -43
  430. package/package.json +8 -4
  431. package/src/access-log/access-log.interceptor.ts +4 -2
  432. package/src/ai/ai-attachment.fragments.spec.ts +319 -0
  433. package/src/ai/ai-attachment.fragments.ts +35 -0
  434. package/src/ai/ai.prompts.ts +38 -0
  435. package/src/ai/ai.service.spec.ts +280 -0
  436. package/src/ai/ai.service.ts +338 -82
  437. package/src/ai/dto/chat.dto.ts +33 -3
  438. package/src/ai/dto/create-agent.dto.ts +2 -2
  439. package/src/ai/dto/update-agent.dto.ts +2 -2
  440. package/src/ai-instruction/ai-instruction.controller.ts +40 -9
  441. package/src/ai-instruction/ai-instruction.module.ts +13 -2
  442. package/src/ai-instruction/ai-instruction.service.spec.ts +658 -0
  443. package/src/ai-instruction/ai-instruction.service.ts +661 -62
  444. package/src/ai-instruction/ai-prompt-builder.service.ts +10 -1
  445. package/src/ai-instruction/ai-prompt-registry.ts +87 -0
  446. package/src/ai-instruction/ai-prompt-resolver.service.spec.ts +375 -0
  447. package/src/ai-instruction/ai-prompt-resolver.service.ts +295 -0
  448. package/src/ai-instruction/ai-prompt-template.util.spec.ts +162 -0
  449. package/src/ai-instruction/ai-prompt-template.util.ts +199 -0
  450. package/src/ai-instruction/dto/create-ai-instruction.dto.ts +39 -3
  451. package/src/ai-instruction/dto/preview-ai-instruction.dto.ts +26 -0
  452. package/src/ai-instruction/dto/update-ai-instruction.dto.ts +42 -1
  453. package/src/ai-instruction/types/ai-instruction.types.ts +24 -1
  454. package/src/auth/auth.controller.ts +33 -6
  455. package/src/auth/auth.service.spec.ts +3 -1
  456. package/src/auth/auth.service.ts +103 -37
  457. package/src/captcha/captcha.module.ts +10 -0
  458. package/src/captcha/captcha.service.spec.ts +210 -0
  459. package/src/captcha/captcha.service.ts +191 -0
  460. package/src/challenge/challenge.service.spec.ts +39 -4
  461. package/src/challenge/challenge.service.ts +72 -17
  462. package/src/core.module.ts +27 -1
  463. package/src/file/file.service.spec.ts +105 -0
  464. package/src/file/file.service.ts +60 -3
  465. package/src/incident/incident-notifier.service.spec.ts +205 -0
  466. package/src/incident/incident-notifier.service.ts +241 -0
  467. package/src/incident/incident.controller.ts +38 -0
  468. package/src/incident/incident.module.ts +19 -0
  469. package/src/incident/incident.service.spec.ts +150 -0
  470. package/src/incident/incident.service.ts +209 -0
  471. package/src/index.ts +38 -0
  472. package/src/integration-profile/dto/test.dto.ts +19 -0
  473. package/src/integration-profile/integration-profile.controller.ts +10 -1
  474. package/src/integration-profile/integration-profile.module.spec.ts +51 -0
  475. package/src/integration-profile/integration-profile.module.ts +23 -4
  476. package/src/integration-profile/integration-profile.secrets.ts +12 -2
  477. package/src/integration-profile/integration-profile.service.spec.ts +279 -0
  478. package/src/integration-profile/integration-profile.service.ts +132 -29
  479. package/src/integration-profile/integration-profile.utils.spec.ts +97 -0
  480. package/src/integration-profile/integration-profile.utils.ts +79 -3
  481. package/src/integration-profile/testers/ai.testers.ts +165 -0
  482. package/src/integration-profile/testers/captcha.testers.spec.ts +92 -0
  483. package/src/integration-profile/testers/captcha.testers.ts +139 -0
  484. package/src/integration-profile/testers/email.testers.ts +161 -0
  485. package/src/integration-profile/testers/http-probe.spec.ts +153 -0
  486. package/src/integration-profile/testers/http-probe.ts +171 -0
  487. package/src/integration-profile/testers/index.ts +30 -0
  488. package/src/integration-profile/testers/infrastructure.testers.ts +122 -0
  489. package/src/integration-profile/testers/integration-tester.registry.spec.ts +75 -0
  490. package/src/integration-profile/testers/integration-tester.registry.ts +43 -0
  491. package/src/integration-profile/testers/integration-tester.types.ts +61 -0
  492. package/src/integration-profile/testers/messaging.testers.ts +102 -0
  493. package/src/integration-profile/testers/oauth.testers.spec.ts +220 -0
  494. package/src/integration-profile/testers/oauth.testers.ts +305 -0
  495. package/src/integration-profile/testers/payment.testers.ts +185 -0
  496. package/src/integration-profile/testers/remaining.testers.spec.ts +401 -0
  497. package/src/integration-profile/testers/storage.testers.spec.ts +185 -0
  498. package/src/integration-profile/testers/storage.testers.ts +226 -0
  499. package/src/integration-profile/testers/tester-coverage.spec.ts +58 -0
  500. package/src/language/en.json +4 -2
  501. package/src/language/pt.json +4 -2
  502. package/src/leaked-password/README.md +83 -0
  503. package/src/leaked-password/leaked-password.controller.ts +52 -0
  504. package/src/leaked-password/leaked-password.module.ts +18 -0
  505. package/src/leaked-password/leaked-password.service.ts +242 -0
  506. package/src/leaked-password/seed/build-seed-sql.mjs +180 -0
  507. package/src/leaked-password/seed/common-passwords.txt +335 -0
  508. package/src/mail/dto/preview.dto.ts +50 -0
  509. package/src/mail/dto/send.dto.ts +14 -1
  510. package/src/mail/mail-template.spec.ts +197 -0
  511. package/src/mail/mail.controller.ts +9 -2
  512. package/src/mail/mail.service.spec.ts +116 -1
  513. package/src/mail/mail.service.ts +118 -12
  514. package/src/mail-layout/dto/update.dto.ts +19 -0
  515. package/src/mail-layout/mail-layout.controller.ts +47 -0
  516. package/src/mail-layout/mail-layout.module.ts +22 -0
  517. package/src/mail-layout/mail-layout.service.ts +94 -0
  518. package/src/mcp-chat/mcp-chat.service.spec.ts +236 -0
  519. package/src/mcp-chat/mcp-chat.service.ts +122 -26
  520. package/src/oauth/oauth-token-broker.service.spec.ts +172 -0
  521. package/src/oauth/oauth-token-broker.service.ts +363 -0
  522. package/src/oauth/oauth.module.ts +3 -1
  523. package/src/oauth/oauth.service.ts +8 -2
  524. package/src/pdf/pdf.service.ts +75 -0
  525. package/src/presence/presence.controller.ts +29 -0
  526. package/src/presence/presence.listener.ts +53 -0
  527. package/src/presence/presence.module.ts +19 -0
  528. package/src/presence/presence.service.spec.ts +97 -0
  529. package/src/presence/presence.service.ts +160 -0
  530. package/src/profile/dto/delete-account.dto.ts +11 -0
  531. package/src/profile/events/profile-account-deleted.event.ts +13 -0
  532. package/src/profile/profile.controller.ts +52 -36
  533. package/src/profile/profile.service.ts +143 -41
  534. package/src/realtime/realtime.gateway.ts +138 -0
  535. package/src/realtime/realtime.module.ts +16 -0
  536. package/src/realtime/realtime.service.spec.ts +50 -0
  537. package/src/realtime/realtime.service.ts +187 -0
  538. package/src/redis/redis-pubsub.ts +179 -0
  539. package/src/setting/dto/create.dto.ts +13 -2
  540. package/src/setting/setting.service.spec.ts +56 -0
  541. package/src/setting/setting.service.ts +29 -1
  542. package/src/user/dto/create-with-email-and-password.dto.ts +6 -1
  543. package/src/user/dto/query-user-mail-list.dto.ts +10 -0
  544. package/src/user/user-credential.util.ts +35 -0
  545. package/src/user/user.controller.ts +17 -2
  546. package/src/user/user.service.spec.ts +153 -0
  547. package/src/user/user.service.ts +255 -12
  548. package/src/validators/is-strong-password-with-settings.validator.ts +12 -0
  549. package/src/validators/service-locator.ts +15 -0
  550. package/src/webhook-integration/webhook-integration.controller.ts +40 -2
  551. package/src/webhook-integration/webhook-integration.module.ts +5 -0
  552. package/src/webhook-integration/webhook-integration.service.ts +133 -0
  553. package/src/webhook-integration/webhook-protocol.registry.spec.ts +70 -0
  554. package/src/webhook-integration/webhook-protocol.registry.ts +93 -0
  555. package/src/whatsapp-sender/whatsapp-sender.module.ts +10 -0
  556. package/src/whatsapp-sender/whatsapp-sender.service.ts +313 -0
@@ -0,0 +1,72 @@
1
+ import { PageOrderDirection, PaginationService } from '@hed-hog/api-pagination';
2
+ import { PrismaService } from '@hed-hog/api-prisma';
3
+ import { IncidentNotifierService } from './incident-notifier.service';
4
+ export type IncidentSeverity = 'warning' | 'error' | 'critical';
5
+ export interface RecordIncidentInput {
6
+ /** `<modulo>.<area>`, ex.: `core.mail`, `legacy.reconcile`. */
7
+ source: string;
8
+ /** Identificador estável da falha, ex.: `mail_send_failed`. */
9
+ code: string;
10
+ message: string;
11
+ severity?: IncidentSeverity;
12
+ /**
13
+ * Torna o incidente distinto dentro de `(source, code)`. Use algo estável e
14
+ * de baixa cardinalidade — o slug do template, o id do provider. **Nunca** um
15
+ * id de usuário ou timestamp: viraria uma linha por ocorrência, que é
16
+ * exatamente o que esta tabela existe para evitar.
17
+ */
18
+ key?: string;
19
+ context?: Record<string, unknown>;
20
+ }
21
+ export interface IncidentListParams {
22
+ page?: number;
23
+ pageSize?: number;
24
+ search?: string;
25
+ sortField?: string;
26
+ sortOrder?: PageOrderDirection;
27
+ fields?: string;
28
+ source?: string;
29
+ severity?: IncidentSeverity;
30
+ status?: 'open' | 'resolved' | 'all';
31
+ }
32
+ /**
33
+ * Registro central das falhas que hoje somem em `.catch(() => null)` e
34
+ * `logger.error`.
35
+ *
36
+ * Não substitui a fila: job que falha já tem `queue_job_event` com timeline. O
37
+ * alvo aqui são os caminhos fire-and-forget, onde ninguém fica sabendo.
38
+ */
39
+ export declare class IncidentService {
40
+ private readonly prisma;
41
+ private readonly pagination;
42
+ private readonly notifier;
43
+ private readonly logger;
44
+ constructor(prisma: PrismaService, pagination: PaginationService, notifier: IncidentNotifierService);
45
+ /**
46
+ * Nunca lança e nunca bloqueia quem chamou — o remédio não pode virar a
47
+ * doença. Registrar um incidente jamais pode derrubar o fluxo que já estava
48
+ * degradado.
49
+ */
50
+ record(input: RecordIncidentInput): void;
51
+ /** Versão aguardável, para quem precisa garantir a gravação (testes, jobs). */
52
+ persist(input: RecordIncidentInput): Promise<void>;
53
+ list(params: IncidentListParams): Promise<{
54
+ total: any;
55
+ lastPage: number;
56
+ page: number;
57
+ pageSize: number;
58
+ prev: number;
59
+ next: number;
60
+ data: any[];
61
+ }>;
62
+ /** Contadores da barra de KPI e das abas de filtro. */
63
+ summary(): Promise<{
64
+ open: any;
65
+ resolved: any;
66
+ bySeverity: any;
67
+ bySource: any;
68
+ }>;
69
+ resolve(id: number, userId?: number): Promise<any>;
70
+ reopen(id: number): Promise<any>;
71
+ }
72
+ //# sourceMappingURL=incident.service.d.ts.map
@@ -0,0 +1 @@
1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,aAAa,EAErB,UAAU,EAAE,iBAAiB,EAE7B,QAAQ,EAAE,uBAAuB;IAGpD;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAOxC,+EAA+E;IACzE,OAAO,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAiElD,IAAI,CAAC,MAAM,EAAE,kBAAkB;;;;;;;;;IA0BrC,uDAAuD;IACjD,OAAO;;;;;;IA+BP,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAOnC,MAAM,CAAC,EAAE,EAAE,MAAM;CAMxB"}
@@ -0,0 +1,184 @@
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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var IncidentService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IncidentService = void 0;
17
+ const api_pagination_1 = require("@hed-hog/api-pagination");
18
+ const api_prisma_1 = require("@hed-hog/api-prisma");
19
+ const common_1 = require("@nestjs/common");
20
+ const crypto_1 = require("crypto");
21
+ const incident_notifier_service_1 = require("./incident-notifier.service");
22
+ const MAX_MESSAGE_LENGTH = 2000;
23
+ /**
24
+ * Registro central das falhas que hoje somem em `.catch(() => null)` e
25
+ * `logger.error`.
26
+ *
27
+ * Não substitui a fila: job que falha já tem `queue_job_event` com timeline. O
28
+ * alvo aqui são os caminhos fire-and-forget, onde ninguém fica sabendo.
29
+ */
30
+ let IncidentService = IncidentService_1 = class IncidentService {
31
+ constructor(prisma, pagination, notifier) {
32
+ this.prisma = prisma;
33
+ this.pagination = pagination;
34
+ this.notifier = notifier;
35
+ this.logger = new common_1.Logger(IncidentService_1.name);
36
+ }
37
+ /**
38
+ * Nunca lança e nunca bloqueia quem chamou — o remédio não pode virar a
39
+ * doença. Registrar um incidente jamais pode derrubar o fluxo que já estava
40
+ * degradado.
41
+ */
42
+ record(input) {
43
+ void this.persist(input).catch((error) => {
44
+ const message = error instanceof Error ? error.message : String(error);
45
+ this.logger.warn(`Falha ao registrar incidente ${input.source}/${input.code}: ${message}`);
46
+ });
47
+ }
48
+ /** Versão aguardável, para quem precisa garantir a gravação (testes, jobs). */
49
+ async persist(input) {
50
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
51
+ const source = String((_a = input.source) !== null && _a !== void 0 ? _a : '').trim().slice(0, 120);
52
+ const code = String((_b = input.code) !== null && _b !== void 0 ? _b : '').trim().slice(0, 120);
53
+ if (!source || !code)
54
+ return;
55
+ const fingerprint = (0, crypto_1.createHash)('sha256')
56
+ .update(`${source}|${code}|${(_c = input.key) !== null && _c !== void 0 ? _c : ''}`)
57
+ .digest('hex');
58
+ const now = new Date();
59
+ const message = String((_d = input.message) !== null && _d !== void 0 ? _d : '').slice(0, MAX_MESSAGE_LENGTH);
60
+ // Lido antes do upsert só para saber se é novo ou reabertura — é o que
61
+ // decide se vale um aviso. Repetição pura não avisa.
62
+ const existing = await this.prisma.system_incident.findUnique({
63
+ where: { fingerprint },
64
+ select: { id: true, resolved_at: true, notified_at: true },
65
+ });
66
+ const incident = await this.prisma.system_incident.upsert({
67
+ where: { fingerprint },
68
+ // Repetição vira contador, não linha nova. `resolved_at: null` reabre um
69
+ // incidente que alguém já tinha dado como resolvido e voltou a acontecer.
70
+ update: {
71
+ occurrences: { increment: 1 },
72
+ last_seen_at: now,
73
+ message,
74
+ context: ((_e = input.context) !== null && _e !== void 0 ? _e : undefined),
75
+ severity: (_f = input.severity) !== null && _f !== void 0 ? _f : 'error',
76
+ resolved_at: null,
77
+ resolved_by: null,
78
+ updated_at: now,
79
+ },
80
+ create: {
81
+ source,
82
+ code,
83
+ severity: (_g = input.severity) !== null && _g !== void 0 ? _g : 'error',
84
+ message,
85
+ context: ((_h = input.context) !== null && _h !== void 0 ? _h : undefined),
86
+ fingerprint,
87
+ occurrences: 1,
88
+ first_seen_at: now,
89
+ last_seen_at: now,
90
+ },
91
+ select: { id: true, occurrences: true },
92
+ });
93
+ const reason = !existing ? 'created' : existing.resolved_at ? 'reopened' : null;
94
+ if (!reason)
95
+ return;
96
+ await this.notifier.notify({
97
+ id: incident.id,
98
+ source,
99
+ code,
100
+ severity: (_j = input.severity) !== null && _j !== void 0 ? _j : 'error',
101
+ message,
102
+ occurrences: incident.occurrences,
103
+ context: (_k = input.context) !== null && _k !== void 0 ? _k : null,
104
+ notifiedAt: (_l = existing === null || existing === void 0 ? void 0 : existing.notified_at) !== null && _l !== void 0 ? _l : null,
105
+ reason,
106
+ });
107
+ }
108
+ async list(params) {
109
+ var _a;
110
+ const where = {};
111
+ if (params.source)
112
+ where.source = params.source;
113
+ if (params.severity)
114
+ where.severity = params.severity;
115
+ // Aberto é o default: a tela existe para mostrar o que precisa de ação.
116
+ if (params.status !== 'all') {
117
+ where.resolved_at = params.status === 'resolved' ? { not: null } : null;
118
+ }
119
+ if (params.search) {
120
+ where.OR = [
121
+ { message: { contains: params.search, mode: 'insensitive' } },
122
+ { code: { contains: params.search, mode: 'insensitive' } },
123
+ { source: { contains: params.search, mode: 'insensitive' } },
124
+ ];
125
+ }
126
+ return this.pagination.paginate(this.prisma.system_incident, Object.assign(Object.assign({}, params), { fields: (_a = params.fields) !== null && _a !== void 0 ? _a : '' }), { where, orderBy: { last_seen_at: 'desc' } });
127
+ }
128
+ /** Contadores da barra de KPI e das abas de filtro. */
129
+ async summary() {
130
+ const [open, resolved, bySeverity, bySource] = await Promise.all([
131
+ this.prisma.system_incident.count({ where: { resolved_at: null } }),
132
+ this.prisma.system_incident.count({ where: { resolved_at: { not: null } } }),
133
+ this.prisma.system_incident.groupBy({
134
+ by: ['severity'],
135
+ where: { resolved_at: null },
136
+ _count: { _all: true },
137
+ _sum: { occurrences: true },
138
+ }),
139
+ this.prisma.system_incident.groupBy({
140
+ by: ['source'],
141
+ where: { resolved_at: null },
142
+ _count: { _all: true },
143
+ orderBy: { _count: { source: 'desc' } },
144
+ take: 20,
145
+ }),
146
+ ]);
147
+ return {
148
+ open,
149
+ resolved,
150
+ bySeverity: bySeverity.map((row) => {
151
+ var _a, _b;
152
+ return ({
153
+ severity: row.severity,
154
+ incidents: row._count._all,
155
+ occurrences: Number((_b = (_a = row._sum) === null || _a === void 0 ? void 0 : _a.occurrences) !== null && _b !== void 0 ? _b : 0),
156
+ });
157
+ }),
158
+ bySource: bySource.map((row) => ({ source: row.source, incidents: row._count._all })),
159
+ };
160
+ }
161
+ async resolve(id, userId) {
162
+ return this.prisma.system_incident.update({
163
+ where: { id },
164
+ data: { resolved_at: new Date(), resolved_by: userId !== null && userId !== void 0 ? userId : null, updated_at: new Date() },
165
+ });
166
+ }
167
+ async reopen(id) {
168
+ return this.prisma.system_incident.update({
169
+ where: { id },
170
+ data: { resolved_at: null, resolved_by: null, updated_at: new Date() },
171
+ });
172
+ }
173
+ };
174
+ exports.IncidentService = IncidentService;
175
+ exports.IncidentService = IncidentService = IncidentService_1 = __decorate([
176
+ (0, common_1.Injectable)(),
177
+ __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_prisma_1.PrismaService))),
178
+ __param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_pagination_1.PaginationService))),
179
+ __param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => incident_notifier_service_1.IncidentNotifierService))),
180
+ __metadata("design:paramtypes", [api_prisma_1.PrismaService,
181
+ api_pagination_1.PaginationService,
182
+ incident_notifier_service_1.IncidentNotifierService])
183
+ ], IncidentService);
184
+ //# sourceMappingURL=incident.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident.service.js","sourceRoot":"","sources":["../../src/incident/incident.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAgF;AAChF,oDAAoD;AACpD,2CAAwE;AACxE,mCAAoC;AACpC,2EAAsE;AAiCtE,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEhC;;;;;;GAMG;AAEI,IAAM,eAAe,uBAArB,MAAM,eAAe;IAG1B,YAEE,MAAsC,EAEtC,UAA8C,EAE9C,QAAkD;QAJjC,WAAM,GAAN,MAAM,CAAe;QAErB,eAAU,GAAV,UAAU,CAAmB;QAE7B,aAAQ,GAAR,QAAQ,CAAyB;QARnC,WAAM,GAAG,IAAI,eAAM,CAAC,iBAAe,CAAC,IAAI,CAAC,CAAC;IASxD,CAAC;IAEJ;;;;OAIG;IACH,MAAM,CAAC,KAA0B;QAC/B,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YACvC,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gCAAgC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC,CAAC;QAC7F,CAAC,CAAC,CAAC;IACL,CAAC;IAED,+EAA+E;IAC/E,KAAK,CAAC,OAAO,CAAC,KAA0B;;QACtC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAA,KAAK,CAAC,MAAM,mCAAI,EAAE,CAAC,CAAC,IAAI,EAAE,C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K,CAAC,OAAO,CAAC,EAAU,EAAE,MAAe;QACvC,OAAQ,IAAI,CAAC,MAAc,CAAC,eAAe,CAAC,MAAM,CAAC;YACjD,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,EAAE;SACvF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,OAAQ,IAAI,CAAC,MAAc,CAAC,eAAe,CAAC,MAAM,CAAC;YACjD,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,EAAE;SACvE,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAjKY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAiB,CAAC,CAAC,CAAA;IAE3C,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mDAAuB,CAAC,CAAC,CAAA;qCAHzB,0BAAa;QAET,kCAAiB;QAEnB,mDAAuB;GATzC,eAAe,CAiK3B"}
package/dist/index.d.ts CHANGED
@@ -1,12 +1,20 @@
1
1
  export * from './core.module';
2
2
  export * from './auth/auth.service';
3
3
  export * from './auth/guards/auth.guard';
4
+ export * from './captcha/captcha.module';
5
+ export * from './captcha/captcha.service';
4
6
  export * from './menu/menu.service';
5
7
  export * from './role/guards/role.guard';
6
8
  export * from './role/role.service';
7
9
  export * from './screen/screen.service';
8
10
  export * from './user/constants/user.constants';
9
11
  export * from './user/user.service';
12
+ export * from './incident/incident.module';
13
+ export * from './incident/incident.service';
14
+ export * from './leaked-password/leaked-password.module';
15
+ export * from './leaked-password/leaked-password.service';
16
+ export * from './mail-layout/mail-layout.module';
17
+ export * from './mail-layout/mail-layout.service';
10
18
  export * from './mail/mail.module';
11
19
  export * from './mail/mail.service';
12
20
  export * from './integration-profile/integration-profile.module';
@@ -14,6 +22,10 @@ export * from './integration-profile/integration-profile.service';
14
22
  export * from './integration-profile/integration-profile.utils';
15
23
  export * from './integration-profile/integration-profile.secrets';
16
24
  export * from './integration-profile/integration-credential-crypto.service';
25
+ export * from './integration-profile/testers/integration-tester.types';
26
+ export * from './integration-profile/testers/integration-tester.registry';
27
+ export * from './whatsapp-sender/whatsapp-sender.module';
28
+ export * from './whatsapp-sender/whatsapp-sender.service';
17
29
  export * from './file/file.module';
18
30
  export * from './file/file.service';
19
31
  export * from './pdf/pdf.module';
@@ -22,12 +34,20 @@ export * from './setting/setting.module';
22
34
  export * from './setting/setting.service';
23
35
  export * from './ai/ai.module';
24
36
  export * from './ai/ai.service';
37
+ export * from './ai-instruction/ai-instruction.module';
38
+ export * from './ai-instruction/ai-instruction.service';
39
+ export * from './ai-instruction/ai-prompt-builder.service';
40
+ export * from './ai-instruction/ai-prompt-registry';
41
+ export * from './ai-instruction/ai-prompt-resolver.service';
42
+ export * from './ai-instruction/ai-prompt-template.util';
43
+ export * from './ai-instruction/types/ai-instruction.types';
25
44
  export * from './app-command/app-command.module';
26
45
  export * from './app-command/app-command.registry';
27
46
  export * from './webhook-integration/event-webhook.service';
28
47
  export * from './webhook-integration/integration-event-catalog.service';
29
48
  export * from './webhook-integration/webhook-integration.module';
30
49
  export * from './webhook-integration/webhook-integration.service';
50
+ export * from './webhook-integration/webhook-protocol.registry';
31
51
  export * from './integration/integration.module';
32
52
  export * from './integration/services/domain-event.publisher';
33
53
  export * from './integration/services/event-subscriber.registry';
@@ -49,8 +69,15 @@ export * from './mcp/interfaces/mcp-tool-definition.interface';
49
69
  export * from './mcp/mcp-registry.service';
50
70
  export * from './mcp/mcp.module';
51
71
  export * from './mcp/types/mcp-context.type';
72
+ export * from './oauth/oauth.module';
73
+ export * from './oauth/oauth-token-broker.service';
52
74
  export * from './utils/locale-context';
53
75
  export * from './notification/dto/create-notification.dto';
54
76
  export * from './notification/notification.module';
55
77
  export * from './notification/notification.service';
78
+ export * from './realtime/realtime.module';
79
+ export * from './realtime/realtime.service';
80
+ export * from './realtime/realtime.gateway';
81
+ export * from './presence/presence.module';
82
+ export * from './presence/presence.service';
56
83
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAG9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,kDAAkD,CAAC;AACjE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,6DAA6D,CAAC;AAE5E,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yDAA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C,CAAC;AACtD,cAAc,qBAAqB,CAAC;AAGpC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,yDAAyD,CAAC;AAGxE,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAG7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC;AAGnD,cAAc,wBAAwB,CAAC;AAIvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAG5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -19,6 +19,9 @@ __exportStar(require("./core.module"), exports);
19
19
  // Auth Module
20
20
  __exportStar(require("./auth/auth.service"), exports);
21
21
  __exportStar(require("./auth/guards/auth.guard"), exports);
22
+ // Captcha Module (shared by every public form: campaign signup, sac tickets, ...)
23
+ __exportStar(require("./captcha/captcha.module"), exports);
24
+ __exportStar(require("./captcha/captcha.service"), exports);
22
25
  // Menu Module
23
26
  __exportStar(require("./menu/menu.service"), exports);
24
27
  // Permission Module
@@ -29,6 +32,12 @@ __exportStar(require("./screen/screen.service"), exports);
29
32
  // User Module
30
33
  __exportStar(require("./user/constants/user.constants"), exports);
31
34
  __exportStar(require("./user/user.service"), exports);
35
+ __exportStar(require("./incident/incident.module"), exports);
36
+ __exportStar(require("./incident/incident.service"), exports);
37
+ __exportStar(require("./leaked-password/leaked-password.module"), exports);
38
+ __exportStar(require("./leaked-password/leaked-password.service"), exports);
39
+ __exportStar(require("./mail-layout/mail-layout.module"), exports);
40
+ __exportStar(require("./mail-layout/mail-layout.service"), exports);
32
41
  __exportStar(require("./mail/mail.module"), exports);
33
42
  __exportStar(require("./mail/mail.service"), exports);
34
43
  __exportStar(require("./integration-profile/integration-profile.module"), exports);
@@ -36,6 +45,10 @@ __exportStar(require("./integration-profile/integration-profile.service"), expor
36
45
  __exportStar(require("./integration-profile/integration-profile.utils"), exports);
37
46
  __exportStar(require("./integration-profile/integration-profile.secrets"), exports);
38
47
  __exportStar(require("./integration-profile/integration-credential-crypto.service"), exports);
48
+ __exportStar(require("./integration-profile/testers/integration-tester.types"), exports);
49
+ __exportStar(require("./integration-profile/testers/integration-tester.registry"), exports);
50
+ __exportStar(require("./whatsapp-sender/whatsapp-sender.module"), exports);
51
+ __exportStar(require("./whatsapp-sender/whatsapp-sender.service"), exports);
39
52
  __exportStar(require("./file/file.module"), exports);
40
53
  __exportStar(require("./file/file.service"), exports);
41
54
  __exportStar(require("./pdf/pdf.module"), exports);
@@ -44,12 +57,20 @@ __exportStar(require("./setting/setting.module"), exports);
44
57
  __exportStar(require("./setting/setting.service"), exports);
45
58
  __exportStar(require("./ai/ai.module"), exports);
46
59
  __exportStar(require("./ai/ai.service"), exports);
60
+ __exportStar(require("./ai-instruction/ai-instruction.module"), exports);
61
+ __exportStar(require("./ai-instruction/ai-instruction.service"), exports);
62
+ __exportStar(require("./ai-instruction/ai-prompt-builder.service"), exports);
63
+ __exportStar(require("./ai-instruction/ai-prompt-registry"), exports);
64
+ __exportStar(require("./ai-instruction/ai-prompt-resolver.service"), exports);
65
+ __exportStar(require("./ai-instruction/ai-prompt-template.util"), exports);
66
+ __exportStar(require("./ai-instruction/types/ai-instruction.types"), exports);
47
67
  __exportStar(require("./app-command/app-command.module"), exports);
48
68
  __exportStar(require("./app-command/app-command.registry"), exports);
49
69
  __exportStar(require("./webhook-integration/event-webhook.service"), exports);
50
70
  __exportStar(require("./webhook-integration/integration-event-catalog.service"), exports);
51
71
  __exportStar(require("./webhook-integration/webhook-integration.module"), exports);
52
72
  __exportStar(require("./webhook-integration/webhook-integration.service"), exports);
73
+ __exportStar(require("./webhook-integration/webhook-protocol.registry"), exports);
53
74
  // Integration Module
54
75
  __exportStar(require("./integration/integration.module"), exports);
55
76
  __exportStar(require("./integration/services/domain-event.publisher"), exports);
@@ -74,10 +95,20 @@ __exportStar(require("./mcp/interfaces/mcp-tool-definition.interface"), exports)
74
95
  __exportStar(require("./mcp/mcp-registry.service"), exports);
75
96
  __exportStar(require("./mcp/mcp.module"), exports);
76
97
  __exportStar(require("./mcp/types/mcp-context.type"), exports);
98
+ // OAuth Module
99
+ __exportStar(require("./oauth/oauth.module"), exports);
100
+ __exportStar(require("./oauth/oauth-token-broker.service"), exports);
77
101
  // Utilities
78
102
  __exportStar(require("./utils/locale-context"), exports);
79
103
  // Notification Module
80
104
  __exportStar(require("./notification/dto/create-notification.dto"), exports);
81
105
  __exportStar(require("./notification/notification.module"), exports);
82
106
  __exportStar(require("./notification/notification.service"), exports);
107
+ // Realtime Module (generic WebSocket layer)
108
+ __exportStar(require("./realtime/realtime.module"), exports);
109
+ __exportStar(require("./realtime/realtime.service"), exports);
110
+ __exportStar(require("./realtime/realtime.gateway"), exports);
111
+ // Presence Module
112
+ __exportStar(require("./presence/presence.module"), exports);
113
+ __exportStar(require("./presence/presence.service"), exports);
83
114
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,sDAAoC;AACpC,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,cAAc;AACd,kEAAgD;AAChD,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AAEpC,mFAAiE;AACjE,oFAAkE;AAClE,kFAAgE;AAChE,oFAAkE;AAClE,8FAA4E;AAE5E,qDAAmC;AACnC,sDAAoC;AAEpC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAE1C,iDAA+B;AAC/B,kDAAgC;AAEhC,mEAAiD;AACjD,qEAAmD;AACnD,8EAA4D;AAC5D,0FAAwE;AACxE,mFAAiE;AACjE,oFAAkE;AAElE,qBAAqB;AACrB,mEAAiD;AACjD,gFAA8D;AAC9D,mFAAiE;AACjE,uEAAqD;AACrD,2FAAyE;AACzE,kFAAgE;AAChE,sFAAoE;AACpE,oFAAkE;AAClE,yEAAuD;AACvD,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,sDAAoC;AAEpC,aAAa;AACb,gFAA8D;AAC9D,kFAAgE;AAChE,0FAAwE;AAExE,aAAa;AACb,sEAAoD;AACpD,iFAA+D;AAC/D,6DAA2C;AAC3C,mDAAiC;AACjC,+DAA6C;AAE7C,YAAY;AACZ,yDAAuC;AAGvC,sBAAsB;AACtB,6EAA2D;AAC3D,qEAAmD;AACnD,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,sDAAoC;AACpC,2DAAyC;AAEzC,kFAAkF;AAClF,2DAAyC;AACzC,4DAA0C;AAE1C,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,cAAc;AACd,kEAAgD;AAChD,sDAAoC;AAEpC,6DAA2C;AAC3C,8DAA4C;AAC5C,2EAAyD;AACzD,4EAA0D;AAE1D,mEAAiD;AACjD,oEAAkD;AAClD,qDAAmC;AACnC,sDAAoC;AAEpC,mFAAiE;AACjE,oFAAkE;AAClE,kFAAgE;AAChE,oFAAkE;AAClE,8FAA4E;AAC5E,yFAAuE;AACvE,4FAA0E;AAE1E,2EAAyD;AACzD,4EAA0D;AAE1D,qDAAmC;AACnC,sDAAoC;AAEpC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAE1C,iDAA+B;AAC/B,kDAAgC;AAEhC,yEAAuD;AACvD,0EAAwD;AACxD,6EAA2D;AAC3D,sEAAoD;AACpD,8EAA4D;AAC5D,2EAAyD;AACzD,8EAA4D;AAE5D,mEAAiD;AACjD,qEAAmD;AACnD,8EAA4D;AAC5D,0FAAwE;AACxE,mFAAiE;AACjE,oFAAkE;AAClE,kFAAgE;AAEhE,qBAAqB;AACrB,mEAAiD;AACjD,gFAA8D;AAC9D,mFAAiE;AACjE,uEAAqD;AACrD,2FAAyE;AACzE,kFAAgE;AAChE,sFAAoE;AACpE,oFAAkE;AAClE,yEAAuD;AACvD,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,sDAAoC;AAEpC,aAAa;AACb,gFAA8D;AAC9D,kFAAgE;AAChE,0FAAwE;AAExE,aAAa;AACb,sEAAoD;AACpD,iFAA+D;AAC/D,6DAA2C;AAC3C,mDAAiC;AACjC,+DAA6C;AAE7C,eAAe;AACf,uDAAqC;AACrC,qEAAmD;AAEnD,YAAY;AACZ,yDAAuC;AAGvC,sBAAsB;AACtB,6EAA2D;AAC3D,qEAAmD;AACnD,sEAAoD;AAEpD,4CAA4C;AAC5C,6DAA2C;AAC3C,8DAA4C;AAC5C,8DAA4C;AAE5C,kBAAkB;AAClB,6DAA2C;AAC3C,8DAA4C"}
@@ -0,0 +1,13 @@
1
+ import { CreateDTO } from './create.dto';
2
+ export declare class TestDTO extends CreateDTO {
3
+ /**
4
+ * Perfil ao qual estas credenciais pertencem, quando o teste parte da edição.
5
+ *
6
+ * Sem ele o perfil armazenado só pode ser encontrado pelo `slug` — e o slug é
7
+ * editável: quem renomeia o perfil e testa antes de salvar não casa com nenhuma
8
+ * linha, então os segredos mascarados não são herdados e o teste roda com
9
+ * "********" no lugar da senha. Opcional para não quebrar quem já chama a rota.
10
+ */
11
+ profile_id?: number;
12
+ }
13
+ //# sourceMappingURL=test.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.dto.d.ts","sourceRoot":"","sources":["../../../src/integration-profile/dto/test.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;;;OAOG;IAKH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,26 @@
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.TestDTO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const create_dto_1 = require("./create.dto");
16
+ class TestDTO extends create_dto_1.CreateDTO {
17
+ }
18
+ exports.TestDTO = TestDTO;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.IsInt)(),
22
+ (0, class_validator_1.Min)(1),
23
+ (0, class_transformer_1.Type)(() => Number),
24
+ __metadata("design:type", Number)
25
+ ], TestDTO.prototype, "profile_id", void 0);
26
+ //# sourceMappingURL=test.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.dto.js","sourceRoot":"","sources":["../../../src/integration-profile/dto/test.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAyD;AACzD,6CAAyC;AAEzC,MAAa,OAAQ,SAAQ,sBAAS;CAcrC;AAdD,0BAcC;AADC;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACC"}
@@ -3,6 +3,7 @@ import { Response } from 'express';
3
3
  import { CreateDTO } from './dto/create.dto';
4
4
  import { ExportDTO } from './dto/export.dto';
5
5
  import { ImportConfirmDTO } from './dto/import-confirm.dto';
6
+ import { TestDTO } from './dto/test.dto';
6
7
  import { UpdateDTO } from './dto/update.dto';
7
8
  import { IntegrationProfileService } from './integration-profile.service';
8
9
  export declare class IntegrationProfileController {
@@ -81,9 +82,19 @@ export declare class IntegrationProfileController {
81
82
  type_id: number;
82
83
  config: import("@prisma/client/runtime/library").JsonValue | null;
83
84
  }>;
84
- test(data: CreateDTO): Promise<{
85
+ /**
86
+ * Dispara chamadas HTTP de saída para o endereço do provider, então tem taxa
87
+ * limitada — o ThrottlerGuard não é global neste projeto.
88
+ */
89
+ test(data: TestDTO): Promise<{
90
+ tested_at: string;
91
+ persisted: boolean;
92
+ warning?: string;
93
+ info?: string;
85
94
  success: boolean;
86
95
  destination: string;
96
+ ok: boolean;
97
+ provider: string;
87
98
  }>;
88
99
  update(id: number, data: UpdateDTO): Promise<{
89
100
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"integration-profile.controller.d.ts","sourceRoot":"","sources":["../../src/integration-profile/integration-profile.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAoB/C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,qBAEa,4BAA4B;IAGrC,OAAO,CAAC,QAAQ,CAAC,yBAAyB;gBAAzB,yBAAyB,EAAE,yBAAyB;IAIjE,SAAS;;;;;;;;;;;IAKT,aAAa,CACA,MAAM,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM;;;;;;;;;;;IAShC,IAAI,CACM,gBAAgB,KAAA,EACb,MAAM,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,EAC7B,IAAI,CAAC,EAAE,MAAM;;;;;;;;;IAiBxB,MAAM,CACD,EAAE,GAAG,EAAE,eAAuB,EAAE,EAAE,SAAS,EAC7C,GAAG,EAAE,QAAQ;IAgBhB,GAAG,CAA4B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKzC,MAAM,CAAS,IAAI,EAAE,SAAS;;;;;;;;;;;IAK9B,IAAI,CAAS,IAAI,EAAE,SAAS;;;;IAK5B,MAAM,CACiB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,SAAS;;;;;;;;;;;IAMnB,MAAM,CAAS,IAAI,EAAE,SAAS;;;IAM9B,cAAc,CAAiB,IAAI,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK/C,aAAa,CAAS,IAAI,EAAE,gBAAgB;;;;;;;;;CAMnD"}
1
+ {"version":3,"file":"integration-profile.controller.d.ts","sourceRoot":"","sources":["../../src/integration-profile/integration-profile.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAsB/C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE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ed-hog/api-pagination");
18
18
  const common_1 = require("@nestjs/common");
19
19
  const platform_express_1 = require("@nestjs/platform-express");
20
+ const throttler_1 = require("@nestjs/throttler");
20
21
  const create_dto_1 = require("./dto/create.dto");
21
22
  const export_dto_1 = require("./dto/export.dto");
22
23
  const import_confirm_dto_1 = require("./dto/import-confirm.dto");
24
+ const test_dto_1 = require("./dto/test.dto");
23
25
  const update_dto_1 = require("./dto/update.dto");
24
26
  const integration_profile_service_1 = require("./integration-profile.service");
25
27
  let IntegrationProfileController = class IntegrationProfileController {
@@ -52,6 +54,10 @@ let IntegrationProfileController = class IntegrationProfileController {
52
54
  async create(data) {
53
55
  return this.integrationProfileService.create(data);
54
56
  }
57
+ /**
58
+ * Dispara chamadas HTTP de saída para o endereço do provider, então tem taxa
59
+ * limitada — o ThrottlerGuard não é global neste projeto.
60
+ */
55
61
  async test(data) {
56
62
  return this.integrationProfileService.test(data);
57
63
  }
@@ -122,10 +128,12 @@ __decorate([
122
128
  __metadata("design:returntype", Promise)
123
129
  ], IntegrationProfileController.prototype, "create", null);
124
130
  __decorate([
131
+ (0, common_1.UseGuards)(throttler_1.ThrottlerGuard),
132
+ (0, throttler_1.Throttle)({ default: { limit: 10, ttl: 60000 } }),
125
133
  (0, common_1.Post)('test'),
126
134
  __param(0, (0, common_1.Body)()),
127
135
  __metadata("design:type", Function),
128
- __metadata("design:paramtypes", [create_dto_1.CreateDTO]),
136
+ __metadata("design:paramtypes", [test_dto_1.TestDTO]),
129
137
  __metadata("design:returntype", Promise)
130
138
  ], IntegrationProfileController.prototype, "test", null);
131
139
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"integration-profile.controller.js","sourceRoot":"","sources":["../../src/integration-profile/integration-profile.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA+C;AAC/C,4DAAqD;AACrD,2CAgBwB;AACxB,+DAA2D;AAE3D,iDAA6C;AAC7C,iDAA6C;AAC7C,iEAA4D;AAC5D,iDAA6C;AAC7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qCAAO,eAAS;;0DAEnC;AAIK;IAFL,IAAA,wBAAe,EAAC,IAAA,kCAAe,EAAC,MAAM,CAAC,CAAC;IACxC,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACF,WAAA,IAAA,qBAAY,GAAE,CAAA;;;;kEAEnC;AAGK;IADL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACF,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,qCAAgB;;iEAKjD;uCAtGU,4BAA4B;IAFxC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,qBAAqB,CAAC;IAG7B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,uDAAyB,CAAC,CAAC,CAAA;qCACR,uDAAyB;GAH5D,4BAA4B,CAuGxC"}
1
+ {"version":3,"file":"integration-profile.controller.js","sourceRoot":"","sources":["../../src/integration-profile/integration-profile.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA+C;AAC/C,4DAAqD;AACrD,2CAiBwB;AACxB,+DAA2D;AAC3D,iDAA6D;AAE7D,iDAA6C;AAC7C,iDAA6C;AAC7C,iEAA4D;AAC5D,6CAAyC;AACzC,iDAA6C;AAC7C,+EAA0E;AAInE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAEmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IACpE,CAAC;IAGE,AAAN,KAAK,CAAC,SAAS;QACb,OAAO,IAAI,CAAC,yBAAyB,CAAC,SAAS,EAAE,CAAC;IACpD,CAAC;IAGK,AAAN,KAAK,CAAC,aAAa,CACA,MAAe,EACb,QAAiB;QAEpC,OAAO,IAAI,CAAC,yBAAyB,CAAC,aAAa,CACjD,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EACzC,QAAQ,CACT,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,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AAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,qBAAqB,CAAC;IAG7B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,uDAAyB,CAAC,CAAC,CAAA;qCACR,uDAAyB;GAH5D,4BAA4B,CA6GxC"}
@@ -1,3 +1,8 @@
1
- export declare class IntegrationProfileModule {
1
+ import { OnModuleInit } from '@nestjs/common';
2
+ import { IntegrationTesterRegistry } from './testers/integration-tester.registry';
3
+ export declare class IntegrationProfileModule implements OnModuleInit {
4
+ private readonly testerRegistry;
5
+ constructor(testerRegistry: IntegrationTesterRegistry);
6
+ onModuleInit(): void;
2
7
  }
3
8
  //# sourceMappingURL=integration-profile.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration-profile.module.d.ts","sourceRoot":"","sources":["../../src/integration-profile/integration-profile.module.ts"],"names":[],"mappings":"AAQA,qBAUa,wBAAwB;CAAG"}
1
+ {"version":3,"file":"integration-profile.module.d.ts","sourceRoot":"","sources":["../../src/integration-profile/integration-profile.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMlE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAElF,qBAkBa,wBAAyB,YAAW,YAAY;IAC/C,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,yBAAyB;IAEtE,YAAY;CAMb"}