@keystrokehq/mailtrap 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/clean-inbox.cjs +50 -0
- package/dist/actions/clean-inbox.cjs.map +1 -0
- package/dist/actions/clean-inbox.d.cts +9 -0
- package/dist/actions/clean-inbox.d.cts.map +1 -0
- package/dist/actions/clean-inbox.d.mts +9 -0
- package/dist/actions/clean-inbox.d.mts.map +1 -0
- package/dist/actions/clean-inbox.mjs +49 -0
- package/dist/actions/clean-inbox.mjs.map +1 -0
- package/dist/actions/create-contact-event.cjs +26 -0
- package/dist/actions/create-contact-event.cjs.map +1 -0
- package/dist/actions/create-contact-event.d.cts +9 -0
- package/dist/actions/create-contact-event.d.cts.map +1 -0
- package/dist/actions/create-contact-event.d.mts +9 -0
- package/dist/actions/create-contact-event.d.mts.map +1 -0
- package/dist/actions/create-contact-event.mjs +23 -0
- package/dist/actions/create-contact-event.mjs.map +1 -0
- package/dist/actions/create-contact-export.cjs +34 -0
- package/dist/actions/create-contact-export.cjs.map +1 -0
- package/dist/actions/create-contact-export.d.cts +9 -0
- package/dist/actions/create-contact-export.d.cts.map +1 -0
- package/dist/actions/create-contact-export.d.mts +9 -0
- package/dist/actions/create-contact-export.d.mts.map +1 -0
- package/dist/actions/create-contact-export.mjs +33 -0
- package/dist/actions/create-contact-export.mjs.map +1 -0
- package/dist/actions/create-contact-field.cjs +32 -0
- package/dist/actions/create-contact-field.cjs.map +1 -0
- package/dist/actions/create-contact-field.d.cts +9 -0
- package/dist/actions/create-contact-field.d.cts.map +1 -0
- package/dist/actions/create-contact-field.d.mts +9 -0
- package/dist/actions/create-contact-field.d.mts.map +1 -0
- package/dist/actions/create-contact-field.mjs +29 -0
- package/dist/actions/create-contact-field.mjs.map +1 -0
- package/dist/actions/create-contact-list.cjs +22 -0
- package/dist/actions/create-contact-list.cjs.map +1 -0
- package/dist/actions/create-contact-list.d.cts +9 -0
- package/dist/actions/create-contact-list.d.cts.map +1 -0
- package/dist/actions/create-contact-list.d.mts +9 -0
- package/dist/actions/create-contact-list.d.mts.map +1 -0
- package/dist/actions/create-contact-list.mjs +19 -0
- package/dist/actions/create-contact-list.mjs.map +1 -0
- package/dist/actions/create-contact.cjs +35 -0
- package/dist/actions/create-contact.cjs.map +1 -0
- package/dist/actions/create-contact.d.cts +9 -0
- package/dist/actions/create-contact.d.cts.map +1 -0
- package/dist/actions/create-contact.d.mts +9 -0
- package/dist/actions/create-contact.d.mts.map +1 -0
- package/dist/actions/create-contact.mjs +34 -0
- package/dist/actions/create-contact.mjs.map +1 -0
- package/dist/actions/create-email-template.cjs +35 -0
- package/dist/actions/create-email-template.cjs.map +1 -0
- package/dist/actions/create-email-template.d.cts +9 -0
- package/dist/actions/create-email-template.d.cts.map +1 -0
- package/dist/actions/create-email-template.d.mts +9 -0
- package/dist/actions/create-email-template.d.mts.map +1 -0
- package/dist/actions/create-email-template.mjs +32 -0
- package/dist/actions/create-email-template.mjs.map +1 -0
- package/dist/actions/create-sending-domain.cjs +59 -0
- package/dist/actions/create-sending-domain.cjs.map +1 -0
- package/dist/actions/create-sending-domain.d.cts +9 -0
- package/dist/actions/create-sending-domain.d.cts.map +1 -0
- package/dist/actions/create-sending-domain.d.mts +9 -0
- package/dist/actions/create-sending-domain.d.mts.map +1 -0
- package/dist/actions/create-sending-domain.mjs +58 -0
- package/dist/actions/create-sending-domain.mjs.map +1 -0
- package/dist/actions/delete-contact-field.cjs +22 -0
- package/dist/actions/delete-contact-field.cjs.map +1 -0
- package/dist/actions/delete-contact-field.d.cts +9 -0
- package/dist/actions/delete-contact-field.d.cts.map +1 -0
- package/dist/actions/delete-contact-field.d.mts +9 -0
- package/dist/actions/delete-contact-field.d.mts.map +1 -0
- package/dist/actions/delete-contact-field.mjs +19 -0
- package/dist/actions/delete-contact-field.mjs.map +1 -0
- package/dist/actions/delete-contact-list.cjs +19 -0
- package/dist/actions/delete-contact-list.cjs.map +1 -0
- package/dist/actions/delete-contact-list.d.cts +9 -0
- package/dist/actions/delete-contact-list.d.cts.map +1 -0
- package/dist/actions/delete-contact-list.d.mts +9 -0
- package/dist/actions/delete-contact-list.d.mts.map +1 -0
- package/dist/actions/delete-contact-list.mjs +16 -0
- package/dist/actions/delete-contact-list.mjs.map +1 -0
- package/dist/actions/delete-contact.cjs +19 -0
- package/dist/actions/delete-contact.cjs.map +1 -0
- package/dist/actions/delete-contact.d.cts +9 -0
- package/dist/actions/delete-contact.d.cts.map +1 -0
- package/dist/actions/delete-contact.d.mts +9 -0
- package/dist/actions/delete-contact.d.mts.map +1 -0
- package/dist/actions/delete-contact.mjs +16 -0
- package/dist/actions/delete-contact.mjs.map +1 -0
- package/dist/actions/delete-email-template.cjs +19 -0
- package/dist/actions/delete-email-template.cjs.map +1 -0
- package/dist/actions/delete-email-template.d.cts +9 -0
- package/dist/actions/delete-email-template.d.cts.map +1 -0
- package/dist/actions/delete-email-template.d.mts +9 -0
- package/dist/actions/delete-email-template.d.mts.map +1 -0
- package/dist/actions/delete-email-template.mjs +16 -0
- package/dist/actions/delete-email-template.mjs.map +1 -0
- package/dist/actions/delete-project.cjs +19 -0
- package/dist/actions/delete-project.cjs.map +1 -0
- package/dist/actions/delete-project.d.cts +9 -0
- package/dist/actions/delete-project.d.cts.map +1 -0
- package/dist/actions/delete-project.d.mts +9 -0
- package/dist/actions/delete-project.d.mts.map +1 -0
- package/dist/actions/delete-project.mjs +16 -0
- package/dist/actions/delete-project.mjs.map +1 -0
- package/dist/actions/delete-sending-domain.cjs +19 -0
- package/dist/actions/delete-sending-domain.cjs.map +1 -0
- package/dist/actions/delete-sending-domain.d.cts +9 -0
- package/dist/actions/delete-sending-domain.d.cts.map +1 -0
- package/dist/actions/delete-sending-domain.d.mts +9 -0
- package/dist/actions/delete-sending-domain.d.mts.map +1 -0
- package/dist/actions/delete-sending-domain.mjs +16 -0
- package/dist/actions/delete-sending-domain.mjs.map +1 -0
- package/dist/actions/get-billing-usage.cjs +37 -0
- package/dist/actions/get-billing-usage.cjs.map +1 -0
- package/dist/actions/get-billing-usage.d.cts +9 -0
- package/dist/actions/get-billing-usage.d.cts.map +1 -0
- package/dist/actions/get-billing-usage.d.mts +9 -0
- package/dist/actions/get-billing-usage.d.mts.map +1 -0
- package/dist/actions/get-billing-usage.mjs +36 -0
- package/dist/actions/get-billing-usage.mjs.map +1 -0
- package/dist/actions/get-contact-export.cjs +30 -0
- package/dist/actions/get-contact-export.cjs.map +1 -0
- package/dist/actions/get-contact-export.d.cts +9 -0
- package/dist/actions/get-contact-export.d.cts.map +1 -0
- package/dist/actions/get-contact-export.d.mts +9 -0
- package/dist/actions/get-contact-export.d.mts.map +1 -0
- package/dist/actions/get-contact-export.mjs +29 -0
- package/dist/actions/get-contact-export.mjs.map +1 -0
- package/dist/actions/get-contact-field.cjs +24 -0
- package/dist/actions/get-contact-field.cjs.map +1 -0
- package/dist/actions/get-contact-field.d.cts +9 -0
- package/dist/actions/get-contact-field.d.cts.map +1 -0
- package/dist/actions/get-contact-field.d.mts +9 -0
- package/dist/actions/get-contact-field.d.mts.map +1 -0
- package/dist/actions/get-contact-field.mjs +21 -0
- package/dist/actions/get-contact-field.mjs.map +1 -0
- package/dist/actions/get-contact-import.cjs +31 -0
- package/dist/actions/get-contact-import.cjs.map +1 -0
- package/dist/actions/get-contact-import.d.cts +9 -0
- package/dist/actions/get-contact-import.d.cts.map +1 -0
- package/dist/actions/get-contact-import.d.mts +9 -0
- package/dist/actions/get-contact-import.d.mts.map +1 -0
- package/dist/actions/get-contact-import.mjs +30 -0
- package/dist/actions/get-contact-import.mjs.map +1 -0
- package/dist/actions/get-contact-list.cjs +22 -0
- package/dist/actions/get-contact-list.cjs.map +1 -0
- package/dist/actions/get-contact-list.d.cts +9 -0
- package/dist/actions/get-contact-list.d.cts.map +1 -0
- package/dist/actions/get-contact-list.d.mts +9 -0
- package/dist/actions/get-contact-list.d.mts.map +1 -0
- package/dist/actions/get-contact-list.mjs +19 -0
- package/dist/actions/get-contact-list.mjs.map +1 -0
- package/dist/actions/get-contact.cjs +28 -0
- package/dist/actions/get-contact.cjs.map +1 -0
- package/dist/actions/get-contact.d.cts +9 -0
- package/dist/actions/get-contact.d.cts.map +1 -0
- package/dist/actions/get-contact.d.mts +9 -0
- package/dist/actions/get-contact.d.mts.map +1 -0
- package/dist/actions/get-contact.mjs +27 -0
- package/dist/actions/get-contact.mjs.map +1 -0
- package/dist/actions/get-email-template.cjs +29 -0
- package/dist/actions/get-email-template.cjs.map +1 -0
- package/dist/actions/get-email-template.d.cts +9 -0
- package/dist/actions/get-email-template.d.cts.map +1 -0
- package/dist/actions/get-email-template.d.mts +9 -0
- package/dist/actions/get-email-template.d.mts.map +1 -0
- package/dist/actions/get-email-template.mjs +26 -0
- package/dist/actions/get-email-template.mjs.map +1 -0
- package/dist/actions/get-inbox.cjs +50 -0
- package/dist/actions/get-inbox.cjs.map +1 -0
- package/dist/actions/get-inbox.d.cts +9 -0
- package/dist/actions/get-inbox.d.cts.map +1 -0
- package/dist/actions/get-inbox.d.mts +9 -0
- package/dist/actions/get-inbox.d.mts.map +1 -0
- package/dist/actions/get-inbox.mjs +49 -0
- package/dist/actions/get-inbox.mjs.map +1 -0
- package/dist/actions/get-message-html.cjs +23 -0
- package/dist/actions/get-message-html.cjs.map +1 -0
- package/dist/actions/get-message-html.d.cts +9 -0
- package/dist/actions/get-message-html.d.cts.map +1 -0
- package/dist/actions/get-message-html.d.mts +9 -0
- package/dist/actions/get-message-html.d.mts.map +1 -0
- package/dist/actions/get-message-html.mjs +20 -0
- package/dist/actions/get-message-html.mjs.map +1 -0
- package/dist/actions/get-permission-resources.cjs +36 -0
- package/dist/actions/get-permission-resources.cjs.map +1 -0
- package/dist/actions/get-permission-resources.d.cts +9 -0
- package/dist/actions/get-permission-resources.d.cts.map +1 -0
- package/dist/actions/get-permission-resources.d.mts +9 -0
- package/dist/actions/get-permission-resources.d.mts.map +1 -0
- package/dist/actions/get-permission-resources.mjs +35 -0
- package/dist/actions/get-permission-resources.mjs.map +1 -0
- package/dist/actions/get-project.cjs +67 -0
- package/dist/actions/get-project.cjs.map +1 -0
- package/dist/actions/get-project.d.cts +9 -0
- package/dist/actions/get-project.d.cts.map +1 -0
- package/dist/actions/get-project.d.mts +9 -0
- package/dist/actions/get-project.d.mts.map +1 -0
- package/dist/actions/get-project.mjs +66 -0
- package/dist/actions/get-project.mjs.map +1 -0
- package/dist/actions/get-sending-domain.cjs +59 -0
- package/dist/actions/get-sending-domain.cjs.map +1 -0
- package/dist/actions/get-sending-domain.d.cts +9 -0
- package/dist/actions/get-sending-domain.d.cts.map +1 -0
- package/dist/actions/get-sending-domain.d.mts +9 -0
- package/dist/actions/get-sending-domain.d.mts.map +1 -0
- package/dist/actions/get-sending-domain.mjs +58 -0
- package/dist/actions/get-sending-domain.mjs.map +1 -0
- package/dist/actions/get-sending-stats-by-categories.cjs +40 -0
- package/dist/actions/get-sending-stats-by-categories.cjs.map +1 -0
- package/dist/actions/get-sending-stats-by-categories.d.cts +9 -0
- package/dist/actions/get-sending-stats-by-categories.d.cts.map +1 -0
- package/dist/actions/get-sending-stats-by-categories.d.mts +9 -0
- package/dist/actions/get-sending-stats-by-categories.d.mts.map +1 -0
- package/dist/actions/get-sending-stats-by-categories.mjs +39 -0
- package/dist/actions/get-sending-stats-by-categories.mjs.map +1 -0
- package/dist/actions/get-sending-stats-by-date.cjs +40 -0
- package/dist/actions/get-sending-stats-by-date.cjs.map +1 -0
- package/dist/actions/get-sending-stats-by-date.d.cts +9 -0
- package/dist/actions/get-sending-stats-by-date.d.cts.map +1 -0
- package/dist/actions/get-sending-stats-by-date.d.mts +9 -0
- package/dist/actions/get-sending-stats-by-date.d.mts.map +1 -0
- package/dist/actions/get-sending-stats-by-date.mjs +39 -0
- package/dist/actions/get-sending-stats-by-date.mjs.map +1 -0
- package/dist/actions/get-sending-stats-by-domains.cjs +40 -0
- package/dist/actions/get-sending-stats-by-domains.cjs.map +1 -0
- package/dist/actions/get-sending-stats-by-domains.d.cts +9 -0
- package/dist/actions/get-sending-stats-by-domains.d.cts.map +1 -0
- package/dist/actions/get-sending-stats-by-domains.d.mts +9 -0
- package/dist/actions/get-sending-stats-by-domains.d.mts.map +1 -0
- package/dist/actions/get-sending-stats-by-domains.mjs +39 -0
- package/dist/actions/get-sending-stats-by-domains.mjs.map +1 -0
- package/dist/actions/get-sending-stats-by-esp.cjs +40 -0
- package/dist/actions/get-sending-stats-by-esp.cjs.map +1 -0
- package/dist/actions/get-sending-stats-by-esp.d.cts +9 -0
- package/dist/actions/get-sending-stats-by-esp.d.cts.map +1 -0
- package/dist/actions/get-sending-stats-by-esp.d.mts +9 -0
- package/dist/actions/get-sending-stats-by-esp.d.mts.map +1 -0
- package/dist/actions/get-sending-stats-by-esp.mjs +39 -0
- package/dist/actions/get-sending-stats-by-esp.mjs.map +1 -0
- package/dist/actions/get-sending-stats.cjs +35 -0
- package/dist/actions/get-sending-stats.cjs.map +1 -0
- package/dist/actions/get-sending-stats.d.cts +9 -0
- package/dist/actions/get-sending-stats.d.cts.map +1 -0
- package/dist/actions/get-sending-stats.d.mts +9 -0
- package/dist/actions/get-sending-stats.d.mts.map +1 -0
- package/dist/actions/get-sending-stats.mjs +32 -0
- package/dist/actions/get-sending-stats.mjs.map +1 -0
- package/dist/actions/import-contacts.cjs +30 -0
- package/dist/actions/import-contacts.cjs.map +1 -0
- package/dist/actions/import-contacts.d.cts +9 -0
- package/dist/actions/import-contacts.d.cts.map +1 -0
- package/dist/actions/import-contacts.d.mts +9 -0
- package/dist/actions/import-contacts.d.mts.map +1 -0
- package/dist/actions/import-contacts.mjs +27 -0
- package/dist/actions/import-contacts.mjs.map +1 -0
- package/dist/actions/index.cjs +99 -0
- package/dist/actions/index.d.cts +50 -0
- package/dist/actions/index.d.mts +50 -0
- package/dist/actions/index.mjs +50 -0
- package/dist/actions/list-accounts.cjs +21 -0
- package/dist/actions/list-accounts.cjs.map +1 -0
- package/dist/actions/list-accounts.d.cts +9 -0
- package/dist/actions/list-accounts.d.cts.map +1 -0
- package/dist/actions/list-accounts.d.mts +9 -0
- package/dist/actions/list-accounts.d.mts.map +1 -0
- package/dist/actions/list-accounts.mjs +20 -0
- package/dist/actions/list-accounts.mjs.map +1 -0
- package/dist/actions/list-contact-fields.cjs +29 -0
- package/dist/actions/list-contact-fields.cjs.map +1 -0
- package/dist/actions/list-contact-fields.d.cts +9 -0
- package/dist/actions/list-contact-fields.d.cts.map +1 -0
- package/dist/actions/list-contact-fields.d.mts +9 -0
- package/dist/actions/list-contact-fields.d.mts.map +1 -0
- package/dist/actions/list-contact-fields.mjs +28 -0
- package/dist/actions/list-contact-fields.mjs.map +1 -0
- package/dist/actions/list-contact-lists.cjs +20 -0
- package/dist/actions/list-contact-lists.cjs.map +1 -0
- package/dist/actions/list-contact-lists.d.cts +9 -0
- package/dist/actions/list-contact-lists.d.cts.map +1 -0
- package/dist/actions/list-contact-lists.d.mts +9 -0
- package/dist/actions/list-contact-lists.d.mts.map +1 -0
- package/dist/actions/list-contact-lists.mjs +19 -0
- package/dist/actions/list-contact-lists.mjs.map +1 -0
- package/dist/actions/list-email-templates.cjs +27 -0
- package/dist/actions/list-email-templates.cjs.map +1 -0
- package/dist/actions/list-email-templates.d.cts +9 -0
- package/dist/actions/list-email-templates.d.cts.map +1 -0
- package/dist/actions/list-email-templates.d.mts +9 -0
- package/dist/actions/list-email-templates.d.mts.map +1 -0
- package/dist/actions/list-email-templates.mjs +26 -0
- package/dist/actions/list-email-templates.mjs.map +1 -0
- package/dist/actions/list-inboxes.cjs +53 -0
- package/dist/actions/list-inboxes.cjs.map +1 -0
- package/dist/actions/list-inboxes.d.cts +9 -0
- package/dist/actions/list-inboxes.d.cts.map +1 -0
- package/dist/actions/list-inboxes.d.mts +9 -0
- package/dist/actions/list-inboxes.d.mts.map +1 -0
- package/dist/actions/list-inboxes.mjs +52 -0
- package/dist/actions/list-inboxes.mjs.map +1 -0
- package/dist/actions/list-messages.cjs +65 -0
- package/dist/actions/list-messages.cjs.map +1 -0
- package/dist/actions/list-messages.d.cts +9 -0
- package/dist/actions/list-messages.d.cts.map +1 -0
- package/dist/actions/list-messages.d.mts +9 -0
- package/dist/actions/list-messages.d.mts.map +1 -0
- package/dist/actions/list-messages.mjs +64 -0
- package/dist/actions/list-messages.mjs.map +1 -0
- package/dist/actions/list-projects.cjs +57 -0
- package/dist/actions/list-projects.cjs.map +1 -0
- package/dist/actions/list-projects.d.cts +9 -0
- package/dist/actions/list-projects.d.cts.map +1 -0
- package/dist/actions/list-projects.d.mts +9 -0
- package/dist/actions/list-projects.d.mts.map +1 -0
- package/dist/actions/list-projects.mjs +56 -0
- package/dist/actions/list-projects.mjs.map +1 -0
- package/dist/actions/list-sending-domains.cjs +46 -0
- package/dist/actions/list-sending-domains.cjs.map +1 -0
- package/dist/actions/list-sending-domains.d.cts +9 -0
- package/dist/actions/list-sending-domains.d.cts.map +1 -0
- package/dist/actions/list-sending-domains.d.mts +9 -0
- package/dist/actions/list-sending-domains.d.mts.map +1 -0
- package/dist/actions/list-sending-domains.mjs +45 -0
- package/dist/actions/list-sending-domains.mjs.map +1 -0
- package/dist/actions/list-suppressions.cjs +33 -0
- package/dist/actions/list-suppressions.cjs.map +1 -0
- package/dist/actions/list-suppressions.d.cts +9 -0
- package/dist/actions/list-suppressions.d.cts.map +1 -0
- package/dist/actions/list-suppressions.d.mts +9 -0
- package/dist/actions/list-suppressions.d.mts.map +1 -0
- package/dist/actions/list-suppressions.mjs +32 -0
- package/dist/actions/list-suppressions.mjs.map +1 -0
- package/dist/actions/mark-inbox-as-read.cjs +54 -0
- package/dist/actions/mark-inbox-as-read.cjs.map +1 -0
- package/dist/actions/mark-inbox-as-read.d.cts +9 -0
- package/dist/actions/mark-inbox-as-read.d.cts.map +1 -0
- package/dist/actions/mark-inbox-as-read.d.mts +9 -0
- package/dist/actions/mark-inbox-as-read.d.mts.map +1 -0
- package/dist/actions/mark-inbox-as-read.mjs +53 -0
- package/dist/actions/mark-inbox-as-read.mjs.map +1 -0
- package/dist/actions/reset-inbox-credentials.cjs +54 -0
- package/dist/actions/reset-inbox-credentials.cjs.map +1 -0
- package/dist/actions/reset-inbox-credentials.d.cts +9 -0
- package/dist/actions/reset-inbox-credentials.d.cts.map +1 -0
- package/dist/actions/reset-inbox-credentials.d.mts +9 -0
- package/dist/actions/reset-inbox-credentials.d.mts.map +1 -0
- package/dist/actions/reset-inbox-credentials.mjs +53 -0
- package/dist/actions/reset-inbox-credentials.mjs.map +1 -0
- package/dist/actions/update-contact-field.cjs +33 -0
- package/dist/actions/update-contact-field.cjs.map +1 -0
- package/dist/actions/update-contact-field.d.cts +9 -0
- package/dist/actions/update-contact-field.d.cts.map +1 -0
- package/dist/actions/update-contact-field.d.mts +9 -0
- package/dist/actions/update-contact-field.d.mts.map +1 -0
- package/dist/actions/update-contact-field.mjs +32 -0
- package/dist/actions/update-contact-field.mjs.map +1 -0
- package/dist/actions/update-contact-list.cjs +23 -0
- package/dist/actions/update-contact-list.cjs.map +1 -0
- package/dist/actions/update-contact-list.d.cts +9 -0
- package/dist/actions/update-contact-list.d.cts.map +1 -0
- package/dist/actions/update-contact-list.d.mts +9 -0
- package/dist/actions/update-contact-list.d.mts.map +1 -0
- package/dist/actions/update-contact-list.mjs +20 -0
- package/dist/actions/update-contact-list.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +38 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +37 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-email-template.cjs +36 -0
- package/dist/actions/update-email-template.cjs.map +1 -0
- package/dist/actions/update-email-template.d.cts +9 -0
- package/dist/actions/update-email-template.d.cts.map +1 -0
- package/dist/actions/update-email-template.d.mts +9 -0
- package/dist/actions/update-email-template.d.mts.map +1 -0
- package/dist/actions/update-email-template.mjs +33 -0
- package/dist/actions/update-email-template.mjs.map +1 -0
- package/dist/actions/update-inbox.cjs +58 -0
- package/dist/actions/update-inbox.cjs.map +1 -0
- package/dist/actions/update-inbox.d.cts +9 -0
- package/dist/actions/update-inbox.d.cts.map +1 -0
- package/dist/actions/update-inbox.d.mts +9 -0
- package/dist/actions/update-inbox.d.mts.map +1 -0
- package/dist/actions/update-inbox.mjs +57 -0
- package/dist/actions/update-inbox.mjs.map +1 -0
- package/dist/actions/update-project.cjs +68 -0
- package/dist/actions/update-project.cjs.map +1 -0
- package/dist/actions/update-project.d.cts +9 -0
- package/dist/actions/update-project.d.cts.map +1 -0
- package/dist/actions/update-project.d.mts +9 -0
- package/dist/actions/update-project.d.mts.map +1 -0
- package/dist/actions/update-project.mjs +67 -0
- package/dist/actions/update-project.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 +104 -0
- package/dist/index.d.cts +52 -0
- package/dist/index.d.mts +52 -0
- package/dist/index.mjs +53 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/mailtrap
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `mailtrap`
|
|
6
|
+
**Version:** `20260618_00`
|
|
7
|
+
**Actions:** 49
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { mailtrapCleanInbox } from "@keystrokehq/mailtrap/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "mailtrap-agent",
|
|
15
|
+
tools: [mailtrapCleanInbox],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.mailtrap.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeMailtrapTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["mailtrap","executeMailtrapTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { mailtrap } from \"./app\";\nimport { executeMailtrapTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return mailtrap.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMailtrapTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { mailtrap } from "./app.mjs";
|
|
2
|
+
import { executeMailtrapTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return mailtrap.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeMailtrapTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { mailtrap } from \"./app\";\nimport { executeMailtrapTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return mailtrap.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMailtrapTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/clean-inbox.ts
|
|
4
|
+
const MailtrapCleanInboxInput = zod.z.object({
|
|
5
|
+
inbox_id: zod.z.number().int().describe("Unique inbox ID to identify the specific inbox to clean."),
|
|
6
|
+
account_id: zod.z.number().int().describe("Unique account ID to identify the Mailtrap account.")
|
|
7
|
+
}).describe("Request model for cleaning an inbox in Mailtrap.");
|
|
8
|
+
const MailtrapCleanInbox_InboxPermissionsSchema = zod.z.object({
|
|
9
|
+
can_read: zod.z.boolean().describe("Whether the token has permission to read the inbox."),
|
|
10
|
+
can_leave: zod.z.boolean().describe("Whether the token has permission to leave the inbox."),
|
|
11
|
+
can_update: zod.z.boolean().describe("Whether the token has permission to update the inbox."),
|
|
12
|
+
can_destroy: zod.z.boolean().describe("Whether the token has permission to destroy the inbox.")
|
|
13
|
+
}).describe("Permissions model for inbox operations.");
|
|
14
|
+
const MailtrapCleanInboxOutput = zod.z.object({
|
|
15
|
+
id: zod.z.number().int().describe("Unique identifier for the inbox."),
|
|
16
|
+
name: zod.z.string().describe("Name of the inbox."),
|
|
17
|
+
used: zod.z.boolean().describe("Whether the inbox has been used."),
|
|
18
|
+
domain: zod.z.string().describe("Domain for the inbox."),
|
|
19
|
+
status: zod.z.string().describe("Current status of the inbox (active, inactive, or pending)."),
|
|
20
|
+
max_size: zod.z.number().int().describe("Maximum size limit for the inbox in bytes."),
|
|
21
|
+
password: zod.z.string().describe("Password for accessing the inbox. Only available if you have admin permissions.").nullable().optional(),
|
|
22
|
+
username: zod.z.string().describe("Username for accessing the inbox."),
|
|
23
|
+
api_domain: zod.z.string().describe("API domain for the inbox."),
|
|
24
|
+
pop3_ports: zod.z.array(zod.z.number().int()).describe("List of POP3 ports available for the inbox."),
|
|
25
|
+
project_id: zod.z.number().int().describe("ID of the project this inbox belongs to."),
|
|
26
|
+
smtp_ports: zod.z.array(zod.z.number().int()).describe("List of SMTP ports available for the inbox."),
|
|
27
|
+
permissions: MailtrapCleanInbox_InboxPermissionsSchema.nullable(),
|
|
28
|
+
pop3_domain: zod.z.string().describe("POP3 domain for accessing the inbox."),
|
|
29
|
+
email_domain: zod.z.string().describe("Email domain for the inbox."),
|
|
30
|
+
emails_count: zod.z.number().int().describe("Total number of emails in the inbox. Should be 0 after cleaning."),
|
|
31
|
+
email_username: zod.z.string().describe("Email username for the inbox."),
|
|
32
|
+
max_message_size: zod.z.number().int().describe("Maximum message size allowed in bytes."),
|
|
33
|
+
emails_unread_count: zod.z.number().int().describe("Number of unread emails in the inbox. Should be 0 after cleaning."),
|
|
34
|
+
sent_messages_count: zod.z.number().int().describe("Total number of sent messages from the inbox."),
|
|
35
|
+
last_message_sent_at: zod.z.string().describe("Timestamp of the last message sent. Null if no messages have been sent.").nullable().optional(),
|
|
36
|
+
email_username_enabled: zod.z.boolean().describe("Whether the email username is enabled."),
|
|
37
|
+
forwarded_messages_count: zod.z.number().int().describe("Total number of forwarded messages."),
|
|
38
|
+
forward_from_email_address: zod.z.string().describe("Email address from which messages are forwarded.")
|
|
39
|
+
}).describe("Response model containing the cleaned inbox attributes from Mailtrap.");
|
|
40
|
+
const mailtrapCleanInbox = require_action.action("MAILTRAP_CLEAN_INBOX", {
|
|
41
|
+
slug: "mailtrap-clean-inbox",
|
|
42
|
+
name: "Clean Inbox",
|
|
43
|
+
description: "Tool to clean an inbox in Mailtrap by deleting all messages. Use when you need to remove all emails from an inbox while keeping the inbox itself.",
|
|
44
|
+
input: MailtrapCleanInboxInput,
|
|
45
|
+
output: MailtrapCleanInboxOutput
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
exports.mailtrapCleanInbox = mailtrapCleanInbox;
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=clean-inbox.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-inbox.cjs","names":["z","action"],"sources":["../../src/actions/clean-inbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCleanInboxInput: z.ZodTypeAny = z.object({\n inbox_id: z.number().int().describe(\"Unique inbox ID to identify the specific inbox to clean.\"),\n account_id: z.number().int().describe(\"Unique account ID to identify the Mailtrap account.\"),\n}).describe(\"Request model for cleaning an inbox in Mailtrap.\");\nconst MailtrapCleanInbox_InboxPermissionsSchema: z.ZodTypeAny = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the inbox.\"),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the inbox.\"),\n can_update: z.boolean().describe(\"Whether the token has permission to update the inbox.\"),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the inbox.\"),\n}).describe(\"Permissions model for inbox operations.\");\nexport const MailtrapCleanInboxOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the inbox.\"),\n name: z.string().describe(\"Name of the inbox.\"),\n used: z.boolean().describe(\"Whether the inbox has been used.\"),\n domain: z.string().describe(\"Domain for the inbox.\"),\n status: z.string().describe(\"Current status of the inbox (active, inactive, or pending).\"),\n max_size: z.number().int().describe(\"Maximum size limit for the inbox in bytes.\"),\n password: z.string().describe(\"Password for accessing the inbox. Only available if you have admin permissions.\").nullable().optional(),\n username: z.string().describe(\"Username for accessing the inbox.\"),\n api_domain: z.string().describe(\"API domain for the inbox.\"),\n pop3_ports: z.array(z.number().int()).describe(\"List of POP3 ports available for the inbox.\"),\n project_id: z.number().int().describe(\"ID of the project this inbox belongs to.\"),\n smtp_ports: z.array(z.number().int()).describe(\"List of SMTP ports available for the inbox.\"),\n permissions: MailtrapCleanInbox_InboxPermissionsSchema.nullable(),\n pop3_domain: z.string().describe(\"POP3 domain for accessing the inbox.\"),\n email_domain: z.string().describe(\"Email domain for the inbox.\"),\n emails_count: z.number().int().describe(\"Total number of emails in the inbox. Should be 0 after cleaning.\"),\n email_username: z.string().describe(\"Email username for the inbox.\"),\n max_message_size: z.number().int().describe(\"Maximum message size allowed in bytes.\"),\n emails_unread_count: z.number().int().describe(\"Number of unread emails in the inbox. Should be 0 after cleaning.\"),\n sent_messages_count: z.number().int().describe(\"Total number of sent messages from the inbox.\"),\n last_message_sent_at: z.string().describe(\"Timestamp of the last message sent. Null if no messages have been sent.\").nullable().optional(),\n email_username_enabled: z.boolean().describe(\"Whether the email username is enabled.\"),\n forwarded_messages_count: z.number().int().describe(\"Total number of forwarded messages.\"),\n forward_from_email_address: z.string().describe(\"Email address from which messages are forwarded.\"),\n}).describe(\"Response model containing the cleaned inbox attributes from Mailtrap.\");\n\nexport const mailtrapCleanInbox = action(\"MAILTRAP_CLEAN_INBOX\", {\n slug: \"mailtrap-clean-inbox\",\n name: \"Clean Inbox\",\n description: \"Tool to clean an inbox in Mailtrap by deleting all messages. Use when you need to remove all emails from an inbox while keeping the inbox itself.\",\n input: MailtrapCleanInboxInput,\n output: MailtrapCleanInboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD;CACpF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;CACtF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD;CACxF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD;AAC5F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,6CAA6C;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAChF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,6CAA6C;CAC5F,aAAa,0CAA0C,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACvE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACnE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACpF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE;CAClH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CAC9F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrF,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACzF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AACpG,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAEnF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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/clean-inbox.d.ts
|
|
4
|
+
declare const MailtrapCleanInboxInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCleanInboxOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCleanInbox: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCleanInbox };
|
|
9
|
+
//# sourceMappingURL=clean-inbox.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-inbox.d.cts","names":[],"sources":["../../src/actions/clean-inbox.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGuB;AAAA,cAOlD,wBAAA,EAA0B,CAAA,CAAE,UAyB2C;AAAA,cAEvE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/clean-inbox.d.ts
|
|
4
|
+
declare const MailtrapCleanInboxInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCleanInboxOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCleanInbox: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCleanInbox };
|
|
9
|
+
//# sourceMappingURL=clean-inbox.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-inbox.d.mts","names":[],"sources":["../../src/actions/clean-inbox.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGuB;AAAA,cAOlD,wBAAA,EAA0B,CAAA,CAAE,UAyB2C;AAAA,cAEvE,kBAAA,gCAAkB,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/clean-inbox.ts
|
|
4
|
+
const MailtrapCleanInboxInput = z.object({
|
|
5
|
+
inbox_id: z.number().int().describe("Unique inbox ID to identify the specific inbox to clean."),
|
|
6
|
+
account_id: z.number().int().describe("Unique account ID to identify the Mailtrap account.")
|
|
7
|
+
}).describe("Request model for cleaning an inbox in Mailtrap.");
|
|
8
|
+
const MailtrapCleanInbox_InboxPermissionsSchema = z.object({
|
|
9
|
+
can_read: z.boolean().describe("Whether the token has permission to read the inbox."),
|
|
10
|
+
can_leave: z.boolean().describe("Whether the token has permission to leave the inbox."),
|
|
11
|
+
can_update: z.boolean().describe("Whether the token has permission to update the inbox."),
|
|
12
|
+
can_destroy: z.boolean().describe("Whether the token has permission to destroy the inbox.")
|
|
13
|
+
}).describe("Permissions model for inbox operations.");
|
|
14
|
+
const mailtrapCleanInbox = action("MAILTRAP_CLEAN_INBOX", {
|
|
15
|
+
slug: "mailtrap-clean-inbox",
|
|
16
|
+
name: "Clean Inbox",
|
|
17
|
+
description: "Tool to clean an inbox in Mailtrap by deleting all messages. Use when you need to remove all emails from an inbox while keeping the inbox itself.",
|
|
18
|
+
input: MailtrapCleanInboxInput,
|
|
19
|
+
output: z.object({
|
|
20
|
+
id: z.number().int().describe("Unique identifier for the inbox."),
|
|
21
|
+
name: z.string().describe("Name of the inbox."),
|
|
22
|
+
used: z.boolean().describe("Whether the inbox has been used."),
|
|
23
|
+
domain: z.string().describe("Domain for the inbox."),
|
|
24
|
+
status: z.string().describe("Current status of the inbox (active, inactive, or pending)."),
|
|
25
|
+
max_size: z.number().int().describe("Maximum size limit for the inbox in bytes."),
|
|
26
|
+
password: z.string().describe("Password for accessing the inbox. Only available if you have admin permissions.").nullable().optional(),
|
|
27
|
+
username: z.string().describe("Username for accessing the inbox."),
|
|
28
|
+
api_domain: z.string().describe("API domain for the inbox."),
|
|
29
|
+
pop3_ports: z.array(z.number().int()).describe("List of POP3 ports available for the inbox."),
|
|
30
|
+
project_id: z.number().int().describe("ID of the project this inbox belongs to."),
|
|
31
|
+
smtp_ports: z.array(z.number().int()).describe("List of SMTP ports available for the inbox."),
|
|
32
|
+
permissions: MailtrapCleanInbox_InboxPermissionsSchema.nullable(),
|
|
33
|
+
pop3_domain: z.string().describe("POP3 domain for accessing the inbox."),
|
|
34
|
+
email_domain: z.string().describe("Email domain for the inbox."),
|
|
35
|
+
emails_count: z.number().int().describe("Total number of emails in the inbox. Should be 0 after cleaning."),
|
|
36
|
+
email_username: z.string().describe("Email username for the inbox."),
|
|
37
|
+
max_message_size: z.number().int().describe("Maximum message size allowed in bytes."),
|
|
38
|
+
emails_unread_count: z.number().int().describe("Number of unread emails in the inbox. Should be 0 after cleaning."),
|
|
39
|
+
sent_messages_count: z.number().int().describe("Total number of sent messages from the inbox."),
|
|
40
|
+
last_message_sent_at: z.string().describe("Timestamp of the last message sent. Null if no messages have been sent.").nullable().optional(),
|
|
41
|
+
email_username_enabled: z.boolean().describe("Whether the email username is enabled."),
|
|
42
|
+
forwarded_messages_count: z.number().int().describe("Total number of forwarded messages."),
|
|
43
|
+
forward_from_email_address: z.string().describe("Email address from which messages are forwarded.")
|
|
44
|
+
}).describe("Response model containing the cleaned inbox attributes from Mailtrap.")
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { mailtrapCleanInbox };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=clean-inbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-inbox.mjs","names":[],"sources":["../../src/actions/clean-inbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCleanInboxInput: z.ZodTypeAny = z.object({\n inbox_id: z.number().int().describe(\"Unique inbox ID to identify the specific inbox to clean.\"),\n account_id: z.number().int().describe(\"Unique account ID to identify the Mailtrap account.\"),\n}).describe(\"Request model for cleaning an inbox in Mailtrap.\");\nconst MailtrapCleanInbox_InboxPermissionsSchema: z.ZodTypeAny = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the inbox.\"),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the inbox.\"),\n can_update: z.boolean().describe(\"Whether the token has permission to update the inbox.\"),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the inbox.\"),\n}).describe(\"Permissions model for inbox operations.\");\nexport const MailtrapCleanInboxOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the inbox.\"),\n name: z.string().describe(\"Name of the inbox.\"),\n used: z.boolean().describe(\"Whether the inbox has been used.\"),\n domain: z.string().describe(\"Domain for the inbox.\"),\n status: z.string().describe(\"Current status of the inbox (active, inactive, or pending).\"),\n max_size: z.number().int().describe(\"Maximum size limit for the inbox in bytes.\"),\n password: z.string().describe(\"Password for accessing the inbox. Only available if you have admin permissions.\").nullable().optional(),\n username: z.string().describe(\"Username for accessing the inbox.\"),\n api_domain: z.string().describe(\"API domain for the inbox.\"),\n pop3_ports: z.array(z.number().int()).describe(\"List of POP3 ports available for the inbox.\"),\n project_id: z.number().int().describe(\"ID of the project this inbox belongs to.\"),\n smtp_ports: z.array(z.number().int()).describe(\"List of SMTP ports available for the inbox.\"),\n permissions: MailtrapCleanInbox_InboxPermissionsSchema.nullable(),\n pop3_domain: z.string().describe(\"POP3 domain for accessing the inbox.\"),\n email_domain: z.string().describe(\"Email domain for the inbox.\"),\n emails_count: z.number().int().describe(\"Total number of emails in the inbox. Should be 0 after cleaning.\"),\n email_username: z.string().describe(\"Email username for the inbox.\"),\n max_message_size: z.number().int().describe(\"Maximum message size allowed in bytes.\"),\n emails_unread_count: z.number().int().describe(\"Number of unread emails in the inbox. Should be 0 after cleaning.\"),\n sent_messages_count: z.number().int().describe(\"Total number of sent messages from the inbox.\"),\n last_message_sent_at: z.string().describe(\"Timestamp of the last message sent. Null if no messages have been sent.\").nullable().optional(),\n email_username_enabled: z.boolean().describe(\"Whether the email username is enabled.\"),\n forwarded_messages_count: z.number().int().describe(\"Total number of forwarded messages.\"),\n forward_from_email_address: z.string().describe(\"Email address from which messages are forwarded.\"),\n}).describe(\"Response model containing the cleaned inbox attributes from Mailtrap.\");\n\nexport const mailtrapCleanInbox = action(\"MAILTRAP_CLEAN_INBOX\", {\n slug: \"mailtrap-clean-inbox\",\n name: \"Clean Inbox\",\n description: \"Tool to clean an inbox in Mailtrap by deleting all messages. Use when you need to remove all emails from an inbox while keeping the inbox itself.\",\n input: MailtrapCleanInboxInput,\n output: MailtrapCleanInboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,4CAA0D,EAAE,OAAO;CACvE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD;CACpF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;CACtF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD;CACxF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD;AAC5F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AA4BrD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhCoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC9C,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACzF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,6CAA6C;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;EAChF,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,6CAA6C;EAC5F,aAAa,0CAA0C,SAAS;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACvE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE;EAC1G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACnE,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE;EAClH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EAC9F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;EACrF,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACzF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACpG,CAAC,CAAC,CAAC,SAAS,uEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-contact-event.ts
|
|
4
|
+
const MailtrapCreateContactEventInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Event name (max 255 characters)"),
|
|
6
|
+
params: zod.z.object({}).describe("A hash of string keys and scalar JSON values (string, number, boolean, or null)").optional(),
|
|
7
|
+
account_id: zod.z.number().int().describe("Unique account ID. You can obtain this from your Mailtrap account settings."),
|
|
8
|
+
contact_identifier: zod.z.string().describe("Contact UUID or Email")
|
|
9
|
+
}).describe("Request model for creating a contact event in Mailtrap.");
|
|
10
|
+
const MailtrapCreateContactEventOutput = zod.z.object({
|
|
11
|
+
name: zod.z.string().describe("Name of the created event").nullable().optional(),
|
|
12
|
+
params: zod.z.object({}).describe("Event parameters that were stored").nullable().optional(),
|
|
13
|
+
contact_id: zod.z.string().describe("UUID of the contact").nullable().optional(),
|
|
14
|
+
contact_email: zod.z.string().describe("Email address of the contact").nullable().optional()
|
|
15
|
+
}).describe("Response model returned after creating a contact event in Mailtrap.");
|
|
16
|
+
const mailtrapCreateContactEvent = require_action.action("MAILTRAP_CREATE_CONTACT_EVENT", {
|
|
17
|
+
slug: "mailtrap-create-contact-event",
|
|
18
|
+
name: "Create Contact Event",
|
|
19
|
+
description: "Tool to create a contact event in Mailtrap. Use when you need to track custom events associated with a contact for segmentation or automation triggers.",
|
|
20
|
+
input: MailtrapCreateContactEventInput,
|
|
21
|
+
output: MailtrapCreateContactEventOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.mailtrapCreateContactEvent = mailtrapCreateContactEvent;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=create-contact-event.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-event.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCreateContactEventInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Event name (max 255 characters)\"),\n params: z.object({}).describe(\"A hash of string keys and scalar JSON values (string, number, boolean, or null)\").optional(),\n account_id: z.number().int().describe(\"Unique account ID. You can obtain this from your Mailtrap account settings.\"),\n contact_identifier: z.string().describe(\"Contact UUID or Email\"),\n}).describe(\"Request model for creating a contact event in Mailtrap.\");\nexport const MailtrapCreateContactEventOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the created event\").nullable().optional(),\n params: z.object({}).describe(\"Event parameters that were stored\").nullable().optional(),\n contact_id: z.string().describe(\"UUID of the contact\").nullable().optional(),\n contact_email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n}).describe(\"Response model returned after creating a contact event in Mailtrap.\");\n\nexport const mailtrapCreateContactEvent = action(\"MAILTRAP_CREATE_CONTACT_EVENT\", {\n slug: \"mailtrap-create-contact-event\",\n name: \"Create Contact Event\",\n description: \"Tool to create a contact event in Mailtrap. Use when you need to track custom events associated with a contact for segmentation or automation triggers.\",\n input: MailtrapCreateContactEventInput,\n output: MailtrapCreateContactEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E;CACnH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;AACjE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,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-contact-event.d.ts
|
|
4
|
+
declare const MailtrapCreateContactEventInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCreateContactEventOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCreateContactEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCreateContactEvent };
|
|
9
|
+
//# sourceMappingURL=create-contact-event.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-event.d.cts","names":[],"sources":["../../src/actions/create-contact-event.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKsB;AAAA,cACzD,gCAAA,EAAkC,CAAA,CAAE,UAKiC;AAAA,cAErE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-contact-event.d.ts
|
|
4
|
+
declare const MailtrapCreateContactEventInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCreateContactEventOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCreateContactEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCreateContactEvent };
|
|
9
|
+
//# sourceMappingURL=create-contact-event.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-event.d.mts","names":[],"sources":["../../src/actions/create-contact-event.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKsB;AAAA,cACzD,gCAAA,EAAkC,CAAA,CAAE,UAKiC;AAAA,cAErE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const mailtrapCreateContactEvent = action("MAILTRAP_CREATE_CONTACT_EVENT", {
|
|
4
|
+
slug: "mailtrap-create-contact-event",
|
|
5
|
+
name: "Create Contact Event",
|
|
6
|
+
description: "Tool to create a contact event in Mailtrap. Use when you need to track custom events associated with a contact for segmentation or automation triggers.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
name: z.string().describe("Event name (max 255 characters)"),
|
|
9
|
+
params: z.object({}).describe("A hash of string keys and scalar JSON values (string, number, boolean, or null)").optional(),
|
|
10
|
+
account_id: z.number().int().describe("Unique account ID. You can obtain this from your Mailtrap account settings."),
|
|
11
|
+
contact_identifier: z.string().describe("Contact UUID or Email")
|
|
12
|
+
}).describe("Request model for creating a contact event in Mailtrap."),
|
|
13
|
+
output: z.object({
|
|
14
|
+
name: z.string().describe("Name of the created event").nullable().optional(),
|
|
15
|
+
params: z.object({}).describe("Event parameters that were stored").nullable().optional(),
|
|
16
|
+
contact_id: z.string().describe("UUID of the contact").nullable().optional(),
|
|
17
|
+
contact_email: z.string().describe("Email address of the contact").nullable().optional()
|
|
18
|
+
}).describe("Response model returned after creating a contact event in Mailtrap.")
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { mailtrapCreateContactEvent };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=create-contact-event.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-event.mjs","names":[],"sources":["../../src/actions/create-contact-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCreateContactEventInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Event name (max 255 characters)\"),\n params: z.object({}).describe(\"A hash of string keys and scalar JSON values (string, number, boolean, or null)\").optional(),\n account_id: z.number().int().describe(\"Unique account ID. You can obtain this from your Mailtrap account settings.\"),\n contact_identifier: z.string().describe(\"Contact UUID or Email\"),\n}).describe(\"Request model for creating a contact event in Mailtrap.\");\nexport const MailtrapCreateContactEventOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the created event\").nullable().optional(),\n params: z.object({}).describe(\"Event parameters that were stored\").nullable().optional(),\n contact_id: z.string().describe(\"UUID of the contact\").nullable().optional(),\n contact_email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n}).describe(\"Response model returned after creating a contact event in Mailtrap.\");\n\nexport const mailtrapCreateContactEvent = action(\"MAILTRAP_CREATE_CONTACT_EVENT\", {\n slug: \"mailtrap-create-contact-event\",\n name: \"Create Contact Event\",\n description: \"Tool to create a contact event in Mailtrap. Use when you need to track custom events associated with a contact for segmentation or automation triggers.\",\n input: MailtrapCreateContactEventInput,\n output: MailtrapCreateContactEventOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E;EACnH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjE,CAAC,CAAC,CAAC,SAAS,yDAYH;CACP,QAZ4D,EAAE,OAAO;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-contact-export.ts
|
|
4
|
+
const MailtrapCreateContactExportInput = zod.z.object({
|
|
5
|
+
filters: zod.z.array(zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("The name of the field to filter on. Common filter names include 'list_id' (array of integers) and 'subscription_status' (string value like 'subscribed', 'unsubscribed')."),
|
|
7
|
+
value: zod.z.union([zod.z.string(), zod.z.array(zod.z.number().int())]),
|
|
8
|
+
operator: zod.z.string().describe("The comparison operator to use for filtering. Typically 'equal'.")
|
|
9
|
+
}).describe("Filter to apply when exporting contacts")).describe("Array of filters to apply when exporting contacts. Each filter specifies a field name, operator, and value. Required - must contain at least one filter. Common filters: 'subscription_status' (values: 'subscribed', 'unsubscribed') or 'list_id' (array of list IDs)."),
|
|
10
|
+
account_id: zod.z.number().int().describe("Unique account ID to create the contact export for")
|
|
11
|
+
});
|
|
12
|
+
const MailtrapCreateContactExport_ExportStatusSchema = zod.z.enum([
|
|
13
|
+
"created",
|
|
14
|
+
"started",
|
|
15
|
+
"finished"
|
|
16
|
+
]).describe("Status of the contact export.");
|
|
17
|
+
const MailtrapCreateContactExportOutput = zod.z.object({
|
|
18
|
+
id: zod.z.number().int().describe("The unique identifier of the created export job").nullable().optional(),
|
|
19
|
+
url: zod.z.string().describe("The URL of the exported contacts file. Only available when the export is finished.").nullable().optional(),
|
|
20
|
+
status: MailtrapCreateContactExport_ExportStatusSchema.nullable().optional(),
|
|
21
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the export was created.").nullable().optional(),
|
|
22
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the export was last updated.").nullable().optional()
|
|
23
|
+
});
|
|
24
|
+
const mailtrapCreateContactExport = require_action.action("MAILTRAP_CREATE_CONTACT_EXPORT", {
|
|
25
|
+
slug: "mailtrap-create-contact-export",
|
|
26
|
+
name: "Create Contact Export",
|
|
27
|
+
description: "Tool to create a contact export job for a Mailtrap account. Use when you need to export contacts with filters. The export is processed asynchronously - the response includes a job ID and status. Check the status field; when it becomes 'finished', the url field will contain the download link for the exported contacts file. Filters are required - you must specify at least one filter such as subscription_status (subscribed/unsubscribed) or list_id (array of list IDs).",
|
|
28
|
+
input: MailtrapCreateContactExportInput,
|
|
29
|
+
output: MailtrapCreateContactExportOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.mailtrapCreateContactExport = mailtrapCreateContactExport;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=create-contact-export.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-export.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-export.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCreateContactExportInput: z.ZodTypeAny = z.object({\n filters: z.array(z.object({\n name: z.string().describe(\"The name of the field to filter on. Common filter names include 'list_id' (array of integers) and 'subscription_status' (string value like 'subscribed', 'unsubscribed').\"),\n value: z.union([z.string(), z.array(z.number().int())]),\n operator: z.string().describe(\"The comparison operator to use for filtering. Typically 'equal'.\"),\n}).describe(\"Filter to apply when exporting contacts\")).describe(\"Array of filters to apply when exporting contacts. Each filter specifies a field name, operator, and value. Required - must contain at least one filter. Common filters: 'subscription_status' (values: 'subscribed', 'unsubscribed') or 'list_id' (array of list IDs).\"),\n account_id: z.number().int().describe(\"Unique account ID to create the contact export for\"),\n});\nconst MailtrapCreateContactExport_ExportStatusSchema: z.ZodTypeAny = z.enum([\"created\", \"started\", \"finished\"]).describe(\"Status of the contact export.\");\nexport const MailtrapCreateContactExportOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the created export job\").nullable().optional(),\n url: z.string().describe(\"The URL of the exported contacts file. Only available when the export is finished.\").nullable().optional(),\n status: MailtrapCreateContactExport_ExportStatusSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the export was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the export was last updated.\").nullable().optional(),\n});\n\nexport const mailtrapCreateContactExport = action(\"MAILTRAP_CREATE_CONTACT_EXPORT\", {\n slug: \"mailtrap-create-contact-export\",\n name: \"Create Contact Export\",\n description: \"Tool to create a contact export job for a Mailtrap account. Use when you need to export contacts with filters. The export is processed asynchronously - the response includes a job ID and status. Check the status field; when it becomes 'finished', the url field will contain the download link for the exported contacts file. Filters are required - you must specify at least one filter such as subscription_status (subscribed/unsubscribed) or list_id (array of list IDs).\",\n input: MailtrapCreateContactExportInput,\n output: MailtrapCreateContactExportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;EACrM,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;EACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,CAAC,SAAS,yQAAyQ;CACxU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AAC5F,CAAC;AACD,MAAM,iDAA+DA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAW;AAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B;AACxJ,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,QAAQ,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,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-contact-export.d.ts
|
|
4
|
+
declare const MailtrapCreateContactExportInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCreateContactExportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCreateContactExport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCreateContactExport };
|
|
9
|
+
//# sourceMappingURL=create-contact-export.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-export.d.cts","names":[],"sources":["../../src/actions/create-contact-export.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAO/C;AAAA,cAEW,iCAAA,EAAmC,CAAA,CAAE,UAMhD;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-contact-export.d.ts
|
|
4
|
+
declare const MailtrapCreateContactExportInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCreateContactExportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCreateContactExport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCreateContactExport };
|
|
9
|
+
//# sourceMappingURL=create-contact-export.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-export.d.mts","names":[],"sources":["../../src/actions/create-contact-export.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAO/C;AAAA,cAEW,iCAAA,EAAmC,CAAA,CAAE,UAMhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-contact-export.ts
|
|
4
|
+
const MailtrapCreateContactExportInput = z.object({
|
|
5
|
+
filters: z.array(z.object({
|
|
6
|
+
name: z.string().describe("The name of the field to filter on. Common filter names include 'list_id' (array of integers) and 'subscription_status' (string value like 'subscribed', 'unsubscribed')."),
|
|
7
|
+
value: z.union([z.string(), z.array(z.number().int())]),
|
|
8
|
+
operator: z.string().describe("The comparison operator to use for filtering. Typically 'equal'.")
|
|
9
|
+
}).describe("Filter to apply when exporting contacts")).describe("Array of filters to apply when exporting contacts. Each filter specifies a field name, operator, and value. Required - must contain at least one filter. Common filters: 'subscription_status' (values: 'subscribed', 'unsubscribed') or 'list_id' (array of list IDs)."),
|
|
10
|
+
account_id: z.number().int().describe("Unique account ID to create the contact export for")
|
|
11
|
+
});
|
|
12
|
+
const MailtrapCreateContactExport_ExportStatusSchema = z.enum([
|
|
13
|
+
"created",
|
|
14
|
+
"started",
|
|
15
|
+
"finished"
|
|
16
|
+
]).describe("Status of the contact export.");
|
|
17
|
+
const mailtrapCreateContactExport = action("MAILTRAP_CREATE_CONTACT_EXPORT", {
|
|
18
|
+
slug: "mailtrap-create-contact-export",
|
|
19
|
+
name: "Create Contact Export",
|
|
20
|
+
description: "Tool to create a contact export job for a Mailtrap account. Use when you need to export contacts with filters. The export is processed asynchronously - the response includes a job ID and status. Check the status field; when it becomes 'finished', the url field will contain the download link for the exported contacts file. Filters are required - you must specify at least one filter such as subscription_status (subscribed/unsubscribed) or list_id (array of list IDs).",
|
|
21
|
+
input: MailtrapCreateContactExportInput,
|
|
22
|
+
output: z.object({
|
|
23
|
+
id: z.number().int().describe("The unique identifier of the created export job").nullable().optional(),
|
|
24
|
+
url: z.string().describe("The URL of the exported contacts file. Only available when the export is finished.").nullable().optional(),
|
|
25
|
+
status: MailtrapCreateContactExport_ExportStatusSchema.nullable().optional(),
|
|
26
|
+
created_at: z.string().describe("ISO 8601 timestamp when the export was created.").nullable().optional(),
|
|
27
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the export was last updated.").nullable().optional()
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { mailtrapCreateContactExport };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=create-contact-export.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-export.mjs","names":[],"sources":["../../src/actions/create-contact-export.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCreateContactExportInput: z.ZodTypeAny = z.object({\n filters: z.array(z.object({\n name: z.string().describe(\"The name of the field to filter on. Common filter names include 'list_id' (array of integers) and 'subscription_status' (string value like 'subscribed', 'unsubscribed').\"),\n value: z.union([z.string(), z.array(z.number().int())]),\n operator: z.string().describe(\"The comparison operator to use for filtering. Typically 'equal'.\"),\n}).describe(\"Filter to apply when exporting contacts\")).describe(\"Array of filters to apply when exporting contacts. Each filter specifies a field name, operator, and value. Required - must contain at least one filter. Common filters: 'subscription_status' (values: 'subscribed', 'unsubscribed') or 'list_id' (array of list IDs).\"),\n account_id: z.number().int().describe(\"Unique account ID to create the contact export for\"),\n});\nconst MailtrapCreateContactExport_ExportStatusSchema: z.ZodTypeAny = z.enum([\"created\", \"started\", \"finished\"]).describe(\"Status of the contact export.\");\nexport const MailtrapCreateContactExportOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the created export job\").nullable().optional(),\n url: z.string().describe(\"The URL of the exported contacts file. Only available when the export is finished.\").nullable().optional(),\n status: MailtrapCreateContactExport_ExportStatusSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the export was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the export was last updated.\").nullable().optional(),\n});\n\nexport const mailtrapCreateContactExport = action(\"MAILTRAP_CREATE_CONTACT_EXPORT\", {\n slug: \"mailtrap-create-contact-export\",\n name: \"Create Contact Export\",\n description: \"Tool to create a contact export job for a Mailtrap account. Use when you need to export contacts with filters. The export is processed asynchronously - the response includes a job ID and status. Check the status field; when it becomes 'finished', the url field will contain the download link for the exported contacts file. Filters are required - you must specify at least one filter such as subscription_status (subscribed/unsubscribed) or list_id (array of list IDs).\",\n input: MailtrapCreateContactExportInput,\n output: MailtrapCreateContactExportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;EACrM,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;EACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,CAAC,SAAS,yQAAyQ;CACxU,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AAC5F,CAAC;AACD,MAAM,iDAA+D,EAAE,KAAK;CAAC;CAAW;CAAW;AAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B;AASxJ,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6D,EAAE,OAAO;EACtE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,QAAQ,+CAA+C,SAAS,CAAC,CAAC,SAAS;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-contact-field.ts
|
|
4
|
+
const MailtrapCreateContactFieldInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the contact field (max 80 characters)"),
|
|
6
|
+
data_type: zod.z.enum([
|
|
7
|
+
"text",
|
|
8
|
+
"integer",
|
|
9
|
+
"float",
|
|
10
|
+
"boolean",
|
|
11
|
+
"date"
|
|
12
|
+
]).describe("Data type for the contact field. Choose from: text, integer, float, boolean, or date"),
|
|
13
|
+
merge_tag: zod.z.string().describe("Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient (max 80 characters)"),
|
|
14
|
+
account_id: zod.z.number().int().describe("Unique account ID")
|
|
15
|
+
});
|
|
16
|
+
const MailtrapCreateContactFieldOutput = zod.z.object({
|
|
17
|
+
id: zod.z.number().int().describe("Unique ID of the created contact field").nullable().optional(),
|
|
18
|
+
name: zod.z.string().describe("Name of the contact field").nullable().optional(),
|
|
19
|
+
data_type: zod.z.string().describe("Data type of the contact field").nullable().optional(),
|
|
20
|
+
merge_tag: zod.z.string().describe("Merge tag for the contact field").nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const mailtrapCreateContactField = require_action.action("MAILTRAP_CREATE_CONTACT_FIELD", {
|
|
23
|
+
slug: "mailtrap-create-contact-field",
|
|
24
|
+
name: "Create Contact Field",
|
|
25
|
+
description: "Tool to create a custom contact field in Mailtrap. Use when you need to add new contact attributes for personalization and segmentation in email campaigns.",
|
|
26
|
+
input: MailtrapCreateContactFieldInput,
|
|
27
|
+
output: MailtrapCreateContactFieldOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.mailtrapCreateContactField = mailtrapCreateContactField;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=create-contact-field.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-field.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCreateContactFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the contact field (max 80 characters)\"),\n data_type: z.enum([\"text\", \"integer\", \"float\", \"boolean\", \"date\"]).describe(\"Data type for the contact field. Choose from: text, integer, float, boolean, or date\"),\n merge_tag: z.string().describe(\"Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient (max 80 characters)\"),\n account_id: z.number().int().describe(\"Unique account ID\"),\n});\nexport const MailtrapCreateContactFieldOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created contact field\").nullable().optional(),\n name: z.string().describe(\"Name of the contact field\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the contact field\").nullable().optional(),\n merge_tag: z.string().describe(\"Merge tag for the contact field\").nullable().optional(),\n});\n\nexport const mailtrapCreateContactField = action(\"MAILTRAP_CREATE_CONTACT_FIELD\", {\n slug: \"mailtrap-create-contact-field\",\n name: \"Create Contact Field\",\n description: \"Tool to create a custom contact field in Mailtrap. Use when you need to add new contact attributes for personalization and segmentation in email campaigns.\",\n input: MailtrapCreateContactFieldInput,\n output: MailtrapCreateContactFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAW;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,sFAAsF;CAClK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;CACjL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;AAC3D,CAAC;AACD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,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-contact-field.d.ts
|
|
4
|
+
declare const MailtrapCreateContactFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCreateContactFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCreateContactField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCreateContactField };
|
|
9
|
+
//# sourceMappingURL=create-contact-field.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-field.d.cts","names":[],"sources":["../../src/actions/create-contact-field.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAK9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAK/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-contact-field.d.ts
|
|
4
|
+
declare const MailtrapCreateContactFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const MailtrapCreateContactFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mailtrapCreateContactField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mailtrapCreateContactField };
|
|
9
|
+
//# sourceMappingURL=create-contact-field.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-field.d.mts","names":[],"sources":["../../src/actions/create-contact-field.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAK9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAK/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const mailtrapCreateContactField = action("MAILTRAP_CREATE_CONTACT_FIELD", {
|
|
4
|
+
slug: "mailtrap-create-contact-field",
|
|
5
|
+
name: "Create Contact Field",
|
|
6
|
+
description: "Tool to create a custom contact field in Mailtrap. Use when you need to add new contact attributes for personalization and segmentation in email campaigns.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
name: z.string().describe("Name of the contact field (max 80 characters)"),
|
|
9
|
+
data_type: z.enum([
|
|
10
|
+
"text",
|
|
11
|
+
"integer",
|
|
12
|
+
"float",
|
|
13
|
+
"boolean",
|
|
14
|
+
"date"
|
|
15
|
+
]).describe("Data type for the contact field. Choose from: text, integer, float, boolean, or date"),
|
|
16
|
+
merge_tag: z.string().describe("Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient (max 80 characters)"),
|
|
17
|
+
account_id: z.number().int().describe("Unique account ID")
|
|
18
|
+
}),
|
|
19
|
+
output: z.object({
|
|
20
|
+
id: z.number().int().describe("Unique ID of the created contact field").nullable().optional(),
|
|
21
|
+
name: z.string().describe("Name of the contact field").nullable().optional(),
|
|
22
|
+
data_type: z.string().describe("Data type of the contact field").nullable().optional(),
|
|
23
|
+
merge_tag: z.string().describe("Merge tag for the contact field").nullable().optional()
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { mailtrapCreateContactField };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=create-contact-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-field.mjs","names":[],"sources":["../../src/actions/create-contact-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCreateContactFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the contact field (max 80 characters)\"),\n data_type: z.enum([\"text\", \"integer\", \"float\", \"boolean\", \"date\"]).describe(\"Data type for the contact field. Choose from: text, integer, float, boolean, or date\"),\n merge_tag: z.string().describe(\"Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient (max 80 characters)\"),\n account_id: z.number().int().describe(\"Unique account ID\"),\n});\nexport const MailtrapCreateContactFieldOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created contact field\").nullable().optional(),\n name: z.string().describe(\"Name of the contact field\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the contact field\").nullable().optional(),\n merge_tag: z.string().describe(\"Merge tag for the contact field\").nullable().optional(),\n});\n\nexport const mailtrapCreateContactField = action(\"MAILTRAP_CREATE_CONTACT_FIELD\", {\n slug: \"mailtrap-create-contact-field\",\n name: \"Create Contact Field\",\n description: \"Tool to create a custom contact field in Mailtrap. Use when you need to add new contact attributes for personalization and segmentation in email campaigns.\",\n input: MailtrapCreateContactFieldInput,\n output: MailtrapCreateContactFieldOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACzE,WAAW,EAAE,KAAK;GAAC;GAAQ;GAAW;GAAS;GAAW;EAAM,CAAC,CAAC,CAAC,SAAS,sFAAsF;EAClK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;EACjL,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;CAC3D,CAYS;CACP,QAZ4D,EAAE,OAAO;EACrE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-contact-list.ts
|
|
4
|
+
const MailtrapCreateContactListInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the contact list to create. Maximum length is 255 characters."),
|
|
6
|
+
account_id: zod.z.number().int().describe("Unique account ID")
|
|
7
|
+
});
|
|
8
|
+
const MailtrapCreateContactListOutput = zod.z.object({
|
|
9
|
+
id: zod.z.number().int().describe("Unique identifier for the created contact list"),
|
|
10
|
+
name: zod.z.string().describe("Name of the created contact list")
|
|
11
|
+
});
|
|
12
|
+
const mailtrapCreateContactList = require_action.action("MAILTRAP_CREATE_CONTACT_LIST", {
|
|
13
|
+
slug: "mailtrap-create-contact-list",
|
|
14
|
+
name: "Create Contact List",
|
|
15
|
+
description: "Tool to create a new contact list in Mailtrap. Use when you need to organize contacts into groups or segments. Each contact list has a unique ID and name that can be used to add contacts to it later.",
|
|
16
|
+
input: MailtrapCreateContactListInput,
|
|
17
|
+
output: MailtrapCreateContactListOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.mailtrapCreateContactList = mailtrapCreateContactList;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=create-contact-list.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-contact-list.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapCreateContactListInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the contact list to create. Maximum length is 255 characters.\"),\n account_id: z.number().int().describe(\"Unique account ID\"),\n});\nexport const MailtrapCreateContactListOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the created contact list\"),\n name: z.string().describe(\"Name of the created contact list\"),\n});\n\nexport const mailtrapCreateContactList = action(\"MAILTRAP_CREATE_CONTACT_LIST\", {\n slug: \"mailtrap-create-contact-list\",\n name: \"Create Contact List\",\n description: \"Tool to create a new contact list in Mailtrap. Use when you need to organize contacts into groups or segments. Each contact list has a unique ID and name that can be used to add contacts to it later.\",\n input: MailtrapCreateContactListInput,\n output: MailtrapCreateContactListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;AAC3D,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AAC9D,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|