@keystrokehq/supportbee 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 (362) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-label-to-ticket.cjs +27 -0
  7. package/dist/actions/add-label-to-ticket.cjs.map +1 -0
  8. package/dist/actions/add-label-to-ticket.d.cts +9 -0
  9. package/dist/actions/add-label-to-ticket.d.cts.map +1 -0
  10. package/dist/actions/add-label-to-ticket.d.mts +9 -0
  11. package/dist/actions/add-label-to-ticket.d.mts.map +1 -0
  12. package/dist/actions/add-label-to-ticket.mjs +26 -0
  13. package/dist/actions/add-label-to-ticket.mjs.map +1 -0
  14. package/dist/actions/archive-ticket.cjs +33 -0
  15. package/dist/actions/archive-ticket.cjs.map +1 -0
  16. package/dist/actions/archive-ticket.d.cts +9 -0
  17. package/dist/actions/archive-ticket.d.cts.map +1 -0
  18. package/dist/actions/archive-ticket.d.mts +9 -0
  19. package/dist/actions/archive-ticket.d.mts.map +1 -0
  20. package/dist/actions/archive-ticket.mjs +32 -0
  21. package/dist/actions/archive-ticket.mjs.map +1 -0
  22. package/dist/actions/assign-ticket-to-team.cjs +28 -0
  23. package/dist/actions/assign-ticket-to-team.cjs.map +1 -0
  24. package/dist/actions/assign-ticket-to-team.d.cts +9 -0
  25. package/dist/actions/assign-ticket-to-team.d.cts.map +1 -0
  26. package/dist/actions/assign-ticket-to-team.d.mts +9 -0
  27. package/dist/actions/assign-ticket-to-team.d.mts.map +1 -0
  28. package/dist/actions/assign-ticket-to-team.mjs +27 -0
  29. package/dist/actions/assign-ticket-to-team.mjs.map +1 -0
  30. package/dist/actions/create-comment.cjs +49 -0
  31. package/dist/actions/create-comment.cjs.map +1 -0
  32. package/dist/actions/create-comment.d.cts +9 -0
  33. package/dist/actions/create-comment.d.cts.map +1 -0
  34. package/dist/actions/create-comment.d.mts +9 -0
  35. package/dist/actions/create-comment.d.mts.map +1 -0
  36. package/dist/actions/create-comment.mjs +48 -0
  37. package/dist/actions/create-comment.mjs.map +1 -0
  38. package/dist/actions/create-consequence.cjs +30 -0
  39. package/dist/actions/create-consequence.cjs.map +1 -0
  40. package/dist/actions/create-consequence.d.cts +9 -0
  41. package/dist/actions/create-consequence.d.cts.map +1 -0
  42. package/dist/actions/create-consequence.d.mts +9 -0
  43. package/dist/actions/create-consequence.d.mts.map +1 -0
  44. package/dist/actions/create-consequence.mjs +29 -0
  45. package/dist/actions/create-consequence.mjs.map +1 -0
  46. package/dist/actions/create-email.cjs +43 -0
  47. package/dist/actions/create-email.cjs.map +1 -0
  48. package/dist/actions/create-email.d.cts +9 -0
  49. package/dist/actions/create-email.d.cts.map +1 -0
  50. package/dist/actions/create-email.d.mts +9 -0
  51. package/dist/actions/create-email.d.mts.map +1 -0
  52. package/dist/actions/create-email.mjs +42 -0
  53. package/dist/actions/create-email.mjs.map +1 -0
  54. package/dist/actions/create-filter.cjs +25 -0
  55. package/dist/actions/create-filter.cjs.map +1 -0
  56. package/dist/actions/create-filter.d.cts +9 -0
  57. package/dist/actions/create-filter.d.cts.map +1 -0
  58. package/dist/actions/create-filter.d.mts +9 -0
  59. package/dist/actions/create-filter.d.mts.map +1 -0
  60. package/dist/actions/create-filter.mjs +22 -0
  61. package/dist/actions/create-filter.mjs.map +1 -0
  62. package/dist/actions/create-rule.cjs +30 -0
  63. package/dist/actions/create-rule.cjs.map +1 -0
  64. package/dist/actions/create-rule.d.cts +9 -0
  65. package/dist/actions/create-rule.d.cts.map +1 -0
  66. package/dist/actions/create-rule.d.mts +9 -0
  67. package/dist/actions/create-rule.d.mts.map +1 -0
  68. package/dist/actions/create-rule.mjs +27 -0
  69. package/dist/actions/create-rule.mjs.map +1 -0
  70. package/dist/actions/create-snippet.cjs +31 -0
  71. package/dist/actions/create-snippet.cjs.map +1 -0
  72. package/dist/actions/create-snippet.d.cts +9 -0
  73. package/dist/actions/create-snippet.d.cts.map +1 -0
  74. package/dist/actions/create-snippet.d.mts +9 -0
  75. package/dist/actions/create-snippet.d.mts.map +1 -0
  76. package/dist/actions/create-snippet.mjs +30 -0
  77. package/dist/actions/create-snippet.mjs.map +1 -0
  78. package/dist/actions/create-ticket-reply.cjs +56 -0
  79. package/dist/actions/create-ticket-reply.cjs.map +1 -0
  80. package/dist/actions/create-ticket-reply.d.cts +9 -0
  81. package/dist/actions/create-ticket-reply.d.cts.map +1 -0
  82. package/dist/actions/create-ticket-reply.d.mts +9 -0
  83. package/dist/actions/create-ticket-reply.d.mts.map +1 -0
  84. package/dist/actions/create-ticket-reply.mjs +55 -0
  85. package/dist/actions/create-ticket-reply.mjs.map +1 -0
  86. package/dist/actions/create-ticket.cjs +79 -0
  87. package/dist/actions/create-ticket.cjs.map +1 -0
  88. package/dist/actions/create-ticket.d.cts +9 -0
  89. package/dist/actions/create-ticket.d.cts.map +1 -0
  90. package/dist/actions/create-ticket.d.mts +9 -0
  91. package/dist/actions/create-ticket.d.mts.map +1 -0
  92. package/dist/actions/create-ticket.mjs +78 -0
  93. package/dist/actions/create-ticket.mjs.map +1 -0
  94. package/dist/actions/create-user-or-customer-group.cjs +50 -0
  95. package/dist/actions/create-user-or-customer-group.cjs.map +1 -0
  96. package/dist/actions/create-user-or-customer-group.d.cts +9 -0
  97. package/dist/actions/create-user-or-customer-group.d.cts.map +1 -0
  98. package/dist/actions/create-user-or-customer-group.d.mts +9 -0
  99. package/dist/actions/create-user-or-customer-group.d.mts.map +1 -0
  100. package/dist/actions/create-user-or-customer-group.mjs +49 -0
  101. package/dist/actions/create-user-or-customer-group.mjs.map +1 -0
  102. package/dist/actions/delete-snippet.cjs +20 -0
  103. package/dist/actions/delete-snippet.cjs.map +1 -0
  104. package/dist/actions/delete-snippet.d.cts +9 -0
  105. package/dist/actions/delete-snippet.d.cts.map +1 -0
  106. package/dist/actions/delete-snippet.d.mts +9 -0
  107. package/dist/actions/delete-snippet.d.mts.map +1 -0
  108. package/dist/actions/delete-snippet.mjs +17 -0
  109. package/dist/actions/delete-snippet.mjs.map +1 -0
  110. package/dist/actions/delete-ticket.cjs +20 -0
  111. package/dist/actions/delete-ticket.cjs.map +1 -0
  112. package/dist/actions/delete-ticket.d.cts +9 -0
  113. package/dist/actions/delete-ticket.d.cts.map +1 -0
  114. package/dist/actions/delete-ticket.d.mts +9 -0
  115. package/dist/actions/delete-ticket.d.mts.map +1 -0
  116. package/dist/actions/delete-ticket.mjs +17 -0
  117. package/dist/actions/delete-ticket.mjs.map +1 -0
  118. package/dist/actions/fetch-emails.cjs +28 -0
  119. package/dist/actions/fetch-emails.cjs.map +1 -0
  120. package/dist/actions/fetch-emails.d.cts +9 -0
  121. package/dist/actions/fetch-emails.d.cts.map +1 -0
  122. package/dist/actions/fetch-emails.d.mts +9 -0
  123. package/dist/actions/fetch-emails.d.mts.map +1 -0
  124. package/dist/actions/fetch-emails.mjs +27 -0
  125. package/dist/actions/fetch-emails.mjs.map +1 -0
  126. package/dist/actions/fetch-labels.cjs +21 -0
  127. package/dist/actions/fetch-labels.cjs.map +1 -0
  128. package/dist/actions/fetch-labels.d.cts +9 -0
  129. package/dist/actions/fetch-labels.d.cts.map +1 -0
  130. package/dist/actions/fetch-labels.d.mts +9 -0
  131. package/dist/actions/fetch-labels.d.mts.map +1 -0
  132. package/dist/actions/fetch-labels.mjs +20 -0
  133. package/dist/actions/fetch-labels.mjs.map +1 -0
  134. package/dist/actions/fetch-snippets.cjs +33 -0
  135. package/dist/actions/fetch-snippets.cjs.map +1 -0
  136. package/dist/actions/fetch-snippets.d.cts +9 -0
  137. package/dist/actions/fetch-snippets.d.cts.map +1 -0
  138. package/dist/actions/fetch-snippets.d.mts +9 -0
  139. package/dist/actions/fetch-snippets.d.mts.map +1 -0
  140. package/dist/actions/fetch-snippets.mjs +32 -0
  141. package/dist/actions/fetch-snippets.mjs.map +1 -0
  142. package/dist/actions/fetch-teams.cjs +23 -0
  143. package/dist/actions/fetch-teams.cjs.map +1 -0
  144. package/dist/actions/fetch-teams.d.cts +9 -0
  145. package/dist/actions/fetch-teams.d.cts.map +1 -0
  146. package/dist/actions/fetch-teams.d.mts +9 -0
  147. package/dist/actions/fetch-teams.d.mts.map +1 -0
  148. package/dist/actions/fetch-teams.mjs +22 -0
  149. package/dist/actions/fetch-teams.mjs.map +1 -0
  150. package/dist/actions/get-avg-first-response-time-report.cjs +31 -0
  151. package/dist/actions/get-avg-first-response-time-report.cjs.map +1 -0
  152. package/dist/actions/get-avg-first-response-time-report.d.cts +9 -0
  153. package/dist/actions/get-avg-first-response-time-report.d.cts.map +1 -0
  154. package/dist/actions/get-avg-first-response-time-report.d.mts +9 -0
  155. package/dist/actions/get-avg-first-response-time-report.d.mts.map +1 -0
  156. package/dist/actions/get-avg-first-response-time-report.mjs +30 -0
  157. package/dist/actions/get-avg-first-response-time-report.mjs.map +1 -0
  158. package/dist/actions/get-replies-count-report.cjs +25 -0
  159. package/dist/actions/get-replies-count-report.cjs.map +1 -0
  160. package/dist/actions/get-replies-count-report.d.cts +9 -0
  161. package/dist/actions/get-replies-count-report.d.cts.map +1 -0
  162. package/dist/actions/get-replies-count-report.d.mts +9 -0
  163. package/dist/actions/get-replies-count-report.d.mts.map +1 -0
  164. package/dist/actions/get-replies-count-report.mjs +24 -0
  165. package/dist/actions/get-replies-count-report.mjs.map +1 -0
  166. package/dist/actions/get-ticket.cjs +86 -0
  167. package/dist/actions/get-ticket.cjs.map +1 -0
  168. package/dist/actions/get-ticket.d.cts +9 -0
  169. package/dist/actions/get-ticket.d.cts.map +1 -0
  170. package/dist/actions/get-ticket.d.mts +9 -0
  171. package/dist/actions/get-ticket.d.mts.map +1 -0
  172. package/dist/actions/get-ticket.mjs +85 -0
  173. package/dist/actions/get-ticket.mjs.map +1 -0
  174. package/dist/actions/get-tickets-count-report.cjs +31 -0
  175. package/dist/actions/get-tickets-count-report.cjs.map +1 -0
  176. package/dist/actions/get-tickets-count-report.d.cts +9 -0
  177. package/dist/actions/get-tickets-count-report.d.cts.map +1 -0
  178. package/dist/actions/get-tickets-count-report.d.mts +9 -0
  179. package/dist/actions/get-tickets-count-report.d.mts.map +1 -0
  180. package/dist/actions/get-tickets-count-report.mjs +30 -0
  181. package/dist/actions/get-tickets-count-report.mjs.map +1 -0
  182. package/dist/actions/index.cjs +83 -0
  183. package/dist/actions/index.d.cts +42 -0
  184. package/dist/actions/index.d.mts +42 -0
  185. package/dist/actions/index.mjs +42 -0
  186. package/dist/actions/list-ticket-comments.cjs +50 -0
  187. package/dist/actions/list-ticket-comments.cjs.map +1 -0
  188. package/dist/actions/list-ticket-comments.d.cts +9 -0
  189. package/dist/actions/list-ticket-comments.d.cts.map +1 -0
  190. package/dist/actions/list-ticket-comments.d.mts +9 -0
  191. package/dist/actions/list-ticket-comments.d.mts.map +1 -0
  192. package/dist/actions/list-ticket-comments.mjs +49 -0
  193. package/dist/actions/list-ticket-comments.mjs.map +1 -0
  194. package/dist/actions/list-ticket-replies.cjs +49 -0
  195. package/dist/actions/list-ticket-replies.cjs.map +1 -0
  196. package/dist/actions/list-ticket-replies.d.cts +9 -0
  197. package/dist/actions/list-ticket-replies.d.cts.map +1 -0
  198. package/dist/actions/list-ticket-replies.d.mts +9 -0
  199. package/dist/actions/list-ticket-replies.d.mts.map +1 -0
  200. package/dist/actions/list-ticket-replies.mjs +48 -0
  201. package/dist/actions/list-ticket-replies.mjs.map +1 -0
  202. package/dist/actions/list-tickets.cjs +75 -0
  203. package/dist/actions/list-tickets.cjs.map +1 -0
  204. package/dist/actions/list-tickets.d.cts +9 -0
  205. package/dist/actions/list-tickets.d.cts.map +1 -0
  206. package/dist/actions/list-tickets.d.mts +9 -0
  207. package/dist/actions/list-tickets.d.mts.map +1 -0
  208. package/dist/actions/list-tickets.mjs +74 -0
  209. package/dist/actions/list-tickets.mjs.map +1 -0
  210. package/dist/actions/list-users.cjs +51 -0
  211. package/dist/actions/list-users.cjs.map +1 -0
  212. package/dist/actions/list-users.d.cts +9 -0
  213. package/dist/actions/list-users.d.cts.map +1 -0
  214. package/dist/actions/list-users.d.mts +9 -0
  215. package/dist/actions/list-users.d.mts.map +1 -0
  216. package/dist/actions/list-users.mjs +50 -0
  217. package/dist/actions/list-users.mjs.map +1 -0
  218. package/dist/actions/mark-ticket-as-answered.cjs +23 -0
  219. package/dist/actions/mark-ticket-as-answered.cjs.map +1 -0
  220. package/dist/actions/mark-ticket-as-answered.d.cts +9 -0
  221. package/dist/actions/mark-ticket-as-answered.d.cts.map +1 -0
  222. package/dist/actions/mark-ticket-as-answered.d.mts +9 -0
  223. package/dist/actions/mark-ticket-as-answered.d.mts.map +1 -0
  224. package/dist/actions/mark-ticket-as-answered.mjs +20 -0
  225. package/dist/actions/mark-ticket-as-answered.mjs.map +1 -0
  226. package/dist/actions/mark-ticket-as-spam.cjs +24 -0
  227. package/dist/actions/mark-ticket-as-spam.cjs.map +1 -0
  228. package/dist/actions/mark-ticket-as-spam.d.cts +9 -0
  229. package/dist/actions/mark-ticket-as-spam.d.cts.map +1 -0
  230. package/dist/actions/mark-ticket-as-spam.d.mts +9 -0
  231. package/dist/actions/mark-ticket-as-spam.d.mts.map +1 -0
  232. package/dist/actions/mark-ticket-as-spam.mjs +21 -0
  233. package/dist/actions/mark-ticket-as-spam.mjs.map +1 -0
  234. package/dist/actions/mark-ticket-as-unanswered.cjs +23 -0
  235. package/dist/actions/mark-ticket-as-unanswered.cjs.map +1 -0
  236. package/dist/actions/mark-ticket-as-unanswered.d.cts +9 -0
  237. package/dist/actions/mark-ticket-as-unanswered.d.cts.map +1 -0
  238. package/dist/actions/mark-ticket-as-unanswered.d.mts +9 -0
  239. package/dist/actions/mark-ticket-as-unanswered.d.mts.map +1 -0
  240. package/dist/actions/mark-ticket-as-unanswered.mjs +20 -0
  241. package/dist/actions/mark-ticket-as-unanswered.mjs.map +1 -0
  242. package/dist/actions/remove-label-from-ticket.cjs +24 -0
  243. package/dist/actions/remove-label-from-ticket.cjs.map +1 -0
  244. package/dist/actions/remove-label-from-ticket.d.cts +9 -0
  245. package/dist/actions/remove-label-from-ticket.d.cts.map +1 -0
  246. package/dist/actions/remove-label-from-ticket.d.mts +9 -0
  247. package/dist/actions/remove-label-from-ticket.d.mts.map +1 -0
  248. package/dist/actions/remove-label-from-ticket.mjs +21 -0
  249. package/dist/actions/remove-label-from-ticket.mjs.map +1 -0
  250. package/dist/actions/search-tickets.cjs +80 -0
  251. package/dist/actions/search-tickets.cjs.map +1 -0
  252. package/dist/actions/search-tickets.d.cts +9 -0
  253. package/dist/actions/search-tickets.d.cts.map +1 -0
  254. package/dist/actions/search-tickets.d.mts +9 -0
  255. package/dist/actions/search-tickets.d.mts.map +1 -0
  256. package/dist/actions/search-tickets.mjs +79 -0
  257. package/dist/actions/search-tickets.mjs.map +1 -0
  258. package/dist/actions/show-ticket-reply.cjs +47 -0
  259. package/dist/actions/show-ticket-reply.cjs.map +1 -0
  260. package/dist/actions/show-ticket-reply.d.cts +9 -0
  261. package/dist/actions/show-ticket-reply.d.cts.map +1 -0
  262. package/dist/actions/show-ticket-reply.d.mts +9 -0
  263. package/dist/actions/show-ticket-reply.d.mts.map +1 -0
  264. package/dist/actions/show-ticket-reply.mjs +46 -0
  265. package/dist/actions/show-ticket-reply.mjs.map +1 -0
  266. package/dist/actions/show-user-or-customer-group.cjs +47 -0
  267. package/dist/actions/show-user-or-customer-group.cjs.map +1 -0
  268. package/dist/actions/show-user-or-customer-group.d.cts +9 -0
  269. package/dist/actions/show-user-or-customer-group.d.cts.map +1 -0
  270. package/dist/actions/show-user-or-customer-group.d.mts +9 -0
  271. package/dist/actions/show-user-or-customer-group.d.mts.map +1 -0
  272. package/dist/actions/show-user-or-customer-group.mjs +46 -0
  273. package/dist/actions/show-user-or-customer-group.mjs.map +1 -0
  274. package/dist/actions/trash-ticket.cjs +26 -0
  275. package/dist/actions/trash-ticket.cjs.map +1 -0
  276. package/dist/actions/trash-ticket.d.cts +9 -0
  277. package/dist/actions/trash-ticket.d.cts.map +1 -0
  278. package/dist/actions/trash-ticket.d.mts +9 -0
  279. package/dist/actions/trash-ticket.d.mts.map +1 -0
  280. package/dist/actions/trash-ticket.mjs +25 -0
  281. package/dist/actions/trash-ticket.mjs.map +1 -0
  282. package/dist/actions/unarchive-ticket.cjs +20 -0
  283. package/dist/actions/unarchive-ticket.cjs.map +1 -0
  284. package/dist/actions/unarchive-ticket.d.cts +9 -0
  285. package/dist/actions/unarchive-ticket.d.cts.map +1 -0
  286. package/dist/actions/unarchive-ticket.d.mts +9 -0
  287. package/dist/actions/unarchive-ticket.d.mts.map +1 -0
  288. package/dist/actions/unarchive-ticket.mjs +17 -0
  289. package/dist/actions/unarchive-ticket.mjs.map +1 -0
  290. package/dist/actions/unassign-ticket-from-team.cjs +54 -0
  291. package/dist/actions/unassign-ticket-from-team.cjs.map +1 -0
  292. package/dist/actions/unassign-ticket-from-team.d.cts +9 -0
  293. package/dist/actions/unassign-ticket-from-team.d.cts.map +1 -0
  294. package/dist/actions/unassign-ticket-from-team.d.mts +9 -0
  295. package/dist/actions/unassign-ticket-from-team.d.mts.map +1 -0
  296. package/dist/actions/unassign-ticket-from-team.mjs +53 -0
  297. package/dist/actions/unassign-ticket-from-team.mjs.map +1 -0
  298. package/dist/actions/unassign-ticket-from-user.cjs +51 -0
  299. package/dist/actions/unassign-ticket-from-user.cjs.map +1 -0
  300. package/dist/actions/unassign-ticket-from-user.d.cts +9 -0
  301. package/dist/actions/unassign-ticket-from-user.d.cts.map +1 -0
  302. package/dist/actions/unassign-ticket-from-user.d.mts +9 -0
  303. package/dist/actions/unassign-ticket-from-user.d.mts.map +1 -0
  304. package/dist/actions/unassign-ticket-from-user.mjs +50 -0
  305. package/dist/actions/unassign-ticket-from-user.mjs.map +1 -0
  306. package/dist/actions/unmark-ticket-as-spam.cjs +24 -0
  307. package/dist/actions/unmark-ticket-as-spam.cjs.map +1 -0
  308. package/dist/actions/unmark-ticket-as-spam.d.cts +9 -0
  309. package/dist/actions/unmark-ticket-as-spam.d.cts.map +1 -0
  310. package/dist/actions/unmark-ticket-as-spam.d.mts +9 -0
  311. package/dist/actions/unmark-ticket-as-spam.d.mts.map +1 -0
  312. package/dist/actions/unmark-ticket-as-spam.mjs +21 -0
  313. package/dist/actions/unmark-ticket-as-spam.mjs.map +1 -0
  314. package/dist/actions/untrash-ticket.cjs +27 -0
  315. package/dist/actions/untrash-ticket.cjs.map +1 -0
  316. package/dist/actions/untrash-ticket.d.cts +9 -0
  317. package/dist/actions/untrash-ticket.d.cts.map +1 -0
  318. package/dist/actions/untrash-ticket.d.mts +9 -0
  319. package/dist/actions/untrash-ticket.d.mts.map +1 -0
  320. package/dist/actions/untrash-ticket.mjs +26 -0
  321. package/dist/actions/untrash-ticket.mjs.map +1 -0
  322. package/dist/actions/update-snippet.cjs +34 -0
  323. package/dist/actions/update-snippet.cjs.map +1 -0
  324. package/dist/actions/update-snippet.d.cts +9 -0
  325. package/dist/actions/update-snippet.d.cts.map +1 -0
  326. package/dist/actions/update-snippet.d.mts +9 -0
  327. package/dist/actions/update-snippet.d.mts.map +1 -0
  328. package/dist/actions/update-snippet.mjs +33 -0
  329. package/dist/actions/update-snippet.mjs.map +1 -0
  330. package/dist/actions/update-user.cjs +51 -0
  331. package/dist/actions/update-user.cjs.map +1 -0
  332. package/dist/actions/update-user.d.cts +9 -0
  333. package/dist/actions/update-user.d.cts.map +1 -0
  334. package/dist/actions/update-user.d.mts +9 -0
  335. package/dist/actions/update-user.d.mts.map +1 -0
  336. package/dist/actions/update-user.mjs +50 -0
  337. package/dist/actions/update-user.mjs.map +1 -0
  338. package/dist/app.cjs +9 -0
  339. package/dist/app.cjs.map +1 -0
  340. package/dist/app.d.cts +5 -0
  341. package/dist/app.d.cts.map +1 -0
  342. package/dist/app.d.mts +5 -0
  343. package/dist/app.d.mts.map +1 -0
  344. package/dist/app.mjs +10 -0
  345. package/dist/app.mjs.map +1 -0
  346. package/dist/catalog.cjs +15 -0
  347. package/dist/catalog.cjs.map +1 -0
  348. package/dist/catalog.d.cts +14 -0
  349. package/dist/catalog.d.cts.map +1 -0
  350. package/dist/catalog.d.mts +14 -0
  351. package/dist/catalog.d.mts.map +1 -0
  352. package/dist/catalog.mjs +15 -0
  353. package/dist/catalog.mjs.map +1 -0
  354. package/dist/execute.cjs +18 -0
  355. package/dist/execute.cjs.map +1 -0
  356. package/dist/execute.mjs +18 -0
  357. package/dist/execute.mjs.map +1 -0
  358. package/dist/index.cjs +88 -0
  359. package/dist/index.d.cts +44 -0
  360. package/dist/index.d.mts +44 -0
  361. package/dist/index.mjs +45 -0
  362. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-consequence.cjs","names":["z","action"],"sources":["../../src/actions/create-consequence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateConsequenceInput: z.ZodTypeAny = z.object({\n spam: z.boolean().describe(\"Set to true to automatically mark the ticket as spam when this consequence is triggered\").optional(),\n label: z.string().describe(\"A descriptive label for the consequence to identify its purpose\").optional(),\n archive: z.boolean().describe(\"Set to true to automatically archive the ticket when this consequence is triggered\").optional(),\n assign_team: z.string().describe(\"Team ID to assign the ticket to. Mutually exclusive with assign_user - cannot be used together.\").optional(),\n assign_user: z.string().describe(\"User ID to assign the ticket to. Mutually exclusive with assign_team - cannot be used together.\").optional(),\n}).describe(\"Request parameters for creating a consequence in SupportBee.\\nConsequences define actions to be taken when rules are triggered.\");\nconst SupportbeeCreateConsequence_CreateConsequenceResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the consequence\").nullable().optional(),\n spam: z.boolean().describe(\"Spam marking flag\").nullable().optional(),\n label: z.string().describe(\"Label of the consequence\").nullable().optional(),\n archive: z.boolean().describe(\"Archive action flag\").nullable().optional(),\n assign_team: z.string().describe(\"Assigned team ID\").nullable().optional(),\n assign_user: z.string().describe(\"Assigned user ID\").nullable().optional(),\n}).describe(\"Response data for a created consequence.\");\nexport const SupportbeeCreateConsequenceOutput: z.ZodTypeAny = z.object({\n consequence: SupportbeeCreateConsequence_CreateConsequenceResponseDataSchema.nullable(),\n}).describe(\"Response model after creating a consequence in SupportBee.\");\n\nexport const supportbeeCreateConsequence = action(\"SUPPORTBEE_CREATE_CONSEQUENCE\", {\n slug: \"supportbee-create-consequence\",\n name: \"Create Consequence\",\n description: \"Creates a new consequence for rules automation in SupportBee. Use when setting up automated actions that should be triggered by rules (e.g., auto-assign tickets, archive, or mark as spam).\",\n input: SupportbeeCreateConsequenceInput,\n output: SupportbeeCreateConsequenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACvG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,iIAAiI;AAC7I,MAAM,kEAAgFA,IAAAA,EAAE,OAAO;CAC7F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,aAAa,gEAAgE,SAAS,EACxF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-consequence.d.ts
4
+ declare const SupportbeeCreateConsequenceInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateConsequenceOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateConsequence: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateConsequence };
9
+ //# sourceMappingURL=create-consequence.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-consequence.d.cts","names":[],"sources":["../../src/actions/create-consequence.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAM6F;AAAA,cASjI,iCAAA,EAAmC,CAAA,CAAE,UAEuB;AAAA,cAE5D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-consequence.d.ts
4
+ declare const SupportbeeCreateConsequenceInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateConsequenceOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateConsequence: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateConsequence };
9
+ //# sourceMappingURL=create-consequence.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-consequence.d.mts","names":[],"sources":["../../src/actions/create-consequence.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAM6F;AAAA,cASjI,iCAAA,EAAmC,CAAA,CAAE,UAEuB;AAAA,cAE5D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-consequence.ts
4
+ const SupportbeeCreateConsequenceInput = z.object({
5
+ spam: z.boolean().describe("Set to true to automatically mark the ticket as spam when this consequence is triggered").optional(),
6
+ label: z.string().describe("A descriptive label for the consequence to identify its purpose").optional(),
7
+ archive: z.boolean().describe("Set to true to automatically archive the ticket when this consequence is triggered").optional(),
8
+ assign_team: z.string().describe("Team ID to assign the ticket to. Mutually exclusive with assign_user - cannot be used together.").optional(),
9
+ assign_user: z.string().describe("User ID to assign the ticket to. Mutually exclusive with assign_team - cannot be used together.").optional()
10
+ }).describe("Request parameters for creating a consequence in SupportBee.\nConsequences define actions to be taken when rules are triggered.");
11
+ const SupportbeeCreateConsequence_CreateConsequenceResponseDataSchema = z.object({
12
+ id: z.string().describe("Unique identifier of the consequence").nullable().optional(),
13
+ spam: z.boolean().describe("Spam marking flag").nullable().optional(),
14
+ label: z.string().describe("Label of the consequence").nullable().optional(),
15
+ archive: z.boolean().describe("Archive action flag").nullable().optional(),
16
+ assign_team: z.string().describe("Assigned team ID").nullable().optional(),
17
+ assign_user: z.string().describe("Assigned user ID").nullable().optional()
18
+ }).describe("Response data for a created consequence.");
19
+ const supportbeeCreateConsequence = action("SUPPORTBEE_CREATE_CONSEQUENCE", {
20
+ slug: "supportbee-create-consequence",
21
+ name: "Create Consequence",
22
+ description: "Creates a new consequence for rules automation in SupportBee. Use when setting up automated actions that should be triggered by rules (e.g., auto-assign tickets, archive, or mark as spam).",
23
+ input: SupportbeeCreateConsequenceInput,
24
+ output: z.object({ consequence: SupportbeeCreateConsequence_CreateConsequenceResponseDataSchema.nullable() }).describe("Response model after creating a consequence in SupportBee.")
25
+ });
26
+ //#endregion
27
+ export { supportbeeCreateConsequence };
28
+
29
+ //# sourceMappingURL=create-consequence.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-consequence.mjs","names":[],"sources":["../../src/actions/create-consequence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateConsequenceInput: z.ZodTypeAny = z.object({\n spam: z.boolean().describe(\"Set to true to automatically mark the ticket as spam when this consequence is triggered\").optional(),\n label: z.string().describe(\"A descriptive label for the consequence to identify its purpose\").optional(),\n archive: z.boolean().describe(\"Set to true to automatically archive the ticket when this consequence is triggered\").optional(),\n assign_team: z.string().describe(\"Team ID to assign the ticket to. Mutually exclusive with assign_user - cannot be used together.\").optional(),\n assign_user: z.string().describe(\"User ID to assign the ticket to. Mutually exclusive with assign_team - cannot be used together.\").optional(),\n}).describe(\"Request parameters for creating a consequence in SupportBee.\\nConsequences define actions to be taken when rules are triggered.\");\nconst SupportbeeCreateConsequence_CreateConsequenceResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the consequence\").nullable().optional(),\n spam: z.boolean().describe(\"Spam marking flag\").nullable().optional(),\n label: z.string().describe(\"Label of the consequence\").nullable().optional(),\n archive: z.boolean().describe(\"Archive action flag\").nullable().optional(),\n assign_team: z.string().describe(\"Assigned team ID\").nullable().optional(),\n assign_user: z.string().describe(\"Assigned user ID\").nullable().optional(),\n}).describe(\"Response data for a created consequence.\");\nexport const SupportbeeCreateConsequenceOutput: z.ZodTypeAny = z.object({\n consequence: SupportbeeCreateConsequence_CreateConsequenceResponseDataSchema.nullable(),\n}).describe(\"Response model after creating a consequence in SupportBee.\");\n\nexport const supportbeeCreateConsequence = action(\"SUPPORTBEE_CREATE_CONSEQUENCE\", {\n slug: \"supportbee-create-consequence\",\n name: \"Create Consequence\",\n description: \"Creates a new consequence for rules automation in SupportBee. Use when setting up automated actions that should be triggered by rules (e.g., auto-assign tickets, archive, or mark as spam).\",\n input: SupportbeeCreateConsequenceInput,\n output: SupportbeeCreateConsequenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACvG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,iIAAiI;AAC7I,MAAM,kEAAgF,EAAE,OAAO;CAC7F,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,8BAA8B,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,aAAa,gEAAgE,SAAS,EACxF,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
@@ -0,0 +1,43 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-email.ts
4
+ const SupportbeeCreateEmailInput = zod.z.object({
5
+ name: zod.z.string().describe("Display name for the email address. This name will be used when sending replies from this address.").optional(),
6
+ email: zod.z.string().describe("The email address to create as a forwarding address. This is the address that will forward emails to SupportBee."),
7
+ filter_spam: zod.z.boolean().describe("Whether to filter spam emails. When enabled, suspected spam emails will be automatically filtered.").optional(),
8
+ use_agent_name: zod.z.boolean().describe("Whether to use the agent's name instead of the company name when sending replies from this address.").optional()
9
+ }).describe("Request model for creating a forwarding email address in SupportBee.");
10
+ const SupportbeeCreateEmail_SMTPSettingsSchema = zod.z.object({ failing: zod.z.boolean().describe("Whether SMTP is failing.").nullable().optional() }).describe("Model for SMTP settings.");
11
+ const SupportbeeCreateEmail_AutoResponderSchema = zod.z.object({ enabled: zod.z.boolean().describe("Whether auto responder is enabled.").nullable().optional() }).describe("Model for auto responder settings.");
12
+ const SupportbeeCreateEmail_CreatedForwardingEmailSchema = zod.z.object({
13
+ id: zod.z.number().int().describe("Unique identifier for the forwarding email address."),
14
+ from: zod.z.string().describe("The forwarding email address (e.g., support@example.com).").nullable().optional(),
15
+ name: zod.z.string().describe("Display name used when sending replies from this address.").nullable().optional(),
16
+ smtp: SupportbeeCreateEmail_SMTPSettingsSchema.nullable().optional(),
17
+ gmail: zod.z.object({}).describe("Gmail settings if applicable.").nullable().optional(),
18
+ source: zod.z.string().describe("Source of the email (e.g., smtp, gmail).").nullable().optional(),
19
+ company_id: zod.z.number().int().describe("ID of the company this forwarding address belongs to.").nullable().optional(),
20
+ created_at: zod.z.string().describe("Timestamp when the forwarding address was created (ISO 8601 format).").nullable().optional(),
21
+ forward_to: zod.z.string().describe("The SupportBee email address that forwards to (e.g., xxx@supportbeemail.com).").nullable().optional(),
22
+ global_bcc: zod.z.string().describe("BCC address that receives a copy of all outgoing replies.").nullable().optional(),
23
+ updated_at: zod.z.string().describe("Timestamp when the forwarding address was last updated (ISO 8601 format).").nullable().optional(),
24
+ filter_spam: zod.z.boolean().describe("Whether spam filtering is enabled for incoming emails.").nullable().optional(),
25
+ inaccessible: zod.z.boolean().describe("Whether the email address is inaccessible.").nullable().optional(),
26
+ reconnect_url: zod.z.string().describe("URL to reconnect the email address.").nullable().optional(),
27
+ auto_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional(),
28
+ use_agent_name: zod.z.boolean().describe("Whether to use the agent's name instead of the company name in replies.").nullable().optional(),
29
+ forwarding_hash: zod.z.string().describe("Unique hash used for the forwarding setup (used in the forwarding email address).").nullable().optional(),
30
+ after_archive_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional()
31
+ }).passthrough().describe("Model representing a created forwarding email address in SupportBee.");
32
+ const SupportbeeCreateEmailOutput = zod.z.object({ forwarding_address: SupportbeeCreateEmail_CreatedForwardingEmailSchema.nullable() }).describe("Response model after creating a forwarding email address in SupportBee.");
33
+ const supportbeeCreateEmail = require_action.action("SUPPORTBEE_CREATE_EMAIL", {
34
+ slug: "supportbee-create-email",
35
+ name: "Create Forwarding Email",
36
+ description: "Create a new forwarding email address for the company in SupportBee. Use this to add new support email addresses that will forward incoming emails to your SupportBee account as tickets.",
37
+ input: SupportbeeCreateEmailInput,
38
+ output: SupportbeeCreateEmailOutput
39
+ });
40
+ //#endregion
41
+ exports.supportbeeCreateEmail = supportbeeCreateEmail;
42
+
43
+ //# sourceMappingURL=create-email.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-email.cjs","names":["z","action"],"sources":["../../src/actions/create-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateEmailInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name for the email address. This name will be used when sending replies from this address.\").optional(),\n email: z.string().describe(\"The email address to create as a forwarding address. This is the address that will forward emails to SupportBee.\"),\n filter_spam: z.boolean().describe(\"Whether to filter spam emails. When enabled, suspected spam emails will be automatically filtered.\").optional(),\n use_agent_name: z.boolean().describe(\"Whether to use the agent's name instead of the company name when sending replies from this address.\").optional(),\n}).describe(\"Request model for creating a forwarding email address in SupportBee.\");\nconst SupportbeeCreateEmail_SMTPSettingsSchema: z.ZodTypeAny = z.object({\n failing: z.boolean().describe(\"Whether SMTP is failing.\").nullable().optional(),\n}).describe(\"Model for SMTP settings.\");\nconst SupportbeeCreateEmail_AutoResponderSchema: z.ZodTypeAny = z.object({\n enabled: z.boolean().describe(\"Whether auto responder is enabled.\").nullable().optional(),\n}).describe(\"Model for auto responder settings.\");\nconst SupportbeeCreateEmail_CreatedForwardingEmailSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the forwarding email address.\"),\n from: z.string().describe(\"The forwarding email address (e.g., support@example.com).\").nullable().optional(),\n name: z.string().describe(\"Display name used when sending replies from this address.\").nullable().optional(),\n smtp: SupportbeeCreateEmail_SMTPSettingsSchema.nullable().optional(),\n gmail: z.object({}).describe(\"Gmail settings if applicable.\").nullable().optional(),\n source: z.string().describe(\"Source of the email (e.g., smtp, gmail).\").nullable().optional(),\n company_id: z.number().int().describe(\"ID of the company this forwarding address belongs to.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the forwarding address was created (ISO 8601 format).\").nullable().optional(),\n forward_to: z.string().describe(\"The SupportBee email address that forwards to (e.g., xxx@supportbeemail.com).\").nullable().optional(),\n global_bcc: z.string().describe(\"BCC address that receives a copy of all outgoing replies.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the forwarding address was last updated (ISO 8601 format).\").nullable().optional(),\n filter_spam: z.boolean().describe(\"Whether spam filtering is enabled for incoming emails.\").nullable().optional(),\n inaccessible: z.boolean().describe(\"Whether the email address is inaccessible.\").nullable().optional(),\n reconnect_url: z.string().describe(\"URL to reconnect the email address.\").nullable().optional(),\n auto_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional(),\n use_agent_name: z.boolean().describe(\"Whether to use the agent's name instead of the company name in replies.\").nullable().optional(),\n forwarding_hash: z.string().describe(\"Unique hash used for the forwarding setup (used in the forwarding email address).\").nullable().optional(),\n after_archive_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional(),\n}).passthrough().describe(\"Model representing a created forwarding email address in SupportBee.\");\nexport const SupportbeeCreateEmailOutput: z.ZodTypeAny = z.object({\n forwarding_address: SupportbeeCreateEmail_CreatedForwardingEmailSchema.nullable(),\n}).describe(\"Response model after creating a forwarding email address in SupportBee.\");\n\nexport const supportbeeCreateEmail = action(\"SUPPORTBEE_CREATE_EMAIL\", {\n slug: \"supportbee-create-email\",\n name: \"Create Forwarding Email\",\n description: \"Create a new forwarding email address for the company in SupportBee. Use this to add new support email addresses that will forward incoming emails to your SupportBee account as tickets.\",\n input: SupportbeeCreateEmailInput,\n output: SupportbeeCreateEmailOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-email.d.ts
4
+ declare const SupportbeeCreateEmailInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateEmailOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateEmail };
9
+ //# sourceMappingURL=create-email.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-email.d.cts","names":[],"sources":["../../src/actions/create-email.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAKwC;AAAA,cA2BtE,2BAAA,EAA6B,CAAA,CAAE,UAE0C;AAAA,cAEzE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-email.d.ts
4
+ declare const SupportbeeCreateEmailInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateEmailOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateEmail };
9
+ //# sourceMappingURL=create-email.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-email.d.mts","names":[],"sources":["../../src/actions/create-email.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAKwC;AAAA,cA2BtE,2BAAA,EAA6B,CAAA,CAAE,UAE0C;AAAA,cAEzE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-email.ts
4
+ const SupportbeeCreateEmailInput = z.object({
5
+ name: z.string().describe("Display name for the email address. This name will be used when sending replies from this address.").optional(),
6
+ email: z.string().describe("The email address to create as a forwarding address. This is the address that will forward emails to SupportBee."),
7
+ filter_spam: z.boolean().describe("Whether to filter spam emails. When enabled, suspected spam emails will be automatically filtered.").optional(),
8
+ use_agent_name: z.boolean().describe("Whether to use the agent's name instead of the company name when sending replies from this address.").optional()
9
+ }).describe("Request model for creating a forwarding email address in SupportBee.");
10
+ const SupportbeeCreateEmail_SMTPSettingsSchema = z.object({ failing: z.boolean().describe("Whether SMTP is failing.").nullable().optional() }).describe("Model for SMTP settings.");
11
+ const SupportbeeCreateEmail_AutoResponderSchema = z.object({ enabled: z.boolean().describe("Whether auto responder is enabled.").nullable().optional() }).describe("Model for auto responder settings.");
12
+ const SupportbeeCreateEmail_CreatedForwardingEmailSchema = z.object({
13
+ id: z.number().int().describe("Unique identifier for the forwarding email address."),
14
+ from: z.string().describe("The forwarding email address (e.g., support@example.com).").nullable().optional(),
15
+ name: z.string().describe("Display name used when sending replies from this address.").nullable().optional(),
16
+ smtp: SupportbeeCreateEmail_SMTPSettingsSchema.nullable().optional(),
17
+ gmail: z.object({}).describe("Gmail settings if applicable.").nullable().optional(),
18
+ source: z.string().describe("Source of the email (e.g., smtp, gmail).").nullable().optional(),
19
+ company_id: z.number().int().describe("ID of the company this forwarding address belongs to.").nullable().optional(),
20
+ created_at: z.string().describe("Timestamp when the forwarding address was created (ISO 8601 format).").nullable().optional(),
21
+ forward_to: z.string().describe("The SupportBee email address that forwards to (e.g., xxx@supportbeemail.com).").nullable().optional(),
22
+ global_bcc: z.string().describe("BCC address that receives a copy of all outgoing replies.").nullable().optional(),
23
+ updated_at: z.string().describe("Timestamp when the forwarding address was last updated (ISO 8601 format).").nullable().optional(),
24
+ filter_spam: z.boolean().describe("Whether spam filtering is enabled for incoming emails.").nullable().optional(),
25
+ inaccessible: z.boolean().describe("Whether the email address is inaccessible.").nullable().optional(),
26
+ reconnect_url: z.string().describe("URL to reconnect the email address.").nullable().optional(),
27
+ auto_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional(),
28
+ use_agent_name: z.boolean().describe("Whether to use the agent's name instead of the company name in replies.").nullable().optional(),
29
+ forwarding_hash: z.string().describe("Unique hash used for the forwarding setup (used in the forwarding email address).").nullable().optional(),
30
+ after_archive_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional()
31
+ }).passthrough().describe("Model representing a created forwarding email address in SupportBee.");
32
+ const supportbeeCreateEmail = action("SUPPORTBEE_CREATE_EMAIL", {
33
+ slug: "supportbee-create-email",
34
+ name: "Create Forwarding Email",
35
+ description: "Create a new forwarding email address for the company in SupportBee. Use this to add new support email addresses that will forward incoming emails to your SupportBee account as tickets.",
36
+ input: SupportbeeCreateEmailInput,
37
+ output: z.object({ forwarding_address: SupportbeeCreateEmail_CreatedForwardingEmailSchema.nullable() }).describe("Response model after creating a forwarding email address in SupportBee.")
38
+ });
39
+ //#endregion
40
+ export { supportbeeCreateEmail };
41
+
42
+ //# sourceMappingURL=create-email.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-email.mjs","names":[],"sources":["../../src/actions/create-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateEmailInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name for the email address. This name will be used when sending replies from this address.\").optional(),\n email: z.string().describe(\"The email address to create as a forwarding address. This is the address that will forward emails to SupportBee.\"),\n filter_spam: z.boolean().describe(\"Whether to filter spam emails. When enabled, suspected spam emails will be automatically filtered.\").optional(),\n use_agent_name: z.boolean().describe(\"Whether to use the agent's name instead of the company name when sending replies from this address.\").optional(),\n}).describe(\"Request model for creating a forwarding email address in SupportBee.\");\nconst SupportbeeCreateEmail_SMTPSettingsSchema: z.ZodTypeAny = z.object({\n failing: z.boolean().describe(\"Whether SMTP is failing.\").nullable().optional(),\n}).describe(\"Model for SMTP settings.\");\nconst SupportbeeCreateEmail_AutoResponderSchema: z.ZodTypeAny = z.object({\n enabled: z.boolean().describe(\"Whether auto responder is enabled.\").nullable().optional(),\n}).describe(\"Model for auto responder settings.\");\nconst SupportbeeCreateEmail_CreatedForwardingEmailSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the forwarding email address.\"),\n from: z.string().describe(\"The forwarding email address (e.g., support@example.com).\").nullable().optional(),\n name: z.string().describe(\"Display name used when sending replies from this address.\").nullable().optional(),\n smtp: SupportbeeCreateEmail_SMTPSettingsSchema.nullable().optional(),\n gmail: z.object({}).describe(\"Gmail settings if applicable.\").nullable().optional(),\n source: z.string().describe(\"Source of the email (e.g., smtp, gmail).\").nullable().optional(),\n company_id: z.number().int().describe(\"ID of the company this forwarding address belongs to.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the forwarding address was created (ISO 8601 format).\").nullable().optional(),\n forward_to: z.string().describe(\"The SupportBee email address that forwards to (e.g., xxx@supportbeemail.com).\").nullable().optional(),\n global_bcc: z.string().describe(\"BCC address that receives a copy of all outgoing replies.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the forwarding address was last updated (ISO 8601 format).\").nullable().optional(),\n filter_spam: z.boolean().describe(\"Whether spam filtering is enabled for incoming emails.\").nullable().optional(),\n inaccessible: z.boolean().describe(\"Whether the email address is inaccessible.\").nullable().optional(),\n reconnect_url: z.string().describe(\"URL to reconnect the email address.\").nullable().optional(),\n auto_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional(),\n use_agent_name: z.boolean().describe(\"Whether to use the agent's name instead of the company name in replies.\").nullable().optional(),\n forwarding_hash: z.string().describe(\"Unique hash used for the forwarding setup (used in the forwarding email address).\").nullable().optional(),\n after_archive_responder: SupportbeeCreateEmail_AutoResponderSchema.nullable().optional(),\n}).passthrough().describe(\"Model representing a created forwarding email address in SupportBee.\");\nexport const SupportbeeCreateEmailOutput: z.ZodTypeAny = z.object({\n forwarding_address: SupportbeeCreateEmail_CreatedForwardingEmailSchema.nullable(),\n}).describe(\"Response model after creating a forwarding email address in SupportBee.\");\n\nexport const supportbeeCreateEmail = action(\"SUPPORTBEE_CREATE_EMAIL\", {\n slug: \"supportbee-create-email\",\n name: \"Create Forwarding Email\",\n description: \"Create a new forwarding email address for the company in SupportBee. Use this to add new support email addresses that will forward incoming emails to your SupportBee account as tickets.\",\n input: SupportbeeCreateEmailInput,\n output: SupportbeeCreateEmailOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-filter.ts
4
+ const SupportbeeCreateFilterInput = zod.z.object({
5
+ rule_id: zod.z.string().describe("ID of the rule to match. This rule defines the conditions under which the filter will be triggered. Use the Create Rule action to generate a rule and obtain its ID."),
6
+ consequence_id: zod.z.string().describe("ID of the consequence to apply when the rule matches. The consequence defines the actions that will be executed when the filter conditions are met.")
7
+ }).describe("Request model for creating a filter in SupportBee.");
8
+ const SupportbeeCreateFilterOutput = zod.z.object({
9
+ id: zod.z.string().describe("Unique identifier of the created filter").nullable().optional(),
10
+ active: zod.z.boolean().describe("Whether the filter is active").nullable().optional(),
11
+ rule_id: zod.z.string().describe("ID of the rule associated with the filter").nullable().optional(),
12
+ created_at: zod.z.string().describe("Timestamp when the filter was created").nullable().optional(),
13
+ consequence_id: zod.z.string().describe("ID of the consequence associated with the filter").nullable().optional()
14
+ }).describe("Response model after creating a filter in SupportBee.");
15
+ const supportbeeCreateFilter = require_action.action("SUPPORTBEE_CREATE_FILTER", {
16
+ slug: "supportbee-create-filter",
17
+ name: "Create Filter",
18
+ description: "Creates a filter in SupportBee by linking a rule with a consequence. Use this after creating both a rule (defining match conditions) and a consequence (defining actions to perform).",
19
+ input: SupportbeeCreateFilterInput,
20
+ output: SupportbeeCreateFilterOutput
21
+ });
22
+ //#endregion
23
+ exports.supportbeeCreateFilter = supportbeeCreateFilter;
24
+
25
+ //# sourceMappingURL=create-filter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-filter.cjs","names":["z","action"],"sources":["../../src/actions/create-filter.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateFilterInput: z.ZodTypeAny = z.object({\n rule_id: z.string().describe(\"ID of the rule to match. This rule defines the conditions under which the filter will be triggered. Use the Create Rule action to generate a rule and obtain its ID.\"),\n consequence_id: z.string().describe(\"ID of the consequence to apply when the rule matches. The consequence defines the actions that will be executed when the filter conditions are met.\"),\n}).describe(\"Request model for creating a filter in SupportBee.\");\nexport const SupportbeeCreateFilterOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created filter\").nullable().optional(),\n active: z.boolean().describe(\"Whether the filter is active\").nullable().optional(),\n rule_id: z.string().describe(\"ID of the rule associated with the filter\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the filter was created\").nullable().optional(),\n consequence_id: z.string().describe(\"ID of the consequence associated with the filter\").nullable().optional(),\n}).describe(\"Response model after creating a filter in SupportBee.\");\n\nexport const supportbeeCreateFilter = action(\"SUPPORTBEE_CREATE_FILTER\", {\n slug: \"supportbee-create-filter\",\n name: \"Create Filter\",\n description: \"Creates a filter in SupportBee by linking a rule with a consequence. Use this after creating both a rule (defining match conditions) and a consequence (defining actions to perform).\",\n input: SupportbeeCreateFilterInput,\n output: SupportbeeCreateFilterOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CACnM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;AAC3L,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-filter.d.ts
4
+ declare const SupportbeeCreateFilterInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateFilterOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateFilter: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateFilter };
9
+ //# sourceMappingURL=create-filter.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-filter.d.cts","names":[],"sources":["../../src/actions/create-filter.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGqB;AAAA,cACpD,4BAAA,EAA8B,CAAA,CAAE,UAMuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-filter.d.ts
4
+ declare const SupportbeeCreateFilterInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateFilterOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateFilter: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateFilter };
9
+ //# sourceMappingURL=create-filter.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-filter.d.mts","names":[],"sources":["../../src/actions/create-filter.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGqB;AAAA,cACpD,4BAAA,EAA8B,CAAA,CAAE,UAMuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const supportbeeCreateFilter = action("SUPPORTBEE_CREATE_FILTER", {
4
+ slug: "supportbee-create-filter",
5
+ name: "Create Filter",
6
+ description: "Creates a filter in SupportBee by linking a rule with a consequence. Use this after creating both a rule (defining match conditions) and a consequence (defining actions to perform).",
7
+ input: z.object({
8
+ rule_id: z.string().describe("ID of the rule to match. This rule defines the conditions under which the filter will be triggered. Use the Create Rule action to generate a rule and obtain its ID."),
9
+ consequence_id: z.string().describe("ID of the consequence to apply when the rule matches. The consequence defines the actions that will be executed when the filter conditions are met.")
10
+ }).describe("Request model for creating a filter in SupportBee."),
11
+ output: z.object({
12
+ id: z.string().describe("Unique identifier of the created filter").nullable().optional(),
13
+ active: z.boolean().describe("Whether the filter is active").nullable().optional(),
14
+ rule_id: z.string().describe("ID of the rule associated with the filter").nullable().optional(),
15
+ created_at: z.string().describe("Timestamp when the filter was created").nullable().optional(),
16
+ consequence_id: z.string().describe("ID of the consequence associated with the filter").nullable().optional()
17
+ }).describe("Response model after creating a filter in SupportBee.")
18
+ });
19
+ //#endregion
20
+ export { supportbeeCreateFilter };
21
+
22
+ //# sourceMappingURL=create-filter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-filter.mjs","names":[],"sources":["../../src/actions/create-filter.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateFilterInput: z.ZodTypeAny = z.object({\n rule_id: z.string().describe(\"ID of the rule to match. This rule defines the conditions under which the filter will be triggered. Use the Create Rule action to generate a rule and obtain its ID.\"),\n consequence_id: z.string().describe(\"ID of the consequence to apply when the rule matches. The consequence defines the actions that will be executed when the filter conditions are met.\"),\n}).describe(\"Request model for creating a filter in SupportBee.\");\nexport const SupportbeeCreateFilterOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created filter\").nullable().optional(),\n active: z.boolean().describe(\"Whether the filter is active\").nullable().optional(),\n rule_id: z.string().describe(\"ID of the rule associated with the filter\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the filter was created\").nullable().optional(),\n consequence_id: z.string().describe(\"ID of the consequence associated with the filter\").nullable().optional(),\n}).describe(\"Response model after creating a filter in SupportBee.\");\n\nexport const supportbeeCreateFilter = action(\"SUPPORTBEE_CREATE_FILTER\", {\n slug: \"supportbee-create-filter\",\n name: \"Create Filter\",\n description: \"Creates a filter in SupportBee by linking a rule with a consequence. Use this after creating both a rule (defining match conditions) and a consequence (defining actions to perform).\",\n input: SupportbeeCreateFilterInput,\n output: SupportbeeCreateFilterOutput,\n});\n"],"mappings":";;AAgBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EACnM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC3L,CAAC,CAAC,CAAC,SAAS,oDAaH;CACP,QAbwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-rule.ts
4
+ const SupportbeeCreateRuleInput = zod.z.object({
5
+ name: zod.z.string().describe("Name of the rule to be created"),
6
+ active: zod.z.boolean().default(true).describe("Flag indicating if the rule should be active upon creation").optional(),
7
+ actions: zod.z.array(zod.z.object({
8
+ value: zod.z.string().describe("Value for the action. For 'label' or 'assign': use numeric ID (e.g., '65398'). For 'archive' or 'spam': use 'true'. For 'priority': use 'high', 'medium', or 'low'"),
9
+ action: zod.z.string().describe("Type of action to perform when rule conditions match. Supported actions: 'label' (apply label using label ID), 'archive' (archive ticket), 'assign' (assign to user/team using ID), 'priority' (set priority level), 'spam' (mark as spam)")
10
+ })).describe("List of one or more actions to execute when conditions match"),
11
+ conditions: zod.z.array(zod.z.object({
12
+ field: zod.z.string().describe("Ticket field to evaluate. Common fields: 'subject' (ticket subject line), 'from' (sender email), 'body' (ticket content), 'delivered_to' (recipient email)"),
13
+ value: zod.z.string().describe("Value to compare against the field using the specified predicate"),
14
+ predicate: zod.z.string().describe("Matching predicate to apply. Supported values: 'contains' (partial text match), 'equals' (exact match)")
15
+ })).describe("List of one or more conditions that trigger the rule"),
16
+ sort_order: zod.z.number().int().default(0).describe("Optional sort order for the rule, non-negative").optional(),
17
+ description: zod.z.string().describe("Optional description for the rule").optional()
18
+ });
19
+ const SupportbeeCreateRuleOutput = zod.z.object({ id: zod.z.string().describe("Unique identifier for the created rule") });
20
+ const supportbeeCreateRule = require_action.action("SUPPORTBEE_CREATE_RULE", {
21
+ slug: "supportbee-create-rule",
22
+ name: "Create Rule",
23
+ description: "Creates a new automation rule in SupportBee to automatically process tickets based on conditions. Rules allow you to automate ticket workflows by: - Matching tickets based on field conditions (subject, sender, body, etc.) - Automatically applying actions like labeling, archiving, assigning, or setting priority Use this after fetching available labels/teams to get valid IDs for actions. The rule will be evaluated for all new and existing tickets matching the conditions. Returns the created rule's unique ID.",
24
+ input: SupportbeeCreateRuleInput,
25
+ output: SupportbeeCreateRuleOutput
26
+ });
27
+ //#endregion
28
+ exports.supportbeeCreateRule = supportbeeCreateRule;
29
+
30
+ //# sourceMappingURL=create-rule.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rule.cjs","names":["z","action"],"sources":["../../src/actions/create-rule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateRuleInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the rule to be created\"),\n active: z.boolean().default(true).describe(\"Flag indicating if the rule should be active upon creation\").optional(),\n actions: z.array(z.object({\n value: z.string().describe(\"Value for the action. For 'label' or 'assign': use numeric ID (e.g., '65398'). For 'archive' or 'spam': use 'true'. For 'priority': use 'high', 'medium', or 'low'\"),\n action: z.string().describe(\"Type of action to perform when rule conditions match. Supported actions: 'label' (apply label using label ID), 'archive' (archive ticket), 'assign' (assign to user/team using ID), 'priority' (set priority level), 'spam' (mark as spam)\"),\n})).describe(\"List of one or more actions to execute when conditions match\"),\n conditions: z.array(z.object({\n field: z.string().describe(\"Ticket field to evaluate. Common fields: 'subject' (ticket subject line), 'from' (sender email), 'body' (ticket content), 'delivered_to' (recipient email)\"),\n value: z.string().describe(\"Value to compare against the field using the specified predicate\"),\n predicate: z.string().describe(\"Matching predicate to apply. Supported values: 'contains' (partial text match), 'equals' (exact match)\"),\n})).describe(\"List of one or more conditions that trigger the rule\"),\n sort_order: z.number().int().default(0).describe(\"Optional sort order for the rule, non-negative\").optional(),\n description: z.string().describe(\"Optional description for the rule\").optional(),\n});\nexport const SupportbeeCreateRuleOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the created rule\"),\n});\n\nexport const supportbeeCreateRule = action(\"SUPPORTBEE_CREATE_RULE\", {\n slug: \"supportbee-create-rule\",\n name: \"Create Rule\",\n description: \"Creates a new automation rule in SupportBee to automatically process tickets based on conditions. Rules allow you to automate ticket workflows by: - Matching tickets based on field conditions (subject, sender, body, etc.) - Automatically applying actions like labeling, archiving, assigning, or setting priority Use this after fetching available labels/teams to get valid IDs for actions. The rule will be evaluated for all new and existing tickets matching the conditions. Returns the created rule's unique ID.\",\n input: SupportbeeCreateRuleInput,\n output: SupportbeeCreateRuleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;EAC/L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4OAA4O;CAC1Q,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D;CACzE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;EACvL,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;CACzI,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-rule.d.ts
4
+ declare const SupportbeeCreateRuleInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateRuleOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateRule: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateRule };
9
+ //# sourceMappingURL=create-rule.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rule.d.cts","names":[],"sources":["../../src/actions/create-rule.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAcxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-rule.d.ts
4
+ declare const SupportbeeCreateRuleInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateRuleOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateRule: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateRule };
9
+ //# sourceMappingURL=create-rule.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rule.d.mts","names":[],"sources":["../../src/actions/create-rule.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAcxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,27 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const supportbeeCreateRule = action("SUPPORTBEE_CREATE_RULE", {
4
+ slug: "supportbee-create-rule",
5
+ name: "Create Rule",
6
+ description: "Creates a new automation rule in SupportBee to automatically process tickets based on conditions. Rules allow you to automate ticket workflows by: - Matching tickets based on field conditions (subject, sender, body, etc.) - Automatically applying actions like labeling, archiving, assigning, or setting priority Use this after fetching available labels/teams to get valid IDs for actions. The rule will be evaluated for all new and existing tickets matching the conditions. Returns the created rule's unique ID.",
7
+ input: z.object({
8
+ name: z.string().describe("Name of the rule to be created"),
9
+ active: z.boolean().default(true).describe("Flag indicating if the rule should be active upon creation").optional(),
10
+ actions: z.array(z.object({
11
+ value: z.string().describe("Value for the action. For 'label' or 'assign': use numeric ID (e.g., '65398'). For 'archive' or 'spam': use 'true'. For 'priority': use 'high', 'medium', or 'low'"),
12
+ action: z.string().describe("Type of action to perform when rule conditions match. Supported actions: 'label' (apply label using label ID), 'archive' (archive ticket), 'assign' (assign to user/team using ID), 'priority' (set priority level), 'spam' (mark as spam)")
13
+ })).describe("List of one or more actions to execute when conditions match"),
14
+ conditions: z.array(z.object({
15
+ field: z.string().describe("Ticket field to evaluate. Common fields: 'subject' (ticket subject line), 'from' (sender email), 'body' (ticket content), 'delivered_to' (recipient email)"),
16
+ value: z.string().describe("Value to compare against the field using the specified predicate"),
17
+ predicate: z.string().describe("Matching predicate to apply. Supported values: 'contains' (partial text match), 'equals' (exact match)")
18
+ })).describe("List of one or more conditions that trigger the rule"),
19
+ sort_order: z.number().int().default(0).describe("Optional sort order for the rule, non-negative").optional(),
20
+ description: z.string().describe("Optional description for the rule").optional()
21
+ }),
22
+ output: z.object({ id: z.string().describe("Unique identifier for the created rule") })
23
+ });
24
+ //#endregion
25
+ export { supportbeeCreateRule };
26
+
27
+ //# sourceMappingURL=create-rule.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rule.mjs","names":[],"sources":["../../src/actions/create-rule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateRuleInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the rule to be created\"),\n active: z.boolean().default(true).describe(\"Flag indicating if the rule should be active upon creation\").optional(),\n actions: z.array(z.object({\n value: z.string().describe(\"Value for the action. For 'label' or 'assign': use numeric ID (e.g., '65398'). For 'archive' or 'spam': use 'true'. For 'priority': use 'high', 'medium', or 'low'\"),\n action: z.string().describe(\"Type of action to perform when rule conditions match. Supported actions: 'label' (apply label using label ID), 'archive' (archive ticket), 'assign' (assign to user/team using ID), 'priority' (set priority level), 'spam' (mark as spam)\"),\n})).describe(\"List of one or more actions to execute when conditions match\"),\n conditions: z.array(z.object({\n field: z.string().describe(\"Ticket field to evaluate. Common fields: 'subject' (ticket subject line), 'from' (sender email), 'body' (ticket content), 'delivered_to' (recipient email)\"),\n value: z.string().describe(\"Value to compare against the field using the specified predicate\"),\n predicate: z.string().describe(\"Matching predicate to apply. Supported values: 'contains' (partial text match), 'equals' (exact match)\"),\n})).describe(\"List of one or more conditions that trigger the rule\"),\n sort_order: z.number().int().default(0).describe(\"Optional sort order for the rule, non-negative\").optional(),\n description: z.string().describe(\"Optional description for the rule\").optional(),\n});\nexport const SupportbeeCreateRuleOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the created rule\"),\n});\n\nexport const supportbeeCreateRule = action(\"SUPPORTBEE_CREATE_RULE\", {\n slug: \"supportbee-create-rule\",\n name: \"Create Rule\",\n description: \"Creates a new automation rule in SupportBee to automatically process tickets based on conditions. Rules allow you to automate ticket workflows by: - Matching tickets based on field conditions (subject, sender, body, etc.) - Automatically applying actions like labeling, archiving, assigning, or setting priority Use this after fetching available labels/teams to get valid IDs for actions. The rule will be evaluated for all new and existing tickets matching the conditions. Returns the created rule's unique ID.\",\n input: SupportbeeCreateRuleInput,\n output: SupportbeeCreateRuleOutput,\n});\n"],"mappings":";;AAuBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAClH,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;GAC/L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4OAA4O;EAC1Q,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D;EACzE,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;GACvL,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;GAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;EACzI,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjF,CASS;CACP,QATsD,EAAE,OAAO,EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAOU;AACV,CAAC"}
@@ -0,0 +1,31 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-snippet.ts
4
+ const SupportbeeCreateSnippetInput = zod.z.object({
5
+ html: zod.z.string().describe("The HTML formatted content of the snippet. If not provided, the plain text will be used. Supports basic HTML formatting like <b>, <i>, <a>, <br>, etc.").optional(),
6
+ name: zod.z.string().describe("The name/title for the snippet. This will be displayed when selecting snippets."),
7
+ tags: zod.z.string().describe("Comma-separated tags to categorize the snippet (e.g., 'refund, policy, billing').").optional(),
8
+ text: zod.z.string().describe("The plain text content of the snippet. Used in text-only email responses.")
9
+ }).describe("Request model for creating a snippet in SupportBee.");
10
+ const SupportbeeCreateSnippet_SnippetContentSchema = zod.z.object({
11
+ html: zod.z.string().describe("HTML formatted content of the snippet."),
12
+ text: zod.z.string().describe("Plain text content of the snippet.")
13
+ }).describe("Model representing the content structure of a snippet.");
14
+ const SupportbeeCreateSnippetOutput = zod.z.object({
15
+ id: zod.z.number().int().describe("The unique ID for the snippet."),
16
+ name: zod.z.string().describe("The name/title of the snippet."),
17
+ tags: zod.z.string().describe("Comma-separated tags associated with the snippet.").nullable().optional(),
18
+ content: SupportbeeCreateSnippet_SnippetContentSchema.nullable(),
19
+ created_at: zod.z.string().describe("Timestamp when the snippet was created (ISO 8601 format).")
20
+ }).describe("Response model for a created snippet.");
21
+ const supportbeeCreateSnippet = require_action.action("SUPPORTBEE_CREATE_SNIPPET", {
22
+ slug: "supportbee-create-snippet",
23
+ name: "Create Snippet",
24
+ description: "Create a reusable snippet (canned response) in SupportBee. Snippets are pre-written text templates that agents can quickly insert into ticket replies. Use this to create standard responses for common customer inquiries like refunds, FAQs, or welcome messages.",
25
+ input: SupportbeeCreateSnippetInput,
26
+ output: SupportbeeCreateSnippetOutput
27
+ });
28
+ //#endregion
29
+ exports.supportbeeCreateSnippet = supportbeeCreateSnippet;
30
+
31
+ //# sourceMappingURL=create-snippet.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-snippet.cjs","names":["z","action"],"sources":["../../src/actions/create-snippet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateSnippetInput: z.ZodTypeAny = z.object({\n html: z.string().describe(\"The HTML formatted content of the snippet. If not provided, the plain text will be used. Supports basic HTML formatting like <b>, <i>, <a>, <br>, etc.\").optional(),\n name: z.string().describe(\"The name/title for the snippet. This will be displayed when selecting snippets.\"),\n tags: z.string().describe(\"Comma-separated tags to categorize the snippet (e.g., 'refund, policy, billing').\").optional(),\n text: z.string().describe(\"The plain text content of the snippet. Used in text-only email responses.\"),\n}).describe(\"Request model for creating a snippet in SupportBee.\");\nconst SupportbeeCreateSnippet_SnippetContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML formatted content of the snippet.\"),\n text: z.string().describe(\"Plain text content of the snippet.\"),\n}).describe(\"Model representing the content structure of a snippet.\");\nexport const SupportbeeCreateSnippetOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique ID for the snippet.\"),\n name: z.string().describe(\"The name/title of the snippet.\"),\n tags: z.string().describe(\"Comma-separated tags associated with the snippet.\").nullable().optional(),\n content: SupportbeeCreateSnippet_SnippetContentSchema.nullable(),\n created_at: z.string().describe(\"Timestamp when the snippet was created (ISO 8601 format).\"),\n}).describe(\"Response model for a created snippet.\");\n\nexport const supportbeeCreateSnippet = action(\"SUPPORTBEE_CREATE_SNIPPET\", {\n slug: \"supportbee-create-snippet\",\n name: \"Create Snippet\",\n description: \"Create a reusable snippet (canned response) in SupportBee. Snippets are pre-written text templates that agents can quickly insert into ticket replies. Use this to create standard responses for common customer inquiries like refunds, FAQs, or welcome messages.\",\n input: SupportbeeCreateSnippetInput,\n output: SupportbeeCreateSnippetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC3G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACxH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;AACvG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AAChE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAAS,6CAA6C,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AAC7F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-snippet.d.ts
4
+ declare const SupportbeeCreateSnippetInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateSnippetOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateSnippet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateSnippet };
9
+ //# sourceMappingURL=create-snippet.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-snippet.d.cts","names":[],"sources":["../../src/actions/create-snippet.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAKqB;AAAA,cAKrD,6BAAA,EAA+B,CAAA,CAAE,UAMM;AAAA,cAEvC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-snippet.d.ts
4
+ declare const SupportbeeCreateSnippetInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateSnippetOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateSnippet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateSnippet };
9
+ //# sourceMappingURL=create-snippet.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-snippet.d.mts","names":[],"sources":["../../src/actions/create-snippet.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAKqB;AAAA,cAKrD,6BAAA,EAA+B,CAAA,CAAE,UAMM;AAAA,cAEvC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-snippet.ts
4
+ const SupportbeeCreateSnippetInput = z.object({
5
+ html: z.string().describe("The HTML formatted content of the snippet. If not provided, the plain text will be used. Supports basic HTML formatting like <b>, <i>, <a>, <br>, etc.").optional(),
6
+ name: z.string().describe("The name/title for the snippet. This will be displayed when selecting snippets."),
7
+ tags: z.string().describe("Comma-separated tags to categorize the snippet (e.g., 'refund, policy, billing').").optional(),
8
+ text: z.string().describe("The plain text content of the snippet. Used in text-only email responses.")
9
+ }).describe("Request model for creating a snippet in SupportBee.");
10
+ const SupportbeeCreateSnippet_SnippetContentSchema = z.object({
11
+ html: z.string().describe("HTML formatted content of the snippet."),
12
+ text: z.string().describe("Plain text content of the snippet.")
13
+ }).describe("Model representing the content structure of a snippet.");
14
+ const supportbeeCreateSnippet = action("SUPPORTBEE_CREATE_SNIPPET", {
15
+ slug: "supportbee-create-snippet",
16
+ name: "Create Snippet",
17
+ description: "Create a reusable snippet (canned response) in SupportBee. Snippets are pre-written text templates that agents can quickly insert into ticket replies. Use this to create standard responses for common customer inquiries like refunds, FAQs, or welcome messages.",
18
+ input: SupportbeeCreateSnippetInput,
19
+ output: z.object({
20
+ id: z.number().int().describe("The unique ID for the snippet."),
21
+ name: z.string().describe("The name/title of the snippet."),
22
+ tags: z.string().describe("Comma-separated tags associated with the snippet.").nullable().optional(),
23
+ content: SupportbeeCreateSnippet_SnippetContentSchema.nullable(),
24
+ created_at: z.string().describe("Timestamp when the snippet was created (ISO 8601 format).")
25
+ }).describe("Response model for a created snippet.")
26
+ });
27
+ //#endregion
28
+ export { supportbeeCreateSnippet };
29
+
30
+ //# sourceMappingURL=create-snippet.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-snippet.mjs","names":[],"sources":["../../src/actions/create-snippet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateSnippetInput: z.ZodTypeAny = z.object({\n html: z.string().describe(\"The HTML formatted content of the snippet. If not provided, the plain text will be used. Supports basic HTML formatting like <b>, <i>, <a>, <br>, etc.\").optional(),\n name: z.string().describe(\"The name/title for the snippet. This will be displayed when selecting snippets.\"),\n tags: z.string().describe(\"Comma-separated tags to categorize the snippet (e.g., 'refund, policy, billing').\").optional(),\n text: z.string().describe(\"The plain text content of the snippet. Used in text-only email responses.\"),\n}).describe(\"Request model for creating a snippet in SupportBee.\");\nconst SupportbeeCreateSnippet_SnippetContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML formatted content of the snippet.\"),\n text: z.string().describe(\"Plain text content of the snippet.\"),\n}).describe(\"Model representing the content structure of a snippet.\");\nexport const SupportbeeCreateSnippetOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique ID for the snippet.\"),\n name: z.string().describe(\"The name/title of the snippet.\"),\n tags: z.string().describe(\"Comma-separated tags associated with the snippet.\").nullable().optional(),\n content: SupportbeeCreateSnippet_SnippetContentSchema.nullable(),\n created_at: z.string().describe(\"Timestamp when the snippet was created (ISO 8601 format).\"),\n}).describe(\"Response model for a created snippet.\");\n\nexport const supportbeeCreateSnippet = action(\"SUPPORTBEE_CREATE_SNIPPET\", {\n slug: \"supportbee-create-snippet\",\n name: \"Create Snippet\",\n description: \"Create a reusable snippet (canned response) in SupportBee. Snippets are pre-written text templates that agents can quickly insert into ticket replies. Use this to create standard responses for common customer inquiries like refunds, FAQs, or welcome messages.\",\n input: SupportbeeCreateSnippetInput,\n output: SupportbeeCreateSnippetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC3G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACxH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;AACvG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,+CAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AAChE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AASpE,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,6CAA6C,SAAS;EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC7F,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}