@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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-label-to-ticket.cjs +27 -0
- package/dist/actions/add-label-to-ticket.cjs.map +1 -0
- package/dist/actions/add-label-to-ticket.d.cts +9 -0
- package/dist/actions/add-label-to-ticket.d.cts.map +1 -0
- package/dist/actions/add-label-to-ticket.d.mts +9 -0
- package/dist/actions/add-label-to-ticket.d.mts.map +1 -0
- package/dist/actions/add-label-to-ticket.mjs +26 -0
- package/dist/actions/add-label-to-ticket.mjs.map +1 -0
- package/dist/actions/archive-ticket.cjs +33 -0
- package/dist/actions/archive-ticket.cjs.map +1 -0
- package/dist/actions/archive-ticket.d.cts +9 -0
- package/dist/actions/archive-ticket.d.cts.map +1 -0
- package/dist/actions/archive-ticket.d.mts +9 -0
- package/dist/actions/archive-ticket.d.mts.map +1 -0
- package/dist/actions/archive-ticket.mjs +32 -0
- package/dist/actions/archive-ticket.mjs.map +1 -0
- package/dist/actions/assign-ticket-to-team.cjs +28 -0
- package/dist/actions/assign-ticket-to-team.cjs.map +1 -0
- package/dist/actions/assign-ticket-to-team.d.cts +9 -0
- package/dist/actions/assign-ticket-to-team.d.cts.map +1 -0
- package/dist/actions/assign-ticket-to-team.d.mts +9 -0
- package/dist/actions/assign-ticket-to-team.d.mts.map +1 -0
- package/dist/actions/assign-ticket-to-team.mjs +27 -0
- package/dist/actions/assign-ticket-to-team.mjs.map +1 -0
- package/dist/actions/create-comment.cjs +49 -0
- package/dist/actions/create-comment.cjs.map +1 -0
- package/dist/actions/create-comment.d.cts +9 -0
- package/dist/actions/create-comment.d.cts.map +1 -0
- package/dist/actions/create-comment.d.mts +9 -0
- package/dist/actions/create-comment.d.mts.map +1 -0
- package/dist/actions/create-comment.mjs +48 -0
- package/dist/actions/create-comment.mjs.map +1 -0
- package/dist/actions/create-consequence.cjs +30 -0
- package/dist/actions/create-consequence.cjs.map +1 -0
- package/dist/actions/create-consequence.d.cts +9 -0
- package/dist/actions/create-consequence.d.cts.map +1 -0
- package/dist/actions/create-consequence.d.mts +9 -0
- package/dist/actions/create-consequence.d.mts.map +1 -0
- package/dist/actions/create-consequence.mjs +29 -0
- package/dist/actions/create-consequence.mjs.map +1 -0
- package/dist/actions/create-email.cjs +43 -0
- package/dist/actions/create-email.cjs.map +1 -0
- package/dist/actions/create-email.d.cts +9 -0
- package/dist/actions/create-email.d.cts.map +1 -0
- package/dist/actions/create-email.d.mts +9 -0
- package/dist/actions/create-email.d.mts.map +1 -0
- package/dist/actions/create-email.mjs +42 -0
- package/dist/actions/create-email.mjs.map +1 -0
- package/dist/actions/create-filter.cjs +25 -0
- package/dist/actions/create-filter.cjs.map +1 -0
- package/dist/actions/create-filter.d.cts +9 -0
- package/dist/actions/create-filter.d.cts.map +1 -0
- package/dist/actions/create-filter.d.mts +9 -0
- package/dist/actions/create-filter.d.mts.map +1 -0
- package/dist/actions/create-filter.mjs +22 -0
- package/dist/actions/create-filter.mjs.map +1 -0
- package/dist/actions/create-rule.cjs +30 -0
- package/dist/actions/create-rule.cjs.map +1 -0
- package/dist/actions/create-rule.d.cts +9 -0
- package/dist/actions/create-rule.d.cts.map +1 -0
- package/dist/actions/create-rule.d.mts +9 -0
- package/dist/actions/create-rule.d.mts.map +1 -0
- package/dist/actions/create-rule.mjs +27 -0
- package/dist/actions/create-rule.mjs.map +1 -0
- package/dist/actions/create-snippet.cjs +31 -0
- package/dist/actions/create-snippet.cjs.map +1 -0
- package/dist/actions/create-snippet.d.cts +9 -0
- package/dist/actions/create-snippet.d.cts.map +1 -0
- package/dist/actions/create-snippet.d.mts +9 -0
- package/dist/actions/create-snippet.d.mts.map +1 -0
- package/dist/actions/create-snippet.mjs +30 -0
- package/dist/actions/create-snippet.mjs.map +1 -0
- package/dist/actions/create-ticket-reply.cjs +56 -0
- package/dist/actions/create-ticket-reply.cjs.map +1 -0
- package/dist/actions/create-ticket-reply.d.cts +9 -0
- package/dist/actions/create-ticket-reply.d.cts.map +1 -0
- package/dist/actions/create-ticket-reply.d.mts +9 -0
- package/dist/actions/create-ticket-reply.d.mts.map +1 -0
- package/dist/actions/create-ticket-reply.mjs +55 -0
- package/dist/actions/create-ticket-reply.mjs.map +1 -0
- package/dist/actions/create-ticket.cjs +79 -0
- package/dist/actions/create-ticket.cjs.map +1 -0
- package/dist/actions/create-ticket.d.cts +9 -0
- package/dist/actions/create-ticket.d.cts.map +1 -0
- package/dist/actions/create-ticket.d.mts +9 -0
- package/dist/actions/create-ticket.d.mts.map +1 -0
- package/dist/actions/create-ticket.mjs +78 -0
- package/dist/actions/create-ticket.mjs.map +1 -0
- package/dist/actions/create-user-or-customer-group.cjs +50 -0
- package/dist/actions/create-user-or-customer-group.cjs.map +1 -0
- package/dist/actions/create-user-or-customer-group.d.cts +9 -0
- package/dist/actions/create-user-or-customer-group.d.cts.map +1 -0
- package/dist/actions/create-user-or-customer-group.d.mts +9 -0
- package/dist/actions/create-user-or-customer-group.d.mts.map +1 -0
- package/dist/actions/create-user-or-customer-group.mjs +49 -0
- package/dist/actions/create-user-or-customer-group.mjs.map +1 -0
- package/dist/actions/delete-snippet.cjs +20 -0
- package/dist/actions/delete-snippet.cjs.map +1 -0
- package/dist/actions/delete-snippet.d.cts +9 -0
- package/dist/actions/delete-snippet.d.cts.map +1 -0
- package/dist/actions/delete-snippet.d.mts +9 -0
- package/dist/actions/delete-snippet.d.mts.map +1 -0
- package/dist/actions/delete-snippet.mjs +17 -0
- package/dist/actions/delete-snippet.mjs.map +1 -0
- package/dist/actions/delete-ticket.cjs +20 -0
- package/dist/actions/delete-ticket.cjs.map +1 -0
- package/dist/actions/delete-ticket.d.cts +9 -0
- package/dist/actions/delete-ticket.d.cts.map +1 -0
- package/dist/actions/delete-ticket.d.mts +9 -0
- package/dist/actions/delete-ticket.d.mts.map +1 -0
- package/dist/actions/delete-ticket.mjs +17 -0
- package/dist/actions/delete-ticket.mjs.map +1 -0
- package/dist/actions/fetch-emails.cjs +28 -0
- package/dist/actions/fetch-emails.cjs.map +1 -0
- package/dist/actions/fetch-emails.d.cts +9 -0
- package/dist/actions/fetch-emails.d.cts.map +1 -0
- package/dist/actions/fetch-emails.d.mts +9 -0
- package/dist/actions/fetch-emails.d.mts.map +1 -0
- package/dist/actions/fetch-emails.mjs +27 -0
- package/dist/actions/fetch-emails.mjs.map +1 -0
- package/dist/actions/fetch-labels.cjs +21 -0
- package/dist/actions/fetch-labels.cjs.map +1 -0
- package/dist/actions/fetch-labels.d.cts +9 -0
- package/dist/actions/fetch-labels.d.cts.map +1 -0
- package/dist/actions/fetch-labels.d.mts +9 -0
- package/dist/actions/fetch-labels.d.mts.map +1 -0
- package/dist/actions/fetch-labels.mjs +20 -0
- package/dist/actions/fetch-labels.mjs.map +1 -0
- package/dist/actions/fetch-snippets.cjs +33 -0
- package/dist/actions/fetch-snippets.cjs.map +1 -0
- package/dist/actions/fetch-snippets.d.cts +9 -0
- package/dist/actions/fetch-snippets.d.cts.map +1 -0
- package/dist/actions/fetch-snippets.d.mts +9 -0
- package/dist/actions/fetch-snippets.d.mts.map +1 -0
- package/dist/actions/fetch-snippets.mjs +32 -0
- package/dist/actions/fetch-snippets.mjs.map +1 -0
- package/dist/actions/fetch-teams.cjs +23 -0
- package/dist/actions/fetch-teams.cjs.map +1 -0
- package/dist/actions/fetch-teams.d.cts +9 -0
- package/dist/actions/fetch-teams.d.cts.map +1 -0
- package/dist/actions/fetch-teams.d.mts +9 -0
- package/dist/actions/fetch-teams.d.mts.map +1 -0
- package/dist/actions/fetch-teams.mjs +22 -0
- package/dist/actions/fetch-teams.mjs.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.cjs +31 -0
- package/dist/actions/get-avg-first-response-time-report.cjs.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.d.cts +9 -0
- package/dist/actions/get-avg-first-response-time-report.d.cts.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.d.mts +9 -0
- package/dist/actions/get-avg-first-response-time-report.d.mts.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.mjs +30 -0
- package/dist/actions/get-avg-first-response-time-report.mjs.map +1 -0
- package/dist/actions/get-replies-count-report.cjs +25 -0
- package/dist/actions/get-replies-count-report.cjs.map +1 -0
- package/dist/actions/get-replies-count-report.d.cts +9 -0
- package/dist/actions/get-replies-count-report.d.cts.map +1 -0
- package/dist/actions/get-replies-count-report.d.mts +9 -0
- package/dist/actions/get-replies-count-report.d.mts.map +1 -0
- package/dist/actions/get-replies-count-report.mjs +24 -0
- package/dist/actions/get-replies-count-report.mjs.map +1 -0
- package/dist/actions/get-ticket.cjs +86 -0
- package/dist/actions/get-ticket.cjs.map +1 -0
- package/dist/actions/get-ticket.d.cts +9 -0
- package/dist/actions/get-ticket.d.cts.map +1 -0
- package/dist/actions/get-ticket.d.mts +9 -0
- package/dist/actions/get-ticket.d.mts.map +1 -0
- package/dist/actions/get-ticket.mjs +85 -0
- package/dist/actions/get-ticket.mjs.map +1 -0
- package/dist/actions/get-tickets-count-report.cjs +31 -0
- package/dist/actions/get-tickets-count-report.cjs.map +1 -0
- package/dist/actions/get-tickets-count-report.d.cts +9 -0
- package/dist/actions/get-tickets-count-report.d.cts.map +1 -0
- package/dist/actions/get-tickets-count-report.d.mts +9 -0
- package/dist/actions/get-tickets-count-report.d.mts.map +1 -0
- package/dist/actions/get-tickets-count-report.mjs +30 -0
- package/dist/actions/get-tickets-count-report.mjs.map +1 -0
- package/dist/actions/index.cjs +83 -0
- package/dist/actions/index.d.cts +42 -0
- package/dist/actions/index.d.mts +42 -0
- package/dist/actions/index.mjs +42 -0
- package/dist/actions/list-ticket-comments.cjs +50 -0
- package/dist/actions/list-ticket-comments.cjs.map +1 -0
- package/dist/actions/list-ticket-comments.d.cts +9 -0
- package/dist/actions/list-ticket-comments.d.cts.map +1 -0
- package/dist/actions/list-ticket-comments.d.mts +9 -0
- package/dist/actions/list-ticket-comments.d.mts.map +1 -0
- package/dist/actions/list-ticket-comments.mjs +49 -0
- package/dist/actions/list-ticket-comments.mjs.map +1 -0
- package/dist/actions/list-ticket-replies.cjs +49 -0
- package/dist/actions/list-ticket-replies.cjs.map +1 -0
- package/dist/actions/list-ticket-replies.d.cts +9 -0
- package/dist/actions/list-ticket-replies.d.cts.map +1 -0
- package/dist/actions/list-ticket-replies.d.mts +9 -0
- package/dist/actions/list-ticket-replies.d.mts.map +1 -0
- package/dist/actions/list-ticket-replies.mjs +48 -0
- package/dist/actions/list-ticket-replies.mjs.map +1 -0
- package/dist/actions/list-tickets.cjs +75 -0
- package/dist/actions/list-tickets.cjs.map +1 -0
- package/dist/actions/list-tickets.d.cts +9 -0
- package/dist/actions/list-tickets.d.cts.map +1 -0
- package/dist/actions/list-tickets.d.mts +9 -0
- package/dist/actions/list-tickets.d.mts.map +1 -0
- package/dist/actions/list-tickets.mjs +74 -0
- package/dist/actions/list-tickets.mjs.map +1 -0
- package/dist/actions/list-users.cjs +51 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +50 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/mark-ticket-as-answered.cjs +23 -0
- package/dist/actions/mark-ticket-as-answered.cjs.map +1 -0
- package/dist/actions/mark-ticket-as-answered.d.cts +9 -0
- package/dist/actions/mark-ticket-as-answered.d.cts.map +1 -0
- package/dist/actions/mark-ticket-as-answered.d.mts +9 -0
- package/dist/actions/mark-ticket-as-answered.d.mts.map +1 -0
- package/dist/actions/mark-ticket-as-answered.mjs +20 -0
- package/dist/actions/mark-ticket-as-answered.mjs.map +1 -0
- package/dist/actions/mark-ticket-as-spam.cjs +24 -0
- package/dist/actions/mark-ticket-as-spam.cjs.map +1 -0
- package/dist/actions/mark-ticket-as-spam.d.cts +9 -0
- package/dist/actions/mark-ticket-as-spam.d.cts.map +1 -0
- package/dist/actions/mark-ticket-as-spam.d.mts +9 -0
- package/dist/actions/mark-ticket-as-spam.d.mts.map +1 -0
- package/dist/actions/mark-ticket-as-spam.mjs +21 -0
- package/dist/actions/mark-ticket-as-spam.mjs.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.cjs +23 -0
- package/dist/actions/mark-ticket-as-unanswered.cjs.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.d.cts +9 -0
- package/dist/actions/mark-ticket-as-unanswered.d.cts.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.d.mts +9 -0
- package/dist/actions/mark-ticket-as-unanswered.d.mts.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.mjs +20 -0
- package/dist/actions/mark-ticket-as-unanswered.mjs.map +1 -0
- package/dist/actions/remove-label-from-ticket.cjs +24 -0
- package/dist/actions/remove-label-from-ticket.cjs.map +1 -0
- package/dist/actions/remove-label-from-ticket.d.cts +9 -0
- package/dist/actions/remove-label-from-ticket.d.cts.map +1 -0
- package/dist/actions/remove-label-from-ticket.d.mts +9 -0
- package/dist/actions/remove-label-from-ticket.d.mts.map +1 -0
- package/dist/actions/remove-label-from-ticket.mjs +21 -0
- package/dist/actions/remove-label-from-ticket.mjs.map +1 -0
- package/dist/actions/search-tickets.cjs +80 -0
- package/dist/actions/search-tickets.cjs.map +1 -0
- package/dist/actions/search-tickets.d.cts +9 -0
- package/dist/actions/search-tickets.d.cts.map +1 -0
- package/dist/actions/search-tickets.d.mts +9 -0
- package/dist/actions/search-tickets.d.mts.map +1 -0
- package/dist/actions/search-tickets.mjs +79 -0
- package/dist/actions/search-tickets.mjs.map +1 -0
- package/dist/actions/show-ticket-reply.cjs +47 -0
- package/dist/actions/show-ticket-reply.cjs.map +1 -0
- package/dist/actions/show-ticket-reply.d.cts +9 -0
- package/dist/actions/show-ticket-reply.d.cts.map +1 -0
- package/dist/actions/show-ticket-reply.d.mts +9 -0
- package/dist/actions/show-ticket-reply.d.mts.map +1 -0
- package/dist/actions/show-ticket-reply.mjs +46 -0
- package/dist/actions/show-ticket-reply.mjs.map +1 -0
- package/dist/actions/show-user-or-customer-group.cjs +47 -0
- package/dist/actions/show-user-or-customer-group.cjs.map +1 -0
- package/dist/actions/show-user-or-customer-group.d.cts +9 -0
- package/dist/actions/show-user-or-customer-group.d.cts.map +1 -0
- package/dist/actions/show-user-or-customer-group.d.mts +9 -0
- package/dist/actions/show-user-or-customer-group.d.mts.map +1 -0
- package/dist/actions/show-user-or-customer-group.mjs +46 -0
- package/dist/actions/show-user-or-customer-group.mjs.map +1 -0
- package/dist/actions/trash-ticket.cjs +26 -0
- package/dist/actions/trash-ticket.cjs.map +1 -0
- package/dist/actions/trash-ticket.d.cts +9 -0
- package/dist/actions/trash-ticket.d.cts.map +1 -0
- package/dist/actions/trash-ticket.d.mts +9 -0
- package/dist/actions/trash-ticket.d.mts.map +1 -0
- package/dist/actions/trash-ticket.mjs +25 -0
- package/dist/actions/trash-ticket.mjs.map +1 -0
- package/dist/actions/unarchive-ticket.cjs +20 -0
- package/dist/actions/unarchive-ticket.cjs.map +1 -0
- package/dist/actions/unarchive-ticket.d.cts +9 -0
- package/dist/actions/unarchive-ticket.d.cts.map +1 -0
- package/dist/actions/unarchive-ticket.d.mts +9 -0
- package/dist/actions/unarchive-ticket.d.mts.map +1 -0
- package/dist/actions/unarchive-ticket.mjs +17 -0
- package/dist/actions/unarchive-ticket.mjs.map +1 -0
- package/dist/actions/unassign-ticket-from-team.cjs +54 -0
- package/dist/actions/unassign-ticket-from-team.cjs.map +1 -0
- package/dist/actions/unassign-ticket-from-team.d.cts +9 -0
- package/dist/actions/unassign-ticket-from-team.d.cts.map +1 -0
- package/dist/actions/unassign-ticket-from-team.d.mts +9 -0
- package/dist/actions/unassign-ticket-from-team.d.mts.map +1 -0
- package/dist/actions/unassign-ticket-from-team.mjs +53 -0
- package/dist/actions/unassign-ticket-from-team.mjs.map +1 -0
- package/dist/actions/unassign-ticket-from-user.cjs +51 -0
- package/dist/actions/unassign-ticket-from-user.cjs.map +1 -0
- package/dist/actions/unassign-ticket-from-user.d.cts +9 -0
- package/dist/actions/unassign-ticket-from-user.d.cts.map +1 -0
- package/dist/actions/unassign-ticket-from-user.d.mts +9 -0
- package/dist/actions/unassign-ticket-from-user.d.mts.map +1 -0
- package/dist/actions/unassign-ticket-from-user.mjs +50 -0
- package/dist/actions/unassign-ticket-from-user.mjs.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.cjs +24 -0
- package/dist/actions/unmark-ticket-as-spam.cjs.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.d.cts +9 -0
- package/dist/actions/unmark-ticket-as-spam.d.cts.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.d.mts +9 -0
- package/dist/actions/unmark-ticket-as-spam.d.mts.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.mjs +21 -0
- package/dist/actions/unmark-ticket-as-spam.mjs.map +1 -0
- package/dist/actions/untrash-ticket.cjs +27 -0
- package/dist/actions/untrash-ticket.cjs.map +1 -0
- package/dist/actions/untrash-ticket.d.cts +9 -0
- package/dist/actions/untrash-ticket.d.cts.map +1 -0
- package/dist/actions/untrash-ticket.d.mts +9 -0
- package/dist/actions/untrash-ticket.d.mts.map +1 -0
- package/dist/actions/untrash-ticket.mjs +26 -0
- package/dist/actions/untrash-ticket.mjs.map +1 -0
- package/dist/actions/update-snippet.cjs +34 -0
- package/dist/actions/update-snippet.cjs.map +1 -0
- package/dist/actions/update-snippet.d.cts +9 -0
- package/dist/actions/update-snippet.d.cts.map +1 -0
- package/dist/actions/update-snippet.d.mts +9 -0
- package/dist/actions/update-snippet.d.mts.map +1 -0
- package/dist/actions/update-snippet.mjs +33 -0
- package/dist/actions/update-snippet.mjs.map +1 -0
- package/dist/actions/update-user.cjs +51 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +50 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +88 -0
- package/dist/index.d.cts +44 -0
- package/dist/index.d.mts +44 -0
- package/dist/index.mjs +45 -0
- package/package.json +49 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-ticket-reply.ts
|
|
4
|
+
const SupportbeeShowTicketReplyInput = z.object({
|
|
5
|
+
reply_id: z.number().int().describe("ID of the reply to retrieve"),
|
|
6
|
+
ticket_id: z.string().describe("ID of the ticket to fetch the reply for")
|
|
7
|
+
}).describe("Request model for retrieving a specific reply of a SupportBee ticket.");
|
|
8
|
+
const SupportbeeShowTicketReply_AttachmentSchema = z.object({
|
|
9
|
+
id: z.number().int().describe("ID of the attachment"),
|
|
10
|
+
url: z.string().describe("URL to download the attachment"),
|
|
11
|
+
size: z.number().int().describe("Size of the attachment in bytes").nullable().optional(),
|
|
12
|
+
filename: z.string().describe("Name of the attached file"),
|
|
13
|
+
created_at: z.string().describe("Timestamp when the attachment was created").nullable().optional(),
|
|
14
|
+
content_type: z.string().describe("MIME type of the attachment").nullable().optional()
|
|
15
|
+
}).describe("Attachment associated with the reply.");
|
|
16
|
+
const SupportbeeShowTicketReply_ContentDetailSchema = z.object({
|
|
17
|
+
html: z.string().describe("HTML content of the reply"),
|
|
18
|
+
text: z.string().describe("Plain text content of the reply"),
|
|
19
|
+
truncated: z.boolean().describe("Whether content is truncated").nullable().optional(),
|
|
20
|
+
attachments: z.array(SupportbeeShowTicketReply_AttachmentSchema).describe("List of attachments in content").nullable().optional()
|
|
21
|
+
}).describe("Content detail of a reply.");
|
|
22
|
+
const SupportbeeShowTicketReply_AgentSchema = z.object({
|
|
23
|
+
id: z.number().int().describe("ID of the agent who posted the reply"),
|
|
24
|
+
name: z.string().describe("Name of the agent").nullable().optional(),
|
|
25
|
+
email: z.string().describe("Email of the agent").nullable().optional()
|
|
26
|
+
}).describe("Information about the agent who posted the reply.");
|
|
27
|
+
const SupportbeeShowTicketReply_ReplySchema = z.object({
|
|
28
|
+
id: z.number().int().describe("ID of the reply"),
|
|
29
|
+
merged: z.boolean().describe("Whether the reply is merged").nullable().optional(),
|
|
30
|
+
content: SupportbeeShowTicketReply_ContentDetailSchema.nullable(),
|
|
31
|
+
replier: SupportbeeShowTicketReply_AgentSchema.nullable().optional(),
|
|
32
|
+
summary: z.string().describe("Summary of the reply").nullable().optional(),
|
|
33
|
+
created_at: z.string().describe("Timestamp when the reply was created"),
|
|
34
|
+
updated_at: z.string().describe("Timestamp when the reply was last updated").nullable().optional()
|
|
35
|
+
}).describe("A reply object for a SupportBee ticket.");
|
|
36
|
+
const supportbeeShowTicketReply = action("SUPPORTBEE_SHOW_TICKET_REPLY", {
|
|
37
|
+
slug: "supportbee-show-ticket-reply",
|
|
38
|
+
name: "Show Ticket Reply",
|
|
39
|
+
description: "Tool to fetch a specific reply for a SupportBee ticket. Use when you need details of a single reply by ticket and reply IDs.",
|
|
40
|
+
input: SupportbeeShowTicketReplyInput,
|
|
41
|
+
output: z.object({ reply: SupportbeeShowTicketReply_ReplySchema.nullable() }).describe("Response model for retrieving a specific ticket reply.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { supportbeeShowTicketReply };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=show-ticket-reply.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-ticket-reply.mjs","names":[],"sources":["../../src/actions/show-ticket-reply.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeShowTicketReplyInput: z.ZodTypeAny = z.object({\n reply_id: z.number().int().describe(\"ID of the reply to retrieve\"),\n ticket_id: z.string().describe(\"ID of the ticket to fetch the reply for\"),\n}).describe(\"Request model for retrieving a specific reply of a SupportBee ticket.\");\nconst SupportbeeShowTicketReply_AttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the attachment\"),\n url: z.string().describe(\"URL to download the attachment\"),\n size: z.number().int().describe(\"Size of the attachment in bytes\").nullable().optional(),\n filename: z.string().describe(\"Name of the attached file\"),\n created_at: z.string().describe(\"Timestamp when the attachment was created\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of the attachment\").nullable().optional(),\n}).describe(\"Attachment associated with the reply.\");\nconst SupportbeeShowTicketReply_ContentDetailSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML content of the reply\"),\n text: z.string().describe(\"Plain text content of the reply\"),\n truncated: z.boolean().describe(\"Whether content is truncated\").nullable().optional(),\n attachments: z.array(SupportbeeShowTicketReply_AttachmentSchema).describe(\"List of attachments in content\").nullable().optional(),\n}).describe(\"Content detail of a reply.\");\nconst SupportbeeShowTicketReply_AgentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the agent who posted the reply\"),\n name: z.string().describe(\"Name of the agent\").nullable().optional(),\n email: z.string().describe(\"Email of the agent\").nullable().optional(),\n}).describe(\"Information about the agent who posted the reply.\");\nconst SupportbeeShowTicketReply_ReplySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the reply\"),\n merged: z.boolean().describe(\"Whether the reply is merged\").nullable().optional(),\n content: SupportbeeShowTicketReply_ContentDetailSchema.nullable(),\n replier: SupportbeeShowTicketReply_AgentSchema.nullable().optional(),\n summary: z.string().describe(\"Summary of the reply\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the reply was created\"),\n updated_at: z.string().describe(\"Timestamp when the reply was last updated\").nullable().optional(),\n}).describe(\"A reply object for a SupportBee ticket.\");\nexport const SupportbeeShowTicketReplyOutput: z.ZodTypeAny = z.object({\n reply: SupportbeeShowTicketReply_ReplySchema.nullable(),\n}).describe(\"Response model for retrieving a specific ticket reply.\");\n\nexport const supportbeeShowTicketReply = action(\"SUPPORTBEE_SHOW_TICKET_REPLY\", {\n slug: \"supportbee-show-ticket-reply\",\n name: \"Show Ticket Reply\",\n description: \"Tool to fetch a specific reply for a SupportBee ticket. Use when you need details of a single reply by ticket and reply IDs.\",\n input: SupportbeeShowTicketReplyInput,\n output: SupportbeeShowTicketReplyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC1E,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,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C,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,OAAO,sCAAsC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-user-or-customer-group.ts
|
|
4
|
+
const SupportbeeShowUserOrCustomerGroupInput = zod.z.object({ id: zod.z.number().int().describe("The numeric ID of the SupportBee user or customer group. You can obtain this ID from ticket responses, team member lists, or the SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP action.") }).describe("Request model for retrieving a SupportBee user or customer group by its ID.");
|
|
5
|
+
const SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema = zod.z.object({
|
|
6
|
+
thumb20: zod.z.string().describe("20x20 pixel avatar thumbnail URL").nullable().optional(),
|
|
7
|
+
thumb24: zod.z.string().describe("24x24 pixel avatar thumbnail URL").nullable().optional(),
|
|
8
|
+
thumb32: zod.z.string().describe("32x32 pixel avatar thumbnail URL").nullable().optional(),
|
|
9
|
+
thumb48: zod.z.string().describe("48x48 pixel avatar thumbnail URL").nullable().optional(),
|
|
10
|
+
thumb64: zod.z.string().describe("64x64 pixel avatar thumbnail URL").nullable().optional(),
|
|
11
|
+
thumb128: zod.z.string().describe("128x128 pixel avatar thumbnail URL").nullable().optional()
|
|
12
|
+
}).describe("Avatar picture URLs in various sizes.");
|
|
13
|
+
const SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema = zod.z.object({
|
|
14
|
+
id: zod.z.number().int().describe("Unique numeric ID of the user or customer group"),
|
|
15
|
+
name: zod.z.string().describe("Full name of the user or display name of the customer group").nullable().optional(),
|
|
16
|
+
role: zod.z.string().describe("Role of the user: 'admin', 'agent', or 'collaborator' (only for users, not groups)").nullable().optional(),
|
|
17
|
+
type: zod.z.string().describe("Type of the entity: 'user' for agents/admins, or 'customer_group' for customer groups").nullable().optional(),
|
|
18
|
+
agent: zod.z.boolean().describe("Whether the user is an agent (can handle tickets). True for admins and agents, False for collaborators.").nullable().optional(),
|
|
19
|
+
email: zod.z.string().describe("Email address of the user (agents/admins have email addresses)").nullable().optional(),
|
|
20
|
+
teams: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of teams this user belongs to").nullable().optional(),
|
|
21
|
+
picture: SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema.nullable().optional(),
|
|
22
|
+
tickets: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of tickets associated with this user").nullable().optional(),
|
|
23
|
+
last_name: zod.z.string().describe("Last name of the user").nullable().optional(),
|
|
24
|
+
signature: zod.z.string().describe("Email signature for the user").nullable().optional(),
|
|
25
|
+
avatar_url: zod.z.string().describe("Primary avatar URL (deprecated, use 'picture' for size-specific URLs)").nullable().optional(),
|
|
26
|
+
created_at: zod.z.string().describe("Timestamp when the user/group was created (ISO 8601 format, e.g., '2024-01-15T10:30:00Z')").nullable().optional(),
|
|
27
|
+
first_name: zod.z.string().describe("First name of the user").nullable().optional(),
|
|
28
|
+
updated_at: zod.z.string().describe("Timestamp when the user/group was last modified (ISO 8601 format)").nullable().optional(),
|
|
29
|
+
email_domains: zod.z.array(zod.z.string()).describe("List of email domains associated with this customer group").nullable().optional(),
|
|
30
|
+
members_count: zod.z.number().int().describe("Number of members in this customer group (for groups only)").nullable().optional(),
|
|
31
|
+
customer_groups: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of customer groups this user belongs to").nullable().optional(),
|
|
32
|
+
active_tickets_count: zod.z.number().int().describe("Number of active tickets assigned to or created by this user").nullable().optional(),
|
|
33
|
+
can_members_access_group_tickets: zod.z.boolean().describe("Whether group members can access all group tickets (for customer groups only)").nullable().optional(),
|
|
34
|
+
two_factor_authentication_enabled: zod.z.boolean().describe("Whether two-factor authentication is enabled for this user").nullable().optional()
|
|
35
|
+
}).describe("A SupportBee user or customer group object representing an agent, admin, or customer group.");
|
|
36
|
+
const SupportbeeShowUserOrCustomerGroupOutput = zod.z.object({ user: SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema.nullable() }).describe("Response model for retrieving a SupportBee user or customer group.");
|
|
37
|
+
const supportbeeShowUserOrCustomerGroup = require_action.action("SUPPORTBEE_SHOW_USER_OR_CUSTOMER_GROUP", {
|
|
38
|
+
slug: "supportbee-show-user-or-customer-group",
|
|
39
|
+
name: "Show SupportBee User or Customer Group",
|
|
40
|
+
description: "Retrieves details of a SupportBee user (agent/admin) or customer group by their ID. Use this action when you need to fetch profile information like name, email, role, or timestamps for a specific user whose ID you already have (e.g., from a ticket response).",
|
|
41
|
+
input: SupportbeeShowUserOrCustomerGroupInput,
|
|
42
|
+
output: SupportbeeShowUserOrCustomerGroupOutput
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.supportbeeShowUserOrCustomerGroup = supportbeeShowUserOrCustomerGroup;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=show-user-or-customer-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-user-or-customer-group.cjs","names":["z","action"],"sources":["../../src/actions/show-user-or-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeShowUserOrCustomerGroupInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The numeric ID of the SupportBee user or customer group. You can obtain this ID from ticket responses, team member lists, or the SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP action.\"),\n}).describe(\"Request model for retrieving a SupportBee user or customer group by its ID.\");\nconst SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema: z.ZodTypeAny = z.object({\n thumb20: z.string().describe(\"20x20 pixel avatar thumbnail URL\").nullable().optional(),\n thumb24: z.string().describe(\"24x24 pixel avatar thumbnail URL\").nullable().optional(),\n thumb32: z.string().describe(\"32x32 pixel avatar thumbnail URL\").nullable().optional(),\n thumb48: z.string().describe(\"48x48 pixel avatar thumbnail URL\").nullable().optional(),\n thumb64: z.string().describe(\"64x64 pixel avatar thumbnail URL\").nullable().optional(),\n thumb128: z.string().describe(\"128x128 pixel avatar thumbnail URL\").nullable().optional(),\n}).describe(\"Avatar picture URLs in various sizes.\");\nconst SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique numeric ID of the user or customer group\"),\n name: z.string().describe(\"Full name of the user or display name of the customer group\").nullable().optional(),\n role: z.string().describe(\"Role of the user: 'admin', 'agent', or 'collaborator' (only for users, not groups)\").nullable().optional(),\n type: z.string().describe(\"Type of the entity: 'user' for agents/admins, or 'customer_group' for customer groups\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the user is an agent (can handle tickets). True for admins and agents, False for collaborators.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user (agents/admins have email addresses)\").nullable().optional(),\n teams: z.array(z.record(z.string(), z.unknown())).describe(\"List of teams this user belongs to\").nullable().optional(),\n picture: SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema.nullable().optional(),\n tickets: z.array(z.record(z.string(), z.unknown())).describe(\"List of tickets associated with this user\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n signature: z.string().describe(\"Email signature for the user\").nullable().optional(),\n avatar_url: z.string().describe(\"Primary avatar URL (deprecated, use 'picture' for size-specific URLs)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the user/group was created (ISO 8601 format, e.g., '2024-01-15T10:30:00Z')\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the user/group was last modified (ISO 8601 format)\").nullable().optional(),\n email_domains: z.array(z.string()).describe(\"List of email domains associated with this customer group\").nullable().optional(),\n members_count: z.number().int().describe(\"Number of members in this customer group (for groups only)\").nullable().optional(),\n customer_groups: z.array(z.record(z.string(), z.unknown())).describe(\"List of customer groups this user belongs to\").nullable().optional(),\n active_tickets_count: z.number().int().describe(\"Number of active tickets assigned to or created by this user\").nullable().optional(),\n can_members_access_group_tickets: z.boolean().describe(\"Whether group members can access all group tickets (for customer groups only)\").nullable().optional(),\n two_factor_authentication_enabled: z.boolean().describe(\"Whether two-factor authentication is enabled for this user\").nullable().optional(),\n}).describe(\"A SupportBee user or customer group object representing an agent, admin, or customer group.\");\nexport const SupportbeeShowUserOrCustomerGroupOutput: z.ZodTypeAny = z.object({\n user: SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema.nullable(),\n}).describe(\"Response model for retrieving a SupportBee user or customer group.\");\n\nexport const supportbeeShowUserOrCustomerGroup = action(\"SUPPORTBEE_SHOW_USER_OR_CUSTOMER_GROUP\", {\n slug: \"supportbee-show-user-or-customer-group\",\n name: \"Show SupportBee User or Customer Group\",\n description: \"Retrieves details of a SupportBee user (agent/admin) or customer group by their ID. Use this action when you need to fetch profile information like name, email, role, or timestamps for a specific user whose ID you already have (e.g., from a ticket response).\",\n input: SupportbeeShowUserOrCustomerGroupInput,\n output: SupportbeeShowUserOrCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mLAAmL,EACnN,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC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AAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,kCAAkCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,mCAAmCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,6FAA6F;AACzG,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,MAAM,4DAA4D,SAAS,EAC7E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAEhF,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,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/show-user-or-customer-group.d.ts
|
|
4
|
+
declare const SupportbeeShowUserOrCustomerGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeShowUserOrCustomerGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeShowUserOrCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeShowUserOrCustomerGroup };
|
|
9
|
+
//# sourceMappingURL=show-user-or-customer-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-user-or-customer-group.d.cts","names":[],"sources":["../../src/actions/show-user-or-customer-group.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEmC;AAAA,cAgC7E,uCAAA,EAAyC,CAAA,CAAE,UAEyB;AAAA,cAEpE,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-user-or-customer-group.d.ts
|
|
4
|
+
declare const SupportbeeShowUserOrCustomerGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeShowUserOrCustomerGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeShowUserOrCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeShowUserOrCustomerGroup };
|
|
9
|
+
//# sourceMappingURL=show-user-or-customer-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-user-or-customer-group.d.mts","names":[],"sources":["../../src/actions/show-user-or-customer-group.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEmC;AAAA,cAgC7E,uCAAA,EAAyC,CAAA,CAAE,UAEyB;AAAA,cAEpE,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-user-or-customer-group.ts
|
|
4
|
+
const SupportbeeShowUserOrCustomerGroupInput = z.object({ id: z.number().int().describe("The numeric ID of the SupportBee user or customer group. You can obtain this ID from ticket responses, team member lists, or the SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP action.") }).describe("Request model for retrieving a SupportBee user or customer group by its ID.");
|
|
5
|
+
const SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema = z.object({
|
|
6
|
+
thumb20: z.string().describe("20x20 pixel avatar thumbnail URL").nullable().optional(),
|
|
7
|
+
thumb24: z.string().describe("24x24 pixel avatar thumbnail URL").nullable().optional(),
|
|
8
|
+
thumb32: z.string().describe("32x32 pixel avatar thumbnail URL").nullable().optional(),
|
|
9
|
+
thumb48: z.string().describe("48x48 pixel avatar thumbnail URL").nullable().optional(),
|
|
10
|
+
thumb64: z.string().describe("64x64 pixel avatar thumbnail URL").nullable().optional(),
|
|
11
|
+
thumb128: z.string().describe("128x128 pixel avatar thumbnail URL").nullable().optional()
|
|
12
|
+
}).describe("Avatar picture URLs in various sizes.");
|
|
13
|
+
const SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema = z.object({
|
|
14
|
+
id: z.number().int().describe("Unique numeric ID of the user or customer group"),
|
|
15
|
+
name: z.string().describe("Full name of the user or display name of the customer group").nullable().optional(),
|
|
16
|
+
role: z.string().describe("Role of the user: 'admin', 'agent', or 'collaborator' (only for users, not groups)").nullable().optional(),
|
|
17
|
+
type: z.string().describe("Type of the entity: 'user' for agents/admins, or 'customer_group' for customer groups").nullable().optional(),
|
|
18
|
+
agent: z.boolean().describe("Whether the user is an agent (can handle tickets). True for admins and agents, False for collaborators.").nullable().optional(),
|
|
19
|
+
email: z.string().describe("Email address of the user (agents/admins have email addresses)").nullable().optional(),
|
|
20
|
+
teams: z.array(z.record(z.string(), z.unknown())).describe("List of teams this user belongs to").nullable().optional(),
|
|
21
|
+
picture: SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema.nullable().optional(),
|
|
22
|
+
tickets: z.array(z.record(z.string(), z.unknown())).describe("List of tickets associated with this user").nullable().optional(),
|
|
23
|
+
last_name: z.string().describe("Last name of the user").nullable().optional(),
|
|
24
|
+
signature: z.string().describe("Email signature for the user").nullable().optional(),
|
|
25
|
+
avatar_url: z.string().describe("Primary avatar URL (deprecated, use 'picture' for size-specific URLs)").nullable().optional(),
|
|
26
|
+
created_at: z.string().describe("Timestamp when the user/group was created (ISO 8601 format, e.g., '2024-01-15T10:30:00Z')").nullable().optional(),
|
|
27
|
+
first_name: z.string().describe("First name of the user").nullable().optional(),
|
|
28
|
+
updated_at: z.string().describe("Timestamp when the user/group was last modified (ISO 8601 format)").nullable().optional(),
|
|
29
|
+
email_domains: z.array(z.string()).describe("List of email domains associated with this customer group").nullable().optional(),
|
|
30
|
+
members_count: z.number().int().describe("Number of members in this customer group (for groups only)").nullable().optional(),
|
|
31
|
+
customer_groups: z.array(z.record(z.string(), z.unknown())).describe("List of customer groups this user belongs to").nullable().optional(),
|
|
32
|
+
active_tickets_count: z.number().int().describe("Number of active tickets assigned to or created by this user").nullable().optional(),
|
|
33
|
+
can_members_access_group_tickets: z.boolean().describe("Whether group members can access all group tickets (for customer groups only)").nullable().optional(),
|
|
34
|
+
two_factor_authentication_enabled: z.boolean().describe("Whether two-factor authentication is enabled for this user").nullable().optional()
|
|
35
|
+
}).describe("A SupportBee user or customer group object representing an agent, admin, or customer group.");
|
|
36
|
+
const supportbeeShowUserOrCustomerGroup = action("SUPPORTBEE_SHOW_USER_OR_CUSTOMER_GROUP", {
|
|
37
|
+
slug: "supportbee-show-user-or-customer-group",
|
|
38
|
+
name: "Show SupportBee User or Customer Group",
|
|
39
|
+
description: "Retrieves details of a SupportBee user (agent/admin) or customer group by their ID. Use this action when you need to fetch profile information like name, email, role, or timestamps for a specific user whose ID you already have (e.g., from a ticket response).",
|
|
40
|
+
input: SupportbeeShowUserOrCustomerGroupInput,
|
|
41
|
+
output: z.object({ user: SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema.nullable() }).describe("Response model for retrieving a SupportBee user or customer group.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { supportbeeShowUserOrCustomerGroup };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=show-user-or-customer-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-user-or-customer-group.mjs","names":[],"sources":["../../src/actions/show-user-or-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeShowUserOrCustomerGroupInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The numeric ID of the SupportBee user or customer group. You can obtain this ID from ticket responses, team member lists, or the SUPPORTBEE_CREATE_USER_OR_CUSTOMER_GROUP action.\"),\n}).describe(\"Request model for retrieving a SupportBee user or customer group by its ID.\");\nconst SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema: z.ZodTypeAny = z.object({\n thumb20: z.string().describe(\"20x20 pixel avatar thumbnail URL\").nullable().optional(),\n thumb24: z.string().describe(\"24x24 pixel avatar thumbnail URL\").nullable().optional(),\n thumb32: z.string().describe(\"32x32 pixel avatar thumbnail URL\").nullable().optional(),\n thumb48: z.string().describe(\"48x48 pixel avatar thumbnail URL\").nullable().optional(),\n thumb64: z.string().describe(\"64x64 pixel avatar thumbnail URL\").nullable().optional(),\n thumb128: z.string().describe(\"128x128 pixel avatar thumbnail URL\").nullable().optional(),\n}).describe(\"Avatar picture URLs in various sizes.\");\nconst SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique numeric ID of the user or customer group\"),\n name: z.string().describe(\"Full name of the user or display name of the customer group\").nullable().optional(),\n role: z.string().describe(\"Role of the user: 'admin', 'agent', or 'collaborator' (only for users, not groups)\").nullable().optional(),\n type: z.string().describe(\"Type of the entity: 'user' for agents/admins, or 'customer_group' for customer groups\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the user is an agent (can handle tickets). True for admins and agents, False for collaborators.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user (agents/admins have email addresses)\").nullable().optional(),\n teams: z.array(z.record(z.string(), z.unknown())).describe(\"List of teams this user belongs to\").nullable().optional(),\n picture: SupportbeeShowUserOrCustomerGroup_PictureUrlsSchema.nullable().optional(),\n tickets: z.array(z.record(z.string(), z.unknown())).describe(\"List of tickets associated with this user\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n signature: z.string().describe(\"Email signature for the user\").nullable().optional(),\n avatar_url: z.string().describe(\"Primary avatar URL (deprecated, use 'picture' for size-specific URLs)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the user/group was created (ISO 8601 format, e.g., '2024-01-15T10:30:00Z')\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the user/group was last modified (ISO 8601 format)\").nullable().optional(),\n email_domains: z.array(z.string()).describe(\"List of email domains associated with this customer group\").nullable().optional(),\n members_count: z.number().int().describe(\"Number of members in this customer group (for groups only)\").nullable().optional(),\n customer_groups: z.array(z.record(z.string(), z.unknown())).describe(\"List of customer groups this user belongs to\").nullable().optional(),\n active_tickets_count: z.number().int().describe(\"Number of active tickets assigned to or created by this user\").nullable().optional(),\n can_members_access_group_tickets: z.boolean().describe(\"Whether group members can access all group tickets (for customer groups only)\").nullable().optional(),\n two_factor_authentication_enabled: z.boolean().describe(\"Whether two-factor authentication is enabled for this user\").nullable().optional(),\n}).describe(\"A SupportBee user or customer group object representing an agent, admin, or customer group.\");\nexport const SupportbeeShowUserOrCustomerGroupOutput: z.ZodTypeAny = z.object({\n user: SupportbeeShowUserOrCustomerGroup_UserOrCustomerGroupSchema.nullable(),\n}).describe(\"Response model for retrieving a SupportBee user or customer group.\");\n\nexport const supportbeeShowUserOrCustomerGroup = action(\"SUPPORTBEE_SHOW_USER_OR_CUSTOMER_GROUP\", {\n slug: \"supportbee-show-user-or-customer-group\",\n name: \"Show SupportBee User or Customer Group\",\n description: \"Retrieves details of a SupportBee user (agent/admin) or customer group by their ID. Use this action when you need to fetch profile information like name, email, role, or timestamps for a specific user whose ID you already have (e.g., from a ticket response).\",\n input: SupportbeeShowUserOrCustomerGroupInput,\n output: Supportbee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CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,kCAAkC,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,mCAAmC,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAKzG,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmE,EAAE,OAAO,EAC5E,MAAM,4DAA4D,SAAS,EAC7E,CAAC,CAAC,CAAC,SAAS,oEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/trash-ticket.ts
|
|
4
|
+
const SupportbeeTrashTicketInput = zod.z.object({ id: zod.z.number().int().describe("The numeric ID of the ticket to trash. The ticket will be moved to the trash folder.") }).describe("Request parameters for trashing a SupportBee ticket.");
|
|
5
|
+
const SupportbeeTrashTicket_TicketSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique numeric ticket ID"),
|
|
7
|
+
trash: zod.z.boolean().describe("Flag indicating if ticket is in trash (should be True after trashing)").nullable().optional(),
|
|
8
|
+
subject: zod.z.string().describe("Ticket subject line").nullable().optional(),
|
|
9
|
+
created_at: zod.z.string().describe("Creation timestamp (ISO 8601 format)").nullable().optional(),
|
|
10
|
+
updated_at: zod.z.string().describe("Last update timestamp (ISO 8601 format)").nullable().optional()
|
|
11
|
+
}).describe("A SupportBee ticket object returned after trashing.");
|
|
12
|
+
const SupportbeeTrashTicketOutput = zod.z.object({
|
|
13
|
+
status: zod.z.string().describe("Operation status, e.g., 'trashed'"),
|
|
14
|
+
ticket: SupportbeeTrashTicket_TicketSchema.nullable()
|
|
15
|
+
}).describe("Response schema after successfully trashing a ticket.");
|
|
16
|
+
const supportbeeTrashTicket = require_action.action("SUPPORTBEE_TRASH_TICKET", {
|
|
17
|
+
slug: "supportbee-trash-ticket",
|
|
18
|
+
name: "Trash SupportBee Ticket",
|
|
19
|
+
description: "Tool to trash a SupportBee ticket by its ID. Use when you need to remove a ticket into the trash folder.",
|
|
20
|
+
input: SupportbeeTrashTicketInput,
|
|
21
|
+
output: SupportbeeTrashTicketOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.supportbeeTrashTicket = supportbeeTrashTicket;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=trash-ticket.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trash-ticket.cjs","names":["z","action"],"sources":["../../src/actions/trash-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeTrashTicketInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The numeric ID of the ticket to trash. The ticket will be moved to the trash folder.\"),\n}).describe(\"Request parameters for trashing a SupportBee ticket.\");\nconst SupportbeeTrashTicket_TicketSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique numeric ticket ID\"),\n trash: z.boolean().describe(\"Flag indicating if ticket is in trash (should be True after trashing)\").nullable().optional(),\n subject: z.string().describe(\"Ticket subject line\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (ISO 8601 format)\").nullable().optional(),\n}).describe(\"A SupportBee ticket object returned after trashing.\");\nexport const SupportbeeTrashTicketOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Operation status, e.g., 'trashed'\"),\n ticket: SupportbeeTrashTicket_TicketSchema.nullable(),\n}).describe(\"Response schema after successfully trashing a ticket.\");\n\nexport const supportbeeTrashTicket = action(\"SUPPORTBEE_TRASH_TICKET\", {\n slug: \"supportbee-trash-ticket\",\n name: \"Trash SupportBee Ticket\",\n description: \"Tool to trash a SupportBee ticket by its ID. Use when you need to remove a ticket into the trash folder.\",\n input: SupportbeeTrashTicketInput,\n output: SupportbeeTrashTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,EACtH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACxD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC/D,QAAQ,mCAAmC,SAAS;AACtD,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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/trash-ticket.d.ts
|
|
4
|
+
declare const SupportbeeTrashTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeTrashTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeTrashTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeTrashTicket };
|
|
9
|
+
//# sourceMappingURL=trash-ticket.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trash-ticket.d.cts","names":[],"sources":["../../src/actions/trash-ticket.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEwB;AAAA,cAQtD,2BAAA,EAA6B,CAAA,CAAE,UAGwB;AAAA,cAEvD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/trash-ticket.d.ts
|
|
4
|
+
declare const SupportbeeTrashTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeTrashTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeTrashTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeTrashTicket };
|
|
9
|
+
//# sourceMappingURL=trash-ticket.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trash-ticket.d.mts","names":[],"sources":["../../src/actions/trash-ticket.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEwB;AAAA,cAQtD,2BAAA,EAA6B,CAAA,CAAE,UAGwB;AAAA,cAEvD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/trash-ticket.ts
|
|
4
|
+
const SupportbeeTrashTicketInput = z.object({ id: z.number().int().describe("The numeric ID of the ticket to trash. The ticket will be moved to the trash folder.") }).describe("Request parameters for trashing a SupportBee ticket.");
|
|
5
|
+
const SupportbeeTrashTicket_TicketSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique numeric ticket ID"),
|
|
7
|
+
trash: z.boolean().describe("Flag indicating if ticket is in trash (should be True after trashing)").nullable().optional(),
|
|
8
|
+
subject: z.string().describe("Ticket subject line").nullable().optional(),
|
|
9
|
+
created_at: z.string().describe("Creation timestamp (ISO 8601 format)").nullable().optional(),
|
|
10
|
+
updated_at: z.string().describe("Last update timestamp (ISO 8601 format)").nullable().optional()
|
|
11
|
+
}).describe("A SupportBee ticket object returned after trashing.");
|
|
12
|
+
const supportbeeTrashTicket = action("SUPPORTBEE_TRASH_TICKET", {
|
|
13
|
+
slug: "supportbee-trash-ticket",
|
|
14
|
+
name: "Trash SupportBee Ticket",
|
|
15
|
+
description: "Tool to trash a SupportBee ticket by its ID. Use when you need to remove a ticket into the trash folder.",
|
|
16
|
+
input: SupportbeeTrashTicketInput,
|
|
17
|
+
output: z.object({
|
|
18
|
+
status: z.string().describe("Operation status, e.g., 'trashed'"),
|
|
19
|
+
ticket: SupportbeeTrashTicket_TicketSchema.nullable()
|
|
20
|
+
}).describe("Response schema after successfully trashing a ticket.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { supportbeeTrashTicket };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=trash-ticket.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trash-ticket.mjs","names":[],"sources":["../../src/actions/trash-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeTrashTicketInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The numeric ID of the ticket to trash. The ticket will be moved to the trash folder.\"),\n}).describe(\"Request parameters for trashing a SupportBee ticket.\");\nconst SupportbeeTrashTicket_TicketSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique numeric ticket ID\"),\n trash: z.boolean().describe(\"Flag indicating if ticket is in trash (should be True after trashing)\").nullable().optional(),\n subject: z.string().describe(\"Ticket subject line\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (ISO 8601 format)\").nullable().optional(),\n}).describe(\"A SupportBee ticket object returned after trashing.\");\nexport const SupportbeeTrashTicketOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Operation status, e.g., 'trashed'\"),\n ticket: SupportbeeTrashTicket_TicketSchema.nullable(),\n}).describe(\"Response schema after successfully trashing a ticket.\");\n\nexport const supportbeeTrashTicket = action(\"SUPPORTBEE_TRASH_TICKET\", {\n slug: \"supportbee-trash-ticket\",\n name: \"Trash SupportBee Ticket\",\n description: \"Tool to trash a SupportBee ticket by its ID. Use when you need to remove a ticket into the trash folder.\",\n input: SupportbeeTrashTicketInput,\n output: SupportbeeTrashTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,EACtH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACxD,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAMjE,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC/D,QAAQ,mCAAmC,SAAS;CACtD,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/unarchive-ticket.ts
|
|
4
|
+
const SupportbeeUnarchiveTicketInput = zod.z.object({ id: zod.z.number().int().describe("The numeric ID of the ticket to unarchive. If the ticket is already unarchived, the operation succeeds idempotently.") }).describe("Request parameters for unarchiving a ticket in SupportBee.");
|
|
5
|
+
const SupportbeeUnarchiveTicketOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().default("Ticket unarchived successfully").describe("A message describing the result of the operation").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().default(true).describe("Indicates whether the unarchive operation was successful").nullable().optional(),
|
|
8
|
+
ticket_id: zod.z.number().int().describe("The ID of the ticket that was unarchived")
|
|
9
|
+
}).describe("Response schema after successfully unarchiving a ticket.\nThe API typically returns 204 No Content for successful unarchive operations.");
|
|
10
|
+
const supportbeeUnarchiveTicket = require_action.action("SUPPORTBEE_UNARCHIVE_TICKET", {
|
|
11
|
+
slug: "supportbee-unarchive-ticket",
|
|
12
|
+
name: "Unarchive SupportBee Ticket",
|
|
13
|
+
description: "Tool to unarchive a SupportBee ticket by its ID. Use when you need to restore an archived ticket back to active status.",
|
|
14
|
+
input: SupportbeeUnarchiveTicketInput,
|
|
15
|
+
output: SupportbeeUnarchiveTicketOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.supportbeeUnarchiveTicket = supportbeeUnarchiveTicket;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=unarchive-ticket.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unarchive-ticket.cjs","names":["z","action"],"sources":["../../src/actions/unarchive-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeUnarchiveTicketInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The numeric ID of the ticket to unarchive. If the ticket is already unarchived, the operation succeeds idempotently.\"),\n}).describe(\"Request parameters for unarchiving a ticket in SupportBee.\");\nexport const SupportbeeUnarchiveTicketOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"Ticket unarchived successfully\").describe(\"A message describing the result of the operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the unarchive operation was successful\").nullable().optional(),\n ticket_id: z.number().int().describe(\"The ID of the ticket that was unarchived\"),\n}).describe(\"Response schema after successfully unarchiving a ticket.\\nThe API typically returns 204 No Content for successful unarchive operations.\");\n\nexport const supportbeeUnarchiveTicket = action(\"SUPPORTBEE_UNARCHIVE_TICKET\", {\n slug: \"supportbee-unarchive-ticket\",\n name: \"Unarchive SupportBee Ticket\",\n description: \"Tool to unarchive a SupportBee ticket by its ID. Use when you need to restore an archived ticket back to active status.\",\n input: SupportbeeUnarchiveTicketInput,\n output: SupportbeeUnarchiveTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,EACtJ,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,gCAAgC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;AACjF,CAAC,CAAC,CAAC,SAAS,yIAAyI;AAErJ,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,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/unarchive-ticket.d.ts
|
|
4
|
+
declare const SupportbeeUnarchiveTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeUnarchiveTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeUnarchiveTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeUnarchiveTicket };
|
|
9
|
+
//# sourceMappingURL=unarchive-ticket.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unarchive-ticket.d.cts","names":[],"sources":["../../src/actions/unarchive-ticket.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAE0B;AAAA,cAC5D,+BAAA,EAAiC,CAAA,CAAE,UAIsG;AAAA,cAEzI,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/unarchive-ticket.d.ts
|
|
4
|
+
declare const SupportbeeUnarchiveTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeUnarchiveTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeUnarchiveTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeUnarchiveTicket };
|
|
9
|
+
//# sourceMappingURL=unarchive-ticket.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unarchive-ticket.d.mts","names":[],"sources":["../../src/actions/unarchive-ticket.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAE0B;AAAA,cAC5D,+BAAA,EAAiC,CAAA,CAAE,UAIsG;AAAA,cAEzI,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const supportbeeUnarchiveTicket = action("SUPPORTBEE_UNARCHIVE_TICKET", {
|
|
4
|
+
slug: "supportbee-unarchive-ticket",
|
|
5
|
+
name: "Unarchive SupportBee Ticket",
|
|
6
|
+
description: "Tool to unarchive a SupportBee ticket by its ID. Use when you need to restore an archived ticket back to active status.",
|
|
7
|
+
input: z.object({ id: z.number().int().describe("The numeric ID of the ticket to unarchive. If the ticket is already unarchived, the operation succeeds idempotently.") }).describe("Request parameters for unarchiving a ticket in SupportBee."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().default("Ticket unarchived successfully").describe("A message describing the result of the operation").nullable().optional(),
|
|
10
|
+
success: z.boolean().default(true).describe("Indicates whether the unarchive operation was successful").nullable().optional(),
|
|
11
|
+
ticket_id: z.number().int().describe("The ID of the ticket that was unarchived")
|
|
12
|
+
}).describe("Response schema after successfully unarchiving a ticket.\nThe API typically returns 204 No Content for successful unarchive operations.")
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { supportbeeUnarchiveTicket };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=unarchive-ticket.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unarchive-ticket.mjs","names":[],"sources":["../../src/actions/unarchive-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeUnarchiveTicketInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The numeric ID of the ticket to unarchive. If the ticket is already unarchived, the operation succeeds idempotently.\"),\n}).describe(\"Request parameters for unarchiving a ticket in SupportBee.\");\nexport const SupportbeeUnarchiveTicketOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"Ticket unarchived successfully\").describe(\"A message describing the result of the operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the unarchive operation was successful\").nullable().optional(),\n ticket_id: z.number().int().describe(\"The ID of the ticket that was unarchived\"),\n}).describe(\"Response schema after successfully unarchiving a ticket.\\nThe API typically returns 204 No Content for successful unarchive operations.\");\n\nexport const supportbeeUnarchiveTicket = action(\"SUPPORTBEE_UNARCHIVE_TICKET\", {\n slug: \"supportbee-unarchive-ticket\",\n name: \"Unarchive SupportBee Ticket\",\n description: \"Tool to unarchive a SupportBee ticket by its ID. Use when you need to restore an archived ticket back to active status.\",\n input: SupportbeeUnarchiveTicketInput,\n output: SupportbeeUnarchiveTicketOutput,\n});\n"],"mappings":";;AAaA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0D,EAAE,OAAO,EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,EACtJ,CAAC,CAAC,CAAC,SAAS,4DAWH;CACP,QAX2D,EAAE,OAAO;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,gCAAgC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACjF,CAAC,CAAC,CAAC,SAAS,yIAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/unassign-ticket-from-team.ts
|
|
4
|
+
const SupportbeeUnassignTicketFromTeamInput = zod.z.object({ ticket_id: zod.z.number().int().describe("ID of the ticket to remove from its assigned team") }).describe("Request model for un-assigning a ticket from its assigned team.");
|
|
5
|
+
const SupportbeeUnassignTicketFromTeam_CCUserSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("ID of the CC'd user"),
|
|
7
|
+
name: zod.z.string().describe("Name of the CC'd user").nullable().optional(),
|
|
8
|
+
email: zod.z.string().describe("Email address of the CC'd user")
|
|
9
|
+
}).describe("Model representing a CC'd user on a ticket.");
|
|
10
|
+
const SupportbeeUnassignTicketFromTeam_TeamSchema = zod.z.object({
|
|
11
|
+
id: zod.z.number().int().describe("ID of the assigned team"),
|
|
12
|
+
name: zod.z.string().describe("Name of the assigned team").nullable().optional()
|
|
13
|
+
}).describe("Model representing assigned team information.");
|
|
14
|
+
const SupportbeeUnassignTicketFromTeam_AgentSchema = zod.z.object({
|
|
15
|
+
id: zod.z.number().int().describe("ID of the assigned agent"),
|
|
16
|
+
name: zod.z.string().describe("Name of the assigned agent").nullable().optional(),
|
|
17
|
+
email: zod.z.string().describe("Email of the assigned agent").nullable().optional()
|
|
18
|
+
}).describe("Model representing assigned agent information.");
|
|
19
|
+
const SupportbeeUnassignTicketFromTeam_TicketContentSchema = zod.z.object({
|
|
20
|
+
html: zod.z.string().describe("HTML version of the ticket content").nullable().optional(),
|
|
21
|
+
text: zod.z.string().describe("Plain text version of the ticket content").nullable().optional(),
|
|
22
|
+
truncated: zod.z.boolean().describe("Whether the content is truncated").nullable().optional()
|
|
23
|
+
}).describe("Model representing ticket content with HTML and text versions.");
|
|
24
|
+
const SupportbeeUnassignTicketFromTeam_RequesterSchema = zod.z.object({
|
|
25
|
+
id: zod.z.number().int().describe("ID of the ticket requester"),
|
|
26
|
+
name: zod.z.string().describe("Name of the ticket requester").nullable().optional(),
|
|
27
|
+
email: zod.z.string().describe("Email address of the ticket requester")
|
|
28
|
+
}).describe("Model representing ticket requester information.");
|
|
29
|
+
const SupportbeeUnassignTicketFromTeamOutput = zod.z.object({
|
|
30
|
+
cc: zod.z.array(SupportbeeUnassignTicketFromTeam_CCUserSchema).describe("List of CC'd users on the ticket").nullable().optional(),
|
|
31
|
+
id: zod.z.number().int().describe("Unique ID of the ticket"),
|
|
32
|
+
spam: zod.z.boolean().describe("Indicates if the ticket is marked as spam"),
|
|
33
|
+
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the ticket").nullable().optional(),
|
|
34
|
+
team: SupportbeeUnassignTicketFromTeam_TeamSchema.nullable().optional(),
|
|
35
|
+
agent: SupportbeeUnassignTicketFromTeam_AgentSchema.nullable().optional(),
|
|
36
|
+
state: zod.z.string().describe("Current state of the ticket").nullable().optional(),
|
|
37
|
+
labels: zod.z.array(zod.z.string()).describe("List of labels associated with the ticket").nullable().optional(),
|
|
38
|
+
content: SupportbeeUnassignTicketFromTeam_TicketContentSchema.nullable().optional(),
|
|
39
|
+
subject: zod.z.string().describe("Subject of the ticket").nullable().optional(),
|
|
40
|
+
requester: SupportbeeUnassignTicketFromTeam_RequesterSchema.nullable(),
|
|
41
|
+
created_at: zod.z.string().describe("Ticket creation timestamp (ISO 8601 format)"),
|
|
42
|
+
last_activity_at: zod.z.string().describe("Ticket last activity timestamp (ISO 8601 format)").nullable().optional()
|
|
43
|
+
}).describe("Model representing a ticket in SupportBee.");
|
|
44
|
+
const supportbeeUnassignTicketFromTeam = require_action.action("SUPPORTBEE_UNASSIGN_TICKET_FROM_TEAM", {
|
|
45
|
+
slug: "supportbee-unassign-ticket-from-team",
|
|
46
|
+
name: "Unassign Ticket from Team",
|
|
47
|
+
description: "Tool to un-assign a ticket from its assigned team. Use when you need to remove the current team ownership before reassigning or closing the ticket.",
|
|
48
|
+
input: SupportbeeUnassignTicketFromTeamInput,
|
|
49
|
+
output: SupportbeeUnassignTicketFromTeamOutput
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.supportbeeUnassignTicketFromTeam = supportbeeUnassignTicketFromTeam;
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=unassign-ticket-from-team.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unassign-ticket-from-team.cjs","names":["z","action"],"sources":["../../src/actions/unassign-ticket-from-team.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeUnassignTicketFromTeamInput: z.ZodTypeAny = z.object({\n ticket_id: z.number().int().describe(\"ID of the ticket to remove from its assigned team\"),\n}).describe(\"Request model for un-assigning a ticket from its assigned team.\");\nconst SupportbeeUnassignTicketFromTeam_CCUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the CC'd user\"),\n name: z.string().describe(\"Name of the CC'd user\").nullable().optional(),\n email: z.string().describe(\"Email address of the CC'd user\"),\n}).describe(\"Model representing a CC'd user on a ticket.\");\nconst SupportbeeUnassignTicketFromTeam_TeamSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned team\"),\n name: z.string().describe(\"Name of the assigned team\").nullable().optional(),\n}).describe(\"Model representing assigned team information.\");\nconst SupportbeeUnassignTicketFromTeam_AgentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned agent\"),\n name: z.string().describe(\"Name of the assigned agent\").nullable().optional(),\n email: z.string().describe(\"Email of the assigned agent\").nullable().optional(),\n}).describe(\"Model representing assigned agent information.\");\nconst SupportbeeUnassignTicketFromTeam_TicketContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML version of the ticket content\").nullable().optional(),\n text: z.string().describe(\"Plain text version of the ticket content\").nullable().optional(),\n truncated: z.boolean().describe(\"Whether the content is truncated\").nullable().optional(),\n}).describe(\"Model representing ticket content with HTML and text versions.\");\nconst SupportbeeUnassignTicketFromTeam_RequesterSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the ticket requester\"),\n name: z.string().describe(\"Name of the ticket requester\").nullable().optional(),\n email: z.string().describe(\"Email address of the ticket requester\"),\n}).describe(\"Model representing ticket requester information.\");\nexport const SupportbeeUnassignTicketFromTeamOutput: z.ZodTypeAny = z.object({\n cc: z.array(SupportbeeUnassignTicketFromTeam_CCUserSchema).describe(\"List of CC'd 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(\"List of tags associated with the ticket\").nullable().optional(),\n team: SupportbeeUnassignTicketFromTeam_TeamSchema.nullable().optional(),\n agent: SupportbeeUnassignTicketFromTeam_AgentSchema.nullable().optional(),\n state: z.string().describe(\"Current state of the ticket\").nullable().optional(),\n labels: z.array(z.string()).describe(\"List of labels associated with the ticket\").nullable().optional(),\n content: SupportbeeUnassignTicketFromTeam_TicketContentSchema.nullable().optional(),\n subject: z.string().describe(\"Subject of the ticket\").nullable().optional(),\n requester: SupportbeeUnassignTicketFromTeam_RequesterSchema.nullable(),\n created_at: z.string().describe(\"Ticket creation timestamp (ISO 8601 format)\"),\n last_activity_at: z.string().describe(\"Ticket last activity timestamp (ISO 8601 format)\").nullable().optional(),\n}).describe(\"Model representing a ticket in SupportBee.\");\n\nexport const supportbeeUnassignTicketFromTeam = action(\"SUPPORTBEE_UNASSIGN_TICKET_FROM_TEAM\", {\n slug: \"supportbee-unassign-ticket-from-team\",\n name: \"Unassign Ticket from Team\",\n description: \"Tool to un-assign a ticket from its assigned team. Use when you need to remove the current team ownership before reassigning or closing the ticket.\",\n input: SupportbeeUnassignTicketFromTeamInput,\n output: SupportbeeUnassignTicketFromTeamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,EAC1F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AAC7D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,S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C,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACvD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CACtE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACtE,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,SAAS,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,WAAW,iDAAiD,SAAS;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,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/unassign-ticket-from-team.d.ts
|
|
4
|
+
declare const SupportbeeUnassignTicketFromTeamInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeUnassignTicketFromTeamOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeUnassignTicketFromTeam: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeUnassignTicketFromTeam };
|
|
9
|
+
//# sourceMappingURL=unassign-ticket-from-team.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unassign-ticket-from-team.d.cts","names":[],"sources":["../../src/actions/unassign-ticket-from-team.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEwB;AAAA,cAyBjE,sCAAA,EAAwC,CAAA,CAAE,UAcE;AAAA,cAE5C,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/unassign-ticket-from-team.d.ts
|
|
4
|
+
declare const SupportbeeUnassignTicketFromTeamInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeUnassignTicketFromTeamOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeUnassignTicketFromTeam: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeUnassignTicketFromTeam };
|
|
9
|
+
//# sourceMappingURL=unassign-ticket-from-team.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unassign-ticket-from-team.d.mts","names":[],"sources":["../../src/actions/unassign-ticket-from-team.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEwB;AAAA,cAyBjE,sCAAA,EAAwC,CAAA,CAAE,UAcE;AAAA,cAE5C,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/unassign-ticket-from-team.ts
|
|
4
|
+
const SupportbeeUnassignTicketFromTeamInput = z.object({ ticket_id: z.number().int().describe("ID of the ticket to remove from its assigned team") }).describe("Request model for un-assigning a ticket from its assigned team.");
|
|
5
|
+
const SupportbeeUnassignTicketFromTeam_CCUserSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("ID of the CC'd user"),
|
|
7
|
+
name: z.string().describe("Name of the CC'd user").nullable().optional(),
|
|
8
|
+
email: z.string().describe("Email address of the CC'd user")
|
|
9
|
+
}).describe("Model representing a CC'd user on a ticket.");
|
|
10
|
+
const SupportbeeUnassignTicketFromTeam_TeamSchema = z.object({
|
|
11
|
+
id: z.number().int().describe("ID of the assigned team"),
|
|
12
|
+
name: z.string().describe("Name of the assigned team").nullable().optional()
|
|
13
|
+
}).describe("Model representing assigned team information.");
|
|
14
|
+
const SupportbeeUnassignTicketFromTeam_AgentSchema = z.object({
|
|
15
|
+
id: z.number().int().describe("ID of the assigned agent"),
|
|
16
|
+
name: z.string().describe("Name of the assigned agent").nullable().optional(),
|
|
17
|
+
email: z.string().describe("Email of the assigned agent").nullable().optional()
|
|
18
|
+
}).describe("Model representing assigned agent information.");
|
|
19
|
+
const SupportbeeUnassignTicketFromTeam_TicketContentSchema = z.object({
|
|
20
|
+
html: z.string().describe("HTML version of the ticket content").nullable().optional(),
|
|
21
|
+
text: z.string().describe("Plain text version of the ticket content").nullable().optional(),
|
|
22
|
+
truncated: z.boolean().describe("Whether the content is truncated").nullable().optional()
|
|
23
|
+
}).describe("Model representing ticket content with HTML and text versions.");
|
|
24
|
+
const SupportbeeUnassignTicketFromTeam_RequesterSchema = z.object({
|
|
25
|
+
id: z.number().int().describe("ID of the ticket requester"),
|
|
26
|
+
name: z.string().describe("Name of the ticket requester").nullable().optional(),
|
|
27
|
+
email: z.string().describe("Email address of the ticket requester")
|
|
28
|
+
}).describe("Model representing ticket requester information.");
|
|
29
|
+
const supportbeeUnassignTicketFromTeam = action("SUPPORTBEE_UNASSIGN_TICKET_FROM_TEAM", {
|
|
30
|
+
slug: "supportbee-unassign-ticket-from-team",
|
|
31
|
+
name: "Unassign Ticket from Team",
|
|
32
|
+
description: "Tool to un-assign a ticket from its assigned team. Use when you need to remove the current team ownership before reassigning or closing the ticket.",
|
|
33
|
+
input: SupportbeeUnassignTicketFromTeamInput,
|
|
34
|
+
output: z.object({
|
|
35
|
+
cc: z.array(SupportbeeUnassignTicketFromTeam_CCUserSchema).describe("List of CC'd users on the ticket").nullable().optional(),
|
|
36
|
+
id: z.number().int().describe("Unique ID of the ticket"),
|
|
37
|
+
spam: z.boolean().describe("Indicates if the ticket is marked as spam"),
|
|
38
|
+
tags: z.array(z.string()).describe("List of tags associated with the ticket").nullable().optional(),
|
|
39
|
+
team: SupportbeeUnassignTicketFromTeam_TeamSchema.nullable().optional(),
|
|
40
|
+
agent: SupportbeeUnassignTicketFromTeam_AgentSchema.nullable().optional(),
|
|
41
|
+
state: z.string().describe("Current state of the ticket").nullable().optional(),
|
|
42
|
+
labels: z.array(z.string()).describe("List of labels associated with the ticket").nullable().optional(),
|
|
43
|
+
content: SupportbeeUnassignTicketFromTeam_TicketContentSchema.nullable().optional(),
|
|
44
|
+
subject: z.string().describe("Subject of the ticket").nullable().optional(),
|
|
45
|
+
requester: SupportbeeUnassignTicketFromTeam_RequesterSchema.nullable(),
|
|
46
|
+
created_at: z.string().describe("Ticket creation timestamp (ISO 8601 format)"),
|
|
47
|
+
last_activity_at: z.string().describe("Ticket last activity timestamp (ISO 8601 format)").nullable().optional()
|
|
48
|
+
}).describe("Model representing a ticket in SupportBee.")
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
export { supportbeeUnassignTicketFromTeam };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=unassign-ticket-from-team.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unassign-ticket-from-team.mjs","names":[],"sources":["../../src/actions/unassign-ticket-from-team.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeUnassignTicketFromTeamInput: z.ZodTypeAny = z.object({\n ticket_id: z.number().int().describe(\"ID of the ticket to remove from its assigned team\"),\n}).describe(\"Request model for un-assigning a ticket from its assigned team.\");\nconst SupportbeeUnassignTicketFromTeam_CCUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the CC'd user\"),\n name: z.string().describe(\"Name of the CC'd user\").nullable().optional(),\n email: z.string().describe(\"Email address of the CC'd user\"),\n}).describe(\"Model representing a CC'd user on a ticket.\");\nconst SupportbeeUnassignTicketFromTeam_TeamSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned team\"),\n name: z.string().describe(\"Name of the assigned team\").nullable().optional(),\n}).describe(\"Model representing assigned team information.\");\nconst SupportbeeUnassignTicketFromTeam_AgentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned agent\"),\n name: z.string().describe(\"Name of the assigned agent\").nullable().optional(),\n email: z.string().describe(\"Email of the assigned agent\").nullable().optional(),\n}).describe(\"Model representing assigned agent information.\");\nconst SupportbeeUnassignTicketFromTeam_TicketContentSchema: z.ZodTypeAny = z.object({\n html: z.string().describe(\"HTML version of the ticket content\").nullable().optional(),\n text: z.string().describe(\"Plain text version of the ticket content\").nullable().optional(),\n truncated: z.boolean().describe(\"Whether the content is truncated\").nullable().optional(),\n}).describe(\"Model representing ticket content with HTML and text versions.\");\nconst SupportbeeUnassignTicketFromTeam_RequesterSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the ticket requester\"),\n name: z.string().describe(\"Name of the ticket requester\").nullable().optional(),\n email: z.string().describe(\"Email address of the ticket requester\"),\n}).describe(\"Model representing ticket requester information.\");\nexport const SupportbeeUnassignTicketFromTeamOutput: z.ZodTypeAny = z.object({\n cc: z.array(SupportbeeUnassignTicketFromTeam_CCUserSchema).describe(\"List of CC'd 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(\"List of tags associated with the ticket\").nullable().optional(),\n team: SupportbeeUnassignTicketFromTeam_TeamSchema.nullable().optional(),\n agent: SupportbeeUnassignTicketFromTeam_AgentSchema.nullable().optional(),\n state: z.string().describe(\"Current state of the ticket\").nullable().optional(),\n labels: z.array(z.string()).describe(\"List of labels associated with the ticket\").nullable().optional(),\n content: SupportbeeUnassignTicketFromTeam_TicketContentSchema.nullable().optional(),\n subject: z.string().describe(\"Subject of the ticket\").nullable().optional(),\n requester: SupportbeeUnassignTicketFromTeam_RequesterSchema.nullable(),\n created_at: z.string().describe(\"Ticket creation timestamp (ISO 8601 format)\"),\n last_activity_at: z.string().describe(\"Ticket last activity timestamp (ISO 8601 format)\").nullable().optional(),\n}).describe(\"Model representing a ticket in SupportBee.\");\n\nexport const supportbeeUnassignTicketFromTeam = action(\"SUPPORTBEE_UNASSIGN_TICKET_FROM_TEAM\", {\n slug: \"supportbee-unassign-ticket-from-team\",\n name: \"Unassign Ticket from Team\",\n description: \"Tool to un-assign a ticket from its assigned team. Use when you need to remove the current team ownership before reassigning or closing the ticket.\",\n input: SupportbeeUnassignTicketFromTeamInput,\n output: SupportbeeUnassignTicketFromTeamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO,EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,EAC1F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,gDAA8D,EAAE,OAAO;CAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS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