@keystrokehq/sendgrid 0.0.16 → 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 +10 -166
- 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/activate-template-version.cjs +33 -0
- package/dist/actions/activate-template-version.cjs.map +1 -0
- package/dist/actions/activate-template-version.d.cts +9 -0
- package/dist/actions/activate-template-version.d.cts.map +1 -0
- package/dist/actions/activate-template-version.d.mts +9 -0
- package/dist/actions/activate-template-version.d.mts.map +1 -0
- package/dist/actions/activate-template-version.mjs +32 -0
- package/dist/actions/activate-template-version.mjs.map +1 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.cjs +24 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.cjs.map +1 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.d.cts +9 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.d.cts.map +1 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.d.mts +9 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.d.mts.map +1 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.mjs +21 -0
- package/dist/actions/add-a-batch-of-ips-to-an-ip-pool.mjs.map +1 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.cjs +38 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.cjs.map +1 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.d.cts +9 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.d.cts.map +1 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.d.mts +9 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.d.mts.map +1 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.mjs +37 -0
- package/dist/actions/add-a-twilio-send-grid-ip-address.mjs.map +1 -0
- package/dist/actions/add-an-ip-address-to-a-pool.cjs +24 -0
- package/dist/actions/add-an-ip-address-to-a-pool.cjs.map +1 -0
- package/dist/actions/add-an-ip-address-to-a-pool.d.cts +9 -0
- package/dist/actions/add-an-ip-address-to-a-pool.d.cts.map +1 -0
- package/dist/actions/add-an-ip-address-to-a-pool.d.mts +9 -0
- package/dist/actions/add-an-ip-address-to-a-pool.d.mts.map +1 -0
- package/dist/actions/add-an-ip-address-to-a-pool.mjs +21 -0
- package/dist/actions/add-an-ip-address-to-a-pool.mjs.map +1 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.cjs +46 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.cjs.map +1 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.d.cts +9 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.d.cts.map +1 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.d.mts +9 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.d.mts.map +1 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.mjs +45 -0
- package/dist/actions/add-an-ip-to-an-authenticated-domain.mjs.map +1 -0
- package/dist/actions/add-ips.cjs +28 -0
- package/dist/actions/add-ips.cjs.map +1 -0
- package/dist/actions/add-ips.d.cts +9 -0
- package/dist/actions/add-ips.d.cts.map +1 -0
- package/dist/actions/add-ips.d.mts +9 -0
- package/dist/actions/add-ips.d.mts.map +1 -0
- package/dist/actions/add-ips.mjs +27 -0
- package/dist/actions/add-ips.mjs.map +1 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.cjs +22 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.cjs.map +1 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.d.cts +9 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.d.cts.map +1 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.d.mts +9 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.d.mts.map +1 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.mjs +21 -0
- package/dist/actions/add-one-or-more-ips-to-the-allow-list.mjs.map +1 -0
- package/dist/actions/add-or-update-a-contact.cjs +19 -0
- package/dist/actions/add-or-update-a-contact.cjs.map +1 -0
- package/dist/actions/add-or-update-a-contact.d.cts +9 -0
- package/dist/actions/add-or-update-a-contact.d.cts.map +1 -0
- package/dist/actions/add-or-update-a-contact.d.mts +9 -0
- package/dist/actions/add-or-update-a-contact.d.mts.map +1 -0
- package/dist/actions/add-or-update-a-contact.mjs +16 -0
- package/dist/actions/add-or-update-a-contact.mjs.map +1 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.cjs +23 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.cjs.map +1 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.d.cts +9 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.d.cts.map +1 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.d.mts +9 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.d.mts.map +1 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.mjs +22 -0
- package/dist/actions/add-suppressions-to-a-suppression-group.mjs.map +1 -0
- package/dist/actions/add-to-global-suppressions-group.cjs +17 -0
- package/dist/actions/add-to-global-suppressions-group.cjs.map +1 -0
- package/dist/actions/add-to-global-suppressions-group.d.cts +9 -0
- package/dist/actions/add-to-global-suppressions-group.d.cts.map +1 -0
- package/dist/actions/add-to-global-suppressions-group.d.mts +9 -0
- package/dist/actions/add-to-global-suppressions-group.d.mts.map +1 -0
- package/dist/actions/add-to-global-suppressions-group.mjs +16 -0
- package/dist/actions/add-to-global-suppressions-group.mjs.map +1 -0
- package/dist/actions/approve-access-request.cjs +20 -0
- package/dist/actions/approve-access-request.cjs.map +1 -0
- package/dist/actions/approve-access-request.d.cts +9 -0
- package/dist/actions/approve-access-request.d.cts.map +1 -0
- package/dist/actions/approve-access-request.d.mts +9 -0
- package/dist/actions/approve-access-request.d.mts.map +1 -0
- package/dist/actions/approve-access-request.mjs +19 -0
- package/dist/actions/approve-access-request.mjs.map +1 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.cjs +22 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.cjs.map +1 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.d.cts +9 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.d.cts.map +1 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.d.mts +9 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.d.mts.map +1 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.mjs +19 -0
- package/dist/actions/assign-a-batch-of-subusers-to-an-ip.mjs.map +1 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.cjs +41 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.cjs.map +1 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.d.cts +9 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.d.cts.map +1 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.d.mts +9 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.d.mts.map +1 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.mjs +40 -0
- package/dist/actions/associate-a-branded-link-with-a-subuser.mjs.map +1 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.cjs +44 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.cjs.map +1 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.d.cts +9 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.d.cts.map +1 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.d.mts +9 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.d.mts.map +1 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.mjs +43 -0
- package/dist/actions/associate-an-authenticated-domain-with-a-given-user.mjs.map +1 -0
- package/dist/actions/authenticate-a-domain.cjs +40 -0
- package/dist/actions/authenticate-a-domain.cjs.map +1 -0
- package/dist/actions/authenticate-a-domain.d.cts +9 -0
- package/dist/actions/authenticate-a-domain.d.cts.map +1 -0
- package/dist/actions/authenticate-a-domain.d.mts +9 -0
- package/dist/actions/authenticate-a-domain.d.mts.map +1 -0
- package/dist/actions/authenticate-a-domain.mjs +39 -0
- package/dist/actions/authenticate-a-domain.mjs.map +1 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.cjs +21 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.cjs.map +1 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.d.cts +9 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.d.cts.map +1 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.d.mts +9 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.d.mts.map +1 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.mjs +20 -0
- package/dist/actions/authenticate-an-account-with-single-sign-on.mjs.map +1 -0
- package/dist/actions/bind-authenticated-domains-to-user.cjs +32 -0
- package/dist/actions/bind-authenticated-domains-to-user.cjs.map +1 -0
- package/dist/actions/bind-authenticated-domains-to-user.d.cts +9 -0
- package/dist/actions/bind-authenticated-domains-to-user.d.cts.map +1 -0
- package/dist/actions/bind-authenticated-domains-to-user.d.mts +9 -0
- package/dist/actions/bind-authenticated-domains-to-user.d.mts.map +1 -0
- package/dist/actions/bind-authenticated-domains-to-user.mjs +29 -0
- package/dist/actions/bind-authenticated-domains-to-user.mjs.map +1 -0
- package/dist/actions/bulk-delete-single-sends.cjs +16 -0
- package/dist/actions/bulk-delete-single-sends.cjs.map +1 -0
- package/dist/actions/bulk-delete-single-sends.d.cts +9 -0
- package/dist/actions/bulk-delete-single-sends.d.cts.map +1 -0
- package/dist/actions/bulk-delete-single-sends.d.mts +9 -0
- package/dist/actions/bulk-delete-single-sends.d.mts.map +1 -0
- package/dist/actions/bulk-delete-single-sends.mjs +13 -0
- package/dist/actions/bulk-delete-single-sends.mjs.map +1 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.cjs +23 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.cjs.map +1 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.d.cts +9 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.d.cts.map +1 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.d.mts +9 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.d.mts.map +1 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.mjs +22 -0
- package/dist/actions/cancel-or-pause-a-scheduled-send.mjs.map +1 -0
- package/dist/actions/completed-steps.cjs +21 -0
- package/dist/actions/completed-steps.cjs.map +1 -0
- package/dist/actions/completed-steps.d.cts +9 -0
- package/dist/actions/completed-steps.d.cts.map +1 -0
- package/dist/actions/completed-steps.d.mts +9 -0
- package/dist/actions/completed-steps.d.mts.map +1 -0
- package/dist/actions/completed-steps.mjs +20 -0
- package/dist/actions/completed-steps.mjs.map +1 -0
- package/dist/actions/create-a-batch-id.cjs +17 -0
- package/dist/actions/create-a-batch-id.cjs.map +1 -0
- package/dist/actions/create-a-batch-id.d.cts +9 -0
- package/dist/actions/create-a-batch-id.d.cts.map +1 -0
- package/dist/actions/create-a-batch-id.d.mts +9 -0
- package/dist/actions/create-a-batch-id.d.mts.map +1 -0
- package/dist/actions/create-a-batch-id.mjs +16 -0
- package/dist/actions/create-a-batch-id.mjs.map +1 -0
- package/dist/actions/create-a-branded-link.cjs +43 -0
- package/dist/actions/create-a-branded-link.cjs.map +1 -0
- package/dist/actions/create-a-branded-link.d.cts +9 -0
- package/dist/actions/create-a-branded-link.d.cts.map +1 -0
- package/dist/actions/create-a-branded-link.d.mts +9 -0
- package/dist/actions/create-a-branded-link.d.mts.map +1 -0
- package/dist/actions/create-a-branded-link.mjs +42 -0
- package/dist/actions/create-a-branded-link.mjs.map +1 -0
- package/dist/actions/create-a-campaign.cjs +45 -0
- package/dist/actions/create-a-campaign.cjs.map +1 -0
- package/dist/actions/create-a-campaign.d.cts +9 -0
- package/dist/actions/create-a-campaign.d.cts.map +1 -0
- package/dist/actions/create-a-campaign.d.mts +9 -0
- package/dist/actions/create-a-campaign.d.mts.map +1 -0
- package/dist/actions/create-a-campaign.mjs +44 -0
- package/dist/actions/create-a-campaign.mjs.map +1 -0
- package/dist/actions/create-a-custom-field.cjs +24 -0
- package/dist/actions/create-a-custom-field.cjs.map +1 -0
- package/dist/actions/create-a-custom-field.d.cts +9 -0
- package/dist/actions/create-a-custom-field.d.cts.map +1 -0
- package/dist/actions/create-a-custom-field.d.mts +9 -0
- package/dist/actions/create-a-custom-field.d.mts.map +1 -0
- package/dist/actions/create-a-custom-field.mjs +23 -0
- package/dist/actions/create-a-custom-field.mjs.map +1 -0
- package/dist/actions/create-a-list.cjs +20 -0
- package/dist/actions/create-a-list.cjs.map +1 -0
- package/dist/actions/create-a-list.d.cts +9 -0
- package/dist/actions/create-a-list.d.cts.map +1 -0
- package/dist/actions/create-a-list.d.mts +9 -0
- package/dist/actions/create-a-list.d.mts.map +1 -0
- package/dist/actions/create-a-list.mjs +17 -0
- package/dist/actions/create-a-list.mjs.map +1 -0
- package/dist/actions/create-a-new-alert.cjs +34 -0
- package/dist/actions/create-a-new-alert.cjs.map +1 -0
- package/dist/actions/create-a-new-alert.d.cts +9 -0
- package/dist/actions/create-a-new-alert.d.cts.map +1 -0
- package/dist/actions/create-a-new-alert.d.mts +9 -0
- package/dist/actions/create-a-new-alert.d.mts.map +1 -0
- package/dist/actions/create-a-new-alert.mjs +33 -0
- package/dist/actions/create-a-new-alert.mjs.map +1 -0
- package/dist/actions/create-a-new-event-webhook.cjs +55 -0
- package/dist/actions/create-a-new-event-webhook.cjs.map +1 -0
- package/dist/actions/create-a-new-event-webhook.d.cts +9 -0
- package/dist/actions/create-a-new-event-webhook.d.cts.map +1 -0
- package/dist/actions/create-a-new-event-webhook.d.mts +9 -0
- package/dist/actions/create-a-new-event-webhook.d.mts.map +1 -0
- package/dist/actions/create-a-new-event-webhook.mjs +52 -0
- package/dist/actions/create-a-new-event-webhook.mjs.map +1 -0
- package/dist/actions/create-a-new-suppression-group.cjs +26 -0
- package/dist/actions/create-a-new-suppression-group.cjs.map +1 -0
- package/dist/actions/create-a-new-suppression-group.d.cts +9 -0
- package/dist/actions/create-a-new-suppression-group.d.cts.map +1 -0
- package/dist/actions/create-a-new-suppression-group.d.mts +9 -0
- package/dist/actions/create-a-new-suppression-group.d.mts.map +1 -0
- package/dist/actions/create-a-new-suppression-group.mjs +25 -0
- package/dist/actions/create-a-new-suppression-group.mjs.map +1 -0
- package/dist/actions/create-a-new-transactional-template-version.cjs +40 -0
- package/dist/actions/create-a-new-transactional-template-version.cjs.map +1 -0
- package/dist/actions/create-a-new-transactional-template-version.d.cts +9 -0
- package/dist/actions/create-a-new-transactional-template-version.d.cts.map +1 -0
- package/dist/actions/create-a-new-transactional-template-version.d.mts +9 -0
- package/dist/actions/create-a-new-transactional-template-version.d.mts.map +1 -0
- package/dist/actions/create-a-new-transactional-template-version.mjs +39 -0
- package/dist/actions/create-a-new-transactional-template-version.mjs.map +1 -0
- package/dist/actions/create-a-parse-setting.cjs +27 -0
- package/dist/actions/create-a-parse-setting.cjs.map +1 -0
- package/dist/actions/create-a-parse-setting.d.cts +9 -0
- package/dist/actions/create-a-parse-setting.d.cts.map +1 -0
- package/dist/actions/create-a-parse-setting.d.mts +9 -0
- package/dist/actions/create-a-parse-setting.d.mts.map +1 -0
- package/dist/actions/create-a-parse-setting.mjs +26 -0
- package/dist/actions/create-a-parse-setting.mjs.map +1 -0
- package/dist/actions/create-a-segment.cjs +33 -0
- package/dist/actions/create-a-segment.cjs.map +1 -0
- package/dist/actions/create-a-segment.d.cts +9 -0
- package/dist/actions/create-a-segment.d.cts.map +1 -0
- package/dist/actions/create-a-segment.d.mts +9 -0
- package/dist/actions/create-a-segment.d.mts.map +1 -0
- package/dist/actions/create-a-segment.mjs +32 -0
- package/dist/actions/create-a-segment.mjs.map +1 -0
- package/dist/actions/create-a-sender-identity.cjs +51 -0
- package/dist/actions/create-a-sender-identity.cjs.map +1 -0
- package/dist/actions/create-a-sender-identity.d.cts +9 -0
- package/dist/actions/create-a-sender-identity.d.cts.map +1 -0
- package/dist/actions/create-a-sender-identity.d.mts +9 -0
- package/dist/actions/create-a-sender-identity.d.mts.map +1 -0
- package/dist/actions/create-a-sender-identity.mjs +50 -0
- package/dist/actions/create-a-sender-identity.mjs.map +1 -0
- package/dist/actions/create-a-sender.cjs +56 -0
- package/dist/actions/create-a-sender.cjs.map +1 -0
- package/dist/actions/create-a-sender.d.cts +9 -0
- package/dist/actions/create-a-sender.d.cts.map +1 -0
- package/dist/actions/create-a-sender.d.mts +9 -0
- package/dist/actions/create-a-sender.d.mts.map +1 -0
- package/dist/actions/create-a-sender.mjs +55 -0
- package/dist/actions/create-a-sender.mjs.map +1 -0
- package/dist/actions/create-a-transactional-template.cjs +26 -0
- package/dist/actions/create-a-transactional-template.cjs.map +1 -0
- package/dist/actions/create-a-transactional-template.d.cts +9 -0
- package/dist/actions/create-a-transactional-template.d.cts.map +1 -0
- package/dist/actions/create-a-transactional-template.d.mts +9 -0
- package/dist/actions/create-a-transactional-template.d.mts.map +1 -0
- package/dist/actions/create-a-transactional-template.mjs +25 -0
- package/dist/actions/create-a-transactional-template.mjs.map +1 -0
- package/dist/actions/create-an-account.cjs +25 -0
- package/dist/actions/create-an-account.cjs.map +1 -0
- package/dist/actions/create-an-account.d.cts +9 -0
- package/dist/actions/create-an-account.d.cts.map +1 -0
- package/dist/actions/create-an-account.d.mts +9 -0
- package/dist/actions/create-an-account.d.mts.map +1 -0
- package/dist/actions/create-an-account.mjs +22 -0
- package/dist/actions/create-an-account.mjs.map +1 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.cjs +29 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.cjs.map +1 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.d.cts +9 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.d.cts.map +1 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.d.mts +9 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.d.mts.map +1 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.mjs +28 -0
- package/dist/actions/create-an-ip-pool-with-a-name-and-ip-assignments.mjs.map +1 -0
- package/dist/actions/create-an-ip-pool.cjs +17 -0
- package/dist/actions/create-an-ip-pool.cjs.map +1 -0
- package/dist/actions/create-an-ip-pool.d.cts +9 -0
- package/dist/actions/create-an-ip-pool.d.cts.map +1 -0
- package/dist/actions/create-an-ip-pool.d.mts +9 -0
- package/dist/actions/create-an-ip-pool.d.mts.map +1 -0
- package/dist/actions/create-an-ip-pool.mjs +16 -0
- package/dist/actions/create-an-ip-pool.mjs.map +1 -0
- package/dist/actions/create-an-sso-certificate.cjs +28 -0
- package/dist/actions/create-an-sso-certificate.cjs.map +1 -0
- package/dist/actions/create-an-sso-certificate.d.cts +9 -0
- package/dist/actions/create-an-sso-certificate.d.cts.map +1 -0
- package/dist/actions/create-an-sso-certificate.d.mts +9 -0
- package/dist/actions/create-an-sso-certificate.d.mts.map +1 -0
- package/dist/actions/create-an-sso-certificate.mjs +27 -0
- package/dist/actions/create-an-sso-certificate.mjs.map +1 -0
- package/dist/actions/create-an-sso-integration.cjs +34 -0
- package/dist/actions/create-an-sso-integration.cjs.map +1 -0
- package/dist/actions/create-an-sso-integration.d.cts +9 -0
- package/dist/actions/create-an-sso-integration.d.cts.map +1 -0
- package/dist/actions/create-an-sso-integration.d.mts +9 -0
- package/dist/actions/create-an-sso-integration.d.mts.map +1 -0
- package/dist/actions/create-an-sso-integration.mjs +33 -0
- package/dist/actions/create-an-sso-integration.mjs.map +1 -0
- package/dist/actions/create-an-sso-teammate.cjs +56 -0
- package/dist/actions/create-an-sso-teammate.cjs.map +1 -0
- package/dist/actions/create-an-sso-teammate.d.cts +9 -0
- package/dist/actions/create-an-sso-teammate.d.cts.map +1 -0
- package/dist/actions/create-an-sso-teammate.d.mts +9 -0
- package/dist/actions/create-an-sso-teammate.d.mts.map +1 -0
- package/dist/actions/create-an-sso-teammate.mjs +55 -0
- package/dist/actions/create-an-sso-teammate.mjs.map +1 -0
- package/dist/actions/create-api-keys.cjs +24 -0
- package/dist/actions/create-api-keys.cjs.map +1 -0
- package/dist/actions/create-api-keys.d.cts +9 -0
- package/dist/actions/create-api-keys.d.cts.map +1 -0
- package/dist/actions/create-api-keys.d.mts +9 -0
- package/dist/actions/create-api-keys.d.mts.map +1 -0
- package/dist/actions/create-api-keys.mjs +21 -0
- package/dist/actions/create-api-keys.mjs.map +1 -0
- package/dist/actions/create-custom-field-definition.cjs +30 -0
- package/dist/actions/create-custom-field-definition.cjs.map +1 -0
- package/dist/actions/create-custom-field-definition.d.cts +9 -0
- package/dist/actions/create-custom-field-definition.d.cts.map +1 -0
- package/dist/actions/create-custom-field-definition.d.mts +9 -0
- package/dist/actions/create-custom-field-definition.d.mts.map +1 -0
- package/dist/actions/create-custom-field-definition.mjs +29 -0
- package/dist/actions/create-custom-field-definition.mjs.map +1 -0
- package/dist/actions/create-design.cjs +34 -0
- package/dist/actions/create-design.cjs.map +1 -0
- package/dist/actions/create-design.d.cts +9 -0
- package/dist/actions/create-design.d.cts.map +1 -0
- package/dist/actions/create-design.d.mts +9 -0
- package/dist/actions/create-design.d.mts.map +1 -0
- package/dist/actions/create-design.mjs +33 -0
- package/dist/actions/create-design.mjs.map +1 -0
- package/dist/actions/create-integration.cjs +49 -0
- package/dist/actions/create-integration.cjs.map +1 -0
- package/dist/actions/create-integration.d.cts +9 -0
- package/dist/actions/create-integration.d.cts.map +1 -0
- package/dist/actions/create-integration.d.mts +9 -0
- package/dist/actions/create-integration.d.mts.map +1 -0
- package/dist/actions/create-integration.mjs +48 -0
- package/dist/actions/create-integration.mjs.map +1 -0
- package/dist/actions/create-list.cjs +22 -0
- package/dist/actions/create-list.cjs.map +1 -0
- package/dist/actions/create-list.d.cts +9 -0
- package/dist/actions/create-list.d.cts.map +1 -0
- package/dist/actions/create-list.d.mts +9 -0
- package/dist/actions/create-list.d.mts.map +1 -0
- package/dist/actions/create-list.mjs +21 -0
- package/dist/actions/create-list.mjs.map +1 -0
- package/dist/actions/create-segment.cjs +32 -0
- package/dist/actions/create-segment.cjs.map +1 -0
- package/dist/actions/create-segment.d.cts +9 -0
- package/dist/actions/create-segment.d.cts.map +1 -0
- package/dist/actions/create-segment.d.mts +9 -0
- package/dist/actions/create-segment.d.mts.map +1 -0
- package/dist/actions/create-segment.mjs +31 -0
- package/dist/actions/create-segment.mjs.map +1 -0
- package/dist/actions/create-single-send.cjs +58 -0
- package/dist/actions/create-single-send.cjs.map +1 -0
- package/dist/actions/create-single-send.d.cts +9 -0
- package/dist/actions/create-single-send.d.cts.map +1 -0
- package/dist/actions/create-single-send.d.mts +9 -0
- package/dist/actions/create-single-send.d.mts.map +1 -0
- package/dist/actions/create-single-send.mjs +57 -0
- package/dist/actions/create-single-send.mjs.map +1 -0
- package/dist/actions/create-subuser.cjs +29 -0
- package/dist/actions/create-subuser.cjs.map +1 -0
- package/dist/actions/create-subuser.d.cts +9 -0
- package/dist/actions/create-subuser.d.cts.map +1 -0
- package/dist/actions/create-subuser.d.mts +9 -0
- package/dist/actions/create-subuser.d.mts.map +1 -0
- package/dist/actions/create-subuser.mjs +26 -0
- package/dist/actions/create-subuser.mjs.map +1 -0
- package/dist/actions/create-verified-sender-request.cjs +44 -0
- package/dist/actions/create-verified-sender-request.cjs.map +1 -0
- package/dist/actions/create-verified-sender-request.d.cts +9 -0
- package/dist/actions/create-verified-sender-request.d.cts.map +1 -0
- package/dist/actions/create-verified-sender-request.d.mts +9 -0
- package/dist/actions/create-verified-sender-request.d.mts.map +1 -0
- package/dist/actions/create-verified-sender-request.mjs +43 -0
- package/dist/actions/create-verified-sender-request.mjs.map +1 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.cjs +23 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.cjs.map +1 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.d.cts +9 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.d.cts.map +1 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.d.mts +9 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.d.mts.map +1 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.mjs +22 -0
- package/dist/actions/delete-a-batch-of-ips-from-an-ip-pool.mjs.map +1 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.cjs +24 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.cjs.map +1 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.d.cts +9 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.d.cts.map +1 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.d.mts +9 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.d.mts.map +1 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.mjs +23 -0
- package/dist/actions/delete-a-batch-of-subusers-from-an-ip.mjs.map +1 -0
- package/dist/actions/delete-a-bounce.cjs +20 -0
- package/dist/actions/delete-a-bounce.cjs.map +1 -0
- package/dist/actions/delete-a-bounce.d.cts +9 -0
- package/dist/actions/delete-a-bounce.d.cts.map +1 -0
- package/dist/actions/delete-a-bounce.d.mts +9 -0
- package/dist/actions/delete-a-bounce.d.mts.map +1 -0
- package/dist/actions/delete-a-bounce.mjs +19 -0
- package/dist/actions/delete-a-bounce.mjs.map +1 -0
- package/dist/actions/delete-a-branded-link.cjs +16 -0
- package/dist/actions/delete-a-branded-link.cjs.map +1 -0
- package/dist/actions/delete-a-branded-link.d.cts +9 -0
- package/dist/actions/delete-a-branded-link.d.cts.map +1 -0
- package/dist/actions/delete-a-branded-link.d.mts +9 -0
- package/dist/actions/delete-a-branded-link.d.mts.map +1 -0
- package/dist/actions/delete-a-branded-link.mjs +13 -0
- package/dist/actions/delete-a-branded-link.mjs.map +1 -0
- package/dist/actions/delete-a-campaign.cjs +21 -0
- package/dist/actions/delete-a-campaign.cjs.map +1 -0
- package/dist/actions/delete-a-campaign.d.cts +9 -0
- package/dist/actions/delete-a-campaign.d.cts.map +1 -0
- package/dist/actions/delete-a-campaign.d.mts +9 -0
- package/dist/actions/delete-a-campaign.d.mts.map +1 -0
- package/dist/actions/delete-a-campaign.mjs +20 -0
- package/dist/actions/delete-a-campaign.mjs.map +1 -0
- package/dist/actions/delete-a-contact-identifier.cjs +33 -0
- package/dist/actions/delete-a-contact-identifier.cjs.map +1 -0
- package/dist/actions/delete-a-contact-identifier.d.cts +9 -0
- package/dist/actions/delete-a-contact-identifier.d.cts.map +1 -0
- package/dist/actions/delete-a-contact-identifier.d.mts +9 -0
- package/dist/actions/delete-a-contact-identifier.d.mts.map +1 -0
- package/dist/actions/delete-a-contact-identifier.mjs +32 -0
- package/dist/actions/delete-a-contact-identifier.mjs.map +1 -0
- package/dist/actions/delete-a-custom-field.cjs +24 -0
- package/dist/actions/delete-a-custom-field.cjs.map +1 -0
- package/dist/actions/delete-a-custom-field.d.cts +9 -0
- package/dist/actions/delete-a-custom-field.d.cts.map +1 -0
- package/dist/actions/delete-a-custom-field.d.mts +9 -0
- package/dist/actions/delete-a-custom-field.d.mts.map +1 -0
- package/dist/actions/delete-a-custom-field.mjs +23 -0
- package/dist/actions/delete-a-custom-field.mjs.map +1 -0
- package/dist/actions/delete-a-global-suppression.cjs +20 -0
- package/dist/actions/delete-a-global-suppression.cjs.map +1 -0
- package/dist/actions/delete-a-global-suppression.d.cts +9 -0
- package/dist/actions/delete-a-global-suppression.d.cts.map +1 -0
- package/dist/actions/delete-a-global-suppression.d.mts +9 -0
- package/dist/actions/delete-a-global-suppression.d.mts.map +1 -0
- package/dist/actions/delete-a-global-suppression.mjs +19 -0
- package/dist/actions/delete-a-global-suppression.mjs.map +1 -0
- package/dist/actions/delete-a-parse-setting.cjs +21 -0
- package/dist/actions/delete-a-parse-setting.cjs.map +1 -0
- package/dist/actions/delete-a-parse-setting.d.cts +9 -0
- package/dist/actions/delete-a-parse-setting.d.cts.map +1 -0
- package/dist/actions/delete-a-parse-setting.d.mts +9 -0
- package/dist/actions/delete-a-parse-setting.d.mts.map +1 -0
- package/dist/actions/delete-a-parse-setting.mjs +20 -0
- package/dist/actions/delete-a-parse-setting.mjs.map +1 -0
- package/dist/actions/delete-a-reverse-dns-record.cjs +16 -0
- package/dist/actions/delete-a-reverse-dns-record.cjs.map +1 -0
- package/dist/actions/delete-a-reverse-dns-record.d.cts +9 -0
- package/dist/actions/delete-a-reverse-dns-record.d.cts.map +1 -0
- package/dist/actions/delete-a-reverse-dns-record.d.mts +9 -0
- package/dist/actions/delete-a-reverse-dns-record.d.mts.map +1 -0
- package/dist/actions/delete-a-reverse-dns-record.mjs +13 -0
- package/dist/actions/delete-a-reverse-dns-record.mjs.map +1 -0
- package/dist/actions/delete-a-segment.cjs +19 -0
- package/dist/actions/delete-a-segment.cjs.map +1 -0
- package/dist/actions/delete-a-segment.d.cts +9 -0
- package/dist/actions/delete-a-segment.d.cts.map +1 -0
- package/dist/actions/delete-a-segment.d.mts +9 -0
- package/dist/actions/delete-a-segment.d.mts.map +1 -0
- package/dist/actions/delete-a-segment.mjs +16 -0
- package/dist/actions/delete-a-segment.mjs.map +1 -0
- package/dist/actions/delete-a-sender-identity.cjs +21 -0
- package/dist/actions/delete-a-sender-identity.cjs.map +1 -0
- package/dist/actions/delete-a-sender-identity.d.cts +9 -0
- package/dist/actions/delete-a-sender-identity.d.cts.map +1 -0
- package/dist/actions/delete-a-sender-identity.d.mts +9 -0
- package/dist/actions/delete-a-sender-identity.d.mts.map +1 -0
- package/dist/actions/delete-a-sender-identity.mjs +20 -0
- package/dist/actions/delete-a-sender-identity.mjs.map +1 -0
- package/dist/actions/delete-a-sender.cjs +21 -0
- package/dist/actions/delete-a-sender.cjs.map +1 -0
- package/dist/actions/delete-a-sender.d.cts +9 -0
- package/dist/actions/delete-a-sender.d.cts.map +1 -0
- package/dist/actions/delete-a-sender.d.mts +9 -0
- package/dist/actions/delete-a-sender.d.mts.map +1 -0
- package/dist/actions/delete-a-sender.mjs +20 -0
- package/dist/actions/delete-a-sender.mjs.map +1 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.cjs +16 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.cjs.map +1 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.d.cts +9 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.d.cts.map +1 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.d.mts +9 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.d.mts.map +1 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.mjs +13 -0
- package/dist/actions/delete-a-single-event-webhook-by-id.mjs.map +1 -0
- package/dist/actions/delete-a-specific-block.cjs +24 -0
- package/dist/actions/delete-a-specific-block.cjs.map +1 -0
- package/dist/actions/delete-a-specific-block.d.cts +9 -0
- package/dist/actions/delete-a-specific-block.d.cts.map +1 -0
- package/dist/actions/delete-a-specific-block.d.mts +9 -0
- package/dist/actions/delete-a-specific-block.d.mts.map +1 -0
- package/dist/actions/delete-a-specific-block.mjs +23 -0
- package/dist/actions/delete-a-specific-block.mjs.map +1 -0
- package/dist/actions/delete-a-specific-invalid-email.cjs +16 -0
- package/dist/actions/delete-a-specific-invalid-email.cjs.map +1 -0
- package/dist/actions/delete-a-specific-invalid-email.d.cts +9 -0
- package/dist/actions/delete-a-specific-invalid-email.d.cts.map +1 -0
- package/dist/actions/delete-a-specific-invalid-email.d.mts +9 -0
- package/dist/actions/delete-a-specific-invalid-email.d.mts.map +1 -0
- package/dist/actions/delete-a-specific-invalid-email.mjs +13 -0
- package/dist/actions/delete-a-specific-invalid-email.mjs.map +1 -0
- package/dist/actions/delete-a-specific-spam-report.cjs +16 -0
- package/dist/actions/delete-a-specific-spam-report.cjs.map +1 -0
- package/dist/actions/delete-a-specific-spam-report.d.cts +9 -0
- package/dist/actions/delete-a-specific-spam-report.d.cts.map +1 -0
- package/dist/actions/delete-a-specific-spam-report.d.mts +9 -0
- package/dist/actions/delete-a-specific-spam-report.d.mts.map +1 -0
- package/dist/actions/delete-a-specific-spam-report.mjs +13 -0
- package/dist/actions/delete-a-specific-spam-report.mjs.map +1 -0
- package/dist/actions/delete-a-subuser.cjs +21 -0
- package/dist/actions/delete-a-subuser.cjs.map +1 -0
- package/dist/actions/delete-a-subuser.d.cts +9 -0
- package/dist/actions/delete-a-subuser.d.cts.map +1 -0
- package/dist/actions/delete-a-subuser.d.mts +9 -0
- package/dist/actions/delete-a-subuser.d.mts.map +1 -0
- package/dist/actions/delete-a-subuser.mjs +20 -0
- package/dist/actions/delete-a-subuser.mjs.map +1 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.cjs +24 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.cjs.map +1 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.d.cts +9 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.d.cts.map +1 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.d.mts +9 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.d.mts.map +1 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.mjs +23 -0
- package/dist/actions/delete-a-suppression-from-a-suppression-group.mjs.map +1 -0
- package/dist/actions/delete-a-suppression-group.cjs +16 -0
- package/dist/actions/delete-a-suppression-group.cjs.map +1 -0
- package/dist/actions/delete-a-suppression-group.d.cts +9 -0
- package/dist/actions/delete-a-suppression-group.d.cts.map +1 -0
- package/dist/actions/delete-a-suppression-group.d.mts +9 -0
- package/dist/actions/delete-a-suppression-group.d.mts.map +1 -0
- package/dist/actions/delete-a-suppression-group.mjs +13 -0
- package/dist/actions/delete-a-suppression-group.mjs.map +1 -0
- package/dist/actions/delete-a-template.cjs +21 -0
- package/dist/actions/delete-a-template.cjs.map +1 -0
- package/dist/actions/delete-a-template.d.cts +9 -0
- package/dist/actions/delete-a-template.d.cts.map +1 -0
- package/dist/actions/delete-a-template.d.mts +9 -0
- package/dist/actions/delete-a-template.d.mts.map +1 -0
- package/dist/actions/delete-a-template.mjs +20 -0
- package/dist/actions/delete-a-template.mjs.map +1 -0
- package/dist/actions/delete-a-transactional-template-version.cjs +24 -0
- package/dist/actions/delete-a-transactional-template-version.cjs.map +1 -0
- package/dist/actions/delete-a-transactional-template-version.d.cts +9 -0
- package/dist/actions/delete-a-transactional-template-version.d.cts.map +1 -0
- package/dist/actions/delete-a-transactional-template-version.d.mts +9 -0
- package/dist/actions/delete-a-transactional-template-version.d.mts.map +1 -0
- package/dist/actions/delete-a-transactional-template-version.mjs +23 -0
- package/dist/actions/delete-a-transactional-template-version.mjs.map +1 -0
- package/dist/actions/delete-an-account.cjs +21 -0
- package/dist/actions/delete-an-account.cjs.map +1 -0
- package/dist/actions/delete-an-account.d.cts +9 -0
- package/dist/actions/delete-an-account.d.cts.map +1 -0
- package/dist/actions/delete-an-account.d.mts +9 -0
- package/dist/actions/delete-an-account.d.mts.map +1 -0
- package/dist/actions/delete-an-account.mjs +20 -0
- package/dist/actions/delete-an-account.mjs.map +1 -0
- package/dist/actions/delete-an-alert.cjs +16 -0
- package/dist/actions/delete-an-alert.cjs.map +1 -0
- package/dist/actions/delete-an-alert.d.cts +9 -0
- package/dist/actions/delete-an-alert.d.cts.map +1 -0
- package/dist/actions/delete-an-alert.d.mts +9 -0
- package/dist/actions/delete-an-alert.d.mts.map +1 -0
- package/dist/actions/delete-an-alert.mjs +13 -0
- package/dist/actions/delete-an-alert.mjs.map +1 -0
- package/dist/actions/delete-an-authenticated-domain.cjs +16 -0
- package/dist/actions/delete-an-authenticated-domain.cjs.map +1 -0
- package/dist/actions/delete-an-authenticated-domain.d.cts +9 -0
- package/dist/actions/delete-an-authenticated-domain.d.cts.map +1 -0
- package/dist/actions/delete-an-authenticated-domain.d.mts +9 -0
- package/dist/actions/delete-an-authenticated-domain.d.mts.map +1 -0
- package/dist/actions/delete-an-authenticated-domain.mjs +13 -0
- package/dist/actions/delete-an-authenticated-domain.mjs.map +1 -0
- package/dist/actions/delete-an-ip-pool.cjs +17 -0
- package/dist/actions/delete-an-ip-pool.cjs.map +1 -0
- package/dist/actions/delete-an-ip-pool.d.cts +9 -0
- package/dist/actions/delete-an-ip-pool.d.cts.map +1 -0
- package/dist/actions/delete-an-ip-pool.d.mts +9 -0
- package/dist/actions/delete-an-ip-pool.d.mts.map +1 -0
- package/dist/actions/delete-an-ip-pool.mjs +16 -0
- package/dist/actions/delete-an-ip-pool.mjs.map +1 -0
- package/dist/actions/delete-an-sso-certificate.cjs +22 -0
- package/dist/actions/delete-an-sso-certificate.cjs.map +1 -0
- package/dist/actions/delete-an-sso-certificate.d.cts +9 -0
- package/dist/actions/delete-an-sso-certificate.d.cts.map +1 -0
- package/dist/actions/delete-an-sso-certificate.d.mts +9 -0
- package/dist/actions/delete-an-sso-certificate.d.mts.map +1 -0
- package/dist/actions/delete-an-sso-certificate.mjs +21 -0
- package/dist/actions/delete-an-sso-certificate.mjs.map +1 -0
- package/dist/actions/delete-an-sso-integration.cjs +21 -0
- package/dist/actions/delete-an-sso-integration.cjs.map +1 -0
- package/dist/actions/delete-an-sso-integration.d.cts +9 -0
- package/dist/actions/delete-an-sso-integration.d.cts.map +1 -0
- package/dist/actions/delete-an-sso-integration.d.mts +9 -0
- package/dist/actions/delete-an-sso-integration.d.mts.map +1 -0
- package/dist/actions/delete-an-sso-integration.mjs +20 -0
- package/dist/actions/delete-an-sso-integration.mjs.map +1 -0
- package/dist/actions/delete-api-keys.cjs +22 -0
- package/dist/actions/delete-api-keys.cjs.map +1 -0
- package/dist/actions/delete-api-keys.d.cts +9 -0
- package/dist/actions/delete-api-keys.d.cts.map +1 -0
- package/dist/actions/delete-api-keys.d.mts +9 -0
- package/dist/actions/delete-api-keys.d.mts.map +1 -0
- package/dist/actions/delete-api-keys.mjs +21 -0
- package/dist/actions/delete-api-keys.mjs.map +1 -0
- package/dist/actions/delete-blocks.cjs +19 -0
- package/dist/actions/delete-blocks.cjs.map +1 -0
- package/dist/actions/delete-blocks.d.cts +9 -0
- package/dist/actions/delete-blocks.d.cts.map +1 -0
- package/dist/actions/delete-blocks.d.mts +9 -0
- package/dist/actions/delete-blocks.d.mts.map +1 -0
- package/dist/actions/delete-blocks.mjs +16 -0
- package/dist/actions/delete-blocks.mjs.map +1 -0
- package/dist/actions/delete-bounces.cjs +23 -0
- package/dist/actions/delete-bounces.cjs.map +1 -0
- package/dist/actions/delete-bounces.d.cts +9 -0
- package/dist/actions/delete-bounces.d.cts.map +1 -0
- package/dist/actions/delete-bounces.d.mts +9 -0
- package/dist/actions/delete-bounces.d.mts.map +1 -0
- package/dist/actions/delete-bounces.mjs +22 -0
- package/dist/actions/delete-bounces.mjs.map +1 -0
- package/dist/actions/delete-bulk-integration.cjs +19 -0
- package/dist/actions/delete-bulk-integration.cjs.map +1 -0
- package/dist/actions/delete-bulk-integration.d.cts +9 -0
- package/dist/actions/delete-bulk-integration.d.cts.map +1 -0
- package/dist/actions/delete-bulk-integration.d.mts +9 -0
- package/dist/actions/delete-bulk-integration.d.mts.map +1 -0
- package/dist/actions/delete-bulk-integration.mjs +16 -0
- package/dist/actions/delete-bulk-integration.mjs.map +1 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.cjs +17 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.cjs.map +1 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.d.cts +9 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.d.cts.map +1 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.d.mts +9 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.d.mts.map +1 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.mjs +16 -0
- package/dist/actions/delete-cancellation-or-pause-from-scheduled-send.mjs.map +1 -0
- package/dist/actions/delete-contacts.cjs +28 -0
- package/dist/actions/delete-contacts.cjs.map +1 -0
- package/dist/actions/delete-contacts.d.cts +9 -0
- package/dist/actions/delete-contacts.d.cts.map +1 -0
- package/dist/actions/delete-contacts.d.mts +9 -0
- package/dist/actions/delete-contacts.d.mts.map +1 -0
- package/dist/actions/delete-contacts.mjs +27 -0
- package/dist/actions/delete-contacts.mjs.map +1 -0
- package/dist/actions/delete-custom-field-definition.cjs +21 -0
- package/dist/actions/delete-custom-field-definition.cjs.map +1 -0
- package/dist/actions/delete-custom-field-definition.d.cts +9 -0
- package/dist/actions/delete-custom-field-definition.d.cts.map +1 -0
- package/dist/actions/delete-custom-field-definition.d.mts +9 -0
- package/dist/actions/delete-custom-field-definition.d.mts.map +1 -0
- package/dist/actions/delete-custom-field-definition.mjs +20 -0
- package/dist/actions/delete-custom-field-definition.mjs.map +1 -0
- package/dist/actions/delete-design.cjs +24 -0
- package/dist/actions/delete-design.cjs.map +1 -0
- package/dist/actions/delete-design.d.cts +9 -0
- package/dist/actions/delete-design.d.cts.map +1 -0
- package/dist/actions/delete-design.d.mts +9 -0
- package/dist/actions/delete-design.d.mts.map +1 -0
- package/dist/actions/delete-design.mjs +23 -0
- package/dist/actions/delete-design.mjs.map +1 -0
- package/dist/actions/delete-invalid-emails.cjs +25 -0
- package/dist/actions/delete-invalid-emails.cjs.map +1 -0
- package/dist/actions/delete-invalid-emails.d.cts +9 -0
- package/dist/actions/delete-invalid-emails.d.cts.map +1 -0
- package/dist/actions/delete-invalid-emails.d.mts +9 -0
- package/dist/actions/delete-invalid-emails.d.mts.map +1 -0
- package/dist/actions/delete-invalid-emails.mjs +24 -0
- package/dist/actions/delete-invalid-emails.mjs.map +1 -0
- package/dist/actions/delete-ip-pool.cjs +17 -0
- package/dist/actions/delete-ip-pool.cjs.map +1 -0
- package/dist/actions/delete-ip-pool.d.cts +9 -0
- package/dist/actions/delete-ip-pool.d.cts.map +1 -0
- package/dist/actions/delete-ip-pool.d.mts +9 -0
- package/dist/actions/delete-ip-pool.d.mts.map +1 -0
- package/dist/actions/delete-ip-pool.mjs +16 -0
- package/dist/actions/delete-ip-pool.mjs.map +1 -0
- package/dist/actions/delete-pending-teammate.cjs +21 -0
- package/dist/actions/delete-pending-teammate.cjs.map +1 -0
- package/dist/actions/delete-pending-teammate.d.cts +9 -0
- package/dist/actions/delete-pending-teammate.d.cts.map +1 -0
- package/dist/actions/delete-pending-teammate.d.mts +9 -0
- package/dist/actions/delete-pending-teammate.d.mts.map +1 -0
- package/dist/actions/delete-pending-teammate.mjs +20 -0
- package/dist/actions/delete-pending-teammate.mjs.map +1 -0
- package/dist/actions/delete-single-send-by-id.cjs +21 -0
- package/dist/actions/delete-single-send-by-id.cjs.map +1 -0
- package/dist/actions/delete-single-send-by-id.d.cts +9 -0
- package/dist/actions/delete-single-send-by-id.d.cts.map +1 -0
- package/dist/actions/delete-single-send-by-id.d.mts +9 -0
- package/dist/actions/delete-single-send-by-id.d.mts.map +1 -0
- package/dist/actions/delete-single-send-by-id.mjs +20 -0
- package/dist/actions/delete-single-send-by-id.mjs.map +1 -0
- package/dist/actions/delete-single-send-schedule.cjs +21 -0
- package/dist/actions/delete-single-send-schedule.cjs.map +1 -0
- package/dist/actions/delete-single-send-schedule.d.cts +9 -0
- package/dist/actions/delete-single-send-schedule.d.cts.map +1 -0
- package/dist/actions/delete-single-send-schedule.d.mts +9 -0
- package/dist/actions/delete-single-send-schedule.d.mts.map +1 -0
- package/dist/actions/delete-single-send-schedule.mjs +20 -0
- package/dist/actions/delete-single-send-schedule.mjs.map +1 -0
- package/dist/actions/delete-spam-reports.cjs +23 -0
- package/dist/actions/delete-spam-reports.cjs.map +1 -0
- package/dist/actions/delete-spam-reports.d.cts +9 -0
- package/dist/actions/delete-spam-reports.d.cts.map +1 -0
- package/dist/actions/delete-spam-reports.d.mts +9 -0
- package/dist/actions/delete-spam-reports.d.mts.map +1 -0
- package/dist/actions/delete-spam-reports.mjs +22 -0
- package/dist/actions/delete-spam-reports.mjs.map +1 -0
- package/dist/actions/delete-teammate.cjs +16 -0
- package/dist/actions/delete-teammate.cjs.map +1 -0
- package/dist/actions/delete-teammate.d.cts +9 -0
- package/dist/actions/delete-teammate.d.cts.map +1 -0
- package/dist/actions/delete-teammate.d.mts +9 -0
- package/dist/actions/delete-teammate.d.mts.map +1 -0
- package/dist/actions/delete-teammate.mjs +13 -0
- package/dist/actions/delete-teammate.mjs.map +1 -0
- package/dist/actions/delete-verified-sender.cjs +19 -0
- package/dist/actions/delete-verified-sender.cjs.map +1 -0
- package/dist/actions/delete-verified-sender.d.cts +9 -0
- package/dist/actions/delete-verified-sender.d.cts.map +1 -0
- package/dist/actions/delete-verified-sender.d.mts +9 -0
- package/dist/actions/delete-verified-sender.d.mts.map +1 -0
- package/dist/actions/delete-verified-sender.mjs +16 -0
- package/dist/actions/delete-verified-sender.mjs.map +1 -0
- package/dist/actions/deny-access-request.cjs +21 -0
- package/dist/actions/deny-access-request.cjs.map +1 -0
- package/dist/actions/deny-access-request.d.cts +9 -0
- package/dist/actions/deny-access-request.d.cts.map +1 -0
- package/dist/actions/deny-access-request.d.mts +9 -0
- package/dist/actions/deny-access-request.d.mts.map +1 -0
- package/dist/actions/deny-access-request.mjs +20 -0
- package/dist/actions/deny-access-request.mjs.map +1 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.cjs +16 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.cjs.map +1 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.d.cts +9 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.d.cts.map +1 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.d.mts +9 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.d.mts.map +1 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.mjs +13 -0
- package/dist/actions/disassociate-a-branded-link-from-a-subuser.mjs.map +1 -0
- package/dist/actions/domain-warn-list.cjs +21 -0
- package/dist/actions/domain-warn-list.cjs.map +1 -0
- package/dist/actions/domain-warn-list.d.cts +9 -0
- package/dist/actions/domain-warn-list.d.cts.map +1 -0
- package/dist/actions/domain-warn-list.d.mts +9 -0
- package/dist/actions/domain-warn-list.d.mts.map +1 -0
- package/dist/actions/domain-warn-list.mjs +20 -0
- package/dist/actions/domain-warn-list.mjs.map +1 -0
- package/dist/actions/download-csv.cjs +16 -0
- package/dist/actions/download-csv.cjs.map +1 -0
- package/dist/actions/download-csv.d.cts +9 -0
- package/dist/actions/download-csv.d.cts.map +1 -0
- package/dist/actions/download-csv.d.mts +9 -0
- package/dist/actions/download-csv.d.mts.map +1 -0
- package/dist/actions/download-csv.mjs +13 -0
- package/dist/actions/download-csv.mjs.map +1 -0
- package/dist/actions/duplicate-a-transactional-template.cjs +25 -0
- package/dist/actions/duplicate-a-transactional-template.cjs.map +1 -0
- package/dist/actions/duplicate-a-transactional-template.d.cts +9 -0
- package/dist/actions/duplicate-a-transactional-template.d.cts.map +1 -0
- package/dist/actions/duplicate-a-transactional-template.d.mts +9 -0
- package/dist/actions/duplicate-a-transactional-template.d.mts.map +1 -0
- package/dist/actions/duplicate-a-transactional-template.mjs +22 -0
- package/dist/actions/duplicate-a-transactional-template.mjs.map +1 -0
- package/dist/actions/duplicate-design.cjs +33 -0
- package/dist/actions/duplicate-design.cjs.map +1 -0
- package/dist/actions/duplicate-design.d.cts +9 -0
- package/dist/actions/duplicate-design.d.cts.map +1 -0
- package/dist/actions/duplicate-design.d.mts +9 -0
- package/dist/actions/duplicate-design.d.mts.map +1 -0
- package/dist/actions/duplicate-design.mjs +32 -0
- package/dist/actions/duplicate-design.mjs.map +1 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.cjs +32 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.cjs.map +1 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.d.cts +9 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.d.cts.map +1 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.d.mts +9 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.d.mts.map +1 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.mjs +29 -0
- package/dist/actions/duplicate-send-grid-pre-built-design.mjs.map +1 -0
- package/dist/actions/duplicate-single-send.cjs +47 -0
- package/dist/actions/duplicate-single-send.cjs.map +1 -0
- package/dist/actions/duplicate-single-send.d.cts +9 -0
- package/dist/actions/duplicate-single-send.d.cts.map +1 -0
- package/dist/actions/duplicate-single-send.d.mts +9 -0
- package/dist/actions/duplicate-single-send.d.mts.map +1 -0
- package/dist/actions/duplicate-single-send.mjs +46 -0
- package/dist/actions/duplicate-single-send.mjs.map +1 -0
- package/dist/actions/edit-a-transactional-template-version.cjs +40 -0
- package/dist/actions/edit-a-transactional-template-version.cjs.map +1 -0
- package/dist/actions/edit-a-transactional-template-version.d.cts +9 -0
- package/dist/actions/edit-a-transactional-template-version.d.cts.map +1 -0
- package/dist/actions/edit-a-transactional-template-version.d.mts +9 -0
- package/dist/actions/edit-a-transactional-template-version.d.mts.map +1 -0
- package/dist/actions/edit-a-transactional-template-version.mjs +37 -0
- package/dist/actions/edit-a-transactional-template-version.mjs.map +1 -0
- package/dist/actions/edit-a-transactional-template.cjs +33 -0
- package/dist/actions/edit-a-transactional-template.cjs.map +1 -0
- package/dist/actions/edit-a-transactional-template.d.cts +9 -0
- package/dist/actions/edit-a-transactional-template.d.cts.map +1 -0
- package/dist/actions/edit-a-transactional-template.d.mts +9 -0
- package/dist/actions/edit-a-transactional-template.d.mts.map +1 -0
- package/dist/actions/edit-a-transactional-template.mjs +32 -0
- package/dist/actions/edit-a-transactional-template.mjs.map +1 -0
- package/dist/actions/edit-an-sso-teammate.cjs +58 -0
- package/dist/actions/edit-an-sso-teammate.cjs.map +1 -0
- package/dist/actions/edit-an-sso-teammate.d.cts +9 -0
- package/dist/actions/edit-an-sso-teammate.d.cts.map +1 -0
- package/dist/actions/edit-an-sso-teammate.d.mts +9 -0
- package/dist/actions/edit-an-sso-teammate.d.mts.map +1 -0
- package/dist/actions/edit-an-sso-teammate.mjs +57 -0
- package/dist/actions/edit-an-sso-teammate.mjs.map +1 -0
- package/dist/actions/edit-verified-sender.cjs +45 -0
- package/dist/actions/edit-verified-sender.cjs.map +1 -0
- package/dist/actions/edit-verified-sender.d.cts +9 -0
- package/dist/actions/edit-verified-sender.d.cts.map +1 -0
- package/dist/actions/edit-verified-sender.d.mts +9 -0
- package/dist/actions/edit-verified-sender.d.mts.map +1 -0
- package/dist/actions/edit-verified-sender.mjs +44 -0
- package/dist/actions/edit-verified-sender.mjs.map +1 -0
- package/dist/actions/email-dns-records-to-a-co-worker.cjs +26 -0
- package/dist/actions/email-dns-records-to-a-co-worker.cjs.map +1 -0
- package/dist/actions/email-dns-records-to-a-co-worker.d.cts +9 -0
- package/dist/actions/email-dns-records-to-a-co-worker.d.cts.map +1 -0
- package/dist/actions/email-dns-records-to-a-co-worker.d.mts +9 -0
- package/dist/actions/email-dns-records-to-a-co-worker.d.mts.map +1 -0
- package/dist/actions/email-dns-records-to-a-co-worker.mjs +25 -0
- package/dist/actions/email-dns-records-to-a-co-worker.mjs.map +1 -0
- package/dist/actions/enable-disable-a-subuser.cjs +28 -0
- package/dist/actions/enable-disable-a-subuser.cjs.map +1 -0
- package/dist/actions/enable-disable-a-subuser.d.cts +9 -0
- package/dist/actions/enable-disable-a-subuser.d.cts.map +1 -0
- package/dist/actions/enable-disable-a-subuser.d.mts +9 -0
- package/dist/actions/enable-disable-a-subuser.d.mts.map +1 -0
- package/dist/actions/enable-disable-a-subuser.mjs +27 -0
- package/dist/actions/enable-disable-a-subuser.mjs.map +1 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.cjs +19 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.cjs.map +1 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.d.cts +9 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.d.cts.map +1 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.d.mts +9 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.d.mts.map +1 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.mjs +16 -0
- package/dist/actions/enable-disable-website-access-for-a-subuser.mjs.map +1 -0
- package/dist/actions/erase-recipients-email-data.cjs +16 -0
- package/dist/actions/erase-recipients-email-data.cjs.map +1 -0
- package/dist/actions/erase-recipients-email-data.d.cts +9 -0
- package/dist/actions/erase-recipients-email-data.d.cts.map +1 -0
- package/dist/actions/erase-recipients-email-data.d.mts +9 -0
- package/dist/actions/erase-recipients-email-data.d.mts.map +1 -0
- package/dist/actions/erase-recipients-email-data.mjs +13 -0
- package/dist/actions/erase-recipients-email-data.mjs.map +1 -0
- package/dist/actions/export-contacts-status.cjs +33 -0
- package/dist/actions/export-contacts-status.cjs.map +1 -0
- package/dist/actions/export-contacts-status.d.cts +9 -0
- package/dist/actions/export-contacts-status.d.cts.map +1 -0
- package/dist/actions/export-contacts-status.d.mts +9 -0
- package/dist/actions/export-contacts-status.d.mts.map +1 -0
- package/dist/actions/export-contacts-status.mjs +32 -0
- package/dist/actions/export-contacts-status.mjs.map +1 -0
- package/dist/actions/export-contacts.cjs +37 -0
- package/dist/actions/export-contacts.cjs.map +1 -0
- package/dist/actions/export-contacts.d.cts +9 -0
- package/dist/actions/export-contacts.d.cts.map +1 -0
- package/dist/actions/export-contacts.d.mts +9 -0
- package/dist/actions/export-contacts.d.mts.map +1 -0
- package/dist/actions/export-contacts.mjs +36 -0
- package/dist/actions/export-contacts.mjs.map +1 -0
- package/dist/actions/export-single-send-stats.cjs +24 -0
- package/dist/actions/export-single-send-stats.cjs.map +1 -0
- package/dist/actions/export-single-send-stats.d.cts +9 -0
- package/dist/actions/export-single-send-stats.d.cts.map +1 -0
- package/dist/actions/export-single-send-stats.d.mts +9 -0
- package/dist/actions/export-single-send-stats.d.mts.map +1 -0
- package/dist/actions/export-single-send-stats.mjs +23 -0
- package/dist/actions/export-single-send-stats.mjs.map +1 -0
- package/dist/actions/filter-all-messages.cjs +34 -0
- package/dist/actions/filter-all-messages.cjs.map +1 -0
- package/dist/actions/filter-all-messages.d.cts +9 -0
- package/dist/actions/filter-all-messages.d.cts.map +1 -0
- package/dist/actions/filter-all-messages.d.mts +9 -0
- package/dist/actions/filter-all-messages.d.mts.map +1 -0
- package/dist/actions/filter-all-messages.mjs +33 -0
- package/dist/actions/filter-all-messages.mjs.map +1 -0
- package/dist/actions/filter-messages-by-message-id.cjs +29 -0
- package/dist/actions/filter-messages-by-message-id.cjs.map +1 -0
- package/dist/actions/filter-messages-by-message-id.d.cts +9 -0
- package/dist/actions/filter-messages-by-message-id.d.cts.map +1 -0
- package/dist/actions/filter-messages-by-message-id.d.mts +9 -0
- package/dist/actions/filter-messages-by-message-id.d.mts.map +1 -0
- package/dist/actions/filter-messages-by-message-id.mjs +26 -0
- package/dist/actions/filter-messages-by-message-id.mjs.map +1 -0
- package/dist/actions/get-a-contact-by-id.cjs +41 -0
- package/dist/actions/get-a-contact-by-id.cjs.map +1 -0
- package/dist/actions/get-a-contact-by-id.d.cts +9 -0
- package/dist/actions/get-a-contact-by-id.d.cts.map +1 -0
- package/dist/actions/get-a-contact-by-id.d.mts +9 -0
- package/dist/actions/get-a-contact-by-id.d.mts.map +1 -0
- package/dist/actions/get-a-contact-by-id.mjs +40 -0
- package/dist/actions/get-a-contact-by-id.mjs.map +1 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.cjs +33 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.cjs.map +1 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.d.cts +9 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.d.cts.map +1 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.d.mts +9 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.d.mts.map +1 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.mjs +30 -0
- package/dist/actions/get-a-list-of-all-ip-addresses-on-your-account.mjs.map +1 -0
- package/dist/actions/get-a-list-of-all-senders.cjs +49 -0
- package/dist/actions/get-a-list-of-all-senders.cjs.map +1 -0
- package/dist/actions/get-a-list-of-all-senders.d.cts +9 -0
- package/dist/actions/get-a-list-of-all-senders.d.cts.map +1 -0
- package/dist/actions/get-a-list-of-all-senders.d.mts +9 -0
- package/dist/actions/get-a-list-of-all-senders.d.mts.map +1 -0
- package/dist/actions/get-a-list-of-all-senders.mjs +48 -0
- package/dist/actions/get-a-list-of-all-senders.mjs.map +1 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.cjs +24 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.cjs.map +1 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.d.cts +9 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.d.cts.map +1 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.d.mts +9 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.d.mts.map +1 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.mjs +21 -0
- package/dist/actions/get-a-list-of-subusers-assigned-to-an-ip.mjs.map +1 -0
- package/dist/actions/get-a-specific-sender.cjs +40 -0
- package/dist/actions/get-a-specific-sender.cjs.map +1 -0
- package/dist/actions/get-a-specific-sender.d.cts +9 -0
- package/dist/actions/get-a-specific-sender.d.cts.map +1 -0
- package/dist/actions/get-a-specific-sender.d.mts +9 -0
- package/dist/actions/get-a-specific-sender.d.mts.map +1 -0
- package/dist/actions/get-a-specific-sender.mjs +39 -0
- package/dist/actions/get-a-specific-sender.mjs.map +1 -0
- package/dist/actions/get-a-user-s-account-information.cjs +19 -0
- package/dist/actions/get-a-user-s-account-information.cjs.map +1 -0
- package/dist/actions/get-a-user-s-account-information.d.cts +9 -0
- package/dist/actions/get-a-user-s-account-information.d.cts.map +1 -0
- package/dist/actions/get-a-user-s-account-information.d.mts +9 -0
- package/dist/actions/get-a-user-s-account-information.d.mts.map +1 -0
- package/dist/actions/get-a-user-s-account-information.mjs +16 -0
- package/dist/actions/get-a-user-s-account-information.mjs.map +1 -0
- package/dist/actions/get-a-user-s-profile.cjs +28 -0
- package/dist/actions/get-a-user-s-profile.cjs.map +1 -0
- package/dist/actions/get-a-user-s-profile.d.cts +9 -0
- package/dist/actions/get-a-user-s-profile.d.cts.map +1 -0
- package/dist/actions/get-a-user-s-profile.d.mts +9 -0
- package/dist/actions/get-a-user-s-profile.d.mts.map +1 -0
- package/dist/actions/get-a-user-s-profile.mjs +25 -0
- package/dist/actions/get-a-user-s-profile.mjs.map +1 -0
- package/dist/actions/get-account-offerings.cjs +16 -0
- package/dist/actions/get-account-offerings.cjs.map +1 -0
- package/dist/actions/get-account-offerings.d.cts +9 -0
- package/dist/actions/get-account-offerings.d.cts.map +1 -0
- package/dist/actions/get-account-offerings.d.mts +9 -0
- package/dist/actions/get-account-offerings.d.mts.map +1 -0
- package/dist/actions/get-account-offerings.mjs +13 -0
- package/dist/actions/get-account-offerings.mjs.map +1 -0
- package/dist/actions/get-all-accounts.cjs +19 -0
- package/dist/actions/get-all-accounts.cjs.map +1 -0
- package/dist/actions/get-all-accounts.d.cts +9 -0
- package/dist/actions/get-all-accounts.d.cts.map +1 -0
- package/dist/actions/get-all-accounts.d.mts +9 -0
- package/dist/actions/get-all-accounts.d.mts.map +1 -0
- package/dist/actions/get-all-accounts.mjs +16 -0
- package/dist/actions/get-all-accounts.mjs.map +1 -0
- package/dist/actions/get-all-automation-stats.cjs +53 -0
- package/dist/actions/get-all-automation-stats.cjs.map +1 -0
- package/dist/actions/get-all-automation-stats.d.cts +9 -0
- package/dist/actions/get-all-automation-stats.d.cts.map +1 -0
- package/dist/actions/get-all-automation-stats.d.mts +9 -0
- package/dist/actions/get-all-automation-stats.d.mts.map +1 -0
- package/dist/actions/get-all-automation-stats.mjs +52 -0
- package/dist/actions/get-all-automation-stats.mjs.map +1 -0
- package/dist/actions/get-all-available-offerings.cjs +16 -0
- package/dist/actions/get-all-available-offerings.cjs.map +1 -0
- package/dist/actions/get-all-available-offerings.d.cts +9 -0
- package/dist/actions/get-all-available-offerings.d.cts.map +1 -0
- package/dist/actions/get-all-available-offerings.d.mts +9 -0
- package/dist/actions/get-all-available-offerings.d.mts.map +1 -0
- package/dist/actions/get-all-available-offerings.mjs +13 -0
- package/dist/actions/get-all-available-offerings.mjs.map +1 -0
- package/dist/actions/get-all-categories.cjs +16 -0
- package/dist/actions/get-all-categories.cjs.map +1 -0
- package/dist/actions/get-all-categories.d.cts +9 -0
- package/dist/actions/get-all-categories.d.cts.map +1 -0
- package/dist/actions/get-all-categories.d.mts +9 -0
- package/dist/actions/get-all-categories.d.mts.map +1 -0
- package/dist/actions/get-all-categories.mjs +13 -0
- package/dist/actions/get-all-categories.mjs.map +1 -0
- package/dist/actions/get-all-existing-exports.cjs +32 -0
- package/dist/actions/get-all-existing-exports.cjs.map +1 -0
- package/dist/actions/get-all-existing-exports.d.cts +9 -0
- package/dist/actions/get-all-existing-exports.d.cts.map +1 -0
- package/dist/actions/get-all-existing-exports.d.mts +9 -0
- package/dist/actions/get-all-existing-exports.d.mts.map +1 -0
- package/dist/actions/get-all-existing-exports.mjs +31 -0
- package/dist/actions/get-all-existing-exports.mjs.map +1 -0
- package/dist/actions/get-all-field-definitions.cjs +28 -0
- package/dist/actions/get-all-field-definitions.cjs.map +1 -0
- package/dist/actions/get-all-field-definitions.d.cts +9 -0
- package/dist/actions/get-all-field-definitions.d.cts.map +1 -0
- package/dist/actions/get-all-field-definitions.d.mts +9 -0
- package/dist/actions/get-all-field-definitions.d.mts.map +1 -0
- package/dist/actions/get-all-field-definitions.mjs +27 -0
- package/dist/actions/get-all-field-definitions.mjs.map +1 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.cjs +42 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.cjs.map +1 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.d.cts +9 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.d.cts.map +1 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.d.mts +9 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.d.mts.map +1 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.mjs +41 -0
- package/dist/actions/get-all-ip-pools-that-have-associated-ips.mjs.map +1 -0
- package/dist/actions/get-all-sender-identities.cjs +40 -0
- package/dist/actions/get-all-sender-identities.cjs.map +1 -0
- package/dist/actions/get-all-sender-identities.d.cts +9 -0
- package/dist/actions/get-all-sender-identities.d.cts.map +1 -0
- package/dist/actions/get-all-sender-identities.d.mts +9 -0
- package/dist/actions/get-all-sender-identities.d.mts.map +1 -0
- package/dist/actions/get-all-sender-identities.mjs +39 -0
- package/dist/actions/get-all-sender-identities.mjs.map +1 -0
- package/dist/actions/get-all-single-sends-stats.cjs +49 -0
- package/dist/actions/get-all-single-sends-stats.cjs.map +1 -0
- package/dist/actions/get-all-single-sends-stats.d.cts +9 -0
- package/dist/actions/get-all-single-sends-stats.d.cts.map +1 -0
- package/dist/actions/get-all-single-sends-stats.d.mts +9 -0
- package/dist/actions/get-all-single-sends-stats.d.mts.map +1 -0
- package/dist/actions/get-all-single-sends-stats.mjs +48 -0
- package/dist/actions/get-all-single-sends-stats.mjs.map +1 -0
- package/dist/actions/get-all-single-sends.cjs +50 -0
- package/dist/actions/get-all-single-sends.cjs.map +1 -0
- package/dist/actions/get-all-single-sends.d.cts +9 -0
- package/dist/actions/get-all-single-sends.d.cts.map +1 -0
- package/dist/actions/get-all-single-sends.d.mts +9 -0
- package/dist/actions/get-all-single-sends.d.mts.map +1 -0
- package/dist/actions/get-all-single-sends.mjs +49 -0
- package/dist/actions/get-all-single-sends.mjs.map +1 -0
- package/dist/actions/get-all-sso-certificates-by-integration.cjs +23 -0
- package/dist/actions/get-all-sso-certificates-by-integration.cjs.map +1 -0
- package/dist/actions/get-all-sso-certificates-by-integration.d.cts +9 -0
- package/dist/actions/get-all-sso-certificates-by-integration.d.cts.map +1 -0
- package/dist/actions/get-all-sso-certificates-by-integration.d.mts +9 -0
- package/dist/actions/get-all-sso-certificates-by-integration.d.mts.map +1 -0
- package/dist/actions/get-all-sso-certificates-by-integration.mjs +22 -0
- package/dist/actions/get-all-sso-certificates-by-integration.mjs.map +1 -0
- package/dist/actions/get-all-sso-integrations.cjs +16 -0
- package/dist/actions/get-all-sso-integrations.cjs.map +1 -0
- package/dist/actions/get-all-sso-integrations.d.cts +9 -0
- package/dist/actions/get-all-sso-integrations.d.cts.map +1 -0
- package/dist/actions/get-all-sso-integrations.d.mts +9 -0
- package/dist/actions/get-all-sso-integrations.d.mts.map +1 -0
- package/dist/actions/get-all-sso-integrations.mjs +13 -0
- package/dist/actions/get-all-sso-integrations.mjs.map +1 -0
- package/dist/actions/get-all-verified-senders.cjs +36 -0
- package/dist/actions/get-all-verified-senders.cjs.map +1 -0
- package/dist/actions/get-all-verified-senders.d.cts +9 -0
- package/dist/actions/get-all-verified-senders.d.cts.map +1 -0
- package/dist/actions/get-all-verified-senders.d.mts +9 -0
- package/dist/actions/get-all-verified-senders.d.mts.map +1 -0
- package/dist/actions/get-all-verified-senders.mjs +35 -0
- package/dist/actions/get-all-verified-senders.mjs.map +1 -0
- package/dist/actions/get-an-account-s-state.cjs +24 -0
- package/dist/actions/get-an-account-s-state.cjs.map +1 -0
- package/dist/actions/get-an-account-s-state.d.cts +9 -0
- package/dist/actions/get-an-account-s-state.d.cts.map +1 -0
- package/dist/actions/get-an-account-s-state.d.mts +9 -0
- package/dist/actions/get-an-account-s-state.d.mts.map +1 -0
- package/dist/actions/get-an-account-s-state.mjs +23 -0
- package/dist/actions/get-an-account-s-state.mjs.map +1 -0
- package/dist/actions/get-an-sso-certificate.cjs +23 -0
- package/dist/actions/get-an-sso-certificate.cjs.map +1 -0
- package/dist/actions/get-an-sso-certificate.d.cts +9 -0
- package/dist/actions/get-an-sso-certificate.d.cts.map +1 -0
- package/dist/actions/get-an-sso-certificate.d.mts +9 -0
- package/dist/actions/get-an-sso-certificate.d.mts.map +1 -0
- package/dist/actions/get-an-sso-certificate.mjs +22 -0
- package/dist/actions/get-an-sso-certificate.mjs.map +1 -0
- package/dist/actions/get-an-sso-integration.cjs +30 -0
- package/dist/actions/get-an-sso-integration.cjs.map +1 -0
- package/dist/actions/get-an-sso-integration.d.cts +9 -0
- package/dist/actions/get-an-sso-integration.d.cts.map +1 -0
- package/dist/actions/get-an-sso-integration.d.mts +9 -0
- package/dist/actions/get-an-sso-integration.d.mts.map +1 -0
- package/dist/actions/get-an-sso-integration.mjs +27 -0
- package/dist/actions/get-an-sso-integration.mjs.map +1 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.cjs +37 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.cjs.map +1 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.d.cts +9 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.d.cts.map +1 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.d.mts +9 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.d.mts.map +1 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.mjs +36 -0
- package/dist/actions/get-automation-click-tracking-stats-by-id.mjs.map +1 -0
- package/dist/actions/get-automation-stats-by-id.cjs +64 -0
- package/dist/actions/get-automation-stats-by-id.cjs.map +1 -0
- package/dist/actions/get-automation-stats-by-id.d.cts +9 -0
- package/dist/actions/get-automation-stats-by-id.d.cts.map +1 -0
- package/dist/actions/get-automation-stats-by-id.d.mts +9 -0
- package/dist/actions/get-automation-stats-by-id.d.mts.map +1 -0
- package/dist/actions/get-automation-stats-by-id.mjs +63 -0
- package/dist/actions/get-automation-stats-by-id.mjs.map +1 -0
- package/dist/actions/get-batched-contacts-by-ids.cjs +40 -0
- package/dist/actions/get-batched-contacts-by-ids.cjs.map +1 -0
- package/dist/actions/get-batched-contacts-by-ids.d.cts +9 -0
- package/dist/actions/get-batched-contacts-by-ids.d.cts.map +1 -0
- package/dist/actions/get-batched-contacts-by-ids.d.mts +9 -0
- package/dist/actions/get-batched-contacts-by-ids.d.mts.map +1 -0
- package/dist/actions/get-batched-contacts-by-ids.mjs +39 -0
- package/dist/actions/get-batched-contacts-by-ids.mjs.map +1 -0
- package/dist/actions/get-bounce-class-stats.cjs +20 -0
- package/dist/actions/get-bounce-class-stats.cjs.map +1 -0
- package/dist/actions/get-bounce-class-stats.d.cts +9 -0
- package/dist/actions/get-bounce-class-stats.d.cts.map +1 -0
- package/dist/actions/get-bounce-class-stats.d.mts +9 -0
- package/dist/actions/get-bounce-class-stats.d.mts.map +1 -0
- package/dist/actions/get-bounce-class-stats.mjs +17 -0
- package/dist/actions/get-bounce-class-stats.mjs.map +1 -0
- package/dist/actions/get-bulk-validation-job.cjs +30 -0
- package/dist/actions/get-bulk-validation-job.cjs.map +1 -0
- package/dist/actions/get-bulk-validation-job.d.cts +9 -0
- package/dist/actions/get-bulk-validation-job.d.cts.map +1 -0
- package/dist/actions/get-bulk-validation-job.d.mts +9 -0
- package/dist/actions/get-bulk-validation-job.d.mts.map +1 -0
- package/dist/actions/get-bulk-validation-job.mjs +29 -0
- package/dist/actions/get-bulk-validation-job.mjs.map +1 -0
- package/dist/actions/get-contacts-by-emails.cjs +23 -0
- package/dist/actions/get-contacts-by-emails.cjs.map +1 -0
- package/dist/actions/get-contacts-by-emails.d.cts +9 -0
- package/dist/actions/get-contacts-by-emails.d.cts.map +1 -0
- package/dist/actions/get-contacts-by-emails.d.mts +9 -0
- package/dist/actions/get-contacts-by-emails.d.mts.map +1 -0
- package/dist/actions/get-contacts-by-emails.mjs +22 -0
- package/dist/actions/get-contacts-by-emails.mjs.map +1 -0
- package/dist/actions/get-contacts-by-identifiers.cjs +19 -0
- package/dist/actions/get-contacts-by-identifiers.cjs.map +1 -0
- package/dist/actions/get-contacts-by-identifiers.d.cts +9 -0
- package/dist/actions/get-contacts-by-identifiers.d.cts.map +1 -0
- package/dist/actions/get-contacts-by-identifiers.d.mts +9 -0
- package/dist/actions/get-contacts-by-identifiers.d.mts.map +1 -0
- package/dist/actions/get-contacts-by-identifiers.mjs +16 -0
- package/dist/actions/get-contacts-by-identifiers.mjs.map +1 -0
- package/dist/actions/get-design.cjs +29 -0
- package/dist/actions/get-design.cjs.map +1 -0
- package/dist/actions/get-design.d.cts +9 -0
- package/dist/actions/get-design.d.cts.map +1 -0
- package/dist/actions/get-design.d.mts +9 -0
- package/dist/actions/get-design.d.mts.map +1 -0
- package/dist/actions/get-design.mjs +28 -0
- package/dist/actions/get-design.mjs.map +1 -0
- package/dist/actions/get-details-for-an-ip-address.cjs +34 -0
- package/dist/actions/get-details-for-an-ip-address.cjs.map +1 -0
- package/dist/actions/get-details-for-an-ip-address.d.cts +9 -0
- package/dist/actions/get-details-for-an-ip-address.d.cts.map +1 -0
- package/dist/actions/get-details-for-an-ip-address.d.mts +9 -0
- package/dist/actions/get-details-for-an-ip-address.d.mts.map +1 -0
- package/dist/actions/get-details-for-an-ip-address.mjs +33 -0
- package/dist/actions/get-details-for-an-ip-address.mjs.map +1 -0
- package/dist/actions/get-details-for-an-ip-pool.cjs +32 -0
- package/dist/actions/get-details-for-an-ip-pool.cjs.map +1 -0
- package/dist/actions/get-details-for-an-ip-pool.d.cts +9 -0
- package/dist/actions/get-details-for-an-ip-pool.d.cts.map +1 -0
- package/dist/actions/get-details-for-an-ip-pool.d.mts +9 -0
- package/dist/actions/get-details-for-an-ip-pool.d.mts.map +1 -0
- package/dist/actions/get-details-for-an-ip-pool.mjs +31 -0
- package/dist/actions/get-details-for-an-ip-pool.mjs.map +1 -0
- package/dist/actions/get-email-suppression-groups.cjs +23 -0
- package/dist/actions/get-email-suppression-groups.cjs.map +1 -0
- package/dist/actions/get-email-suppression-groups.d.cts +9 -0
- package/dist/actions/get-email-suppression-groups.d.cts.map +1 -0
- package/dist/actions/get-email-suppression-groups.d.mts +9 -0
- package/dist/actions/get-email-suppression-groups.d.mts.map +1 -0
- package/dist/actions/get-email-suppression-groups.mjs +22 -0
- package/dist/actions/get-email-suppression-groups.mjs.map +1 -0
- package/dist/actions/get-engagement-quality-scores.cjs +24 -0
- package/dist/actions/get-engagement-quality-scores.cjs.map +1 -0
- package/dist/actions/get-engagement-quality-scores.d.cts +9 -0
- package/dist/actions/get-engagement-quality-scores.d.cts.map +1 -0
- package/dist/actions/get-engagement-quality-scores.d.mts +9 -0
- package/dist/actions/get-engagement-quality-scores.d.mts.map +1 -0
- package/dist/actions/get-engagement-quality-scores.mjs +23 -0
- package/dist/actions/get-engagement-quality-scores.mjs.map +1 -0
- package/dist/actions/get-geo-stats.cjs +42 -0
- package/dist/actions/get-geo-stats.cjs.map +1 -0
- package/dist/actions/get-geo-stats.d.cts +9 -0
- package/dist/actions/get-geo-stats.d.cts.map +1 -0
- package/dist/actions/get-geo-stats.d.mts +9 -0
- package/dist/actions/get-geo-stats.d.mts.map +1 -0
- package/dist/actions/get-geo-stats.mjs +41 -0
- package/dist/actions/get-geo-stats.mjs.map +1 -0
- package/dist/actions/get-information-on-a-single-suppression-group.cjs +26 -0
- package/dist/actions/get-information-on-a-single-suppression-group.cjs.map +1 -0
- package/dist/actions/get-information-on-a-single-suppression-group.d.cts +9 -0
- package/dist/actions/get-information-on-a-single-suppression-group.d.cts.map +1 -0
- package/dist/actions/get-information-on-a-single-suppression-group.d.mts +9 -0
- package/dist/actions/get-information-on-a-single-suppression-group.d.mts.map +1 -0
- package/dist/actions/get-information-on-a-single-suppression-group.mjs +25 -0
- package/dist/actions/get-information-on-a-single-suppression-group.mjs.map +1 -0
- package/dist/actions/get-integration.cjs +31 -0
- package/dist/actions/get-integration.cjs.map +1 -0
- package/dist/actions/get-integration.d.cts +9 -0
- package/dist/actions/get-integration.d.cts.map +1 -0
- package/dist/actions/get-integration.d.mts +9 -0
- package/dist/actions/get-integration.d.mts.map +1 -0
- package/dist/actions/get-integration.mjs +30 -0
- package/dist/actions/get-integration.mjs.map +1 -0
- package/dist/actions/get-ip-warmup-status.cjs +19 -0
- package/dist/actions/get-ip-warmup-status.cjs.map +1 -0
- package/dist/actions/get-ip-warmup-status.d.cts +9 -0
- package/dist/actions/get-ip-warmup-status.d.cts.map +1 -0
- package/dist/actions/get-ip-warmup-status.d.mts +9 -0
- package/dist/actions/get-ip-warmup-status.d.mts.map +1 -0
- package/dist/actions/get-ip-warmup-status.mjs +16 -0
- package/dist/actions/get-ip-warmup-status.mjs.map +1 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.cjs +38 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.cjs.map +1 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.d.cts +9 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.d.cts.map +1 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.d.mts +9 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.d.mts.map +1 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.mjs +37 -0
- package/dist/actions/get-ips-assigned-to-an-ip-pool.mjs.map +1 -0
- package/dist/actions/get-list-contact-count.cjs +19 -0
- package/dist/actions/get-list-contact-count.cjs.map +1 -0
- package/dist/actions/get-list-contact-count.d.cts +9 -0
- package/dist/actions/get-list-contact-count.d.cts.map +1 -0
- package/dist/actions/get-list-contact-count.d.mts +9 -0
- package/dist/actions/get-list-contact-count.d.mts.map +1 -0
- package/dist/actions/get-list-contact-count.mjs +16 -0
- package/dist/actions/get-list-contact-count.mjs.map +1 -0
- package/dist/actions/get-list-of-segments.cjs +32 -0
- package/dist/actions/get-list-of-segments.cjs.map +1 -0
- package/dist/actions/get-list-of-segments.d.cts +9 -0
- package/dist/actions/get-list-of-segments.d.cts.map +1 -0
- package/dist/actions/get-list-of-segments.d.mts +9 -0
- package/dist/actions/get-list-of-segments.d.mts.map +1 -0
- package/dist/actions/get-list-of-segments.mjs +31 -0
- package/dist/actions/get-list-of-segments.mjs.map +1 -0
- package/dist/actions/get-open-tracking-settings.cjs +16 -0
- package/dist/actions/get-open-tracking-settings.cjs.map +1 -0
- package/dist/actions/get-open-tracking-settings.d.cts +9 -0
- package/dist/actions/get-open-tracking-settings.d.cts.map +1 -0
- package/dist/actions/get-open-tracking-settings.d.mts +9 -0
- package/dist/actions/get-open-tracking-settings.d.mts.map +1 -0
- package/dist/actions/get-open-tracking-settings.mjs +13 -0
- package/dist/actions/get-open-tracking-settings.mjs.map +1 -0
- package/dist/actions/get-recipient-upload-status.cjs +20 -0
- package/dist/actions/get-recipient-upload-status.cjs.map +1 -0
- package/dist/actions/get-recipient-upload-status.d.cts +9 -0
- package/dist/actions/get-recipient-upload-status.d.cts.map +1 -0
- package/dist/actions/get-recipient-upload-status.d.mts +9 -0
- package/dist/actions/get-recipient-upload-status.d.mts.map +1 -0
- package/dist/actions/get-recipient-upload-status.mjs +19 -0
- package/dist/actions/get-recipient-upload-status.mjs.map +1 -0
- package/dist/actions/get-remaining-ips-count.cjs +21 -0
- package/dist/actions/get-remaining-ips-count.cjs.map +1 -0
- package/dist/actions/get-remaining-ips-count.d.cts +9 -0
- package/dist/actions/get-remaining-ips-count.d.cts.map +1 -0
- package/dist/actions/get-remaining-ips-count.d.mts +9 -0
- package/dist/actions/get-remaining-ips-count.d.mts.map +1 -0
- package/dist/actions/get-remaining-ips-count.mjs +20 -0
- package/dist/actions/get-remaining-ips-count.mjs.map +1 -0
- package/dist/actions/get-sample-contacts.cjs +47 -0
- package/dist/actions/get-sample-contacts.cjs.map +1 -0
- package/dist/actions/get-sample-contacts.d.cts +9 -0
- package/dist/actions/get-sample-contacts.d.cts.map +1 -0
- package/dist/actions/get-sample-contacts.d.mts +9 -0
- package/dist/actions/get-sample-contacts.d.mts.map +1 -0
- package/dist/actions/get-sample-contacts.mjs +46 -0
- package/dist/actions/get-sample-contacts.mjs.map +1 -0
- package/dist/actions/get-send-grid-pre-built-design.cjs +28 -0
- package/dist/actions/get-send-grid-pre-built-design.cjs.map +1 -0
- package/dist/actions/get-send-grid-pre-built-design.d.cts +9 -0
- package/dist/actions/get-send-grid-pre-built-design.d.cts.map +1 -0
- package/dist/actions/get-send-grid-pre-built-design.d.mts +9 -0
- package/dist/actions/get-send-grid-pre-built-design.d.mts.map +1 -0
- package/dist/actions/get-send-grid-pre-built-design.mjs +25 -0
- package/dist/actions/get-send-grid-pre-built-design.mjs.map +1 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.cjs +19 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.cjs.map +1 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.d.cts +9 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.d.cts.map +1 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.d.mts +9 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.d.mts.map +1 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.mjs +16 -0
- package/dist/actions/get-signed-event-webhook-s-public-key.mjs.map +1 -0
- package/dist/actions/get-single-send-by-id.cjs +44 -0
- package/dist/actions/get-single-send-by-id.cjs.map +1 -0
- package/dist/actions/get-single-send-by-id.d.cts +9 -0
- package/dist/actions/get-single-send-by-id.d.cts.map +1 -0
- package/dist/actions/get-single-send-by-id.d.mts +9 -0
- package/dist/actions/get-single-send-by-id.d.mts.map +1 -0
- package/dist/actions/get-single-send-by-id.mjs +43 -0
- package/dist/actions/get-single-send-by-id.mjs.map +1 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.cjs +39 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.cjs.map +1 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.d.cts +9 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.d.cts.map +1 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.d.mts +9 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.d.mts.map +1 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.mjs +38 -0
- package/dist/actions/get-single-send-click-tracking-stats-by-id.mjs.map +1 -0
- package/dist/actions/get-single-send-stats-by-id.cjs +60 -0
- package/dist/actions/get-single-send-stats-by-id.cjs.map +1 -0
- package/dist/actions/get-single-send-stats-by-id.d.cts +9 -0
- package/dist/actions/get-single-send-stats-by-id.d.cts.map +1 -0
- package/dist/actions/get-single-send-stats-by-id.d.mts +9 -0
- package/dist/actions/get-single-send-stats-by-id.d.mts.map +1 -0
- package/dist/actions/get-single-send-stats-by-id.mjs +59 -0
- package/dist/actions/get-single-send-stats-by-id.mjs.map +1 -0
- package/dist/actions/get-single-sends-search.cjs +45 -0
- package/dist/actions/get-single-sends-search.cjs.map +1 -0
- package/dist/actions/get-single-sends-search.d.cts +9 -0
- package/dist/actions/get-single-sends-search.d.cts.map +1 -0
- package/dist/actions/get-single-sends-search.d.mts +9 -0
- package/dist/actions/get-single-sends-search.d.mts.map +1 -0
- package/dist/actions/get-single-sends-search.mjs +44 -0
- package/dist/actions/get-single-sends-search.mjs.map +1 -0
- package/dist/actions/get-subuser-monthly-stats.cjs +56 -0
- package/dist/actions/get-subuser-monthly-stats.cjs.map +1 -0
- package/dist/actions/get-subuser-monthly-stats.d.cts +9 -0
- package/dist/actions/get-subuser-monthly-stats.d.cts.map +1 -0
- package/dist/actions/get-subuser-monthly-stats.d.mts +9 -0
- package/dist/actions/get-subuser-monthly-stats.d.mts.map +1 -0
- package/dist/actions/get-subuser-monthly-stats.mjs +55 -0
- package/dist/actions/get-subuser-monthly-stats.mjs.map +1 -0
- package/dist/actions/get-subusers-engagement-quality-scores.cjs +20 -0
- package/dist/actions/get-subusers-engagement-quality-scores.cjs.map +1 -0
- package/dist/actions/get-subusers-engagement-quality-scores.d.cts +9 -0
- package/dist/actions/get-subusers-engagement-quality-scores.d.cts.map +1 -0
- package/dist/actions/get-subusers-engagement-quality-scores.d.mts +9 -0
- package/dist/actions/get-subusers-engagement-quality-scores.d.mts.map +1 -0
- package/dist/actions/get-subusers-engagement-quality-scores.mjs +17 -0
- package/dist/actions/get-subusers-engagement-quality-scores.mjs.map +1 -0
- package/dist/actions/get-suppression-groups.cjs +16 -0
- package/dist/actions/get-suppression-groups.cjs.map +1 -0
- package/dist/actions/get-suppression-groups.d.cts +9 -0
- package/dist/actions/get-suppression-groups.d.cts.map +1 -0
- package/dist/actions/get-suppression-groups.d.mts +9 -0
- package/dist/actions/get-suppression-groups.d.mts.map +1 -0
- package/dist/actions/get-suppression-groups.mjs +13 -0
- package/dist/actions/get-suppression-groups.mjs.map +1 -0
- package/dist/actions/get-teammate-subuser-access.cjs +39 -0
- package/dist/actions/get-teammate-subuser-access.cjs.map +1 -0
- package/dist/actions/get-teammate-subuser-access.d.cts +9 -0
- package/dist/actions/get-teammate-subuser-access.d.cts.map +1 -0
- package/dist/actions/get-teammate-subuser-access.d.mts +9 -0
- package/dist/actions/get-teammate-subuser-access.d.mts.map +1 -0
- package/dist/actions/get-teammate-subuser-access.mjs +38 -0
- package/dist/actions/get-teammate-subuser-access.mjs.map +1 -0
- package/dist/actions/get-the-credits-for-a-subuser.cjs +32 -0
- package/dist/actions/get-the-credits-for-a-subuser.cjs.map +1 -0
- package/dist/actions/get-the-credits-for-a-subuser.d.cts +9 -0
- package/dist/actions/get-the-credits-for-a-subuser.d.cts.map +1 -0
- package/dist/actions/get-the-credits-for-a-subuser.d.mts +9 -0
- package/dist/actions/get-the-credits-for-a-subuser.d.mts.map +1 -0
- package/dist/actions/get-the-credits-for-a-subuser.mjs +31 -0
- package/dist/actions/get-the-credits-for-a-subuser.mjs.map +1 -0
- package/dist/actions/get-the-default-authentication.cjs +44 -0
- package/dist/actions/get-the-default-authentication.cjs.map +1 -0
- package/dist/actions/get-the-default-authentication.d.cts +9 -0
- package/dist/actions/get-the-default-authentication.d.cts.map +1 -0
- package/dist/actions/get-the-default-authentication.d.mts +9 -0
- package/dist/actions/get-the-default-authentication.d.mts.map +1 -0
- package/dist/actions/get-the-default-authentication.mjs +43 -0
- package/dist/actions/get-the-default-authentication.mjs.map +1 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.cjs +40 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.cjs.map +1 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.d.cts +9 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.d.cts.map +1 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.d.mts +9 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.d.mts.map +1 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.mjs +37 -0
- package/dist/actions/get-the-settings-for-a-single-event-webhook.mjs.map +1 -0
- package/dist/actions/get-total-contact-count.cjs +20 -0
- package/dist/actions/get-total-contact-count.cjs.map +1 -0
- package/dist/actions/get-total-contact-count.d.cts +9 -0
- package/dist/actions/get-total-contact-count.d.cts.map +1 -0
- package/dist/actions/get-total-contact-count.d.mts +9 -0
- package/dist/actions/get-total-contact-count.d.mts.map +1 -0
- package/dist/actions/get-total-contact-count.mjs +17 -0
- package/dist/actions/get-total-contact-count.mjs.map +1 -0
- package/dist/actions/get-user-scopes.cjs +16 -0
- package/dist/actions/get-user-scopes.cjs.map +1 -0
- package/dist/actions/get-user-scopes.d.cts +9 -0
- package/dist/actions/get-user-scopes.d.cts.map +1 -0
- package/dist/actions/get-user-scopes.d.mts +9 -0
- package/dist/actions/get-user-scopes.d.mts.map +1 -0
- package/dist/actions/get-user-scopes.mjs +13 -0
- package/dist/actions/get-user-scopes.mjs.map +1 -0
- package/dist/actions/import-contacts-status.cjs +31 -0
- package/dist/actions/import-contacts-status.cjs.map +1 -0
- package/dist/actions/import-contacts-status.d.cts +9 -0
- package/dist/actions/import-contacts-status.d.cts.map +1 -0
- package/dist/actions/import-contacts-status.d.mts +9 -0
- package/dist/actions/import-contacts-status.d.mts.map +1 -0
- package/dist/actions/import-contacts-status.mjs +30 -0
- package/dist/actions/import-contacts-status.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 +29 -0
- package/dist/actions/import-contacts.mjs.map +1 -0
- package/dist/actions/index.cjs +719 -0
- package/dist/actions/index.d.cts +360 -0
- package/dist/actions/index.d.mts +360 -0
- package/dist/actions/index.mjs +360 -0
- package/dist/actions/invite-teammate.cjs +25 -0
- package/dist/actions/invite-teammate.cjs.map +1 -0
- package/dist/actions/invite-teammate.d.cts +9 -0
- package/dist/actions/invite-teammate.d.cts.map +1 -0
- package/dist/actions/invite-teammate.d.mts +9 -0
- package/dist/actions/invite-teammate.d.mts.map +1 -0
- package/dist/actions/invite-teammate.mjs +22 -0
- package/dist/actions/invite-teammate.mjs.map +1 -0
- package/dist/actions/list-all-authenticated-domains.cjs +22 -0
- package/dist/actions/list-all-authenticated-domains.cjs.map +1 -0
- package/dist/actions/list-all-authenticated-domains.d.cts +9 -0
- package/dist/actions/list-all-authenticated-domains.d.cts.map +1 -0
- package/dist/actions/list-all-authenticated-domains.d.mts +9 -0
- package/dist/actions/list-all-authenticated-domains.d.mts.map +1 -0
- package/dist/actions/list-all-authenticated-domains.mjs +19 -0
- package/dist/actions/list-all-authenticated-domains.mjs.map +1 -0
- package/dist/actions/list-all-subusers.cjs +26 -0
- package/dist/actions/list-all-subusers.cjs.map +1 -0
- package/dist/actions/list-all-subusers.d.cts +9 -0
- package/dist/actions/list-all-subusers.d.cts.map +1 -0
- package/dist/actions/list-all-subusers.d.mts +9 -0
- package/dist/actions/list-all-subusers.d.mts.map +1 -0
- package/dist/actions/list-all-subusers.mjs +23 -0
- package/dist/actions/list-all-subusers.mjs.map +1 -0
- package/dist/actions/list-api-keys.cjs +21 -0
- package/dist/actions/list-api-keys.cjs.map +1 -0
- package/dist/actions/list-api-keys.d.cts +9 -0
- package/dist/actions/list-api-keys.d.cts.map +1 -0
- package/dist/actions/list-api-keys.d.mts +9 -0
- package/dist/actions/list-api-keys.d.mts.map +1 -0
- package/dist/actions/list-api-keys.mjs +20 -0
- package/dist/actions/list-api-keys.mjs.map +1 -0
- package/dist/actions/list-bulk-email-validation-jobs.cjs +31 -0
- package/dist/actions/list-bulk-email-validation-jobs.cjs.map +1 -0
- package/dist/actions/list-bulk-email-validation-jobs.d.cts +9 -0
- package/dist/actions/list-bulk-email-validation-jobs.d.cts.map +1 -0
- package/dist/actions/list-bulk-email-validation-jobs.d.mts +9 -0
- package/dist/actions/list-bulk-email-validation-jobs.d.mts.map +1 -0
- package/dist/actions/list-bulk-email-validation-jobs.mjs +30 -0
- package/dist/actions/list-bulk-email-validation-jobs.mjs.map +1 -0
- package/dist/actions/list-designs.cjs +40 -0
- package/dist/actions/list-designs.cjs.map +1 -0
- package/dist/actions/list-designs.d.cts +9 -0
- package/dist/actions/list-designs.d.cts.map +1 -0
- package/dist/actions/list-designs.d.mts +9 -0
- package/dist/actions/list-designs.d.mts.map +1 -0
- package/dist/actions/list-designs.mjs +39 -0
- package/dist/actions/list-designs.mjs.map +1 -0
- package/dist/actions/list-integration.cjs +31 -0
- package/dist/actions/list-integration.cjs.map +1 -0
- package/dist/actions/list-integration.d.cts +9 -0
- package/dist/actions/list-integration.d.cts.map +1 -0
- package/dist/actions/list-integration.d.mts +9 -0
- package/dist/actions/list-integration.d.mts.map +1 -0
- package/dist/actions/list-integration.mjs +30 -0
- package/dist/actions/list-integration.mjs.map +1 -0
- package/dist/actions/list-send-grid-pre-built-designs.cjs +42 -0
- package/dist/actions/list-send-grid-pre-built-designs.cjs.map +1 -0
- package/dist/actions/list-send-grid-pre-built-designs.d.cts +9 -0
- package/dist/actions/list-send-grid-pre-built-designs.d.cts.map +1 -0
- package/dist/actions/list-send-grid-pre-built-designs.d.mts +9 -0
- package/dist/actions/list-send-grid-pre-built-designs.d.mts.map +1 -0
- package/dist/actions/list-send-grid-pre-built-designs.mjs +41 -0
- package/dist/actions/list-send-grid-pre-built-designs.mjs.map +1 -0
- package/dist/actions/list-user-auth-domains.cjs +42 -0
- package/dist/actions/list-user-auth-domains.cjs.map +1 -0
- package/dist/actions/list-user-auth-domains.d.cts +9 -0
- package/dist/actions/list-user-auth-domains.d.cts.map +1 -0
- package/dist/actions/list-user-auth-domains.d.mts +9 -0
- package/dist/actions/list-user-auth-domains.d.mts.map +1 -0
- package/dist/actions/list-user-auth-domains.mjs +41 -0
- package/dist/actions/list-user-auth-domains.mjs.map +1 -0
- package/dist/actions/manually-refresh-a-segment.cjs +19 -0
- package/dist/actions/manually-refresh-a-segment.cjs.map +1 -0
- package/dist/actions/manually-refresh-a-segment.d.cts +9 -0
- package/dist/actions/manually-refresh-a-segment.d.cts.map +1 -0
- package/dist/actions/manually-refresh-a-segment.d.mts +9 -0
- package/dist/actions/manually-refresh-a-segment.d.mts.map +1 -0
- package/dist/actions/manually-refresh-a-segment.mjs +16 -0
- package/dist/actions/manually-refresh-a-segment.mjs.map +1 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.cjs +24 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.cjs.map +1 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.d.cts +9 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.d.cts.map +1 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.d.mts +9 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.d.mts.map +1 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.mjs +23 -0
- package/dist/actions/presigned-url-headers-for-bulk-email-validation.mjs.map +1 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.cjs +16 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.cjs.map +1 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.d.cts +9 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.d.cts.map +1 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.d.mts +9 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.d.mts.map +1 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.mjs +13 -0
- package/dist/actions/remove-a-specific-ip-from-the-allowed-list.mjs.map +1 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.cjs +24 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.cjs.map +1 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.d.cts +9 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.d.cts.map +1 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.d.mts +9 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.d.mts.map +1 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.mjs +23 -0
- package/dist/actions/remove-an-ip-address-from-a-pool.mjs.map +1 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.cjs +19 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.cjs.map +1 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.d.cts +9 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.d.cts.map +1 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.d.mts +9 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.d.mts.map +1 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.mjs +16 -0
- package/dist/actions/remove-an-ip-from-an-authenticated-domain.mjs.map +1 -0
- package/dist/actions/remove-contacts-from-a-list.cjs +19 -0
- package/dist/actions/remove-contacts-from-a-list.cjs.map +1 -0
- package/dist/actions/remove-contacts-from-a-list.d.cts +9 -0
- package/dist/actions/remove-contacts-from-a-list.d.cts.map +1 -0
- package/dist/actions/remove-contacts-from-a-list.d.mts +9 -0
- package/dist/actions/remove-contacts-from-a-list.d.mts.map +1 -0
- package/dist/actions/remove-contacts-from-a-list.mjs +16 -0
- package/dist/actions/remove-contacts-from-a-list.mjs.map +1 -0
- package/dist/actions/remove-list-and-optional-contacts.cjs +19 -0
- package/dist/actions/remove-list-and-optional-contacts.cjs.map +1 -0
- package/dist/actions/remove-list-and-optional-contacts.d.cts +9 -0
- package/dist/actions/remove-list-and-optional-contacts.d.cts.map +1 -0
- package/dist/actions/remove-list-and-optional-contacts.d.mts +9 -0
- package/dist/actions/remove-list-and-optional-contacts.d.mts.map +1 -0
- package/dist/actions/remove-list-and-optional-contacts.mjs +16 -0
- package/dist/actions/remove-list-and-optional-contacts.mjs.map +1 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.cjs +16 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.cjs.map +1 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.d.cts +9 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.d.cts.map +1 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.d.mts +9 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.d.mts.map +1 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.mjs +13 -0
- package/dist/actions/remove-one-or-more-ips-from-the-allow-list.mjs.map +1 -0
- package/dist/actions/remove-segment-without-affecting-contacts.cjs +16 -0
- package/dist/actions/remove-segment-without-affecting-contacts.cjs.map +1 -0
- package/dist/actions/remove-segment-without-affecting-contacts.d.cts +9 -0
- package/dist/actions/remove-segment-without-affecting-contacts.d.cts.map +1 -0
- package/dist/actions/remove-segment-without-affecting-contacts.d.mts +9 -0
- package/dist/actions/remove-segment-without-affecting-contacts.d.mts.map +1 -0
- package/dist/actions/remove-segment-without-affecting-contacts.mjs +13 -0
- package/dist/actions/remove-segment-without-affecting-contacts.mjs.map +1 -0
- package/dist/actions/remove-user-domain.cjs +21 -0
- package/dist/actions/remove-user-domain.cjs.map +1 -0
- package/dist/actions/remove-user-domain.d.cts +9 -0
- package/dist/actions/remove-user-domain.d.cts.map +1 -0
- package/dist/actions/remove-user-domain.d.mts +9 -0
- package/dist/actions/remove-user-domain.d.mts.map +1 -0
- package/dist/actions/remove-user-domain.mjs +20 -0
- package/dist/actions/remove-user-domain.mjs.map +1 -0
- package/dist/actions/rename-an-ip-pool.cjs +23 -0
- package/dist/actions/rename-an-ip-pool.cjs.map +1 -0
- package/dist/actions/rename-an-ip-pool.d.cts +9 -0
- package/dist/actions/rename-an-ip-pool.d.cts.map +1 -0
- package/dist/actions/rename-an-ip-pool.d.mts +9 -0
- package/dist/actions/rename-an-ip-pool.d.mts.map +1 -0
- package/dist/actions/rename-an-ip-pool.mjs +22 -0
- package/dist/actions/rename-an-ip-pool.mjs.map +1 -0
- package/dist/actions/request-csv.cjs +21 -0
- package/dist/actions/request-csv.cjs.map +1 -0
- package/dist/actions/request-csv.d.cts +9 -0
- package/dist/actions/request-csv.d.cts.map +1 -0
- package/dist/actions/request-csv.d.mts +9 -0
- package/dist/actions/request-csv.d.mts.map +1 -0
- package/dist/actions/request-csv.mjs +20 -0
- package/dist/actions/request-csv.mjs.map +1 -0
- package/dist/actions/resend-a-sender-verification.cjs +21 -0
- package/dist/actions/resend-a-sender-verification.cjs.map +1 -0
- package/dist/actions/resend-a-sender-verification.d.cts +9 -0
- package/dist/actions/resend-a-sender-verification.d.cts.map +1 -0
- package/dist/actions/resend-a-sender-verification.d.mts +9 -0
- package/dist/actions/resend-a-sender-verification.d.mts.map +1 -0
- package/dist/actions/resend-a-sender-verification.mjs +20 -0
- package/dist/actions/resend-a-sender-verification.mjs.map +1 -0
- package/dist/actions/resend-sender-identity-verification.cjs +21 -0
- package/dist/actions/resend-sender-identity-verification.cjs.map +1 -0
- package/dist/actions/resend-sender-identity-verification.d.cts +9 -0
- package/dist/actions/resend-sender-identity-verification.d.cts.map +1 -0
- package/dist/actions/resend-sender-identity-verification.d.mts +9 -0
- package/dist/actions/resend-sender-identity-verification.d.mts.map +1 -0
- package/dist/actions/resend-sender-identity-verification.mjs +20 -0
- package/dist/actions/resend-sender-identity-verification.mjs.map +1 -0
- package/dist/actions/resend-teammate-invite.cjs +22 -0
- package/dist/actions/resend-teammate-invite.cjs.map +1 -0
- package/dist/actions/resend-teammate-invite.d.cts +9 -0
- package/dist/actions/resend-teammate-invite.d.cts.map +1 -0
- package/dist/actions/resend-teammate-invite.d.mts +9 -0
- package/dist/actions/resend-teammate-invite.d.mts.map +1 -0
- package/dist/actions/resend-teammate-invite.mjs +19 -0
- package/dist/actions/resend-teammate-invite.mjs.map +1 -0
- package/dist/actions/resend-verified-sender-request.cjs +21 -0
- package/dist/actions/resend-verified-sender-request.cjs.map +1 -0
- package/dist/actions/resend-verified-sender-request.d.cts +9 -0
- package/dist/actions/resend-verified-sender-request.d.cts.map +1 -0
- package/dist/actions/resend-verified-sender-request.d.mts +9 -0
- package/dist/actions/resend-verified-sender-request.d.mts.map +1 -0
- package/dist/actions/resend-verified-sender-request.mjs +20 -0
- package/dist/actions/resend-verified-sender-request.mjs.map +1 -0
- package/dist/actions/retrieve-a-bounce.cjs +25 -0
- package/dist/actions/retrieve-a-bounce.cjs.map +1 -0
- package/dist/actions/retrieve-a-bounce.d.cts +9 -0
- package/dist/actions/retrieve-a-bounce.d.cts.map +1 -0
- package/dist/actions/retrieve-a-bounce.d.mts +9 -0
- package/dist/actions/retrieve-a-bounce.d.mts.map +1 -0
- package/dist/actions/retrieve-a-bounce.mjs +24 -0
- package/dist/actions/retrieve-a-bounce.mjs.map +1 -0
- package/dist/actions/retrieve-a-branded-link.cjs +37 -0
- package/dist/actions/retrieve-a-branded-link.cjs.map +1 -0
- package/dist/actions/retrieve-a-branded-link.d.cts +9 -0
- package/dist/actions/retrieve-a-branded-link.d.cts.map +1 -0
- package/dist/actions/retrieve-a-branded-link.d.mts +9 -0
- package/dist/actions/retrieve-a-branded-link.d.mts.map +1 -0
- package/dist/actions/retrieve-a-branded-link.mjs +36 -0
- package/dist/actions/retrieve-a-branded-link.mjs.map +1 -0
- package/dist/actions/retrieve-a-count-of-recipients.cjs +16 -0
- package/dist/actions/retrieve-a-count-of-recipients.cjs.map +1 -0
- package/dist/actions/retrieve-a-count-of-recipients.d.cts +9 -0
- package/dist/actions/retrieve-a-count-of-recipients.d.cts.map +1 -0
- package/dist/actions/retrieve-a-count-of-recipients.d.mts +9 -0
- package/dist/actions/retrieve-a-count-of-recipients.d.mts.map +1 -0
- package/dist/actions/retrieve-a-count-of-recipients.mjs +13 -0
- package/dist/actions/retrieve-a-count-of-recipients.mjs.map +1 -0
- package/dist/actions/retrieve-a-custom-field.cjs +26 -0
- package/dist/actions/retrieve-a-custom-field.cjs.map +1 -0
- package/dist/actions/retrieve-a-custom-field.d.cts +9 -0
- package/dist/actions/retrieve-a-custom-field.d.cts.map +1 -0
- package/dist/actions/retrieve-a-custom-field.d.mts +9 -0
- package/dist/actions/retrieve-a-custom-field.d.mts.map +1 -0
- package/dist/actions/retrieve-a-custom-field.mjs +25 -0
- package/dist/actions/retrieve-a-custom-field.mjs.map +1 -0
- package/dist/actions/retrieve-a-global-suppression.cjs +17 -0
- package/dist/actions/retrieve-a-global-suppression.cjs.map +1 -0
- package/dist/actions/retrieve-a-global-suppression.d.cts +9 -0
- package/dist/actions/retrieve-a-global-suppression.d.cts.map +1 -0
- package/dist/actions/retrieve-a-global-suppression.d.mts +9 -0
- package/dist/actions/retrieve-a-global-suppression.d.mts.map +1 -0
- package/dist/actions/retrieve-a-global-suppression.mjs +16 -0
- package/dist/actions/retrieve-a-global-suppression.mjs.map +1 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.cjs +22 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.cjs.map +1 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.d.cts +9 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.d.cts.map +1 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.d.mts +9 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.d.mts.map +1 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.mjs +21 -0
- package/dist/actions/retrieve-a-list-of-currently-allowed-ips.mjs.map +1 -0
- package/dist/actions/retrieve-a-reverse-dns-record.cjs +37 -0
- package/dist/actions/retrieve-a-reverse-dns-record.cjs.map +1 -0
- package/dist/actions/retrieve-a-reverse-dns-record.d.cts +9 -0
- package/dist/actions/retrieve-a-reverse-dns-record.d.cts.map +1 -0
- package/dist/actions/retrieve-a-reverse-dns-record.d.mts +9 -0
- package/dist/actions/retrieve-a-reverse-dns-record.d.mts.map +1 -0
- package/dist/actions/retrieve-a-reverse-dns-record.mjs +36 -0
- package/dist/actions/retrieve-a-reverse-dns-record.mjs.map +1 -0
- package/dist/actions/retrieve-a-single-campaign.cjs +32 -0
- package/dist/actions/retrieve-a-single-campaign.cjs.map +1 -0
- package/dist/actions/retrieve-a-single-campaign.d.cts +9 -0
- package/dist/actions/retrieve-a-single-campaign.d.cts.map +1 -0
- package/dist/actions/retrieve-a-single-campaign.d.mts +9 -0
- package/dist/actions/retrieve-a-single-campaign.d.mts.map +1 -0
- package/dist/actions/retrieve-a-single-campaign.mjs +31 -0
- package/dist/actions/retrieve-a-single-campaign.mjs.map +1 -0
- package/dist/actions/retrieve-a-single-list.cjs +32 -0
- package/dist/actions/retrieve-a-single-list.cjs.map +1 -0
- package/dist/actions/retrieve-a-single-list.d.cts +9 -0
- package/dist/actions/retrieve-a-single-list.d.cts.map +1 -0
- package/dist/actions/retrieve-a-single-list.d.mts +9 -0
- package/dist/actions/retrieve-a-single-list.d.mts.map +1 -0
- package/dist/actions/retrieve-a-single-list.mjs +31 -0
- package/dist/actions/retrieve-a-single-list.mjs.map +1 -0
- package/dist/actions/retrieve-a-single-transactional-template.cjs +33 -0
- package/dist/actions/retrieve-a-single-transactional-template.cjs.map +1 -0
- package/dist/actions/retrieve-a-single-transactional-template.d.cts +9 -0
- package/dist/actions/retrieve-a-single-transactional-template.d.cts.map +1 -0
- package/dist/actions/retrieve-a-single-transactional-template.d.mts +9 -0
- package/dist/actions/retrieve-a-single-transactional-template.d.mts.map +1 -0
- package/dist/actions/retrieve-a-single-transactional-template.mjs +32 -0
- package/dist/actions/retrieve-a-single-transactional-template.mjs.map +1 -0
- package/dist/actions/retrieve-a-specific-alert.cjs +24 -0
- package/dist/actions/retrieve-a-specific-alert.cjs.map +1 -0
- package/dist/actions/retrieve-a-specific-alert.d.cts +9 -0
- package/dist/actions/retrieve-a-specific-alert.d.cts.map +1 -0
- package/dist/actions/retrieve-a-specific-alert.d.mts +9 -0
- package/dist/actions/retrieve-a-specific-alert.d.mts.map +1 -0
- package/dist/actions/retrieve-a-specific-alert.mjs +21 -0
- package/dist/actions/retrieve-a-specific-alert.mjs.map +1 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.cjs +22 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.cjs.map +1 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.d.cts +9 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.d.cts.map +1 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.d.mts +9 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.d.mts.map +1 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.mjs +21 -0
- package/dist/actions/retrieve-a-specific-allowed-ip.mjs.map +1 -0
- package/dist/actions/retrieve-a-specific-block.cjs +25 -0
- package/dist/actions/retrieve-a-specific-block.cjs.map +1 -0
- package/dist/actions/retrieve-a-specific-block.d.cts +9 -0
- package/dist/actions/retrieve-a-specific-block.d.cts.map +1 -0
- package/dist/actions/retrieve-a-specific-block.d.mts +9 -0
- package/dist/actions/retrieve-a-specific-block.d.mts.map +1 -0
- package/dist/actions/retrieve-a-specific-block.mjs +24 -0
- package/dist/actions/retrieve-a-specific-block.mjs.map +1 -0
- package/dist/actions/retrieve-a-specific-invalid-email.cjs +21 -0
- package/dist/actions/retrieve-a-specific-invalid-email.cjs.map +1 -0
- package/dist/actions/retrieve-a-specific-invalid-email.d.cts +9 -0
- package/dist/actions/retrieve-a-specific-invalid-email.d.cts.map +1 -0
- package/dist/actions/retrieve-a-specific-invalid-email.d.mts +9 -0
- package/dist/actions/retrieve-a-specific-invalid-email.d.mts.map +1 -0
- package/dist/actions/retrieve-a-specific-invalid-email.mjs +20 -0
- package/dist/actions/retrieve-a-specific-invalid-email.mjs.map +1 -0
- package/dist/actions/retrieve-a-specific-parse-setting.cjs +22 -0
- package/dist/actions/retrieve-a-specific-parse-setting.cjs.map +1 -0
- package/dist/actions/retrieve-a-specific-parse-setting.d.cts +9 -0
- package/dist/actions/retrieve-a-specific-parse-setting.d.cts.map +1 -0
- package/dist/actions/retrieve-a-specific-parse-setting.d.mts +9 -0
- package/dist/actions/retrieve-a-specific-parse-setting.d.mts.map +1 -0
- package/dist/actions/retrieve-a-specific-parse-setting.mjs +21 -0
- package/dist/actions/retrieve-a-specific-parse-setting.mjs.map +1 -0
- package/dist/actions/retrieve-a-specific-spam-report.cjs +21 -0
- package/dist/actions/retrieve-a-specific-spam-report.cjs.map +1 -0
- package/dist/actions/retrieve-a-specific-spam-report.d.cts +9 -0
- package/dist/actions/retrieve-a-specific-spam-report.d.cts.map +1 -0
- package/dist/actions/retrieve-a-specific-spam-report.d.mts +9 -0
- package/dist/actions/retrieve-a-specific-spam-report.d.mts.map +1 -0
- package/dist/actions/retrieve-a-specific-spam-report.mjs +20 -0
- package/dist/actions/retrieve-a-specific-spam-report.mjs.map +1 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.cjs +32 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.cjs.map +1 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.d.cts +9 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.d.cts.map +1 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.d.mts +9 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.d.mts.map +1 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.mjs +29 -0
- package/dist/actions/retrieve-a-specific-transactional-template-version.mjs.map +1 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.cjs +36 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.cjs.map +1 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.d.cts +9 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.d.cts.map +1 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.d.mts +9 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.d.mts.map +1 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.mjs +35 -0
- package/dist/actions/retrieve-a-subuser-s-branded-link.mjs.map +1 -0
- package/dist/actions/retrieve-access-requests.cjs +19 -0
- package/dist/actions/retrieve-access-requests.cjs.map +1 -0
- package/dist/actions/retrieve-access-requests.d.cts +9 -0
- package/dist/actions/retrieve-access-requests.d.cts.map +1 -0
- package/dist/actions/retrieve-access-requests.d.mts +9 -0
- package/dist/actions/retrieve-access-requests.d.mts.map +1 -0
- package/dist/actions/retrieve-access-requests.mjs +16 -0
- package/dist/actions/retrieve-access-requests.mjs.map +1 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.cjs +19 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.cjs.map +1 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.d.cts +9 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.d.mts +9 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.mjs +16 -0
- package/dist/actions/retrieve-address-whitelist-mail-settings.mjs.map +1 -0
- package/dist/actions/retrieve-all-alerts.cjs +25 -0
- package/dist/actions/retrieve-all-alerts.cjs.map +1 -0
- package/dist/actions/retrieve-all-alerts.d.cts +9 -0
- package/dist/actions/retrieve-all-alerts.d.cts.map +1 -0
- package/dist/actions/retrieve-all-alerts.d.mts +9 -0
- package/dist/actions/retrieve-all-alerts.d.mts.map +1 -0
- package/dist/actions/retrieve-all-alerts.mjs +24 -0
- package/dist/actions/retrieve-all-alerts.mjs.map +1 -0
- package/dist/actions/retrieve-all-assigned-ips.cjs +22 -0
- package/dist/actions/retrieve-all-assigned-ips.cjs.map +1 -0
- package/dist/actions/retrieve-all-assigned-ips.d.cts +9 -0
- package/dist/actions/retrieve-all-assigned-ips.d.cts.map +1 -0
- package/dist/actions/retrieve-all-assigned-ips.d.mts +9 -0
- package/dist/actions/retrieve-all-assigned-ips.d.mts.map +1 -0
- package/dist/actions/retrieve-all-assigned-ips.mjs +21 -0
- package/dist/actions/retrieve-all-assigned-ips.mjs.map +1 -0
- package/dist/actions/retrieve-all-blocks.cjs +23 -0
- package/dist/actions/retrieve-all-blocks.cjs.map +1 -0
- package/dist/actions/retrieve-all-blocks.d.cts +9 -0
- package/dist/actions/retrieve-all-blocks.d.cts.map +1 -0
- package/dist/actions/retrieve-all-blocks.d.mts +9 -0
- package/dist/actions/retrieve-all-blocks.d.mts.map +1 -0
- package/dist/actions/retrieve-all-blocks.mjs +20 -0
- package/dist/actions/retrieve-all-blocks.mjs.map +1 -0
- package/dist/actions/retrieve-all-bounces.cjs +22 -0
- package/dist/actions/retrieve-all-bounces.cjs.map +1 -0
- package/dist/actions/retrieve-all-bounces.d.cts +9 -0
- package/dist/actions/retrieve-all-bounces.d.cts.map +1 -0
- package/dist/actions/retrieve-all-bounces.d.mts +9 -0
- package/dist/actions/retrieve-all-bounces.d.mts.map +1 -0
- package/dist/actions/retrieve-all-bounces.mjs +19 -0
- package/dist/actions/retrieve-all-bounces.mjs.map +1 -0
- package/dist/actions/retrieve-all-branded-links.cjs +16 -0
- package/dist/actions/retrieve-all-branded-links.cjs.map +1 -0
- package/dist/actions/retrieve-all-branded-links.d.cts +9 -0
- package/dist/actions/retrieve-all-branded-links.d.cts.map +1 -0
- package/dist/actions/retrieve-all-branded-links.d.mts +9 -0
- package/dist/actions/retrieve-all-branded-links.d.mts.map +1 -0
- package/dist/actions/retrieve-all-branded-links.mjs +13 -0
- package/dist/actions/retrieve-all-branded-links.mjs.map +1 -0
- package/dist/actions/retrieve-all-campaigns.cjs +34 -0
- package/dist/actions/retrieve-all-campaigns.cjs.map +1 -0
- package/dist/actions/retrieve-all-campaigns.d.cts +9 -0
- package/dist/actions/retrieve-all-campaigns.d.cts.map +1 -0
- package/dist/actions/retrieve-all-campaigns.d.mts +9 -0
- package/dist/actions/retrieve-all-campaigns.d.mts.map +1 -0
- package/dist/actions/retrieve-all-campaigns.mjs +33 -0
- package/dist/actions/retrieve-all-campaigns.mjs.map +1 -0
- package/dist/actions/retrieve-all-categories.cjs +21 -0
- package/dist/actions/retrieve-all-categories.cjs.map +1 -0
- package/dist/actions/retrieve-all-categories.d.cts +9 -0
- package/dist/actions/retrieve-all-categories.d.cts.map +1 -0
- package/dist/actions/retrieve-all-categories.d.mts +9 -0
- package/dist/actions/retrieve-all-categories.d.mts.map +1 -0
- package/dist/actions/retrieve-all-categories.mjs +20 -0
- package/dist/actions/retrieve-all-categories.mjs.map +1 -0
- package/dist/actions/retrieve-all-custom-fields.cjs +21 -0
- package/dist/actions/retrieve-all-custom-fields.cjs.map +1 -0
- package/dist/actions/retrieve-all-custom-fields.d.cts +9 -0
- package/dist/actions/retrieve-all-custom-fields.d.cts.map +1 -0
- package/dist/actions/retrieve-all-custom-fields.d.mts +9 -0
- package/dist/actions/retrieve-all-custom-fields.d.mts.map +1 -0
- package/dist/actions/retrieve-all-custom-fields.mjs +20 -0
- package/dist/actions/retrieve-all-custom-fields.mjs.map +1 -0
- package/dist/actions/retrieve-all-global-suppressions.cjs +26 -0
- package/dist/actions/retrieve-all-global-suppressions.cjs.map +1 -0
- package/dist/actions/retrieve-all-global-suppressions.d.cts +9 -0
- package/dist/actions/retrieve-all-global-suppressions.d.cts.map +1 -0
- package/dist/actions/retrieve-all-global-suppressions.d.mts +9 -0
- package/dist/actions/retrieve-all-global-suppressions.d.mts.map +1 -0
- package/dist/actions/retrieve-all-global-suppressions.mjs +25 -0
- package/dist/actions/retrieve-all-global-suppressions.mjs.map +1 -0
- package/dist/actions/retrieve-all-invalid-emails.cjs +22 -0
- package/dist/actions/retrieve-all-invalid-emails.cjs.map +1 -0
- package/dist/actions/retrieve-all-invalid-emails.d.cts +9 -0
- package/dist/actions/retrieve-all-invalid-emails.d.cts.map +1 -0
- package/dist/actions/retrieve-all-invalid-emails.d.mts +9 -0
- package/dist/actions/retrieve-all-invalid-emails.d.mts.map +1 -0
- package/dist/actions/retrieve-all-invalid-emails.mjs +19 -0
- package/dist/actions/retrieve-all-invalid-emails.mjs.map +1 -0
- package/dist/actions/retrieve-all-ip-addresses.cjs +23 -0
- package/dist/actions/retrieve-all-ip-addresses.cjs.map +1 -0
- package/dist/actions/retrieve-all-ip-addresses.d.cts +9 -0
- package/dist/actions/retrieve-all-ip-addresses.d.cts.map +1 -0
- package/dist/actions/retrieve-all-ip-addresses.d.mts +9 -0
- package/dist/actions/retrieve-all-ip-addresses.d.mts.map +1 -0
- package/dist/actions/retrieve-all-ip-addresses.mjs +20 -0
- package/dist/actions/retrieve-all-ip-addresses.mjs.map +1 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.cjs +26 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.cjs.map +1 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.d.cts +9 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.d.cts.map +1 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.d.mts +9 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.d.mts.map +1 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.mjs +25 -0
- package/dist/actions/retrieve-all-ip-pools-an-ip-address-belongs-to.mjs.map +1 -0
- package/dist/actions/retrieve-all-ip-pools.cjs +16 -0
- package/dist/actions/retrieve-all-ip-pools.cjs.map +1 -0
- package/dist/actions/retrieve-all-ip-pools.d.cts +9 -0
- package/dist/actions/retrieve-all-ip-pools.d.cts.map +1 -0
- package/dist/actions/retrieve-all-ip-pools.d.mts +9 -0
- package/dist/actions/retrieve-all-ip-pools.d.mts.map +1 -0
- package/dist/actions/retrieve-all-ip-pools.mjs +13 -0
- package/dist/actions/retrieve-all-ip-pools.mjs.map +1 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.cjs +16 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.cjs.map +1 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.d.cts +9 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.d.cts.map +1 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.d.mts +9 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.d.mts.map +1 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.mjs +13 -0
- package/dist/actions/retrieve-all-ips-currently-in-warmup.mjs.map +1 -0
- package/dist/actions/retrieve-all-lists.cjs +34 -0
- package/dist/actions/retrieve-all-lists.cjs.map +1 -0
- package/dist/actions/retrieve-all-lists.d.cts +9 -0
- package/dist/actions/retrieve-all-lists.d.cts.map +1 -0
- package/dist/actions/retrieve-all-lists.d.mts +9 -0
- package/dist/actions/retrieve-all-lists.d.mts.map +1 -0
- package/dist/actions/retrieve-all-lists.mjs +33 -0
- package/dist/actions/retrieve-all-lists.mjs.map +1 -0
- package/dist/actions/retrieve-all-mail-settings.cjs +25 -0
- package/dist/actions/retrieve-all-mail-settings.cjs.map +1 -0
- package/dist/actions/retrieve-all-mail-settings.d.cts +9 -0
- package/dist/actions/retrieve-all-mail-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-all-mail-settings.d.mts +9 -0
- package/dist/actions/retrieve-all-mail-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-all-mail-settings.mjs +24 -0
- package/dist/actions/retrieve-all-mail-settings.mjs.map +1 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.cjs +41 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.cjs.map +1 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.d.cts +9 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.d.cts.map +1 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.d.mts +9 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.d.mts.map +1 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.mjs +40 -0
- package/dist/actions/retrieve-all-of-your-event-webhooks.mjs.map +1 -0
- package/dist/actions/retrieve-all-parse-settings.cjs +22 -0
- package/dist/actions/retrieve-all-parse-settings.cjs.map +1 -0
- package/dist/actions/retrieve-all-parse-settings.d.cts +9 -0
- package/dist/actions/retrieve-all-parse-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-all-parse-settings.d.mts +9 -0
- package/dist/actions/retrieve-all-parse-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-all-parse-settings.mjs +21 -0
- package/dist/actions/retrieve-all-parse-settings.mjs.map +1 -0
- package/dist/actions/retrieve-all-pending-teammates.cjs +23 -0
- package/dist/actions/retrieve-all-pending-teammates.cjs.map +1 -0
- package/dist/actions/retrieve-all-pending-teammates.d.cts +9 -0
- package/dist/actions/retrieve-all-pending-teammates.d.cts.map +1 -0
- package/dist/actions/retrieve-all-pending-teammates.d.mts +9 -0
- package/dist/actions/retrieve-all-pending-teammates.d.mts.map +1 -0
- package/dist/actions/retrieve-all-pending-teammates.mjs +22 -0
- package/dist/actions/retrieve-all-pending-teammates.mjs.map +1 -0
- package/dist/actions/retrieve-all-recent-access-attempts.cjs +24 -0
- package/dist/actions/retrieve-all-recent-access-attempts.cjs.map +1 -0
- package/dist/actions/retrieve-all-recent-access-attempts.d.cts +9 -0
- package/dist/actions/retrieve-all-recent-access-attempts.d.cts.map +1 -0
- package/dist/actions/retrieve-all-recent-access-attempts.d.mts +9 -0
- package/dist/actions/retrieve-all-recent-access-attempts.d.mts.map +1 -0
- package/dist/actions/retrieve-all-recent-access-attempts.mjs +23 -0
- package/dist/actions/retrieve-all-recent-access-attempts.mjs.map +1 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.cjs +31 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.cjs.map +1 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.d.cts +9 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.d.cts.map +1 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.d.mts +9 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.d.mts.map +1 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.mjs +30 -0
- package/dist/actions/retrieve-all-recipients-on-a-list.mjs.map +1 -0
- package/dist/actions/retrieve-all-reverse-dns-records.cjs +20 -0
- package/dist/actions/retrieve-all-reverse-dns-records.cjs.map +1 -0
- package/dist/actions/retrieve-all-reverse-dns-records.d.cts +9 -0
- package/dist/actions/retrieve-all-reverse-dns-records.d.cts.map +1 -0
- package/dist/actions/retrieve-all-reverse-dns-records.d.mts +9 -0
- package/dist/actions/retrieve-all-reverse-dns-records.d.mts.map +1 -0
- package/dist/actions/retrieve-all-reverse-dns-records.mjs +17 -0
- package/dist/actions/retrieve-all-reverse-dns-records.mjs.map +1 -0
- package/dist/actions/retrieve-all-scheduled-sends.cjs +20 -0
- package/dist/actions/retrieve-all-scheduled-sends.cjs.map +1 -0
- package/dist/actions/retrieve-all-scheduled-sends.d.cts +9 -0
- package/dist/actions/retrieve-all-scheduled-sends.d.cts.map +1 -0
- package/dist/actions/retrieve-all-scheduled-sends.d.mts +9 -0
- package/dist/actions/retrieve-all-scheduled-sends.d.mts.map +1 -0
- package/dist/actions/retrieve-all-scheduled-sends.mjs +19 -0
- package/dist/actions/retrieve-all-scheduled-sends.mjs.map +1 -0
- package/dist/actions/retrieve-all-spam-reports.cjs +22 -0
- package/dist/actions/retrieve-all-spam-reports.cjs.map +1 -0
- package/dist/actions/retrieve-all-spam-reports.d.cts +9 -0
- package/dist/actions/retrieve-all-spam-reports.d.cts.map +1 -0
- package/dist/actions/retrieve-all-spam-reports.d.mts +9 -0
- package/dist/actions/retrieve-all-spam-reports.d.mts.map +1 -0
- package/dist/actions/retrieve-all-spam-reports.mjs +19 -0
- package/dist/actions/retrieve-all-spam-reports.mjs.map +1 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.cjs +16 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.cjs.map +1 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.d.cts +9 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.d.cts.map +1 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.d.mts +9 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.d.mts.map +1 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.mjs +13 -0
- package/dist/actions/retrieve-all-suppressions-for-a-suppression-group.mjs.map +1 -0
- package/dist/actions/retrieve-all-suppressions.cjs +22 -0
- package/dist/actions/retrieve-all-suppressions.cjs.map +1 -0
- package/dist/actions/retrieve-all-suppressions.d.cts +9 -0
- package/dist/actions/retrieve-all-suppressions.d.cts.map +1 -0
- package/dist/actions/retrieve-all-suppressions.d.mts +9 -0
- package/dist/actions/retrieve-all-suppressions.d.mts.map +1 -0
- package/dist/actions/retrieve-all-suppressions.mjs +21 -0
- package/dist/actions/retrieve-all-suppressions.mjs.map +1 -0
- package/dist/actions/retrieve-all-teammates.cjs +39 -0
- package/dist/actions/retrieve-all-teammates.cjs.map +1 -0
- package/dist/actions/retrieve-all-teammates.d.cts +9 -0
- package/dist/actions/retrieve-all-teammates.d.cts.map +1 -0
- package/dist/actions/retrieve-all-teammates.d.mts +9 -0
- package/dist/actions/retrieve-all-teammates.d.mts.map +1 -0
- package/dist/actions/retrieve-all-teammates.mjs +38 -0
- package/dist/actions/retrieve-all-teammates.mjs.map +1 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.cjs +25 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.cjs.map +1 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.d.cts +9 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.d.cts.map +1 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.d.mts +9 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.d.mts.map +1 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.mjs +24 -0
- package/dist/actions/retrieve-all-the-ips-in-a-specified-pool.mjs.map +1 -0
- package/dist/actions/retrieve-an-authenticated-domain.cjs +44 -0
- package/dist/actions/retrieve-an-authenticated-domain.cjs.map +1 -0
- package/dist/actions/retrieve-an-authenticated-domain.d.cts +9 -0
- package/dist/actions/retrieve-an-authenticated-domain.d.cts.map +1 -0
- package/dist/actions/retrieve-an-authenticated-domain.d.mts +9 -0
- package/dist/actions/retrieve-an-authenticated-domain.d.mts.map +1 -0
- package/dist/actions/retrieve-an-authenticated-domain.mjs +43 -0
- package/dist/actions/retrieve-an-authenticated-domain.mjs.map +1 -0
- package/dist/actions/retrieve-an-existing-api-key.cjs +20 -0
- package/dist/actions/retrieve-an-existing-api-key.cjs.map +1 -0
- package/dist/actions/retrieve-an-existing-api-key.d.cts +9 -0
- package/dist/actions/retrieve-an-existing-api-key.d.cts.map +1 -0
- package/dist/actions/retrieve-an-existing-api-key.d.mts +9 -0
- package/dist/actions/retrieve-an-existing-api-key.d.mts.map +1 -0
- package/dist/actions/retrieve-an-existing-api-key.mjs +17 -0
- package/dist/actions/retrieve-an-existing-api-key.mjs.map +1 -0
- package/dist/actions/retrieve-bounce-classification-totals.cjs +19 -0
- package/dist/actions/retrieve-bounce-classification-totals.cjs.map +1 -0
- package/dist/actions/retrieve-bounce-classification-totals.d.cts +9 -0
- package/dist/actions/retrieve-bounce-classification-totals.d.cts.map +1 -0
- package/dist/actions/retrieve-bounce-classification-totals.d.mts +9 -0
- package/dist/actions/retrieve-bounce-classification-totals.d.mts.map +1 -0
- package/dist/actions/retrieve-bounce-classification-totals.mjs +16 -0
- package/dist/actions/retrieve-bounce-classification-totals.mjs.map +1 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.cjs +20 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.cjs.map +1 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.d.cts +9 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.d.mts +9 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.mjs +17 -0
- package/dist/actions/retrieve-bounce-purge-mail-settings.mjs.map +1 -0
- package/dist/actions/retrieve-click-track-settings.cjs +19 -0
- package/dist/actions/retrieve-click-track-settings.cjs.map +1 -0
- package/dist/actions/retrieve-click-track-settings.d.cts +9 -0
- package/dist/actions/retrieve-click-track-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-click-track-settings.d.mts +9 -0
- package/dist/actions/retrieve-click-track-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-click-track-settings.mjs +16 -0
- package/dist/actions/retrieve-click-track-settings.mjs.map +1 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.cjs +20 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.cjs.map +1 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.d.cts +9 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.d.mts +9 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.mjs +17 -0
- package/dist/actions/retrieve-current-enforced-tls-settings.mjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-browser.cjs +27 -0
- package/dist/actions/retrieve-email-statistics-by-browser.cjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-browser.d.cts +9 -0
- package/dist/actions/retrieve-email-statistics-by-browser.d.cts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-browser.d.mts +9 -0
- package/dist/actions/retrieve-email-statistics-by-browser.d.mts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-browser.mjs +24 -0
- package/dist/actions/retrieve-email-statistics-by-browser.mjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.cjs +26 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.cjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.d.cts +9 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.d.cts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.d.mts +9 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.d.mts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.mjs +23 -0
- package/dist/actions/retrieve-email-statistics-by-client-type.mjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.cjs +26 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.cjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.d.cts +9 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.d.cts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.d.mts +9 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.d.mts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.mjs +23 -0
- package/dist/actions/retrieve-email-statistics-by-device-type.mjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.cjs +27 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.cjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.d.cts +9 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.d.cts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.d.mts +9 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.d.mts.map +1 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.mjs +24 -0
- package/dist/actions/retrieve-email-statistics-by-mailbox-provider.mjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-categories.cjs +54 -0
- package/dist/actions/retrieve-email-statistics-for-categories.cjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-categories.d.cts +9 -0
- package/dist/actions/retrieve-email-statistics-for-categories.d.cts.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-categories.d.mts +9 -0
- package/dist/actions/retrieve-email-statistics-for-categories.d.mts.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-categories.mjs +53 -0
- package/dist/actions/retrieve-email-statistics-for-categories.mjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.cjs +54 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.cjs.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.d.cts +9 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.d.cts.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.d.mts +9 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.d.mts.map +1 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.mjs +53 -0
- package/dist/actions/retrieve-email-statistics-for-your-subusers.mjs.map +1 -0
- package/dist/actions/retrieve-footer-mail-settings.cjs +20 -0
- package/dist/actions/retrieve-footer-mail-settings.cjs.map +1 -0
- package/dist/actions/retrieve-footer-mail-settings.d.cts +9 -0
- package/dist/actions/retrieve-footer-mail-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-footer-mail-settings.d.mts +9 -0
- package/dist/actions/retrieve-footer-mail-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-footer-mail-settings.mjs +17 -0
- package/dist/actions/retrieve-footer-mail-settings.mjs.map +1 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.cjs +19 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.cjs.map +1 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.d.cts +9 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.d.mts +9 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.mjs +16 -0
- package/dist/actions/retrieve-forward-bounce-mail-settings.mjs.map +1 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.cjs +19 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.cjs.map +1 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.d.cts +9 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.d.mts +9 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.mjs +16 -0
- package/dist/actions/retrieve-forward-spam-mail-settings.mjs.map +1 -0
- package/dist/actions/retrieve-global-email-statistics.cjs +26 -0
- package/dist/actions/retrieve-global-email-statistics.cjs.map +1 -0
- package/dist/actions/retrieve-global-email-statistics.d.cts +9 -0
- package/dist/actions/retrieve-global-email-statistics.d.cts.map +1 -0
- package/dist/actions/retrieve-global-email-statistics.d.mts +9 -0
- package/dist/actions/retrieve-global-email-statistics.d.mts.map +1 -0
- package/dist/actions/retrieve-global-email-statistics.mjs +23 -0
- package/dist/actions/retrieve-global-email-statistics.mjs.map +1 -0
- package/dist/actions/retrieve-google-analytics-settings.cjs +23 -0
- package/dist/actions/retrieve-google-analytics-settings.cjs.map +1 -0
- package/dist/actions/retrieve-google-analytics-settings.d.cts +9 -0
- package/dist/actions/retrieve-google-analytics-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-google-analytics-settings.d.mts +9 -0
- package/dist/actions/retrieve-google-analytics-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-google-analytics-settings.mjs +20 -0
- package/dist/actions/retrieve-google-analytics-settings.mjs.map +1 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.cjs +19 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.cjs.map +1 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.d.cts +9 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.d.mts +9 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.mjs +16 -0
- package/dist/actions/retrieve-legacy-template-mail-settings.mjs.map +1 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.cjs +60 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.cjs.map +1 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.d.cts +9 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.d.cts.map +1 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.d.mts +9 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.d.mts.map +1 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.mjs +59 -0
- package/dist/actions/retrieve-monthly-stats-for-all-subusers.mjs.map +1 -0
- package/dist/actions/retrieve-paged-transactional-templates.cjs +56 -0
- package/dist/actions/retrieve-paged-transactional-templates.cjs.map +1 -0
- package/dist/actions/retrieve-paged-transactional-templates.d.cts +9 -0
- package/dist/actions/retrieve-paged-transactional-templates.d.cts.map +1 -0
- package/dist/actions/retrieve-paged-transactional-templates.d.mts +9 -0
- package/dist/actions/retrieve-paged-transactional-templates.d.mts.map +1 -0
- package/dist/actions/retrieve-paged-transactional-templates.mjs +55 -0
- package/dist/actions/retrieve-paged-transactional-templates.mjs.map +1 -0
- package/dist/actions/retrieve-recipients-on-a-segment.cjs +31 -0
- package/dist/actions/retrieve-recipients-on-a-segment.cjs.map +1 -0
- package/dist/actions/retrieve-recipients-on-a-segment.d.cts +9 -0
- package/dist/actions/retrieve-recipients-on-a-segment.d.cts.map +1 -0
- package/dist/actions/retrieve-recipients-on-a-segment.d.mts +9 -0
- package/dist/actions/retrieve-recipients-on-a-segment.d.mts.map +1 -0
- package/dist/actions/retrieve-recipients-on-a-segment.mjs +30 -0
- package/dist/actions/retrieve-recipients-on-a-segment.mjs.map +1 -0
- package/dist/actions/retrieve-recipients.cjs +37 -0
- package/dist/actions/retrieve-recipients.cjs.map +1 -0
- package/dist/actions/retrieve-recipients.d.cts +9 -0
- package/dist/actions/retrieve-recipients.d.cts.map +1 -0
- package/dist/actions/retrieve-recipients.d.mts +9 -0
- package/dist/actions/retrieve-recipients.d.mts.map +1 -0
- package/dist/actions/retrieve-recipients.mjs +36 -0
- package/dist/actions/retrieve-recipients.mjs.map +1 -0
- package/dist/actions/retrieve-reserved-fields.cjs +22 -0
- package/dist/actions/retrieve-reserved-fields.cjs.map +1 -0
- package/dist/actions/retrieve-reserved-fields.d.cts +9 -0
- package/dist/actions/retrieve-reserved-fields.d.cts.map +1 -0
- package/dist/actions/retrieve-reserved-fields.d.mts +9 -0
- package/dist/actions/retrieve-reserved-fields.d.mts.map +1 -0
- package/dist/actions/retrieve-reserved-fields.mjs +21 -0
- package/dist/actions/retrieve-reserved-fields.mjs.map +1 -0
- package/dist/actions/retrieve-scheduled-send.cjs +24 -0
- package/dist/actions/retrieve-scheduled-send.cjs.map +1 -0
- package/dist/actions/retrieve-scheduled-send.d.cts +9 -0
- package/dist/actions/retrieve-scheduled-send.d.cts.map +1 -0
- package/dist/actions/retrieve-scheduled-send.d.mts +9 -0
- package/dist/actions/retrieve-scheduled-send.d.mts.map +1 -0
- package/dist/actions/retrieve-scheduled-send.mjs +23 -0
- package/dist/actions/retrieve-scheduled-send.mjs.map +1 -0
- package/dist/actions/retrieve-single-segment-endpoint.cjs +31 -0
- package/dist/actions/retrieve-single-segment-endpoint.cjs.map +1 -0
- package/dist/actions/retrieve-single-segment-endpoint.d.cts +9 -0
- package/dist/actions/retrieve-single-segment-endpoint.d.cts.map +1 -0
- package/dist/actions/retrieve-single-segment-endpoint.d.mts +9 -0
- package/dist/actions/retrieve-single-segment-endpoint.d.mts.map +1 -0
- package/dist/actions/retrieve-single-segment-endpoint.mjs +30 -0
- package/dist/actions/retrieve-single-segment-endpoint.mjs.map +1 -0
- package/dist/actions/retrieve-specific-teammate.cjs +25 -0
- package/dist/actions/retrieve-specific-teammate.cjs.map +1 -0
- package/dist/actions/retrieve-specific-teammate.d.cts +9 -0
- package/dist/actions/retrieve-specific-teammate.d.cts.map +1 -0
- package/dist/actions/retrieve-specific-teammate.d.mts +9 -0
- package/dist/actions/retrieve-specific-teammate.d.mts.map +1 -0
- package/dist/actions/retrieve-specific-teammate.mjs +24 -0
- package/dist/actions/retrieve-specific-teammate.mjs.map +1 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.cjs +30 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.cjs.map +1 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.d.cts +9 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.d.cts.map +1 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.d.mts +9 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.d.mts.map +1 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.mjs +27 -0
- package/dist/actions/retrieve-stats-by-a-specific-client-type.mjs.map +1 -0
- package/dist/actions/retrieve-subscription-tracking-settings.cjs +23 -0
- package/dist/actions/retrieve-subscription-tracking-settings.cjs.map +1 -0
- package/dist/actions/retrieve-subscription-tracking-settings.d.cts +9 -0
- package/dist/actions/retrieve-subscription-tracking-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-subscription-tracking-settings.d.mts +9 -0
- package/dist/actions/retrieve-subscription-tracking-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-subscription-tracking-settings.mjs +20 -0
- package/dist/actions/retrieve-subscription-tracking-settings.mjs.map +1 -0
- package/dist/actions/retrieve-subuser-reputations.cjs +20 -0
- package/dist/actions/retrieve-subuser-reputations.cjs.map +1 -0
- package/dist/actions/retrieve-subuser-reputations.d.cts +9 -0
- package/dist/actions/retrieve-subuser-reputations.d.cts.map +1 -0
- package/dist/actions/retrieve-subuser-reputations.d.mts +9 -0
- package/dist/actions/retrieve-subuser-reputations.d.mts.map +1 -0
- package/dist/actions/retrieve-subuser-reputations.mjs +19 -0
- package/dist/actions/retrieve-subuser-reputations.mjs.map +1 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.cjs +66 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.cjs.map +1 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.d.cts +9 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.d.cts.map +1 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.d.mts +9 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.d.mts.map +1 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.mjs +65 -0
- package/dist/actions/retrieve-sums-of-email-stats-for-each-category.mjs.map +1 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.cjs +16 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.cjs.map +1 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.d.cts +9 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.d.cts.map +1 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.d.mts +9 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.d.mts.map +1 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.mjs +13 -0
- package/dist/actions/retrieve-the-count-of-billable-recipients.mjs.map +1 -0
- package/dist/actions/retrieve-the-default-branded-link.cjs +37 -0
- package/dist/actions/retrieve-the-default-branded-link.cjs.map +1 -0
- package/dist/actions/retrieve-the-default-branded-link.d.cts +9 -0
- package/dist/actions/retrieve-the-default-branded-link.d.cts.map +1 -0
- package/dist/actions/retrieve-the-default-branded-link.d.mts +9 -0
- package/dist/actions/retrieve-the-default-branded-link.d.mts.map +1 -0
- package/dist/actions/retrieve-the-default-branded-link.mjs +36 -0
- package/dist/actions/retrieve-the-default-branded-link.mjs.map +1 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.cjs +21 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.cjs.map +1 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.d.cts +9 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.d.cts.map +1 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.d.mts +9 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.d.mts.map +1 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.mjs +20 -0
- package/dist/actions/retrieve-the-lists-that-a-recipient-is-on.mjs.map +1 -0
- package/dist/actions/retrieve-tracking-settings.cjs +16 -0
- package/dist/actions/retrieve-tracking-settings.cjs.map +1 -0
- package/dist/actions/retrieve-tracking-settings.d.cts +9 -0
- package/dist/actions/retrieve-tracking-settings.d.cts.map +1 -0
- package/dist/actions/retrieve-tracking-settings.d.mts +9 -0
- package/dist/actions/retrieve-tracking-settings.d.mts.map +1 -0
- package/dist/actions/retrieve-tracking-settings.mjs +13 -0
- package/dist/actions/retrieve-tracking-settings.mjs.map +1 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.cjs +41 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.cjs.map +1 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.d.cts +9 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.d.cts.map +1 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.d.mts +9 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.d.mts.map +1 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.mjs +40 -0
- package/dist/actions/retrieve-user-s-authenticated-domains.mjs.map +1 -0
- package/dist/actions/retrieve-your-account-email-address.cjs +16 -0
- package/dist/actions/retrieve-your-account-email-address.cjs.map +1 -0
- package/dist/actions/retrieve-your-account-email-address.d.cts +9 -0
- package/dist/actions/retrieve-your-account-email-address.d.cts.map +1 -0
- package/dist/actions/retrieve-your-account-email-address.d.mts +9 -0
- package/dist/actions/retrieve-your-account-email-address.d.mts.map +1 -0
- package/dist/actions/retrieve-your-account-email-address.mjs +13 -0
- package/dist/actions/retrieve-your-account-email-address.mjs.map +1 -0
- package/dist/actions/retrieve-your-credit-balance.cjs +25 -0
- package/dist/actions/retrieve-your-credit-balance.cjs.map +1 -0
- package/dist/actions/retrieve-your-credit-balance.d.cts +9 -0
- package/dist/actions/retrieve-your-credit-balance.d.cts.map +1 -0
- package/dist/actions/retrieve-your-credit-balance.d.mts +9 -0
- package/dist/actions/retrieve-your-credit-balance.d.mts.map +1 -0
- package/dist/actions/retrieve-your-credit-balance.mjs +24 -0
- package/dist/actions/retrieve-your-credit-balance.mjs.map +1 -0
- package/dist/actions/retrieve-your-username.cjs +19 -0
- package/dist/actions/retrieve-your-username.cjs.map +1 -0
- package/dist/actions/retrieve-your-username.d.cts +9 -0
- package/dist/actions/retrieve-your-username.d.cts.map +1 -0
- package/dist/actions/retrieve-your-username.d.mts +9 -0
- package/dist/actions/retrieve-your-username.d.mts.map +1 -0
- package/dist/actions/retrieve-your-username.mjs +16 -0
- package/dist/actions/retrieve-your-username.mjs.map +1 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.cjs +26 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.cjs.map +1 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.d.cts +9 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.d.cts.map +1 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.d.mts +9 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.d.mts.map +1 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.mjs +23 -0
- package/dist/actions/retrieves-inbound-parse-webhook-statistics.mjs.map +1 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.cjs +25 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.cjs.map +1 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.d.cts +9 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.d.cts.map +1 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.d.mts +9 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.d.mts.map +1 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.mjs +24 -0
- package/dist/actions/returns-a-list-of-all-partner-settings.mjs.map +1 -0
- package/dist/actions/schedule-a-campaign.cjs +24 -0
- package/dist/actions/schedule-a-campaign.cjs.map +1 -0
- package/dist/actions/schedule-a-campaign.d.cts +9 -0
- package/dist/actions/schedule-a-campaign.d.cts.map +1 -0
- package/dist/actions/schedule-a-campaign.d.mts +9 -0
- package/dist/actions/schedule-a-campaign.d.mts.map +1 -0
- package/dist/actions/schedule-a-campaign.mjs +23 -0
- package/dist/actions/schedule-a-campaign.mjs.map +1 -0
- package/dist/actions/schedule-single-send.cjs +34 -0
- package/dist/actions/schedule-single-send.cjs.map +1 -0
- package/dist/actions/schedule-single-send.d.cts +9 -0
- package/dist/actions/schedule-single-send.d.cts.map +1 -0
- package/dist/actions/schedule-single-send.d.mts +9 -0
- package/dist/actions/schedule-single-send.d.mts.map +1 -0
- package/dist/actions/schedule-single-send.mjs +33 -0
- package/dist/actions/schedule-single-send.mjs.map +1 -0
- package/dist/actions/search-contacts.cjs +46 -0
- package/dist/actions/search-contacts.cjs.map +1 -0
- package/dist/actions/search-contacts.d.cts +9 -0
- package/dist/actions/search-contacts.d.cts.map +1 -0
- package/dist/actions/search-contacts.d.mts +9 -0
- package/dist/actions/search-contacts.d.mts.map +1 -0
- package/dist/actions/search-contacts.mjs +45 -0
- package/dist/actions/search-contacts.mjs.map +1 -0
- package/dist/actions/search-for-suppressions-within-a-group.cjs +19 -0
- package/dist/actions/search-for-suppressions-within-a-group.cjs.map +1 -0
- package/dist/actions/search-for-suppressions-within-a-group.d.cts +9 -0
- package/dist/actions/search-for-suppressions-within-a-group.d.cts.map +1 -0
- package/dist/actions/search-for-suppressions-within-a-group.d.mts +9 -0
- package/dist/actions/search-for-suppressions-within-a-group.d.mts.map +1 -0
- package/dist/actions/search-for-suppressions-within-a-group.mjs +16 -0
- package/dist/actions/search-for-suppressions-within-a-group.mjs.map +1 -0
- package/dist/actions/search-recipients.cjs +50 -0
- package/dist/actions/search-recipients.cjs.map +1 -0
- package/dist/actions/search-recipients.d.cts +9 -0
- package/dist/actions/search-recipients.d.cts.map +1 -0
- package/dist/actions/search-recipients.d.mts +9 -0
- package/dist/actions/search-recipients.d.mts.map +1 -0
- package/dist/actions/search-recipients.mjs +49 -0
- package/dist/actions/search-recipients.mjs.map +1 -0
- package/dist/actions/send-a-campaign.cjs +27 -0
- package/dist/actions/send-a-campaign.cjs.map +1 -0
- package/dist/actions/send-a-campaign.d.cts +9 -0
- package/dist/actions/send-a-campaign.d.cts.map +1 -0
- package/dist/actions/send-a-campaign.d.mts +9 -0
- package/dist/actions/send-a-campaign.d.mts.map +1 -0
- package/dist/actions/send-a-campaign.mjs +26 -0
- package/dist/actions/send-a-campaign.mjs.map +1 -0
- package/dist/actions/send-a-test-marketing-email.cjs +29 -0
- package/dist/actions/send-a-test-marketing-email.cjs.map +1 -0
- package/dist/actions/send-a-test-marketing-email.d.cts +9 -0
- package/dist/actions/send-a-test-marketing-email.d.cts.map +1 -0
- package/dist/actions/send-a-test-marketing-email.d.mts +9 -0
- package/dist/actions/send-a-test-marketing-email.d.mts.map +1 -0
- package/dist/actions/send-a-test-marketing-email.mjs +28 -0
- package/dist/actions/send-a-test-marketing-email.mjs.map +1 -0
- package/dist/actions/send-email-with-twilio-send-grid.cjs +61 -0
- package/dist/actions/send-email-with-twilio-send-grid.cjs.map +1 -0
- package/dist/actions/send-email-with-twilio-send-grid.d.cts +9 -0
- package/dist/actions/send-email-with-twilio-send-grid.d.cts.map +1 -0
- package/dist/actions/send-email-with-twilio-send-grid.d.mts +9 -0
- package/dist/actions/send-email-with-twilio-send-grid.d.mts.map +1 -0
- package/dist/actions/send-email-with-twilio-send-grid.mjs +60 -0
- package/dist/actions/send-email-with-twilio-send-grid.mjs.map +1 -0
- package/dist/actions/set-up-reverse-dns.cjs +38 -0
- package/dist/actions/set-up-reverse-dns.cjs.map +1 -0
- package/dist/actions/set-up-reverse-dns.d.cts +9 -0
- package/dist/actions/set-up-reverse-dns.d.cts.map +1 -0
- package/dist/actions/set-up-reverse-dns.d.mts +9 -0
- package/dist/actions/set-up-reverse-dns.d.mts.map +1 -0
- package/dist/actions/set-up-reverse-dns.mjs +37 -0
- package/dist/actions/set-up-reverse-dns.mjs.map +1 -0
- package/dist/actions/start-warming-up-an-ip-address.cjs +20 -0
- package/dist/actions/start-warming-up-an-ip-address.cjs.map +1 -0
- package/dist/actions/start-warming-up-an-ip-address.d.cts +9 -0
- package/dist/actions/start-warming-up-an-ip-address.d.cts.map +1 -0
- package/dist/actions/start-warming-up-an-ip-address.d.mts +9 -0
- package/dist/actions/start-warming-up-an-ip-address.d.mts.map +1 -0
- package/dist/actions/start-warming-up-an-ip-address.mjs +19 -0
- package/dist/actions/start-warming-up-an-ip-address.mjs.map +1 -0
- package/dist/actions/stop-warming-up-an-ip-address.cjs +16 -0
- package/dist/actions/stop-warming-up-an-ip-address.cjs.map +1 -0
- package/dist/actions/stop-warming-up-an-ip-address.d.cts +9 -0
- package/dist/actions/stop-warming-up-an-ip-address.d.cts.map +1 -0
- package/dist/actions/stop-warming-up-an-ip-address.d.mts +9 -0
- package/dist/actions/stop-warming-up-an-ip-address.d.mts.map +1 -0
- package/dist/actions/stop-warming-up-an-ip-address.mjs +13 -0
- package/dist/actions/stop-warming-up-an-ip-address.mjs.map +1 -0
- package/dist/actions/sum-email-stats-for-subusers.cjs +55 -0
- package/dist/actions/sum-email-stats-for-subusers.cjs.map +1 -0
- package/dist/actions/sum-email-stats-for-subusers.d.cts +9 -0
- package/dist/actions/sum-email-stats-for-subusers.d.cts.map +1 -0
- package/dist/actions/sum-email-stats-for-subusers.d.mts +9 -0
- package/dist/actions/sum-email-stats-for-subusers.d.mts.map +1 -0
- package/dist/actions/sum-email-stats-for-subusers.mjs +54 -0
- package/dist/actions/sum-email-stats-for-subusers.mjs.map +1 -0
- package/dist/actions/test-an-event-webhook-s-settings.cjs +22 -0
- package/dist/actions/test-an-event-webhook-s-settings.cjs.map +1 -0
- package/dist/actions/test-an-event-webhook-s-settings.d.cts +9 -0
- package/dist/actions/test-an-event-webhook-s-settings.d.cts.map +1 -0
- package/dist/actions/test-an-event-webhook-s-settings.d.mts +9 -0
- package/dist/actions/test-an-event-webhook-s-settings.d.mts.map +1 -0
- package/dist/actions/test-an-event-webhook-s-settings.mjs +19 -0
- package/dist/actions/test-an-event-webhook-s-settings.mjs.map +1 -0
- package/dist/actions/toggle-webhook-signature.cjs +22 -0
- package/dist/actions/toggle-webhook-signature.cjs.map +1 -0
- package/dist/actions/toggle-webhook-signature.d.cts +9 -0
- package/dist/actions/toggle-webhook-signature.d.cts.map +1 -0
- package/dist/actions/toggle-webhook-signature.d.mts +9 -0
- package/dist/actions/toggle-webhook-signature.d.mts.map +1 -0
- package/dist/actions/toggle-webhook-signature.mjs +19 -0
- package/dist/actions/toggle-webhook-signature.mjs.map +1 -0
- package/dist/actions/unlink-subuser-domain.cjs +19 -0
- package/dist/actions/unlink-subuser-domain.cjs.map +1 -0
- package/dist/actions/unlink-subuser-domain.d.cts +9 -0
- package/dist/actions/unlink-subuser-domain.d.cts.map +1 -0
- package/dist/actions/unlink-subuser-domain.d.mts +9 -0
- package/dist/actions/unlink-subuser-domain.d.mts.map +1 -0
- package/dist/actions/unlink-subuser-domain.mjs +16 -0
- package/dist/actions/unlink-subuser-domain.mjs.map +1 -0
- package/dist/actions/unschedule-a-scheduled-campaign.cjs +21 -0
- package/dist/actions/unschedule-a-scheduled-campaign.cjs.map +1 -0
- package/dist/actions/unschedule-a-scheduled-campaign.d.cts +9 -0
- package/dist/actions/unschedule-a-scheduled-campaign.d.cts.map +1 -0
- package/dist/actions/unschedule-a-scheduled-campaign.d.mts +9 -0
- package/dist/actions/unschedule-a-scheduled-campaign.d.mts.map +1 -0
- package/dist/actions/unschedule-a-scheduled-campaign.mjs +20 -0
- package/dist/actions/unschedule-a-scheduled-campaign.mjs.map +1 -0
- package/dist/actions/update-a-branded-link.cjs +40 -0
- package/dist/actions/update-a-branded-link.cjs.map +1 -0
- package/dist/actions/update-a-branded-link.d.cts +9 -0
- package/dist/actions/update-a-branded-link.d.cts.map +1 -0
- package/dist/actions/update-a-branded-link.d.mts +9 -0
- package/dist/actions/update-a-branded-link.d.mts.map +1 -0
- package/dist/actions/update-a-branded-link.mjs +39 -0
- package/dist/actions/update-a-branded-link.mjs.map +1 -0
- package/dist/actions/update-a-campaign.cjs +39 -0
- package/dist/actions/update-a-campaign.cjs.map +1 -0
- package/dist/actions/update-a-campaign.d.cts +9 -0
- package/dist/actions/update-a-campaign.d.cts.map +1 -0
- package/dist/actions/update-a-campaign.d.mts +9 -0
- package/dist/actions/update-a-campaign.d.mts.map +1 -0
- package/dist/actions/update-a-campaign.mjs +38 -0
- package/dist/actions/update-a-campaign.mjs.map +1 -0
- package/dist/actions/update-a-list.cjs +23 -0
- package/dist/actions/update-a-list.cjs.map +1 -0
- package/dist/actions/update-a-list.d.cts +9 -0
- package/dist/actions/update-a-list.d.cts.map +1 -0
- package/dist/actions/update-a-list.d.mts +9 -0
- package/dist/actions/update-a-list.d.mts.map +1 -0
- package/dist/actions/update-a-list.mjs +20 -0
- package/dist/actions/update-a-list.mjs.map +1 -0
- package/dist/actions/update-a-parse-setting.cjs +28 -0
- package/dist/actions/update-a-parse-setting.cjs.map +1 -0
- package/dist/actions/update-a-parse-setting.d.cts +9 -0
- package/dist/actions/update-a-parse-setting.d.cts.map +1 -0
- package/dist/actions/update-a-parse-setting.d.mts +9 -0
- package/dist/actions/update-a-parse-setting.d.mts.map +1 -0
- package/dist/actions/update-a-parse-setting.mjs +27 -0
- package/dist/actions/update-a-parse-setting.mjs.map +1 -0
- package/dist/actions/update-a-scheduled-campaign.cjs +22 -0
- package/dist/actions/update-a-scheduled-campaign.cjs.map +1 -0
- package/dist/actions/update-a-scheduled-campaign.d.cts +9 -0
- package/dist/actions/update-a-scheduled-campaign.d.cts.map +1 -0
- package/dist/actions/update-a-scheduled-campaign.d.mts +9 -0
- package/dist/actions/update-a-scheduled-campaign.d.mts.map +1 -0
- package/dist/actions/update-a-scheduled-campaign.mjs +19 -0
- package/dist/actions/update-a-scheduled-campaign.mjs.map +1 -0
- package/dist/actions/update-a-scheduled-send.cjs +23 -0
- package/dist/actions/update-a-scheduled-send.cjs.map +1 -0
- package/dist/actions/update-a-scheduled-send.d.cts +9 -0
- package/dist/actions/update-a-scheduled-send.d.cts.map +1 -0
- package/dist/actions/update-a-scheduled-send.d.mts +9 -0
- package/dist/actions/update-a-scheduled-send.d.mts.map +1 -0
- package/dist/actions/update-a-scheduled-send.mjs +22 -0
- package/dist/actions/update-a-scheduled-send.mjs.map +1 -0
- package/dist/actions/update-a-segment.cjs +30 -0
- package/dist/actions/update-a-segment.cjs.map +1 -0
- package/dist/actions/update-a-segment.d.cts +9 -0
- package/dist/actions/update-a-segment.d.cts.map +1 -0
- package/dist/actions/update-a-segment.d.mts +9 -0
- package/dist/actions/update-a-segment.d.mts.map +1 -0
- package/dist/actions/update-a-segment.mjs +29 -0
- package/dist/actions/update-a-segment.mjs.map +1 -0
- package/dist/actions/update-a-sender-identity.cjs +45 -0
- package/dist/actions/update-a-sender-identity.cjs.map +1 -0
- package/dist/actions/update-a-sender-identity.d.cts +9 -0
- package/dist/actions/update-a-sender-identity.d.cts.map +1 -0
- package/dist/actions/update-a-sender-identity.d.mts +9 -0
- package/dist/actions/update-a-sender-identity.d.mts.map +1 -0
- package/dist/actions/update-a-sender-identity.mjs +44 -0
- package/dist/actions/update-a-sender-identity.mjs.map +1 -0
- package/dist/actions/update-a-sender.cjs +53 -0
- package/dist/actions/update-a-sender.cjs.map +1 -0
- package/dist/actions/update-a-sender.d.cts +9 -0
- package/dist/actions/update-a-sender.d.cts.map +1 -0
- package/dist/actions/update-a-sender.d.mts +9 -0
- package/dist/actions/update-a-sender.d.mts.map +1 -0
- package/dist/actions/update-a-sender.mjs +52 -0
- package/dist/actions/update-a-sender.mjs.map +1 -0
- package/dist/actions/update-a-single-event-webhook-by-id.cjs +57 -0
- package/dist/actions/update-a-single-event-webhook-by-id.cjs.map +1 -0
- package/dist/actions/update-a-single-event-webhook-by-id.d.cts +9 -0
- package/dist/actions/update-a-single-event-webhook-by-id.d.cts.map +1 -0
- package/dist/actions/update-a-single-event-webhook-by-id.d.mts +9 -0
- package/dist/actions/update-a-single-event-webhook-by-id.d.mts.map +1 -0
- package/dist/actions/update-a-single-event-webhook-by-id.mjs +54 -0
- package/dist/actions/update-a-single-event-webhook-by-id.mjs.map +1 -0
- package/dist/actions/update-a-suppression-group.cjs +26 -0
- package/dist/actions/update-a-suppression-group.cjs.map +1 -0
- package/dist/actions/update-a-suppression-group.d.cts +9 -0
- package/dist/actions/update-a-suppression-group.d.cts.map +1 -0
- package/dist/actions/update-a-suppression-group.d.mts +9 -0
- package/dist/actions/update-a-suppression-group.d.mts.map +1 -0
- package/dist/actions/update-a-suppression-group.mjs +23 -0
- package/dist/actions/update-a-suppression-group.mjs.map +1 -0
- package/dist/actions/update-a-user-s-profile.cjs +40 -0
- package/dist/actions/update-a-user-s-profile.cjs.map +1 -0
- package/dist/actions/update-a-user-s-profile.d.cts +9 -0
- package/dist/actions/update-a-user-s-profile.d.cts.map +1 -0
- package/dist/actions/update-a-user-s-profile.d.mts +9 -0
- package/dist/actions/update-a-user-s-profile.d.mts.map +1 -0
- package/dist/actions/update-a-user-s-profile.mjs +37 -0
- package/dist/actions/update-a-user-s-profile.mjs.map +1 -0
- package/dist/actions/update-account-offerings.cjs +19 -0
- package/dist/actions/update-account-offerings.cjs.map +1 -0
- package/dist/actions/update-account-offerings.d.cts +9 -0
- package/dist/actions/update-account-offerings.d.cts.map +1 -0
- package/dist/actions/update-account-offerings.d.mts +9 -0
- package/dist/actions/update-account-offerings.d.mts.map +1 -0
- package/dist/actions/update-account-offerings.mjs +16 -0
- package/dist/actions/update-account-offerings.mjs.map +1 -0
- package/dist/actions/update-address-whitelist-mail-settings.cjs +22 -0
- package/dist/actions/update-address-whitelist-mail-settings.cjs.map +1 -0
- package/dist/actions/update-address-whitelist-mail-settings.d.cts +9 -0
- package/dist/actions/update-address-whitelist-mail-settings.d.cts.map +1 -0
- package/dist/actions/update-address-whitelist-mail-settings.d.mts +9 -0
- package/dist/actions/update-address-whitelist-mail-settings.d.mts.map +1 -0
- package/dist/actions/update-address-whitelist-mail-settings.mjs +19 -0
- package/dist/actions/update-address-whitelist-mail-settings.mjs.map +1 -0
- package/dist/actions/update-an-account-s-state.cjs +20 -0
- package/dist/actions/update-an-account-s-state.cjs.map +1 -0
- package/dist/actions/update-an-account-s-state.d.cts +9 -0
- package/dist/actions/update-an-account-s-state.d.cts.map +1 -0
- package/dist/actions/update-an-account-s-state.d.mts +9 -0
- package/dist/actions/update-an-account-s-state.d.mts.map +1 -0
- package/dist/actions/update-an-account-s-state.mjs +19 -0
- package/dist/actions/update-an-account-s-state.mjs.map +1 -0
- package/dist/actions/update-an-alert.cjs +34 -0
- package/dist/actions/update-an-alert.cjs.map +1 -0
- package/dist/actions/update-an-alert.d.cts +9 -0
- package/dist/actions/update-an-alert.d.cts.map +1 -0
- package/dist/actions/update-an-alert.d.mts +9 -0
- package/dist/actions/update-an-alert.d.mts.map +1 -0
- package/dist/actions/update-an-alert.mjs +33 -0
- package/dist/actions/update-an-alert.mjs.map +1 -0
- package/dist/actions/update-an-authenticated-domain.cjs +47 -0
- package/dist/actions/update-an-authenticated-domain.cjs.map +1 -0
- package/dist/actions/update-an-authenticated-domain.d.cts +9 -0
- package/dist/actions/update-an-authenticated-domain.d.cts.map +1 -0
- package/dist/actions/update-an-authenticated-domain.d.mts +9 -0
- package/dist/actions/update-an-authenticated-domain.d.mts.map +1 -0
- package/dist/actions/update-an-authenticated-domain.mjs +46 -0
- package/dist/actions/update-an-authenticated-domain.mjs.map +1 -0
- package/dist/actions/update-an-ip-pool-name.cjs +23 -0
- package/dist/actions/update-an-ip-pool-name.cjs.map +1 -0
- package/dist/actions/update-an-ip-pool-name.d.cts +9 -0
- package/dist/actions/update-an-ip-pool-name.d.cts.map +1 -0
- package/dist/actions/update-an-ip-pool-name.d.mts +9 -0
- package/dist/actions/update-an-ip-pool-name.d.mts.map +1 -0
- package/dist/actions/update-an-ip-pool-name.mjs +22 -0
- package/dist/actions/update-an-ip-pool-name.mjs.map +1 -0
- package/dist/actions/update-an-sso-integration.cjs +36 -0
- package/dist/actions/update-an-sso-integration.cjs.map +1 -0
- package/dist/actions/update-an-sso-integration.d.cts +9 -0
- package/dist/actions/update-an-sso-integration.d.cts.map +1 -0
- package/dist/actions/update-an-sso-integration.d.mts +9 -0
- package/dist/actions/update-an-sso-integration.d.mts.map +1 -0
- package/dist/actions/update-an-sso-integration.mjs +33 -0
- package/dist/actions/update-an-sso-integration.mjs.map +1 -0
- package/dist/actions/update-api-key-name-and-scopes.cjs +24 -0
- package/dist/actions/update-api-key-name-and-scopes.cjs.map +1 -0
- package/dist/actions/update-api-key-name-and-scopes.d.cts +9 -0
- package/dist/actions/update-api-key-name-and-scopes.d.cts.map +1 -0
- package/dist/actions/update-api-key-name-and-scopes.d.mts +9 -0
- package/dist/actions/update-api-key-name-and-scopes.d.mts.map +1 -0
- package/dist/actions/update-api-key-name-and-scopes.mjs +21 -0
- package/dist/actions/update-api-key-name-and-scopes.mjs.map +1 -0
- package/dist/actions/update-api-key-name.cjs +22 -0
- package/dist/actions/update-api-key-name.cjs.map +1 -0
- package/dist/actions/update-api-key-name.d.cts +9 -0
- package/dist/actions/update-api-key-name.d.cts.map +1 -0
- package/dist/actions/update-api-key-name.d.mts +9 -0
- package/dist/actions/update-api-key-name.d.mts.map +1 -0
- package/dist/actions/update-api-key-name.mjs +19 -0
- package/dist/actions/update-api-key-name.mjs.map +1 -0
- package/dist/actions/update-bounce-purge-mail-settings.cjs +25 -0
- package/dist/actions/update-bounce-purge-mail-settings.cjs.map +1 -0
- package/dist/actions/update-bounce-purge-mail-settings.d.cts +9 -0
- package/dist/actions/update-bounce-purge-mail-settings.d.cts.map +1 -0
- package/dist/actions/update-bounce-purge-mail-settings.d.mts +9 -0
- package/dist/actions/update-bounce-purge-mail-settings.d.mts.map +1 -0
- package/dist/actions/update-bounce-purge-mail-settings.mjs +22 -0
- package/dist/actions/update-bounce-purge-mail-settings.mjs.map +1 -0
- package/dist/actions/update-click-tracking-settings.cjs +23 -0
- package/dist/actions/update-click-tracking-settings.cjs.map +1 -0
- package/dist/actions/update-click-tracking-settings.d.cts +9 -0
- package/dist/actions/update-click-tracking-settings.d.cts.map +1 -0
- package/dist/actions/update-click-tracking-settings.d.mts +9 -0
- package/dist/actions/update-click-tracking-settings.d.mts.map +1 -0
- package/dist/actions/update-click-tracking-settings.mjs +22 -0
- package/dist/actions/update-click-tracking-settings.mjs.map +1 -0
- package/dist/actions/update-custom-field-definition.cjs +26 -0
- package/dist/actions/update-custom-field-definition.cjs.map +1 -0
- package/dist/actions/update-custom-field-definition.d.cts +9 -0
- package/dist/actions/update-custom-field-definition.d.cts.map +1 -0
- package/dist/actions/update-custom-field-definition.d.mts +9 -0
- package/dist/actions/update-custom-field-definition.d.mts.map +1 -0
- package/dist/actions/update-custom-field-definition.mjs +25 -0
- package/dist/actions/update-custom-field-definition.mjs.map +1 -0
- package/dist/actions/update-design.cjs +36 -0
- package/dist/actions/update-design.cjs.map +1 -0
- package/dist/actions/update-design.d.cts +9 -0
- package/dist/actions/update-design.d.cts.map +1 -0
- package/dist/actions/update-design.d.mts +9 -0
- package/dist/actions/update-design.d.mts.map +1 -0
- package/dist/actions/update-design.mjs +33 -0
- package/dist/actions/update-design.mjs.map +1 -0
- package/dist/actions/update-details-for-an-ip-address.cjs +33 -0
- package/dist/actions/update-details-for-an-ip-address.cjs.map +1 -0
- package/dist/actions/update-details-for-an-ip-address.d.cts +9 -0
- package/dist/actions/update-details-for-an-ip-address.d.cts.map +1 -0
- package/dist/actions/update-details-for-an-ip-address.d.mts +9 -0
- package/dist/actions/update-details-for-an-ip-address.d.mts.map +1 -0
- package/dist/actions/update-details-for-an-ip-address.mjs +30 -0
- package/dist/actions/update-details-for-an-ip-address.mjs.map +1 -0
- package/dist/actions/update-enforced-tls-settings.cjs +24 -0
- package/dist/actions/update-enforced-tls-settings.cjs.map +1 -0
- package/dist/actions/update-enforced-tls-settings.d.cts +9 -0
- package/dist/actions/update-enforced-tls-settings.d.cts.map +1 -0
- package/dist/actions/update-enforced-tls-settings.d.mts +9 -0
- package/dist/actions/update-enforced-tls-settings.d.mts.map +1 -0
- package/dist/actions/update-enforced-tls-settings.mjs +21 -0
- package/dist/actions/update-enforced-tls-settings.mjs.map +1 -0
- package/dist/actions/update-footer-mail-settings.cjs +25 -0
- package/dist/actions/update-footer-mail-settings.cjs.map +1 -0
- package/dist/actions/update-footer-mail-settings.d.cts +9 -0
- package/dist/actions/update-footer-mail-settings.d.cts.map +1 -0
- package/dist/actions/update-footer-mail-settings.d.mts +9 -0
- package/dist/actions/update-footer-mail-settings.d.mts.map +1 -0
- package/dist/actions/update-footer-mail-settings.mjs +22 -0
- package/dist/actions/update-footer-mail-settings.mjs.map +1 -0
- package/dist/actions/update-forward-bounce-mail-settings.cjs +22 -0
- package/dist/actions/update-forward-bounce-mail-settings.cjs.map +1 -0
- package/dist/actions/update-forward-bounce-mail-settings.d.cts +9 -0
- package/dist/actions/update-forward-bounce-mail-settings.d.cts.map +1 -0
- package/dist/actions/update-forward-bounce-mail-settings.d.mts +9 -0
- package/dist/actions/update-forward-bounce-mail-settings.d.mts.map +1 -0
- package/dist/actions/update-forward-bounce-mail-settings.mjs +19 -0
- package/dist/actions/update-forward-bounce-mail-settings.mjs.map +1 -0
- package/dist/actions/update-forward-spam-mail-settings.cjs +22 -0
- package/dist/actions/update-forward-spam-mail-settings.cjs.map +1 -0
- package/dist/actions/update-forward-spam-mail-settings.d.cts +9 -0
- package/dist/actions/update-forward-spam-mail-settings.d.cts.map +1 -0
- package/dist/actions/update-forward-spam-mail-settings.d.mts +9 -0
- package/dist/actions/update-forward-spam-mail-settings.d.mts.map +1 -0
- package/dist/actions/update-forward-spam-mail-settings.mjs +19 -0
- package/dist/actions/update-forward-spam-mail-settings.mjs.map +1 -0
- package/dist/actions/update-google-analytics-settings.cjs +30 -0
- package/dist/actions/update-google-analytics-settings.cjs.map +1 -0
- package/dist/actions/update-google-analytics-settings.d.cts +9 -0
- package/dist/actions/update-google-analytics-settings.d.cts.map +1 -0
- package/dist/actions/update-google-analytics-settings.d.mts +9 -0
- package/dist/actions/update-google-analytics-settings.d.mts.map +1 -0
- package/dist/actions/update-google-analytics-settings.mjs +27 -0
- package/dist/actions/update-google-analytics-settings.mjs.map +1 -0
- package/dist/actions/update-integration.cjs +50 -0
- package/dist/actions/update-integration.cjs.map +1 -0
- package/dist/actions/update-integration.d.cts +9 -0
- package/dist/actions/update-integration.d.cts.map +1 -0
- package/dist/actions/update-integration.d.mts +9 -0
- package/dist/actions/update-integration.d.mts.map +1 -0
- package/dist/actions/update-integration.mjs +49 -0
- package/dist/actions/update-integration.mjs.map +1 -0
- package/dist/actions/update-list.cjs +25 -0
- package/dist/actions/update-list.cjs.map +1 -0
- package/dist/actions/update-list.d.cts +9 -0
- package/dist/actions/update-list.d.cts.map +1 -0
- package/dist/actions/update-list.d.mts +9 -0
- package/dist/actions/update-list.d.mts.map +1 -0
- package/dist/actions/update-list.mjs +24 -0
- package/dist/actions/update-list.mjs.map +1 -0
- package/dist/actions/update-open-tracking-settings.cjs +16 -0
- package/dist/actions/update-open-tracking-settings.cjs.map +1 -0
- package/dist/actions/update-open-tracking-settings.d.cts +9 -0
- package/dist/actions/update-open-tracking-settings.d.cts.map +1 -0
- package/dist/actions/update-open-tracking-settings.d.mts +9 -0
- package/dist/actions/update-open-tracking-settings.d.mts.map +1 -0
- package/dist/actions/update-open-tracking-settings.mjs +13 -0
- package/dist/actions/update-open-tracking-settings.mjs.map +1 -0
- package/dist/actions/update-single-send.cjs +62 -0
- package/dist/actions/update-single-send.cjs.map +1 -0
- package/dist/actions/update-single-send.d.cts +9 -0
- package/dist/actions/update-single-send.d.cts.map +1 -0
- package/dist/actions/update-single-send.d.mts +9 -0
- package/dist/actions/update-single-send.d.mts.map +1 -0
- package/dist/actions/update-single-send.mjs +61 -0
- package/dist/actions/update-single-send.mjs.map +1 -0
- package/dist/actions/update-sso-certificate.cjs +29 -0
- package/dist/actions/update-sso-certificate.cjs.map +1 -0
- package/dist/actions/update-sso-certificate.d.cts +9 -0
- package/dist/actions/update-sso-certificate.d.cts.map +1 -0
- package/dist/actions/update-sso-certificate.d.mts +9 -0
- package/dist/actions/update-sso-certificate.d.mts.map +1 -0
- package/dist/actions/update-sso-certificate.mjs +28 -0
- package/dist/actions/update-sso-certificate.mjs.map +1 -0
- package/dist/actions/update-subscription-tracking-settings.cjs +30 -0
- package/dist/actions/update-subscription-tracking-settings.cjs.map +1 -0
- package/dist/actions/update-subscription-tracking-settings.d.cts +9 -0
- package/dist/actions/update-subscription-tracking-settings.d.cts.map +1 -0
- package/dist/actions/update-subscription-tracking-settings.d.mts +9 -0
- package/dist/actions/update-subscription-tracking-settings.d.mts.map +1 -0
- package/dist/actions/update-subscription-tracking-settings.mjs +27 -0
- package/dist/actions/update-subscription-tracking-settings.mjs.map +1 -0
- package/dist/actions/update-teammate-s-permissions.cjs +38 -0
- package/dist/actions/update-teammate-s-permissions.cjs.map +1 -0
- package/dist/actions/update-teammate-s-permissions.d.cts +9 -0
- package/dist/actions/update-teammate-s-permissions.d.cts.map +1 -0
- package/dist/actions/update-teammate-s-permissions.d.mts +9 -0
- package/dist/actions/update-teammate-s-permissions.d.mts.map +1 -0
- package/dist/actions/update-teammate-s-permissions.mjs +37 -0
- package/dist/actions/update-teammate-s-permissions.mjs.map +1 -0
- package/dist/actions/update-template-mail-settings.cjs +22 -0
- package/dist/actions/update-template-mail-settings.cjs.map +1 -0
- package/dist/actions/update-template-mail-settings.d.cts +9 -0
- package/dist/actions/update-template-mail-settings.d.cts.map +1 -0
- package/dist/actions/update-template-mail-settings.d.mts +9 -0
- package/dist/actions/update-template-mail-settings.d.mts.map +1 -0
- package/dist/actions/update-template-mail-settings.mjs +19 -0
- package/dist/actions/update-template-mail-settings.mjs.map +1 -0
- package/dist/actions/update-the-credits-for-a-subuser.cjs +35 -0
- package/dist/actions/update-the-credits-for-a-subuser.cjs.map +1 -0
- package/dist/actions/update-the-credits-for-a-subuser.d.cts +9 -0
- package/dist/actions/update-the-credits-for-a-subuser.d.cts.map +1 -0
- package/dist/actions/update-the-credits-for-a-subuser.d.mts +9 -0
- package/dist/actions/update-the-credits-for-a-subuser.d.mts.map +1 -0
- package/dist/actions/update-the-credits-for-a-subuser.mjs +32 -0
- package/dist/actions/update-the-credits-for-a-subuser.mjs.map +1 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.cjs +25 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.cjs.map +1 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.d.cts +9 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.d.cts.map +1 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.d.mts +9 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.d.mts.map +1 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.mjs +22 -0
- package/dist/actions/update-the-remaining-credits-for-a-subuser.mjs.map +1 -0
- package/dist/actions/update-your-account-email-address.cjs +16 -0
- package/dist/actions/update-your-account-email-address.cjs.map +1 -0
- package/dist/actions/update-your-account-email-address.d.cts +9 -0
- package/dist/actions/update-your-account-email-address.d.cts.map +1 -0
- package/dist/actions/update-your-account-email-address.d.mts +9 -0
- package/dist/actions/update-your-account-email-address.d.mts.map +1 -0
- package/dist/actions/update-your-account-email-address.mjs +13 -0
- package/dist/actions/update-your-account-email-address.mjs.map +1 -0
- package/dist/actions/update-your-password.cjs +24 -0
- package/dist/actions/update-your-password.cjs.map +1 -0
- package/dist/actions/update-your-password.d.cts +9 -0
- package/dist/actions/update-your-password.d.cts.map +1 -0
- package/dist/actions/update-your-password.d.mts +9 -0
- package/dist/actions/update-your-password.d.mts.map +1 -0
- package/dist/actions/update-your-password.mjs +23 -0
- package/dist/actions/update-your-password.mjs.map +1 -0
- package/dist/actions/update-your-username.cjs +19 -0
- package/dist/actions/update-your-username.cjs.map +1 -0
- package/dist/actions/update-your-username.d.cts +9 -0
- package/dist/actions/update-your-username.d.cts.map +1 -0
- package/dist/actions/update-your-username.d.mts +9 -0
- package/dist/actions/update-your-username.d.mts.map +1 -0
- package/dist/actions/update-your-username.mjs +16 -0
- package/dist/actions/update-your-username.mjs.map +1 -0
- package/dist/actions/validate-a-batch-id.cjs +17 -0
- package/dist/actions/validate-a-batch-id.cjs.map +1 -0
- package/dist/actions/validate-a-batch-id.d.cts +9 -0
- package/dist/actions/validate-a-batch-id.d.cts.map +1 -0
- package/dist/actions/validate-a-batch-id.d.mts +9 -0
- package/dist/actions/validate-a-batch-id.d.mts.map +1 -0
- package/dist/actions/validate-a-batch-id.mjs +16 -0
- package/dist/actions/validate-a-batch-id.mjs.map +1 -0
- package/dist/actions/validate-a-branded-link.cjs +31 -0
- package/dist/actions/validate-a-branded-link.cjs.map +1 -0
- package/dist/actions/validate-a-branded-link.d.cts +9 -0
- package/dist/actions/validate-a-branded-link.d.cts.map +1 -0
- package/dist/actions/validate-a-branded-link.d.mts +9 -0
- package/dist/actions/validate-a-branded-link.d.mts.map +1 -0
- package/dist/actions/validate-a-branded-link.mjs +30 -0
- package/dist/actions/validate-a-branded-link.mjs.map +1 -0
- package/dist/actions/validate-a-domain-authentication.cjs +35 -0
- package/dist/actions/validate-a-domain-authentication.cjs.map +1 -0
- package/dist/actions/validate-a-domain-authentication.d.cts +9 -0
- package/dist/actions/validate-a-domain-authentication.d.cts.map +1 -0
- package/dist/actions/validate-a-domain-authentication.d.mts +9 -0
- package/dist/actions/validate-a-domain-authentication.d.mts.map +1 -0
- package/dist/actions/validate-a-domain-authentication.mjs +34 -0
- package/dist/actions/validate-a-domain-authentication.mjs.map +1 -0
- package/dist/actions/validate-a-reverse-dns-record.cjs +26 -0
- package/dist/actions/validate-a-reverse-dns-record.cjs.map +1 -0
- package/dist/actions/validate-a-reverse-dns-record.d.cts +9 -0
- package/dist/actions/validate-a-reverse-dns-record.d.cts.map +1 -0
- package/dist/actions/validate-a-reverse-dns-record.d.mts +9 -0
- package/dist/actions/validate-a-reverse-dns-record.d.mts.map +1 -0
- package/dist/actions/validate-a-reverse-dns-record.mjs +25 -0
- package/dist/actions/validate-a-reverse-dns-record.mjs.map +1 -0
- package/dist/actions/validate-an-email.cjs +44 -0
- package/dist/actions/validate-an-email.cjs.map +1 -0
- package/dist/actions/validate-an-email.d.cts +9 -0
- package/dist/actions/validate-an-email.d.cts.map +1 -0
- package/dist/actions/validate-an-email.d.mts +9 -0
- package/dist/actions/validate-an-email.d.mts.map +1 -0
- package/dist/actions/validate-an-email.mjs +43 -0
- package/dist/actions/validate-an-email.mjs.map +1 -0
- package/dist/actions/verify-sender-request.cjs +32 -0
- package/dist/actions/verify-sender-request.cjs.map +1 -0
- package/dist/actions/verify-sender-request.d.cts +9 -0
- package/dist/actions/verify-sender-request.d.cts.map +1 -0
- package/dist/actions/verify-sender-request.d.mts +9 -0
- package/dist/actions/verify-sender-request.d.mts.map +1 -0
- package/dist/actions/verify-sender-request.mjs +31 -0
- package/dist/actions/verify-sender-request.mjs.map +1 -0
- package/dist/actions/view-a-sender-identity.cjs +40 -0
- package/dist/actions/view-a-sender-identity.cjs.map +1 -0
- package/dist/actions/view-a-sender-identity.d.cts +9 -0
- package/dist/actions/view-a-sender-identity.d.cts.map +1 -0
- package/dist/actions/view-a-sender-identity.d.mts +9 -0
- package/dist/actions/view-a-sender-identity.d.mts.map +1 -0
- package/dist/actions/view-a-sender-identity.mjs +39 -0
- package/dist/actions/view-a-sender-identity.mjs.map +1 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.cjs +20 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.cjs.map +1 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.d.cts +9 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.d.cts.map +1 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.d.mts +9 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.d.mts.map +1 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.mjs +19 -0
- package/dist/actions/view-scheduled-time-of-a-campaign.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 +724 -0
- package/dist/index.d.cts +362 -0
- package/dist/index.d.mts +362 -4
- package/dist/index.mjs +363 -5
- package/package.json +31 -54
- package/LICENSE +0 -21
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/schemas/index.d.mts +0 -1395
- package/dist/schemas/index.mjs +0 -3
- package/dist/sendgrid.credential-set-CzYmlJ2Y.mjs +0 -25
- package/dist/sendgrid.credential-set-ivRIiUDy.d.mts +0 -32
- package/dist/validate-email.operation-CCCDxLjH.mjs +0 -4301
- package/dist/validate-email.operation-DY4rCHFE.d.mts +0 -5436
- package/dist/webhooks-dVOd93Hd.mjs +0 -735
|
@@ -1,4301 +0,0 @@
|
|
|
1
|
-
import { t as sendgridCredentialSet } from "./sendgrid.credential-set-CzYmlJ2Y.mjs";
|
|
2
|
-
import { $ as sendgridSingleSendTestInputSchema, $t as sendgridAlertFrequencySchema, At as sendgridAuthenticatedDomainListSchema, Bt as sendgridContactExportSchema, C as sendgridBounceListSchema, Ct as sendgridListSchema, Dt as sendgridEmailValidationResponseSchema, E as sendgridGlobalSuppressionSchema, Et as sendgridBulkEmailValidationPresignedUrlSchema, F as sendgridAggregationSchema, G as sendgridSingleSendListSchema, Gt as sendgridContactSearchResultSchema, Ht as sendgridContactImportSchema, I as sendgridAutomationStatsSchema, It as sendgridContactBatchResultSchema, J as sendgridSingleSendSearchInputSchema, Jt as sendgridUpsertContactsResultSchema, K as sendgridSingleSendScheduleInputSchema, Kt as sendgridFieldDefinitionListSchema, L as sendgridCategoryStatsSchema, Lt as sendgridContactCountSchema, N as sendgridSuppressionGroupListSchema, Nt as sendgridDomainValidateResultSchema, O as sendgridGroupSuppressionListSchema, P as sendgridSuppressionGroupSchema, Pt as sendgridCustomFieldDefinitionSchema, Qt as sendgridApiKeyWithKeySchema, R as sendgridEngagementQualitySchema, Rt as sendgridContactDeleteResultSchema, St as sendgridListRemoveContactsResultSchema, T as sendgridGlobalSuppressionListSchema, Tt as sendgridBulkEmailValidationJobSchema, U as sendgridSingleSendClicksSchema, Ut as sendgridContactInputSchema, W as sendgridSingleSendEmailConfigSchema, Wt as sendgridContactSchema, X as sendgridSingleSendStatsListSchema, Xt as sendgridApiKeySchema, Y as sendgridSingleSendSendToSchema, Yt as sendgridApiKeyListSchema, Z as sendgridSingleSendStatsSchema, _ as sendgridTemplateGenerationSchema, _t as sendgridScheduledSendSchema, at as sendgridSegmentListSchema, b as sendgridTemplateVersionSchema, bt as sendgridListCollectionSchema, d as sendgridSignedPublicKeySchema, en as sendgridAlertListSchema, et as sendgridSenderAddressSchema, f as sendgridAccountInfoSchema, ft as sendgridMailSendInputSchema, g as sendgridUserProfileSchema, gt as sendgridScheduledSendListSchema, i as sendgridEventWebhookSettingsSchema, in as sendgridEmailSchema, it as sendgridVerifiedSenderSchema, j as sendgridSpamReportListSchema, jt as sendgridAuthenticatedDomainSchema, k as sendgridInvalidEmailListSchema, l as sendgridParseStatsSchema, lt as sendgridBatchIdSchema, m as sendgridScopesSchema, n as sendgridEventWebhookListSchema, nn as sendgridAlertTypeSchema, nt as sendgridSenderSchema, o as sendgridParseSettingListSchema, on as sendgridIdSchema, ot as sendgridSegmentSchema, p as sendgridCreditBalanceSchema, pt as sendgridMailSendResultSchema, q as sendgridSingleSendSchema, rt as sendgridVerifiedSenderListSchema, s as sendgridParseSettingSchema, tn as sendgridAlertSchema, tt as sendgridSenderListSchema, u as sendgridSignatureToggleSchema, v as sendgridTemplateListSchema, vt as sendgridScheduledSendStatusSchema, wt as sendgridBulkEmailValidationJobListSchema, x as sendgridBlockListSchema, xt as sendgridListContactCountSchema, y as sendgridTemplateSchema, z as sendgridStatBucketListSchema, zt as sendgridContactExportListSchema } from "./webhooks-dVOd93Hd.mjs";
|
|
3
|
-
import { Operation } from "@keystrokehq/core";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { CredentialRevokedError } from "@keystrokehq/core/errors";
|
|
6
|
-
import "@keystrokehq/core/trigger";
|
|
7
|
-
|
|
8
|
-
//#region ../../packages/integration-authoring/dist/index.mjs
|
|
9
|
-
function isThenable(value) {
|
|
10
|
-
return !!value && typeof value === "object" && "then" in value && typeof value.then === "function";
|
|
11
|
-
}
|
|
12
|
-
function createErrorNormalizingProxy(target, normalizeError, path = []) {
|
|
13
|
-
return new Proxy(target, { get(obj, property, receiver) {
|
|
14
|
-
const value = Reflect.get(obj, property, receiver);
|
|
15
|
-
if (typeof value === "function") return (...args) => {
|
|
16
|
-
try {
|
|
17
|
-
const result = value.apply(obj, args);
|
|
18
|
-
if (isThenable(result)) return result.then(void 0, (error) => {
|
|
19
|
-
throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
|
|
20
|
-
});
|
|
21
|
-
return result;
|
|
22
|
-
} catch (error) {
|
|
23
|
-
throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
if (value && typeof value === "object") return createErrorNormalizingProxy(value, normalizeError, [...path, String(property)]);
|
|
27
|
-
return value;
|
|
28
|
-
} });
|
|
29
|
-
}
|
|
30
|
-
const IntegrationConfigSchema = z.object({
|
|
31
|
-
id: z.string().min(1),
|
|
32
|
-
name: z.string().min(1),
|
|
33
|
-
description: z.string().optional()
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/utils/shared.ts
|
|
38
|
-
function asRecord(value) {
|
|
39
|
-
return typeof value === "object" && value !== null ? value : {};
|
|
40
|
-
}
|
|
41
|
-
function stringIfPresent(value) {
|
|
42
|
-
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
43
|
-
}
|
|
44
|
-
function omitUndefined(value) {
|
|
45
|
-
return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/utils/client.ts
|
|
50
|
-
const SENDGRID_GLOBAL_BASE = "https://api.sendgrid.com/v3";
|
|
51
|
-
const SENDGRID_EU_BASE = "https://api.eu.sendgrid.com/v3";
|
|
52
|
-
const CONNECT_HINT = "If you haven't connected SendGrid yet, create an API key in the SendGrid console and save it as `SENDGRID_API_KEY`.";
|
|
53
|
-
var SendGridError = class extends Error {
|
|
54
|
-
kind;
|
|
55
|
-
status;
|
|
56
|
-
body;
|
|
57
|
-
providerErrors;
|
|
58
|
-
requestId;
|
|
59
|
-
retryable;
|
|
60
|
-
constructor(init) {
|
|
61
|
-
super(init.message);
|
|
62
|
-
this.name = "SendGridError";
|
|
63
|
-
this.kind = init.kind;
|
|
64
|
-
this.status = init.status;
|
|
65
|
-
this.body = init.body;
|
|
66
|
-
this.providerErrors = init.providerErrors;
|
|
67
|
-
this.requestId = init.requestId;
|
|
68
|
-
this.retryable = init.retryable;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
function isSendGridError(value) {
|
|
72
|
-
return value instanceof SendGridError;
|
|
73
|
-
}
|
|
74
|
-
function parseProviderErrors(body) {
|
|
75
|
-
const errors = asRecord(body).errors;
|
|
76
|
-
if (!Array.isArray(errors)) return [];
|
|
77
|
-
return errors.map((entry) => {
|
|
78
|
-
const rec = asRecord(entry);
|
|
79
|
-
const message = stringIfPresent(rec.message);
|
|
80
|
-
if (!message) return null;
|
|
81
|
-
const field = stringIfPresent(rec.field);
|
|
82
|
-
const errorId = stringIfPresent(rec.error_id);
|
|
83
|
-
const help = stringIfPresent(rec.help);
|
|
84
|
-
return {
|
|
85
|
-
message,
|
|
86
|
-
...field !== void 0 ? { field } : {},
|
|
87
|
-
...errorId !== void 0 ? { errorId } : {},
|
|
88
|
-
...help !== void 0 ? { help } : {}
|
|
89
|
-
};
|
|
90
|
-
}).filter((entry) => entry !== null);
|
|
91
|
-
}
|
|
92
|
-
function classifyStatus(status) {
|
|
93
|
-
if (status === 401) return {
|
|
94
|
-
kind: "auth",
|
|
95
|
-
retryable: false
|
|
96
|
-
};
|
|
97
|
-
if (status === 403) return {
|
|
98
|
-
kind: "forbidden",
|
|
99
|
-
retryable: false
|
|
100
|
-
};
|
|
101
|
-
if (status === 404) return {
|
|
102
|
-
kind: "not_found",
|
|
103
|
-
retryable: false
|
|
104
|
-
};
|
|
105
|
-
if (status === 429) return {
|
|
106
|
-
kind: "rate_limit",
|
|
107
|
-
retryable: true
|
|
108
|
-
};
|
|
109
|
-
if (status >= 500) return {
|
|
110
|
-
kind: "server",
|
|
111
|
-
retryable: true
|
|
112
|
-
};
|
|
113
|
-
if (status >= 400) return {
|
|
114
|
-
kind: "validation",
|
|
115
|
-
retryable: false
|
|
116
|
-
};
|
|
117
|
-
return {
|
|
118
|
-
kind: "server",
|
|
119
|
-
retryable: true
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function joinErrorMessages(status, providerErrors) {
|
|
123
|
-
if (providerErrors.length === 0) return `HTTP ${status}`;
|
|
124
|
-
return providerErrors.map((entry) => entry.message).join("; ");
|
|
125
|
-
}
|
|
126
|
-
function isAuthFlavoredError(error) {
|
|
127
|
-
if (!isSendGridError(error)) return false;
|
|
128
|
-
if (error.kind === "auth") return true;
|
|
129
|
-
if (error.kind === "forbidden") return error.providerErrors.map((entry) => entry.message.toLowerCase()).some((msg) => msg.includes("invalid api key") || msg.includes("authorization") || msg.includes("authentication"));
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
function normalizeSendGridError(error, context) {
|
|
133
|
-
if (isAuthFlavoredError(error)) return new CredentialRevokedError(sendgridCredentialSet.id, `SendGrid authentication failed while calling \`${context.methodPath}\`. The stored credentials for ${sendgridCredentialSet.id} may be revoked or missing required scopes. ${CONNECT_HINT}`);
|
|
134
|
-
if (isSendGridError(error)) return new Error(`SendGrid API call failed while calling \`${context.methodPath}\` (${error.status} ${error.kind}): ${error.message}`, { cause: error });
|
|
135
|
-
if (error instanceof Error) return new Error(`SendGrid API call failed while calling \`${context.methodPath}\`: ${error.message}`, { cause: error });
|
|
136
|
-
return /* @__PURE__ */ new Error(`SendGrid API call failed while calling \`${context.methodPath}\`.`);
|
|
137
|
-
}
|
|
138
|
-
function resolveBaseUrl(region) {
|
|
139
|
-
return region === "eu" ? SENDGRID_EU_BASE : SENDGRID_GLOBAL_BASE;
|
|
140
|
-
}
|
|
141
|
-
function appendQuery(searchParams, query) {
|
|
142
|
-
if (!query) return;
|
|
143
|
-
for (const [key, value] of Object.entries(query)) {
|
|
144
|
-
if (value === void 0 || value === null) continue;
|
|
145
|
-
if (Array.isArray(value)) {
|
|
146
|
-
if (value.length === 0) continue;
|
|
147
|
-
searchParams.set(key, value.map(String).join(","));
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
searchParams.set(key, String(value));
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function parseRetryAfterMs(header) {
|
|
154
|
-
if (!header) return void 0;
|
|
155
|
-
const seconds = Number(header);
|
|
156
|
-
if (Number.isFinite(seconds) && seconds >= 0) return Math.ceil(seconds * 1e3);
|
|
157
|
-
const whenMs = Date.parse(header);
|
|
158
|
-
if (Number.isFinite(whenMs)) return Math.max(0, whenMs - Date.now());
|
|
159
|
-
}
|
|
160
|
-
async function sleep(ms) {
|
|
161
|
-
await new Promise((resolve) => {
|
|
162
|
-
setTimeout(resolve, ms);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
function computeBackoffMs(attempt, retryAfterMs) {
|
|
166
|
-
if (retryAfterMs !== void 0) return retryAfterMs;
|
|
167
|
-
return 500 * 2 ** Math.min(attempt, 5) + Math.random() * 250;
|
|
168
|
-
}
|
|
169
|
-
async function parseResponseBody(response) {
|
|
170
|
-
if (response.status === 204 || response.status === 205) return {
|
|
171
|
-
body: void 0,
|
|
172
|
-
text: ""
|
|
173
|
-
};
|
|
174
|
-
const contentType = response.headers.get("content-type") ?? "";
|
|
175
|
-
const text = await response.text();
|
|
176
|
-
if (text.length === 0) return {
|
|
177
|
-
body: void 0,
|
|
178
|
-
text
|
|
179
|
-
};
|
|
180
|
-
if (contentType.includes("application/json")) try {
|
|
181
|
-
return {
|
|
182
|
-
body: JSON.parse(text),
|
|
183
|
-
text
|
|
184
|
-
};
|
|
185
|
-
} catch {
|
|
186
|
-
return {
|
|
187
|
-
body: text,
|
|
188
|
-
text
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
return {
|
|
192
|
-
body: text,
|
|
193
|
-
text
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
function createSendGridApiClient(credentials, config) {
|
|
197
|
-
const apiKey = credentials.SENDGRID_API_KEY.trim();
|
|
198
|
-
if (apiKey.length === 0) throw new Error(`SendGrid authentication failed at client initialization. ${CONNECT_HINT}`);
|
|
199
|
-
const baseUrl = resolveBaseUrl(credentials.SENDGRID_ACCOUNT_REGION ?? "global");
|
|
200
|
-
const defaultSubuser = credentials.SENDGRID_SUBUSER;
|
|
201
|
-
const maxRetries = config?.maxRetries ?? 3;
|
|
202
|
-
const fetchImpl = config?.fetchImpl ?? fetch;
|
|
203
|
-
async function request(path, options = {}) {
|
|
204
|
-
const url = new URL(`${baseUrl}${path}`);
|
|
205
|
-
appendQuery(url.searchParams, options.query);
|
|
206
|
-
const headers = {
|
|
207
|
-
Authorization: `Bearer ${apiKey}`,
|
|
208
|
-
Accept: "application/json"
|
|
209
|
-
};
|
|
210
|
-
const subuser = options.onBehalfOf ?? defaultSubuser;
|
|
211
|
-
if (subuser !== void 0 && subuser.length > 0) headers["on-behalf-of"] = subuser;
|
|
212
|
-
let body;
|
|
213
|
-
if (options.rawBody !== void 0) body = options.rawBody;
|
|
214
|
-
else if (options.form !== void 0) {
|
|
215
|
-
const params = new URLSearchParams();
|
|
216
|
-
for (const [key, value] of Object.entries(options.form)) params.set(key, String(value));
|
|
217
|
-
body = params.toString();
|
|
218
|
-
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
219
|
-
} else if (options.body !== void 0) {
|
|
220
|
-
body = JSON.stringify(options.body);
|
|
221
|
-
headers["Content-Type"] = "application/json";
|
|
222
|
-
}
|
|
223
|
-
const method = options.method ?? "GET";
|
|
224
|
-
const maxAttempts = options.noRetry ? 1 : Math.max(1, maxRetries + 1);
|
|
225
|
-
let lastError;
|
|
226
|
-
for (let attempt = 0; attempt < maxAttempts; attempt += 1) {
|
|
227
|
-
let response;
|
|
228
|
-
try {
|
|
229
|
-
response = await fetchImpl(url, {
|
|
230
|
-
method,
|
|
231
|
-
headers,
|
|
232
|
-
...body !== void 0 ? { body } : {}
|
|
233
|
-
});
|
|
234
|
-
} catch (cause) {
|
|
235
|
-
const networkError = new SendGridError({
|
|
236
|
-
kind: "network",
|
|
237
|
-
status: 0,
|
|
238
|
-
body: void 0,
|
|
239
|
-
providerErrors: [],
|
|
240
|
-
retryable: true,
|
|
241
|
-
message: cause instanceof Error ? cause.message : "Network error calling SendGrid"
|
|
242
|
-
});
|
|
243
|
-
lastError = networkError;
|
|
244
|
-
if (attempt + 1 >= maxAttempts) throw networkError;
|
|
245
|
-
await sleep(computeBackoffMs(attempt));
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
if (response.ok) return (await parseResponseBody(response)).body;
|
|
249
|
-
const parsed = await parseResponseBody(response);
|
|
250
|
-
const providerErrors = parseProviderErrors(parsed.body);
|
|
251
|
-
const { kind, retryable } = classifyStatus(response.status);
|
|
252
|
-
const requestId = response.headers.get("x-message-id") ?? response.headers.get("x-request-id") ?? void 0;
|
|
253
|
-
const retryAfterMs = parseRetryAfterMs(response.headers.get("retry-after"));
|
|
254
|
-
const err = new SendGridError({
|
|
255
|
-
kind,
|
|
256
|
-
status: response.status,
|
|
257
|
-
body: parsed.body,
|
|
258
|
-
providerErrors,
|
|
259
|
-
...requestId !== void 0 ? { requestId } : {},
|
|
260
|
-
retryable,
|
|
261
|
-
message: joinErrorMessages(response.status, providerErrors)
|
|
262
|
-
});
|
|
263
|
-
if (!retryable || attempt + 1 >= maxAttempts) throw err;
|
|
264
|
-
lastError = err;
|
|
265
|
-
await sleep(computeBackoffMs(attempt, retryAfterMs));
|
|
266
|
-
}
|
|
267
|
-
throw lastError ?? /* @__PURE__ */ new Error("SendGrid request exhausted retries without a response.");
|
|
268
|
-
}
|
|
269
|
-
return {
|
|
270
|
-
request,
|
|
271
|
-
credentials,
|
|
272
|
-
baseUrl
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
function createSendGridClient(credentials, config) {
|
|
276
|
-
return createErrorNormalizingProxy(createSendGridApiClient(credentials, config), normalizeSendGridError);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
//#endregion
|
|
280
|
-
//#region src/operations/activate-template-version.operation.ts
|
|
281
|
-
function tpl$10(path) {
|
|
282
|
-
return `/templates${path}`;
|
|
283
|
-
}
|
|
284
|
-
const activateTemplateVersionOperation = new Operation({
|
|
285
|
-
credentialSets: [sendgridCredentialSet],
|
|
286
|
-
id: "sendgrid.activate-template-version",
|
|
287
|
-
name: "Activate Template Version",
|
|
288
|
-
description: "Make the specified version the active version of the template.",
|
|
289
|
-
input: z.object({
|
|
290
|
-
templateId: sendgridIdSchema,
|
|
291
|
-
versionId: sendgridIdSchema
|
|
292
|
-
}),
|
|
293
|
-
output: sendgridTemplateVersionSchema,
|
|
294
|
-
needsApproval: true,
|
|
295
|
-
run: async (input, context) => {
|
|
296
|
-
const credentials = context.credentials.sendgrid;
|
|
297
|
-
const response = await createSendGridClient(credentials).request(tpl$10(`/${encodeURIComponent(input.templateId)}/versions/${encodeURIComponent(input.versionId)}/activate`), { method: "POST" });
|
|
298
|
-
return sendgridTemplateVersionSchema.parse(response);
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region src/operations/add-global-suppressions.operation.ts
|
|
304
|
-
z.number().int().nonnegative();
|
|
305
|
-
z.object({
|
|
306
|
-
startTime: z.number().int().optional(),
|
|
307
|
-
endTime: z.number().int().optional()
|
|
308
|
-
}).optional();
|
|
309
|
-
const addGlobalSuppressionsOperation = new Operation({
|
|
310
|
-
credentialSets: [sendgridCredentialSet],
|
|
311
|
-
id: "sendgrid.add-global-suppressions",
|
|
312
|
-
name: "Add Global Suppressions",
|
|
313
|
-
description: "Add email addresses to the global suppression list.",
|
|
314
|
-
input: z.object({ recipientEmails: z.array(sendgridEmailSchema).min(1) }),
|
|
315
|
-
output: z.object({ recipient_emails: z.array(z.string()) }),
|
|
316
|
-
needsApproval: true,
|
|
317
|
-
run: async (input, context) => {
|
|
318
|
-
const credentials = context.credentials.sendgrid;
|
|
319
|
-
const response = await createSendGridClient(credentials).request("/asm/suppressions/global", {
|
|
320
|
-
method: "POST",
|
|
321
|
-
body: { recipient_emails: input.recipientEmails }
|
|
322
|
-
});
|
|
323
|
-
return z.object({ recipient_emails: z.array(z.string()) }).parse(response ?? { recipient_emails: input.recipientEmails });
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
|
|
327
|
-
//#endregion
|
|
328
|
-
//#region src/operations/add-suppressions-to-group.operation.ts
|
|
329
|
-
const groupId$6 = z.number().int().nonnegative();
|
|
330
|
-
z.object({
|
|
331
|
-
startTime: z.number().int().optional(),
|
|
332
|
-
endTime: z.number().int().optional()
|
|
333
|
-
}).optional();
|
|
334
|
-
const addSuppressionsToGroupOperation = new Operation({
|
|
335
|
-
credentialSets: [sendgridCredentialSet],
|
|
336
|
-
id: "sendgrid.add-suppressions-to-group",
|
|
337
|
-
name: "Add Suppressions to Group",
|
|
338
|
-
description: "Add emails to a specific suppression group.",
|
|
339
|
-
input: z.object({
|
|
340
|
-
groupId: groupId$6,
|
|
341
|
-
recipientEmails: z.array(sendgridEmailSchema).min(1)
|
|
342
|
-
}),
|
|
343
|
-
output: z.object({ recipient_emails: z.array(z.string()) }),
|
|
344
|
-
needsApproval: true,
|
|
345
|
-
run: async (input, context) => {
|
|
346
|
-
const credentials = context.credentials.sendgrid;
|
|
347
|
-
const response = await createSendGridClient(credentials).request(`/asm/groups/${input.groupId}/suppressions`, {
|
|
348
|
-
method: "POST",
|
|
349
|
-
body: { recipient_emails: input.recipientEmails }
|
|
350
|
-
});
|
|
351
|
-
return z.object({ recipient_emails: z.array(z.string()) }).parse(response ?? { recipient_emails: input.recipientEmails });
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
|
|
355
|
-
//#endregion
|
|
356
|
-
//#region src/operations/bulk-delete-single-sends.operation.ts
|
|
357
|
-
function base$9(path = "") {
|
|
358
|
-
return `/marketing/singlesends${path}`;
|
|
359
|
-
}
|
|
360
|
-
z.object({
|
|
361
|
-
name: z.string().min(1),
|
|
362
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
363
|
-
sendAt: z.iso.datetime().optional(),
|
|
364
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
365
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
366
|
-
});
|
|
367
|
-
const bulkDeleteSingleSendsOperation = new Operation({
|
|
368
|
-
credentialSets: [sendgridCredentialSet],
|
|
369
|
-
id: "sendgrid.bulk-delete-single-sends",
|
|
370
|
-
name: "Bulk Delete Single Sends",
|
|
371
|
-
description: "Delete multiple Single Sends at once.",
|
|
372
|
-
input: z.object({ ids: z.array(sendgridIdSchema).min(1).max(100) }),
|
|
373
|
-
output: z.object({ success: z.boolean() }),
|
|
374
|
-
needsApproval: true,
|
|
375
|
-
run: async (input, context) => {
|
|
376
|
-
const credentials = context.credentials.sendgrid;
|
|
377
|
-
await createSendGridClient(credentials).request(base$9(), {
|
|
378
|
-
method: "DELETE",
|
|
379
|
-
query: { ids: input.ids.join(",") }
|
|
380
|
-
});
|
|
381
|
-
return { success: true };
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
|
|
385
|
-
//#endregion
|
|
386
|
-
//#region src/operations/cancel-or-pause-scheduled-send.operation.ts
|
|
387
|
-
const cancelOrPauseScheduledSendOperation = new Operation({
|
|
388
|
-
credentialSets: [sendgridCredentialSet],
|
|
389
|
-
id: "sendgrid.cancel-or-pause-scheduled-send",
|
|
390
|
-
name: "Cancel or Pause Scheduled Send",
|
|
391
|
-
description: "Mark a batch ID as `cancel` or `pause`. Applies to all messages with that batch ID scheduled in the future.",
|
|
392
|
-
input: z.object({
|
|
393
|
-
batchId: sendgridIdSchema,
|
|
394
|
-
status: sendgridScheduledSendStatusSchema
|
|
395
|
-
}),
|
|
396
|
-
output: sendgridScheduledSendSchema,
|
|
397
|
-
needsApproval: true,
|
|
398
|
-
run: async (input, context) => {
|
|
399
|
-
const credentials = context.credentials.sendgrid;
|
|
400
|
-
const response = await createSendGridClient(credentials).request("/user/scheduled_sends", {
|
|
401
|
-
method: "POST",
|
|
402
|
-
body: {
|
|
403
|
-
batch_id: input.batchId,
|
|
404
|
-
status: input.status
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
return sendgridScheduledSendSchema.parse(response);
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
//#endregion
|
|
412
|
-
//#region src/operations/create-alert.operation.ts
|
|
413
|
-
z.number().int().positive();
|
|
414
|
-
const alertInput$1 = z.object({
|
|
415
|
-
type: sendgridAlertTypeSchema,
|
|
416
|
-
emailTo: sendgridEmailSchema,
|
|
417
|
-
frequency: sendgridAlertFrequencySchema.optional(),
|
|
418
|
-
percentage: z.number().int().min(1).max(100).optional()
|
|
419
|
-
});
|
|
420
|
-
function mapAlertInput(input) {
|
|
421
|
-
return omitUndefined({
|
|
422
|
-
type: input.type,
|
|
423
|
-
email_to: input.emailTo,
|
|
424
|
-
frequency: input.frequency,
|
|
425
|
-
percentage: input.percentage
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
const createAlertOperation = new Operation({
|
|
429
|
-
credentialSets: [sendgridCredentialSet],
|
|
430
|
-
id: "sendgrid.create-alert",
|
|
431
|
-
name: "Create Alert",
|
|
432
|
-
description: "Create a stats-notification or usage-limit alert.",
|
|
433
|
-
input: alertInput$1,
|
|
434
|
-
output: sendgridAlertSchema,
|
|
435
|
-
needsApproval: true,
|
|
436
|
-
run: async (input, context) => {
|
|
437
|
-
const credentials = context.credentials.sendgrid;
|
|
438
|
-
const response = await createSendGridClient(credentials).request("/alerts", {
|
|
439
|
-
method: "POST",
|
|
440
|
-
body: mapAlertInput(input)
|
|
441
|
-
});
|
|
442
|
-
return sendgridAlertSchema.parse(response);
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
|
|
446
|
-
//#endregion
|
|
447
|
-
//#region src/operations/create-api-key.operation.ts
|
|
448
|
-
const createApiKeyOperation = new Operation({
|
|
449
|
-
credentialSets: [sendgridCredentialSet],
|
|
450
|
-
id: "sendgrid.create-api-key",
|
|
451
|
-
name: "Create API Key",
|
|
452
|
-
description: "Create a new SendGrid API key. Returns the full key value only at creation time — store it safely.",
|
|
453
|
-
input: z.object({
|
|
454
|
-
name: z.string().min(1),
|
|
455
|
-
scopes: z.array(z.string()).optional()
|
|
456
|
-
}),
|
|
457
|
-
output: sendgridApiKeyWithKeySchema,
|
|
458
|
-
needsApproval: true,
|
|
459
|
-
run: async (input, context) => {
|
|
460
|
-
const credentials = context.credentials.sendgrid;
|
|
461
|
-
const response = await createSendGridClient(credentials).request("/api_keys", {
|
|
462
|
-
method: "POST",
|
|
463
|
-
body: omitUndefined({
|
|
464
|
-
name: input.name,
|
|
465
|
-
scopes: input.scopes
|
|
466
|
-
})
|
|
467
|
-
});
|
|
468
|
-
return sendgridApiKeyWithKeySchema.parse(response);
|
|
469
|
-
}
|
|
470
|
-
});
|
|
471
|
-
|
|
472
|
-
//#endregion
|
|
473
|
-
//#region src/operations/create-batch-id.operation.ts
|
|
474
|
-
const createBatchIdOperation = new Operation({
|
|
475
|
-
credentialSets: [sendgridCredentialSet],
|
|
476
|
-
id: "sendgrid.create-batch-id",
|
|
477
|
-
name: "Create Batch ID",
|
|
478
|
-
description: "Mint a new batch ID. Use the returned ID as `batchId` on subsequent Mail Send calls to later cancel or pause all messages in the batch.",
|
|
479
|
-
input: z.object({}).optional(),
|
|
480
|
-
output: sendgridBatchIdSchema,
|
|
481
|
-
needsApproval: true,
|
|
482
|
-
run: async (_input, context) => {
|
|
483
|
-
const credentials = context.credentials.sendgrid;
|
|
484
|
-
const response = await createSendGridClient(credentials).request("/mail/batch", { method: "POST" });
|
|
485
|
-
return sendgridBatchIdSchema.parse(response);
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
|
|
489
|
-
//#endregion
|
|
490
|
-
//#region src/operations/create-bulk-email-validation-presigned-url.operation.ts
|
|
491
|
-
const createBulkEmailValidationPresignedUrlOperation = new Operation({
|
|
492
|
-
credentialSets: [sendgridCredentialSet],
|
|
493
|
-
id: "sendgrid.create-bulk-email-validation-presigned-url",
|
|
494
|
-
name: "Create Bulk Email Validation Upload URL",
|
|
495
|
-
description: "Allocate a presigned upload URL for a bulk email-validation CSV.",
|
|
496
|
-
input: z.object({ fileType: z.enum(["csv", "zip"]).default("csv") }),
|
|
497
|
-
output: sendgridBulkEmailValidationPresignedUrlSchema,
|
|
498
|
-
needsApproval: true,
|
|
499
|
-
run: async (input, context) => {
|
|
500
|
-
const credentials = context.credentials.sendgrid;
|
|
501
|
-
const response = await createSendGridClient(credentials).request("/validations/email/jobs", {
|
|
502
|
-
method: "PUT",
|
|
503
|
-
body: { file_type: input.fileType }
|
|
504
|
-
});
|
|
505
|
-
return sendgridBulkEmailValidationPresignedUrlSchema.parse(response);
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
//#endregion
|
|
510
|
-
//#region src/operations/create-contact-export.operation.ts
|
|
511
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
512
|
-
const createContactExportOperation = new Operation({
|
|
513
|
-
credentialSets: [sendgridCredentialSet],
|
|
514
|
-
id: "sendgrid.create-contact-export",
|
|
515
|
-
name: "Create Contact Export",
|
|
516
|
-
description: "Create a contact-export job. Returns a job ID you poll for CSV URLs.",
|
|
517
|
-
input: z.object({
|
|
518
|
-
listIds: z.array(sendgridIdSchema).optional(),
|
|
519
|
-
segmentIds: z.array(sendgridIdSchema).optional(),
|
|
520
|
-
fileType: z.enum(["csv", "json"]).default("csv"),
|
|
521
|
-
maxFileSize: z.number().int().positive().optional(),
|
|
522
|
-
notifications: z.object({ email: z.object({ addresses: z.array(sendgridEmailSchema) }) }).optional()
|
|
523
|
-
}),
|
|
524
|
-
output: sendgridContactExportSchema,
|
|
525
|
-
needsApproval: true,
|
|
526
|
-
run: async (input, context) => {
|
|
527
|
-
const credentials = context.credentials.sendgrid;
|
|
528
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/exports", {
|
|
529
|
-
method: "POST",
|
|
530
|
-
body: omitUndefined({
|
|
531
|
-
list_ids: input.listIds,
|
|
532
|
-
segment_ids: input.segmentIds,
|
|
533
|
-
file_type: input.fileType,
|
|
534
|
-
max_file_size: input.maxFileSize,
|
|
535
|
-
notifications: input.notifications
|
|
536
|
-
})
|
|
537
|
-
});
|
|
538
|
-
return sendgridContactExportSchema.parse(response);
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
|
|
542
|
-
//#endregion
|
|
543
|
-
//#region src/operations/create-contact-import.operation.ts
|
|
544
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
545
|
-
const createContactImportOperation = new Operation({
|
|
546
|
-
credentialSets: [sendgridCredentialSet],
|
|
547
|
-
id: "sendgrid.create-contact-import",
|
|
548
|
-
name: "Create Contact Import",
|
|
549
|
-
description: "Create a contact-import job. Returns presigned upload details you then PUT a CSV to.",
|
|
550
|
-
input: z.object({
|
|
551
|
-
fileType: z.enum(["csv"]).default("csv"),
|
|
552
|
-
fieldMappings: z.array(z.string()).optional(),
|
|
553
|
-
listIds: z.array(sendgridIdSchema).optional()
|
|
554
|
-
}),
|
|
555
|
-
output: sendgridContactImportSchema,
|
|
556
|
-
needsApproval: true,
|
|
557
|
-
run: async (input, context) => {
|
|
558
|
-
const credentials = context.credentials.sendgrid;
|
|
559
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/imports", {
|
|
560
|
-
method: "PUT",
|
|
561
|
-
body: omitUndefined({
|
|
562
|
-
file_type: input.fileType,
|
|
563
|
-
field_mappings: input.fieldMappings,
|
|
564
|
-
list_ids: input.listIds
|
|
565
|
-
})
|
|
566
|
-
});
|
|
567
|
-
return sendgridContactImportSchema.parse(response);
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
//#endregion
|
|
572
|
-
//#region src/operations/create-custom-field.operation.ts
|
|
573
|
-
const fieldType = z.enum([
|
|
574
|
-
"Text",
|
|
575
|
-
"Number",
|
|
576
|
-
"Date"
|
|
577
|
-
]);
|
|
578
|
-
const createCustomFieldOperation = new Operation({
|
|
579
|
-
credentialSets: [sendgridCredentialSet],
|
|
580
|
-
id: "sendgrid.create-custom-field",
|
|
581
|
-
name: "Create Custom Field",
|
|
582
|
-
description: "Create a Marketing Contacts custom field definition.",
|
|
583
|
-
input: z.object({
|
|
584
|
-
name: z.string().min(1),
|
|
585
|
-
fieldType
|
|
586
|
-
}),
|
|
587
|
-
output: sendgridCustomFieldDefinitionSchema,
|
|
588
|
-
needsApproval: true,
|
|
589
|
-
run: async (input, context) => {
|
|
590
|
-
const credentials = context.credentials.sendgrid;
|
|
591
|
-
const response = await createSendGridClient(credentials).request("/marketing/field_definitions", {
|
|
592
|
-
method: "POST",
|
|
593
|
-
body: {
|
|
594
|
-
name: input.name,
|
|
595
|
-
field_type: input.fieldType
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
return sendgridCustomFieldDefinitionSchema.parse(response);
|
|
599
|
-
}
|
|
600
|
-
});
|
|
601
|
-
|
|
602
|
-
//#endregion
|
|
603
|
-
//#region src/operations/create-event-webhook.operation.ts
|
|
604
|
-
z.string().min(1);
|
|
605
|
-
const eventWebhookInputSchema$1 = z.object({
|
|
606
|
-
friendly_name: z.string().optional(),
|
|
607
|
-
enabled: z.boolean().optional(),
|
|
608
|
-
url: z.string().url(),
|
|
609
|
-
group_resubscribe: z.boolean().optional(),
|
|
610
|
-
delivered: z.boolean().optional(),
|
|
611
|
-
group_unsubscribe: z.boolean().optional(),
|
|
612
|
-
spam_report: z.boolean().optional(),
|
|
613
|
-
bounce: z.boolean().optional(),
|
|
614
|
-
deferred: z.boolean().optional(),
|
|
615
|
-
unsubscribe: z.boolean().optional(),
|
|
616
|
-
processed: z.boolean().optional(),
|
|
617
|
-
open: z.boolean().optional(),
|
|
618
|
-
click: z.boolean().optional(),
|
|
619
|
-
dropped: z.boolean().optional(),
|
|
620
|
-
oauth_client_id: z.string().optional(),
|
|
621
|
-
oauth_client_secret: z.string().optional(),
|
|
622
|
-
oauth_token_url: z.string().optional()
|
|
623
|
-
});
|
|
624
|
-
const createEventWebhookOperation = new Operation({
|
|
625
|
-
credentialSets: [sendgridCredentialSet],
|
|
626
|
-
id: "sendgrid.create-event-webhook",
|
|
627
|
-
name: "Create Event Webhook",
|
|
628
|
-
description: "Register a new Event Webhook endpoint.",
|
|
629
|
-
input: eventWebhookInputSchema$1,
|
|
630
|
-
output: sendgridEventWebhookSettingsSchema,
|
|
631
|
-
needsApproval: true,
|
|
632
|
-
run: async (input, context) => {
|
|
633
|
-
const credentials = context.credentials.sendgrid;
|
|
634
|
-
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings", {
|
|
635
|
-
method: "POST",
|
|
636
|
-
body: omitUndefined(input)
|
|
637
|
-
});
|
|
638
|
-
return sendgridEventWebhookSettingsSchema.parse(response);
|
|
639
|
-
}
|
|
640
|
-
});
|
|
641
|
-
|
|
642
|
-
//#endregion
|
|
643
|
-
//#region src/operations/create-legacy-marketing-segment.operation.ts
|
|
644
|
-
const segmentBody$1 = z.object({
|
|
645
|
-
name: z.string().min(1),
|
|
646
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
647
|
-
queryDsl: z.string().min(1)
|
|
648
|
-
});
|
|
649
|
-
function mapSegmentBody$1(body) {
|
|
650
|
-
return omitUndefined({
|
|
651
|
-
name: body.name,
|
|
652
|
-
parent_list_ids: body.parentListIds,
|
|
653
|
-
query_dsl: body.queryDsl
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
const createLegacySegmentOperation = new Operation({
|
|
657
|
-
credentialSets: [sendgridCredentialSet],
|
|
658
|
-
id: "sendgrid.create-legacy-marketing-segment",
|
|
659
|
-
name: "Create Marketing Segment (v1 engine)",
|
|
660
|
-
description: "Create a segment using the v1 engine. Kept because some accounts still run v1; new code should prefer `createSegment`.",
|
|
661
|
-
input: segmentBody$1,
|
|
662
|
-
output: sendgridSegmentSchema,
|
|
663
|
-
needsApproval: true,
|
|
664
|
-
run: async (input, context) => {
|
|
665
|
-
const credentials = context.credentials.sendgrid;
|
|
666
|
-
const response = await createSendGridClient(credentials).request("/marketing/segments", {
|
|
667
|
-
method: "POST",
|
|
668
|
-
body: mapSegmentBody$1(input)
|
|
669
|
-
});
|
|
670
|
-
return sendgridSegmentSchema.parse(response);
|
|
671
|
-
}
|
|
672
|
-
});
|
|
673
|
-
|
|
674
|
-
//#endregion
|
|
675
|
-
//#region src/operations/create-list.operation.ts
|
|
676
|
-
const createListOperation = new Operation({
|
|
677
|
-
credentialSets: [sendgridCredentialSet],
|
|
678
|
-
id: "sendgrid.create-list",
|
|
679
|
-
name: "Create Marketing List",
|
|
680
|
-
description: "Create a new v3 marketing list.",
|
|
681
|
-
input: z.object({ name: z.string().min(1) }),
|
|
682
|
-
output: sendgridListSchema,
|
|
683
|
-
needsApproval: true,
|
|
684
|
-
run: async (input, context) => {
|
|
685
|
-
const credentials = context.credentials.sendgrid;
|
|
686
|
-
const response = await createSendGridClient(credentials).request("/marketing/lists", {
|
|
687
|
-
method: "POST",
|
|
688
|
-
body: { name: input.name }
|
|
689
|
-
});
|
|
690
|
-
return sendgridListSchema.parse(response);
|
|
691
|
-
}
|
|
692
|
-
});
|
|
693
|
-
|
|
694
|
-
//#endregion
|
|
695
|
-
//#region src/operations/create-parse-setting.operation.ts
|
|
696
|
-
const hostname$5 = z.string().min(1);
|
|
697
|
-
const parseInputSchema$1 = z.object({
|
|
698
|
-
url: z.string().url(),
|
|
699
|
-
hostname: hostname$5,
|
|
700
|
-
spamCheck: z.boolean().optional(),
|
|
701
|
-
sendRaw: z.boolean().optional()
|
|
702
|
-
});
|
|
703
|
-
const createParseSettingOperation = new Operation({
|
|
704
|
-
credentialSets: [sendgridCredentialSet],
|
|
705
|
-
id: "sendgrid.create-parse-setting",
|
|
706
|
-
name: "Create Inbound Parse Setting",
|
|
707
|
-
description: "Configure an Inbound Parse hostname + receiver URL.",
|
|
708
|
-
input: parseInputSchema$1,
|
|
709
|
-
output: sendgridParseSettingSchema,
|
|
710
|
-
needsApproval: true,
|
|
711
|
-
run: async (input, context) => {
|
|
712
|
-
const credentials = context.credentials.sendgrid;
|
|
713
|
-
const response = await createSendGridClient(credentials).request("/user/webhooks/parse/settings", {
|
|
714
|
-
method: "POST",
|
|
715
|
-
body: omitUndefined({
|
|
716
|
-
url: input.url,
|
|
717
|
-
hostname: input.hostname,
|
|
718
|
-
spam_check: input.spamCheck,
|
|
719
|
-
send_raw: input.sendRaw
|
|
720
|
-
})
|
|
721
|
-
});
|
|
722
|
-
return sendgridParseSettingSchema.parse(response);
|
|
723
|
-
}
|
|
724
|
-
});
|
|
725
|
-
|
|
726
|
-
//#endregion
|
|
727
|
-
//#region src/operations/create-segment.operation.ts
|
|
728
|
-
const segmentBody = z.object({
|
|
729
|
-
name: z.string().min(1),
|
|
730
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
731
|
-
queryDsl: z.string().min(1)
|
|
732
|
-
});
|
|
733
|
-
function mapSegmentBody(body) {
|
|
734
|
-
return omitUndefined({
|
|
735
|
-
name: body.name,
|
|
736
|
-
parent_list_ids: body.parentListIds,
|
|
737
|
-
query_dsl: body.queryDsl
|
|
738
|
-
});
|
|
739
|
-
}
|
|
740
|
-
const createSegmentOperation = new Operation({
|
|
741
|
-
credentialSets: [sendgridCredentialSet],
|
|
742
|
-
id: "sendgrid.create-segment",
|
|
743
|
-
name: "Create Segment",
|
|
744
|
-
description: "Create a Marketing Segments v2.0 segment.",
|
|
745
|
-
input: segmentBody,
|
|
746
|
-
output: sendgridSegmentSchema,
|
|
747
|
-
needsApproval: true,
|
|
748
|
-
run: async (input, context) => {
|
|
749
|
-
const credentials = context.credentials.sendgrid;
|
|
750
|
-
const response = await createSendGridClient(credentials).request("/marketing/segments/2.0", {
|
|
751
|
-
method: "POST",
|
|
752
|
-
body: mapSegmentBody(input)
|
|
753
|
-
});
|
|
754
|
-
return sendgridSegmentSchema.parse(response);
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
|
|
758
|
-
//#endregion
|
|
759
|
-
//#region src/operations/create-sender.operation.ts
|
|
760
|
-
z.number().int().positive();
|
|
761
|
-
const createSenderOperation = new Operation({
|
|
762
|
-
credentialSets: [sendgridCredentialSet],
|
|
763
|
-
id: "sendgrid.create-sender",
|
|
764
|
-
name: "Create Marketing Sender",
|
|
765
|
-
description: "Create a Marketing Campaigns sender.",
|
|
766
|
-
input: sendgridSenderAddressSchema,
|
|
767
|
-
output: sendgridSenderSchema,
|
|
768
|
-
needsApproval: true,
|
|
769
|
-
run: async (input, context) => {
|
|
770
|
-
const credentials = context.credentials.sendgrid;
|
|
771
|
-
const response = await createSendGridClient(credentials).request("/marketing/senders", {
|
|
772
|
-
method: "POST",
|
|
773
|
-
body: input
|
|
774
|
-
});
|
|
775
|
-
return sendgridSenderSchema.parse(response);
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
|
|
779
|
-
//#endregion
|
|
780
|
-
//#region src/operations/create-sender-identity.operation.ts
|
|
781
|
-
z.number().int().positive();
|
|
782
|
-
const verifiedSenderInput$1 = z.object({
|
|
783
|
-
nickname: z.string().min(1),
|
|
784
|
-
from_email: sendgridEmailSchema,
|
|
785
|
-
from_name: z.string().optional(),
|
|
786
|
-
reply_to: sendgridEmailSchema.optional(),
|
|
787
|
-
reply_to_name: z.string().optional(),
|
|
788
|
-
address: z.string().optional(),
|
|
789
|
-
address2: z.string().optional(),
|
|
790
|
-
city: z.string().optional(),
|
|
791
|
-
state: z.string().optional(),
|
|
792
|
-
zip: z.string().optional(),
|
|
793
|
-
country: z.string().optional()
|
|
794
|
-
});
|
|
795
|
-
const createSenderIdentityOperation = new Operation({
|
|
796
|
-
credentialSets: [sendgridCredentialSet],
|
|
797
|
-
id: "sendgrid.create-sender-identity",
|
|
798
|
-
name: "Create Verified Sender Identity",
|
|
799
|
-
description: "Create a verified sender identity. SendGrid emails a verification link to `from_email`.",
|
|
800
|
-
input: verifiedSenderInput$1,
|
|
801
|
-
output: sendgridVerifiedSenderSchema,
|
|
802
|
-
needsApproval: true,
|
|
803
|
-
run: async (input, context) => {
|
|
804
|
-
const credentials = context.credentials.sendgrid;
|
|
805
|
-
const response = await createSendGridClient(credentials).request("/verified_senders", {
|
|
806
|
-
method: "POST",
|
|
807
|
-
body: input
|
|
808
|
-
});
|
|
809
|
-
return sendgridVerifiedSenderSchema.parse(response);
|
|
810
|
-
}
|
|
811
|
-
});
|
|
812
|
-
|
|
813
|
-
//#endregion
|
|
814
|
-
//#region src/operations/create-single-send.operation.ts
|
|
815
|
-
function base$8(path = "") {
|
|
816
|
-
return `/marketing/singlesends${path}`;
|
|
817
|
-
}
|
|
818
|
-
const singleSendBody$1 = z.object({
|
|
819
|
-
name: z.string().min(1),
|
|
820
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
821
|
-
sendAt: z.iso.datetime().optional(),
|
|
822
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
823
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
824
|
-
});
|
|
825
|
-
function mapSingleSendBody(input) {
|
|
826
|
-
return omitUndefined({
|
|
827
|
-
name: input.name,
|
|
828
|
-
categories: input.categories,
|
|
829
|
-
send_at: input.sendAt,
|
|
830
|
-
send_to: input.sendTo,
|
|
831
|
-
email_config: input.emailConfig
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
const createSingleSendOperation = new Operation({
|
|
835
|
-
credentialSets: [sendgridCredentialSet],
|
|
836
|
-
id: "sendgrid.create-single-send",
|
|
837
|
-
name: "Create Single Send",
|
|
838
|
-
description: "Create a marketing Single Send campaign.",
|
|
839
|
-
input: singleSendBody$1,
|
|
840
|
-
output: sendgridSingleSendSchema,
|
|
841
|
-
needsApproval: true,
|
|
842
|
-
run: async (input, context) => {
|
|
843
|
-
const credentials = context.credentials.sendgrid;
|
|
844
|
-
const response = await createSendGridClient(credentials).request(base$8(), {
|
|
845
|
-
method: "POST",
|
|
846
|
-
body: mapSingleSendBody(input)
|
|
847
|
-
});
|
|
848
|
-
return sendgridSingleSendSchema.parse(response);
|
|
849
|
-
}
|
|
850
|
-
});
|
|
851
|
-
|
|
852
|
-
//#endregion
|
|
853
|
-
//#region src/operations/create-suppression-group.operation.ts
|
|
854
|
-
z.number().int().nonnegative();
|
|
855
|
-
z.object({
|
|
856
|
-
startTime: z.number().int().optional(),
|
|
857
|
-
endTime: z.number().int().optional()
|
|
858
|
-
}).optional();
|
|
859
|
-
const createSuppressionGroupOperation = new Operation({
|
|
860
|
-
credentialSets: [sendgridCredentialSet],
|
|
861
|
-
id: "sendgrid.create-suppression-group",
|
|
862
|
-
name: "Create Suppression Group",
|
|
863
|
-
description: "Create an unsubscribe/suppression group.",
|
|
864
|
-
input: z.object({
|
|
865
|
-
name: z.string().min(1).max(30),
|
|
866
|
-
description: z.string().max(100).optional(),
|
|
867
|
-
isDefault: z.boolean().optional()
|
|
868
|
-
}),
|
|
869
|
-
output: sendgridSuppressionGroupSchema,
|
|
870
|
-
needsApproval: true,
|
|
871
|
-
run: async (input, context) => {
|
|
872
|
-
const credentials = context.credentials.sendgrid;
|
|
873
|
-
const response = await createSendGridClient(credentials).request("/asm/groups", {
|
|
874
|
-
method: "POST",
|
|
875
|
-
body: omitUndefined({
|
|
876
|
-
name: input.name,
|
|
877
|
-
description: input.description,
|
|
878
|
-
is_default: input.isDefault
|
|
879
|
-
})
|
|
880
|
-
});
|
|
881
|
-
return sendgridSuppressionGroupSchema.parse(response);
|
|
882
|
-
}
|
|
883
|
-
});
|
|
884
|
-
|
|
885
|
-
//#endregion
|
|
886
|
-
//#region src/operations/create-template.operation.ts
|
|
887
|
-
function tpl$9(path) {
|
|
888
|
-
return `/templates${path}`;
|
|
889
|
-
}
|
|
890
|
-
const createTemplateOperation = new Operation({
|
|
891
|
-
credentialSets: [sendgridCredentialSet],
|
|
892
|
-
id: "sendgrid.create-template",
|
|
893
|
-
name: "Create Transactional Template",
|
|
894
|
-
description: "Create a new transactional template.",
|
|
895
|
-
input: z.object({
|
|
896
|
-
name: z.string().min(1),
|
|
897
|
-
generation: sendgridTemplateGenerationSchema.optional()
|
|
898
|
-
}),
|
|
899
|
-
output: sendgridTemplateSchema,
|
|
900
|
-
needsApproval: true,
|
|
901
|
-
run: async (input, context) => {
|
|
902
|
-
const credentials = context.credentials.sendgrid;
|
|
903
|
-
const response = await createSendGridClient(credentials).request(tpl$9(""), {
|
|
904
|
-
method: "POST",
|
|
905
|
-
body: omitUndefined({
|
|
906
|
-
name: input.name,
|
|
907
|
-
generation: input.generation
|
|
908
|
-
})
|
|
909
|
-
});
|
|
910
|
-
return sendgridTemplateSchema.parse(response);
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
|
|
914
|
-
//#endregion
|
|
915
|
-
//#region src/operations/create-template-version.operation.ts
|
|
916
|
-
function tpl$8(path) {
|
|
917
|
-
return `/templates${path}`;
|
|
918
|
-
}
|
|
919
|
-
const createTemplateVersionOperation = new Operation({
|
|
920
|
-
credentialSets: [sendgridCredentialSet],
|
|
921
|
-
id: "sendgrid.create-template-version",
|
|
922
|
-
name: "Create Template Version",
|
|
923
|
-
description: "Add a new version to a transactional template.",
|
|
924
|
-
input: z.object({
|
|
925
|
-
templateId: sendgridIdSchema,
|
|
926
|
-
name: z.string().min(1),
|
|
927
|
-
subject: z.string().optional(),
|
|
928
|
-
htmlContent: z.string().optional(),
|
|
929
|
-
plainContent: z.string().optional(),
|
|
930
|
-
generatePlainContent: z.boolean().optional(),
|
|
931
|
-
active: z.union([z.literal(0), z.literal(1)]).optional(),
|
|
932
|
-
editor: z.enum(["code", "design"]).optional()
|
|
933
|
-
}),
|
|
934
|
-
output: sendgridTemplateVersionSchema,
|
|
935
|
-
needsApproval: true,
|
|
936
|
-
run: async (input, context) => {
|
|
937
|
-
const credentials = context.credentials.sendgrid;
|
|
938
|
-
const response = await createSendGridClient(credentials).request(tpl$8(`/${encodeURIComponent(input.templateId)}/versions`), {
|
|
939
|
-
method: "POST",
|
|
940
|
-
body: omitUndefined({
|
|
941
|
-
name: input.name,
|
|
942
|
-
subject: input.subject,
|
|
943
|
-
html_content: input.htmlContent,
|
|
944
|
-
plain_content: input.plainContent,
|
|
945
|
-
generate_plain_content: input.generatePlainContent,
|
|
946
|
-
active: input.active,
|
|
947
|
-
editor: input.editor
|
|
948
|
-
})
|
|
949
|
-
});
|
|
950
|
-
return sendgridTemplateVersionSchema.parse(response);
|
|
951
|
-
}
|
|
952
|
-
});
|
|
953
|
-
|
|
954
|
-
//#endregion
|
|
955
|
-
//#region src/operations/delete-alert.operation.ts
|
|
956
|
-
const alertId$2 = z.number().int().positive();
|
|
957
|
-
z.object({
|
|
958
|
-
type: sendgridAlertTypeSchema,
|
|
959
|
-
emailTo: sendgridEmailSchema,
|
|
960
|
-
frequency: sendgridAlertFrequencySchema.optional(),
|
|
961
|
-
percentage: z.number().int().min(1).max(100).optional()
|
|
962
|
-
});
|
|
963
|
-
const deleteAlertOperation = new Operation({
|
|
964
|
-
credentialSets: [sendgridCredentialSet],
|
|
965
|
-
id: "sendgrid.delete-alert",
|
|
966
|
-
name: "Delete Alert",
|
|
967
|
-
description: "Delete an alert.",
|
|
968
|
-
input: z.object({ alertId: alertId$2 }),
|
|
969
|
-
output: z.object({ success: z.boolean() }),
|
|
970
|
-
needsApproval: true,
|
|
971
|
-
run: async (input, context) => {
|
|
972
|
-
const credentials = context.credentials.sendgrid;
|
|
973
|
-
await createSendGridClient(credentials).request(`/alerts/${input.alertId}`, { method: "DELETE" });
|
|
974
|
-
return { success: true };
|
|
975
|
-
}
|
|
976
|
-
});
|
|
977
|
-
|
|
978
|
-
//#endregion
|
|
979
|
-
//#region src/operations/delete-api-key.operation.ts
|
|
980
|
-
const deleteApiKeyOperation = new Operation({
|
|
981
|
-
credentialSets: [sendgridCredentialSet],
|
|
982
|
-
id: "sendgrid.delete-api-key",
|
|
983
|
-
name: "Delete API Key",
|
|
984
|
-
description: "Delete (revoke) an API key.",
|
|
985
|
-
input: z.object({ apiKeyId: sendgridIdSchema }),
|
|
986
|
-
output: z.object({ success: z.boolean() }),
|
|
987
|
-
needsApproval: true,
|
|
988
|
-
run: async (input, context) => {
|
|
989
|
-
const credentials = context.credentials.sendgrid;
|
|
990
|
-
await createSendGridClient(credentials).request(`/api_keys/${encodeURIComponent(input.apiKeyId)}`, { method: "DELETE" });
|
|
991
|
-
return { success: true };
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
|
|
995
|
-
//#endregion
|
|
996
|
-
//#region src/operations/delete-block.operation.ts
|
|
997
|
-
z.number().int().nonnegative();
|
|
998
|
-
z.object({
|
|
999
|
-
startTime: z.number().int().optional(),
|
|
1000
|
-
endTime: z.number().int().optional()
|
|
1001
|
-
}).optional();
|
|
1002
|
-
const deleteBlockOperation = new Operation({
|
|
1003
|
-
credentialSets: [sendgridCredentialSet],
|
|
1004
|
-
id: "sendgrid.delete-block",
|
|
1005
|
-
name: "Delete Block",
|
|
1006
|
-
description: "Delete a block record for a specific email.",
|
|
1007
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
1008
|
-
output: z.object({ success: z.boolean() }),
|
|
1009
|
-
needsApproval: true,
|
|
1010
|
-
run: async (input, context) => {
|
|
1011
|
-
const credentials = context.credentials.sendgrid;
|
|
1012
|
-
await createSendGridClient(credentials).request(`/suppression/blocks/${encodeURIComponent(input.email)}`, { method: "DELETE" });
|
|
1013
|
-
return { success: true };
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
|
|
1017
|
-
//#endregion
|
|
1018
|
-
//#region src/operations/delete-blocks.operation.ts
|
|
1019
|
-
z.number().int().nonnegative();
|
|
1020
|
-
z.object({
|
|
1021
|
-
startTime: z.number().int().optional(),
|
|
1022
|
-
endTime: z.number().int().optional()
|
|
1023
|
-
}).optional();
|
|
1024
|
-
const deleteBlocksOperation = new Operation({
|
|
1025
|
-
credentialSets: [sendgridCredentialSet],
|
|
1026
|
-
id: "sendgrid.delete-blocks",
|
|
1027
|
-
name: "Delete Blocks",
|
|
1028
|
-
description: "Delete block records by email list, or delete all blocks.",
|
|
1029
|
-
input: z.object({
|
|
1030
|
-
emails: z.array(sendgridEmailSchema).min(1).optional(),
|
|
1031
|
-
deleteAll: z.boolean().optional()
|
|
1032
|
-
}).refine((v) => v.emails !== void 0 !== (v.deleteAll === true), { message: "Provide either `emails` or `deleteAll: true`, not both." }),
|
|
1033
|
-
output: z.object({ success: z.boolean() }),
|
|
1034
|
-
needsApproval: true,
|
|
1035
|
-
run: async (input, context) => {
|
|
1036
|
-
const credentials = context.credentials.sendgrid;
|
|
1037
|
-
await createSendGridClient(credentials).request("/suppression/blocks", {
|
|
1038
|
-
method: "DELETE",
|
|
1039
|
-
body: omitUndefined({
|
|
1040
|
-
emails: input.emails,
|
|
1041
|
-
delete_all: input.deleteAll
|
|
1042
|
-
})
|
|
1043
|
-
});
|
|
1044
|
-
return { success: true };
|
|
1045
|
-
}
|
|
1046
|
-
});
|
|
1047
|
-
|
|
1048
|
-
//#endregion
|
|
1049
|
-
//#region src/operations/delete-bounce.operation.ts
|
|
1050
|
-
z.number().int().nonnegative();
|
|
1051
|
-
z.object({
|
|
1052
|
-
startTime: z.number().int().optional(),
|
|
1053
|
-
endTime: z.number().int().optional()
|
|
1054
|
-
}).optional();
|
|
1055
|
-
const deleteBounceOperation = new Operation({
|
|
1056
|
-
credentialSets: [sendgridCredentialSet],
|
|
1057
|
-
id: "sendgrid.delete-bounce",
|
|
1058
|
-
name: "Delete Bounce",
|
|
1059
|
-
description: "Delete a bounce record for a specific email.",
|
|
1060
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
1061
|
-
output: z.object({ success: z.boolean() }),
|
|
1062
|
-
needsApproval: true,
|
|
1063
|
-
run: async (input, context) => {
|
|
1064
|
-
const credentials = context.credentials.sendgrid;
|
|
1065
|
-
await createSendGridClient(credentials).request(`/suppression/bounces/${encodeURIComponent(input.email)}`, { method: "DELETE" });
|
|
1066
|
-
return { success: true };
|
|
1067
|
-
}
|
|
1068
|
-
});
|
|
1069
|
-
|
|
1070
|
-
//#endregion
|
|
1071
|
-
//#region src/operations/delete-bounces.operation.ts
|
|
1072
|
-
z.number().int().nonnegative();
|
|
1073
|
-
z.object({
|
|
1074
|
-
startTime: z.number().int().optional(),
|
|
1075
|
-
endTime: z.number().int().optional()
|
|
1076
|
-
}).optional();
|
|
1077
|
-
const deleteBouncesOperation = new Operation({
|
|
1078
|
-
credentialSets: [sendgridCredentialSet],
|
|
1079
|
-
id: "sendgrid.delete-bounces",
|
|
1080
|
-
name: "Delete Bounces",
|
|
1081
|
-
description: "Delete bounce records by email list, or delete all bounces.",
|
|
1082
|
-
input: z.object({
|
|
1083
|
-
emails: z.array(sendgridEmailSchema).min(1).optional(),
|
|
1084
|
-
deleteAll: z.boolean().optional()
|
|
1085
|
-
}).refine((v) => v.emails !== void 0 !== (v.deleteAll === true), { message: "Provide either `emails` or `deleteAll: true`, not both." }),
|
|
1086
|
-
output: z.object({ success: z.boolean() }),
|
|
1087
|
-
needsApproval: true,
|
|
1088
|
-
run: async (input, context) => {
|
|
1089
|
-
const credentials = context.credentials.sendgrid;
|
|
1090
|
-
await createSendGridClient(credentials).request("/suppression/bounces", {
|
|
1091
|
-
method: "DELETE",
|
|
1092
|
-
body: omitUndefined({
|
|
1093
|
-
emails: input.emails,
|
|
1094
|
-
delete_all: input.deleteAll
|
|
1095
|
-
})
|
|
1096
|
-
});
|
|
1097
|
-
return { success: true };
|
|
1098
|
-
}
|
|
1099
|
-
});
|
|
1100
|
-
|
|
1101
|
-
//#endregion
|
|
1102
|
-
//#region src/operations/delete-contact-identifier.operation.ts
|
|
1103
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1104
|
-
const deleteContactIdentifierOperation = new Operation({
|
|
1105
|
-
credentialSets: [sendgridCredentialSet],
|
|
1106
|
-
id: "sendgrid.delete-contact-identifier",
|
|
1107
|
-
name: "Delete Contact Identifier",
|
|
1108
|
-
description: "Remove an alternate identifier (phone, external id, whatsapp, etc.) from a contact.",
|
|
1109
|
-
input: z.object({ identifierId: sendgridIdSchema }),
|
|
1110
|
-
output: z.object({ success: z.boolean() }),
|
|
1111
|
-
needsApproval: true,
|
|
1112
|
-
run: async (input, context) => {
|
|
1113
|
-
const credentials = context.credentials.sendgrid;
|
|
1114
|
-
await createSendGridClient(credentials).request(`/marketing/contacts/identifiers/${encodeURIComponent(input.identifierId)}`, { method: "DELETE" });
|
|
1115
|
-
return { success: true };
|
|
1116
|
-
}
|
|
1117
|
-
});
|
|
1118
|
-
|
|
1119
|
-
//#endregion
|
|
1120
|
-
//#region src/operations/delete-contacts.operation.ts
|
|
1121
|
-
const contactIdsSchema$1 = z.array(sendgridIdSchema).min(1).max(100);
|
|
1122
|
-
const deleteContactsOperation = new Operation({
|
|
1123
|
-
credentialSets: [sendgridCredentialSet],
|
|
1124
|
-
id: "sendgrid.delete-contacts",
|
|
1125
|
-
name: "Delete Contacts",
|
|
1126
|
-
description: "Delete contacts by ID. Set `deleteAllContacts` to wipe every contact in the account.",
|
|
1127
|
-
input: z.object({
|
|
1128
|
-
ids: contactIdsSchema$1.optional(),
|
|
1129
|
-
deleteAllContacts: z.boolean().optional()
|
|
1130
|
-
}).refine((v) => v.ids !== void 0 !== (v.deleteAllContacts === true), { message: "Provide either `ids` or `deleteAllContacts: true`, not both." }),
|
|
1131
|
-
output: sendgridContactDeleteResultSchema,
|
|
1132
|
-
needsApproval: true,
|
|
1133
|
-
run: async (input, context) => {
|
|
1134
|
-
const credentials = context.credentials.sendgrid;
|
|
1135
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts", {
|
|
1136
|
-
method: "DELETE",
|
|
1137
|
-
query: omitUndefined({
|
|
1138
|
-
ids: input.ids?.join(","),
|
|
1139
|
-
delete_all_contacts: input.deleteAllContacts ? "true" : void 0
|
|
1140
|
-
})
|
|
1141
|
-
});
|
|
1142
|
-
return sendgridContactDeleteResultSchema.parse(response);
|
|
1143
|
-
}
|
|
1144
|
-
});
|
|
1145
|
-
|
|
1146
|
-
//#endregion
|
|
1147
|
-
//#region src/operations/delete-custom-field.operation.ts
|
|
1148
|
-
z.enum([
|
|
1149
|
-
"Text",
|
|
1150
|
-
"Number",
|
|
1151
|
-
"Date"
|
|
1152
|
-
]);
|
|
1153
|
-
const deleteCustomFieldOperation = new Operation({
|
|
1154
|
-
credentialSets: [sendgridCredentialSet],
|
|
1155
|
-
id: "sendgrid.delete-custom-field",
|
|
1156
|
-
name: "Delete Custom Field",
|
|
1157
|
-
description: "Delete a Marketing Contacts custom field definition.",
|
|
1158
|
-
input: z.object({ fieldId: sendgridIdSchema }),
|
|
1159
|
-
output: z.object({ success: z.boolean() }),
|
|
1160
|
-
needsApproval: true,
|
|
1161
|
-
run: async (input, context) => {
|
|
1162
|
-
const credentials = context.credentials.sendgrid;
|
|
1163
|
-
await createSendGridClient(credentials).request(`/marketing/field_definitions/${encodeURIComponent(input.fieldId)}`, { method: "DELETE" });
|
|
1164
|
-
return { success: true };
|
|
1165
|
-
}
|
|
1166
|
-
});
|
|
1167
|
-
|
|
1168
|
-
//#endregion
|
|
1169
|
-
//#region src/operations/delete-event-webhook.operation.ts
|
|
1170
|
-
const webhookId$2 = z.string().min(1);
|
|
1171
|
-
z.object({
|
|
1172
|
-
friendly_name: z.string().optional(),
|
|
1173
|
-
enabled: z.boolean().optional(),
|
|
1174
|
-
url: z.string().url(),
|
|
1175
|
-
group_resubscribe: z.boolean().optional(),
|
|
1176
|
-
delivered: z.boolean().optional(),
|
|
1177
|
-
group_unsubscribe: z.boolean().optional(),
|
|
1178
|
-
spam_report: z.boolean().optional(),
|
|
1179
|
-
bounce: z.boolean().optional(),
|
|
1180
|
-
deferred: z.boolean().optional(),
|
|
1181
|
-
unsubscribe: z.boolean().optional(),
|
|
1182
|
-
processed: z.boolean().optional(),
|
|
1183
|
-
open: z.boolean().optional(),
|
|
1184
|
-
click: z.boolean().optional(),
|
|
1185
|
-
dropped: z.boolean().optional(),
|
|
1186
|
-
oauth_client_id: z.string().optional(),
|
|
1187
|
-
oauth_client_secret: z.string().optional(),
|
|
1188
|
-
oauth_token_url: z.string().optional()
|
|
1189
|
-
});
|
|
1190
|
-
const deleteEventWebhookOperation = new Operation({
|
|
1191
|
-
credentialSets: [sendgridCredentialSet],
|
|
1192
|
-
id: "sendgrid.delete-event-webhook",
|
|
1193
|
-
name: "Delete Event Webhook",
|
|
1194
|
-
description: "Delete an Event Webhook endpoint.",
|
|
1195
|
-
input: z.object({ webhookId: webhookId$2 }),
|
|
1196
|
-
output: z.object({ success: z.boolean() }),
|
|
1197
|
-
needsApproval: true,
|
|
1198
|
-
run: async (input, context) => {
|
|
1199
|
-
const credentials = context.credentials.sendgrid;
|
|
1200
|
-
await createSendGridClient(credentials).request(`/user/webhooks/event/settings/${encodeURIComponent(input.webhookId)}`, { method: "DELETE" });
|
|
1201
|
-
return { success: true };
|
|
1202
|
-
}
|
|
1203
|
-
});
|
|
1204
|
-
|
|
1205
|
-
//#endregion
|
|
1206
|
-
//#region src/operations/delete-global-suppression.operation.ts
|
|
1207
|
-
z.number().int().nonnegative();
|
|
1208
|
-
z.object({
|
|
1209
|
-
startTime: z.number().int().optional(),
|
|
1210
|
-
endTime: z.number().int().optional()
|
|
1211
|
-
}).optional();
|
|
1212
|
-
const deleteGlobalSuppressionOperation = new Operation({
|
|
1213
|
-
credentialSets: [sendgridCredentialSet],
|
|
1214
|
-
id: "sendgrid.delete-global-suppression",
|
|
1215
|
-
name: "Delete Global Suppression",
|
|
1216
|
-
description: "Remove an email from the global suppression list.",
|
|
1217
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
1218
|
-
output: z.object({ success: z.boolean() }),
|
|
1219
|
-
needsApproval: true,
|
|
1220
|
-
run: async (input, context) => {
|
|
1221
|
-
const credentials = context.credentials.sendgrid;
|
|
1222
|
-
await createSendGridClient(credentials).request(`/asm/suppressions/global/${encodeURIComponent(input.email)}`, { method: "DELETE" });
|
|
1223
|
-
return { success: true };
|
|
1224
|
-
}
|
|
1225
|
-
});
|
|
1226
|
-
|
|
1227
|
-
//#endregion
|
|
1228
|
-
//#region src/operations/delete-invalid-email.operation.ts
|
|
1229
|
-
z.number().int().nonnegative();
|
|
1230
|
-
z.object({
|
|
1231
|
-
startTime: z.number().int().optional(),
|
|
1232
|
-
endTime: z.number().int().optional()
|
|
1233
|
-
}).optional();
|
|
1234
|
-
const deleteInvalidEmailOperation = new Operation({
|
|
1235
|
-
credentialSets: [sendgridCredentialSet],
|
|
1236
|
-
id: "sendgrid.delete-invalid-email",
|
|
1237
|
-
name: "Delete Invalid Email",
|
|
1238
|
-
description: "Delete an invalid-email suppression record.",
|
|
1239
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
1240
|
-
output: z.object({ success: z.boolean() }),
|
|
1241
|
-
needsApproval: true,
|
|
1242
|
-
run: async (input, context) => {
|
|
1243
|
-
const credentials = context.credentials.sendgrid;
|
|
1244
|
-
await createSendGridClient(credentials).request(`/suppression/invalid_emails/${encodeURIComponent(input.email)}`, { method: "DELETE" });
|
|
1245
|
-
return { success: true };
|
|
1246
|
-
}
|
|
1247
|
-
});
|
|
1248
|
-
|
|
1249
|
-
//#endregion
|
|
1250
|
-
//#region src/operations/delete-invalid-emails.operation.ts
|
|
1251
|
-
z.number().int().nonnegative();
|
|
1252
|
-
z.object({
|
|
1253
|
-
startTime: z.number().int().optional(),
|
|
1254
|
-
endTime: z.number().int().optional()
|
|
1255
|
-
}).optional();
|
|
1256
|
-
const deleteInvalidEmailsOperation = new Operation({
|
|
1257
|
-
credentialSets: [sendgridCredentialSet],
|
|
1258
|
-
id: "sendgrid.delete-invalid-emails",
|
|
1259
|
-
name: "Delete Invalid Emails",
|
|
1260
|
-
description: "Delete invalid-email suppression records in bulk.",
|
|
1261
|
-
input: z.object({
|
|
1262
|
-
emails: z.array(sendgridEmailSchema).min(1).optional(),
|
|
1263
|
-
deleteAll: z.boolean().optional()
|
|
1264
|
-
}).refine((v) => v.emails !== void 0 !== (v.deleteAll === true), { message: "Provide either `emails` or `deleteAll: true`, not both." }),
|
|
1265
|
-
output: z.object({ success: z.boolean() }),
|
|
1266
|
-
needsApproval: true,
|
|
1267
|
-
run: async (input, context) => {
|
|
1268
|
-
const credentials = context.credentials.sendgrid;
|
|
1269
|
-
await createSendGridClient(credentials).request("/suppression/invalid_emails", {
|
|
1270
|
-
method: "DELETE",
|
|
1271
|
-
body: omitUndefined({
|
|
1272
|
-
emails: input.emails,
|
|
1273
|
-
delete_all: input.deleteAll
|
|
1274
|
-
})
|
|
1275
|
-
});
|
|
1276
|
-
return { success: true };
|
|
1277
|
-
}
|
|
1278
|
-
});
|
|
1279
|
-
|
|
1280
|
-
//#endregion
|
|
1281
|
-
//#region src/operations/delete-legacy-marketing-segment.operation.ts
|
|
1282
|
-
z.object({
|
|
1283
|
-
name: z.string().min(1),
|
|
1284
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
1285
|
-
queryDsl: z.string().min(1)
|
|
1286
|
-
});
|
|
1287
|
-
const deleteLegacySegmentOperation = new Operation({
|
|
1288
|
-
credentialSets: [sendgridCredentialSet],
|
|
1289
|
-
id: "sendgrid.delete-legacy-marketing-segment",
|
|
1290
|
-
name: "Delete Marketing Segment (v1 engine)",
|
|
1291
|
-
description: "Delete a v1-engine segment.",
|
|
1292
|
-
input: z.object({ segmentId: sendgridIdSchema }),
|
|
1293
|
-
output: z.object({ success: z.boolean() }),
|
|
1294
|
-
needsApproval: true,
|
|
1295
|
-
run: async (input, context) => {
|
|
1296
|
-
const credentials = context.credentials.sendgrid;
|
|
1297
|
-
await createSendGridClient(credentials).request(`/marketing/segments/${encodeURIComponent(input.segmentId)}`, { method: "DELETE" });
|
|
1298
|
-
return { success: true };
|
|
1299
|
-
}
|
|
1300
|
-
});
|
|
1301
|
-
|
|
1302
|
-
//#endregion
|
|
1303
|
-
//#region src/operations/delete-list.operation.ts
|
|
1304
|
-
const deleteListOperation = new Operation({
|
|
1305
|
-
credentialSets: [sendgridCredentialSet],
|
|
1306
|
-
id: "sendgrid.delete-list",
|
|
1307
|
-
name: "Delete Marketing List",
|
|
1308
|
-
description: "Delete a marketing list. Set `deleteContacts: true` to also delete contacts only on this list.",
|
|
1309
|
-
input: z.object({
|
|
1310
|
-
listId: sendgridIdSchema,
|
|
1311
|
-
deleteContacts: z.boolean().optional()
|
|
1312
|
-
}),
|
|
1313
|
-
output: z.object({ success: z.boolean() }),
|
|
1314
|
-
needsApproval: true,
|
|
1315
|
-
run: async (input, context) => {
|
|
1316
|
-
const credentials = context.credentials.sendgrid;
|
|
1317
|
-
await createSendGridClient(credentials).request(`/marketing/lists/${encodeURIComponent(input.listId)}`, {
|
|
1318
|
-
method: "DELETE",
|
|
1319
|
-
query: omitUndefined({ delete_contacts: input.deleteContacts ? "true" : void 0 })
|
|
1320
|
-
});
|
|
1321
|
-
return { success: true };
|
|
1322
|
-
}
|
|
1323
|
-
});
|
|
1324
|
-
|
|
1325
|
-
//#endregion
|
|
1326
|
-
//#region src/operations/delete-parse-setting.operation.ts
|
|
1327
|
-
const hostname$4 = z.string().min(1);
|
|
1328
|
-
z.object({
|
|
1329
|
-
url: z.string().url(),
|
|
1330
|
-
hostname: hostname$4,
|
|
1331
|
-
spamCheck: z.boolean().optional(),
|
|
1332
|
-
sendRaw: z.boolean().optional()
|
|
1333
|
-
});
|
|
1334
|
-
const deleteParseSettingOperation = new Operation({
|
|
1335
|
-
credentialSets: [sendgridCredentialSet],
|
|
1336
|
-
id: "sendgrid.delete-parse-setting",
|
|
1337
|
-
name: "Delete Inbound Parse Setting",
|
|
1338
|
-
description: "Remove an Inbound Parse configuration by hostname.",
|
|
1339
|
-
input: z.object({ hostname: hostname$4 }),
|
|
1340
|
-
output: z.object({ success: z.boolean() }),
|
|
1341
|
-
needsApproval: true,
|
|
1342
|
-
run: async (input, context) => {
|
|
1343
|
-
const credentials = context.credentials.sendgrid;
|
|
1344
|
-
await createSendGridClient(credentials).request(`/user/webhooks/parse/settings/${encodeURIComponent(input.hostname)}`, { method: "DELETE" });
|
|
1345
|
-
return { success: true };
|
|
1346
|
-
}
|
|
1347
|
-
});
|
|
1348
|
-
|
|
1349
|
-
//#endregion
|
|
1350
|
-
//#region src/operations/delete-scheduled-send.operation.ts
|
|
1351
|
-
const deleteScheduledSendOperation = new Operation({
|
|
1352
|
-
credentialSets: [sendgridCredentialSet],
|
|
1353
|
-
id: "sendgrid.delete-scheduled-send",
|
|
1354
|
-
name: "Delete Cancellation or Pause from Scheduled Send",
|
|
1355
|
-
description: "Remove the cancellation or pause on a scheduled batch ID, allowing messages to send on schedule again.",
|
|
1356
|
-
input: z.object({ batchId: sendgridIdSchema }),
|
|
1357
|
-
output: z.object({ success: z.boolean() }),
|
|
1358
|
-
needsApproval: true,
|
|
1359
|
-
run: async (input, context) => {
|
|
1360
|
-
const credentials = context.credentials.sendgrid;
|
|
1361
|
-
await createSendGridClient(credentials).request(`/user/scheduled_sends/${encodeURIComponent(input.batchId)}`, { method: "DELETE" });
|
|
1362
|
-
return { success: true };
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
|
|
1366
|
-
//#endregion
|
|
1367
|
-
//#region src/operations/delete-segment.operation.ts
|
|
1368
|
-
z.object({
|
|
1369
|
-
name: z.string().min(1),
|
|
1370
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
1371
|
-
queryDsl: z.string().min(1)
|
|
1372
|
-
});
|
|
1373
|
-
const deleteSegmentOperation = new Operation({
|
|
1374
|
-
credentialSets: [sendgridCredentialSet],
|
|
1375
|
-
id: "sendgrid.delete-segment",
|
|
1376
|
-
name: "Delete Segment",
|
|
1377
|
-
description: "Delete a v2.0 segment. Contacts remain.",
|
|
1378
|
-
input: z.object({ segmentId: sendgridIdSchema }),
|
|
1379
|
-
output: z.object({ success: z.boolean() }),
|
|
1380
|
-
needsApproval: true,
|
|
1381
|
-
run: async (input, context) => {
|
|
1382
|
-
const credentials = context.credentials.sendgrid;
|
|
1383
|
-
await createSendGridClient(credentials).request(`/marketing/segments/2.0/${encodeURIComponent(input.segmentId)}`, { method: "DELETE" });
|
|
1384
|
-
return { success: true };
|
|
1385
|
-
}
|
|
1386
|
-
});
|
|
1387
|
-
|
|
1388
|
-
//#endregion
|
|
1389
|
-
//#region src/operations/delete-sender.operation.ts
|
|
1390
|
-
const senderId$2 = z.number().int().positive();
|
|
1391
|
-
const deleteSenderOperation = new Operation({
|
|
1392
|
-
credentialSets: [sendgridCredentialSet],
|
|
1393
|
-
id: "sendgrid.delete-sender",
|
|
1394
|
-
name: "Delete Marketing Sender",
|
|
1395
|
-
description: "Delete a Marketing Campaigns sender.",
|
|
1396
|
-
input: z.object({ senderId: senderId$2 }),
|
|
1397
|
-
output: z.object({ success: z.boolean() }),
|
|
1398
|
-
needsApproval: true,
|
|
1399
|
-
run: async (input, context) => {
|
|
1400
|
-
const credentials = context.credentials.sendgrid;
|
|
1401
|
-
await createSendGridClient(credentials).request(`/marketing/senders/${input.senderId}`, { method: "DELETE" });
|
|
1402
|
-
return { success: true };
|
|
1403
|
-
}
|
|
1404
|
-
});
|
|
1405
|
-
|
|
1406
|
-
//#endregion
|
|
1407
|
-
//#region src/operations/delete-sender-identity.operation.ts
|
|
1408
|
-
const verifiedSenderId$3 = z.number().int().positive();
|
|
1409
|
-
z.object({
|
|
1410
|
-
nickname: z.string().min(1),
|
|
1411
|
-
from_email: sendgridEmailSchema,
|
|
1412
|
-
from_name: z.string().optional(),
|
|
1413
|
-
reply_to: sendgridEmailSchema.optional(),
|
|
1414
|
-
reply_to_name: z.string().optional(),
|
|
1415
|
-
address: z.string().optional(),
|
|
1416
|
-
address2: z.string().optional(),
|
|
1417
|
-
city: z.string().optional(),
|
|
1418
|
-
state: z.string().optional(),
|
|
1419
|
-
zip: z.string().optional(),
|
|
1420
|
-
country: z.string().optional()
|
|
1421
|
-
});
|
|
1422
|
-
const deleteSenderIdentityOperation = new Operation({
|
|
1423
|
-
credentialSets: [sendgridCredentialSet],
|
|
1424
|
-
id: "sendgrid.delete-sender-identity",
|
|
1425
|
-
name: "Delete Verified Sender Identity",
|
|
1426
|
-
description: "Delete a verified sender identity.",
|
|
1427
|
-
input: z.object({ id: verifiedSenderId$3 }),
|
|
1428
|
-
output: z.object({ success: z.boolean() }),
|
|
1429
|
-
needsApproval: true,
|
|
1430
|
-
run: async (input, context) => {
|
|
1431
|
-
const credentials = context.credentials.sendgrid;
|
|
1432
|
-
await createSendGridClient(credentials).request(`/verified_senders/${input.id}`, { method: "DELETE" });
|
|
1433
|
-
return { success: true };
|
|
1434
|
-
}
|
|
1435
|
-
});
|
|
1436
|
-
|
|
1437
|
-
//#endregion
|
|
1438
|
-
//#region src/operations/delete-single-send.operation.ts
|
|
1439
|
-
function base$7(path = "") {
|
|
1440
|
-
return `/marketing/singlesends${path}`;
|
|
1441
|
-
}
|
|
1442
|
-
z.object({
|
|
1443
|
-
name: z.string().min(1),
|
|
1444
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
1445
|
-
sendAt: z.iso.datetime().optional(),
|
|
1446
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
1447
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
1448
|
-
});
|
|
1449
|
-
const deleteSingleSendOperation = new Operation({
|
|
1450
|
-
credentialSets: [sendgridCredentialSet],
|
|
1451
|
-
id: "sendgrid.delete-single-send",
|
|
1452
|
-
name: "Delete Single Send",
|
|
1453
|
-
description: "Delete a Single Send by ID.",
|
|
1454
|
-
input: z.object({ id: sendgridIdSchema }),
|
|
1455
|
-
output: z.object({ success: z.boolean() }),
|
|
1456
|
-
needsApproval: true,
|
|
1457
|
-
run: async (input, context) => {
|
|
1458
|
-
const credentials = context.credentials.sendgrid;
|
|
1459
|
-
await createSendGridClient(credentials).request(base$7(`/${encodeURIComponent(input.id)}`), { method: "DELETE" });
|
|
1460
|
-
return { success: true };
|
|
1461
|
-
}
|
|
1462
|
-
});
|
|
1463
|
-
|
|
1464
|
-
//#endregion
|
|
1465
|
-
//#region src/operations/delete-spam-report.operation.ts
|
|
1466
|
-
z.number().int().nonnegative();
|
|
1467
|
-
z.object({
|
|
1468
|
-
startTime: z.number().int().optional(),
|
|
1469
|
-
endTime: z.number().int().optional()
|
|
1470
|
-
}).optional();
|
|
1471
|
-
const deleteSpamReportOperation = new Operation({
|
|
1472
|
-
credentialSets: [sendgridCredentialSet],
|
|
1473
|
-
id: "sendgrid.delete-spam-report",
|
|
1474
|
-
name: "Delete Spam Report",
|
|
1475
|
-
description: "Delete a spam-report suppression record.",
|
|
1476
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
1477
|
-
output: z.object({ success: z.boolean() }),
|
|
1478
|
-
needsApproval: true,
|
|
1479
|
-
run: async (input, context) => {
|
|
1480
|
-
const credentials = context.credentials.sendgrid;
|
|
1481
|
-
await createSendGridClient(credentials).request(`/suppression/spam_reports/${encodeURIComponent(input.email)}`, { method: "DELETE" });
|
|
1482
|
-
return { success: true };
|
|
1483
|
-
}
|
|
1484
|
-
});
|
|
1485
|
-
|
|
1486
|
-
//#endregion
|
|
1487
|
-
//#region src/operations/delete-spam-reports.operation.ts
|
|
1488
|
-
z.number().int().nonnegative();
|
|
1489
|
-
z.object({
|
|
1490
|
-
startTime: z.number().int().optional(),
|
|
1491
|
-
endTime: z.number().int().optional()
|
|
1492
|
-
}).optional();
|
|
1493
|
-
const deleteSpamReportsOperation = new Operation({
|
|
1494
|
-
credentialSets: [sendgridCredentialSet],
|
|
1495
|
-
id: "sendgrid.delete-spam-reports",
|
|
1496
|
-
name: "Delete Spam Reports",
|
|
1497
|
-
description: "Delete spam-report suppression records in bulk.",
|
|
1498
|
-
input: z.object({
|
|
1499
|
-
emails: z.array(sendgridEmailSchema).min(1).optional(),
|
|
1500
|
-
deleteAll: z.boolean().optional()
|
|
1501
|
-
}).refine((v) => v.emails !== void 0 !== (v.deleteAll === true), { message: "Provide either `emails` or `deleteAll: true`, not both." }),
|
|
1502
|
-
output: z.object({ success: z.boolean() }),
|
|
1503
|
-
needsApproval: true,
|
|
1504
|
-
run: async (input, context) => {
|
|
1505
|
-
const credentials = context.credentials.sendgrid;
|
|
1506
|
-
await createSendGridClient(credentials).request("/suppression/spam_reports", {
|
|
1507
|
-
method: "DELETE",
|
|
1508
|
-
body: omitUndefined({
|
|
1509
|
-
emails: input.emails,
|
|
1510
|
-
delete_all: input.deleteAll
|
|
1511
|
-
})
|
|
1512
|
-
});
|
|
1513
|
-
return { success: true };
|
|
1514
|
-
}
|
|
1515
|
-
});
|
|
1516
|
-
|
|
1517
|
-
//#endregion
|
|
1518
|
-
//#region src/operations/delete-suppression-from-group.operation.ts
|
|
1519
|
-
const groupId$5 = z.number().int().nonnegative();
|
|
1520
|
-
z.object({
|
|
1521
|
-
startTime: z.number().int().optional(),
|
|
1522
|
-
endTime: z.number().int().optional()
|
|
1523
|
-
}).optional();
|
|
1524
|
-
const deleteSuppressionFromGroupOperation = new Operation({
|
|
1525
|
-
credentialSets: [sendgridCredentialSet],
|
|
1526
|
-
id: "sendgrid.delete-suppression-from-group",
|
|
1527
|
-
name: "Delete Suppression from Group",
|
|
1528
|
-
description: "Remove an email from a suppression group.",
|
|
1529
|
-
input: z.object({
|
|
1530
|
-
groupId: groupId$5,
|
|
1531
|
-
email: sendgridEmailSchema
|
|
1532
|
-
}),
|
|
1533
|
-
output: z.object({ success: z.boolean() }),
|
|
1534
|
-
needsApproval: true,
|
|
1535
|
-
run: async (input, context) => {
|
|
1536
|
-
const credentials = context.credentials.sendgrid;
|
|
1537
|
-
await createSendGridClient(credentials).request(`/asm/groups/${input.groupId}/suppressions/${encodeURIComponent(input.email)}`, { method: "DELETE" });
|
|
1538
|
-
return { success: true };
|
|
1539
|
-
}
|
|
1540
|
-
});
|
|
1541
|
-
|
|
1542
|
-
//#endregion
|
|
1543
|
-
//#region src/operations/delete-suppression-group.operation.ts
|
|
1544
|
-
const groupId$4 = z.number().int().nonnegative();
|
|
1545
|
-
z.object({
|
|
1546
|
-
startTime: z.number().int().optional(),
|
|
1547
|
-
endTime: z.number().int().optional()
|
|
1548
|
-
}).optional();
|
|
1549
|
-
const deleteSuppressionGroupOperation = new Operation({
|
|
1550
|
-
credentialSets: [sendgridCredentialSet],
|
|
1551
|
-
id: "sendgrid.delete-suppression-group",
|
|
1552
|
-
name: "Delete Suppression Group",
|
|
1553
|
-
description: "Delete a suppression group.",
|
|
1554
|
-
input: z.object({ groupId: groupId$4 }),
|
|
1555
|
-
output: z.object({ success: z.boolean() }),
|
|
1556
|
-
needsApproval: true,
|
|
1557
|
-
run: async (input, context) => {
|
|
1558
|
-
const credentials = context.credentials.sendgrid;
|
|
1559
|
-
await createSendGridClient(credentials).request(`/asm/groups/${input.groupId}`, { method: "DELETE" });
|
|
1560
|
-
return { success: true };
|
|
1561
|
-
}
|
|
1562
|
-
});
|
|
1563
|
-
|
|
1564
|
-
//#endregion
|
|
1565
|
-
//#region src/operations/delete-template.operation.ts
|
|
1566
|
-
function tpl$7(path) {
|
|
1567
|
-
return `/templates${path}`;
|
|
1568
|
-
}
|
|
1569
|
-
const deleteTemplateOperation = new Operation({
|
|
1570
|
-
credentialSets: [sendgridCredentialSet],
|
|
1571
|
-
id: "sendgrid.delete-template",
|
|
1572
|
-
name: "Delete Transactional Template",
|
|
1573
|
-
description: "Delete a transactional template and all its versions.",
|
|
1574
|
-
input: z.object({ templateId: sendgridIdSchema }),
|
|
1575
|
-
output: z.object({ success: z.boolean() }),
|
|
1576
|
-
needsApproval: true,
|
|
1577
|
-
run: async (input, context) => {
|
|
1578
|
-
const credentials = context.credentials.sendgrid;
|
|
1579
|
-
await createSendGridClient(credentials).request(tpl$7(`/${encodeURIComponent(input.templateId)}`), { method: "DELETE" });
|
|
1580
|
-
return { success: true };
|
|
1581
|
-
}
|
|
1582
|
-
});
|
|
1583
|
-
|
|
1584
|
-
//#endregion
|
|
1585
|
-
//#region src/operations/delete-template-version.operation.ts
|
|
1586
|
-
function tpl$6(path) {
|
|
1587
|
-
return `/templates${path}`;
|
|
1588
|
-
}
|
|
1589
|
-
const deleteTemplateVersionOperation = new Operation({
|
|
1590
|
-
credentialSets: [sendgridCredentialSet],
|
|
1591
|
-
id: "sendgrid.delete-template-version",
|
|
1592
|
-
name: "Delete Template Version",
|
|
1593
|
-
description: "Delete a specific version of a transactional template.",
|
|
1594
|
-
input: z.object({
|
|
1595
|
-
templateId: sendgridIdSchema,
|
|
1596
|
-
versionId: sendgridIdSchema
|
|
1597
|
-
}),
|
|
1598
|
-
output: z.object({ success: z.boolean() }),
|
|
1599
|
-
needsApproval: true,
|
|
1600
|
-
run: async (input, context) => {
|
|
1601
|
-
const credentials = context.credentials.sendgrid;
|
|
1602
|
-
await createSendGridClient(credentials).request(tpl$6(`/${encodeURIComponent(input.templateId)}/versions/${encodeURIComponent(input.versionId)}`), { method: "DELETE" });
|
|
1603
|
-
return { success: true };
|
|
1604
|
-
}
|
|
1605
|
-
});
|
|
1606
|
-
|
|
1607
|
-
//#endregion
|
|
1608
|
-
//#region src/operations/duplicate-single-send.operation.ts
|
|
1609
|
-
function base$6(path = "") {
|
|
1610
|
-
return `/marketing/singlesends${path}`;
|
|
1611
|
-
}
|
|
1612
|
-
z.object({
|
|
1613
|
-
name: z.string().min(1),
|
|
1614
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
1615
|
-
sendAt: z.iso.datetime().optional(),
|
|
1616
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
1617
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
1618
|
-
});
|
|
1619
|
-
const duplicateSingleSendOperation = new Operation({
|
|
1620
|
-
credentialSets: [sendgridCredentialSet],
|
|
1621
|
-
id: "sendgrid.duplicate-single-send",
|
|
1622
|
-
name: "Duplicate Single Send",
|
|
1623
|
-
description: "Duplicate a Single Send campaign.",
|
|
1624
|
-
input: z.object({
|
|
1625
|
-
id: sendgridIdSchema,
|
|
1626
|
-
name: z.string().min(1).optional()
|
|
1627
|
-
}),
|
|
1628
|
-
output: sendgridSingleSendSchema,
|
|
1629
|
-
needsApproval: true,
|
|
1630
|
-
run: async (input, context) => {
|
|
1631
|
-
const credentials = context.credentials.sendgrid;
|
|
1632
|
-
const response = await createSendGridClient(credentials).request(base$6(`/${encodeURIComponent(input.id)}`), {
|
|
1633
|
-
method: "POST",
|
|
1634
|
-
body: omitUndefined({ name: input.name })
|
|
1635
|
-
});
|
|
1636
|
-
return sendgridSingleSendSchema.parse(response);
|
|
1637
|
-
}
|
|
1638
|
-
});
|
|
1639
|
-
|
|
1640
|
-
//#endregion
|
|
1641
|
-
//#region src/operations/duplicate-template.operation.ts
|
|
1642
|
-
function tpl$5(path) {
|
|
1643
|
-
return `/templates${path}`;
|
|
1644
|
-
}
|
|
1645
|
-
const duplicateTemplateOperation = new Operation({
|
|
1646
|
-
credentialSets: [sendgridCredentialSet],
|
|
1647
|
-
id: "sendgrid.duplicate-template",
|
|
1648
|
-
name: "Duplicate Transactional Template",
|
|
1649
|
-
description: "Duplicate a transactional template. Optionally rename the copy.",
|
|
1650
|
-
input: z.object({
|
|
1651
|
-
templateId: sendgridIdSchema,
|
|
1652
|
-
name: z.string().min(1).optional()
|
|
1653
|
-
}),
|
|
1654
|
-
output: sendgridTemplateSchema,
|
|
1655
|
-
needsApproval: true,
|
|
1656
|
-
run: async (input, context) => {
|
|
1657
|
-
const credentials = context.credentials.sendgrid;
|
|
1658
|
-
const response = await createSendGridClient(credentials).request(tpl$5(`/${encodeURIComponent(input.templateId)}`), {
|
|
1659
|
-
method: "POST",
|
|
1660
|
-
body: omitUndefined({ name: input.name })
|
|
1661
|
-
});
|
|
1662
|
-
return sendgridTemplateSchema.parse(response);
|
|
1663
|
-
}
|
|
1664
|
-
});
|
|
1665
|
-
|
|
1666
|
-
//#endregion
|
|
1667
|
-
//#region src/operations/filter-segments-by-parent-ids.operation.ts
|
|
1668
|
-
z.object({
|
|
1669
|
-
name: z.string().min(1),
|
|
1670
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
1671
|
-
queryDsl: z.string().min(1)
|
|
1672
|
-
});
|
|
1673
|
-
const filterSegmentsByParentsOperation = new Operation({
|
|
1674
|
-
credentialSets: [sendgridCredentialSet],
|
|
1675
|
-
id: "sendgrid.filter-segments-by-parent-ids",
|
|
1676
|
-
name: "Filter Segments by Parent List IDs",
|
|
1677
|
-
description: "List segments whose parent list matches any of the given IDs.",
|
|
1678
|
-
input: z.object({ parentListIds: z.array(sendgridIdSchema).min(1) }),
|
|
1679
|
-
output: sendgridSegmentListSchema,
|
|
1680
|
-
run: async (input, context) => {
|
|
1681
|
-
const credentials = context.credentials.sendgrid;
|
|
1682
|
-
const response = await createSendGridClient(credentials).request("/marketing/segments/2.0", { query: { parent_list_ids: input.parentListIds.join(",") } });
|
|
1683
|
-
return sendgridSegmentListSchema.parse(response ?? { results: [] });
|
|
1684
|
-
}
|
|
1685
|
-
});
|
|
1686
|
-
|
|
1687
|
-
//#endregion
|
|
1688
|
-
//#region src/operations/get-account-info.operation.ts
|
|
1689
|
-
const getAccountInfoOperation = new Operation({
|
|
1690
|
-
credentialSets: [sendgridCredentialSet],
|
|
1691
|
-
id: "sendgrid.get-account-info",
|
|
1692
|
-
name: "Get Account Info",
|
|
1693
|
-
description: "Retrieve account type + reputation score.",
|
|
1694
|
-
input: z.object({}).optional(),
|
|
1695
|
-
output: sendgridAccountInfoSchema,
|
|
1696
|
-
run: async (_input, context) => {
|
|
1697
|
-
const credentials = context.credentials.sendgrid;
|
|
1698
|
-
const response = await createSendGridClient(credentials).request("/user/account");
|
|
1699
|
-
return sendgridAccountInfoSchema.parse(response);
|
|
1700
|
-
}
|
|
1701
|
-
});
|
|
1702
|
-
|
|
1703
|
-
//#endregion
|
|
1704
|
-
//#region src/operations/get-alert.operation.ts
|
|
1705
|
-
const alertId$1 = z.number().int().positive();
|
|
1706
|
-
z.object({
|
|
1707
|
-
type: sendgridAlertTypeSchema,
|
|
1708
|
-
emailTo: sendgridEmailSchema,
|
|
1709
|
-
frequency: sendgridAlertFrequencySchema.optional(),
|
|
1710
|
-
percentage: z.number().int().min(1).max(100).optional()
|
|
1711
|
-
});
|
|
1712
|
-
const getAlertOperation = new Operation({
|
|
1713
|
-
credentialSets: [sendgridCredentialSet],
|
|
1714
|
-
id: "sendgrid.get-alert",
|
|
1715
|
-
name: "Get Alert",
|
|
1716
|
-
description: "Retrieve a single alert by ID.",
|
|
1717
|
-
input: z.object({ alertId: alertId$1 }),
|
|
1718
|
-
output: sendgridAlertSchema,
|
|
1719
|
-
run: async (input, context) => {
|
|
1720
|
-
const credentials = context.credentials.sendgrid;
|
|
1721
|
-
const response = await createSendGridClient(credentials).request(`/alerts/${input.alertId}`);
|
|
1722
|
-
return sendgridAlertSchema.parse(response);
|
|
1723
|
-
}
|
|
1724
|
-
});
|
|
1725
|
-
|
|
1726
|
-
//#endregion
|
|
1727
|
-
//#region src/operations/get-api-key.operation.ts
|
|
1728
|
-
const getApiKeyOperation = new Operation({
|
|
1729
|
-
credentialSets: [sendgridCredentialSet],
|
|
1730
|
-
id: "sendgrid.get-api-key",
|
|
1731
|
-
name: "Get API Key",
|
|
1732
|
-
description: "Retrieve an API key record by ID (the secret value is never returned).",
|
|
1733
|
-
input: z.object({ apiKeyId: sendgridIdSchema }),
|
|
1734
|
-
output: sendgridApiKeySchema,
|
|
1735
|
-
run: async (input, context) => {
|
|
1736
|
-
const credentials = context.credentials.sendgrid;
|
|
1737
|
-
const response = await createSendGridClient(credentials).request(`/api_keys/${encodeURIComponent(input.apiKeyId)}`);
|
|
1738
|
-
return sendgridApiKeySchema.parse(response);
|
|
1739
|
-
}
|
|
1740
|
-
});
|
|
1741
|
-
|
|
1742
|
-
//#endregion
|
|
1743
|
-
//#region src/operations/get-authenticated-domain.operation.ts
|
|
1744
|
-
const domainId$1 = z.number().int().positive();
|
|
1745
|
-
const getAuthenticatedDomainOperation = new Operation({
|
|
1746
|
-
credentialSets: [sendgridCredentialSet],
|
|
1747
|
-
id: "sendgrid.get-authenticated-domain",
|
|
1748
|
-
name: "Get Authenticated Domain",
|
|
1749
|
-
description: "Retrieve a single authenticated-domain record including its DNS rows.",
|
|
1750
|
-
input: z.object({ domainId: domainId$1 }),
|
|
1751
|
-
output: sendgridAuthenticatedDomainSchema,
|
|
1752
|
-
run: async (input, context) => {
|
|
1753
|
-
const credentials = context.credentials.sendgrid;
|
|
1754
|
-
const response = await createSendGridClient(credentials).request(`/whitelabel/domains/${input.domainId}`);
|
|
1755
|
-
return sendgridAuthenticatedDomainSchema.parse(response);
|
|
1756
|
-
}
|
|
1757
|
-
});
|
|
1758
|
-
|
|
1759
|
-
//#endregion
|
|
1760
|
-
//#region src/operations/get-block.operation.ts
|
|
1761
|
-
z.number().int().nonnegative();
|
|
1762
|
-
z.object({
|
|
1763
|
-
startTime: z.number().int().optional(),
|
|
1764
|
-
endTime: z.number().int().optional()
|
|
1765
|
-
}).optional();
|
|
1766
|
-
const getBlockOperation = new Operation({
|
|
1767
|
-
credentialSets: [sendgridCredentialSet],
|
|
1768
|
-
id: "sendgrid.get-block",
|
|
1769
|
-
name: "Get Block",
|
|
1770
|
-
description: "Retrieve block records for a specific email.",
|
|
1771
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
1772
|
-
output: sendgridBlockListSchema,
|
|
1773
|
-
run: async (input, context) => {
|
|
1774
|
-
const credentials = context.credentials.sendgrid;
|
|
1775
|
-
const response = await createSendGridClient(credentials).request(`/suppression/blocks/${encodeURIComponent(input.email)}`);
|
|
1776
|
-
const arr = Array.isArray(response) ? response : response !== void 0 ? [response] : [];
|
|
1777
|
-
return sendgridBlockListSchema.parse(arr);
|
|
1778
|
-
}
|
|
1779
|
-
});
|
|
1780
|
-
|
|
1781
|
-
//#endregion
|
|
1782
|
-
//#region src/operations/get-bounce.operation.ts
|
|
1783
|
-
z.number().int().nonnegative();
|
|
1784
|
-
z.object({
|
|
1785
|
-
startTime: z.number().int().optional(),
|
|
1786
|
-
endTime: z.number().int().optional()
|
|
1787
|
-
}).optional();
|
|
1788
|
-
const getBounceOperation = new Operation({
|
|
1789
|
-
credentialSets: [sendgridCredentialSet],
|
|
1790
|
-
id: "sendgrid.get-bounce",
|
|
1791
|
-
name: "Get Bounce",
|
|
1792
|
-
description: "Return the bounce record(s) for a specific email.",
|
|
1793
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
1794
|
-
output: sendgridBounceListSchema,
|
|
1795
|
-
run: async (input, context) => {
|
|
1796
|
-
const credentials = context.credentials.sendgrid;
|
|
1797
|
-
const response = await createSendGridClient(credentials).request(`/suppression/bounces/${encodeURIComponent(input.email)}`);
|
|
1798
|
-
const arr = Array.isArray(response) ? response : response !== void 0 ? [response] : [];
|
|
1799
|
-
return sendgridBounceListSchema.parse(arr);
|
|
1800
|
-
}
|
|
1801
|
-
});
|
|
1802
|
-
|
|
1803
|
-
//#endregion
|
|
1804
|
-
//#region src/operations/get-bulk-email-validation-job.operation.ts
|
|
1805
|
-
const getBulkEmailValidationJobOperation = new Operation({
|
|
1806
|
-
credentialSets: [sendgridCredentialSet],
|
|
1807
|
-
id: "sendgrid.get-bulk-email-validation-job",
|
|
1808
|
-
name: "Get Bulk Email Validation Job",
|
|
1809
|
-
description: "Retrieve status and results for a bulk validation job.",
|
|
1810
|
-
input: z.object({ jobId: sendgridIdSchema }),
|
|
1811
|
-
output: sendgridBulkEmailValidationJobSchema,
|
|
1812
|
-
run: async (input, context) => {
|
|
1813
|
-
const credentials = context.credentials.sendgrid;
|
|
1814
|
-
const response = await createSendGridClient(credentials).request(`/validations/email/jobs/${encodeURIComponent(input.jobId)}`);
|
|
1815
|
-
return sendgridBulkEmailValidationJobSchema.parse(response);
|
|
1816
|
-
}
|
|
1817
|
-
});
|
|
1818
|
-
|
|
1819
|
-
//#endregion
|
|
1820
|
-
//#region src/operations/get-category-stats.operation.ts
|
|
1821
|
-
const statsRange$2 = z.object({
|
|
1822
|
-
startDate: z.iso.date(),
|
|
1823
|
-
endDate: z.iso.date().optional(),
|
|
1824
|
-
aggregatedBy: sendgridAggregationSchema.optional()
|
|
1825
|
-
});
|
|
1826
|
-
function mapStatsQuery$2(input) {
|
|
1827
|
-
return {
|
|
1828
|
-
start_date: input.startDate,
|
|
1829
|
-
end_date: input.endDate,
|
|
1830
|
-
aggregated_by: input.aggregatedBy
|
|
1831
|
-
};
|
|
1832
|
-
}
|
|
1833
|
-
const getCategoryStatsOperation = new Operation({
|
|
1834
|
-
credentialSets: [sendgridCredentialSet],
|
|
1835
|
-
id: "sendgrid.get-category-stats",
|
|
1836
|
-
name: "Get Category Stats",
|
|
1837
|
-
description: "Return email stats broken down by category.",
|
|
1838
|
-
input: statsRange$2.extend({ categories: z.array(z.string().min(1)).min(1).max(10) }),
|
|
1839
|
-
output: sendgridCategoryStatsSchema,
|
|
1840
|
-
run: async (input, context) => {
|
|
1841
|
-
const credentials = context.credentials.sendgrid;
|
|
1842
|
-
const response = await createSendGridClient(credentials).request("/categories/stats", { query: omitUndefined({
|
|
1843
|
-
...mapStatsQuery$2(input),
|
|
1844
|
-
categories: input.categories.join(",")
|
|
1845
|
-
}) });
|
|
1846
|
-
return sendgridCategoryStatsSchema.parse(response ?? []);
|
|
1847
|
-
}
|
|
1848
|
-
});
|
|
1849
|
-
|
|
1850
|
-
//#endregion
|
|
1851
|
-
//#region src/operations/get-contact.operation.ts
|
|
1852
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1853
|
-
const getContactOperation = new Operation({
|
|
1854
|
-
credentialSets: [sendgridCredentialSet],
|
|
1855
|
-
id: "sendgrid.get-contact",
|
|
1856
|
-
name: "Get Contact by ID",
|
|
1857
|
-
description: "Retrieve a single contact by its SendGrid contact ID.",
|
|
1858
|
-
input: z.object({ contactId: sendgridIdSchema }),
|
|
1859
|
-
output: sendgridContactSchema,
|
|
1860
|
-
run: async (input, context) => {
|
|
1861
|
-
const credentials = context.credentials.sendgrid;
|
|
1862
|
-
const response = await createSendGridClient(credentials).request(`/marketing/contacts/${encodeURIComponent(input.contactId)}`);
|
|
1863
|
-
return sendgridContactSchema.parse(response);
|
|
1864
|
-
}
|
|
1865
|
-
});
|
|
1866
|
-
|
|
1867
|
-
//#endregion
|
|
1868
|
-
//#region src/operations/get-contact-count.operation.ts
|
|
1869
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1870
|
-
const getContactCountOperation = new Operation({
|
|
1871
|
-
credentialSets: [sendgridCredentialSet],
|
|
1872
|
-
id: "sendgrid.get-contact-count",
|
|
1873
|
-
name: "Get Total Contact Count",
|
|
1874
|
-
description: "Return the total + billable contact count for the account.",
|
|
1875
|
-
input: z.object({}).optional(),
|
|
1876
|
-
output: sendgridContactCountSchema,
|
|
1877
|
-
run: async (_input, context) => {
|
|
1878
|
-
const credentials = context.credentials.sendgrid;
|
|
1879
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/count");
|
|
1880
|
-
return sendgridContactCountSchema.parse(response);
|
|
1881
|
-
}
|
|
1882
|
-
});
|
|
1883
|
-
|
|
1884
|
-
//#endregion
|
|
1885
|
-
//#region src/operations/get-contact-export-status.operation.ts
|
|
1886
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1887
|
-
const getContactExportStatusOperation = new Operation({
|
|
1888
|
-
credentialSets: [sendgridCredentialSet],
|
|
1889
|
-
id: "sendgrid.get-contact-export-status",
|
|
1890
|
-
name: "Get Contact Export Status",
|
|
1891
|
-
description: "Retrieve status (and signed CSV URLs when ready) for a contact-export job.",
|
|
1892
|
-
input: z.object({ exportId: sendgridIdSchema }),
|
|
1893
|
-
output: sendgridContactExportSchema,
|
|
1894
|
-
run: async (input, context) => {
|
|
1895
|
-
const credentials = context.credentials.sendgrid;
|
|
1896
|
-
const response = await createSendGridClient(credentials).request(`/marketing/contacts/exports/${encodeURIComponent(input.exportId)}`);
|
|
1897
|
-
return sendgridContactExportSchema.parse(response);
|
|
1898
|
-
}
|
|
1899
|
-
});
|
|
1900
|
-
|
|
1901
|
-
//#endregion
|
|
1902
|
-
//#region src/operations/get-contact-import-status.operation.ts
|
|
1903
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1904
|
-
const getContactImportStatusOperation = new Operation({
|
|
1905
|
-
credentialSets: [sendgridCredentialSet],
|
|
1906
|
-
id: "sendgrid.get-contact-import-status",
|
|
1907
|
-
name: "Get Contact Import Status",
|
|
1908
|
-
description: "Retrieve status for a contact-import job.",
|
|
1909
|
-
input: z.object({ importId: sendgridIdSchema }),
|
|
1910
|
-
output: sendgridContactImportSchema,
|
|
1911
|
-
run: async (input, context) => {
|
|
1912
|
-
const credentials = context.credentials.sendgrid;
|
|
1913
|
-
const response = await createSendGridClient(credentials).request(`/marketing/contacts/imports/${encodeURIComponent(input.importId)}`);
|
|
1914
|
-
return sendgridContactImportSchema.parse(response);
|
|
1915
|
-
}
|
|
1916
|
-
});
|
|
1917
|
-
|
|
1918
|
-
//#endregion
|
|
1919
|
-
//#region src/operations/get-contact-sample.operation.ts
|
|
1920
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1921
|
-
const getContactSampleOperation = new Operation({
|
|
1922
|
-
credentialSets: [sendgridCredentialSet],
|
|
1923
|
-
id: "sendgrid.get-contact-sample",
|
|
1924
|
-
name: "Get Sample Contacts",
|
|
1925
|
-
description: "Return up to 50 sample contacts for inspection (not a full list).",
|
|
1926
|
-
input: z.object({}).optional(),
|
|
1927
|
-
output: sendgridContactSearchResultSchema,
|
|
1928
|
-
run: async (_input, context) => {
|
|
1929
|
-
const credentials = context.credentials.sendgrid;
|
|
1930
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts");
|
|
1931
|
-
return sendgridContactSearchResultSchema.parse(response ?? { result: [] });
|
|
1932
|
-
}
|
|
1933
|
-
});
|
|
1934
|
-
|
|
1935
|
-
//#endregion
|
|
1936
|
-
//#region src/operations/get-contacts-by-emails.operation.ts
|
|
1937
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1938
|
-
const getContactsByEmailsOperation = new Operation({
|
|
1939
|
-
credentialSets: [sendgridCredentialSet],
|
|
1940
|
-
id: "sendgrid.get-contacts-by-emails",
|
|
1941
|
-
name: "Get Contacts by Email Addresses",
|
|
1942
|
-
description: "Find contacts by email (up to 100 per request).",
|
|
1943
|
-
input: z.object({ emails: z.array(sendgridEmailSchema).min(1).max(100) }),
|
|
1944
|
-
output: sendgridContactSearchResultSchema,
|
|
1945
|
-
run: async (input, context) => {
|
|
1946
|
-
const credentials = context.credentials.sendgrid;
|
|
1947
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/search/emails", {
|
|
1948
|
-
method: "POST",
|
|
1949
|
-
body: { emails: input.emails }
|
|
1950
|
-
});
|
|
1951
|
-
return sendgridContactSearchResultSchema.parse({ result: Array.isArray(response?.result) ? response.result : Object.values(response?.result ?? {}).map((entry) => entry.contact ?? entry) });
|
|
1952
|
-
}
|
|
1953
|
-
});
|
|
1954
|
-
|
|
1955
|
-
//#endregion
|
|
1956
|
-
//#region src/operations/get-contacts-by-identifiers.operation.ts
|
|
1957
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
1958
|
-
const getContactsByIdentifiersOperation = new Operation({
|
|
1959
|
-
credentialSets: [sendgridCredentialSet],
|
|
1960
|
-
id: "sendgrid.get-contacts-by-identifiers",
|
|
1961
|
-
name: "Get Contacts by Identifiers",
|
|
1962
|
-
description: "Find contacts by alternate identifiers (e.g. phone, WhatsApp).",
|
|
1963
|
-
input: z.object({
|
|
1964
|
-
identifierType: z.enum([
|
|
1965
|
-
"phone_number_id",
|
|
1966
|
-
"external_id",
|
|
1967
|
-
"anonymous_id",
|
|
1968
|
-
"whatsapp"
|
|
1969
|
-
]),
|
|
1970
|
-
identifiers: z.array(z.string().min(1)).min(1).max(100)
|
|
1971
|
-
}),
|
|
1972
|
-
output: sendgridContactSearchResultSchema,
|
|
1973
|
-
run: async (input, context) => {
|
|
1974
|
-
const credentials = context.credentials.sendgrid;
|
|
1975
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/search/identifiers", {
|
|
1976
|
-
method: "POST",
|
|
1977
|
-
body: {
|
|
1978
|
-
identifier_type: input.identifierType,
|
|
1979
|
-
identifiers: input.identifiers
|
|
1980
|
-
}
|
|
1981
|
-
});
|
|
1982
|
-
return sendgridContactSearchResultSchema.parse(response ?? { result: [] });
|
|
1983
|
-
}
|
|
1984
|
-
});
|
|
1985
|
-
|
|
1986
|
-
//#endregion
|
|
1987
|
-
//#region src/operations/get-contacts-by-ids.operation.ts
|
|
1988
|
-
const contactIdsSchema = z.array(sendgridIdSchema).min(1).max(100);
|
|
1989
|
-
const getContactsByIdsOperation = new Operation({
|
|
1990
|
-
credentialSets: [sendgridCredentialSet],
|
|
1991
|
-
id: "sendgrid.get-contacts-by-ids",
|
|
1992
|
-
name: "Get Batched Contacts by IDs",
|
|
1993
|
-
description: "Fetch up to 100 contacts in a single batched request.",
|
|
1994
|
-
input: z.object({ ids: contactIdsSchema }),
|
|
1995
|
-
output: sendgridContactBatchResultSchema,
|
|
1996
|
-
run: async (input, context) => {
|
|
1997
|
-
const credentials = context.credentials.sendgrid;
|
|
1998
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/batch", {
|
|
1999
|
-
method: "POST",
|
|
2000
|
-
body: { ids: input.ids }
|
|
2001
|
-
});
|
|
2002
|
-
return sendgridContactBatchResultSchema.parse(response ?? { result: [] });
|
|
2003
|
-
}
|
|
2004
|
-
});
|
|
2005
|
-
|
|
2006
|
-
//#endregion
|
|
2007
|
-
//#region src/operations/get-credit-balance.operation.ts
|
|
2008
|
-
const getCreditBalanceOperation = new Operation({
|
|
2009
|
-
credentialSets: [sendgridCredentialSet],
|
|
2010
|
-
id: "sendgrid.get-credit-balance",
|
|
2011
|
-
name: "Get Credit Balance",
|
|
2012
|
-
description: "Retrieve the current SendGrid credit balance for the account.",
|
|
2013
|
-
input: z.object({}).optional(),
|
|
2014
|
-
output: sendgridCreditBalanceSchema,
|
|
2015
|
-
run: async (_input, context) => {
|
|
2016
|
-
const credentials = context.credentials.sendgrid;
|
|
2017
|
-
const response = await createSendGridClient(credentials).request("/user/credits");
|
|
2018
|
-
return sendgridCreditBalanceSchema.parse(response);
|
|
2019
|
-
}
|
|
2020
|
-
});
|
|
2021
|
-
|
|
2022
|
-
//#endregion
|
|
2023
|
-
//#region src/operations/get-engagement-quality-scores.operation.ts
|
|
2024
|
-
z.object({
|
|
2025
|
-
startDate: z.iso.date(),
|
|
2026
|
-
endDate: z.iso.date().optional(),
|
|
2027
|
-
aggregatedBy: sendgridAggregationSchema.optional()
|
|
2028
|
-
});
|
|
2029
|
-
const getEngagementQualityScoresOperation = new Operation({
|
|
2030
|
-
credentialSets: [sendgridCredentialSet],
|
|
2031
|
-
id: "sendgrid.get-engagement-quality-scores",
|
|
2032
|
-
name: "Get Engagement Quality Scores",
|
|
2033
|
-
description: "Return engagement-quality (EQ) scores for the account. Plan-gated — requires Pro+.",
|
|
2034
|
-
input: z.object({
|
|
2035
|
-
from: z.iso.date(),
|
|
2036
|
-
to: z.iso.date()
|
|
2037
|
-
}),
|
|
2038
|
-
output: sendgridEngagementQualitySchema,
|
|
2039
|
-
run: async (input, context) => {
|
|
2040
|
-
const credentials = context.credentials.sendgrid;
|
|
2041
|
-
const response = await createSendGridClient(credentials).request("/user/eq", { query: {
|
|
2042
|
-
from: input.from,
|
|
2043
|
-
to: input.to
|
|
2044
|
-
} });
|
|
2045
|
-
return sendgridEngagementQualitySchema.parse(response);
|
|
2046
|
-
}
|
|
2047
|
-
});
|
|
2048
|
-
|
|
2049
|
-
//#endregion
|
|
2050
|
-
//#region src/operations/get-event-webhook.operation.ts
|
|
2051
|
-
const webhookId$1 = z.string().min(1);
|
|
2052
|
-
z.object({
|
|
2053
|
-
friendly_name: z.string().optional(),
|
|
2054
|
-
enabled: z.boolean().optional(),
|
|
2055
|
-
url: z.string().url(),
|
|
2056
|
-
group_resubscribe: z.boolean().optional(),
|
|
2057
|
-
delivered: z.boolean().optional(),
|
|
2058
|
-
group_unsubscribe: z.boolean().optional(),
|
|
2059
|
-
spam_report: z.boolean().optional(),
|
|
2060
|
-
bounce: z.boolean().optional(),
|
|
2061
|
-
deferred: z.boolean().optional(),
|
|
2062
|
-
unsubscribe: z.boolean().optional(),
|
|
2063
|
-
processed: z.boolean().optional(),
|
|
2064
|
-
open: z.boolean().optional(),
|
|
2065
|
-
click: z.boolean().optional(),
|
|
2066
|
-
dropped: z.boolean().optional(),
|
|
2067
|
-
oauth_client_id: z.string().optional(),
|
|
2068
|
-
oauth_client_secret: z.string().optional(),
|
|
2069
|
-
oauth_token_url: z.string().optional()
|
|
2070
|
-
});
|
|
2071
|
-
const getEventWebhookOperation = new Operation({
|
|
2072
|
-
credentialSets: [sendgridCredentialSet],
|
|
2073
|
-
id: "sendgrid.get-event-webhook",
|
|
2074
|
-
name: "Get Event Webhook",
|
|
2075
|
-
description: "Retrieve a single Event Webhook endpoint by ID.",
|
|
2076
|
-
input: z.object({ webhookId: webhookId$1 }),
|
|
2077
|
-
output: sendgridEventWebhookSettingsSchema,
|
|
2078
|
-
run: async (input, context) => {
|
|
2079
|
-
const credentials = context.credentials.sendgrid;
|
|
2080
|
-
const response = await createSendGridClient(credentials).request(`/user/webhooks/event/settings/${encodeURIComponent(input.webhookId)}`);
|
|
2081
|
-
return sendgridEventWebhookSettingsSchema.parse(response);
|
|
2082
|
-
}
|
|
2083
|
-
});
|
|
2084
|
-
|
|
2085
|
-
//#endregion
|
|
2086
|
-
//#region src/operations/get-global-email-stats.operation.ts
|
|
2087
|
-
const statsRange$1 = z.object({
|
|
2088
|
-
startDate: z.iso.date(),
|
|
2089
|
-
endDate: z.iso.date().optional(),
|
|
2090
|
-
aggregatedBy: sendgridAggregationSchema.optional()
|
|
2091
|
-
});
|
|
2092
|
-
function mapStatsQuery$1(input) {
|
|
2093
|
-
return {
|
|
2094
|
-
start_date: input.startDate,
|
|
2095
|
-
end_date: input.endDate,
|
|
2096
|
-
aggregated_by: input.aggregatedBy
|
|
2097
|
-
};
|
|
2098
|
-
}
|
|
2099
|
-
const getGlobalEmailStatsOperation = new Operation({
|
|
2100
|
-
credentialSets: [sendgridCredentialSet],
|
|
2101
|
-
id: "sendgrid.get-global-email-stats",
|
|
2102
|
-
name: "Get Global Email Statistics",
|
|
2103
|
-
description: "Return aggregated global email stats over a date range.",
|
|
2104
|
-
input: statsRange$1,
|
|
2105
|
-
output: sendgridStatBucketListSchema,
|
|
2106
|
-
run: async (input, context) => {
|
|
2107
|
-
const credentials = context.credentials.sendgrid;
|
|
2108
|
-
const response = await createSendGridClient(credentials).request("/stats", { query: omitUndefined(mapStatsQuery$1(input)) });
|
|
2109
|
-
return sendgridStatBucketListSchema.parse(response ?? []);
|
|
2110
|
-
}
|
|
2111
|
-
});
|
|
2112
|
-
|
|
2113
|
-
//#endregion
|
|
2114
|
-
//#region src/operations/get-global-suppression.operation.ts
|
|
2115
|
-
z.number().int().nonnegative();
|
|
2116
|
-
z.object({
|
|
2117
|
-
startTime: z.number().int().optional(),
|
|
2118
|
-
endTime: z.number().int().optional()
|
|
2119
|
-
}).optional();
|
|
2120
|
-
const getGlobalSuppressionOperation = new Operation({
|
|
2121
|
-
credentialSets: [sendgridCredentialSet],
|
|
2122
|
-
id: "sendgrid.get-global-suppression",
|
|
2123
|
-
name: "Get Global Suppression",
|
|
2124
|
-
description: "Check whether an email is on the global suppression list.",
|
|
2125
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
2126
|
-
output: sendgridGlobalSuppressionSchema,
|
|
2127
|
-
run: async (input, context) => {
|
|
2128
|
-
const credentials = context.credentials.sendgrid;
|
|
2129
|
-
const response = await createSendGridClient(credentials).request(`/asm/suppressions/global/${encodeURIComponent(input.email)}`);
|
|
2130
|
-
return sendgridGlobalSuppressionSchema.parse(response ?? { recipient_email: input.email });
|
|
2131
|
-
}
|
|
2132
|
-
});
|
|
2133
|
-
|
|
2134
|
-
//#endregion
|
|
2135
|
-
//#region src/operations/get-invalid-email.operation.ts
|
|
2136
|
-
z.number().int().nonnegative();
|
|
2137
|
-
z.object({
|
|
2138
|
-
startTime: z.number().int().optional(),
|
|
2139
|
-
endTime: z.number().int().optional()
|
|
2140
|
-
}).optional();
|
|
2141
|
-
const getInvalidEmailOperation = new Operation({
|
|
2142
|
-
credentialSets: [sendgridCredentialSet],
|
|
2143
|
-
id: "sendgrid.get-invalid-email",
|
|
2144
|
-
name: "Get Invalid Email",
|
|
2145
|
-
description: "Retrieve invalid-email suppression records for a specific address.",
|
|
2146
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
2147
|
-
output: sendgridInvalidEmailListSchema,
|
|
2148
|
-
run: async (input, context) => {
|
|
2149
|
-
const credentials = context.credentials.sendgrid;
|
|
2150
|
-
const response = await createSendGridClient(credentials).request(`/suppression/invalid_emails/${encodeURIComponent(input.email)}`);
|
|
2151
|
-
const arr = Array.isArray(response) ? response : response !== void 0 ? [response] : [];
|
|
2152
|
-
return sendgridInvalidEmailListSchema.parse(arr);
|
|
2153
|
-
}
|
|
2154
|
-
});
|
|
2155
|
-
|
|
2156
|
-
//#endregion
|
|
2157
|
-
//#region src/operations/get-list.operation.ts
|
|
2158
|
-
const getListOperation = new Operation({
|
|
2159
|
-
credentialSets: [sendgridCredentialSet],
|
|
2160
|
-
id: "sendgrid.get-list",
|
|
2161
|
-
name: "Get Marketing List",
|
|
2162
|
-
description: "Retrieve a v3 marketing list by ID.",
|
|
2163
|
-
input: z.object({
|
|
2164
|
-
listId: sendgridIdSchema,
|
|
2165
|
-
contactSampleSize: z.number().int().min(0).max(5).optional()
|
|
2166
|
-
}),
|
|
2167
|
-
output: sendgridListSchema,
|
|
2168
|
-
run: async (input, context) => {
|
|
2169
|
-
const credentials = context.credentials.sendgrid;
|
|
2170
|
-
const response = await createSendGridClient(credentials).request(`/marketing/lists/${encodeURIComponent(input.listId)}`, { query: omitUndefined({ contact_sample: input.contactSampleSize }) });
|
|
2171
|
-
return sendgridListSchema.parse(response);
|
|
2172
|
-
}
|
|
2173
|
-
});
|
|
2174
|
-
|
|
2175
|
-
//#endregion
|
|
2176
|
-
//#region src/operations/get-list-contact-count.operation.ts
|
|
2177
|
-
const getListContactCountOperation = new Operation({
|
|
2178
|
-
credentialSets: [sendgridCredentialSet],
|
|
2179
|
-
id: "sendgrid.get-list-contact-count",
|
|
2180
|
-
name: "Get List Contact Count",
|
|
2181
|
-
description: "Return the number of contacts on a marketing list.",
|
|
2182
|
-
input: z.object({ listId: sendgridIdSchema }),
|
|
2183
|
-
output: sendgridListContactCountSchema,
|
|
2184
|
-
run: async (input, context) => {
|
|
2185
|
-
const credentials = context.credentials.sendgrid;
|
|
2186
|
-
const response = await createSendGridClient(credentials).request(`/marketing/lists/${encodeURIComponent(input.listId)}/contacts/count`);
|
|
2187
|
-
return sendgridListContactCountSchema.parse(response);
|
|
2188
|
-
}
|
|
2189
|
-
});
|
|
2190
|
-
|
|
2191
|
-
//#endregion
|
|
2192
|
-
//#region src/operations/get-parse-setting.operation.ts
|
|
2193
|
-
const hostname$3 = z.string().min(1);
|
|
2194
|
-
z.object({
|
|
2195
|
-
url: z.string().url(),
|
|
2196
|
-
hostname: hostname$3,
|
|
2197
|
-
spamCheck: z.boolean().optional(),
|
|
2198
|
-
sendRaw: z.boolean().optional()
|
|
2199
|
-
});
|
|
2200
|
-
const getParseSettingOperation = new Operation({
|
|
2201
|
-
credentialSets: [sendgridCredentialSet],
|
|
2202
|
-
id: "sendgrid.get-parse-setting",
|
|
2203
|
-
name: "Get Inbound Parse Setting",
|
|
2204
|
-
description: "Retrieve a single Inbound Parse configuration.",
|
|
2205
|
-
input: z.object({ hostname: hostname$3 }),
|
|
2206
|
-
output: sendgridParseSettingSchema,
|
|
2207
|
-
run: async (input, context) => {
|
|
2208
|
-
const credentials = context.credentials.sendgrid;
|
|
2209
|
-
const response = await createSendGridClient(credentials).request(`/user/webhooks/parse/settings/${encodeURIComponent(input.hostname)}`);
|
|
2210
|
-
return sendgridParseSettingSchema.parse(response);
|
|
2211
|
-
}
|
|
2212
|
-
});
|
|
2213
|
-
|
|
2214
|
-
//#endregion
|
|
2215
|
-
//#region src/operations/get-parse-stats.operation.ts
|
|
2216
|
-
const hostname$2 = z.string().min(1);
|
|
2217
|
-
z.object({
|
|
2218
|
-
url: z.string().url(),
|
|
2219
|
-
hostname: hostname$2,
|
|
2220
|
-
spamCheck: z.boolean().optional(),
|
|
2221
|
-
sendRaw: z.boolean().optional()
|
|
2222
|
-
});
|
|
2223
|
-
const getParseStatsOperation = new Operation({
|
|
2224
|
-
credentialSets: [sendgridCredentialSet],
|
|
2225
|
-
id: "sendgrid.get-parse-stats",
|
|
2226
|
-
name: "Get Inbound Parse Stats",
|
|
2227
|
-
description: "Retrieve Inbound Parse statistics.",
|
|
2228
|
-
input: z.object({
|
|
2229
|
-
startDate: z.iso.date().optional(),
|
|
2230
|
-
endDate: z.iso.date().optional(),
|
|
2231
|
-
aggregatedBy: z.enum([
|
|
2232
|
-
"day",
|
|
2233
|
-
"week",
|
|
2234
|
-
"month"
|
|
2235
|
-
]).optional(),
|
|
2236
|
-
limit: z.number().int().positive().max(500).optional(),
|
|
2237
|
-
offset: z.number().int().nonnegative().optional()
|
|
2238
|
-
}).optional(),
|
|
2239
|
-
output: sendgridParseStatsSchema,
|
|
2240
|
-
run: async (input, context) => {
|
|
2241
|
-
const credentials = context.credentials.sendgrid;
|
|
2242
|
-
const response = await createSendGridClient(credentials).request("/user/webhooks/parse/stats", { query: omitUndefined({
|
|
2243
|
-
start_date: input?.startDate,
|
|
2244
|
-
end_date: input?.endDate,
|
|
2245
|
-
aggregated_by: input?.aggregatedBy,
|
|
2246
|
-
limit: input?.limit,
|
|
2247
|
-
offset: input?.offset
|
|
2248
|
-
}) });
|
|
2249
|
-
return sendgridParseStatsSchema.parse(response ?? []);
|
|
2250
|
-
}
|
|
2251
|
-
});
|
|
2252
|
-
|
|
2253
|
-
//#endregion
|
|
2254
|
-
//#region src/operations/get-scheduled-send.operation.ts
|
|
2255
|
-
const getScheduledSendOperation = new Operation({
|
|
2256
|
-
credentialSets: [sendgridCredentialSet],
|
|
2257
|
-
id: "sendgrid.get-scheduled-send",
|
|
2258
|
-
name: "Get Scheduled Send",
|
|
2259
|
-
description: "Retrieve the current `cancel`/`pause` state of a batch ID.",
|
|
2260
|
-
input: z.object({ batchId: sendgridIdSchema }),
|
|
2261
|
-
output: sendgridScheduledSendSchema,
|
|
2262
|
-
run: async (input, context) => {
|
|
2263
|
-
const credentials = context.credentials.sendgrid;
|
|
2264
|
-
const response = await createSendGridClient(credentials).request(`/user/scheduled_sends/${encodeURIComponent(input.batchId)}`);
|
|
2265
|
-
return sendgridScheduledSendSchema.parse(response);
|
|
2266
|
-
}
|
|
2267
|
-
});
|
|
2268
|
-
|
|
2269
|
-
//#endregion
|
|
2270
|
-
//#region src/operations/get-segment.operation.ts
|
|
2271
|
-
z.object({
|
|
2272
|
-
name: z.string().min(1),
|
|
2273
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
2274
|
-
queryDsl: z.string().min(1)
|
|
2275
|
-
});
|
|
2276
|
-
const getSegmentOperation = new Operation({
|
|
2277
|
-
credentialSets: [sendgridCredentialSet],
|
|
2278
|
-
id: "sendgrid.get-segment",
|
|
2279
|
-
name: "Get Segment",
|
|
2280
|
-
description: "Retrieve a v2.0 segment by ID.",
|
|
2281
|
-
input: z.object({
|
|
2282
|
-
segmentId: sendgridIdSchema,
|
|
2283
|
-
contactsSample: z.boolean().optional()
|
|
2284
|
-
}),
|
|
2285
|
-
output: sendgridSegmentSchema,
|
|
2286
|
-
run: async (input, context) => {
|
|
2287
|
-
const credentials = context.credentials.sendgrid;
|
|
2288
|
-
const response = await createSendGridClient(credentials).request(`/marketing/segments/2.0/${encodeURIComponent(input.segmentId)}`, { query: omitUndefined({ contacts_sample: input.contactsSample ? "true" : void 0 }) });
|
|
2289
|
-
return sendgridSegmentSchema.parse(response);
|
|
2290
|
-
}
|
|
2291
|
-
});
|
|
2292
|
-
|
|
2293
|
-
//#endregion
|
|
2294
|
-
//#region src/operations/get-sender.operation.ts
|
|
2295
|
-
const senderId$1 = z.number().int().positive();
|
|
2296
|
-
const getSenderOperation = new Operation({
|
|
2297
|
-
credentialSets: [sendgridCredentialSet],
|
|
2298
|
-
id: "sendgrid.get-sender",
|
|
2299
|
-
name: "Get Marketing Sender",
|
|
2300
|
-
description: "Retrieve a Marketing Campaigns sender by ID.",
|
|
2301
|
-
input: z.object({ senderId: senderId$1 }),
|
|
2302
|
-
output: sendgridSenderSchema,
|
|
2303
|
-
run: async (input, context) => {
|
|
2304
|
-
const credentials = context.credentials.sendgrid;
|
|
2305
|
-
const response = await createSendGridClient(credentials).request(`/marketing/senders/${input.senderId}`);
|
|
2306
|
-
return sendgridSenderSchema.parse(response);
|
|
2307
|
-
}
|
|
2308
|
-
});
|
|
2309
|
-
|
|
2310
|
-
//#endregion
|
|
2311
|
-
//#region src/operations/get-sender-identity.operation.ts
|
|
2312
|
-
const verifiedSenderId$2 = z.number().int().positive();
|
|
2313
|
-
z.object({
|
|
2314
|
-
nickname: z.string().min(1),
|
|
2315
|
-
from_email: sendgridEmailSchema,
|
|
2316
|
-
from_name: z.string().optional(),
|
|
2317
|
-
reply_to: sendgridEmailSchema.optional(),
|
|
2318
|
-
reply_to_name: z.string().optional(),
|
|
2319
|
-
address: z.string().optional(),
|
|
2320
|
-
address2: z.string().optional(),
|
|
2321
|
-
city: z.string().optional(),
|
|
2322
|
-
state: z.string().optional(),
|
|
2323
|
-
zip: z.string().optional(),
|
|
2324
|
-
country: z.string().optional()
|
|
2325
|
-
});
|
|
2326
|
-
const getSenderIdentityOperation = new Operation({
|
|
2327
|
-
credentialSets: [sendgridCredentialSet],
|
|
2328
|
-
id: "sendgrid.get-sender-identity",
|
|
2329
|
-
name: "Get Verified Sender Identity",
|
|
2330
|
-
description: "Retrieve a verified sender identity by ID.",
|
|
2331
|
-
input: z.object({ id: verifiedSenderId$2 }),
|
|
2332
|
-
output: sendgridVerifiedSenderSchema,
|
|
2333
|
-
run: async (input, context) => {
|
|
2334
|
-
const credentials = context.credentials.sendgrid;
|
|
2335
|
-
const response = await createSendGridClient(credentials).request(`/verified_senders/${input.id}`);
|
|
2336
|
-
return sendgridVerifiedSenderSchema.parse(response);
|
|
2337
|
-
}
|
|
2338
|
-
});
|
|
2339
|
-
|
|
2340
|
-
//#endregion
|
|
2341
|
-
//#region src/operations/get-signed-public-key.operation.ts
|
|
2342
|
-
z.string().min(1);
|
|
2343
|
-
z.object({
|
|
2344
|
-
friendly_name: z.string().optional(),
|
|
2345
|
-
enabled: z.boolean().optional(),
|
|
2346
|
-
url: z.string().url(),
|
|
2347
|
-
group_resubscribe: z.boolean().optional(),
|
|
2348
|
-
delivered: z.boolean().optional(),
|
|
2349
|
-
group_unsubscribe: z.boolean().optional(),
|
|
2350
|
-
spam_report: z.boolean().optional(),
|
|
2351
|
-
bounce: z.boolean().optional(),
|
|
2352
|
-
deferred: z.boolean().optional(),
|
|
2353
|
-
unsubscribe: z.boolean().optional(),
|
|
2354
|
-
processed: z.boolean().optional(),
|
|
2355
|
-
open: z.boolean().optional(),
|
|
2356
|
-
click: z.boolean().optional(),
|
|
2357
|
-
dropped: z.boolean().optional(),
|
|
2358
|
-
oauth_client_id: z.string().optional(),
|
|
2359
|
-
oauth_client_secret: z.string().optional(),
|
|
2360
|
-
oauth_token_url: z.string().optional()
|
|
2361
|
-
});
|
|
2362
|
-
const getSignedPublicKeyOperation = new Operation({
|
|
2363
|
-
credentialSets: [sendgridCredentialSet],
|
|
2364
|
-
id: "sendgrid.get-signed-public-key",
|
|
2365
|
-
name: "Get Signed Event Webhook Public Key",
|
|
2366
|
-
description: "Retrieve the Ed25519 public key used to verify signed Event Webhook POSTs. Cache + rotate on `toggle_webhook_signature`.",
|
|
2367
|
-
input: z.object({}).optional(),
|
|
2368
|
-
output: sendgridSignedPublicKeySchema,
|
|
2369
|
-
run: async (_input, context) => {
|
|
2370
|
-
const credentials = context.credentials.sendgrid;
|
|
2371
|
-
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings/signed");
|
|
2372
|
-
return sendgridSignedPublicKeySchema.parse(response);
|
|
2373
|
-
}
|
|
2374
|
-
});
|
|
2375
|
-
|
|
2376
|
-
//#endregion
|
|
2377
|
-
//#region src/operations/get-single-send.operation.ts
|
|
2378
|
-
function base$5(path = "") {
|
|
2379
|
-
return `/marketing/singlesends${path}`;
|
|
2380
|
-
}
|
|
2381
|
-
z.object({
|
|
2382
|
-
name: z.string().min(1),
|
|
2383
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
2384
|
-
sendAt: z.iso.datetime().optional(),
|
|
2385
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
2386
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
2387
|
-
});
|
|
2388
|
-
const getSingleSendOperation = new Operation({
|
|
2389
|
-
credentialSets: [sendgridCredentialSet],
|
|
2390
|
-
id: "sendgrid.get-single-send",
|
|
2391
|
-
name: "Get Single Send",
|
|
2392
|
-
description: "Retrieve a Single Send by ID.",
|
|
2393
|
-
input: z.object({ id: sendgridIdSchema }),
|
|
2394
|
-
output: sendgridSingleSendSchema,
|
|
2395
|
-
run: async (input, context) => {
|
|
2396
|
-
const credentials = context.credentials.sendgrid;
|
|
2397
|
-
const response = await createSendGridClient(credentials).request(base$5(`/${encodeURIComponent(input.id)}`));
|
|
2398
|
-
return sendgridSingleSendSchema.parse(response);
|
|
2399
|
-
}
|
|
2400
|
-
});
|
|
2401
|
-
|
|
2402
|
-
//#endregion
|
|
2403
|
-
//#region src/operations/get-single-send-click-stats.operation.ts
|
|
2404
|
-
function stats$2(path = "") {
|
|
2405
|
-
return `/marketing/stats/singlesends${path}`;
|
|
2406
|
-
}
|
|
2407
|
-
z.object({
|
|
2408
|
-
name: z.string().min(1),
|
|
2409
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
2410
|
-
sendAt: z.iso.datetime().optional(),
|
|
2411
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
2412
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
2413
|
-
});
|
|
2414
|
-
const getSingleSendClickStatsOperation = new Operation({
|
|
2415
|
-
credentialSets: [sendgridCredentialSet],
|
|
2416
|
-
id: "sendgrid.get-single-send-click-stats",
|
|
2417
|
-
name: "Get Single Send Click Tracking Stats",
|
|
2418
|
-
description: "Return click-tracking breakdown for a Single Send.",
|
|
2419
|
-
input: z.object({ id: sendgridIdSchema }),
|
|
2420
|
-
output: sendgridSingleSendClicksSchema,
|
|
2421
|
-
run: async (input, context) => {
|
|
2422
|
-
const credentials = context.credentials.sendgrid;
|
|
2423
|
-
const response = await createSendGridClient(credentials).request(stats$2(`/${encodeURIComponent(input.id)}/links`));
|
|
2424
|
-
return sendgridSingleSendClicksSchema.parse(response);
|
|
2425
|
-
}
|
|
2426
|
-
});
|
|
2427
|
-
|
|
2428
|
-
//#endregion
|
|
2429
|
-
//#region src/operations/get-single-send-stats.operation.ts
|
|
2430
|
-
function stats$1(path = "") {
|
|
2431
|
-
return `/marketing/stats/singlesends${path}`;
|
|
2432
|
-
}
|
|
2433
|
-
z.object({
|
|
2434
|
-
name: z.string().min(1),
|
|
2435
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
2436
|
-
sendAt: z.iso.datetime().optional(),
|
|
2437
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
2438
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
2439
|
-
});
|
|
2440
|
-
const getSingleSendStatsOperation = new Operation({
|
|
2441
|
-
credentialSets: [sendgridCredentialSet],
|
|
2442
|
-
id: "sendgrid.get-single-send-stats",
|
|
2443
|
-
name: "Get Single Send Stats",
|
|
2444
|
-
description: "Return engagement stats for a single Single Send.",
|
|
2445
|
-
input: z.object({
|
|
2446
|
-
id: sendgridIdSchema,
|
|
2447
|
-
aggregatedBy: z.enum([
|
|
2448
|
-
"total",
|
|
2449
|
-
"day",
|
|
2450
|
-
"week",
|
|
2451
|
-
"month"
|
|
2452
|
-
]).optional()
|
|
2453
|
-
}),
|
|
2454
|
-
output: sendgridSingleSendStatsSchema,
|
|
2455
|
-
run: async (input, context) => {
|
|
2456
|
-
const credentials = context.credentials.sendgrid;
|
|
2457
|
-
const response = await createSendGridClient(credentials).request(stats$1(`/${encodeURIComponent(input.id)}`), { query: omitUndefined({ aggregated_by: input.aggregatedBy }) });
|
|
2458
|
-
return sendgridSingleSendStatsSchema.parse(response);
|
|
2459
|
-
}
|
|
2460
|
-
});
|
|
2461
|
-
|
|
2462
|
-
//#endregion
|
|
2463
|
-
//#region src/operations/get-spam-report.operation.ts
|
|
2464
|
-
z.number().int().nonnegative();
|
|
2465
|
-
z.object({
|
|
2466
|
-
startTime: z.number().int().optional(),
|
|
2467
|
-
endTime: z.number().int().optional()
|
|
2468
|
-
}).optional();
|
|
2469
|
-
const getSpamReportOperation = new Operation({
|
|
2470
|
-
credentialSets: [sendgridCredentialSet],
|
|
2471
|
-
id: "sendgrid.get-spam-report",
|
|
2472
|
-
name: "Get Spam Report",
|
|
2473
|
-
description: "Retrieve spam-report suppression records for a specific email.",
|
|
2474
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
2475
|
-
output: sendgridSpamReportListSchema,
|
|
2476
|
-
run: async (input, context) => {
|
|
2477
|
-
const credentials = context.credentials.sendgrid;
|
|
2478
|
-
const response = await createSendGridClient(credentials).request(`/suppression/spam_reports/${encodeURIComponent(input.email)}`);
|
|
2479
|
-
const arr = Array.isArray(response) ? response : response !== void 0 ? [response] : [];
|
|
2480
|
-
return sendgridSpamReportListSchema.parse(arr);
|
|
2481
|
-
}
|
|
2482
|
-
});
|
|
2483
|
-
|
|
2484
|
-
//#endregion
|
|
2485
|
-
//#region src/operations/get-suppression-group.operation.ts
|
|
2486
|
-
const groupId$3 = z.number().int().nonnegative();
|
|
2487
|
-
z.object({
|
|
2488
|
-
startTime: z.number().int().optional(),
|
|
2489
|
-
endTime: z.number().int().optional()
|
|
2490
|
-
}).optional();
|
|
2491
|
-
const getSuppressionGroupOperation = new Operation({
|
|
2492
|
-
credentialSets: [sendgridCredentialSet],
|
|
2493
|
-
id: "sendgrid.get-suppression-group",
|
|
2494
|
-
name: "Get Suppression Group",
|
|
2495
|
-
description: "Retrieve a single suppression group by ID.",
|
|
2496
|
-
input: z.object({ groupId: groupId$3 }),
|
|
2497
|
-
output: sendgridSuppressionGroupSchema,
|
|
2498
|
-
run: async (input, context) => {
|
|
2499
|
-
const credentials = context.credentials.sendgrid;
|
|
2500
|
-
const response = await createSendGridClient(credentials).request(`/asm/groups/${input.groupId}`);
|
|
2501
|
-
return sendgridSuppressionGroupSchema.parse(response);
|
|
2502
|
-
}
|
|
2503
|
-
});
|
|
2504
|
-
|
|
2505
|
-
//#endregion
|
|
2506
|
-
//#region src/operations/get-template.operation.ts
|
|
2507
|
-
function tpl$4(path) {
|
|
2508
|
-
return `/templates${path}`;
|
|
2509
|
-
}
|
|
2510
|
-
const getTemplateOperation = new Operation({
|
|
2511
|
-
credentialSets: [sendgridCredentialSet],
|
|
2512
|
-
id: "sendgrid.get-template",
|
|
2513
|
-
name: "Get Transactional Template",
|
|
2514
|
-
description: "Retrieve a single transactional template by ID.",
|
|
2515
|
-
input: z.object({ templateId: sendgridIdSchema }),
|
|
2516
|
-
output: sendgridTemplateSchema,
|
|
2517
|
-
run: async (input, context) => {
|
|
2518
|
-
const credentials = context.credentials.sendgrid;
|
|
2519
|
-
const response = await createSendGridClient(credentials).request(tpl$4(`/${encodeURIComponent(input.templateId)}`));
|
|
2520
|
-
return sendgridTemplateSchema.parse(response);
|
|
2521
|
-
}
|
|
2522
|
-
});
|
|
2523
|
-
|
|
2524
|
-
//#endregion
|
|
2525
|
-
//#region src/operations/get-template-version.operation.ts
|
|
2526
|
-
function tpl$3(path) {
|
|
2527
|
-
return `/templates${path}`;
|
|
2528
|
-
}
|
|
2529
|
-
const getTemplateVersionOperation = new Operation({
|
|
2530
|
-
credentialSets: [sendgridCredentialSet],
|
|
2531
|
-
id: "sendgrid.get-template-version",
|
|
2532
|
-
name: "Get Template Version",
|
|
2533
|
-
description: "Retrieve a single transactional template version.",
|
|
2534
|
-
input: z.object({
|
|
2535
|
-
templateId: sendgridIdSchema,
|
|
2536
|
-
versionId: sendgridIdSchema
|
|
2537
|
-
}),
|
|
2538
|
-
output: sendgridTemplateVersionSchema,
|
|
2539
|
-
run: async (input, context) => {
|
|
2540
|
-
const credentials = context.credentials.sendgrid;
|
|
2541
|
-
const response = await createSendGridClient(credentials).request(tpl$3(`/${encodeURIComponent(input.templateId)}/versions/${encodeURIComponent(input.versionId)}`));
|
|
2542
|
-
return sendgridTemplateVersionSchema.parse(response);
|
|
2543
|
-
}
|
|
2544
|
-
});
|
|
2545
|
-
|
|
2546
|
-
//#endregion
|
|
2547
|
-
//#region src/operations/get-user-profile.operation.ts
|
|
2548
|
-
const getUserProfileOperation = new Operation({
|
|
2549
|
-
credentialSets: [sendgridCredentialSet],
|
|
2550
|
-
id: "sendgrid.get-user-profile",
|
|
2551
|
-
name: "Get User Profile",
|
|
2552
|
-
description: "Retrieve the account profile (name, company, mailing address).",
|
|
2553
|
-
input: z.object({}).optional(),
|
|
2554
|
-
output: sendgridUserProfileSchema,
|
|
2555
|
-
run: async (_input, context) => {
|
|
2556
|
-
const credentials = context.credentials.sendgrid;
|
|
2557
|
-
const response = await createSendGridClient(credentials).request("/user/profile");
|
|
2558
|
-
return sendgridUserProfileSchema.parse(response);
|
|
2559
|
-
}
|
|
2560
|
-
});
|
|
2561
|
-
|
|
2562
|
-
//#endregion
|
|
2563
|
-
//#region src/operations/get-user-scopes.operation.ts
|
|
2564
|
-
const getUserScopesOperation = new Operation({
|
|
2565
|
-
credentialSets: [sendgridCredentialSet],
|
|
2566
|
-
id: "sendgrid.get-user-scopes",
|
|
2567
|
-
name: "Get User Scopes",
|
|
2568
|
-
description: "Retrieve the list of API scopes the current API key has access to.",
|
|
2569
|
-
input: z.object({}).optional(),
|
|
2570
|
-
output: sendgridScopesSchema,
|
|
2571
|
-
run: async (_input, context) => {
|
|
2572
|
-
const credentials = context.credentials.sendgrid;
|
|
2573
|
-
const response = await createSendGridClient(credentials).request("/scopes");
|
|
2574
|
-
return sendgridScopesSchema.parse(response);
|
|
2575
|
-
}
|
|
2576
|
-
});
|
|
2577
|
-
|
|
2578
|
-
//#endregion
|
|
2579
|
-
//#region src/operations/list-alerts.operation.ts
|
|
2580
|
-
z.number().int().positive();
|
|
2581
|
-
z.object({
|
|
2582
|
-
type: sendgridAlertTypeSchema,
|
|
2583
|
-
emailTo: sendgridEmailSchema,
|
|
2584
|
-
frequency: sendgridAlertFrequencySchema.optional(),
|
|
2585
|
-
percentage: z.number().int().min(1).max(100).optional()
|
|
2586
|
-
});
|
|
2587
|
-
const listAlertsOperation = new Operation({
|
|
2588
|
-
credentialSets: [sendgridCredentialSet],
|
|
2589
|
-
id: "sendgrid.list-alerts",
|
|
2590
|
-
name: "List Alerts",
|
|
2591
|
-
description: "List all configured alerts.",
|
|
2592
|
-
input: z.object({}).optional(),
|
|
2593
|
-
output: sendgridAlertListSchema,
|
|
2594
|
-
run: async (_input, context) => {
|
|
2595
|
-
const credentials = context.credentials.sendgrid;
|
|
2596
|
-
const response = await createSendGridClient(credentials).request("/alerts");
|
|
2597
|
-
return sendgridAlertListSchema.parse(response ?? []);
|
|
2598
|
-
}
|
|
2599
|
-
});
|
|
2600
|
-
|
|
2601
|
-
//#endregion
|
|
2602
|
-
//#region src/operations/list-all-suppressions.operation.ts
|
|
2603
|
-
z.number().int().nonnegative();
|
|
2604
|
-
z.object({
|
|
2605
|
-
startTime: z.number().int().optional(),
|
|
2606
|
-
endTime: z.number().int().optional()
|
|
2607
|
-
}).optional();
|
|
2608
|
-
const listAllSuppressionsOperation = new Operation({
|
|
2609
|
-
credentialSets: [sendgridCredentialSet],
|
|
2610
|
-
id: "sendgrid.list-all-suppressions",
|
|
2611
|
-
name: "List All Suppressions",
|
|
2612
|
-
description: "List suppressions across all groups (returns group + email pairs).",
|
|
2613
|
-
input: z.object({}).optional(),
|
|
2614
|
-
output: sendgridGroupSuppressionListSchema,
|
|
2615
|
-
run: async (_input, context) => {
|
|
2616
|
-
const credentials = context.credentials.sendgrid;
|
|
2617
|
-
const response = await createSendGridClient(credentials).request("/asm/suppressions");
|
|
2618
|
-
return sendgridGroupSuppressionListSchema.parse(response ?? []);
|
|
2619
|
-
}
|
|
2620
|
-
});
|
|
2621
|
-
|
|
2622
|
-
//#endregion
|
|
2623
|
-
//#region src/operations/list-api-keys.operation.ts
|
|
2624
|
-
const listApiKeysOperation = new Operation({
|
|
2625
|
-
credentialSets: [sendgridCredentialSet],
|
|
2626
|
-
id: "sendgrid.list-api-keys",
|
|
2627
|
-
name: "List API Keys",
|
|
2628
|
-
description: "List all API keys on the account (values are not returned).",
|
|
2629
|
-
input: z.object({}).optional(),
|
|
2630
|
-
output: sendgridApiKeyListSchema,
|
|
2631
|
-
run: async (_input, context) => {
|
|
2632
|
-
const credentials = context.credentials.sendgrid;
|
|
2633
|
-
const response = await createSendGridClient(credentials).request("/api_keys");
|
|
2634
|
-
return sendgridApiKeyListSchema.parse(response ?? { result: [] });
|
|
2635
|
-
}
|
|
2636
|
-
});
|
|
2637
|
-
|
|
2638
|
-
//#endregion
|
|
2639
|
-
//#region src/operations/list-authenticated-domains.operation.ts
|
|
2640
|
-
z.number().int().positive();
|
|
2641
|
-
const listAuthenticatedDomainsOperation = new Operation({
|
|
2642
|
-
credentialSets: [sendgridCredentialSet],
|
|
2643
|
-
id: "sendgrid.list-authenticated-domains",
|
|
2644
|
-
name: "List Authenticated Domains",
|
|
2645
|
-
description: "List all domains set up for Sender Authentication.",
|
|
2646
|
-
input: z.object({
|
|
2647
|
-
limit: z.number().int().positive().max(500).optional(),
|
|
2648
|
-
offset: z.number().int().nonnegative().optional(),
|
|
2649
|
-
excludeSubusers: z.boolean().optional(),
|
|
2650
|
-
username: z.string().optional(),
|
|
2651
|
-
domain: z.string().optional()
|
|
2652
|
-
}).optional(),
|
|
2653
|
-
output: sendgridAuthenticatedDomainListSchema,
|
|
2654
|
-
run: async (input, context) => {
|
|
2655
|
-
const credentials = context.credentials.sendgrid;
|
|
2656
|
-
const response = await createSendGridClient(credentials).request("/whitelabel/domains", { query: omitUndefined({
|
|
2657
|
-
limit: input?.limit,
|
|
2658
|
-
offset: input?.offset,
|
|
2659
|
-
exclude_subusers: input?.excludeSubusers ? "true" : void 0,
|
|
2660
|
-
username: input?.username,
|
|
2661
|
-
domain: input?.domain
|
|
2662
|
-
}) });
|
|
2663
|
-
return sendgridAuthenticatedDomainListSchema.parse(response ?? []);
|
|
2664
|
-
}
|
|
2665
|
-
});
|
|
2666
|
-
|
|
2667
|
-
//#endregion
|
|
2668
|
-
//#region src/operations/list-automation-stats.operation.ts
|
|
2669
|
-
z.object({
|
|
2670
|
-
startDate: z.iso.date(),
|
|
2671
|
-
endDate: z.iso.date().optional(),
|
|
2672
|
-
aggregatedBy: sendgridAggregationSchema.optional()
|
|
2673
|
-
});
|
|
2674
|
-
const listAutomationStatsOperation = new Operation({
|
|
2675
|
-
credentialSets: [sendgridCredentialSet],
|
|
2676
|
-
id: "sendgrid.list-automation-stats",
|
|
2677
|
-
name: "List Automation Stats",
|
|
2678
|
-
description: "Return engagement stats for all Automations.",
|
|
2679
|
-
input: z.object({
|
|
2680
|
-
pageSize: z.number().int().positive().max(100).optional(),
|
|
2681
|
-
aggregatedBy: z.enum([
|
|
2682
|
-
"total",
|
|
2683
|
-
"day",
|
|
2684
|
-
"week",
|
|
2685
|
-
"month"
|
|
2686
|
-
]).optional()
|
|
2687
|
-
}).optional(),
|
|
2688
|
-
output: sendgridAutomationStatsSchema,
|
|
2689
|
-
run: async (input, context) => {
|
|
2690
|
-
const credentials = context.credentials.sendgrid;
|
|
2691
|
-
const response = await createSendGridClient(credentials).request("/marketing/stats/automations", { query: omitUndefined({
|
|
2692
|
-
page_size: input?.pageSize,
|
|
2693
|
-
aggregated_by: input?.aggregatedBy
|
|
2694
|
-
}) });
|
|
2695
|
-
return sendgridAutomationStatsSchema.parse(response ?? { results: [] });
|
|
2696
|
-
}
|
|
2697
|
-
});
|
|
2698
|
-
|
|
2699
|
-
//#endregion
|
|
2700
|
-
//#region src/operations/list-blocks.operation.ts
|
|
2701
|
-
z.number().int().nonnegative();
|
|
2702
|
-
const timeRange$4 = z.object({
|
|
2703
|
-
startTime: z.number().int().optional(),
|
|
2704
|
-
endTime: z.number().int().optional()
|
|
2705
|
-
}).optional();
|
|
2706
|
-
function mapTimeQuery$4(range) {
|
|
2707
|
-
return {
|
|
2708
|
-
start_time: range?.startTime,
|
|
2709
|
-
end_time: range?.endTime
|
|
2710
|
-
};
|
|
2711
|
-
}
|
|
2712
|
-
const listBlocksOperation = new Operation({
|
|
2713
|
-
credentialSets: [sendgridCredentialSet],
|
|
2714
|
-
id: "sendgrid.list-blocks",
|
|
2715
|
-
name: "List Blocks",
|
|
2716
|
-
description: "List blocks (temporary delivery rejections).",
|
|
2717
|
-
input: timeRange$4.unwrap().extend({
|
|
2718
|
-
limit: z.number().int().positive().max(500).optional(),
|
|
2719
|
-
offset: z.number().int().nonnegative().optional()
|
|
2720
|
-
}).optional(),
|
|
2721
|
-
output: sendgridBlockListSchema,
|
|
2722
|
-
run: async (input, context) => {
|
|
2723
|
-
const credentials = context.credentials.sendgrid;
|
|
2724
|
-
const response = await createSendGridClient(credentials).request("/suppression/blocks", { query: omitUndefined({
|
|
2725
|
-
limit: input?.limit,
|
|
2726
|
-
offset: input?.offset,
|
|
2727
|
-
...mapTimeQuery$4(input)
|
|
2728
|
-
}) });
|
|
2729
|
-
return sendgridBlockListSchema.parse(response ?? []);
|
|
2730
|
-
}
|
|
2731
|
-
});
|
|
2732
|
-
|
|
2733
|
-
//#endregion
|
|
2734
|
-
//#region src/operations/list-bounces.operation.ts
|
|
2735
|
-
z.number().int().nonnegative();
|
|
2736
|
-
const timeRange$3 = z.object({
|
|
2737
|
-
startTime: z.number().int().optional(),
|
|
2738
|
-
endTime: z.number().int().optional()
|
|
2739
|
-
}).optional();
|
|
2740
|
-
function mapTimeQuery$3(range) {
|
|
2741
|
-
return {
|
|
2742
|
-
start_time: range?.startTime,
|
|
2743
|
-
end_time: range?.endTime
|
|
2744
|
-
};
|
|
2745
|
-
}
|
|
2746
|
-
const listBouncesOperation = new Operation({
|
|
2747
|
-
credentialSets: [sendgridCredentialSet],
|
|
2748
|
-
id: "sendgrid.list-bounces",
|
|
2749
|
-
name: "List Bounces",
|
|
2750
|
-
description: "List bounce records.",
|
|
2751
|
-
input: timeRange$3.unwrap().extend({
|
|
2752
|
-
limit: z.number().int().positive().max(500).optional(),
|
|
2753
|
-
offset: z.number().int().nonnegative().optional()
|
|
2754
|
-
}).optional(),
|
|
2755
|
-
output: sendgridBounceListSchema,
|
|
2756
|
-
run: async (input, context) => {
|
|
2757
|
-
const credentials = context.credentials.sendgrid;
|
|
2758
|
-
const response = await createSendGridClient(credentials).request("/suppression/bounces", { query: omitUndefined({
|
|
2759
|
-
limit: input?.limit,
|
|
2760
|
-
offset: input?.offset,
|
|
2761
|
-
...mapTimeQuery$3(input)
|
|
2762
|
-
}) });
|
|
2763
|
-
return sendgridBounceListSchema.parse(response ?? []);
|
|
2764
|
-
}
|
|
2765
|
-
});
|
|
2766
|
-
|
|
2767
|
-
//#endregion
|
|
2768
|
-
//#region src/operations/list-bulk-email-validation-jobs.operation.ts
|
|
2769
|
-
const listBulkEmailValidationJobsOperation = new Operation({
|
|
2770
|
-
credentialSets: [sendgridCredentialSet],
|
|
2771
|
-
id: "sendgrid.list-bulk-email-validation-jobs",
|
|
2772
|
-
name: "List Bulk Email Validation Jobs",
|
|
2773
|
-
description: "List bulk email validation jobs.",
|
|
2774
|
-
input: z.object({}).optional(),
|
|
2775
|
-
output: sendgridBulkEmailValidationJobListSchema,
|
|
2776
|
-
run: async (_input, context) => {
|
|
2777
|
-
const credentials = context.credentials.sendgrid;
|
|
2778
|
-
const response = await createSendGridClient(credentials).request("/validations/email/jobs");
|
|
2779
|
-
return sendgridBulkEmailValidationJobListSchema.parse(response ?? { result: [] });
|
|
2780
|
-
}
|
|
2781
|
-
});
|
|
2782
|
-
|
|
2783
|
-
//#endregion
|
|
2784
|
-
//#region src/operations/list-contact-exports.operation.ts
|
|
2785
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
2786
|
-
const listContactExportsOperation = new Operation({
|
|
2787
|
-
credentialSets: [sendgridCredentialSet],
|
|
2788
|
-
id: "sendgrid.list-contact-exports",
|
|
2789
|
-
name: "List Existing Contact Exports",
|
|
2790
|
-
description: "List all contact-export jobs.",
|
|
2791
|
-
input: z.object({}).optional(),
|
|
2792
|
-
output: sendgridContactExportListSchema,
|
|
2793
|
-
run: async (_input, context) => {
|
|
2794
|
-
const credentials = context.credentials.sendgrid;
|
|
2795
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/exports");
|
|
2796
|
-
return sendgridContactExportListSchema.parse(response ?? { result: [] });
|
|
2797
|
-
}
|
|
2798
|
-
});
|
|
2799
|
-
|
|
2800
|
-
//#endregion
|
|
2801
|
-
//#region src/operations/list-event-webhooks.operation.ts
|
|
2802
|
-
z.string().min(1);
|
|
2803
|
-
z.object({
|
|
2804
|
-
friendly_name: z.string().optional(),
|
|
2805
|
-
enabled: z.boolean().optional(),
|
|
2806
|
-
url: z.string().url(),
|
|
2807
|
-
group_resubscribe: z.boolean().optional(),
|
|
2808
|
-
delivered: z.boolean().optional(),
|
|
2809
|
-
group_unsubscribe: z.boolean().optional(),
|
|
2810
|
-
spam_report: z.boolean().optional(),
|
|
2811
|
-
bounce: z.boolean().optional(),
|
|
2812
|
-
deferred: z.boolean().optional(),
|
|
2813
|
-
unsubscribe: z.boolean().optional(),
|
|
2814
|
-
processed: z.boolean().optional(),
|
|
2815
|
-
open: z.boolean().optional(),
|
|
2816
|
-
click: z.boolean().optional(),
|
|
2817
|
-
dropped: z.boolean().optional(),
|
|
2818
|
-
oauth_client_id: z.string().optional(),
|
|
2819
|
-
oauth_client_secret: z.string().optional(),
|
|
2820
|
-
oauth_token_url: z.string().optional()
|
|
2821
|
-
});
|
|
2822
|
-
const listEventWebhooksOperation = new Operation({
|
|
2823
|
-
credentialSets: [sendgridCredentialSet],
|
|
2824
|
-
id: "sendgrid.list-event-webhooks",
|
|
2825
|
-
name: "List Event Webhooks",
|
|
2826
|
-
description: "List all Event Webhook endpoints configured on the account.",
|
|
2827
|
-
input: z.object({}).optional(),
|
|
2828
|
-
output: sendgridEventWebhookListSchema,
|
|
2829
|
-
run: async (_input, context) => {
|
|
2830
|
-
const credentials = context.credentials.sendgrid;
|
|
2831
|
-
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings/all");
|
|
2832
|
-
return sendgridEventWebhookListSchema.parse(response ?? { webhooks: [] });
|
|
2833
|
-
}
|
|
2834
|
-
});
|
|
2835
|
-
|
|
2836
|
-
//#endregion
|
|
2837
|
-
//#region src/operations/list-field-definitions.operation.ts
|
|
2838
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
2839
|
-
const listFieldDefinitionsOperation = new Operation({
|
|
2840
|
-
credentialSets: [sendgridCredentialSet],
|
|
2841
|
-
id: "sendgrid.list-field-definitions",
|
|
2842
|
-
name: "List Custom and Reserved Fields",
|
|
2843
|
-
description: "Return all custom and reserved Marketing Contacts field definitions.",
|
|
2844
|
-
input: z.object({}).optional(),
|
|
2845
|
-
output: sendgridFieldDefinitionListSchema,
|
|
2846
|
-
run: async (_input, context) => {
|
|
2847
|
-
const credentials = context.credentials.sendgrid;
|
|
2848
|
-
const response = await createSendGridClient(credentials).request("/marketing/field_definitions");
|
|
2849
|
-
return sendgridFieldDefinitionListSchema.parse(response);
|
|
2850
|
-
}
|
|
2851
|
-
});
|
|
2852
|
-
|
|
2853
|
-
//#endregion
|
|
2854
|
-
//#region src/operations/list-global-suppressions.operation.ts
|
|
2855
|
-
z.number().int().nonnegative();
|
|
2856
|
-
const timeRange$2 = z.object({
|
|
2857
|
-
startTime: z.number().int().optional(),
|
|
2858
|
-
endTime: z.number().int().optional()
|
|
2859
|
-
}).optional();
|
|
2860
|
-
function mapTimeQuery$2(range) {
|
|
2861
|
-
return {
|
|
2862
|
-
start_time: range?.startTime,
|
|
2863
|
-
end_time: range?.endTime
|
|
2864
|
-
};
|
|
2865
|
-
}
|
|
2866
|
-
const listGlobalSuppressionsOperation = new Operation({
|
|
2867
|
-
credentialSets: [sendgridCredentialSet],
|
|
2868
|
-
id: "sendgrid.list-global-suppressions",
|
|
2869
|
-
name: "List Global Unsubscribes",
|
|
2870
|
-
description: "List email addresses that have globally unsubscribed.",
|
|
2871
|
-
input: z.object({
|
|
2872
|
-
limit: z.number().int().positive().max(500).optional(),
|
|
2873
|
-
offset: z.number().int().nonnegative().optional(),
|
|
2874
|
-
email: sendgridEmailSchema.optional()
|
|
2875
|
-
}).merge(timeRange$2.unwrap()).optional(),
|
|
2876
|
-
output: sendgridGlobalSuppressionListSchema,
|
|
2877
|
-
run: async (input, context) => {
|
|
2878
|
-
const credentials = context.credentials.sendgrid;
|
|
2879
|
-
const response = await createSendGridClient(credentials).request("/suppression/unsubscribes", { query: omitUndefined({
|
|
2880
|
-
limit: input?.limit,
|
|
2881
|
-
offset: input?.offset,
|
|
2882
|
-
email: input?.email,
|
|
2883
|
-
...mapTimeQuery$2(input)
|
|
2884
|
-
}) });
|
|
2885
|
-
return sendgridGlobalSuppressionListSchema.parse(response ?? []);
|
|
2886
|
-
}
|
|
2887
|
-
});
|
|
2888
|
-
|
|
2889
|
-
//#endregion
|
|
2890
|
-
//#region src/operations/list-group-suppressions.operation.ts
|
|
2891
|
-
const groupId$2 = z.number().int().nonnegative();
|
|
2892
|
-
z.object({
|
|
2893
|
-
startTime: z.number().int().optional(),
|
|
2894
|
-
endTime: z.number().int().optional()
|
|
2895
|
-
}).optional();
|
|
2896
|
-
const listGroupSuppressionsOperation = new Operation({
|
|
2897
|
-
credentialSets: [sendgridCredentialSet],
|
|
2898
|
-
id: "sendgrid.list-group-suppressions",
|
|
2899
|
-
name: "List Group Suppressions",
|
|
2900
|
-
description: "List all suppressions for a single group.",
|
|
2901
|
-
input: z.object({ groupId: groupId$2 }),
|
|
2902
|
-
output: z.array(z.string()),
|
|
2903
|
-
run: async (input, context) => {
|
|
2904
|
-
const credentials = context.credentials.sendgrid;
|
|
2905
|
-
const response = await createSendGridClient(credentials).request(`/asm/groups/${input.groupId}/suppressions`);
|
|
2906
|
-
return z.array(z.string()).parse(response ?? []);
|
|
2907
|
-
}
|
|
2908
|
-
});
|
|
2909
|
-
|
|
2910
|
-
//#endregion
|
|
2911
|
-
//#region src/operations/list-groups-for-email.operation.ts
|
|
2912
|
-
z.number().int().nonnegative();
|
|
2913
|
-
z.object({
|
|
2914
|
-
startTime: z.number().int().optional(),
|
|
2915
|
-
endTime: z.number().int().optional()
|
|
2916
|
-
}).optional();
|
|
2917
|
-
const listGroupsForEmailOperation = new Operation({
|
|
2918
|
-
credentialSets: [sendgridCredentialSet],
|
|
2919
|
-
id: "sendgrid.list-groups-for-email",
|
|
2920
|
-
name: "List Suppression Groups for Email",
|
|
2921
|
-
description: "Retrieve all suppression groups an email address is on.",
|
|
2922
|
-
input: z.object({ email: sendgridEmailSchema }),
|
|
2923
|
-
output: z.array(z.object({
|
|
2924
|
-
id: z.number().int(),
|
|
2925
|
-
name: z.string(),
|
|
2926
|
-
description: z.string().optional(),
|
|
2927
|
-
suppressed: z.boolean().optional()
|
|
2928
|
-
}).catchall(z.unknown())),
|
|
2929
|
-
run: async (input, context) => {
|
|
2930
|
-
const credentials = context.credentials.sendgrid;
|
|
2931
|
-
const response = await createSendGridClient(credentials).request(`/asm/suppressions/${encodeURIComponent(input.email)}`);
|
|
2932
|
-
const array = Array.isArray(response) ? response : [];
|
|
2933
|
-
return z.array(z.object({
|
|
2934
|
-
id: z.number().int(),
|
|
2935
|
-
name: z.string(),
|
|
2936
|
-
description: z.string().optional(),
|
|
2937
|
-
suppressed: z.boolean().optional()
|
|
2938
|
-
}).catchall(z.unknown())).parse(array);
|
|
2939
|
-
}
|
|
2940
|
-
});
|
|
2941
|
-
|
|
2942
|
-
//#endregion
|
|
2943
|
-
//#region src/operations/list-invalid-emails.operation.ts
|
|
2944
|
-
z.number().int().nonnegative();
|
|
2945
|
-
const timeRange$1 = z.object({
|
|
2946
|
-
startTime: z.number().int().optional(),
|
|
2947
|
-
endTime: z.number().int().optional()
|
|
2948
|
-
}).optional();
|
|
2949
|
-
function mapTimeQuery$1(range) {
|
|
2950
|
-
return {
|
|
2951
|
-
start_time: range?.startTime,
|
|
2952
|
-
end_time: range?.endTime
|
|
2953
|
-
};
|
|
2954
|
-
}
|
|
2955
|
-
const listInvalidEmailsOperation = new Operation({
|
|
2956
|
-
credentialSets: [sendgridCredentialSet],
|
|
2957
|
-
id: "sendgrid.list-invalid-emails",
|
|
2958
|
-
name: "List Invalid Emails",
|
|
2959
|
-
description: "List invalid-email suppression records.",
|
|
2960
|
-
input: timeRange$1.unwrap().extend({
|
|
2961
|
-
limit: z.number().int().positive().max(500).optional(),
|
|
2962
|
-
offset: z.number().int().nonnegative().optional()
|
|
2963
|
-
}).optional(),
|
|
2964
|
-
output: sendgridInvalidEmailListSchema,
|
|
2965
|
-
run: async (input, context) => {
|
|
2966
|
-
const credentials = context.credentials.sendgrid;
|
|
2967
|
-
const response = await createSendGridClient(credentials).request("/suppression/invalid_emails", { query: omitUndefined({
|
|
2968
|
-
limit: input?.limit,
|
|
2969
|
-
offset: input?.offset,
|
|
2970
|
-
...mapTimeQuery$1(input)
|
|
2971
|
-
}) });
|
|
2972
|
-
return sendgridInvalidEmailListSchema.parse(response ?? []);
|
|
2973
|
-
}
|
|
2974
|
-
});
|
|
2975
|
-
|
|
2976
|
-
//#endregion
|
|
2977
|
-
//#region src/operations/list-mailbox-provider-stats.operation.ts
|
|
2978
|
-
const statsRange = z.object({
|
|
2979
|
-
startDate: z.iso.date(),
|
|
2980
|
-
endDate: z.iso.date().optional(),
|
|
2981
|
-
aggregatedBy: sendgridAggregationSchema.optional()
|
|
2982
|
-
});
|
|
2983
|
-
function mapStatsQuery(input) {
|
|
2984
|
-
return {
|
|
2985
|
-
start_date: input.startDate,
|
|
2986
|
-
end_date: input.endDate,
|
|
2987
|
-
aggregated_by: input.aggregatedBy
|
|
2988
|
-
};
|
|
2989
|
-
}
|
|
2990
|
-
const listMailboxProviderStatsOperation = new Operation({
|
|
2991
|
-
credentialSets: [sendgridCredentialSet],
|
|
2992
|
-
id: "sendgrid.list-mailbox-provider-stats",
|
|
2993
|
-
name: "List Mailbox Provider Stats",
|
|
2994
|
-
description: "Return email stats broken down by mailbox provider (Gmail, Outlook, etc.).",
|
|
2995
|
-
input: statsRange.extend({ mailboxProviders: z.array(z.string().min(1)).optional() }),
|
|
2996
|
-
output: sendgridStatBucketListSchema,
|
|
2997
|
-
run: async (input, context) => {
|
|
2998
|
-
const credentials = context.credentials.sendgrid;
|
|
2999
|
-
const response = await createSendGridClient(credentials).request("/mailbox_providers/stats", { query: omitUndefined({
|
|
3000
|
-
...mapStatsQuery(input),
|
|
3001
|
-
mailbox_providers: input.mailboxProviders?.join(",")
|
|
3002
|
-
}) });
|
|
3003
|
-
return sendgridStatBucketListSchema.parse(response ?? []);
|
|
3004
|
-
}
|
|
3005
|
-
});
|
|
3006
|
-
|
|
3007
|
-
//#endregion
|
|
3008
|
-
//#region src/operations/list-marketing-lists.operation.ts
|
|
3009
|
-
const listMarketingListsOperation = new Operation({
|
|
3010
|
-
credentialSets: [sendgridCredentialSet],
|
|
3011
|
-
id: "sendgrid.list-marketing-lists",
|
|
3012
|
-
name: "List Marketing Lists",
|
|
3013
|
-
description: "List all v3 marketing lists.",
|
|
3014
|
-
input: z.object({
|
|
3015
|
-
pageSize: z.number().int().positive().max(1e3).optional(),
|
|
3016
|
-
pageToken: z.string().min(1).optional()
|
|
3017
|
-
}).optional(),
|
|
3018
|
-
output: sendgridListCollectionSchema,
|
|
3019
|
-
run: async (input, context) => {
|
|
3020
|
-
const credentials = context.credentials.sendgrid;
|
|
3021
|
-
const response = await createSendGridClient(credentials).request("/marketing/lists", { query: omitUndefined({
|
|
3022
|
-
page_size: input?.pageSize,
|
|
3023
|
-
page_token: input?.pageToken
|
|
3024
|
-
}) });
|
|
3025
|
-
return sendgridListCollectionSchema.parse(response ?? { result: [] });
|
|
3026
|
-
}
|
|
3027
|
-
});
|
|
3028
|
-
|
|
3029
|
-
//#endregion
|
|
3030
|
-
//#region src/operations/list-parse-settings.operation.ts
|
|
3031
|
-
const hostname$1 = z.string().min(1);
|
|
3032
|
-
z.object({
|
|
3033
|
-
url: z.string().url(),
|
|
3034
|
-
hostname: hostname$1,
|
|
3035
|
-
spamCheck: z.boolean().optional(),
|
|
3036
|
-
sendRaw: z.boolean().optional()
|
|
3037
|
-
});
|
|
3038
|
-
const listParseSettingsOperation = new Operation({
|
|
3039
|
-
credentialSets: [sendgridCredentialSet],
|
|
3040
|
-
id: "sendgrid.list-parse-settings",
|
|
3041
|
-
name: "List Inbound Parse Settings",
|
|
3042
|
-
description: "List all Inbound Parse configurations on the account.",
|
|
3043
|
-
input: z.object({}).optional(),
|
|
3044
|
-
output: sendgridParseSettingListSchema,
|
|
3045
|
-
run: async (_input, context) => {
|
|
3046
|
-
const credentials = context.credentials.sendgrid;
|
|
3047
|
-
const response = await createSendGridClient(credentials).request("/user/webhooks/parse/settings");
|
|
3048
|
-
return sendgridParseSettingListSchema.parse(response ?? { result: [] });
|
|
3049
|
-
}
|
|
3050
|
-
});
|
|
3051
|
-
|
|
3052
|
-
//#endregion
|
|
3053
|
-
//#region src/operations/list-scheduled-sends.operation.ts
|
|
3054
|
-
const listScheduledSendsOperation = new Operation({
|
|
3055
|
-
credentialSets: [sendgridCredentialSet],
|
|
3056
|
-
id: "sendgrid.list-scheduled-sends",
|
|
3057
|
-
name: "List Scheduled Sends",
|
|
3058
|
-
description: "Retrieve all scheduled batches currently paused or cancelled.",
|
|
3059
|
-
input: z.object({}).optional(),
|
|
3060
|
-
output: sendgridScheduledSendListSchema,
|
|
3061
|
-
run: async (_input, context) => {
|
|
3062
|
-
const credentials = context.credentials.sendgrid;
|
|
3063
|
-
const response = await createSendGridClient(credentials).request("/user/scheduled_sends");
|
|
3064
|
-
return sendgridScheduledSendListSchema.parse(response ?? []);
|
|
3065
|
-
}
|
|
3066
|
-
});
|
|
3067
|
-
|
|
3068
|
-
//#endregion
|
|
3069
|
-
//#region src/operations/list-segments.operation.ts
|
|
3070
|
-
z.object({
|
|
3071
|
-
name: z.string().min(1),
|
|
3072
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
3073
|
-
queryDsl: z.string().min(1)
|
|
3074
|
-
});
|
|
3075
|
-
const listSegmentsOperation = new Operation({
|
|
3076
|
-
credentialSets: [sendgridCredentialSet],
|
|
3077
|
-
id: "sendgrid.list-segments",
|
|
3078
|
-
name: "List Segments",
|
|
3079
|
-
description: "List v2.0 segments. Filter by parent list IDs.",
|
|
3080
|
-
input: z.object({
|
|
3081
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
3082
|
-
noParentListId: z.boolean().optional()
|
|
3083
|
-
}).optional(),
|
|
3084
|
-
output: sendgridSegmentListSchema,
|
|
3085
|
-
run: async (input, context) => {
|
|
3086
|
-
const credentials = context.credentials.sendgrid;
|
|
3087
|
-
const response = await createSendGridClient(credentials).request("/marketing/segments/2.0", { query: omitUndefined({
|
|
3088
|
-
parent_list_ids: input?.parentListIds?.join(","),
|
|
3089
|
-
no_parent_list_id: input?.noParentListId ? "true" : void 0
|
|
3090
|
-
}) });
|
|
3091
|
-
return sendgridSegmentListSchema.parse(response ?? { results: [] });
|
|
3092
|
-
}
|
|
3093
|
-
});
|
|
3094
|
-
|
|
3095
|
-
//#endregion
|
|
3096
|
-
//#region src/operations/list-sender-identities.operation.ts
|
|
3097
|
-
z.number().int().positive();
|
|
3098
|
-
z.object({
|
|
3099
|
-
nickname: z.string().min(1),
|
|
3100
|
-
from_email: sendgridEmailSchema,
|
|
3101
|
-
from_name: z.string().optional(),
|
|
3102
|
-
reply_to: sendgridEmailSchema.optional(),
|
|
3103
|
-
reply_to_name: z.string().optional(),
|
|
3104
|
-
address: z.string().optional(),
|
|
3105
|
-
address2: z.string().optional(),
|
|
3106
|
-
city: z.string().optional(),
|
|
3107
|
-
state: z.string().optional(),
|
|
3108
|
-
zip: z.string().optional(),
|
|
3109
|
-
country: z.string().optional()
|
|
3110
|
-
});
|
|
3111
|
-
const listSenderIdentitiesOperation = new Operation({
|
|
3112
|
-
credentialSets: [sendgridCredentialSet],
|
|
3113
|
-
id: "sendgrid.list-sender-identities",
|
|
3114
|
-
name: "List Verified Sender Identities",
|
|
3115
|
-
description: "List all verified sender identities.",
|
|
3116
|
-
input: z.object({}).optional(),
|
|
3117
|
-
output: sendgridVerifiedSenderListSchema,
|
|
3118
|
-
run: async (_input, context) => {
|
|
3119
|
-
const credentials = context.credentials.sendgrid;
|
|
3120
|
-
const response = await createSendGridClient(credentials).request("/verified_senders");
|
|
3121
|
-
return sendgridVerifiedSenderListSchema.parse(response ?? { results: [] });
|
|
3122
|
-
}
|
|
3123
|
-
});
|
|
3124
|
-
|
|
3125
|
-
//#endregion
|
|
3126
|
-
//#region src/operations/list-senders.operation.ts
|
|
3127
|
-
z.number().int().positive();
|
|
3128
|
-
const listSendersOperation = new Operation({
|
|
3129
|
-
credentialSets: [sendgridCredentialSet],
|
|
3130
|
-
id: "sendgrid.list-senders",
|
|
3131
|
-
name: "List Marketing Senders",
|
|
3132
|
-
description: "List all Marketing Campaigns senders.",
|
|
3133
|
-
input: z.object({}).optional(),
|
|
3134
|
-
output: sendgridSenderListSchema,
|
|
3135
|
-
run: async (_input, context) => {
|
|
3136
|
-
const credentials = context.credentials.sendgrid;
|
|
3137
|
-
const response = await createSendGridClient(credentials).request("/marketing/senders");
|
|
3138
|
-
return sendgridSenderListSchema.parse(response ?? { results: [] });
|
|
3139
|
-
}
|
|
3140
|
-
});
|
|
3141
|
-
|
|
3142
|
-
//#endregion
|
|
3143
|
-
//#region src/operations/list-single-send-stats.operation.ts
|
|
3144
|
-
function stats(path = "") {
|
|
3145
|
-
return `/marketing/stats/singlesends${path}`;
|
|
3146
|
-
}
|
|
3147
|
-
z.object({
|
|
3148
|
-
name: z.string().min(1),
|
|
3149
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
3150
|
-
sendAt: z.iso.datetime().optional(),
|
|
3151
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
3152
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
3153
|
-
});
|
|
3154
|
-
const listSingleSendStatsOperation = new Operation({
|
|
3155
|
-
credentialSets: [sendgridCredentialSet],
|
|
3156
|
-
id: "sendgrid.list-single-send-stats",
|
|
3157
|
-
name: "List All Single Send Stats",
|
|
3158
|
-
description: "Return aggregated engagement stats across all Single Sends.",
|
|
3159
|
-
input: z.object({
|
|
3160
|
-
aggregatedBy: z.enum([
|
|
3161
|
-
"total",
|
|
3162
|
-
"day",
|
|
3163
|
-
"week",
|
|
3164
|
-
"month"
|
|
3165
|
-
]).optional(),
|
|
3166
|
-
pageSize: z.number().int().positive().max(100).optional()
|
|
3167
|
-
}).optional(),
|
|
3168
|
-
output: sendgridSingleSendStatsListSchema,
|
|
3169
|
-
run: async (input, context) => {
|
|
3170
|
-
const credentials = context.credentials.sendgrid;
|
|
3171
|
-
const response = await createSendGridClient(credentials).request(stats(), { query: omitUndefined({
|
|
3172
|
-
aggregated_by: input?.aggregatedBy,
|
|
3173
|
-
page_size: input?.pageSize
|
|
3174
|
-
}) });
|
|
3175
|
-
return sendgridSingleSendStatsListSchema.parse(response ?? { results: [] });
|
|
3176
|
-
}
|
|
3177
|
-
});
|
|
3178
|
-
|
|
3179
|
-
//#endregion
|
|
3180
|
-
//#region src/operations/list-single-sends.operation.ts
|
|
3181
|
-
function base$4(path = "") {
|
|
3182
|
-
return `/marketing/singlesends${path}`;
|
|
3183
|
-
}
|
|
3184
|
-
z.object({
|
|
3185
|
-
name: z.string().min(1),
|
|
3186
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
3187
|
-
sendAt: z.iso.datetime().optional(),
|
|
3188
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
3189
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
3190
|
-
});
|
|
3191
|
-
const listSingleSendsOperation = new Operation({
|
|
3192
|
-
credentialSets: [sendgridCredentialSet],
|
|
3193
|
-
id: "sendgrid.list-single-sends",
|
|
3194
|
-
name: "List Single Sends",
|
|
3195
|
-
description: "List all Single Sends on the account.",
|
|
3196
|
-
input: z.object({
|
|
3197
|
-
pageSize: z.number().int().positive().max(100).optional(),
|
|
3198
|
-
pageToken: z.string().min(1).optional()
|
|
3199
|
-
}).optional(),
|
|
3200
|
-
output: sendgridSingleSendListSchema,
|
|
3201
|
-
run: async (input, context) => {
|
|
3202
|
-
const credentials = context.credentials.sendgrid;
|
|
3203
|
-
const response = await createSendGridClient(credentials).request(base$4(), { query: omitUndefined({
|
|
3204
|
-
page_size: input?.pageSize,
|
|
3205
|
-
page_token: input?.pageToken
|
|
3206
|
-
}) });
|
|
3207
|
-
return sendgridSingleSendListSchema.parse(response ?? { result: [] });
|
|
3208
|
-
}
|
|
3209
|
-
});
|
|
3210
|
-
|
|
3211
|
-
//#endregion
|
|
3212
|
-
//#region src/operations/list-spam-reports.operation.ts
|
|
3213
|
-
z.number().int().nonnegative();
|
|
3214
|
-
const timeRange = z.object({
|
|
3215
|
-
startTime: z.number().int().optional(),
|
|
3216
|
-
endTime: z.number().int().optional()
|
|
3217
|
-
}).optional();
|
|
3218
|
-
function mapTimeQuery(range) {
|
|
3219
|
-
return {
|
|
3220
|
-
start_time: range?.startTime,
|
|
3221
|
-
end_time: range?.endTime
|
|
3222
|
-
};
|
|
3223
|
-
}
|
|
3224
|
-
const listSpamReportsOperation = new Operation({
|
|
3225
|
-
credentialSets: [sendgridCredentialSet],
|
|
3226
|
-
id: "sendgrid.list-spam-reports",
|
|
3227
|
-
name: "List Spam Reports",
|
|
3228
|
-
description: "List spam-report suppression records.",
|
|
3229
|
-
input: timeRange.unwrap().extend({
|
|
3230
|
-
limit: z.number().int().positive().max(500).optional(),
|
|
3231
|
-
offset: z.number().int().nonnegative().optional()
|
|
3232
|
-
}).optional(),
|
|
3233
|
-
output: sendgridSpamReportListSchema,
|
|
3234
|
-
run: async (input, context) => {
|
|
3235
|
-
const credentials = context.credentials.sendgrid;
|
|
3236
|
-
const response = await createSendGridClient(credentials).request("/suppression/spam_reports", { query: omitUndefined({
|
|
3237
|
-
limit: input?.limit,
|
|
3238
|
-
offset: input?.offset,
|
|
3239
|
-
...mapTimeQuery(input)
|
|
3240
|
-
}) });
|
|
3241
|
-
return sendgridSpamReportListSchema.parse(response ?? []);
|
|
3242
|
-
}
|
|
3243
|
-
});
|
|
3244
|
-
|
|
3245
|
-
//#endregion
|
|
3246
|
-
//#region src/operations/list-suppression-groups.operation.ts
|
|
3247
|
-
z.number().int().nonnegative();
|
|
3248
|
-
z.object({
|
|
3249
|
-
startTime: z.number().int().optional(),
|
|
3250
|
-
endTime: z.number().int().optional()
|
|
3251
|
-
}).optional();
|
|
3252
|
-
const listSuppressionGroupsOperation = new Operation({
|
|
3253
|
-
credentialSets: [sendgridCredentialSet],
|
|
3254
|
-
id: "sendgrid.list-suppression-groups",
|
|
3255
|
-
name: "List Suppression Groups",
|
|
3256
|
-
description: "List all suppression groups.",
|
|
3257
|
-
input: z.object({}).optional(),
|
|
3258
|
-
output: sendgridSuppressionGroupListSchema,
|
|
3259
|
-
run: async (_input, context) => {
|
|
3260
|
-
const credentials = context.credentials.sendgrid;
|
|
3261
|
-
const response = await createSendGridClient(credentials).request("/asm/groups");
|
|
3262
|
-
return sendgridSuppressionGroupListSchema.parse(response ?? []);
|
|
3263
|
-
}
|
|
3264
|
-
});
|
|
3265
|
-
|
|
3266
|
-
//#endregion
|
|
3267
|
-
//#region src/operations/list-templates.operation.ts
|
|
3268
|
-
function tpl$2(path) {
|
|
3269
|
-
return `/templates${path}`;
|
|
3270
|
-
}
|
|
3271
|
-
const listTemplatesOperation = new Operation({
|
|
3272
|
-
credentialSets: [sendgridCredentialSet],
|
|
3273
|
-
id: "sendgrid.list-templates",
|
|
3274
|
-
name: "List Transactional Templates",
|
|
3275
|
-
description: "List transactional templates with optional generation filter and paging.",
|
|
3276
|
-
input: z.object({
|
|
3277
|
-
generations: z.enum([
|
|
3278
|
-
"legacy",
|
|
3279
|
-
"dynamic",
|
|
3280
|
-
"legacy,dynamic"
|
|
3281
|
-
]).optional(),
|
|
3282
|
-
pageSize: z.number().int().positive().max(200).optional(),
|
|
3283
|
-
pageToken: z.string().min(1).optional()
|
|
3284
|
-
}).optional(),
|
|
3285
|
-
output: sendgridTemplateListSchema,
|
|
3286
|
-
run: async (input, context) => {
|
|
3287
|
-
const credentials = context.credentials.sendgrid;
|
|
3288
|
-
const response = await createSendGridClient(credentials).request(tpl$2(""), { query: omitUndefined({
|
|
3289
|
-
generations: input?.generations,
|
|
3290
|
-
page_size: input?.pageSize,
|
|
3291
|
-
page_token: input?.pageToken
|
|
3292
|
-
}) });
|
|
3293
|
-
return sendgridTemplateListSchema.parse(response ?? { result: [] });
|
|
3294
|
-
}
|
|
3295
|
-
});
|
|
3296
|
-
|
|
3297
|
-
//#endregion
|
|
3298
|
-
//#region src/operations/refresh-segment.operation.ts
|
|
3299
|
-
z.object({
|
|
3300
|
-
name: z.string().min(1),
|
|
3301
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
3302
|
-
queryDsl: z.string().min(1)
|
|
3303
|
-
});
|
|
3304
|
-
const refreshSegmentOperation = new Operation({
|
|
3305
|
-
credentialSets: [sendgridCredentialSet],
|
|
3306
|
-
id: "sendgrid.refresh-segment",
|
|
3307
|
-
name: "Refresh Segment",
|
|
3308
|
-
description: "Manually refresh a v2.0 segment to re-evaluate its membership.",
|
|
3309
|
-
input: z.object({ segmentId: sendgridIdSchema }),
|
|
3310
|
-
output: sendgridSegmentSchema,
|
|
3311
|
-
needsApproval: true,
|
|
3312
|
-
run: async (input, context) => {
|
|
3313
|
-
const credentials = context.credentials.sendgrid;
|
|
3314
|
-
const response = await createSendGridClient(credentials).request(`/marketing/segments/2.0/${encodeURIComponent(input.segmentId)}/refresh`, { method: "POST" });
|
|
3315
|
-
return sendgridSegmentSchema.parse(response);
|
|
3316
|
-
}
|
|
3317
|
-
});
|
|
3318
|
-
|
|
3319
|
-
//#endregion
|
|
3320
|
-
//#region src/operations/remove-contacts-from-list.operation.ts
|
|
3321
|
-
const removeContactsFromListOperation = new Operation({
|
|
3322
|
-
credentialSets: [sendgridCredentialSet],
|
|
3323
|
-
id: "sendgrid.remove-contacts-from-list",
|
|
3324
|
-
name: "Remove Contacts from List",
|
|
3325
|
-
description: "Remove the given contact IDs from a list. Contacts remain in the account (use deleteContacts to purge).",
|
|
3326
|
-
input: z.object({
|
|
3327
|
-
listId: sendgridIdSchema,
|
|
3328
|
-
contactIds: z.array(sendgridIdSchema).min(1).max(100)
|
|
3329
|
-
}),
|
|
3330
|
-
output: sendgridListRemoveContactsResultSchema,
|
|
3331
|
-
needsApproval: true,
|
|
3332
|
-
run: async (input, context) => {
|
|
3333
|
-
const credentials = context.credentials.sendgrid;
|
|
3334
|
-
const response = await createSendGridClient(credentials).request(`/marketing/lists/${encodeURIComponent(input.listId)}/contacts`, {
|
|
3335
|
-
method: "DELETE",
|
|
3336
|
-
query: { contact_ids: input.contactIds.join(",") }
|
|
3337
|
-
});
|
|
3338
|
-
return sendgridListRemoveContactsResultSchema.parse(response);
|
|
3339
|
-
}
|
|
3340
|
-
});
|
|
3341
|
-
|
|
3342
|
-
//#endregion
|
|
3343
|
-
//#region src/operations/remove-segment-without-affecting-contacts.operation.ts
|
|
3344
|
-
z.object({
|
|
3345
|
-
name: z.string().min(1),
|
|
3346
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
3347
|
-
queryDsl: z.string().min(1)
|
|
3348
|
-
});
|
|
3349
|
-
const removeSegmentWithoutContactsOperation = new Operation({
|
|
3350
|
-
credentialSets: [sendgridCredentialSet],
|
|
3351
|
-
id: "sendgrid.remove-segment-without-affecting-contacts",
|
|
3352
|
-
name: "Remove Segment Without Affecting Contacts",
|
|
3353
|
-
description: "Delete a v2.0 segment without removing any contacts.",
|
|
3354
|
-
input: z.object({ segmentId: sendgridIdSchema }),
|
|
3355
|
-
output: z.object({ success: z.boolean() }),
|
|
3356
|
-
needsApproval: true,
|
|
3357
|
-
run: async (input, context) => {
|
|
3358
|
-
const credentials = context.credentials.sendgrid;
|
|
3359
|
-
await createSendGridClient(credentials).request(`/marketing/segments/2.0/${encodeURIComponent(input.segmentId)}`, {
|
|
3360
|
-
method: "DELETE",
|
|
3361
|
-
query: { contacts: "false" }
|
|
3362
|
-
});
|
|
3363
|
-
return { success: true };
|
|
3364
|
-
}
|
|
3365
|
-
});
|
|
3366
|
-
|
|
3367
|
-
//#endregion
|
|
3368
|
-
//#region src/operations/resend-sender-identity-verification.operation.ts
|
|
3369
|
-
const verifiedSenderId$1 = z.number().int().positive();
|
|
3370
|
-
z.object({
|
|
3371
|
-
nickname: z.string().min(1),
|
|
3372
|
-
from_email: sendgridEmailSchema,
|
|
3373
|
-
from_name: z.string().optional(),
|
|
3374
|
-
reply_to: sendgridEmailSchema.optional(),
|
|
3375
|
-
reply_to_name: z.string().optional(),
|
|
3376
|
-
address: z.string().optional(),
|
|
3377
|
-
address2: z.string().optional(),
|
|
3378
|
-
city: z.string().optional(),
|
|
3379
|
-
state: z.string().optional(),
|
|
3380
|
-
zip: z.string().optional(),
|
|
3381
|
-
country: z.string().optional()
|
|
3382
|
-
});
|
|
3383
|
-
const resendSenderIdentityVerificationOperation = new Operation({
|
|
3384
|
-
credentialSets: [sendgridCredentialSet],
|
|
3385
|
-
id: "sendgrid.resend-sender-identity-verification",
|
|
3386
|
-
name: "Resend Sender Identity Verification",
|
|
3387
|
-
description: "Resend the verification email for a pending sender identity.",
|
|
3388
|
-
input: z.object({ id: verifiedSenderId$1 }),
|
|
3389
|
-
output: z.object({ success: z.boolean() }),
|
|
3390
|
-
needsApproval: true,
|
|
3391
|
-
run: async (input, context) => {
|
|
3392
|
-
const credentials = context.credentials.sendgrid;
|
|
3393
|
-
await createSendGridClient(credentials).request(`/verified_senders/resend/${input.id}`, { method: "POST" });
|
|
3394
|
-
return { success: true };
|
|
3395
|
-
}
|
|
3396
|
-
});
|
|
3397
|
-
|
|
3398
|
-
//#endregion
|
|
3399
|
-
//#region src/operations/schedule-single-send.operation.ts
|
|
3400
|
-
function base$3(path = "") {
|
|
3401
|
-
return `/marketing/singlesends${path}`;
|
|
3402
|
-
}
|
|
3403
|
-
z.object({
|
|
3404
|
-
name: z.string().min(1),
|
|
3405
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
3406
|
-
sendAt: z.iso.datetime().optional(),
|
|
3407
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
3408
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
3409
|
-
});
|
|
3410
|
-
const scheduleSingleSendOperation = new Operation({
|
|
3411
|
-
credentialSets: [sendgridCredentialSet],
|
|
3412
|
-
id: "sendgrid.schedule-single-send",
|
|
3413
|
-
name: "Schedule Single Send",
|
|
3414
|
-
description: "Schedule a Single Send for future delivery (pass `send_at: \"now\"` to send immediately).",
|
|
3415
|
-
input: z.object({ id: sendgridIdSchema }).and(sendgridSingleSendScheduleInputSchema),
|
|
3416
|
-
output: sendgridSingleSendSchema,
|
|
3417
|
-
needsApproval: true,
|
|
3418
|
-
run: async (input, context) => {
|
|
3419
|
-
const credentials = context.credentials.sendgrid;
|
|
3420
|
-
const response = await createSendGridClient(credentials).request(base$3(`/${encodeURIComponent(input.id)}/schedule`), {
|
|
3421
|
-
method: "PUT",
|
|
3422
|
-
body: { send_at: input.send_at }
|
|
3423
|
-
});
|
|
3424
|
-
return sendgridSingleSendSchema.parse(response);
|
|
3425
|
-
}
|
|
3426
|
-
});
|
|
3427
|
-
|
|
3428
|
-
//#endregion
|
|
3429
|
-
//#region src/operations/search-contacts.operation.ts
|
|
3430
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
3431
|
-
const searchContactsOperation = new Operation({
|
|
3432
|
-
credentialSets: [sendgridCredentialSet],
|
|
3433
|
-
id: "sendgrid.search-contacts",
|
|
3434
|
-
name: "Search Contacts",
|
|
3435
|
-
description: "Search contacts using a SQL-like `query` expression. Example: `email LIKE '%@example.com' AND last_name = 'Smith'`.",
|
|
3436
|
-
input: z.object({ query: z.string().min(1) }),
|
|
3437
|
-
output: sendgridContactSearchResultSchema,
|
|
3438
|
-
run: async (input, context) => {
|
|
3439
|
-
const credentials = context.credentials.sendgrid;
|
|
3440
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts/search", {
|
|
3441
|
-
method: "POST",
|
|
3442
|
-
body: { query: input.query }
|
|
3443
|
-
});
|
|
3444
|
-
return sendgridContactSearchResultSchema.parse(response ?? { result: [] });
|
|
3445
|
-
}
|
|
3446
|
-
});
|
|
3447
|
-
|
|
3448
|
-
//#endregion
|
|
3449
|
-
//#region src/operations/search-single-sends.operation.ts
|
|
3450
|
-
function base$2(path = "") {
|
|
3451
|
-
return `/marketing/singlesends${path}`;
|
|
3452
|
-
}
|
|
3453
|
-
z.object({
|
|
3454
|
-
name: z.string().min(1),
|
|
3455
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
3456
|
-
sendAt: z.iso.datetime().optional(),
|
|
3457
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
3458
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
3459
|
-
});
|
|
3460
|
-
const searchSingleSendsOperation = new Operation({
|
|
3461
|
-
credentialSets: [sendgridCredentialSet],
|
|
3462
|
-
id: "sendgrid.search-single-sends",
|
|
3463
|
-
name: "Search Single Sends",
|
|
3464
|
-
description: "Search Single Sends by name, status, or categories.",
|
|
3465
|
-
input: sendgridSingleSendSearchInputSchema,
|
|
3466
|
-
output: sendgridSingleSendListSchema,
|
|
3467
|
-
run: async (input, context) => {
|
|
3468
|
-
const credentials = context.credentials.sendgrid;
|
|
3469
|
-
const response = await createSendGridClient(credentials).request(base$2("/search"), {
|
|
3470
|
-
method: "POST",
|
|
3471
|
-
body: omitUndefined({
|
|
3472
|
-
name: input.name,
|
|
3473
|
-
status: input.status,
|
|
3474
|
-
categories: input.categories
|
|
3475
|
-
})
|
|
3476
|
-
});
|
|
3477
|
-
return sendgridSingleSendListSchema.parse(response ?? { result: [] });
|
|
3478
|
-
}
|
|
3479
|
-
});
|
|
3480
|
-
|
|
3481
|
-
//#endregion
|
|
3482
|
-
//#region src/operations/search-suppressions-in-group.operation.ts
|
|
3483
|
-
const groupId$1 = z.number().int().nonnegative();
|
|
3484
|
-
z.object({
|
|
3485
|
-
startTime: z.number().int().optional(),
|
|
3486
|
-
endTime: z.number().int().optional()
|
|
3487
|
-
}).optional();
|
|
3488
|
-
const searchSuppressionsInGroupOperation = new Operation({
|
|
3489
|
-
credentialSets: [sendgridCredentialSet],
|
|
3490
|
-
id: "sendgrid.search-suppressions-in-group",
|
|
3491
|
-
name: "Search Suppressions in Group",
|
|
3492
|
-
description: "Check which of the given emails are currently suppressed in a specific group.",
|
|
3493
|
-
input: z.object({
|
|
3494
|
-
groupId: groupId$1,
|
|
3495
|
-
recipientEmails: z.array(sendgridEmailSchema).min(1)
|
|
3496
|
-
}),
|
|
3497
|
-
output: z.object({ recipient_emails: z.array(z.string()) }),
|
|
3498
|
-
run: async (input, context) => {
|
|
3499
|
-
const credentials = context.credentials.sendgrid;
|
|
3500
|
-
const response = await createSendGridClient(credentials).request(`/asm/groups/${input.groupId}/suppressions/search`, {
|
|
3501
|
-
method: "POST",
|
|
3502
|
-
body: { recipient_emails: input.recipientEmails }
|
|
3503
|
-
});
|
|
3504
|
-
return z.object({ recipient_emails: z.array(z.string()) }).parse(response ?? { recipient_emails: [] });
|
|
3505
|
-
}
|
|
3506
|
-
});
|
|
3507
|
-
|
|
3508
|
-
//#endregion
|
|
3509
|
-
//#region src/operations/send-email.operation.ts
|
|
3510
|
-
function mapEmailAddress(value) {
|
|
3511
|
-
return omitUndefined({
|
|
3512
|
-
email: value.email,
|
|
3513
|
-
name: value.name
|
|
3514
|
-
});
|
|
3515
|
-
}
|
|
3516
|
-
function mapEmailAddressList(value) {
|
|
3517
|
-
if (!value) return void 0;
|
|
3518
|
-
return value.map(mapEmailAddress);
|
|
3519
|
-
}
|
|
3520
|
-
function mapPersonalization(p) {
|
|
3521
|
-
return omitUndefined({
|
|
3522
|
-
to: p.to.map(mapEmailAddress),
|
|
3523
|
-
cc: mapEmailAddressList(p.cc),
|
|
3524
|
-
bcc: mapEmailAddressList(p.bcc),
|
|
3525
|
-
from: p.from ? mapEmailAddress(p.from) : void 0,
|
|
3526
|
-
subject: p.subject,
|
|
3527
|
-
headers: p.headers,
|
|
3528
|
-
substitutions: p.substitutions,
|
|
3529
|
-
dynamic_template_data: p.dynamicTemplateData,
|
|
3530
|
-
custom_args: p.customArgs,
|
|
3531
|
-
send_at: p.sendAt
|
|
3532
|
-
});
|
|
3533
|
-
}
|
|
3534
|
-
function mapMailSettings(settings) {
|
|
3535
|
-
if (!settings) return void 0;
|
|
3536
|
-
return omitUndefined({
|
|
3537
|
-
sandbox_mode: settings.sandboxMode,
|
|
3538
|
-
bypass_list_management: settings.bypassListManagement,
|
|
3539
|
-
bypass_spam_management: settings.bypassSpamManagement,
|
|
3540
|
-
bypass_bounce_management: settings.bypassBounceManagement,
|
|
3541
|
-
bypass_unsubscribe_management: settings.bypassUnsubscribeManagement,
|
|
3542
|
-
footer: settings.footer
|
|
3543
|
-
});
|
|
3544
|
-
}
|
|
3545
|
-
function mapTrackingSettings(settings) {
|
|
3546
|
-
if (!settings) return void 0;
|
|
3547
|
-
return omitUndefined({
|
|
3548
|
-
click_tracking: settings.clickTracking ? omitUndefined({
|
|
3549
|
-
enable: settings.clickTracking.enable,
|
|
3550
|
-
enable_text: settings.clickTracking.enableText
|
|
3551
|
-
}) : void 0,
|
|
3552
|
-
open_tracking: settings.openTracking ? omitUndefined({
|
|
3553
|
-
enable: settings.openTracking.enable,
|
|
3554
|
-
substitution_tag: settings.openTracking.substitutionTag
|
|
3555
|
-
}) : void 0,
|
|
3556
|
-
subscription_tracking: settings.subscriptionTracking,
|
|
3557
|
-
ganalytics: settings.ganalytics ? omitUndefined({
|
|
3558
|
-
enable: settings.ganalytics.enable,
|
|
3559
|
-
utm_source: settings.ganalytics.utmSource,
|
|
3560
|
-
utm_medium: settings.ganalytics.utmMedium,
|
|
3561
|
-
utm_term: settings.ganalytics.utmTerm,
|
|
3562
|
-
utm_content: settings.ganalytics.utmContent,
|
|
3563
|
-
utm_campaign: settings.ganalytics.utmCampaign
|
|
3564
|
-
}) : void 0
|
|
3565
|
-
});
|
|
3566
|
-
}
|
|
3567
|
-
function mapMailSendInput(input) {
|
|
3568
|
-
return omitUndefined({
|
|
3569
|
-
personalizations: input.personalizations.map(mapPersonalization),
|
|
3570
|
-
from: mapEmailAddress(input.from),
|
|
3571
|
-
reply_to: input.replyTo ? mapEmailAddress(input.replyTo) : void 0,
|
|
3572
|
-
reply_to_list: mapEmailAddressList(input.replyToList),
|
|
3573
|
-
subject: input.subject,
|
|
3574
|
-
content: input.content,
|
|
3575
|
-
template_id: input.templateId,
|
|
3576
|
-
attachments: input.attachments?.map((a) => omitUndefined({
|
|
3577
|
-
content: a.content,
|
|
3578
|
-
type: a.type,
|
|
3579
|
-
filename: a.filename,
|
|
3580
|
-
disposition: a.disposition,
|
|
3581
|
-
content_id: a.contentId
|
|
3582
|
-
})),
|
|
3583
|
-
categories: input.categories,
|
|
3584
|
-
custom_args: input.customArgs,
|
|
3585
|
-
send_at: input.sendAt,
|
|
3586
|
-
batch_id: input.batchId,
|
|
3587
|
-
asm: input.asm,
|
|
3588
|
-
ip_pool_name: input.ipPoolName,
|
|
3589
|
-
mail_settings: mapMailSettings(input.mailSettings),
|
|
3590
|
-
tracking_settings: mapTrackingSettings(input.trackingSettings),
|
|
3591
|
-
headers: input.headers
|
|
3592
|
-
});
|
|
3593
|
-
}
|
|
3594
|
-
const sendEmailOperation = new Operation({
|
|
3595
|
-
credentialSets: [sendgridCredentialSet],
|
|
3596
|
-
id: "sendgrid.send-email",
|
|
3597
|
-
name: "Send Email",
|
|
3598
|
-
description: "Send a transactional email via SendGrid (v3 Mail Send). Supports personalizations, dynamic templates, attachments, categories, custom args, sandbox mode, scheduled `send_at`, batch IDs, and ASM.",
|
|
3599
|
-
input: sendgridMailSendInputSchema,
|
|
3600
|
-
output: sendgridMailSendResultSchema,
|
|
3601
|
-
needsApproval: true,
|
|
3602
|
-
run: async (input, context) => {
|
|
3603
|
-
const credentials = context.credentials.sendgrid;
|
|
3604
|
-
const header = (await createSendGridClient(credentials).request("/mail/send", {
|
|
3605
|
-
method: "POST",
|
|
3606
|
-
body: mapMailSendInput(input)
|
|
3607
|
-
}))?.messageId;
|
|
3608
|
-
return sendgridMailSendResultSchema.parse({
|
|
3609
|
-
accepted: true,
|
|
3610
|
-
...header !== void 0 ? { messageId: header } : {}
|
|
3611
|
-
});
|
|
3612
|
-
}
|
|
3613
|
-
});
|
|
3614
|
-
|
|
3615
|
-
//#endregion
|
|
3616
|
-
//#region src/operations/send-test-marketing-email.operation.ts
|
|
3617
|
-
z.object({
|
|
3618
|
-
name: z.string().min(1),
|
|
3619
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
3620
|
-
sendAt: z.iso.datetime().optional(),
|
|
3621
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
3622
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
3623
|
-
});
|
|
3624
|
-
const sendTestMarketingEmailOperation = new Operation({
|
|
3625
|
-
credentialSets: [sendgridCredentialSet],
|
|
3626
|
-
id: "sendgrid.send-test-marketing-email",
|
|
3627
|
-
name: "Send Test Marketing Email",
|
|
3628
|
-
description: "Send a Marketing Campaigns test email to the given recipients.",
|
|
3629
|
-
input: sendgridSingleSendTestInputSchema,
|
|
3630
|
-
output: z.object({ success: z.boolean() }),
|
|
3631
|
-
needsApproval: true,
|
|
3632
|
-
run: async (input, context) => {
|
|
3633
|
-
const credentials = context.credentials.sendgrid;
|
|
3634
|
-
await createSendGridClient(credentials).request("/marketing/test/send_email", {
|
|
3635
|
-
method: "POST",
|
|
3636
|
-
body: omitUndefined({
|
|
3637
|
-
template_id: input.template_id,
|
|
3638
|
-
version_id_override: input.version_id_override,
|
|
3639
|
-
sender_id: input.sender_id,
|
|
3640
|
-
custom_unsubscribe_url: input.custom_unsubscribe_url,
|
|
3641
|
-
suppression_group_id: input.suppression_group_id,
|
|
3642
|
-
emails: input.emails,
|
|
3643
|
-
from_address: input.from_address
|
|
3644
|
-
})
|
|
3645
|
-
});
|
|
3646
|
-
return { success: true };
|
|
3647
|
-
}
|
|
3648
|
-
});
|
|
3649
|
-
|
|
3650
|
-
//#endregion
|
|
3651
|
-
//#region src/operations/test-event-webhook.operation.ts
|
|
3652
|
-
z.string().min(1);
|
|
3653
|
-
z.object({
|
|
3654
|
-
friendly_name: z.string().optional(),
|
|
3655
|
-
enabled: z.boolean().optional(),
|
|
3656
|
-
url: z.string().url(),
|
|
3657
|
-
group_resubscribe: z.boolean().optional(),
|
|
3658
|
-
delivered: z.boolean().optional(),
|
|
3659
|
-
group_unsubscribe: z.boolean().optional(),
|
|
3660
|
-
spam_report: z.boolean().optional(),
|
|
3661
|
-
bounce: z.boolean().optional(),
|
|
3662
|
-
deferred: z.boolean().optional(),
|
|
3663
|
-
unsubscribe: z.boolean().optional(),
|
|
3664
|
-
processed: z.boolean().optional(),
|
|
3665
|
-
open: z.boolean().optional(),
|
|
3666
|
-
click: z.boolean().optional(),
|
|
3667
|
-
dropped: z.boolean().optional(),
|
|
3668
|
-
oauth_client_id: z.string().optional(),
|
|
3669
|
-
oauth_client_secret: z.string().optional(),
|
|
3670
|
-
oauth_token_url: z.string().optional()
|
|
3671
|
-
});
|
|
3672
|
-
const testEventWebhookOperation = new Operation({
|
|
3673
|
-
credentialSets: [sendgridCredentialSet],
|
|
3674
|
-
id: "sendgrid.test-event-webhook",
|
|
3675
|
-
name: "Test Event Webhook",
|
|
3676
|
-
description: "Ask SendGrid to POST a test payload to the configured Event Webhook URL.",
|
|
3677
|
-
input: z.object({ url: z.string().url() }),
|
|
3678
|
-
output: z.object({ success: z.boolean() }),
|
|
3679
|
-
needsApproval: true,
|
|
3680
|
-
run: async (input, context) => {
|
|
3681
|
-
const credentials = context.credentials.sendgrid;
|
|
3682
|
-
await createSendGridClient(credentials).request("/user/webhooks/event/test", {
|
|
3683
|
-
method: "POST",
|
|
3684
|
-
body: { url: input.url }
|
|
3685
|
-
});
|
|
3686
|
-
return { success: true };
|
|
3687
|
-
}
|
|
3688
|
-
});
|
|
3689
|
-
|
|
3690
|
-
//#endregion
|
|
3691
|
-
//#region src/operations/toggle-webhook-signature.operation.ts
|
|
3692
|
-
z.string().min(1);
|
|
3693
|
-
z.object({
|
|
3694
|
-
friendly_name: z.string().optional(),
|
|
3695
|
-
enabled: z.boolean().optional(),
|
|
3696
|
-
url: z.string().url(),
|
|
3697
|
-
group_resubscribe: z.boolean().optional(),
|
|
3698
|
-
delivered: z.boolean().optional(),
|
|
3699
|
-
group_unsubscribe: z.boolean().optional(),
|
|
3700
|
-
spam_report: z.boolean().optional(),
|
|
3701
|
-
bounce: z.boolean().optional(),
|
|
3702
|
-
deferred: z.boolean().optional(),
|
|
3703
|
-
unsubscribe: z.boolean().optional(),
|
|
3704
|
-
processed: z.boolean().optional(),
|
|
3705
|
-
open: z.boolean().optional(),
|
|
3706
|
-
click: z.boolean().optional(),
|
|
3707
|
-
dropped: z.boolean().optional(),
|
|
3708
|
-
oauth_client_id: z.string().optional(),
|
|
3709
|
-
oauth_client_secret: z.string().optional(),
|
|
3710
|
-
oauth_token_url: z.string().optional()
|
|
3711
|
-
});
|
|
3712
|
-
const toggleWebhookSignatureOperation = new Operation({
|
|
3713
|
-
credentialSets: [sendgridCredentialSet],
|
|
3714
|
-
id: "sendgrid.toggle-webhook-signature",
|
|
3715
|
-
name: "Toggle Webhook Signature",
|
|
3716
|
-
description: "Enable or disable Ed25519 signing on Event Webhook deliveries.",
|
|
3717
|
-
input: z.object({ enabled: z.boolean() }),
|
|
3718
|
-
output: sendgridSignatureToggleSchema,
|
|
3719
|
-
needsApproval: true,
|
|
3720
|
-
run: async (input, context) => {
|
|
3721
|
-
const credentials = context.credentials.sendgrid;
|
|
3722
|
-
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings/signed", {
|
|
3723
|
-
method: "PATCH",
|
|
3724
|
-
body: { enabled: input.enabled }
|
|
3725
|
-
});
|
|
3726
|
-
return sendgridSignatureToggleSchema.parse(response);
|
|
3727
|
-
}
|
|
3728
|
-
});
|
|
3729
|
-
|
|
3730
|
-
//#endregion
|
|
3731
|
-
//#region src/operations/unschedule-single-send.operation.ts
|
|
3732
|
-
function base$1(path = "") {
|
|
3733
|
-
return `/marketing/singlesends${path}`;
|
|
3734
|
-
}
|
|
3735
|
-
z.object({
|
|
3736
|
-
name: z.string().min(1),
|
|
3737
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
3738
|
-
sendAt: z.iso.datetime().optional(),
|
|
3739
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
3740
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
3741
|
-
});
|
|
3742
|
-
const unscheduleSingleSendOperation = new Operation({
|
|
3743
|
-
credentialSets: [sendgridCredentialSet],
|
|
3744
|
-
id: "sendgrid.unschedule-single-send",
|
|
3745
|
-
name: "Unschedule Single Send",
|
|
3746
|
-
description: "Cancel a scheduled Single Send delivery.",
|
|
3747
|
-
input: z.object({ id: sendgridIdSchema }),
|
|
3748
|
-
output: z.object({ success: z.boolean() }),
|
|
3749
|
-
needsApproval: true,
|
|
3750
|
-
run: async (input, context) => {
|
|
3751
|
-
const credentials = context.credentials.sendgrid;
|
|
3752
|
-
await createSendGridClient(credentials).request(base$1(`/${encodeURIComponent(input.id)}/schedule`), { method: "DELETE" });
|
|
3753
|
-
return { success: true };
|
|
3754
|
-
}
|
|
3755
|
-
});
|
|
3756
|
-
|
|
3757
|
-
//#endregion
|
|
3758
|
-
//#region src/operations/update-alert.operation.ts
|
|
3759
|
-
const alertId = z.number().int().positive();
|
|
3760
|
-
const alertInput = z.object({
|
|
3761
|
-
type: sendgridAlertTypeSchema,
|
|
3762
|
-
emailTo: sendgridEmailSchema,
|
|
3763
|
-
frequency: sendgridAlertFrequencySchema.optional(),
|
|
3764
|
-
percentage: z.number().int().min(1).max(100).optional()
|
|
3765
|
-
});
|
|
3766
|
-
const updateAlertOperation = new Operation({
|
|
3767
|
-
credentialSets: [sendgridCredentialSet],
|
|
3768
|
-
id: "sendgrid.update-alert",
|
|
3769
|
-
name: "Update Alert",
|
|
3770
|
-
description: "Update an alert.",
|
|
3771
|
-
input: alertInput.partial().extend({ alertId }),
|
|
3772
|
-
output: sendgridAlertSchema,
|
|
3773
|
-
needsApproval: true,
|
|
3774
|
-
run: async (input, context) => {
|
|
3775
|
-
const credentials = context.credentials.sendgrid;
|
|
3776
|
-
const response = await createSendGridClient(credentials).request(`/alerts/${input.alertId}`, {
|
|
3777
|
-
method: "PATCH",
|
|
3778
|
-
body: omitUndefined({
|
|
3779
|
-
type: input.type,
|
|
3780
|
-
email_to: input.emailTo,
|
|
3781
|
-
frequency: input.frequency,
|
|
3782
|
-
percentage: input.percentage
|
|
3783
|
-
})
|
|
3784
|
-
});
|
|
3785
|
-
return sendgridAlertSchema.parse(response);
|
|
3786
|
-
}
|
|
3787
|
-
});
|
|
3788
|
-
|
|
3789
|
-
//#endregion
|
|
3790
|
-
//#region src/operations/update-api-key-name.operation.ts
|
|
3791
|
-
const updateApiKeyNameOperation = new Operation({
|
|
3792
|
-
credentialSets: [sendgridCredentialSet],
|
|
3793
|
-
id: "sendgrid.update-api-key-name",
|
|
3794
|
-
name: "Update API Key Name",
|
|
3795
|
-
description: "Rename an API key without changing its scopes.",
|
|
3796
|
-
input: z.object({
|
|
3797
|
-
apiKeyId: sendgridIdSchema,
|
|
3798
|
-
name: z.string().min(1)
|
|
3799
|
-
}),
|
|
3800
|
-
output: sendgridApiKeySchema,
|
|
3801
|
-
needsApproval: true,
|
|
3802
|
-
run: async (input, context) => {
|
|
3803
|
-
const credentials = context.credentials.sendgrid;
|
|
3804
|
-
const response = await createSendGridClient(credentials).request(`/api_keys/${encodeURIComponent(input.apiKeyId)}`, {
|
|
3805
|
-
method: "PATCH",
|
|
3806
|
-
body: { name: input.name }
|
|
3807
|
-
});
|
|
3808
|
-
return sendgridApiKeySchema.parse(response);
|
|
3809
|
-
}
|
|
3810
|
-
});
|
|
3811
|
-
|
|
3812
|
-
//#endregion
|
|
3813
|
-
//#region src/operations/update-api-key-name-and-scopes.operation.ts
|
|
3814
|
-
const updateApiKeyNameAndScopesOperation = new Operation({
|
|
3815
|
-
credentialSets: [sendgridCredentialSet],
|
|
3816
|
-
id: "sendgrid.update-api-key-name-and-scopes",
|
|
3817
|
-
name: "Update API Key Name and Scopes",
|
|
3818
|
-
description: "Update an API key by replacing the full set of scopes.",
|
|
3819
|
-
input: z.object({
|
|
3820
|
-
apiKeyId: sendgridIdSchema,
|
|
3821
|
-
name: z.string().min(1),
|
|
3822
|
-
scopes: z.array(z.string()).min(1)
|
|
3823
|
-
}),
|
|
3824
|
-
output: sendgridApiKeySchema,
|
|
3825
|
-
needsApproval: true,
|
|
3826
|
-
run: async (input, context) => {
|
|
3827
|
-
const credentials = context.credentials.sendgrid;
|
|
3828
|
-
const response = await createSendGridClient(credentials).request(`/api_keys/${encodeURIComponent(input.apiKeyId)}`, {
|
|
3829
|
-
method: "PUT",
|
|
3830
|
-
body: {
|
|
3831
|
-
name: input.name,
|
|
3832
|
-
scopes: input.scopes
|
|
3833
|
-
}
|
|
3834
|
-
});
|
|
3835
|
-
return sendgridApiKeySchema.parse(response);
|
|
3836
|
-
}
|
|
3837
|
-
});
|
|
3838
|
-
|
|
3839
|
-
//#endregion
|
|
3840
|
-
//#region src/operations/update-custom-field.operation.ts
|
|
3841
|
-
z.enum([
|
|
3842
|
-
"Text",
|
|
3843
|
-
"Number",
|
|
3844
|
-
"Date"
|
|
3845
|
-
]);
|
|
3846
|
-
const updateCustomFieldOperation = new Operation({
|
|
3847
|
-
credentialSets: [sendgridCredentialSet],
|
|
3848
|
-
id: "sendgrid.update-custom-field",
|
|
3849
|
-
name: "Update Custom Field",
|
|
3850
|
-
description: "Rename a Marketing Contacts custom field.",
|
|
3851
|
-
input: z.object({
|
|
3852
|
-
fieldId: sendgridIdSchema,
|
|
3853
|
-
name: z.string().min(1)
|
|
3854
|
-
}),
|
|
3855
|
-
output: sendgridCustomFieldDefinitionSchema,
|
|
3856
|
-
needsApproval: true,
|
|
3857
|
-
run: async (input, context) => {
|
|
3858
|
-
const credentials = context.credentials.sendgrid;
|
|
3859
|
-
const response = await createSendGridClient(credentials).request(`/marketing/field_definitions/${encodeURIComponent(input.fieldId)}`, {
|
|
3860
|
-
method: "PATCH",
|
|
3861
|
-
body: { name: input.name }
|
|
3862
|
-
});
|
|
3863
|
-
return sendgridCustomFieldDefinitionSchema.parse(response);
|
|
3864
|
-
}
|
|
3865
|
-
});
|
|
3866
|
-
|
|
3867
|
-
//#endregion
|
|
3868
|
-
//#region src/operations/update-event-webhook.operation.ts
|
|
3869
|
-
const webhookId = z.string().min(1);
|
|
3870
|
-
const eventWebhookInputSchema = z.object({
|
|
3871
|
-
friendly_name: z.string().optional(),
|
|
3872
|
-
enabled: z.boolean().optional(),
|
|
3873
|
-
url: z.string().url(),
|
|
3874
|
-
group_resubscribe: z.boolean().optional(),
|
|
3875
|
-
delivered: z.boolean().optional(),
|
|
3876
|
-
group_unsubscribe: z.boolean().optional(),
|
|
3877
|
-
spam_report: z.boolean().optional(),
|
|
3878
|
-
bounce: z.boolean().optional(),
|
|
3879
|
-
deferred: z.boolean().optional(),
|
|
3880
|
-
unsubscribe: z.boolean().optional(),
|
|
3881
|
-
processed: z.boolean().optional(),
|
|
3882
|
-
open: z.boolean().optional(),
|
|
3883
|
-
click: z.boolean().optional(),
|
|
3884
|
-
dropped: z.boolean().optional(),
|
|
3885
|
-
oauth_client_id: z.string().optional(),
|
|
3886
|
-
oauth_client_secret: z.string().optional(),
|
|
3887
|
-
oauth_token_url: z.string().optional()
|
|
3888
|
-
});
|
|
3889
|
-
const updateEventWebhookOperation = new Operation({
|
|
3890
|
-
credentialSets: [sendgridCredentialSet],
|
|
3891
|
-
id: "sendgrid.update-event-webhook",
|
|
3892
|
-
name: "Update Event Webhook",
|
|
3893
|
-
description: "Update an Event Webhook endpoint.",
|
|
3894
|
-
input: eventWebhookInputSchema.partial().extend({ webhookId }),
|
|
3895
|
-
output: sendgridEventWebhookSettingsSchema,
|
|
3896
|
-
needsApproval: true,
|
|
3897
|
-
run: async (input, context) => {
|
|
3898
|
-
const credentials = context.credentials.sendgrid;
|
|
3899
|
-
const client = createSendGridClient(credentials);
|
|
3900
|
-
const { webhookId: id, ...rest } = input;
|
|
3901
|
-
const response = await client.request(`/user/webhooks/event/settings/${encodeURIComponent(id)}`, {
|
|
3902
|
-
method: "PATCH",
|
|
3903
|
-
body: omitUndefined(rest)
|
|
3904
|
-
});
|
|
3905
|
-
return sendgridEventWebhookSettingsSchema.parse(response);
|
|
3906
|
-
}
|
|
3907
|
-
});
|
|
3908
|
-
|
|
3909
|
-
//#endregion
|
|
3910
|
-
//#region src/operations/update-list.operation.ts
|
|
3911
|
-
const updateListOperation = new Operation({
|
|
3912
|
-
credentialSets: [sendgridCredentialSet],
|
|
3913
|
-
id: "sendgrid.update-list",
|
|
3914
|
-
name: "Update Marketing List",
|
|
3915
|
-
description: "Rename a v3 marketing list.",
|
|
3916
|
-
input: z.object({
|
|
3917
|
-
listId: sendgridIdSchema,
|
|
3918
|
-
name: z.string().min(1)
|
|
3919
|
-
}),
|
|
3920
|
-
output: sendgridListSchema,
|
|
3921
|
-
needsApproval: true,
|
|
3922
|
-
run: async (input, context) => {
|
|
3923
|
-
const credentials = context.credentials.sendgrid;
|
|
3924
|
-
const response = await createSendGridClient(credentials).request(`/marketing/lists/${encodeURIComponent(input.listId)}`, {
|
|
3925
|
-
method: "PATCH",
|
|
3926
|
-
body: { name: input.name }
|
|
3927
|
-
});
|
|
3928
|
-
return sendgridListSchema.parse(response);
|
|
3929
|
-
}
|
|
3930
|
-
});
|
|
3931
|
-
|
|
3932
|
-
//#endregion
|
|
3933
|
-
//#region src/operations/update-parse-setting.operation.ts
|
|
3934
|
-
const hostname = z.string().min(1);
|
|
3935
|
-
const parseInputSchema = z.object({
|
|
3936
|
-
url: z.string().url(),
|
|
3937
|
-
hostname,
|
|
3938
|
-
spamCheck: z.boolean().optional(),
|
|
3939
|
-
sendRaw: z.boolean().optional()
|
|
3940
|
-
});
|
|
3941
|
-
const updateParseSettingOperation = new Operation({
|
|
3942
|
-
credentialSets: [sendgridCredentialSet],
|
|
3943
|
-
id: "sendgrid.update-parse-setting",
|
|
3944
|
-
name: "Update Inbound Parse Setting",
|
|
3945
|
-
description: "Update an Inbound Parse configuration (by hostname).",
|
|
3946
|
-
input: parseInputSchema.partial().extend({ hostname }),
|
|
3947
|
-
output: sendgridParseSettingSchema,
|
|
3948
|
-
needsApproval: true,
|
|
3949
|
-
run: async (input, context) => {
|
|
3950
|
-
const credentials = context.credentials.sendgrid;
|
|
3951
|
-
const response = await createSendGridClient(credentials).request(`/user/webhooks/parse/settings/${encodeURIComponent(input.hostname)}`, {
|
|
3952
|
-
method: "PATCH",
|
|
3953
|
-
body: omitUndefined({
|
|
3954
|
-
url: input.url,
|
|
3955
|
-
spam_check: input.spamCheck,
|
|
3956
|
-
send_raw: input.sendRaw
|
|
3957
|
-
})
|
|
3958
|
-
});
|
|
3959
|
-
return sendgridParseSettingSchema.parse(response);
|
|
3960
|
-
}
|
|
3961
|
-
});
|
|
3962
|
-
|
|
3963
|
-
//#endregion
|
|
3964
|
-
//#region src/operations/update-scheduled-send.operation.ts
|
|
3965
|
-
const updateScheduledSendOperation = new Operation({
|
|
3966
|
-
credentialSets: [sendgridCredentialSet],
|
|
3967
|
-
id: "sendgrid.update-scheduled-send",
|
|
3968
|
-
name: "Update Scheduled Send",
|
|
3969
|
-
description: "Toggle a scheduled batch between `cancel` and `pause`.",
|
|
3970
|
-
input: z.object({
|
|
3971
|
-
batchId: sendgridIdSchema,
|
|
3972
|
-
status: sendgridScheduledSendStatusSchema
|
|
3973
|
-
}),
|
|
3974
|
-
output: z.object({ success: z.boolean() }),
|
|
3975
|
-
needsApproval: true,
|
|
3976
|
-
run: async (input, context) => {
|
|
3977
|
-
const credentials = context.credentials.sendgrid;
|
|
3978
|
-
await createSendGridClient(credentials).request(`/user/scheduled_sends/${encodeURIComponent(input.batchId)}`, {
|
|
3979
|
-
method: "PATCH",
|
|
3980
|
-
body: { status: input.status }
|
|
3981
|
-
});
|
|
3982
|
-
return { success: true };
|
|
3983
|
-
}
|
|
3984
|
-
});
|
|
3985
|
-
|
|
3986
|
-
//#endregion
|
|
3987
|
-
//#region src/operations/update-segment.operation.ts
|
|
3988
|
-
z.object({
|
|
3989
|
-
name: z.string().min(1),
|
|
3990
|
-
parentListIds: z.array(sendgridIdSchema).optional(),
|
|
3991
|
-
queryDsl: z.string().min(1)
|
|
3992
|
-
});
|
|
3993
|
-
const updateSegmentOperation = new Operation({
|
|
3994
|
-
credentialSets: [sendgridCredentialSet],
|
|
3995
|
-
id: "sendgrid.update-segment",
|
|
3996
|
-
name: "Update Segment",
|
|
3997
|
-
description: "Update a v2.0 segment.",
|
|
3998
|
-
input: z.object({
|
|
3999
|
-
segmentId: sendgridIdSchema,
|
|
4000
|
-
name: z.string().min(1).optional(),
|
|
4001
|
-
queryDsl: z.string().min(1).optional()
|
|
4002
|
-
}),
|
|
4003
|
-
output: sendgridSegmentSchema,
|
|
4004
|
-
needsApproval: true,
|
|
4005
|
-
run: async (input, context) => {
|
|
4006
|
-
const credentials = context.credentials.sendgrid;
|
|
4007
|
-
const response = await createSendGridClient(credentials).request(`/marketing/segments/2.0/${encodeURIComponent(input.segmentId)}`, {
|
|
4008
|
-
method: "PATCH",
|
|
4009
|
-
body: omitUndefined({
|
|
4010
|
-
name: input.name,
|
|
4011
|
-
query_dsl: input.queryDsl
|
|
4012
|
-
})
|
|
4013
|
-
});
|
|
4014
|
-
return sendgridSegmentSchema.parse(response);
|
|
4015
|
-
}
|
|
4016
|
-
});
|
|
4017
|
-
|
|
4018
|
-
//#endregion
|
|
4019
|
-
//#region src/operations/update-sender.operation.ts
|
|
4020
|
-
const senderId = z.number().int().positive();
|
|
4021
|
-
const updateSenderOperation = new Operation({
|
|
4022
|
-
credentialSets: [sendgridCredentialSet],
|
|
4023
|
-
id: "sendgrid.update-sender",
|
|
4024
|
-
name: "Update Marketing Sender",
|
|
4025
|
-
description: "Update a Marketing Campaigns sender.",
|
|
4026
|
-
input: sendgridSenderAddressSchema.partial().extend({ senderId }),
|
|
4027
|
-
output: sendgridSenderSchema,
|
|
4028
|
-
needsApproval: true,
|
|
4029
|
-
run: async (input, context) => {
|
|
4030
|
-
const credentials = context.credentials.sendgrid;
|
|
4031
|
-
const client = createSendGridClient(credentials);
|
|
4032
|
-
const { senderId: id, ...rest } = input;
|
|
4033
|
-
const response = await client.request(`/marketing/senders/${id}`, {
|
|
4034
|
-
method: "PATCH",
|
|
4035
|
-
body: rest
|
|
4036
|
-
});
|
|
4037
|
-
return sendgridSenderSchema.parse(response);
|
|
4038
|
-
}
|
|
4039
|
-
});
|
|
4040
|
-
|
|
4041
|
-
//#endregion
|
|
4042
|
-
//#region src/operations/update-sender-identity.operation.ts
|
|
4043
|
-
const verifiedSenderId = z.number().int().positive();
|
|
4044
|
-
const verifiedSenderInput = z.object({
|
|
4045
|
-
nickname: z.string().min(1),
|
|
4046
|
-
from_email: sendgridEmailSchema,
|
|
4047
|
-
from_name: z.string().optional(),
|
|
4048
|
-
reply_to: sendgridEmailSchema.optional(),
|
|
4049
|
-
reply_to_name: z.string().optional(),
|
|
4050
|
-
address: z.string().optional(),
|
|
4051
|
-
address2: z.string().optional(),
|
|
4052
|
-
city: z.string().optional(),
|
|
4053
|
-
state: z.string().optional(),
|
|
4054
|
-
zip: z.string().optional(),
|
|
4055
|
-
country: z.string().optional()
|
|
4056
|
-
});
|
|
4057
|
-
const updateSenderIdentityOperation = new Operation({
|
|
4058
|
-
credentialSets: [sendgridCredentialSet],
|
|
4059
|
-
id: "sendgrid.update-sender-identity",
|
|
4060
|
-
name: "Update Verified Sender Identity",
|
|
4061
|
-
description: "Update a verified sender identity.",
|
|
4062
|
-
input: verifiedSenderInput.partial().extend({ id: verifiedSenderId }),
|
|
4063
|
-
output: sendgridVerifiedSenderSchema,
|
|
4064
|
-
needsApproval: true,
|
|
4065
|
-
run: async (input, context) => {
|
|
4066
|
-
const credentials = context.credentials.sendgrid;
|
|
4067
|
-
const client = createSendGridClient(credentials);
|
|
4068
|
-
const { id, ...rest } = input;
|
|
4069
|
-
const response = await client.request(`/verified_senders/${id}`, {
|
|
4070
|
-
method: "PATCH",
|
|
4071
|
-
body: rest
|
|
4072
|
-
});
|
|
4073
|
-
return sendgridVerifiedSenderSchema.parse(response);
|
|
4074
|
-
}
|
|
4075
|
-
});
|
|
4076
|
-
|
|
4077
|
-
//#endregion
|
|
4078
|
-
//#region src/operations/update-single-send.operation.ts
|
|
4079
|
-
function base(path = "") {
|
|
4080
|
-
return `/marketing/singlesends${path}`;
|
|
4081
|
-
}
|
|
4082
|
-
const singleSendBody = z.object({
|
|
4083
|
-
name: z.string().min(1),
|
|
4084
|
-
categories: z.array(z.string()).max(10).optional(),
|
|
4085
|
-
sendAt: z.iso.datetime().optional(),
|
|
4086
|
-
sendTo: sendgridSingleSendSendToSchema.optional(),
|
|
4087
|
-
emailConfig: sendgridSingleSendEmailConfigSchema.optional()
|
|
4088
|
-
});
|
|
4089
|
-
const updateSingleSendOperation = new Operation({
|
|
4090
|
-
credentialSets: [sendgridCredentialSet],
|
|
4091
|
-
id: "sendgrid.update-single-send",
|
|
4092
|
-
name: "Update Single Send",
|
|
4093
|
-
description: "Update a Single Send campaign.",
|
|
4094
|
-
input: singleSendBody.partial().extend({ id: sendgridIdSchema }),
|
|
4095
|
-
output: sendgridSingleSendSchema,
|
|
4096
|
-
needsApproval: true,
|
|
4097
|
-
run: async (input, context) => {
|
|
4098
|
-
const credentials = context.credentials.sendgrid;
|
|
4099
|
-
const response = await createSendGridClient(credentials).request(base(`/${encodeURIComponent(input.id)}`), {
|
|
4100
|
-
method: "PATCH",
|
|
4101
|
-
body: omitUndefined({
|
|
4102
|
-
name: input.name,
|
|
4103
|
-
categories: input.categories,
|
|
4104
|
-
send_at: input.sendAt,
|
|
4105
|
-
send_to: input.sendTo,
|
|
4106
|
-
email_config: input.emailConfig
|
|
4107
|
-
})
|
|
4108
|
-
});
|
|
4109
|
-
return sendgridSingleSendSchema.parse(response);
|
|
4110
|
-
}
|
|
4111
|
-
});
|
|
4112
|
-
|
|
4113
|
-
//#endregion
|
|
4114
|
-
//#region src/operations/update-suppression-group.operation.ts
|
|
4115
|
-
const groupId = z.number().int().nonnegative();
|
|
4116
|
-
z.object({
|
|
4117
|
-
startTime: z.number().int().optional(),
|
|
4118
|
-
endTime: z.number().int().optional()
|
|
4119
|
-
}).optional();
|
|
4120
|
-
const updateSuppressionGroupOperation = new Operation({
|
|
4121
|
-
credentialSets: [sendgridCredentialSet],
|
|
4122
|
-
id: "sendgrid.update-suppression-group",
|
|
4123
|
-
name: "Update Suppression Group",
|
|
4124
|
-
description: "Update a suppression group.",
|
|
4125
|
-
input: z.object({
|
|
4126
|
-
groupId,
|
|
4127
|
-
name: z.string().min(1).max(30).optional(),
|
|
4128
|
-
description: z.string().max(100).optional(),
|
|
4129
|
-
isDefault: z.boolean().optional()
|
|
4130
|
-
}),
|
|
4131
|
-
output: sendgridSuppressionGroupSchema,
|
|
4132
|
-
needsApproval: true,
|
|
4133
|
-
run: async (input, context) => {
|
|
4134
|
-
const credentials = context.credentials.sendgrid;
|
|
4135
|
-
const response = await createSendGridClient(credentials).request(`/asm/groups/${input.groupId}`, {
|
|
4136
|
-
method: "PATCH",
|
|
4137
|
-
body: omitUndefined({
|
|
4138
|
-
name: input.name,
|
|
4139
|
-
description: input.description,
|
|
4140
|
-
is_default: input.isDefault
|
|
4141
|
-
})
|
|
4142
|
-
});
|
|
4143
|
-
return sendgridSuppressionGroupSchema.parse(response);
|
|
4144
|
-
}
|
|
4145
|
-
});
|
|
4146
|
-
|
|
4147
|
-
//#endregion
|
|
4148
|
-
//#region src/operations/update-template.operation.ts
|
|
4149
|
-
function tpl$1(path) {
|
|
4150
|
-
return `/templates${path}`;
|
|
4151
|
-
}
|
|
4152
|
-
const updateTemplateOperation = new Operation({
|
|
4153
|
-
credentialSets: [sendgridCredentialSet],
|
|
4154
|
-
id: "sendgrid.update-template",
|
|
4155
|
-
name: "Edit Transactional Template",
|
|
4156
|
-
description: "Rename a transactional template.",
|
|
4157
|
-
input: z.object({
|
|
4158
|
-
templateId: sendgridIdSchema,
|
|
4159
|
-
name: z.string().min(1)
|
|
4160
|
-
}),
|
|
4161
|
-
output: sendgridTemplateSchema,
|
|
4162
|
-
needsApproval: true,
|
|
4163
|
-
run: async (input, context) => {
|
|
4164
|
-
const credentials = context.credentials.sendgrid;
|
|
4165
|
-
const response = await createSendGridClient(credentials).request(tpl$1(`/${encodeURIComponent(input.templateId)}`), {
|
|
4166
|
-
method: "PATCH",
|
|
4167
|
-
body: { name: input.name }
|
|
4168
|
-
});
|
|
4169
|
-
return sendgridTemplateSchema.parse(response);
|
|
4170
|
-
}
|
|
4171
|
-
});
|
|
4172
|
-
|
|
4173
|
-
//#endregion
|
|
4174
|
-
//#region src/operations/update-template-version.operation.ts
|
|
4175
|
-
function tpl(path) {
|
|
4176
|
-
return `/templates${path}`;
|
|
4177
|
-
}
|
|
4178
|
-
const updateTemplateVersionOperation = new Operation({
|
|
4179
|
-
credentialSets: [sendgridCredentialSet],
|
|
4180
|
-
id: "sendgrid.update-template-version",
|
|
4181
|
-
name: "Edit Template Version",
|
|
4182
|
-
description: "Update a version of a transactional template.",
|
|
4183
|
-
input: z.object({
|
|
4184
|
-
templateId: sendgridIdSchema,
|
|
4185
|
-
versionId: sendgridIdSchema,
|
|
4186
|
-
name: z.string().min(1).optional(),
|
|
4187
|
-
subject: z.string().optional(),
|
|
4188
|
-
htmlContent: z.string().optional(),
|
|
4189
|
-
plainContent: z.string().optional(),
|
|
4190
|
-
generatePlainContent: z.boolean().optional(),
|
|
4191
|
-
active: z.union([z.literal(0), z.literal(1)]).optional(),
|
|
4192
|
-
editor: z.enum(["code", "design"]).optional()
|
|
4193
|
-
}),
|
|
4194
|
-
output: sendgridTemplateVersionSchema,
|
|
4195
|
-
needsApproval: true,
|
|
4196
|
-
run: async (input, context) => {
|
|
4197
|
-
const credentials = context.credentials.sendgrid;
|
|
4198
|
-
const response = await createSendGridClient(credentials).request(tpl(`/${encodeURIComponent(input.templateId)}/versions/${encodeURIComponent(input.versionId)}`), {
|
|
4199
|
-
method: "PATCH",
|
|
4200
|
-
body: omitUndefined({
|
|
4201
|
-
name: input.name,
|
|
4202
|
-
subject: input.subject,
|
|
4203
|
-
html_content: input.htmlContent,
|
|
4204
|
-
plain_content: input.plainContent,
|
|
4205
|
-
generate_plain_content: input.generatePlainContent,
|
|
4206
|
-
active: input.active,
|
|
4207
|
-
editor: input.editor
|
|
4208
|
-
})
|
|
4209
|
-
});
|
|
4210
|
-
return sendgridTemplateVersionSchema.parse(response);
|
|
4211
|
-
}
|
|
4212
|
-
});
|
|
4213
|
-
|
|
4214
|
-
//#endregion
|
|
4215
|
-
//#region src/operations/upsert-contacts.operation.ts
|
|
4216
|
-
z.array(sendgridIdSchema).min(1).max(100);
|
|
4217
|
-
const upsertContactsOperation = new Operation({
|
|
4218
|
-
credentialSets: [sendgridCredentialSet],
|
|
4219
|
-
id: "sendgrid.upsert-contacts",
|
|
4220
|
-
name: "Add or Update Contacts",
|
|
4221
|
-
description: "Upsert up to 30,000 contacts in Marketing Contacts v3. Returns a job ID; processing is asynchronous.",
|
|
4222
|
-
input: z.object({
|
|
4223
|
-
listIds: z.array(sendgridIdSchema).optional(),
|
|
4224
|
-
contacts: z.array(sendgridContactInputSchema).min(1).max(3e4)
|
|
4225
|
-
}),
|
|
4226
|
-
output: sendgridUpsertContactsResultSchema,
|
|
4227
|
-
needsApproval: true,
|
|
4228
|
-
run: async (input, context) => {
|
|
4229
|
-
const credentials = context.credentials.sendgrid;
|
|
4230
|
-
const response = await createSendGridClient(credentials).request("/marketing/contacts", {
|
|
4231
|
-
method: "PUT",
|
|
4232
|
-
body: omitUndefined({
|
|
4233
|
-
list_ids: input.listIds,
|
|
4234
|
-
contacts: input.contacts
|
|
4235
|
-
})
|
|
4236
|
-
});
|
|
4237
|
-
return sendgridUpsertContactsResultSchema.parse(response);
|
|
4238
|
-
}
|
|
4239
|
-
});
|
|
4240
|
-
|
|
4241
|
-
//#endregion
|
|
4242
|
-
//#region src/operations/validate-authenticated-domain.operation.ts
|
|
4243
|
-
const domainId = z.number().int().positive();
|
|
4244
|
-
const validateAuthenticatedDomainOperation = new Operation({
|
|
4245
|
-
credentialSets: [sendgridCredentialSet],
|
|
4246
|
-
id: "sendgrid.validate-authenticated-domain",
|
|
4247
|
-
name: "Validate Authenticated Domain",
|
|
4248
|
-
description: "Ask SendGrid to re-check the DNS records of an authenticated domain.",
|
|
4249
|
-
input: z.object({ domainId }),
|
|
4250
|
-
output: sendgridDomainValidateResultSchema,
|
|
4251
|
-
needsApproval: true,
|
|
4252
|
-
run: async (input, context) => {
|
|
4253
|
-
const credentials = context.credentials.sendgrid;
|
|
4254
|
-
const response = await createSendGridClient(credentials).request(`/whitelabel/domains/${input.domainId}/validate`, { method: "POST" });
|
|
4255
|
-
return sendgridDomainValidateResultSchema.parse(response);
|
|
4256
|
-
}
|
|
4257
|
-
});
|
|
4258
|
-
|
|
4259
|
-
//#endregion
|
|
4260
|
-
//#region src/operations/validate-batch-id.operation.ts
|
|
4261
|
-
const validateBatchIdOperation = new Operation({
|
|
4262
|
-
credentialSets: [sendgridCredentialSet],
|
|
4263
|
-
id: "sendgrid.validate-batch-id",
|
|
4264
|
-
name: "Validate Batch ID",
|
|
4265
|
-
description: "Confirm a batch ID exists and is usable.",
|
|
4266
|
-
input: z.object({ batchId: sendgridIdSchema }),
|
|
4267
|
-
output: sendgridBatchIdSchema,
|
|
4268
|
-
run: async (input, context) => {
|
|
4269
|
-
const credentials = context.credentials.sendgrid;
|
|
4270
|
-
const response = await createSendGridClient(credentials).request(`/mail/batch/${encodeURIComponent(input.batchId)}`);
|
|
4271
|
-
return sendgridBatchIdSchema.parse(response);
|
|
4272
|
-
}
|
|
4273
|
-
});
|
|
4274
|
-
|
|
4275
|
-
//#endregion
|
|
4276
|
-
//#region src/operations/validate-email.operation.ts
|
|
4277
|
-
const validateEmailOperation = new Operation({
|
|
4278
|
-
credentialSets: [sendgridCredentialSet],
|
|
4279
|
-
id: "sendgrid.validate-email",
|
|
4280
|
-
name: "Validate Email",
|
|
4281
|
-
description: "Validate a single email address using SendGrid Email Validation. Requires the Email Validation add-on.",
|
|
4282
|
-
input: z.object({
|
|
4283
|
-
email: sendgridEmailSchema,
|
|
4284
|
-
source: z.string().max(30).optional()
|
|
4285
|
-
}),
|
|
4286
|
-
output: sendgridEmailValidationResponseSchema,
|
|
4287
|
-
run: async (input, context) => {
|
|
4288
|
-
const credentials = context.credentials.sendgrid;
|
|
4289
|
-
const response = await createSendGridClient(credentials).request("/validations/email", {
|
|
4290
|
-
method: "POST",
|
|
4291
|
-
body: omitUndefined({
|
|
4292
|
-
email: input.email,
|
|
4293
|
-
source: input.source
|
|
4294
|
-
})
|
|
4295
|
-
});
|
|
4296
|
-
return sendgridEmailValidationResponseSchema.parse(response);
|
|
4297
|
-
}
|
|
4298
|
-
});
|
|
4299
|
-
|
|
4300
|
-
//#endregion
|
|
4301
|
-
export { listBouncesOperation as $, deleteSpamReportsOperation as $t, removeSegmentWithoutContactsOperation as A, createListOperation as An, getContactsByIdsOperation as At, listSegmentsOperation as B, cancelOrPauseScheduledSendOperation as Bn, getBounceOperation as Bt, sendTestMarketingEmailOperation as C, createTemplateOperation as Cn, getListOperation as Ct, searchContactsOperation as D, createSenderOperation as Dn, getEventWebhookOperation as Dt, searchSingleSendsOperation as E, createSenderIdentityOperation as En, getGlobalEmailStatsOperation as Et, listSpamReportsOperation as F, createContactExportOperation as Fn, getContactExportStatusOperation as Ft, listInvalidEmailsOperation as G, getAccountInfoOperation as Gt, listParseSettingsOperation as H, addSuppressionsToGroupOperation as Hn, getAuthenticatedDomainOperation as Ht, listSingleSendsOperation as I, createBulkEmailValidationPresignedUrlOperation as In, getContactCountOperation as It, listGlobalSuppressionsOperation as J, duplicateSingleSendOperation as Jt, listGroupsForEmailOperation as K, filterSegmentsByParentsOperation as Kt, listSingleSendStatsOperation as L, createBatchIdOperation as Ln, getContactOperation as Lt, refreshSegmentOperation as M, createEventWebhookOperation as Mn, getContactsByEmailsOperation as Mt, listTemplatesOperation as N, createCustomFieldOperation as Nn, getContactSampleOperation as Nt, scheduleSingleSendOperation as O, createSegmentOperation as On, getEngagementQualityScoresOperation as Ot, listSuppressionGroupsOperation as P, createContactImportOperation as Pn, getContactImportStatusOperation as Pt, listBulkEmailValidationJobsOperation as Q, deleteSuppressionFromGroupOperation as Qt, listSendersOperation as R, createApiKeyOperation as Rn, getCategoryStatsOperation as Rt, testEventWebhookOperation as S, createTemplateVersionOperation as Sn, getListContactCountOperation as St, searchSuppressionsInGroupOperation as T, createSingleSendOperation as Tn, getGlobalSuppressionOperation as Tt, listMarketingListsOperation as U, addGlobalSuppressionsOperation as Un, getApiKeyOperation as Ut, listScheduledSendsOperation as V, bulkDeleteSingleSendsOperation as Vn, getBlockOperation as Vt, listMailboxProviderStatsOperation as W, activateTemplateVersionOperation as Wn, getAlertOperation as Wt, listEventWebhooksOperation as X, deleteTemplateOperation as Xt, listFieldDefinitionsOperation as Y, deleteTemplateVersionOperation as Yt, listContactExportsOperation as Z, deleteSuppressionGroupOperation as Zt, updateApiKeyNameAndScopesOperation as _, deleteBounceOperation as _n, getSenderOperation as _t, updateTemplateVersionOperation as a, deleteScheduledSendOperation as an, listAlertsOperation as at, unscheduleSingleSendOperation as b, deleteApiKeyOperation as bn, getParseStatsOperation as bt, updateSingleSendOperation as c, deleteLegacySegmentOperation as cn, getTemplateVersionOperation as ct, updateSegmentOperation as d, deleteGlobalSuppressionOperation as dn, getSpamReportOperation as dt, deleteSpamReportOperation as en, listBlocksOperation as et, updateScheduledSendOperation as f, deleteEventWebhookOperation as fn, getSingleSendStatsOperation as ft, updateCustomFieldOperation as g, deleteBouncesOperation as gn, getSenderIdentityOperation as gt, updateEventWebhookOperation as h, deleteContactIdentifierOperation as hn, getSignedPublicKeyOperation as ht, upsertContactsOperation as i, deleteSegmentOperation as in, listAllSuppressionsOperation as it, removeContactsFromListOperation as j, createLegacySegmentOperation as jn, getContactsByIdentifiersOperation as jt, resendSenderIdentityVerificationOperation as k, createParseSettingOperation as kn, getCreditBalanceOperation as kt, updateSenderIdentityOperation as l, deleteInvalidEmailsOperation as ln, getTemplateOperation as lt, updateListOperation as m, deleteContactsOperation as mn, getSingleSendOperation as mt, validateBatchIdOperation as n, deleteSenderIdentityOperation as nn, listAuthenticatedDomainsOperation as nt, updateTemplateOperation as o, deleteParseSettingOperation as on, getUserScopesOperation as ot, updateParseSettingOperation as p, deleteCustomFieldOperation as pn, getSingleSendClickStatsOperation as pt, listGroupSuppressionsOperation as q, duplicateTemplateOperation as qt, validateAuthenticatedDomainOperation as r, deleteSenderOperation as rn, listApiKeysOperation as rt, updateSuppressionGroupOperation as s, deleteListOperation as sn, getUserProfileOperation as st, validateEmailOperation as t, deleteSingleSendOperation as tn, listAutomationStatsOperation as tt, updateSenderOperation as u, deleteInvalidEmailOperation as un, getSuppressionGroupOperation as ut, updateApiKeyNameOperation as v, deleteBlocksOperation as vn, getSegmentOperation as vt, sendEmailOperation as w, createSuppressionGroupOperation as wn, getInvalidEmailOperation as wt, toggleWebhookSignatureOperation as x, deleteAlertOperation as xn, getParseSettingOperation as xt, updateAlertOperation as y, deleteBlockOperation as yn, getScheduledSendOperation as yt, listSenderIdentitiesOperation as z, createAlertOperation as zn, getBulkEmailValidationJobOperation as zt };
|