@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
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/supportbee
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `supportbee`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 41
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { supportbeeAddLabelToTicket } from "@keystrokehq/supportbee/actions";
12
+
13
+ export default defineAgent({
14
+ key: "supportbee-agent",
15
+ tools: [supportbeeAddLabelToTicket],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.supportbee.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeSupportbeeTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["supportbee","executeSupportbeeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { supportbee } from \"./app\";\nimport { executeSupportbeeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return supportbee.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSupportbeeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { supportbee } from "./app.mjs";
2
+ import { executeSupportbeeTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return supportbee.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeSupportbeeTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { supportbee } from \"./app\";\nimport { executeSupportbeeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return supportbee.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSupportbeeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -0,0 +1,27 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/add-label-to-ticket.ts
4
+ const SupportbeeAddLabelToTicketInput = zod.z.object({
5
+ ticket_id: zod.z.number().int().describe("The unique ID of the ticket to add the label to"),
6
+ label_name: zod.z.string().describe("The name of the label to add to the ticket. The label must already exist in your SupportBee account.")
7
+ }).describe("Request model for adding a label to a ticket in SupportBee.");
8
+ const SupportbeeAddLabelToTicket_LabelModelSchema = zod.z.object({
9
+ id: zod.z.number().int().describe("Unique identifier for the label").nullable().optional(),
10
+ name: zod.z.string().describe("Name of the label").nullable().optional(),
11
+ color: zod.z.string().describe("Hex color code for the label (e.g., #FF0000)").nullable().optional()
12
+ }).describe("Model representing a label in SupportBee.");
13
+ const SupportbeeAddLabelToTicketOutput = zod.z.object({
14
+ label: SupportbeeAddLabelToTicket_LabelModelSchema.nullable().optional(),
15
+ success: zod.z.boolean().describe("Indicates if the label was successfully added").nullable().optional()
16
+ }).describe("Response model for adding a label to a ticket.");
17
+ const supportbeeAddLabelToTicket = require_action.action("SUPPORTBEE_ADD_LABEL_TO_TICKET", {
18
+ slug: "supportbee-add-label-to-ticket",
19
+ name: "Add Label to Ticket",
20
+ description: "Tool to add a label to a ticket. Use when you need to categorize or tag a ticket with a specific label. The label must already exist in your SupportBee account before adding it to a ticket.",
21
+ input: SupportbeeAddLabelToTicketInput,
22
+ output: SupportbeeAddLabelToTicketOutput
23
+ });
24
+ //#endregion
25
+ exports.supportbeeAddLabelToTicket = supportbeeAddLabelToTicket;
26
+
27
+ //# sourceMappingURL=add-label-to-ticket.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-label-to-ticket.cjs","names":["z","action"],"sources":["../../src/actions/add-label-to-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeAddLabelToTicketInput: z.ZodTypeAny = z.object({\n ticket_id: z.number().int().describe(\"The unique ID of the ticket to add the label to\"),\n label_name: z.string().describe(\"The name of the label to add to the ticket. The label must already exist in your SupportBee account.\"),\n}).describe(\"Request model for adding a label to a ticket in SupportBee.\");\nconst SupportbeeAddLabelToTicket_LabelModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the label\").nullable().optional(),\n name: z.string().describe(\"Name of the label\").nullable().optional(),\n color: z.string().describe(\"Hex color code for the label (e.g., #FF0000)\").nullable().optional(),\n}).describe(\"Model representing a label in SupportBee.\");\nexport const SupportbeeAddLabelToTicketOutput: z.ZodTypeAny = z.object({\n label: SupportbeeAddLabelToTicket_LabelModelSchema.nullable().optional(),\n success: z.boolean().describe(\"Indicates if the label was successfully added\").nullable().optional(),\n}).describe(\"Response model for adding a label to a ticket.\");\n\nexport const supportbeeAddLabelToTicket = action(\"SUPPORTBEE_ADD_LABEL_TO_TICKET\", {\n slug: \"supportbee-add-label-to-ticket\",\n name: \"Add Label to Ticket\",\n description: \"Tool to add a label to a ticket. Use when you need to categorize or tag a ticket with a specific label. The label must already exist in your SupportBee account before adding it to a ticket.\",\n input: SupportbeeAddLabelToTicketInput,\n output: SupportbeeAddLabelToTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;AACxI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;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/add-label-to-ticket.d.ts
4
+ declare const SupportbeeAddLabelToTicketInput: z.ZodTypeAny;
5
+ declare const SupportbeeAddLabelToTicketOutput: z.ZodTypeAny;
6
+ declare const supportbeeAddLabelToTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeAddLabelToTicket };
9
+ //# sourceMappingURL=add-label-to-ticket.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-label-to-ticket.d.cts","names":[],"sources":["../../src/actions/add-label-to-ticket.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG0B;AAAA,cAM7D,gCAAA,EAAkC,CAAA,CAAE,UAGY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/add-label-to-ticket.d.ts
4
+ declare const SupportbeeAddLabelToTicketInput: z.ZodTypeAny;
5
+ declare const SupportbeeAddLabelToTicketOutput: z.ZodTypeAny;
6
+ declare const supportbeeAddLabelToTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeAddLabelToTicket };
9
+ //# sourceMappingURL=add-label-to-ticket.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-label-to-ticket.d.mts","names":[],"sources":["../../src/actions/add-label-to-ticket.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG0B;AAAA,cAM7D,gCAAA,EAAkC,CAAA,CAAE,UAGY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,26 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/add-label-to-ticket.ts
4
+ const SupportbeeAddLabelToTicketInput = z.object({
5
+ ticket_id: z.number().int().describe("The unique ID of the ticket to add the label to"),
6
+ label_name: z.string().describe("The name of the label to add to the ticket. The label must already exist in your SupportBee account.")
7
+ }).describe("Request model for adding a label to a ticket in SupportBee.");
8
+ const SupportbeeAddLabelToTicket_LabelModelSchema = z.object({
9
+ id: z.number().int().describe("Unique identifier for the label").nullable().optional(),
10
+ name: z.string().describe("Name of the label").nullable().optional(),
11
+ color: z.string().describe("Hex color code for the label (e.g., #FF0000)").nullable().optional()
12
+ }).describe("Model representing a label in SupportBee.");
13
+ const supportbeeAddLabelToTicket = action("SUPPORTBEE_ADD_LABEL_TO_TICKET", {
14
+ slug: "supportbee-add-label-to-ticket",
15
+ name: "Add Label to Ticket",
16
+ description: "Tool to add a label to a ticket. Use when you need to categorize or tag a ticket with a specific label. The label must already exist in your SupportBee account before adding it to a ticket.",
17
+ input: SupportbeeAddLabelToTicketInput,
18
+ output: z.object({
19
+ label: SupportbeeAddLabelToTicket_LabelModelSchema.nullable().optional(),
20
+ success: z.boolean().describe("Indicates if the label was successfully added").nullable().optional()
21
+ }).describe("Response model for adding a label to a ticket.")
22
+ });
23
+ //#endregion
24
+ export { supportbeeAddLabelToTicket };
25
+
26
+ //# sourceMappingURL=add-label-to-ticket.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-label-to-ticket.mjs","names":[],"sources":["../../src/actions/add-label-to-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeAddLabelToTicketInput: z.ZodTypeAny = z.object({\n ticket_id: z.number().int().describe(\"The unique ID of the ticket to add the label to\"),\n label_name: z.string().describe(\"The name of the label to add to the ticket. The label must already exist in your SupportBee account.\"),\n}).describe(\"Request model for adding a label to a ticket in SupportBee.\");\nconst SupportbeeAddLabelToTicket_LabelModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the label\").nullable().optional(),\n name: z.string().describe(\"Name of the label\").nullable().optional(),\n color: z.string().describe(\"Hex color code for the label (e.g., #FF0000)\").nullable().optional(),\n}).describe(\"Model representing a label in SupportBee.\");\nexport const SupportbeeAddLabelToTicketOutput: z.ZodTypeAny = z.object({\n label: SupportbeeAddLabelToTicket_LabelModelSchema.nullable().optional(),\n success: z.boolean().describe(\"Indicates if the label was successfully added\").nullable().optional(),\n}).describe(\"Response model for adding a label to a ticket.\");\n\nexport const supportbeeAddLabelToTicket = action(\"SUPPORTBEE_ADD_LABEL_TO_TICKET\", {\n slug: \"supportbee-add-label-to-ticket\",\n name: \"Add Label to Ticket\",\n description: \"Tool to add a label to a ticket. Use when you need to categorize or tag a ticket with a specific label. The label must already exist in your SupportBee account before adding it to a ticket.\",\n input: SupportbeeAddLabelToTicketInput,\n output: SupportbeeAddLabelToTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;AACxI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAMvD,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4D,EAAE,OAAO;EACrE,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACvE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/archive-ticket.ts
4
+ const SupportbeeArchiveTicketInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the ticket to archive") }).describe("Request parameters for archiving a ticket in SupportBee.");
5
+ const SupportbeeArchiveTicket_TicketSchema = zod.z.object({
6
+ id: zod.z.string().describe("Unique ticket ID"),
7
+ tags: zod.z.array(zod.z.string()).describe("List of tags associated with the ticket").nullable().optional(),
8
+ email: zod.z.string().describe("Requester email").nullable().optional(),
9
+ phone: zod.z.string().describe("Requester phone number").nullable().optional(),
10
+ status: zod.z.string().describe("Ticket status").nullable().optional(),
11
+ subject: zod.z.string().describe("Ticket subject").nullable().optional(),
12
+ priority: zod.z.string().describe("Ticket priority level").nullable().optional(),
13
+ created_at: zod.z.string().describe("Creation timestamp").nullable().optional(),
14
+ updated_at: zod.z.string().describe("Last update timestamp").nullable().optional(),
15
+ assignee_id: zod.z.string().describe("User ID of the assignee").nullable().optional(),
16
+ description: zod.z.string().describe("Ticket description").nullable().optional(),
17
+ custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values for the ticket as key-value pairs").nullable().optional()
18
+ }).describe("A SupportBee ticket object.");
19
+ const SupportbeeArchiveTicketOutput = zod.z.object({
20
+ status: zod.z.string().describe("Operation status, e.g., 'archived'"),
21
+ ticket: SupportbeeArchiveTicket_TicketSchema.nullable()
22
+ }).describe("Response schema after archiving a ticket.");
23
+ const supportbeeArchiveTicket = require_action.action("SUPPORTBEE_ARCHIVE_TICKET", {
24
+ slug: "supportbee-archive-ticket",
25
+ name: "Archive SupportBee Ticket",
26
+ description: "Tool to archive a SupportBee ticket by its ID. Use when you want to move resolved tickets to the archive.",
27
+ input: SupportbeeArchiveTicketInput,
28
+ output: SupportbeeArchiveTicketOutput
29
+ });
30
+ //#endregion
31
+ exports.supportbeeArchiveTicket = supportbeeArchiveTicket;
32
+
33
+ //# sourceMappingURL=archive-ticket.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive-ticket.cjs","names":["z","action"],"sources":["../../src/actions/archive-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeArchiveTicketInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the ticket to archive\"),\n}).describe(\"Request parameters for archiving a ticket in SupportBee.\");\nconst SupportbeeArchiveTicket_TicketSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ticket ID\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the ticket\").nullable().optional(),\n email: z.string().describe(\"Requester email\").nullable().optional(),\n phone: z.string().describe(\"Requester phone number\").nullable().optional(),\n status: z.string().describe(\"Ticket status\").nullable().optional(),\n subject: z.string().describe(\"Ticket subject\").nullable().optional(),\n priority: z.string().describe(\"Ticket priority level\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable().optional(),\n assignee_id: z.string().describe(\"User ID of the assignee\").nullable().optional(),\n description: z.string().describe(\"Ticket description\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field values for the ticket as key-value pairs\").nullable().optional(),\n}).describe(\"A SupportBee ticket object.\");\nexport const SupportbeeArchiveTicketOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Operation status, e.g., 'archived'\"),\n ticket: SupportbeeArchiveTicket_TicketSchema.nullable(),\n}).describe(\"Response schema after archiving a ticket.\");\n\nexport const supportbeeArchiveTicket = action(\"SUPPORTBEE_ARCHIVE_TICKET\", {\n slug: \"supportbee-archive-ticket\",\n name: \"Archive SupportBee Ticket\",\n description: \"Tool to archive a SupportBee ticket by its ID. Use when you want to move resolved tickets to the archive.\",\n input: SupportbeeArchiveTicketInput,\n output: SupportbeeArchiveTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EACtE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAChE,QAAQ,qCAAqC,SAAS;AACxD,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,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/archive-ticket.d.ts
4
+ declare const SupportbeeArchiveTicketInput: z.ZodTypeAny;
5
+ declare const SupportbeeArchiveTicketOutput: z.ZodTypeAny;
6
+ declare const supportbeeArchiveTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeArchiveTicket };
9
+ //# sourceMappingURL=archive-ticket.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive-ticket.d.cts","names":[],"sources":["../../src/actions/archive-ticket.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAE0B;AAAA,cAe1D,6BAAA,EAA+B,CAAA,CAAE,UAGU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/archive-ticket.d.ts
4
+ declare const SupportbeeArchiveTicketInput: z.ZodTypeAny;
5
+ declare const SupportbeeArchiveTicketOutput: z.ZodTypeAny;
6
+ declare const supportbeeArchiveTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeArchiveTicket };
9
+ //# sourceMappingURL=archive-ticket.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive-ticket.d.mts","names":[],"sources":["../../src/actions/archive-ticket.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAE0B;AAAA,cAe1D,6BAAA,EAA+B,CAAA,CAAE,UAGU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/archive-ticket.ts
4
+ const SupportbeeArchiveTicketInput = z.object({ id: z.string().describe("Unique identifier of the ticket to archive") }).describe("Request parameters for archiving a ticket in SupportBee.");
5
+ const SupportbeeArchiveTicket_TicketSchema = z.object({
6
+ id: z.string().describe("Unique ticket ID"),
7
+ tags: z.array(z.string()).describe("List of tags associated with the ticket").nullable().optional(),
8
+ email: z.string().describe("Requester email").nullable().optional(),
9
+ phone: z.string().describe("Requester phone number").nullable().optional(),
10
+ status: z.string().describe("Ticket status").nullable().optional(),
11
+ subject: z.string().describe("Ticket subject").nullable().optional(),
12
+ priority: z.string().describe("Ticket priority level").nullable().optional(),
13
+ created_at: z.string().describe("Creation timestamp").nullable().optional(),
14
+ updated_at: z.string().describe("Last update timestamp").nullable().optional(),
15
+ assignee_id: z.string().describe("User ID of the assignee").nullable().optional(),
16
+ description: z.string().describe("Ticket description").nullable().optional(),
17
+ custom_fields: z.record(z.string(), z.unknown()).describe("Custom field values for the ticket as key-value pairs").nullable().optional()
18
+ }).describe("A SupportBee ticket object.");
19
+ const supportbeeArchiveTicket = action("SUPPORTBEE_ARCHIVE_TICKET", {
20
+ slug: "supportbee-archive-ticket",
21
+ name: "Archive SupportBee Ticket",
22
+ description: "Tool to archive a SupportBee ticket by its ID. Use when you want to move resolved tickets to the archive.",
23
+ input: SupportbeeArchiveTicketInput,
24
+ output: z.object({
25
+ status: z.string().describe("Operation status, e.g., 'archived'"),
26
+ ticket: SupportbeeArchiveTicket_TicketSchema.nullable()
27
+ }).describe("Response schema after archiving a ticket.")
28
+ });
29
+ //#endregion
30
+ export { supportbeeArchiveTicket };
31
+
32
+ //# sourceMappingURL=archive-ticket.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive-ticket.mjs","names":[],"sources":["../../src/actions/archive-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeArchiveTicketInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the ticket to archive\"),\n}).describe(\"Request parameters for archiving a ticket in SupportBee.\");\nconst SupportbeeArchiveTicket_TicketSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ticket ID\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the ticket\").nullable().optional(),\n email: z.string().describe(\"Requester email\").nullable().optional(),\n phone: z.string().describe(\"Requester phone number\").nullable().optional(),\n status: z.string().describe(\"Ticket status\").nullable().optional(),\n subject: z.string().describe(\"Ticket subject\").nullable().optional(),\n priority: z.string().describe(\"Ticket priority level\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable().optional(),\n assignee_id: z.string().describe(\"User ID of the assignee\").nullable().optional(),\n description: z.string().describe(\"Ticket description\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field values for the ticket as key-value pairs\").nullable().optional(),\n}).describe(\"A SupportBee ticket object.\");\nexport const SupportbeeArchiveTicketOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Operation status, e.g., 'archived'\"),\n ticket: SupportbeeArchiveTicket_TicketSchema.nullable(),\n}).describe(\"Response schema after archiving a ticket.\");\n\nexport const supportbeeArchiveTicket = action(\"SUPPORTBEE_ARCHIVE_TICKET\", {\n slug: \"supportbee-archive-ticket\",\n name: \"Archive SupportBee Ticket\",\n description: \"Tool to archive a SupportBee ticket by its ID. Use when you want to move resolved tickets to the archive.\",\n input: SupportbeeArchiveTicketInput,\n output: SupportbeeArchiveTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EACtE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAMzC,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAChE,QAAQ,qCAAqC,SAAS;CACxD,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,28 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/assign-ticket-to-team.ts
4
+ const SupportbeeAssignTicketToTeamInput = zod.z.object({
5
+ team_id: zod.z.number().int().describe("The unique ID of the team to assign the ticket to"),
6
+ ticket_id: zod.z.number().int().describe("The unique ID of the ticket to assign to a team")
7
+ }).describe("Request model for assigning a ticket to a team in SupportBee.");
8
+ const SupportbeeAssignTicketToTeam_TeamModelSchema = zod.z.object({
9
+ id: zod.z.number().int().describe("Unique identifier of the team"),
10
+ name: zod.z.string().describe("Name of the team").nullable().optional()
11
+ }).describe("Model representing a team in SupportBee.");
12
+ const SupportbeeAssignTicketToTeamOutput = zod.z.object({
13
+ id: zod.z.number().int().describe("ID of the team assignment record"),
14
+ team: SupportbeeAssignTicketToTeam_TeamModelSchema.nullable(),
15
+ created_at: zod.z.string().describe("Timestamp when the assignment was created (ISO 8601)").nullable().optional(),
16
+ updated_at: zod.z.string().describe("Timestamp when the assignment was last updated (ISO 8601)").nullable().optional()
17
+ }).describe("Response model for ticket assignment to a team.\nContains the assignment details including team info and timestamps.");
18
+ const supportbeeAssignTicketToTeam = require_action.action("SUPPORTBEE_ASSIGN_TICKET_TO_TEAM", {
19
+ slug: "supportbee-assign-ticket-to-team",
20
+ name: "Assign Ticket to Team",
21
+ description: "Assigns a ticket to a team in SupportBee. Use when you need to route a support ticket to a specific team for handling. Note: If the ticket is already assigned to a team and a user, reassigning to another team will remove the user assignee.",
22
+ input: SupportbeeAssignTicketToTeamInput,
23
+ output: SupportbeeAssignTicketToTeamOutput
24
+ });
25
+ //#endregion
26
+ exports.supportbeeAssignTicketToTeam = supportbeeAssignTicketToTeam;
27
+
28
+ //# sourceMappingURL=assign-ticket-to-team.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-ticket-to-team.cjs","names":["z","action"],"sources":["../../src/actions/assign-ticket-to-team.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeAssignTicketToTeamInput: z.ZodTypeAny = z.object({\n team_id: z.number().int().describe(\"The unique ID of the team to assign the ticket to\"),\n ticket_id: z.number().int().describe(\"The unique ID of the ticket to assign to a team\"),\n}).describe(\"Request model for assigning a ticket to a team in SupportBee.\");\nconst SupportbeeAssignTicketToTeam_TeamModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the team\"),\n name: z.string().describe(\"Name of the team\").nullable().optional(),\n}).describe(\"Model representing a team in SupportBee.\");\nexport const SupportbeeAssignTicketToTeamOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the team assignment record\"),\n team: SupportbeeAssignTicketToTeam_TeamModelSchema.nullable(),\n created_at: z.string().describe(\"Timestamp when the assignment was created (ISO 8601)\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the assignment was last updated (ISO 8601)\").nullable().optional(),\n}).describe(\"Response model for ticket assignment to a team.\\nContains the assignment details including team info and timestamps.\");\n\nexport const supportbeeAssignTicketToTeam = action(\"SUPPORTBEE_ASSIGN_TICKET_TO_TEAM\", {\n slug: \"supportbee-assign-ticket-to-team\",\n name: \"Assign Ticket to Team\",\n description: \"Assigns a ticket to a team in SupportBee. Use when you need to route a support ticket to a specific team for handling. Note: If the ticket is already assigned to a team and a user, reassigning to another team will remove the user assignee.\",\n input: SupportbeeAssignTicketToTeamInput,\n output: SupportbeeAssignTicketToTeamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;AACxF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAChE,MAAM,6CAA6C,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,sHAAsH;AAElI,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,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/assign-ticket-to-team.d.ts
4
+ declare const SupportbeeAssignTicketToTeamInput: z.ZodTypeAny;
5
+ declare const SupportbeeAssignTicketToTeamOutput: z.ZodTypeAny;
6
+ declare const supportbeeAssignTicketToTeam: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeAssignTicketToTeam };
9
+ //# sourceMappingURL=assign-ticket-to-team.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-ticket-to-team.d.cts","names":[],"sources":["../../src/actions/assign-ticket-to-team.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAG0B;AAAA,cAK/D,kCAAA,EAAoC,CAAA,CAAE,UAKgF;AAAA,cAEtH,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/assign-ticket-to-team.d.ts
4
+ declare const SupportbeeAssignTicketToTeamInput: z.ZodTypeAny;
5
+ declare const SupportbeeAssignTicketToTeamOutput: z.ZodTypeAny;
6
+ declare const supportbeeAssignTicketToTeam: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeAssignTicketToTeam };
9
+ //# sourceMappingURL=assign-ticket-to-team.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-ticket-to-team.d.mts","names":[],"sources":["../../src/actions/assign-ticket-to-team.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAG0B;AAAA,cAK/D,kCAAA,EAAoC,CAAA,CAAE,UAKgF;AAAA,cAEtH,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,27 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/assign-ticket-to-team.ts
4
+ const SupportbeeAssignTicketToTeamInput = z.object({
5
+ team_id: z.number().int().describe("The unique ID of the team to assign the ticket to"),
6
+ ticket_id: z.number().int().describe("The unique ID of the ticket to assign to a team")
7
+ }).describe("Request model for assigning a ticket to a team in SupportBee.");
8
+ const SupportbeeAssignTicketToTeam_TeamModelSchema = z.object({
9
+ id: z.number().int().describe("Unique identifier of the team"),
10
+ name: z.string().describe("Name of the team").nullable().optional()
11
+ }).describe("Model representing a team in SupportBee.");
12
+ const supportbeeAssignTicketToTeam = action("SUPPORTBEE_ASSIGN_TICKET_TO_TEAM", {
13
+ slug: "supportbee-assign-ticket-to-team",
14
+ name: "Assign Ticket to Team",
15
+ description: "Assigns a ticket to a team in SupportBee. Use when you need to route a support ticket to a specific team for handling. Note: If the ticket is already assigned to a team and a user, reassigning to another team will remove the user assignee.",
16
+ input: SupportbeeAssignTicketToTeamInput,
17
+ output: z.object({
18
+ id: z.number().int().describe("ID of the team assignment record"),
19
+ team: SupportbeeAssignTicketToTeam_TeamModelSchema.nullable(),
20
+ created_at: z.string().describe("Timestamp when the assignment was created (ISO 8601)").nullable().optional(),
21
+ updated_at: z.string().describe("Timestamp when the assignment was last updated (ISO 8601)").nullable().optional()
22
+ }).describe("Response model for ticket assignment to a team.\nContains the assignment details including team info and timestamps.")
23
+ });
24
+ //#endregion
25
+ export { supportbeeAssignTicketToTeam };
26
+
27
+ //# sourceMappingURL=assign-ticket-to-team.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-ticket-to-team.mjs","names":[],"sources":["../../src/actions/assign-ticket-to-team.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeAssignTicketToTeamInput: z.ZodTypeAny = z.object({\n team_id: z.number().int().describe(\"The unique ID of the team to assign the ticket to\"),\n ticket_id: z.number().int().describe(\"The unique ID of the ticket to assign to a team\"),\n}).describe(\"Request model for assigning a ticket to a team in SupportBee.\");\nconst SupportbeeAssignTicketToTeam_TeamModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the team\"),\n name: z.string().describe(\"Name of the team\").nullable().optional(),\n}).describe(\"Model representing a team in SupportBee.\");\nexport const SupportbeeAssignTicketToTeamOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the team assignment record\"),\n team: SupportbeeAssignTicketToTeam_TeamModelSchema.nullable(),\n created_at: z.string().describe(\"Timestamp when the assignment was created (ISO 8601)\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the assignment was last updated (ISO 8601)\").nullable().optional(),\n}).describe(\"Response model for ticket assignment to a team.\\nContains the assignment details including team info and timestamps.\");\n\nexport const supportbeeAssignTicketToTeam = action(\"SUPPORTBEE_ASSIGN_TICKET_TO_TEAM\", {\n slug: \"supportbee-assign-ticket-to-team\",\n name: \"Assign Ticket to Team\",\n description: \"Assigns a ticket to a team in SupportBee. Use when you need to route a support ticket to a specific team for handling. Note: If the ticket is already assigned to a team and a user, reassigning to another team will remove the user assignee.\",\n input: SupportbeeAssignTicketToTeamInput,\n output: SupportbeeAssignTicketToTeamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACtF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;AACxF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAQtD,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8D,EAAE,OAAO;EACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EAChE,MAAM,6CAA6C,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,sHAOF;AACV,CAAC"}
@@ -0,0 +1,49 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-comment.ts
4
+ const SupportbeeCreateCommentInput = zod.z.object({
5
+ content: zod.z.object({
6
+ html: zod.z.string().describe("HTML content of the comment. Either text or html must be provided.").optional(),
7
+ text: zod.z.string().describe("Plain text content of the comment. Either text or html must be provided.").optional(),
8
+ attachment_ids: zod.z.array(zod.z.number().int()).describe("Array of attachment IDs to include with the comment. Upload attachments first to get IDs.").optional()
9
+ }).describe("Content of the comment. Provide either text or html (or both)."),
10
+ ticket_id: zod.z.string().describe("The unique identifier of the ticket to add a comment to. Obtain this from list_tickets or search_tickets actions.")
11
+ }).describe("Request model for creating an internal comment on a ticket.\nComments are private notes visible only to agents (not customers).");
12
+ const SupportbeeCreateComment_CommentAttachmentSchema = zod.z.object({
13
+ id: zod.z.number().int().describe("Unique identifier of the attachment").nullable().optional(),
14
+ url: zod.z.string().describe("URL to download the attachment").nullable().optional(),
15
+ size: zod.z.number().int().describe("Size of the attachment in bytes").nullable().optional(),
16
+ filename: zod.z.string().describe("Name of the attachment file").nullable().optional(),
17
+ created_at: zod.z.string().describe("Timestamp when attachment was created (ISO 8601 format)").nullable().optional(),
18
+ content_type: zod.z.string().describe("MIME type of the attachment (e.g., 'image/png', 'application/pdf')").nullable().optional()
19
+ }).describe("Attachment associated with a comment.");
20
+ const SupportbeeCreateComment_CommentContentSchema = zod.z.object({
21
+ html: zod.z.string().describe("HTML-formatted content of the comment").nullable().optional(),
22
+ text: zod.z.string().describe("Plain text content of the comment").nullable().optional(),
23
+ attachments: zod.z.array(SupportbeeCreateComment_CommentAttachmentSchema).describe("List of attachments associated with the comment").nullable().optional()
24
+ }).describe("Content structure for a comment in the response.");
25
+ const SupportbeeCreateComment_CommentUserSchema = zod.z.object({
26
+ id: zod.z.number().int().describe("Unique identifier of the user").nullable().optional(),
27
+ name: zod.z.string().describe("Display name of the user").nullable().optional(),
28
+ email: zod.z.string().describe("Email address of the user").nullable().optional()
29
+ }).describe("Information about the agent/user who posted the comment.");
30
+ const SupportbeeCreateCommentOutput = zod.z.object({
31
+ id: zod.z.number().int().describe("Unique identifier of the comment").nullable().optional(),
32
+ content: SupportbeeCreateComment_CommentContentSchema.nullable().optional(),
33
+ user_id: zod.z.number().int().describe("ID of the user who added the comment").nullable().optional(),
34
+ commenter: SupportbeeCreateComment_CommentUserSchema.nullable().optional(),
35
+ ticket_id: zod.z.number().int().describe("ID of the ticket this comment belongs to").nullable().optional(),
36
+ created_at: zod.z.string().describe("Timestamp when the comment was created (ISO 8601 format)").nullable().optional(),
37
+ updated_at: zod.z.string().describe("Timestamp when the comment was last updated (ISO 8601 format)").nullable().optional()
38
+ }).describe("Response model after creating a comment on a ticket.");
39
+ const supportbeeCreateComment = require_action.action("SUPPORTBEE_CREATE_COMMENT", {
40
+ slug: "supportbee-create-comment",
41
+ name: "Create Ticket Comment",
42
+ description: "Creates an internal comment on a ticket in SupportBee. Comments are private notes visible only to agents, not to customers. Use this to add internal notes, observations, or collaborate with team members on a ticket.",
43
+ input: SupportbeeCreateCommentInput,
44
+ output: SupportbeeCreateCommentOutput
45
+ });
46
+ //#endregion
47
+ exports.supportbeeCreateComment = supportbeeCreateComment;
48
+
49
+ //# sourceMappingURL=create-comment.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateCommentInput: z.ZodTypeAny = z.object({\n content: z.object({\n html: z.string().describe(\"HTML content of the comment. Either text or html must be provided.\").optional(),\n text: z.string().describe(\"Plain text content of the comment. Either text or html must be provided.\").optional(),\n attachment_ids: z.array(z.number().int()).describe(\"Array of attachment IDs to include with the comment. Upload attachments first to get IDs.\").optional(),\n}).describe(\"Content of the comment. Provide either text or html (or both).\"),\n ticket_id: z.string().describe(\"The unique identifier of the ticket to add a comment to. Obtain this from list_tickets or search_tickets actions.\"),\n}).describe(\"Request model for creating an internal comment on a ticket.\\nComments are private notes visible only to agents (not customers).\");\nconst SupportbeeCreateComment_CommentAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the attachment\").nullable().optional(),\n url: z.string().describe(\"URL to download the attachment\").nullable().optional(),\n size: z.number().int().describe(\"Size of the attachment in bytes\").nullable().optional(),\n filename: z.string().describe(\"Name of the attachment file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when attachment was created (ISO 8601 format)\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of the attachment (e.g., 'image/png', 'application/pdf')\").nullable().optional(),\n}).describe(\"Attachment associated with a comment.\");\nconst SupportbeeCreateComment_CommentContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML-formatted content of the comment\").nullable().optional(),\n text: z.string().describe(\"Plain text content of the comment\").nullable().optional(),\n attachments: z.array(SupportbeeCreateComment_CommentAttachmentSchema).describe(\"List of attachments associated with the comment\").nullable().optional(),\n}).describe(\"Content structure for a comment in the response.\");\nconst SupportbeeCreateComment_CommentUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable().optional(),\n name: z.string().describe(\"Display name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n}).describe(\"Information about the agent/user who posted the comment.\");\nexport const SupportbeeCreateCommentOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the comment\").nullable().optional(),\n content: SupportbeeCreateComment_CommentContentSchema.nullable().optional(),\n user_id: z.number().int().describe(\"ID of the user who added the comment\").nullable().optional(),\n commenter: SupportbeeCreateComment_CommentUserSchema.nullable().optional(),\n ticket_id: z.number().int().describe(\"ID of the ticket this comment belongs to\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the comment was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the comment was last updated (ISO 8601 format)\").nullable().optional(),\n}).describe(\"Response model after creating a comment on a ticket.\");\n\nexport const supportbeeCreateComment = action(\"SUPPORTBEE_CREATE_COMMENT\", {\n slug: \"supportbee-create-comment\",\n name: \"Create Ticket Comment\",\n description: \"Creates an internal comment on a ticket in SupportBee. Comments are private notes visible only to agents, not to customers. Use this to add internal notes, observations, or collaborate with team members on a ticket.\",\n input: SupportbeeCreateCommentInput,\n output: SupportbeeCreateCommentOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-comment.d.ts
4
+ declare const SupportbeeCreateCommentInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateCommentOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateComment };
9
+ //# sourceMappingURL=create-comment.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAOiG;AAAA,cAmBjI,6BAAA,EAA+B,CAAA,CAAE,UAQqB;AAAA,cAEtD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-comment.d.ts
4
+ declare const SupportbeeCreateCommentInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateCommentOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateComment };
9
+ //# sourceMappingURL=create-comment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAOiG;AAAA,cAmBjI,6BAAA,EAA+B,CAAA,CAAE,UAQqB;AAAA,cAEtD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,48 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-comment.ts
4
+ const SupportbeeCreateCommentInput = z.object({
5
+ content: z.object({
6
+ html: z.string().describe("HTML content of the comment. Either text or html must be provided.").optional(),
7
+ text: z.string().describe("Plain text content of the comment. Either text or html must be provided.").optional(),
8
+ attachment_ids: z.array(z.number().int()).describe("Array of attachment IDs to include with the comment. Upload attachments first to get IDs.").optional()
9
+ }).describe("Content of the comment. Provide either text or html (or both)."),
10
+ ticket_id: z.string().describe("The unique identifier of the ticket to add a comment to. Obtain this from list_tickets or search_tickets actions.")
11
+ }).describe("Request model for creating an internal comment on a ticket.\nComments are private notes visible only to agents (not customers).");
12
+ const SupportbeeCreateComment_CommentAttachmentSchema = z.object({
13
+ id: z.number().int().describe("Unique identifier of the attachment").nullable().optional(),
14
+ url: z.string().describe("URL to download the attachment").nullable().optional(),
15
+ size: z.number().int().describe("Size of the attachment in bytes").nullable().optional(),
16
+ filename: z.string().describe("Name of the attachment file").nullable().optional(),
17
+ created_at: z.string().describe("Timestamp when attachment was created (ISO 8601 format)").nullable().optional(),
18
+ content_type: z.string().describe("MIME type of the attachment (e.g., 'image/png', 'application/pdf')").nullable().optional()
19
+ }).describe("Attachment associated with a comment.");
20
+ const SupportbeeCreateComment_CommentContentSchema = z.object({
21
+ html: z.string().describe("HTML-formatted content of the comment").nullable().optional(),
22
+ text: z.string().describe("Plain text content of the comment").nullable().optional(),
23
+ attachments: z.array(SupportbeeCreateComment_CommentAttachmentSchema).describe("List of attachments associated with the comment").nullable().optional()
24
+ }).describe("Content structure for a comment in the response.");
25
+ const SupportbeeCreateComment_CommentUserSchema = z.object({
26
+ id: z.number().int().describe("Unique identifier of the user").nullable().optional(),
27
+ name: z.string().describe("Display name of the user").nullable().optional(),
28
+ email: z.string().describe("Email address of the user").nullable().optional()
29
+ }).describe("Information about the agent/user who posted the comment.");
30
+ const supportbeeCreateComment = action("SUPPORTBEE_CREATE_COMMENT", {
31
+ slug: "supportbee-create-comment",
32
+ name: "Create Ticket Comment",
33
+ description: "Creates an internal comment on a ticket in SupportBee. Comments are private notes visible only to agents, not to customers. Use this to add internal notes, observations, or collaborate with team members on a ticket.",
34
+ input: SupportbeeCreateCommentInput,
35
+ output: z.object({
36
+ id: z.number().int().describe("Unique identifier of the comment").nullable().optional(),
37
+ content: SupportbeeCreateComment_CommentContentSchema.nullable().optional(),
38
+ user_id: z.number().int().describe("ID of the user who added the comment").nullable().optional(),
39
+ commenter: SupportbeeCreateComment_CommentUserSchema.nullable().optional(),
40
+ ticket_id: z.number().int().describe("ID of the ticket this comment belongs to").nullable().optional(),
41
+ created_at: z.string().describe("Timestamp when the comment was created (ISO 8601 format)").nullable().optional(),
42
+ updated_at: z.string().describe("Timestamp when the comment was last updated (ISO 8601 format)").nullable().optional()
43
+ }).describe("Response model after creating a comment on a ticket.")
44
+ });
45
+ //#endregion
46
+ export { supportbeeCreateComment };
47
+
48
+ //# sourceMappingURL=create-comment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateCommentInput: z.ZodTypeAny = z.object({\n content: z.object({\n html: z.string().describe(\"HTML content of the comment. Either text or html must be provided.\").optional(),\n text: z.string().describe(\"Plain text content of the comment. Either text or html must be provided.\").optional(),\n attachment_ids: z.array(z.number().int()).describe(\"Array of attachment IDs to include with the comment. Upload attachments first to get IDs.\").optional(),\n}).describe(\"Content of the comment. Provide either text or html (or both).\"),\n ticket_id: z.string().describe(\"The unique identifier of the ticket to add a comment to. Obtain this from list_tickets or search_tickets actions.\"),\n}).describe(\"Request model for creating an internal comment on a ticket.\\nComments are private notes visible only to agents (not customers).\");\nconst SupportbeeCreateComment_CommentAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the attachment\").nullable().optional(),\n url: z.string().describe(\"URL to download the attachment\").nullable().optional(),\n size: z.number().int().describe(\"Size of the attachment in bytes\").nullable().optional(),\n filename: z.string().describe(\"Name of the attachment file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when attachment was created (ISO 8601 format)\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of the attachment (e.g., 'image/png', 'application/pdf')\").nullable().optional(),\n}).describe(\"Attachment associated with a comment.\");\nconst SupportbeeCreateComment_CommentContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML-formatted content of the comment\").nullable().optional(),\n text: z.string().describe(\"Plain text content of the comment\").nullable().optional(),\n attachments: z.array(SupportbeeCreateComment_CommentAttachmentSchema).describe(\"List of attachments associated with the comment\").nullable().optional(),\n}).describe(\"Content structure for a comment in the response.\");\nconst SupportbeeCreateComment_CommentUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable().optional(),\n name: z.string().describe(\"Display name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n}).describe(\"Information about the agent/user who posted the comment.\");\nexport const SupportbeeCreateCommentOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the comment\").nullable().optional(),\n content: SupportbeeCreateComment_CommentContentSchema.nullable().optional(),\n user_id: z.number().int().describe(\"ID of the user who added the comment\").nullable().optional(),\n commenter: SupportbeeCreateComment_CommentUserSchema.nullable().optional(),\n ticket_id: z.number().int().describe(\"ID of the ticket this comment belongs to\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the comment was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the comment was last updated (ISO 8601 format)\").nullable().optional(),\n}).describe(\"Response model after creating a comment on a ticket.\");\n\nexport const supportbeeCreateComment = action(\"SUPPORTBEE_CREATE_COMMENT\", {\n slug: \"supportbee-create-comment\",\n name: \"Create Ticket Comment\",\n description: \"Creates an internal comment on a ticket in SupportBee. Comments are private notes visible only to agents, not to customers. Use this to add internal notes, observations, or collaborate with team members on a ticket.\",\n input: SupportbeeCreateCommentInput,\n output: SupportbeeCreateCommentOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-consequence.ts
4
+ const SupportbeeCreateConsequenceInput = zod.z.object({
5
+ spam: zod.z.boolean().describe("Set to true to automatically mark the ticket as spam when this consequence is triggered").optional(),
6
+ label: zod.z.string().describe("A descriptive label for the consequence to identify its purpose").optional(),
7
+ archive: zod.z.boolean().describe("Set to true to automatically archive the ticket when this consequence is triggered").optional(),
8
+ assign_team: zod.z.string().describe("Team ID to assign the ticket to. Mutually exclusive with assign_user - cannot be used together.").optional(),
9
+ assign_user: zod.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 = zod.z.object({
12
+ id: zod.z.string().describe("Unique identifier of the consequence").nullable().optional(),
13
+ spam: zod.z.boolean().describe("Spam marking flag").nullable().optional(),
14
+ label: zod.z.string().describe("Label of the consequence").nullable().optional(),
15
+ archive: zod.z.boolean().describe("Archive action flag").nullable().optional(),
16
+ assign_team: zod.z.string().describe("Assigned team ID").nullable().optional(),
17
+ assign_user: zod.z.string().describe("Assigned user ID").nullable().optional()
18
+ }).describe("Response data for a created consequence.");
19
+ const SupportbeeCreateConsequenceOutput = zod.z.object({ consequence: SupportbeeCreateConsequence_CreateConsequenceResponseDataSchema.nullable() }).describe("Response model after creating a consequence in SupportBee.");
20
+ const supportbeeCreateConsequence = require_action.action("SUPPORTBEE_CREATE_CONSEQUENCE", {
21
+ slug: "supportbee-create-consequence",
22
+ name: "Create Consequence",
23
+ 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).",
24
+ input: SupportbeeCreateConsequenceInput,
25
+ output: SupportbeeCreateConsequenceOutput
26
+ });
27
+ //#endregion
28
+ exports.supportbeeCreateConsequence = supportbeeCreateConsequence;
29
+
30
+ //# sourceMappingURL=create-consequence.cjs.map