@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,56 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-ticket-reply.ts
4
+ const SupportbeeCreateTicketReplyInput = zod.z.object({
5
+ content: zod.z.string().describe("Content of the reply in HTML format"),
6
+ user_id: zod.z.number().int().describe("ID of the user replying; if omitted, the current user is used").optional(),
7
+ ticket_id: zod.z.string().describe("ID of the ticket to reply to")
8
+ });
9
+ const SupportbeeCreateTicketReply_TicketSummarySchema = zod.z.object({
10
+ id: zod.z.number().int().describe("ID of the ticket"),
11
+ replies_count: zod.z.number().int().describe("Total number of replies").nullable().optional(),
12
+ comments_count: zod.z.number().int().describe("Number of comments").nullable().optional(),
13
+ agent_replies_count: zod.z.number().int().describe("Number of agent replies").nullable().optional()
14
+ });
15
+ const SupportbeeCreateTicketReply_AttachmentSchema = zod.z.object({
16
+ id: zod.z.number().int().describe("ID of the attachment"),
17
+ url: zod.z.string().describe("URL to access the attachment"),
18
+ size: zod.z.number().int().describe("Size of the attachment in bytes"),
19
+ filename: zod.z.string().describe("Name of the attachment"),
20
+ created_at: zod.z.string().describe("ISO8601 creation date/time of the attachment"),
21
+ content_type: zod.z.string().describe("MIME type of the attachment")
22
+ });
23
+ const SupportbeeCreateTicketReply_ReplyContentSchema = zod.z.object({
24
+ html: zod.z.string().describe("HTML content of the reply").nullable().optional(),
25
+ text: zod.z.string().describe("Plain text content of the reply").nullable().optional(),
26
+ truncated: zod.z.boolean().describe("Whether content is truncated").nullable().optional(),
27
+ attachments: zod.z.array(SupportbeeCreateTicketReply_AttachmentSchema).describe("List of attachments in the reply content").nullable().optional()
28
+ });
29
+ const SupportbeeCreateTicketReply_ReplyUserSchema = zod.z.object({
30
+ id: zod.z.number().int().describe("ID of the user who posted the reply"),
31
+ name: zod.z.string().describe("Name of the user").nullable().optional(),
32
+ email: zod.z.string().describe("Email of the user").nullable().optional()
33
+ });
34
+ const SupportbeeCreateTicketReplyOutput = zod.z.object({
35
+ cc: zod.z.array(zod.z.string()).describe("CC recipients").nullable().optional(),
36
+ id: zod.z.number().int().describe("ID of the reply"),
37
+ bcc: zod.z.array(zod.z.string()).describe("BCC recipients").nullable().optional(),
38
+ merged: zod.z.boolean().describe("Whether the reply is merged").nullable().optional(),
39
+ ticket: SupportbeeCreateTicketReply_TicketSummarySchema.nullable().optional(),
40
+ content: SupportbeeCreateTicketReply_ReplyContentSchema.nullable(),
41
+ replier: SupportbeeCreateTicketReply_ReplyUserSchema.nullable(),
42
+ summary: zod.z.string().describe("Summary of the reply content").nullable().optional(),
43
+ created_at: zod.z.string().describe("Timestamp when the reply was created"),
44
+ historical_import: zod.z.boolean().describe("Whether this is a historical import").nullable().optional()
45
+ });
46
+ const supportbeeCreateTicketReply = require_action.action("SUPPORTBEE_CREATE_TICKET_REPLY", {
47
+ slug: "supportbee-create-ticket-reply",
48
+ name: "Create Ticket Reply",
49
+ description: "Create a reply to a support ticket in SupportBee. Replies are sent to customers via email and are visible to them. Use this when you need to respond to a customer's ticket with information, updates, or solutions. Provide the ticket ID and HTML-formatted content for your reply.",
50
+ input: SupportbeeCreateTicketReplyInput,
51
+ output: SupportbeeCreateTicketReplyOutput
52
+ });
53
+ //#endregion
54
+ exports.supportbeeCreateTicketReply = supportbeeCreateTicketReply;
55
+
56
+ //# sourceMappingURL=create-ticket-reply.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket-reply.cjs","names":["z","action"],"sources":["../../src/actions/create-ticket-reply.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateTicketReplyInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"Content of the reply in HTML format\"),\n user_id: z.number().int().describe(\"ID of the user replying; if omitted, the current user is used\").optional(),\n ticket_id: z.string().describe(\"ID of the ticket to reply to\"),\n});\nconst SupportbeeCreateTicketReply_TicketSummarySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the ticket\"),\n replies_count: z.number().int().describe(\"Total number of replies\").nullable().optional(),\n comments_count: z.number().int().describe(\"Number of comments\").nullable().optional(),\n agent_replies_count: z.number().int().describe(\"Number of agent replies\").nullable().optional(),\n});\nconst SupportbeeCreateTicketReply_AttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the attachment\"),\n url: z.string().describe(\"URL to access the attachment\"),\n size: z.number().int().describe(\"Size of the attachment in bytes\"),\n filename: z.string().describe(\"Name of the attachment\"),\n created_at: z.string().describe(\"ISO8601 creation date/time of the attachment\"),\n content_type: z.string().describe(\"MIME type of the attachment\"),\n});\nconst SupportbeeCreateTicketReply_ReplyContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML content of the reply\").nullable().optional(),\n text: z.string().describe(\"Plain text content of the reply\").nullable().optional(),\n truncated: z.boolean().describe(\"Whether content is truncated\").nullable().optional(),\n attachments: z.array(SupportbeeCreateTicketReply_AttachmentSchema).describe(\"List of attachments in the reply content\").nullable().optional(),\n});\nconst SupportbeeCreateTicketReply_ReplyUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the user who posted the reply\"),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email of the user\").nullable().optional(),\n});\nexport const SupportbeeCreateTicketReplyOutput: z.ZodTypeAny = z.object({\n cc: z.array(z.string()).describe(\"CC recipients\").nullable().optional(),\n id: z.number().int().describe(\"ID of the reply\"),\n bcc: z.array(z.string()).describe(\"BCC recipients\").nullable().optional(),\n merged: z.boolean().describe(\"Whether the reply is merged\").nullable().optional(),\n ticket: SupportbeeCreateTicketReply_TicketSummarySchema.nullable().optional(),\n content: SupportbeeCreateTicketReply_ReplyContentSchema.nullable(),\n replier: SupportbeeCreateTicketReply_ReplyUserSchema.nullable(),\n summary: z.string().describe(\"Summary of the reply content\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the reply was created\"),\n historical_import: z.boolean().describe(\"Whether this is a historical import\").nullable().optional(),\n});\n\nexport const supportbeeCreateTicketReply = action(\"SUPPORTBEE_CREATE_TICKET_REPLY\", {\n slug: \"supportbee-create-ticket-reply\",\n name: \"Create Ticket Reply\",\n description: \"Create a reply to a support ticket in SupportBee. Replies are sent to customers via email and are visible to them. Use this when you need to respond to a customer's ticket with information, updates, or solutions. Provide the ticket ID and HTML-formatted content for your reply.\",\n input: SupportbeeCreateTicketReplyInput,\n output: SupportbeeCreateTicketReplyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC/D,CAAC;AACD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;CAChD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,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ateTicketReplyOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateTicketReply: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateTicketReply };
9
+ //# sourceMappingURL=create-ticket-reply.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket-reply.d.cts","names":[],"sources":["../../src/actions/create-ticket-reply.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI/C;AAAA,cA0BW,iCAAA,EAAmC,CAAA,CAAE,UAWhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-ticket-reply.d.ts
4
+ declare const SupportbeeCreateTicketReplyInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateTicketReplyOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateTicketReply: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateTicketReply };
9
+ //# sourceMappingURL=create-ticket-reply.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket-reply.d.mts","names":[],"sources":["../../src/actions/create-ticket-reply.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI/C;AAAA,cA0BW,iCAAA,EAAmC,CAAA,CAAE,UAWhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,55 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-ticket-reply.ts
4
+ const SupportbeeCreateTicketReplyInput = z.object({
5
+ content: z.string().describe("Content of the reply in HTML format"),
6
+ user_id: z.number().int().describe("ID of the user replying; if omitted, the current user is used").optional(),
7
+ ticket_id: z.string().describe("ID of the ticket to reply to")
8
+ });
9
+ const SupportbeeCreateTicketReply_TicketSummarySchema = z.object({
10
+ id: z.number().int().describe("ID of the ticket"),
11
+ replies_count: z.number().int().describe("Total number of replies").nullable().optional(),
12
+ comments_count: z.number().int().describe("Number of comments").nullable().optional(),
13
+ agent_replies_count: z.number().int().describe("Number of agent replies").nullable().optional()
14
+ });
15
+ const SupportbeeCreateTicketReply_AttachmentSchema = z.object({
16
+ id: z.number().int().describe("ID of the attachment"),
17
+ url: z.string().describe("URL to access the attachment"),
18
+ size: z.number().int().describe("Size of the attachment in bytes"),
19
+ filename: z.string().describe("Name of the attachment"),
20
+ created_at: z.string().describe("ISO8601 creation date/time of the attachment"),
21
+ content_type: z.string().describe("MIME type of the attachment")
22
+ });
23
+ const SupportbeeCreateTicketReply_ReplyContentSchema = z.object({
24
+ html: z.string().describe("HTML content of the reply").nullable().optional(),
25
+ text: z.string().describe("Plain text content of the reply").nullable().optional(),
26
+ truncated: z.boolean().describe("Whether content is truncated").nullable().optional(),
27
+ attachments: z.array(SupportbeeCreateTicketReply_AttachmentSchema).describe("List of attachments in the reply content").nullable().optional()
28
+ });
29
+ const SupportbeeCreateTicketReply_ReplyUserSchema = z.object({
30
+ id: z.number().int().describe("ID of the user who posted the reply"),
31
+ name: z.string().describe("Name of the user").nullable().optional(),
32
+ email: z.string().describe("Email of the user").nullable().optional()
33
+ });
34
+ const supportbeeCreateTicketReply = action("SUPPORTBEE_CREATE_TICKET_REPLY", {
35
+ slug: "supportbee-create-ticket-reply",
36
+ name: "Create Ticket Reply",
37
+ description: "Create a reply to a support ticket in SupportBee. Replies are sent to customers via email and are visible to them. Use this when you need to respond to a customer's ticket with information, updates, or solutions. Provide the ticket ID and HTML-formatted content for your reply.",
38
+ input: SupportbeeCreateTicketReplyInput,
39
+ output: z.object({
40
+ cc: z.array(z.string()).describe("CC recipients").nullable().optional(),
41
+ id: z.number().int().describe("ID of the reply"),
42
+ bcc: z.array(z.string()).describe("BCC recipients").nullable().optional(),
43
+ merged: z.boolean().describe("Whether the reply is merged").nullable().optional(),
44
+ ticket: SupportbeeCreateTicketReply_TicketSummarySchema.nullable().optional(),
45
+ content: SupportbeeCreateTicketReply_ReplyContentSchema.nullable(),
46
+ replier: SupportbeeCreateTicketReply_ReplyUserSchema.nullable(),
47
+ summary: z.string().describe("Summary of the reply content").nullable().optional(),
48
+ created_at: z.string().describe("Timestamp when the reply was created"),
49
+ historical_import: z.boolean().describe("Whether this is a historical import").nullable().optional()
50
+ })
51
+ });
52
+ //#endregion
53
+ export { supportbeeCreateTicketReply };
54
+
55
+ //# sourceMappingURL=create-ticket-reply.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket-reply.mjs","names":[],"sources":["../../src/actions/create-ticket-reply.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateTicketReplyInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"Content of the reply in HTML format\"),\n user_id: z.number().int().describe(\"ID of the user replying; if omitted, the current user is used\").optional(),\n ticket_id: z.string().describe(\"ID of the ticket to reply to\"),\n});\nconst SupportbeeCreateTicketReply_TicketSummarySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the ticket\"),\n replies_count: z.number().int().describe(\"Total number of replies\").nullable().optional(),\n comments_count: z.number().int().describe(\"Number of comments\").nullable().optional(),\n agent_replies_count: z.number().int().describe(\"Number of agent replies\").nullable().optional(),\n});\nconst SupportbeeCreateTicketReply_AttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the attachment\"),\n url: z.string().describe(\"URL to access the attachment\"),\n size: z.number().int().describe(\"Size of the attachment in bytes\"),\n filename: z.string().describe(\"Name of the attachment\"),\n created_at: z.string().describe(\"ISO8601 creation date/time of the attachment\"),\n content_type: z.string().describe(\"MIME type of the attachment\"),\n});\nconst SupportbeeCreateTicketReply_ReplyContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML content of the reply\").nullable().optional(),\n text: z.string().describe(\"Plain text content of the reply\").nullable().optional(),\n truncated: z.boolean().describe(\"Whether content is truncated\").nullable().optional(),\n attachments: z.array(SupportbeeCreateTicketReply_AttachmentSchema).describe(\"List of attachments in the reply content\").nullable().optional(),\n});\nconst SupportbeeCreateTicketReply_ReplyUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the user who posted the reply\"),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email of the user\").nullable().optional(),\n});\nexport const SupportbeeCreateTicketReplyOutput: z.ZodTypeAny = z.object({\n cc: z.array(z.string()).describe(\"CC recipients\").nullable().optional(),\n id: z.number().int().describe(\"ID of the reply\"),\n bcc: z.array(z.string()).describe(\"BCC recipients\").nullable().optional(),\n merged: z.boolean().describe(\"Whether the reply is merged\").nullable().optional(),\n ticket: SupportbeeCreateTicketReply_TicketSummarySchema.nullable().optional(),\n content: SupportbeeCreateTicketReply_ReplyContentSchema.nullable(),\n replier: SupportbeeCreateTicketReply_ReplyUserSchema.nullable(),\n summary: z.string().describe(\"Summary of the reply content\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the reply was created\"),\n historical_import: z.boolean().describe(\"Whether this is a historical import\").nullable().optional(),\n});\n\nexport const supportbeeCreateTicketReply = action(\"SUPPORTBEE_CREATE_TICKET_REPLY\", {\n slug: \"supportbee-create-ticket-reply\",\n name: \"Create Ticket Reply\",\n description: \"Create a reply to a support ticket in SupportBee. Replies are sent to customers via email and are visible to them. Use this when you need to respond to a customer's ticket with information, updates, or solutions. Provide the ticket ID and HTML-formatted content for your reply.\",\n input: SupportbeeCreateTicketReplyInput,\n output: SupportbeeCreateTicketReplyOutput,\n});\n"],"mappings":";;;AAIA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QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAOU;AACV,CAAC"}
@@ -0,0 +1,79 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-ticket.ts
4
+ const SupportbeeCreateTicketInput = zod.z.object({
5
+ cc: zod.z.array(zod.z.string()).describe("Email addresses to CC on the ticket. These recipients will receive updates.").optional(),
6
+ spam: zod.z.boolean().default(false).describe("Set to true to mark the ticket as spam. Note: The API may not honor this during creation.").optional(),
7
+ tags: zod.z.array(zod.z.string()).describe("Tags to categorize the ticket (e.g., 'urgent', 'billing', 'bug').").optional(),
8
+ labels: zod.z.array(zod.z.string()).describe("Custom labels for the ticket. Use label names from your SupportBee account.").optional(),
9
+ content: zod.z.string().describe("Main content/body of the ticket. Describe the issue or request in detail."),
10
+ subject: zod.z.string().describe("Subject line of the ticket. Should be concise and descriptive."),
11
+ team_id: zod.z.number().int().describe("Team ID to assign this ticket to. Use Fetch Teams to get valid team IDs.").optional(),
12
+ agent_id: zod.z.number().int().describe("Agent ID to assign this ticket to. Use Fetch Teams/Users to get valid agent IDs.").optional(),
13
+ requester: zod.z.object({
14
+ id: zod.z.number().int().describe("Unique ID of the requester.").optional(),
15
+ name: zod.z.string().describe("Name of the requester.").optional(),
16
+ email: zod.z.string().describe("Email address of the requester."),
17
+ last_name: zod.z.string().describe("Last name of the requester.").optional(),
18
+ first_name: zod.z.string().describe("First name of the requester.").optional()
19
+ }).describe("Requester information. Email is required; name is optional but recommended.")
20
+ }).describe("Request model for creating a new support ticket in SupportBee.");
21
+ const SupportbeeCreateTicket_CreateTicketCcUserSchema = zod.z.object({
22
+ id: zod.z.number().int().describe("Unique ID of the CC user."),
23
+ name: zod.z.string().describe("Name of the CC user.").nullable().optional(),
24
+ email: zod.z.string().describe("Email of the CC user.")
25
+ }).describe("CC user information in response.");
26
+ const SupportbeeCreateTicket_CreateTicketTeamSchema = zod.z.object({
27
+ id: zod.z.number().int().describe("ID of the assigned team."),
28
+ name: zod.z.string().describe("Name of the team.").nullable().optional()
29
+ }).describe("Assigned team information.");
30
+ const SupportbeeCreateTicket_CreateTicketAgentSchema = zod.z.object({
31
+ id: zod.z.number().int().describe("ID of the assigned agent."),
32
+ name: zod.z.string().describe("Name of the agent.").nullable().optional(),
33
+ email: zod.z.string().describe("Email of the agent.").nullable().optional()
34
+ }).describe("Assigned agent information.");
35
+ const SupportbeeCreateTicket_CreateTicketAttachmentSchema = zod.z.object({
36
+ id: zod.z.number().int().describe("Unique ID of the attachment."),
37
+ url: zod.z.string().describe("URL to access the attachment."),
38
+ size: zod.z.number().int().describe("Size of the attachment in bytes."),
39
+ filename: zod.z.string().describe("Name of the attached file."),
40
+ created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format."),
41
+ content_type: zod.z.string().describe("MIME type of the attachment.")
42
+ }).describe("Attachment information in ticket response.");
43
+ const SupportbeeCreateTicket_CreateTicketContentSchema = zod.z.object({
44
+ html: zod.z.string().describe("HTML version of the ticket content."),
45
+ text: zod.z.string().describe("Plain text version of the ticket content."),
46
+ truncated: zod.z.boolean().describe("Whether the content is truncated in the response."),
47
+ attachments: zod.z.array(SupportbeeCreateTicket_CreateTicketAttachmentSchema).describe("List of attachments in the ticket content.").nullable().optional()
48
+ }).describe("Content structure for the ticket response.");
49
+ const SupportbeeCreateTicket_CreateTicketRequesterSchema = zod.z.object({
50
+ id: zod.z.number().int().describe("Unique ID of the requester.").nullable().optional(),
51
+ name: zod.z.string().describe("Name of the requester.").nullable().optional(),
52
+ email: zod.z.string().describe("Email address of the requester."),
53
+ last_name: zod.z.string().describe("Last name of the requester.").nullable().optional(),
54
+ first_name: zod.z.string().describe("First name of the requester.").nullable().optional()
55
+ }).describe("Requester information for a ticket.");
56
+ const SupportbeeCreateTicketOutput = zod.z.object({
57
+ cc: zod.z.array(SupportbeeCreateTicket_CreateTicketCcUserSchema).describe("CC users on the ticket.").nullable().optional(),
58
+ id: zod.z.number().int().describe("Unique ID of the ticket."),
59
+ spam: zod.z.boolean().describe("Indicates if the ticket is marked as spam."),
60
+ tags: zod.z.array(zod.z.string()).describe("Tags associated with the ticket.").nullable().optional(),
61
+ team: SupportbeeCreateTicket_CreateTicketTeamSchema.nullable().optional(),
62
+ agent: SupportbeeCreateTicket_CreateTicketAgentSchema.nullable().optional(),
63
+ labels: zod.z.array(zod.z.string()).describe("Labels associated with the ticket.").nullable().optional(),
64
+ content: SupportbeeCreateTicket_CreateTicketContentSchema.nullable(),
65
+ subject: zod.z.string().describe("Subject of the ticket."),
66
+ requester: SupportbeeCreateTicket_CreateTicketRequesterSchema.nullable(),
67
+ created_at: zod.z.string().describe("Timestamp when the ticket was created (ISO 8601). Example: 2021-01-01T12:00:00Z")
68
+ }).describe("Response model after creating a ticket in SupportBee.");
69
+ const supportbeeCreateTicket = require_action.action("SUPPORTBEE_CREATE_TICKET", {
70
+ slug: "supportbee-create-ticket",
71
+ name: "Create SupportBee Ticket",
72
+ description: "Creates a new support ticket in SupportBee with a subject, content, and requester details. Use this action to: - Create tickets from customer inquiries or issues - Assign tickets to specific agents or teams during creation - Add tags and labels for better ticket organization - Include CC recipients to keep stakeholders informed The ticket will be created in an unanswered state and will appear in the inbox unless marked as spam.",
73
+ input: SupportbeeCreateTicketInput,
74
+ output: SupportbeeCreateTicketOutput
75
+ });
76
+ //#endregion
77
+ exports.supportbeeCreateTicket = supportbeeCreateTicket;
78
+
79
+ //# sourceMappingURL=create-ticket.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket.cjs","names":["z","action"],"sources":["../../src/actions/create-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateTicketInput: z.ZodTypeAny = z.object({\n cc: z.array(z.string()).describe(\"Email addresses to CC on the ticket. These recipients will receive updates.\").optional(),\n spam: z.boolean().default(false).describe(\"Set to true to mark the ticket as spam. Note: The API may not honor this during creation.\").optional(),\n tags: z.array(z.string()).describe(\"Tags to categorize the ticket (e.g., 'urgent', 'billing', 'bug').\").optional(),\n labels: z.array(z.string()).describe(\"Custom labels for the ticket. Use label names from your SupportBee account.\").optional(),\n content: z.string().describe(\"Main content/body of the ticket. Describe the issue or request in detail.\"),\n subject: z.string().describe(\"Subject line of the ticket. Should be concise and descriptive.\"),\n team_id: z.number().int().describe(\"Team ID to assign this ticket to. Use Fetch Teams to get valid team IDs.\").optional(),\n agent_id: z.number().int().describe(\"Agent ID to assign this ticket to. Use Fetch Teams/Users to get valid agent IDs.\").optional(),\n requester: z.object({\n id: z.number().int().describe(\"Unique ID of the requester.\").optional(),\n name: z.string().describe(\"Name of the requester.\").optional(),\n email: z.string().describe(\"Email address of the requester.\"),\n last_name: z.string().describe(\"Last name of the requester.\").optional(),\n first_name: z.string().describe(\"First name of the requester.\").optional(),\n}).describe(\"Requester information. Email is required; name is optional but recommended.\"),\n}).describe(\"Request model for creating a new support ticket in SupportBee.\");\nconst SupportbeeCreateTicket_CreateTicketCcUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the CC user.\"),\n name: z.string().describe(\"Name of the CC user.\").nullable().optional(),\n email: z.string().describe(\"Email of the CC user.\"),\n}).describe(\"CC user information in response.\");\nconst SupportbeeCreateTicket_CreateTicketTeamSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned team.\"),\n name: z.string().describe(\"Name of the team.\").nullable().optional(),\n}).describe(\"Assigned team information.\");\nconst SupportbeeCreateTicket_CreateTicketAgentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned agent.\"),\n name: z.string().describe(\"Name of the agent.\").nullable().optional(),\n email: z.string().describe(\"Email of the agent.\").nullable().optional(),\n}).describe(\"Assigned agent information.\");\nconst SupportbeeCreateTicket_CreateTicketAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the attachment.\"),\n url: z.string().describe(\"URL to access the attachment.\"),\n size: z.number().int().describe(\"Size of the attachment in bytes.\"),\n filename: z.string().describe(\"Name of the attached file.\"),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\"),\n content_type: z.string().describe(\"MIME type of the attachment.\"),\n}).describe(\"Attachment information in ticket response.\");\nconst SupportbeeCreateTicket_CreateTicketContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML version of the ticket content.\"),\n text: z.string().describe(\"Plain text version of the ticket content.\"),\n truncated: z.boolean().describe(\"Whether the content is truncated in the response.\"),\n attachments: z.array(SupportbeeCreateTicket_CreateTicketAttachmentSchema).describe(\"List of attachments in the ticket content.\").nullable().optional(),\n}).describe(\"Content structure for the ticket response.\");\nconst SupportbeeCreateTicket_CreateTicketRequesterSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the requester.\").nullable().optional(),\n name: z.string().describe(\"Name of the requester.\").nullable().optional(),\n email: z.string().describe(\"Email address of the requester.\"),\n last_name: z.string().describe(\"Last name of the requester.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the requester.\").nullable().optional(),\n}).describe(\"Requester information for a ticket.\");\nexport const SupportbeeCreateTicketOutput: z.ZodTypeAny = z.object({\n cc: z.array(SupportbeeCreateTicket_CreateTicketCcUserSchema).describe(\"CC users on the ticket.\").nullable().optional(),\n id: z.number().int().describe(\"Unique ID of the ticket.\"),\n spam: z.boolean().describe(\"Indicates if the ticket is marked as spam.\"),\n tags: z.array(z.string()).describe(\"Tags associated with the ticket.\").nullable().optional(),\n team: SupportbeeCreateTicket_CreateTicketTeamSchema.nullable().optional(),\n agent: SupportbeeCreateTicket_CreateTicketAgentSchema.nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the ticket.\").nullable().optional(),\n content: SupportbeeCreateTicket_CreateTicketContentSchema.nullable(),\n subject: z.string().describe(\"Subject of the ticket.\"),\n requester: SupportbeeCreateTicket_CreateTicketRequesterSchema.nullable(),\n created_at: z.string().describe(\"Timestamp when the ticket was created (ISO 8601). Example: 2021-01-01T12:00:00Z\"),\n}).describe(\"Response model after creating a ticket in SupportBee.\");\n\nexport const supportbeeCreateTicket = action(\"SUPPORTBEE_CREATE_TICKET\", {\n slug: \"supportbee-create-ticket\",\n name: \"Create SupportBee Ticket\",\n description: \"Creates a new support ticket in SupportBee with a subject, content, and requester details. Use this action to: - Create tickets from customer inquiries or issues - Assign tickets to specific agents or teams during creation - Add tags and labels for better ticket organization - Include CC recipients to keep stakeholders informed The ticket will be created in an unanswered state and will appear in the inbox unless marked as spam.\",\n input: SupportbeeCreateTicketInput,\n output: SupportbeeCreateTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChJ,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC7H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACjI,WAAWA,IAAAA,EAAE,OAAO;EACpB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAA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 //#region src/actions/create-ticket.d.ts
4
+ declare const SupportbeeCreateTicketInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateTicketOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateTicket };
9
+ //# sourceMappingURL=create-ticket.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket.d.cts","names":[],"sources":["../../src/actions/create-ticket.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAgBiC;AAAA,cAoChE,4BAAA,EAA8B,CAAA,CAAE,UAYuB;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-ticket.d.ts
4
+ declare const SupportbeeCreateTicketInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateTicketOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateTicket };
9
+ //# sourceMappingURL=create-ticket.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket.d.mts","names":[],"sources":["../../src/actions/create-ticket.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAgBiC;AAAA,cAoChE,4BAAA,EAA8B,CAAA,CAAE,UAYuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,78 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-ticket.ts
4
+ const SupportbeeCreateTicketInput = z.object({
5
+ cc: z.array(z.string()).describe("Email addresses to CC on the ticket. These recipients will receive updates.").optional(),
6
+ spam: z.boolean().default(false).describe("Set to true to mark the ticket as spam. Note: The API may not honor this during creation.").optional(),
7
+ tags: z.array(z.string()).describe("Tags to categorize the ticket (e.g., 'urgent', 'billing', 'bug').").optional(),
8
+ labels: z.array(z.string()).describe("Custom labels for the ticket. Use label names from your SupportBee account.").optional(),
9
+ content: z.string().describe("Main content/body of the ticket. Describe the issue or request in detail."),
10
+ subject: z.string().describe("Subject line of the ticket. Should be concise and descriptive."),
11
+ team_id: z.number().int().describe("Team ID to assign this ticket to. Use Fetch Teams to get valid team IDs.").optional(),
12
+ agent_id: z.number().int().describe("Agent ID to assign this ticket to. Use Fetch Teams/Users to get valid agent IDs.").optional(),
13
+ requester: z.object({
14
+ id: z.number().int().describe("Unique ID of the requester.").optional(),
15
+ name: z.string().describe("Name of the requester.").optional(),
16
+ email: z.string().describe("Email address of the requester."),
17
+ last_name: z.string().describe("Last name of the requester.").optional(),
18
+ first_name: z.string().describe("First name of the requester.").optional()
19
+ }).describe("Requester information. Email is required; name is optional but recommended.")
20
+ }).describe("Request model for creating a new support ticket in SupportBee.");
21
+ const SupportbeeCreateTicket_CreateTicketCcUserSchema = z.object({
22
+ id: z.number().int().describe("Unique ID of the CC user."),
23
+ name: z.string().describe("Name of the CC user.").nullable().optional(),
24
+ email: z.string().describe("Email of the CC user.")
25
+ }).describe("CC user information in response.");
26
+ const SupportbeeCreateTicket_CreateTicketTeamSchema = z.object({
27
+ id: z.number().int().describe("ID of the assigned team."),
28
+ name: z.string().describe("Name of the team.").nullable().optional()
29
+ }).describe("Assigned team information.");
30
+ const SupportbeeCreateTicket_CreateTicketAgentSchema = z.object({
31
+ id: z.number().int().describe("ID of the assigned agent."),
32
+ name: z.string().describe("Name of the agent.").nullable().optional(),
33
+ email: z.string().describe("Email of the agent.").nullable().optional()
34
+ }).describe("Assigned agent information.");
35
+ const SupportbeeCreateTicket_CreateTicketAttachmentSchema = z.object({
36
+ id: z.number().int().describe("Unique ID of the attachment."),
37
+ url: z.string().describe("URL to access the attachment."),
38
+ size: z.number().int().describe("Size of the attachment in bytes."),
39
+ filename: z.string().describe("Name of the attached file."),
40
+ created_at: z.string().describe("Creation timestamp in ISO 8601 format."),
41
+ content_type: z.string().describe("MIME type of the attachment.")
42
+ }).describe("Attachment information in ticket response.");
43
+ const SupportbeeCreateTicket_CreateTicketContentSchema = z.object({
44
+ html: z.string().describe("HTML version of the ticket content."),
45
+ text: z.string().describe("Plain text version of the ticket content."),
46
+ truncated: z.boolean().describe("Whether the content is truncated in the response."),
47
+ attachments: z.array(SupportbeeCreateTicket_CreateTicketAttachmentSchema).describe("List of attachments in the ticket content.").nullable().optional()
48
+ }).describe("Content structure for the ticket response.");
49
+ const SupportbeeCreateTicket_CreateTicketRequesterSchema = z.object({
50
+ id: z.number().int().describe("Unique ID of the requester.").nullable().optional(),
51
+ name: z.string().describe("Name of the requester.").nullable().optional(),
52
+ email: z.string().describe("Email address of the requester."),
53
+ last_name: z.string().describe("Last name of the requester.").nullable().optional(),
54
+ first_name: z.string().describe("First name of the requester.").nullable().optional()
55
+ }).describe("Requester information for a ticket.");
56
+ const supportbeeCreateTicket = action("SUPPORTBEE_CREATE_TICKET", {
57
+ slug: "supportbee-create-ticket",
58
+ name: "Create SupportBee Ticket",
59
+ description: "Creates a new support ticket in SupportBee with a subject, content, and requester details. Use this action to: - Create tickets from customer inquiries or issues - Assign tickets to specific agents or teams during creation - Add tags and labels for better ticket organization - Include CC recipients to keep stakeholders informed The ticket will be created in an unanswered state and will appear in the inbox unless marked as spam.",
60
+ input: SupportbeeCreateTicketInput,
61
+ output: z.object({
62
+ cc: z.array(SupportbeeCreateTicket_CreateTicketCcUserSchema).describe("CC users on the ticket.").nullable().optional(),
63
+ id: z.number().int().describe("Unique ID of the ticket."),
64
+ spam: z.boolean().describe("Indicates if the ticket is marked as spam."),
65
+ tags: z.array(z.string()).describe("Tags associated with the ticket.").nullable().optional(),
66
+ team: SupportbeeCreateTicket_CreateTicketTeamSchema.nullable().optional(),
67
+ agent: SupportbeeCreateTicket_CreateTicketAgentSchema.nullable().optional(),
68
+ labels: z.array(z.string()).describe("Labels associated with the ticket.").nullable().optional(),
69
+ content: SupportbeeCreateTicket_CreateTicketContentSchema.nullable(),
70
+ subject: z.string().describe("Subject of the ticket."),
71
+ requester: SupportbeeCreateTicket_CreateTicketRequesterSchema.nullable(),
72
+ created_at: z.string().describe("Timestamp when the ticket was created (ISO 8601). Example: 2021-01-01T12:00:00Z")
73
+ }).describe("Response model after creating a ticket in SupportBee.")
74
+ });
75
+ //#endregion
76
+ export { supportbeeCreateTicket };
77
+
78
+ //# sourceMappingURL=create-ticket.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-ticket.mjs","names":[],"sources":["../../src/actions/create-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateTicketInput: z.ZodTypeAny = z.object({\n cc: z.array(z.string()).describe(\"Email addresses to CC on the ticket. These recipients will receive updates.\").optional(),\n spam: z.boolean().default(false).describe(\"Set to true to mark the ticket as spam. Note: The API may not honor this during creation.\").optional(),\n tags: z.array(z.string()).describe(\"Tags to categorize the ticket (e.g., 'urgent', 'billing', 'bug').\").optional(),\n labels: z.array(z.string()).describe(\"Custom labels for the ticket. Use label names from your SupportBee account.\").optional(),\n content: z.string().describe(\"Main content/body of the ticket. Describe the issue or request in detail.\"),\n subject: z.string().describe(\"Subject line of the ticket. Should be concise and descriptive.\"),\n team_id: z.number().int().describe(\"Team ID to assign this ticket to. Use Fetch Teams to get valid team IDs.\").optional(),\n agent_id: z.number().int().describe(\"Agent ID to assign this ticket to. Use Fetch Teams/Users to get valid agent IDs.\").optional(),\n requester: z.object({\n id: z.number().int().describe(\"Unique ID of the requester.\").optional(),\n name: z.string().describe(\"Name of the requester.\").optional(),\n email: z.string().describe(\"Email address of the requester.\"),\n last_name: z.string().describe(\"Last name of the requester.\").optional(),\n first_name: z.string().describe(\"First name of the requester.\").optional(),\n}).describe(\"Requester information. Email is required; name is optional but recommended.\"),\n}).describe(\"Request model for creating a new support ticket in SupportBee.\");\nconst SupportbeeCreateTicket_CreateTicketCcUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the CC user.\"),\n name: z.string().describe(\"Name of the CC user.\").nullable().optional(),\n email: z.string().describe(\"Email of the CC user.\"),\n}).describe(\"CC user information in response.\");\nconst SupportbeeCreateTicket_CreateTicketTeamSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned team.\"),\n name: z.string().describe(\"Name of the team.\").nullable().optional(),\n}).describe(\"Assigned team information.\");\nconst SupportbeeCreateTicket_CreateTicketAgentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned agent.\"),\n name: z.string().describe(\"Name of the agent.\").nullable().optional(),\n email: z.string().describe(\"Email of the agent.\").nullable().optional(),\n}).describe(\"Assigned agent information.\");\nconst SupportbeeCreateTicket_CreateTicketAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the attachment.\"),\n url: z.string().describe(\"URL to access the attachment.\"),\n size: z.number().int().describe(\"Size of the attachment in bytes.\"),\n filename: z.string().describe(\"Name of the attached file.\"),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\"),\n content_type: z.string().describe(\"MIME type of the attachment.\"),\n}).describe(\"Attachment information in ticket response.\");\nconst SupportbeeCreateTicket_CreateTicketContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML version of the ticket content.\"),\n text: z.string().describe(\"Plain text version of the ticket content.\"),\n truncated: z.boolean().describe(\"Whether the content is truncated in the response.\"),\n attachments: z.array(SupportbeeCreateTicket_CreateTicketAttachmentSchema).describe(\"List of attachments in the ticket content.\").nullable().optional(),\n}).describe(\"Content structure for the ticket response.\");\nconst SupportbeeCreateTicket_CreateTicketRequesterSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the requester.\").nullable().optional(),\n name: z.string().describe(\"Name of the requester.\").nullable().optional(),\n email: z.string().describe(\"Email address of the requester.\"),\n last_name: z.string().describe(\"Last name of the requester.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the requester.\").nullable().optional(),\n}).describe(\"Requester information for a ticket.\");\nexport const SupportbeeCreateTicketOutput: z.ZodTypeAny = z.object({\n cc: z.array(SupportbeeCreateTicket_CreateTicketCcUserSchema).describe(\"CC users on the ticket.\").nullable().optional(),\n id: z.number().int().describe(\"Unique ID of the ticket.\"),\n spam: z.boolean().describe(\"Indicates if the ticket is marked as spam.\"),\n tags: z.array(z.string()).describe(\"Tags associated with the ticket.\").nullable().optional(),\n team: SupportbeeCreateTicket_CreateTicketTeamSchema.nullable().optional(),\n agent: SupportbeeCreateTicket_CreateTicketAgentSchema.nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the ticket.\").nullable().optional(),\n content: SupportbeeCreateTicket_CreateTicketContentSchema.nullable(),\n subject: z.string().describe(\"Subject of the ticket.\"),\n requester: SupportbeeCreateTicket_CreateTicketRequesterSchema.nullable(),\n created_at: z.string().describe(\"Timestamp when the ticket was created (ISO 8601). Example: 2021-01-01T12:00:00Z\"),\n}).describe(\"Response model after creating a ticket in SupportBee.\");\n\nexport const supportbeeCreateTicket = action(\"SUPPORTBEE_CREATE_TICKET\", {\n slug: \"supportbee-create-ticket\",\n name: \"Create SupportBee Ticket\",\n description: \"Creates a new support ticket in SupportBee with a subject, content, and requester details. Use this action to: - Create tickets from customer inquiries or issues - Assign tickets to specific agents or teams during creation - Add tags and labels for better ticket organization - Include CC recipients to keep stakeholders informed The ticket will be created in an unanswered state and will appear in the inbox unless marked as spam.\",\n input: SupportbeeCreateTicketInput,\n output: SupportbeeCreateTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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AO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,iDAAiD,SAAS;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACrD,WAAW,mDAAmD,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACnH,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -0,0 +1,50 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-user-or-customer-group.ts
4
+ const SupportbeeCreateUserOrCustomerGroupInput = zod.z.object({
5
+ name: zod.z.string().describe("Full name of the user to display in SupportBee.").optional(),
6
+ role: zod.z.enum([
7
+ "agent",
8
+ "admin",
9
+ "collaborator"
10
+ ]).default("agent").describe("Role to assign to the user. 'admin' has full account access, 'agent' can handle tickets, 'collaborator' can view and comment only. Defaults to 'agent'.").optional(),
11
+ email: zod.z.string().describe("Email address of the user to invite. An invitation email will be sent to this address.")
12
+ }).describe("Request model for inviting a new user (agent, admin, or collaborator) in SupportBee.");
13
+ const SupportbeeCreateUserOrCustomerGroup_UserPictureSchema = zod.z.object({
14
+ thumb20: zod.z.string().describe("20x20 pixel avatar URL").nullable().optional(),
15
+ thumb24: zod.z.string().describe("24x24 pixel avatar URL").nullable().optional(),
16
+ thumb32: zod.z.string().describe("32x32 pixel avatar URL").nullable().optional(),
17
+ thumb48: zod.z.string().describe("48x48 pixel avatar URL").nullable().optional(),
18
+ thumb64: zod.z.string().describe("64x64 pixel avatar URL").nullable().optional(),
19
+ thumb128: zod.z.string().describe("128x128 pixel avatar URL").nullable().optional()
20
+ }).describe("Model for user avatar URLs in different sizes.");
21
+ const SupportbeeCreateUserOrCustomerGroupOutput = zod.z.object({
22
+ id: zod.z.number().int().describe("Unique ID of the created user"),
23
+ name: zod.z.string().describe("Full name of the created user").nullable().optional(),
24
+ role: zod.z.enum([
25
+ "agent",
26
+ "admin",
27
+ "collaborator"
28
+ ]).describe("Assigned role of the created user: 'admin', 'agent', or 'collaborator'").nullable().optional(),
29
+ type: zod.z.string().describe("Type of entity: 'user' or 'customer_group'").nullable().optional(),
30
+ agent: zod.z.boolean().describe("Whether the user is an agent (can handle tickets)").nullable().optional(),
31
+ email: zod.z.string().describe("Email address of the created user"),
32
+ picture: SupportbeeCreateUserOrCustomerGroup_UserPictureSchema.nullable().optional(),
33
+ last_name: zod.z.string().describe("Last name of the created user").nullable().optional(),
34
+ first_name: zod.z.string().describe("First name of the created user").nullable().optional(),
35
+ email_domains: zod.z.array(zod.z.string()).describe("For customer groups, list of associated email domains").nullable().optional(),
36
+ members_count: zod.z.number().int().describe("For customer groups, count of members in the group").nullable().optional(),
37
+ can_members_access_group_tickets: zod.z.boolean().describe("For customer groups, whether members can access group tickets").nullable().optional(),
38
+ two_factor_authentication_enabled: zod.z.boolean().describe("Whether two-factor authentication is enabled for this user").nullable().optional()
39
+ }).describe("Response model for a created/invited user in SupportBee.");
40
+ const supportbeeCreateUserOrCustomerGroup = require_action.action("SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP", {
41
+ slug: "supportbee-create-user-or-customer-group",
42
+ name: "Create SupportBee User",
43
+ description: "Invites a new user to your SupportBee account. The user will receive an email invitation and can be assigned as an agent (handles tickets), admin (full access), or collaborator (view/comment only). Use this when you need to add team members to your helpdesk programmatically.",
44
+ input: SupportbeeCreateUserOrCustomerGroupInput,
45
+ output: SupportbeeCreateUserOrCustomerGroupOutput
46
+ });
47
+ //#endregion
48
+ exports.supportbeeCreateUserOrCustomerGroup = supportbeeCreateUserOrCustomerGroup;
49
+
50
+ //# sourceMappingURL=create-user-or-customer-group.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-or-customer-group.cjs","names":["z","action"],"sources":["../../src/actions/create-user-or-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateUserOrCustomerGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full name of the user to display in SupportBee.\").optional(),\n role: z.enum([\"agent\", \"admin\", \"collaborator\"]).default(\"agent\").describe(\"Role to assign to the user. 'admin' has full account access, 'agent' can handle tickets, 'collaborator' can view and comment only. Defaults to 'agent'.\").optional(),\n email: z.string().describe(\"Email address of the user to invite. An invitation email will be sent to this address.\"),\n}).describe(\"Request model for inviting a new user (agent, admin, or collaborator) in SupportBee.\");\nconst SupportbeeCreateUserOrCustomerGroup_UserPictureSchema: z.ZodTypeAny = z.object({\n thumb20: z.string().describe(\"20x20 pixel avatar URL\").nullable().optional(),\n thumb24: z.string().describe(\"24x24 pixel avatar URL\").nullable().optional(),\n thumb32: z.string().describe(\"32x32 pixel avatar URL\").nullable().optional(),\n thumb48: z.string().describe(\"48x48 pixel avatar URL\").nullable().optional(),\n thumb64: z.string().describe(\"64x64 pixel avatar URL\").nullable().optional(),\n thumb128: z.string().describe(\"128x128 pixel avatar URL\").nullable().optional(),\n}).describe(\"Model for user avatar URLs in different sizes.\");\nexport const SupportbeeCreateUserOrCustomerGroupOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created user\"),\n name: z.string().describe(\"Full name of the created user\").nullable().optional(),\n role: z.enum([\"agent\", \"admin\", \"collaborator\"]).describe(\"Assigned role of the created user: 'admin', 'agent', or 'collaborator'\").nullable().optional(),\n type: z.string().describe(\"Type of entity: 'user' or 'customer_group'\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the user is an agent (can handle tickets)\").nullable().optional(),\n email: z.string().describe(\"Email address of the created user\"),\n picture: SupportbeeCreateUserOrCustomerGroup_UserPictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name of the created user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the created user\").nullable().optional(),\n email_domains: z.array(z.string()).describe(\"For customer groups, list of associated email domains\").nullable().optional(),\n members_count: z.number().int().describe(\"For customer groups, count of members in the group\").nullable().optional(),\n can_members_access_group_tickets: z.boolean().describe(\"For customer groups, whether members can access group tickets\").nullable().optional(),\n two_factor_authentication_enabled: z.boolean().describe(\"Whether two-factor authentication is enabled for this user\").nullable().optional(),\n}).describe(\"Response model for a created/invited user in SupportBee.\");\n\nexport const supportbeeCreateUserOrCustomerGroup = action(\"SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP\", {\n slug: \"supportbee-create-user-or-customer-group\",\n name: \"Create SupportBee User\",\n description: \"Invites a new user to your SupportBee account. The user will receive an email invitation and can be assigned as an agent (handles tickets), admin (full access), or collaborator (view/comment only). Use this when you need to add team members to your helpdesk programmatically.\",\n input: SupportbeeCreateUserOrCustomerGroupInput,\n output: SupportbeeCreateUserOrCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;CAAc,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CAC/O,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;AACrH,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,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,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,kCAAkCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,mCAAmCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,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-user-or-customer-group.d.ts
4
+ declare const SupportbeeCreateUserOrCustomerGroupInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateUserOrCustomerGroupOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateUserOrCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateUserOrCustomerGroup };
9
+ //# sourceMappingURL=create-user-or-customer-group.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-or-customer-group.d.cts","names":[],"sources":["../../src/actions/create-user-or-customer-group.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAI0C;AAAA,cAStF,yCAAA,EAA2C,CAAA,CAAE,UAca;AAAA,cAE1D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user-or-customer-group.d.ts
4
+ declare const SupportbeeCreateUserOrCustomerGroupInput: z.ZodTypeAny;
5
+ declare const SupportbeeCreateUserOrCustomerGroupOutput: z.ZodTypeAny;
6
+ declare const supportbeeCreateUserOrCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supportbeeCreateUserOrCustomerGroup };
9
+ //# sourceMappingURL=create-user-or-customer-group.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-or-customer-group.d.mts","names":[],"sources":["../../src/actions/create-user-or-customer-group.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAI0C;AAAA,cAStF,yCAAA,EAA2C,CAAA,CAAE,UAca;AAAA,cAE1D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,49 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-user-or-customer-group.ts
4
+ const SupportbeeCreateUserOrCustomerGroupInput = z.object({
5
+ name: z.string().describe("Full name of the user to display in SupportBee.").optional(),
6
+ role: z.enum([
7
+ "agent",
8
+ "admin",
9
+ "collaborator"
10
+ ]).default("agent").describe("Role to assign to the user. 'admin' has full account access, 'agent' can handle tickets, 'collaborator' can view and comment only. Defaults to 'agent'.").optional(),
11
+ email: z.string().describe("Email address of the user to invite. An invitation email will be sent to this address.")
12
+ }).describe("Request model for inviting a new user (agent, admin, or collaborator) in SupportBee.");
13
+ const SupportbeeCreateUserOrCustomerGroup_UserPictureSchema = z.object({
14
+ thumb20: z.string().describe("20x20 pixel avatar URL").nullable().optional(),
15
+ thumb24: z.string().describe("24x24 pixel avatar URL").nullable().optional(),
16
+ thumb32: z.string().describe("32x32 pixel avatar URL").nullable().optional(),
17
+ thumb48: z.string().describe("48x48 pixel avatar URL").nullable().optional(),
18
+ thumb64: z.string().describe("64x64 pixel avatar URL").nullable().optional(),
19
+ thumb128: z.string().describe("128x128 pixel avatar URL").nullable().optional()
20
+ }).describe("Model for user avatar URLs in different sizes.");
21
+ const supportbeeCreateUserOrCustomerGroup = action("SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP", {
22
+ slug: "supportbee-create-user-or-customer-group",
23
+ name: "Create SupportBee User",
24
+ description: "Invites a new user to your SupportBee account. The user will receive an email invitation and can be assigned as an agent (handles tickets), admin (full access), or collaborator (view/comment only). Use this when you need to add team members to your helpdesk programmatically.",
25
+ input: SupportbeeCreateUserOrCustomerGroupInput,
26
+ output: z.object({
27
+ id: z.number().int().describe("Unique ID of the created user"),
28
+ name: z.string().describe("Full name of the created user").nullable().optional(),
29
+ role: z.enum([
30
+ "agent",
31
+ "admin",
32
+ "collaborator"
33
+ ]).describe("Assigned role of the created user: 'admin', 'agent', or 'collaborator'").nullable().optional(),
34
+ type: z.string().describe("Type of entity: 'user' or 'customer_group'").nullable().optional(),
35
+ agent: z.boolean().describe("Whether the user is an agent (can handle tickets)").nullable().optional(),
36
+ email: z.string().describe("Email address of the created user"),
37
+ picture: SupportbeeCreateUserOrCustomerGroup_UserPictureSchema.nullable().optional(),
38
+ last_name: z.string().describe("Last name of the created user").nullable().optional(),
39
+ first_name: z.string().describe("First name of the created user").nullable().optional(),
40
+ email_domains: z.array(z.string()).describe("For customer groups, list of associated email domains").nullable().optional(),
41
+ members_count: z.number().int().describe("For customer groups, count of members in the group").nullable().optional(),
42
+ can_members_access_group_tickets: z.boolean().describe("For customer groups, whether members can access group tickets").nullable().optional(),
43
+ two_factor_authentication_enabled: z.boolean().describe("Whether two-factor authentication is enabled for this user").nullable().optional()
44
+ }).describe("Response model for a created/invited user in SupportBee.")
45
+ });
46
+ //#endregion
47
+ export { supportbeeCreateUserOrCustomerGroup };
48
+
49
+ //# sourceMappingURL=create-user-or-customer-group.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-or-customer-group.mjs","names":[],"sources":["../../src/actions/create-user-or-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeCreateUserOrCustomerGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full name of the user to display in SupportBee.\").optional(),\n role: z.enum([\"agent\", \"admin\", \"collaborator\"]).default(\"agent\").describe(\"Role to assign to the user. 'admin' has full account access, 'agent' can handle tickets, 'collaborator' can view and comment only. Defaults to 'agent'.\").optional(),\n email: z.string().describe(\"Email address of the user to invite. An invitation email will be sent to this address.\"),\n}).describe(\"Request model for inviting a new user (agent, admin, or collaborator) in SupportBee.\");\nconst SupportbeeCreateUserOrCustomerGroup_UserPictureSchema: z.ZodTypeAny = z.object({\n thumb20: z.string().describe(\"20x20 pixel avatar URL\").nullable().optional(),\n thumb24: z.string().describe(\"24x24 pixel avatar URL\").nullable().optional(),\n thumb32: z.string().describe(\"32x32 pixel avatar URL\").nullable().optional(),\n thumb48: z.string().describe(\"48x48 pixel avatar URL\").nullable().optional(),\n thumb64: z.string().describe(\"64x64 pixel avatar URL\").nullable().optional(),\n thumb128: z.string().describe(\"128x128 pixel avatar URL\").nullable().optional(),\n}).describe(\"Model for user avatar URLs in different sizes.\");\nexport const SupportbeeCreateUserOrCustomerGroupOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created user\"),\n name: z.string().describe(\"Full name of the created user\").nullable().optional(),\n role: z.enum([\"agent\", \"admin\", \"collaborator\"]).describe(\"Assigned role of the created user: 'admin', 'agent', or 'collaborator'\").nullable().optional(),\n type: z.string().describe(\"Type of entity: 'user' or 'customer_group'\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the user is an agent (can handle tickets)\").nullable().optional(),\n email: z.string().describe(\"Email address of the created user\"),\n picture: SupportbeeCreateUserOrCustomerGroup_UserPictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name of the created user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the created user\").nullable().optional(),\n email_domains: z.array(z.string()).describe(\"For customer groups, list of associated email domains\").nullable().optional(),\n members_count: z.number().int().describe(\"For customer groups, count of members in the group\").nullable().optional(),\n can_members_access_group_tickets: z.boolean().describe(\"For customer groups, whether members can access group tickets\").nullable().optional(),\n two_factor_authentication_enabled: z.boolean().describe(\"Whether two-factor authentication is enabled for this user\").nullable().optional(),\n}).describe(\"Response model for a created/invited user in SupportBee.\");\n\nexport const supportbeeCreateUserOrCustomerGroup = action(\"SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP\", {\n slug: \"supportbee-create-user-or-customer-group\",\n name: \"Create SupportBee User\",\n description: \"Invites a new user to your SupportBee account. The user will receive an email invitation and can be assigned as an agent (handles tickets), admin (full access), or collaborator (view/comment only). Use this when you need to add team members to your helpdesk programmatically.\",\n input: SupportbeeCreateUserOrCustomerGroupInput,\n output: SupportbeeCreateUserOrCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,KAAK;EAAC;EAAS;EAAS;CAAc,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CAC/O,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;AACrH,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAM,wDAAsE,EAAE,OAAO;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,kCAAkC,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,mCAAmC,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
@@ -0,0 +1,20 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-snippet.ts
4
+ const SupportbeeDeleteSnippetInput = zod.z.object({ id: zod.z.number().int().describe("The unique numeric ID of the snippet to delete. You can obtain snippet IDs by calling the 'Fetch Snippets' action first.") }).describe("Request model for deleting a snippet by its ID.");
5
+ const SupportbeeDeleteSnippetOutput = zod.z.object({
6
+ message: zod.z.string().describe("A human-readable message describing the result of the delete operation."),
7
+ success: zod.z.boolean().describe("Indicates whether the snippet was successfully deleted."),
8
+ deleted_snippet_id: zod.z.number().int().describe("The ID of the snippet that was deleted.")
9
+ }).describe("Response model for snippet deletion.");
10
+ const supportbeeDeleteSnippet = require_action.action("SUPPORTBEE_DELETE_SNIPPET", {
11
+ slug: "supportbee-delete-snippet",
12
+ name: "Delete Snippet",
13
+ description: "Permanently delete a snippet by its ID from SupportBee. Use this action when you need to remove an unwanted or outdated snippet (canned response template). This action is destructive and cannot be undone. To find snippet IDs, use the 'Fetch Snippets' action first.",
14
+ input: SupportbeeDeleteSnippetInput,
15
+ output: SupportbeeDeleteSnippetOutput
16
+ });
17
+ //#endregion
18
+ exports.supportbeeDeleteSnippet = supportbeeDeleteSnippet;
19
+
20
+ //# sourceMappingURL=delete-snippet.cjs.map