@renatoascencio/n8n-nodes-evolution-api 0.1.0

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 (423) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +330 -0
  3. package/dist/credentials/EvolutionApi.credentials.d.ts +10 -0
  4. package/dist/credentials/EvolutionApi.credentials.js +84 -0
  5. package/dist/credentials/EvolutionApi.credentials.js.map +1 -0
  6. package/dist/nodes/EvolutionApi/EvolutionApi.node.d.ts +19 -0
  7. package/dist/nodes/EvolutionApi/EvolutionApi.node.js +180 -0
  8. package/dist/nodes/EvolutionApi/EvolutionApi.node.js.map +1 -0
  9. package/dist/nodes/EvolutionApi/EvolutionApi.node.json +22 -0
  10. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.d.ts +18 -0
  11. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js +615 -0
  12. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js.map +1 -0
  13. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.json +19 -0
  14. package/dist/nodes/EvolutionApi/GenericFunctions.d.ts +114 -0
  15. package/dist/nodes/EvolutionApi/GenericFunctions.js +681 -0
  16. package/dist/nodes/EvolutionApi/GenericFunctions.js.map +1 -0
  17. package/dist/nodes/EvolutionApi/constants.d.ts +7 -0
  18. package/dist/nodes/EvolutionApi/constants.js +77 -0
  19. package/dist/nodes/EvolutionApi/constants.js.map +1 -0
  20. package/dist/nodes/EvolutionApi/evolution.svg +11 -0
  21. package/dist/nodes/EvolutionApi/resources/call/index.d.ts +5 -0
  22. package/dist/nodes/EvolutionApi/resources/call/index.js +62 -0
  23. package/dist/nodes/EvolutionApi/resources/call/index.js.map +1 -0
  24. package/dist/nodes/EvolutionApi/resources/call/offer.operation.d.ts +29 -0
  25. package/dist/nodes/EvolutionApi/resources/call/offer.operation.js +56 -0
  26. package/dist/nodes/EvolutionApi/resources/call/offer.operation.js.map +1 -0
  27. package/dist/nodes/EvolutionApi/resources/chat/archive.operation.d.ts +29 -0
  28. package/dist/nodes/EvolutionApi/resources/chat/archive.operation.js +44 -0
  29. package/dist/nodes/EvolutionApi/resources/chat/archive.operation.js.map +1 -0
  30. package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.d.ts +29 -0
  31. package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.js +28 -0
  32. package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.js.map +1 -0
  33. package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.d.ts +29 -0
  34. package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.js +68 -0
  35. package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.js.map +1 -0
  36. package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.d.ts +30 -0
  37. package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.js +143 -0
  38. package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.js.map +1 -0
  39. package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.d.ts +29 -0
  40. package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.js +49 -0
  41. package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.js.map +1 -0
  42. package/dist/nodes/EvolutionApi/resources/chat/get.operation.d.ts +29 -0
  43. package/dist/nodes/EvolutionApi/resources/chat/get.operation.js +28 -0
  44. package/dist/nodes/EvolutionApi/resources/chat/get.operation.js.map +1 -0
  45. package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.d.ts +29 -0
  46. package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.js +23 -0
  47. package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.js.map +1 -0
  48. package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.d.ts +29 -0
  49. package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.js +55 -0
  50. package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.js.map +1 -0
  51. package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.d.ts +30 -0
  52. package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.js +74 -0
  53. package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.js.map +1 -0
  54. package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.d.ts +29 -0
  55. package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.js +124 -0
  56. package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.js.map +1 -0
  57. package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.d.ts +29 -0
  58. package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.js +36 -0
  59. package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.js.map +1 -0
  60. package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.d.ts +29 -0
  61. package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.js +57 -0
  62. package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.js.map +1 -0
  63. package/dist/nodes/EvolutionApi/resources/chat/helpers.d.ts +25 -0
  64. package/dist/nodes/EvolutionApi/resources/chat/helpers.js +219 -0
  65. package/dist/nodes/EvolutionApi/resources/chat/helpers.js.map +1 -0
  66. package/dist/nodes/EvolutionApi/resources/chat/index.d.ts +5 -0
  67. package/dist/nodes/EvolutionApi/resources/chat/index.js +209 -0
  68. package/dist/nodes/EvolutionApi/resources/chat/index.js.map +1 -0
  69. package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.d.ts +29 -0
  70. package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.js +49 -0
  71. package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.js.map +1 -0
  72. package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.d.ts +29 -0
  73. package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.js +48 -0
  74. package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.js.map +1 -0
  75. package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.d.ts +29 -0
  76. package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.js +35 -0
  77. package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.js.map +1 -0
  78. package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.d.ts +29 -0
  79. package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.js +53 -0
  80. package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.js.map +1 -0
  81. package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.d.ts +29 -0
  82. package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.js +44 -0
  83. package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.js.map +1 -0
  84. package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.d.ts +31 -0
  85. package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.js +73 -0
  86. package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.js.map +1 -0
  87. package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.d.ts +38 -0
  88. package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.js +251 -0
  89. package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.js.map +1 -0
  90. package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.d.ts +29 -0
  91. package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.js +44 -0
  92. package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.js.map +1 -0
  93. package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.d.ts +3 -0
  94. package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.js +19 -0
  95. package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.js.map +1 -0
  96. package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.d.ts +29 -0
  97. package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.js +30 -0
  98. package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.js.map +1 -0
  99. package/dist/nodes/EvolutionApi/resources/chatbot/fields.d.ts +10 -0
  100. package/dist/nodes/EvolutionApi/resources/chatbot/fields.js +229 -0
  101. package/dist/nodes/EvolutionApi/resources/chatbot/fields.js.map +1 -0
  102. package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.d.ts +30 -0
  103. package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.js +29 -0
  104. package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.js.map +1 -0
  105. package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.d.ts +29 -0
  106. package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.js +17 -0
  107. package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.js.map +1 -0
  108. package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.d.ts +29 -0
  109. package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.js +18 -0
  110. package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.js.map +1 -0
  111. package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.d.ts +29 -0
  112. package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.js +39 -0
  113. package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.js.map +1 -0
  114. package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.d.ts +29 -0
  115. package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.js +69 -0
  116. package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.js.map +1 -0
  117. package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.d.ts +29 -0
  118. package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.js +17 -0
  119. package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.js.map +1 -0
  120. package/dist/nodes/EvolutionApi/resources/chatbot/helpers.d.ts +24 -0
  121. package/dist/nodes/EvolutionApi/resources/chatbot/helpers.js +273 -0
  122. package/dist/nodes/EvolutionApi/resources/chatbot/helpers.js.map +1 -0
  123. package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.d.ts +29 -0
  124. package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.js +35 -0
  125. package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.js.map +1 -0
  126. package/dist/nodes/EvolutionApi/resources/chatbot/index.d.ts +6 -0
  127. package/dist/nodes/EvolutionApi/resources/chatbot/index.js +210 -0
  128. package/dist/nodes/EvolutionApi/resources/chatbot/index.js.map +1 -0
  129. package/dist/nodes/EvolutionApi/resources/chatbot/methods.d.ts +2 -0
  130. package/dist/nodes/EvolutionApi/resources/chatbot/methods.js +58 -0
  131. package/dist/nodes/EvolutionApi/resources/chatbot/methods.js.map +1 -0
  132. package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.d.ts +33 -0
  133. package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.js +133 -0
  134. package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.js.map +1 -0
  135. package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.d.ts +29 -0
  136. package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.js +112 -0
  137. package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.js.map +1 -0
  138. package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.d.ts +29 -0
  139. package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.js +191 -0
  140. package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.js.map +1 -0
  141. package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.d.ts +29 -0
  142. package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.js +25 -0
  143. package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.js.map +1 -0
  144. package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.d.ts +4 -0
  145. package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.js +26 -0
  146. package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.js.map +1 -0
  147. package/dist/nodes/EvolutionApi/resources/chatwoot/index.d.ts +5 -0
  148. package/dist/nodes/EvolutionApi/resources/chatwoot/index.js +70 -0
  149. package/dist/nodes/EvolutionApi/resources/chatwoot/index.js.map +1 -0
  150. package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.d.ts +30 -0
  151. package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.js +252 -0
  152. package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.js.map +1 -0
  153. package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.d.ts +29 -0
  154. package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.js +25 -0
  155. package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.js.map +1 -0
  156. package/dist/nodes/EvolutionApi/resources/group/create.operation.d.ts +29 -0
  157. package/dist/nodes/EvolutionApi/resources/group/create.operation.js +68 -0
  158. package/dist/nodes/EvolutionApi/resources/group/create.operation.js.map +1 -0
  159. package/dist/nodes/EvolutionApi/resources/group/get.operation.d.ts +29 -0
  160. package/dist/nodes/EvolutionApi/resources/group/get.operation.js +15 -0
  161. package/dist/nodes/EvolutionApi/resources/group/get.operation.js.map +1 -0
  162. package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.d.ts +29 -0
  163. package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.js +15 -0
  164. package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.js.map +1 -0
  165. package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.d.ts +29 -0
  166. package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.js +25 -0
  167. package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.js.map +1 -0
  168. package/dist/nodes/EvolutionApi/resources/group/getMany.operation.d.ts +29 -0
  169. package/dist/nodes/EvolutionApi/resources/group/getMany.operation.js +72 -0
  170. package/dist/nodes/EvolutionApi/resources/group/getMany.operation.js.map +1 -0
  171. package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.d.ts +29 -0
  172. package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.js +21 -0
  173. package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.js.map +1 -0
  174. package/dist/nodes/EvolutionApi/resources/group/helpers.d.ts +8 -0
  175. package/dist/nodes/EvolutionApi/resources/group/helpers.js +139 -0
  176. package/dist/nodes/EvolutionApi/resources/group/helpers.js.map +1 -0
  177. package/dist/nodes/EvolutionApi/resources/group/index.d.ts +7 -0
  178. package/dist/nodes/EvolutionApi/resources/group/index.js +216 -0
  179. package/dist/nodes/EvolutionApi/resources/group/index.js.map +1 -0
  180. package/dist/nodes/EvolutionApi/resources/group/leave.operation.d.ts +29 -0
  181. package/dist/nodes/EvolutionApi/resources/group/leave.operation.js +15 -0
  182. package/dist/nodes/EvolutionApi/resources/group/leave.operation.js.map +1 -0
  183. package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.d.ts +29 -0
  184. package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.js +20 -0
  185. package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.js.map +1 -0
  186. package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.d.ts +29 -0
  187. package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.js +48 -0
  188. package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.js.map +1 -0
  189. package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.d.ts +29 -0
  190. package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.js +43 -0
  191. package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.js.map +1 -0
  192. package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.d.ts +29 -0
  193. package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.js +34 -0
  194. package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.js.map +1 -0
  195. package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.d.ts +29 -0
  196. package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.js +47 -0
  197. package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.js.map +1 -0
  198. package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.d.ts +29 -0
  199. package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.js +67 -0
  200. package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.js.map +1 -0
  201. package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.d.ts +29 -0
  202. package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.js +99 -0
  203. package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.js.map +1 -0
  204. package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.d.ts +29 -0
  205. package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.js +57 -0
  206. package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.js.map +1 -0
  207. package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.d.ts +29 -0
  208. package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.js +31 -0
  209. package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.js.map +1 -0
  210. package/dist/nodes/EvolutionApi/resources/index.d.ts +6 -0
  211. package/dist/nodes/EvolutionApi/resources/index.js +144 -0
  212. package/dist/nodes/EvolutionApi/resources/index.js.map +1 -0
  213. package/dist/nodes/EvolutionApi/resources/instance/connect.operation.d.ts +29 -0
  214. package/dist/nodes/EvolutionApi/resources/instance/connect.operation.js +40 -0
  215. package/dist/nodes/EvolutionApi/resources/instance/connect.operation.js.map +1 -0
  216. package/dist/nodes/EvolutionApi/resources/instance/create.operation.d.ts +30 -0
  217. package/dist/nodes/EvolutionApi/resources/instance/create.operation.js +519 -0
  218. package/dist/nodes/EvolutionApi/resources/instance/create.operation.js.map +1 -0
  219. package/dist/nodes/EvolutionApi/resources/instance/delete.operation.d.ts +3 -0
  220. package/dist/nodes/EvolutionApi/resources/instance/delete.operation.js +11 -0
  221. package/dist/nodes/EvolutionApi/resources/instance/delete.operation.js.map +1 -0
  222. package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.d.ts +3 -0
  223. package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.js +11 -0
  224. package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.js.map +1 -0
  225. package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.d.ts +31 -0
  226. package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.js +149 -0
  227. package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.js.map +1 -0
  228. package/dist/nodes/EvolutionApi/resources/instance/helpers.d.ts +5 -0
  229. package/dist/nodes/EvolutionApi/resources/instance/helpers.js +60 -0
  230. package/dist/nodes/EvolutionApi/resources/instance/helpers.js.map +1 -0
  231. package/dist/nodes/EvolutionApi/resources/instance/index.d.ts +6 -0
  232. package/dist/nodes/EvolutionApi/resources/instance/index.js +128 -0
  233. package/dist/nodes/EvolutionApi/resources/instance/index.js.map +1 -0
  234. package/dist/nodes/EvolutionApi/resources/instance/logout.operation.d.ts +3 -0
  235. package/dist/nodes/EvolutionApi/resources/instance/logout.operation.js +11 -0
  236. package/dist/nodes/EvolutionApi/resources/instance/logout.operation.js.map +1 -0
  237. package/dist/nodes/EvolutionApi/resources/instance/restart.operation.d.ts +3 -0
  238. package/dist/nodes/EvolutionApi/resources/instance/restart.operation.js +13 -0
  239. package/dist/nodes/EvolutionApi/resources/instance/restart.operation.js.map +1 -0
  240. package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.d.ts +29 -0
  241. package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.js +24 -0
  242. package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.js.map +1 -0
  243. package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.d.ts +29 -0
  244. package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.js +11 -0
  245. package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.js.map +1 -0
  246. package/dist/nodes/EvolutionApi/resources/label/getMany.operation.d.ts +3 -0
  247. package/dist/nodes/EvolutionApi/resources/label/getMany.operation.js +12 -0
  248. package/dist/nodes/EvolutionApi/resources/label/getMany.operation.js.map +1 -0
  249. package/dist/nodes/EvolutionApi/resources/label/helpers.d.ts +4 -0
  250. package/dist/nodes/EvolutionApi/resources/label/helpers.js +69 -0
  251. package/dist/nodes/EvolutionApi/resources/label/helpers.js.map +1 -0
  252. package/dist/nodes/EvolutionApi/resources/label/index.d.ts +6 -0
  253. package/dist/nodes/EvolutionApi/resources/label/index.js +88 -0
  254. package/dist/nodes/EvolutionApi/resources/label/index.js.map +1 -0
  255. package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.d.ts +29 -0
  256. package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.js +11 -0
  257. package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.js.map +1 -0
  258. package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.d.ts +29 -0
  259. package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.js +21 -0
  260. package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.js.map +1 -0
  261. package/dist/nodes/EvolutionApi/resources/message/helpers.d.ts +39 -0
  262. package/dist/nodes/EvolutionApi/resources/message/helpers.js +566 -0
  263. package/dist/nodes/EvolutionApi/resources/message/helpers.js.map +1 -0
  264. package/dist/nodes/EvolutionApi/resources/message/index.d.ts +6 -0
  265. package/dist/nodes/EvolutionApi/resources/message/index.js +192 -0
  266. package/dist/nodes/EvolutionApi/resources/message/index.js.map +1 -0
  267. package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.d.ts +29 -0
  268. package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.js +36 -0
  269. package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.js.map +1 -0
  270. package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.d.ts +29 -0
  271. package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.js +114 -0
  272. package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.js.map +1 -0
  273. package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.d.ts +30 -0
  274. package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.js +162 -0
  275. package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.js.map +1 -0
  276. package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.d.ts +29 -0
  277. package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.js +105 -0
  278. package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.js.map +1 -0
  279. package/dist/nodes/EvolutionApi/resources/message/sendList.operation.d.ts +30 -0
  280. package/dist/nodes/EvolutionApi/resources/message/sendList.operation.js +197 -0
  281. package/dist/nodes/EvolutionApi/resources/message/sendList.operation.js.map +1 -0
  282. package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.d.ts +29 -0
  283. package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.js +70 -0
  284. package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.js.map +1 -0
  285. package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.d.ts +29 -0
  286. package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.js +142 -0
  287. package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.js.map +1 -0
  288. package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.d.ts +29 -0
  289. package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.js +67 -0
  290. package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.js.map +1 -0
  291. package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.d.ts +29 -0
  292. package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.js +22 -0
  293. package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.js.map +1 -0
  294. package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.d.ts +29 -0
  295. package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.js +81 -0
  296. package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.js.map +1 -0
  297. package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.d.ts +29 -0
  298. package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.js +147 -0
  299. package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.js.map +1 -0
  300. package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.d.ts +29 -0
  301. package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.js +41 -0
  302. package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.js.map +1 -0
  303. package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.d.ts +29 -0
  304. package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.js +92 -0
  305. package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.js.map +1 -0
  306. package/dist/nodes/EvolutionApi/resources/message/sendText.operation.d.ts +29 -0
  307. package/dist/nodes/EvolutionApi/resources/message/sendText.operation.js +38 -0
  308. package/dist/nodes/EvolutionApi/resources/message/sendText.operation.js.map +1 -0
  309. package/dist/nodes/EvolutionApi/resources/profile/get.operation.d.ts +29 -0
  310. package/dist/nodes/EvolutionApi/resources/profile/get.operation.js +27 -0
  311. package/dist/nodes/EvolutionApi/resources/profile/get.operation.js.map +1 -0
  312. package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.d.ts +29 -0
  313. package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.js +24 -0
  314. package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.js.map +1 -0
  315. package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.d.ts +29 -0
  316. package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.js +27 -0
  317. package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.js.map +1 -0
  318. package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.d.ts +3 -0
  319. package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.js +11 -0
  320. package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.js.map +1 -0
  321. package/dist/nodes/EvolutionApi/resources/profile/index.d.ts +5 -0
  322. package/dist/nodes/EvolutionApi/resources/profile/index.js +136 -0
  323. package/dist/nodes/EvolutionApi/resources/profile/index.js.map +1 -0
  324. package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.d.ts +3 -0
  325. package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.js +11 -0
  326. package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.js.map +1 -0
  327. package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.d.ts +29 -0
  328. package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.js +27 -0
  329. package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.js.map +1 -0
  330. package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.d.ts +29 -0
  331. package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.js +86 -0
  332. package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.js.map +1 -0
  333. package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.d.ts +30 -0
  334. package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.js +133 -0
  335. package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.js.map +1 -0
  336. package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.d.ts +29 -0
  337. package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.js +28 -0
  338. package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.js.map +1 -0
  339. package/dist/nodes/EvolutionApi/resources/proxy/get.operation.d.ts +29 -0
  340. package/dist/nodes/EvolutionApi/resources/proxy/get.operation.js +25 -0
  341. package/dist/nodes/EvolutionApi/resources/proxy/get.operation.js.map +1 -0
  342. package/dist/nodes/EvolutionApi/resources/proxy/helpers.d.ts +3 -0
  343. package/dist/nodes/EvolutionApi/resources/proxy/helpers.js +28 -0
  344. package/dist/nodes/EvolutionApi/resources/proxy/helpers.js.map +1 -0
  345. package/dist/nodes/EvolutionApi/resources/proxy/index.d.ts +5 -0
  346. package/dist/nodes/EvolutionApi/resources/proxy/index.js +70 -0
  347. package/dist/nodes/EvolutionApi/resources/proxy/index.js.map +1 -0
  348. package/dist/nodes/EvolutionApi/resources/proxy/set.operation.d.ts +30 -0
  349. package/dist/nodes/EvolutionApi/resources/proxy/set.operation.js +137 -0
  350. package/dist/nodes/EvolutionApi/resources/proxy/set.operation.js.map +1 -0
  351. package/dist/nodes/EvolutionApi/resources/settings/get.operation.d.ts +29 -0
  352. package/dist/nodes/EvolutionApi/resources/settings/get.operation.js +25 -0
  353. package/dist/nodes/EvolutionApi/resources/settings/get.operation.js.map +1 -0
  354. package/dist/nodes/EvolutionApi/resources/settings/helpers.d.ts +5 -0
  355. package/dist/nodes/EvolutionApi/resources/settings/helpers.js +37 -0
  356. package/dist/nodes/EvolutionApi/resources/settings/helpers.js.map +1 -0
  357. package/dist/nodes/EvolutionApi/resources/settings/index.d.ts +5 -0
  358. package/dist/nodes/EvolutionApi/resources/settings/index.js +70 -0
  359. package/dist/nodes/EvolutionApi/resources/settings/index.js.map +1 -0
  360. package/dist/nodes/EvolutionApi/resources/settings/set.operation.d.ts +30 -0
  361. package/dist/nodes/EvolutionApi/resources/settings/set.operation.js +128 -0
  362. package/dist/nodes/EvolutionApi/resources/settings/set.operation.js.map +1 -0
  363. package/dist/nodes/EvolutionApi/resources/template/create.operation.d.ts +29 -0
  364. package/dist/nodes/EvolutionApi/resources/template/create.operation.js +97 -0
  365. package/dist/nodes/EvolutionApi/resources/template/create.operation.js.map +1 -0
  366. package/dist/nodes/EvolutionApi/resources/template/delete.operation.d.ts +29 -0
  367. package/dist/nodes/EvolutionApi/resources/template/delete.operation.js +50 -0
  368. package/dist/nodes/EvolutionApi/resources/template/delete.operation.js.map +1 -0
  369. package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.d.ts +30 -0
  370. package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.js +48 -0
  371. package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.js.map +1 -0
  372. package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.d.ts +29 -0
  373. package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.js +41 -0
  374. package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.js.map +1 -0
  375. package/dist/nodes/EvolutionApi/resources/template/getMany.operation.d.ts +29 -0
  376. package/dist/nodes/EvolutionApi/resources/template/getMany.operation.js +109 -0
  377. package/dist/nodes/EvolutionApi/resources/template/getMany.operation.js.map +1 -0
  378. package/dist/nodes/EvolutionApi/resources/template/helpers.d.ts +3 -0
  379. package/dist/nodes/EvolutionApi/resources/template/helpers.js +32 -0
  380. package/dist/nodes/EvolutionApi/resources/template/helpers.js.map +1 -0
  381. package/dist/nodes/EvolutionApi/resources/template/index.d.ts +5 -0
  382. package/dist/nodes/EvolutionApi/resources/template/index.js +109 -0
  383. package/dist/nodes/EvolutionApi/resources/template/index.js.map +1 -0
  384. package/dist/nodes/EvolutionApi/resources/template/update.operation.d.ts +29 -0
  385. package/dist/nodes/EvolutionApi/resources/template/update.operation.js +89 -0
  386. package/dist/nodes/EvolutionApi/resources/template/update.operation.js.map +1 -0
  387. package/dist/nodes/EvolutionApi/resources/webhook/get.operation.d.ts +29 -0
  388. package/dist/nodes/EvolutionApi/resources/webhook/get.operation.js +25 -0
  389. package/dist/nodes/EvolutionApi/resources/webhook/get.operation.js.map +1 -0
  390. package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.d.ts +30 -0
  391. package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.js +49 -0
  392. package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.js.map +1 -0
  393. package/dist/nodes/EvolutionApi/resources/webhook/helpers.d.ts +17 -0
  394. package/dist/nodes/EvolutionApi/resources/webhook/helpers.js +144 -0
  395. package/dist/nodes/EvolutionApi/resources/webhook/helpers.js.map +1 -0
  396. package/dist/nodes/EvolutionApi/resources/webhook/index.d.ts +5 -0
  397. package/dist/nodes/EvolutionApi/resources/webhook/index.js +91 -0
  398. package/dist/nodes/EvolutionApi/resources/webhook/index.js.map +1 -0
  399. package/dist/nodes/EvolutionApi/resources/webhook/set.operation.d.ts +29 -0
  400. package/dist/nodes/EvolutionApi/resources/webhook/set.operation.js +174 -0
  401. package/dist/nodes/EvolutionApi/resources/webhook/set.operation.js.map +1 -0
  402. package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.d.ts +29 -0
  403. package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.js +159 -0
  404. package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.js.map +1 -0
  405. package/dist/nodes/EvolutionApi/trigger/auth.d.ts +26 -0
  406. package/dist/nodes/EvolutionApi/trigger/auth.js +96 -0
  407. package/dist/nodes/EvolutionApi/trigger/auth.js.map +1 -0
  408. package/dist/nodes/EvolutionApi/trigger/constants.d.ts +10 -0
  409. package/dist/nodes/EvolutionApi/trigger/constants.js +154 -0
  410. package/dist/nodes/EvolutionApi/trigger/constants.js.map +1 -0
  411. package/dist/nodes/EvolutionApi/trigger/dedupe.d.ts +5 -0
  412. package/dist/nodes/EvolutionApi/trigger/dedupe.js +87 -0
  413. package/dist/nodes/EvolutionApi/trigger/dedupe.js.map +1 -0
  414. package/dist/nodes/EvolutionApi/trigger/payload.d.ts +48 -0
  415. package/dist/nodes/EvolutionApi/trigger/payload.js +265 -0
  416. package/dist/nodes/EvolutionApi/trigger/payload.js.map +1 -0
  417. package/dist/nodes/EvolutionApi/trigger/registration.d.ts +36 -0
  418. package/dist/nodes/EvolutionApi/trigger/registration.js +156 -0
  419. package/dist/nodes/EvolutionApi/trigger/registration.js.map +1 -0
  420. package/dist/nodes/EvolutionApi/types.d.ts +44 -0
  421. package/dist/nodes/EvolutionApi/types.js +3 -0
  422. package/dist/nodes/EvolutionApi/types.js.map +1 -0
  423. package/package.json +83 -0
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.execute = exports.fields = exports.operations = void 0;
37
+ const get = __importStar(require("./get.operation"));
38
+ const getTransport = __importStar(require("./getTransport.operation"));
39
+ const set = __importStar(require("./set.operation"));
40
+ const setTransport = __importStar(require("./setTransport.operation"));
41
+ exports.operations = {
42
+ displayName: 'Operation',
43
+ name: 'operation',
44
+ type: 'options',
45
+ noDataExpression: true,
46
+ displayOptions: {
47
+ show: {
48
+ resource: ['webhook'],
49
+ },
50
+ },
51
+ options: [
52
+ {
53
+ name: 'Get',
54
+ value: 'get',
55
+ description: 'Get the webhook configuration of an instance (URL, events, headers, options)',
56
+ action: 'Get the webhook configuration',
57
+ },
58
+ {
59
+ name: 'Get Transport',
60
+ value: 'getTransport',
61
+ description: 'Get the WebSocket, RabbitMQ, Amazon SQS, NATS, Kafka or Pusher event configuration of an instance',
62
+ action: 'Get an event transport configuration',
63
+ },
64
+ {
65
+ name: 'Set',
66
+ value: 'set',
67
+ description: 'Set, change or disable the webhook of an instance (one webhook per instance: this replaces the current one)',
68
+ action: 'Set the webhook configuration',
69
+ },
70
+ {
71
+ name: 'Set Transport',
72
+ value: 'setTransport',
73
+ description: 'Enable or disable the WebSocket, RabbitMQ, Amazon SQS, NATS, Kafka or Pusher events of an instance',
74
+ action: 'Set an event transport configuration',
75
+ },
76
+ ],
77
+ default: 'get',
78
+ };
79
+ exports.fields = [
80
+ ...get.description,
81
+ ...getTransport.description,
82
+ ...set.description,
83
+ ...setTransport.description,
84
+ ];
85
+ exports.execute = {
86
+ get: get.execute,
87
+ getTransport: getTransport.execute,
88
+ set: set.execute,
89
+ setTransport: setTransport.execute,
90
+ };
91
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qDAAuC;AACvC,uEAAyD;AACzD,qDAAuC;AACvC,uEAAyD;AAO5C,QAAA,UAAU,GAAoB;IACzC,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,8EAA8E;YAC3F,MAAM,EAAE,+BAA+B;SACxC;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,mGAAmG;YACrG,MAAM,EAAE,sCAAsC;SAC/C;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EACT,6GAA6G;YAC/G,MAAM,EAAE,+BAA+B;SACxC;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,oGAAoG;YACtG,MAAM,EAAE,sCAAsC;SAC/C;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC;AAEW,QAAA,MAAM,GAAsB;IACvC,GAAG,GAAG,CAAC,WAAW;IAClB,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,GAAG,CAAC,WAAW;IAClB,GAAG,YAAY,CAAC,WAAW;CAC5B,CAAC;AAEW,QAAA,OAAO,GAAqC;IACvD,GAAG,EAAE,GAAG,CAAC,OAAO;IAChB,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,GAAG,EAAE,GAAG,CAAC,OAAO;IAChB,YAAY,EAAE,YAAY,CAAC,OAAO;CACnC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const GenericFunctions_1 = require("../../GenericFunctions");
7
+ const helpers_1 = require("./helpers");
8
+ const properties = [
9
+ {
10
+ displayName: 'Enabled',
11
+ name: 'webhookEnabled',
12
+ type: 'boolean',
13
+ default: true,
14
+ description: 'Whether the webhook is active. Turn it off to stop deliveries: the URL, headers and options are kept, but Evolution clears the event list.',
15
+ },
16
+ {
17
+ displayName: 'URL',
18
+ name: 'webhookUrl',
19
+ type: 'string',
20
+ default: '',
21
+ placeholder: 'https://n8n.example.com/webhook/evolution',
22
+ displayOptions: { show: { webhookEnabled: [true] } },
23
+ description: 'URL that receives the events (http:// or https://). Leave empty to keep the current URL. Each instance has exactly one webhook: this replaces the previous URL.',
24
+ },
25
+ {
26
+ displayName: 'Events',
27
+ name: 'webhookEvents',
28
+ type: 'multiOptions',
29
+ options: helpers_1.WEBHOOK_EVENT_OPTIONS,
30
+ default: [],
31
+ displayOptions: { show: { webhookEnabled: [true] } },
32
+ description: 'Events to send. Leave empty to keep the stored selection, or receive every event when no selection exists. Use Options > All Events to replace a stored selection with every event. Evolution API 2.3.x rejects "Messaging History Set".',
33
+ },
34
+ {
35
+ displayName: 'Additional Fields',
36
+ name: 'additionalFields',
37
+ type: 'collection',
38
+ placeholder: 'Add Field',
39
+ default: {},
40
+ displayOptions: { show: { webhookEnabled: [true] } },
41
+ description: 'Fields not added here keep their current value',
42
+ options: [
43
+ {
44
+ displayName: 'Headers (JSON)',
45
+ name: 'headers',
46
+ type: 'json',
47
+ default: '{}',
48
+ description: 'Headers sent with every delivery, e.g. {"x-webhook-secret": "…"}. Replaces all current headers. A "jwt_key" entry is not sent as-is: Evolution signs a JWT (HS256, 10-minute expiry, claims app "evolution" and action "webhook") with it and sends "Authorization: Bearer <token>".',
49
+ },
50
+ {
51
+ displayName: 'JWT Key',
52
+ name: 'jwtKey',
53
+ type: 'string',
54
+ typeOptions: { password: true },
55
+ default: '',
56
+ description: 'Secret used to sign the "Authorization: Bearer" JWT (HS256) of every delivery. Stored as the "jwt_key" header; the other current headers are kept unless "Headers (JSON)" is also set.',
57
+ },
58
+ {
59
+ displayName: 'Webhook Base64',
60
+ name: 'base64',
61
+ type: 'boolean',
62
+ default: false,
63
+ description: 'Whether to include received media as base64 in data.message.base64 of message events',
64
+ },
65
+ {
66
+ displayName: 'Webhook by Events',
67
+ name: 'byEvents',
68
+ type: 'boolean',
69
+ default: false,
70
+ description: 'Whether to append the event name to the URL of each delivery, e.g. …/messages-upsert',
71
+ },
72
+ ],
73
+ },
74
+ {
75
+ displayName: 'Options',
76
+ name: 'options',
77
+ type: 'collection',
78
+ placeholder: 'Add Option',
79
+ default: {},
80
+ options: [
81
+ {
82
+ displayName: 'All Events',
83
+ name: 'allEvents',
84
+ type: 'boolean',
85
+ default: false,
86
+ description: 'Whether to replace the stored Events selection with every supported event',
87
+ },
88
+ helpers_1.includeWebhookSecretsOption,
89
+ ],
90
+ },
91
+ ];
92
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['webhook'], operation: ['set'] } }, properties);
93
+ async function execute(itemIndex) {
94
+ var _a, _b;
95
+ const node = this.getNode();
96
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex);
97
+ const enabled = this.getNodeParameter('webhookEnabled', itemIndex, true);
98
+ const options = this.getNodeParameter('options', itemIndex, {});
99
+ let current;
100
+ const readCurrent = async () => {
101
+ current !== null && current !== void 0 ? current : (current = (await GenericFunctions_1.evolutionApiRequest.call(this, 'GET', `/webhook/find/${instance}`, {}, {}, { itemIndex })));
102
+ return current;
103
+ };
104
+ let webhook;
105
+ if (!enabled) {
106
+ const { url } = await readCurrent();
107
+ webhook = { enabled: false, url: typeof url === 'string' ? url : '', events: [] };
108
+ }
109
+ else {
110
+ let url = String(this.getNodeParameter('webhookUrl', itemIndex, '')).trim();
111
+ if (!url) {
112
+ const stored = (await readCurrent()).url;
113
+ url = typeof stored === 'string' ? stored.trim() : '';
114
+ }
115
+ if (!url) {
116
+ throw new n8n_workflow_1.NodeOperationError(node, 'Webhook URL is required', {
117
+ itemIndex,
118
+ description: 'This instance has no webhook URL stored yet.',
119
+ });
120
+ }
121
+ if (!/^https?:\/\//i.test(url)) {
122
+ throw new n8n_workflow_1.NodeOperationError(node, `Invalid webhook URL "${url}"`, {
123
+ itemIndex,
124
+ description: 'Evolution API only delivers to URLs that start with http:// or https://.',
125
+ });
126
+ }
127
+ webhook = {
128
+ enabled: true,
129
+ url,
130
+ events: (0, helpers_1.normalizeEvents)(this.getNodeParameter('webhookEvents', itemIndex, [])),
131
+ };
132
+ const fields = this.getNodeParameter('additionalFields', itemIndex, {});
133
+ if (fields.byEvents !== undefined)
134
+ webhook.byEvents = fields.byEvents === true;
135
+ if (fields.base64 !== undefined)
136
+ webhook.base64 = fields.base64 === true;
137
+ const jwtKey = String((_a = fields.jwtKey) !== null && _a !== void 0 ? _a : '').trim();
138
+ if (fields.headers !== undefined || jwtKey) {
139
+ let headers = {};
140
+ if (fields.headers !== undefined) {
141
+ const parsed = (_b = (0, GenericFunctions_1.parseJsonParameter)(fields.headers, 'Headers (JSON)')) !== null && _b !== void 0 ? _b : {};
142
+ if (!(0, GenericFunctions_1.isPlainObject)(parsed)) {
143
+ throw new n8n_workflow_1.NodeOperationError(node, 'Headers (JSON) must be a JSON object', {
144
+ itemIndex,
145
+ });
146
+ }
147
+ headers = parsed;
148
+ }
149
+ else {
150
+ const stored = (await readCurrent()).headers;
151
+ if ((0, GenericFunctions_1.isPlainObject)(stored))
152
+ headers = { ...stored };
153
+ }
154
+ if (jwtKey)
155
+ headers.jwt_key = jwtKey;
156
+ webhook.headers = headers;
157
+ }
158
+ if (options.allEvents === true) {
159
+ webhook.events = [];
160
+ }
161
+ else if (webhook.events.length === 0) {
162
+ webhook.events = (0, helpers_1.normalizeEvents)((await readCurrent()).events);
163
+ }
164
+ }
165
+ let response;
166
+ try {
167
+ response = (await GenericFunctions_1.evolutionApiRequest.call(this, 'POST', `/webhook/set/${instance}`, { webhook }, {}, { itemIndex }));
168
+ }
169
+ catch (error) {
170
+ throw (0, helpers_1.withEventsHint)(error, webhook.events);
171
+ }
172
+ return options.includeSecrets === true ? response : (0, helpers_1.redactWebhookSecrets)(response);
173
+ }
174
+ //# sourceMappingURL=set.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/webhook/set.operation.ts"],"names":[],"mappings":";;;AA4HA,0BA8FC;AAzND,+CAAwE;AAExE,6DAKgC;AAChC,uCAMmB;AAEnB,MAAM,UAAU,GAAsB;IACpC;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EACT,4IAA4I;KAC/I;IACD;QACE,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2CAA2C;QACxD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE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O,CAAC,MAAM,GAAG,IAAA,yBAAe,EAAC,CAAC,MAAM,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,IAAI,QAAqB,CAAC;IAC1B,IAAI,CAAC;QACH,QAAQ,GAAG,CAAC,MAAM,sCAAmB,CAAC,IAAI,CACxC,IAAI,EACJ,MAAM,EACN,gBAAgB,QAAQ,EAAE,EAC1B,EAAE,OAAO,EAAE,EACX,EAAE,EACF,EAAE,SAAS,EAAE,CACd,CAAgB,CAAC;IACpB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAA,wBAAc,EAAC,KAAK,EAAE,OAAO,CAAC,MAAkB,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,OAAO,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,8BAAoB,EAAC,QAAQ,CAAC,CAAC;AACrF,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const GenericFunctions_1 = require("../../GenericFunctions");
7
+ const getTransport_operation_1 = require("./getTransport.operation");
8
+ const helpers_1 = require("./helpers");
9
+ const PUSHER_KEYS = ['appId', 'key', 'secret', 'cluster'];
10
+ const properties = [
11
+ getTransport_operation_1.transportProperty,
12
+ {
13
+ displayName: 'Enabled',
14
+ name: 'transportEnabled',
15
+ type: 'boolean',
16
+ default: true,
17
+ description: 'Whether this instance publishes events through the transport. Turning it off also clears the event list.',
18
+ },
19
+ {
20
+ displayName: 'Events',
21
+ name: 'transportEvents',
22
+ type: 'multiOptions',
23
+ options: helpers_1.WEBHOOK_EVENT_OPTIONS,
24
+ default: [],
25
+ displayOptions: { show: { transportEnabled: [true] } },
26
+ description: 'Events to publish. Leave empty to keep the stored selection, or publish every event when no selection exists. Use Options > All Events to replace a stored selection with every event. Evolution API 2.3.x rejects "Messaging History Set".',
27
+ },
28
+ {
29
+ displayName: 'Pusher Settings',
30
+ name: 'pusherConfig',
31
+ type: 'collection',
32
+ placeholder: 'Add Pusher Setting',
33
+ default: {},
34
+ displayOptions: { show: { eventTransport: ['pusher'] } },
35
+ description: 'Pusher Channels app of this instance. Settings not added here keep their current value; App ID, Key, Secret and Cluster are required to enable it.',
36
+ options: [
37
+ {
38
+ displayName: 'App ID',
39
+ name: 'appId',
40
+ type: 'string',
41
+ default: '',
42
+ },
43
+ {
44
+ displayName: 'Cluster',
45
+ name: 'cluster',
46
+ type: 'string',
47
+ default: '',
48
+ placeholder: 'us2',
49
+ },
50
+ {
51
+ displayName: 'Key',
52
+ name: 'key',
53
+ type: 'string',
54
+ default: '',
55
+ description: 'Public app key',
56
+ },
57
+ {
58
+ displayName: 'Secret',
59
+ name: 'secret',
60
+ type: 'string',
61
+ typeOptions: { password: true },
62
+ default: '',
63
+ },
64
+ {
65
+ displayName: 'Use TLS',
66
+ name: 'useTLS',
67
+ type: 'boolean',
68
+ default: true,
69
+ description: 'Whether to connect to Pusher over TLS',
70
+ },
71
+ ],
72
+ },
73
+ {
74
+ displayName: 'Options',
75
+ name: 'options',
76
+ type: 'collection',
77
+ placeholder: 'Add Option',
78
+ default: {},
79
+ options: [
80
+ {
81
+ displayName: 'All Events',
82
+ name: 'allEvents',
83
+ type: 'boolean',
84
+ default: false,
85
+ description: 'Whether to replace the stored Events selection with every supported event',
86
+ },
87
+ {
88
+ displayName: 'Include Secrets',
89
+ name: 'includeSecrets',
90
+ type: 'boolean',
91
+ default: false,
92
+ description: 'Whether to keep the Pusher secret in the output. Off by default so it is not stored in execution logs.',
93
+ },
94
+ ],
95
+ },
96
+ ];
97
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['webhook'], operation: ['setTransport'] } }, properties);
98
+ async function execute(itemIndex) {
99
+ const node = this.getNode();
100
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex);
101
+ const transport = (0, helpers_1.getTransport)(this.getNodeParameter('eventTransport', itemIndex));
102
+ if (!transport) {
103
+ throw new n8n_workflow_1.NodeOperationError(node, 'Unknown transport', {
104
+ itemIndex,
105
+ description: `Use one of: ${helpers_1.TRANSPORT_OPTIONS.map((option) => option.value).join(', ')}.`,
106
+ });
107
+ }
108
+ const enabled = this.getNodeParameter('transportEnabled', itemIndex, true);
109
+ const options = this.getNodeParameter('options', itemIndex, {});
110
+ let events = enabled && options.allEvents !== true
111
+ ? (0, helpers_1.normalizeEvents)(this.getNodeParameter('transportEvents', itemIndex, []))
112
+ : [];
113
+ let current = {};
114
+ if (transport.name === 'pusher' || (enabled && options.allEvents !== true && events.length === 0)) {
115
+ current = (await GenericFunctions_1.evolutionApiRequest.call(this, 'GET', `/${transport.name}/find/${instance}`, {}, {}, { itemIndex }));
116
+ }
117
+ if (enabled && options.allEvents !== true && events.length === 0) {
118
+ events = (0, helpers_1.normalizeEvents)(current.events);
119
+ }
120
+ const config = { enabled, events };
121
+ if (transport.name === 'pusher') {
122
+ const changes = this.getNodeParameter('pusherConfig', itemIndex, {});
123
+ for (const key of PUSHER_KEYS) {
124
+ const value = changes[key] !== undefined ? changes[key] : current[key];
125
+ config[key] = typeof value === 'string' ? value.trim() : '';
126
+ }
127
+ const useTls = changes.useTLS !== undefined ? changes.useTLS : current.useTLS;
128
+ config.useTLS = typeof useTls === 'boolean' ? useTls : true;
129
+ const missing = PUSHER_KEYS.filter((key) => !config[key]);
130
+ if (enabled && missing.length > 0) {
131
+ throw new n8n_workflow_1.NodeOperationError(node, `Missing Pusher settings: ${missing.join(', ')}`, {
132
+ itemIndex,
133
+ description: 'Add the missing values under "Pusher Settings". If values were previously saved, verify PUSHER_ENABLED=true on the server: Evolution hides them when Pusher is disabled.',
134
+ });
135
+ }
136
+ }
137
+ let response;
138
+ try {
139
+ response = (await GenericFunctions_1.evolutionApiRequest.call(this, 'POST', `/${transport.name}/set/${instance}`, { [transport.name]: config }, {}, { itemIndex }));
140
+ }
141
+ catch (error) {
142
+ throw (0, helpers_1.withEventsHint)(error, events);
143
+ }
144
+ if (Object.keys(response).length === 0) {
145
+ const sqsNote = transport.name === 'sqs' ? ' (or SQS_GLOBAL_ENABLED is true)' : '';
146
+ throw new n8n_workflow_1.NodeOperationError(node, `Evolution API did not save the ${transport.info.label} configuration`, {
147
+ itemIndex,
148
+ description: `The ${transport.info.label} integration is disabled on the server: set ${transport.info.env}=true in the Evolution API environment${sqsNote} and restart it.`,
149
+ });
150
+ }
151
+ if (transport.name === 'pusher' && enabled && Object.keys(current).length === 0) {
152
+ response = {
153
+ ...response,
154
+ notice: 'Pusher configuration was saved, but event delivery is unverified. No previous configuration was readable: this can mean a first setup or PUSHER_ENABLED=false. Evolution saves Pusher settings even when it is disabled; verify PUSHER_ENABLED=true on the server.',
155
+ };
156
+ }
157
+ return options.includeSecrets === true ? response : (0, helpers_1.redactTransportSecrets)(response);
158
+ }
159
+ //# sourceMappingURL=setTransport.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setTransport.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/webhook/setTransport.operation.ts"],"names":[],"mappings":";;;AA0HA,0BAsFC;AA/MD,+CAAwE;AAExE,6DAAkF;AAClF,qEAA6D;AAC7D,uCAOmB;AAEnB,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAEnE,MAAM,UAAU,GAAsB;IACpC,0CAAiB;IACjB;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EACT,0GAA0G;KAC7G;IACD;QACE,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,+BAAqB;QAC9B,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE;QACtD,WAAW,EACT,6OAA6O;KAChP;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACxD,WAAW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O,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChF,QAAQ,GAAG;YACT,GAAG,QAAQ;YACX,MAAM,EACJ,oQAAoQ;SACvQ,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,gCAAsB,EAAC,QAAQ,CAAC,CAAC;AACvF,CAAC"}
@@ -0,0 +1,26 @@
1
+ export type VerificationResult = {
2
+ valid: true;
3
+ } | {
4
+ valid: false;
5
+ reason: string;
6
+ };
7
+ export interface VerificationConfig {
8
+ jwtSecret?: string;
9
+ secretHeader?: {
10
+ name: string;
11
+ value: string;
12
+ };
13
+ jwtLeewaySeconds: number;
14
+ nowSeconds: number;
15
+ }
16
+ type IncomingHeaders = Record<string, string | string[] | undefined>;
17
+ export declare function generateSecret(bytes?: number): string;
18
+ export declare function safeEqual(actual: string, expected: string): boolean;
19
+ export declare function getHeaderValue(headers: IncomingHeaders, name: string): string | undefined;
20
+ export declare function getBearerToken(headers: IncomingHeaders): string | undefined;
21
+ export declare function verifyEvolutionJwt(token: string, secret: string, options: {
22
+ nowSeconds: number;
23
+ leewaySeconds: number;
24
+ }): VerificationResult;
25
+ export declare function verifyWebhookRequest(headers: IncomingHeaders, config: VerificationConfig): VerificationResult;
26
+ export {};
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateSecret = generateSecret;
4
+ exports.safeEqual = safeEqual;
5
+ exports.getHeaderValue = getHeaderValue;
6
+ exports.getBearerToken = getBearerToken;
7
+ exports.verifyEvolutionJwt = verifyEvolutionJwt;
8
+ exports.verifyWebhookRequest = verifyWebhookRequest;
9
+ const crypto_1 = require("crypto");
10
+ const GenericFunctions_1 = require("../GenericFunctions");
11
+ const VALID = { valid: true };
12
+ function invalid(reason) {
13
+ return { valid: false, reason };
14
+ }
15
+ function generateSecret(bytes = 32) {
16
+ return (0, crypto_1.randomBytes)(bytes).toString('hex');
17
+ }
18
+ function safeEqual(actual, expected) {
19
+ const left = (0, crypto_1.createHash)('sha256').update(actual, 'utf8').digest();
20
+ const right = (0, crypto_1.createHash)('sha256').update(expected, 'utf8').digest();
21
+ return (0, crypto_1.timingSafeEqual)(left, right);
22
+ }
23
+ function getHeaderValue(headers, name) {
24
+ const wanted = name.toLowerCase();
25
+ const key = Object.keys(headers).find((header) => header.toLowerCase() === wanted);
26
+ const value = key === undefined ? undefined : headers[key];
27
+ if (Array.isArray(value))
28
+ return value[0];
29
+ return value;
30
+ }
31
+ function getBearerToken(headers) {
32
+ const authorization = getHeaderValue(headers, 'authorization');
33
+ const match = /^Bearer\s+(\S+)\s*$/i.exec(authorization !== null && authorization !== void 0 ? authorization : '');
34
+ return match ? match[1] : undefined;
35
+ }
36
+ function decodeJsonSegment(segment) {
37
+ if (!/^[A-Za-z0-9_-]+$/.test(segment))
38
+ return undefined;
39
+ try {
40
+ return JSON.parse(Buffer.from(segment, 'base64url').toString('utf8'));
41
+ }
42
+ catch {
43
+ return undefined;
44
+ }
45
+ }
46
+ function verifyEvolutionJwt(token, secret, options) {
47
+ const parts = token.split('.');
48
+ if (parts.length !== 3)
49
+ return invalid('malformed JWT');
50
+ const [encodedHeader, encodedPayload, signature] = parts;
51
+ const header = decodeJsonSegment(encodedHeader);
52
+ const payload = decodeJsonSegment(encodedPayload);
53
+ if (!(0, GenericFunctions_1.isPlainObject)(header) || !(0, GenericFunctions_1.isPlainObject)(payload))
54
+ return invalid('malformed JWT');
55
+ if (header.alg !== 'HS256')
56
+ return invalid(`unsupported JWT algorithm "${String(header.alg)}"`);
57
+ const expected = (0, crypto_1.createHmac)('sha256', secret)
58
+ .update(`${encodedHeader}.${encodedPayload}`)
59
+ .digest('base64url');
60
+ if (!safeEqual(signature, expected))
61
+ return invalid('invalid JWT signature');
62
+ const claims = payload;
63
+ if (claims.app !== 'evolution' || claims.action !== 'webhook') {
64
+ return invalid('unexpected JWT claims');
65
+ }
66
+ if (typeof claims.exp !== 'number' || !Number.isFinite(claims.exp)) {
67
+ return invalid('JWT without expiry');
68
+ }
69
+ if (options.nowSeconds > claims.exp + Math.max(0, options.leewaySeconds)) {
70
+ return invalid('JWT expired');
71
+ }
72
+ return VALID;
73
+ }
74
+ function verifyWebhookRequest(headers, config) {
75
+ if (config.secretHeader) {
76
+ const received = getHeaderValue(headers, config.secretHeader.name);
77
+ if (received === undefined)
78
+ return invalid(`missing header "${config.secretHeader.name}"`);
79
+ if (!safeEqual(received, config.secretHeader.value)) {
80
+ return invalid(`wrong value in header "${config.secretHeader.name}"`);
81
+ }
82
+ }
83
+ if (config.jwtSecret !== undefined) {
84
+ const token = getBearerToken(headers);
85
+ if (!token)
86
+ return invalid('missing "Authorization: Bearer" JWT');
87
+ const result = verifyEvolutionJwt(token, config.jwtSecret, {
88
+ nowSeconds: config.nowSeconds,
89
+ leewaySeconds: config.jwtLeewaySeconds,
90
+ });
91
+ if (!result.valid)
92
+ return result;
93
+ }
94
+ return VALID;
95
+ }
96
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../nodes/EvolutionApi/trigger/auth.ts"],"names":[],"mappings":";;AAwCA,wCAEC;AAMD,8BAIC;AAGD,wCAMC;AAGD,wCAIC;AAgBD,gDA8BC;AAGD,oDAuBC;AA5ID,mCAA8E;AAG9E,0DAAoD;AA8BpD,MAAM,KAAK,GAAuB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAElD,SAAS,OAAO,CAAC,MAAc;IAC7B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAClC,CAAC;AAGD,SAAgB,cAAc,CAAC,KAAK,GAAG,EAAE;IACvC,OAAO,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC5C,CAA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GAAG,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE;YACzD,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,aAAa,EAAE,MAAM,CAAC,gBAAgB;SACvC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,KAAK;YAAE,OAAO,MAAM,CAAC;IACnC,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const SECRET_HEADER_NAME = "x-evolution-secret";
3
+ export declare const DEFAULT_JWT_LEEWAY_SECONDS = 1200;
4
+ export declare const DEDUPE_TTL_MS: number;
5
+ export declare const DEDUPE_MAX_STATIC_ENTRIES = 500;
6
+ export declare const DEDUPE_MAX_MEMORY_ENTRIES = 2000;
7
+ export declare const NEVER_DELIVERED_EVENTS: string[];
8
+ export declare const TRIGGER_24_ONLY_EVENTS: string[];
9
+ export declare const TRIGGER_EVENT_OPTIONS: INodePropertyOptions[];
10
+ export declare const MESSAGE_TYPE_OPTIONS: INodePropertyOptions[];