@keystrokehq/resend 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 +11 -74
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-contact-to-segment.cjs +19 -0
- package/dist/actions/add-contact-to-segment.cjs.map +1 -0
- package/dist/actions/add-contact-to-segment.d.cts +9 -0
- package/dist/actions/add-contact-to-segment.d.cts.map +1 -0
- package/dist/actions/add-contact-to-segment.d.mts +9 -0
- package/dist/actions/add-contact-to-segment.d.mts.map +1 -0
- package/dist/actions/add-contact-to-segment.mjs +16 -0
- package/dist/actions/add-contact-to-segment.mjs.map +1 -0
- package/dist/actions/cancel-email.cjs +19 -0
- package/dist/actions/cancel-email.cjs.map +1 -0
- package/dist/actions/cancel-email.d.cts +9 -0
- package/dist/actions/cancel-email.d.cts.map +1 -0
- package/dist/actions/cancel-email.d.mts +9 -0
- package/dist/actions/cancel-email.d.mts.map +1 -0
- package/dist/actions/cancel-email.mjs +16 -0
- package/dist/actions/cancel-email.mjs.map +1 -0
- package/dist/actions/create-api-key.cjs +23 -0
- package/dist/actions/create-api-key.cjs.map +1 -0
- package/dist/actions/create-api-key.d.cts +9 -0
- package/dist/actions/create-api-key.d.cts.map +1 -0
- package/dist/actions/create-api-key.d.mts +9 -0
- package/dist/actions/create-api-key.d.mts.map +1 -0
- package/dist/actions/create-api-key.mjs +20 -0
- package/dist/actions/create-api-key.mjs.map +1 -0
- package/dist/actions/create-audience.cjs +20 -0
- package/dist/actions/create-audience.cjs.map +1 -0
- package/dist/actions/create-audience.d.cts +9 -0
- package/dist/actions/create-audience.d.cts.map +1 -0
- package/dist/actions/create-audience.d.mts +9 -0
- package/dist/actions/create-audience.d.mts.map +1 -0
- package/dist/actions/create-audience.mjs +17 -0
- package/dist/actions/create-audience.mjs.map +1 -0
- package/dist/actions/create-contact-property.cjs +23 -0
- package/dist/actions/create-contact-property.cjs.map +1 -0
- package/dist/actions/create-contact-property.d.cts +9 -0
- package/dist/actions/create-contact-property.d.cts.map +1 -0
- package/dist/actions/create-contact-property.d.mts +9 -0
- package/dist/actions/create-contact-property.d.mts.map +1 -0
- package/dist/actions/create-contact-property.mjs +20 -0
- package/dist/actions/create-contact-property.mjs.map +1 -0
- package/dist/actions/create-contact-v2.cjs +33 -0
- package/dist/actions/create-contact-v2.cjs.map +1 -0
- package/dist/actions/create-contact-v2.d.cts +9 -0
- package/dist/actions/create-contact-v2.d.cts.map +1 -0
- package/dist/actions/create-contact-v2.d.mts +9 -0
- package/dist/actions/create-contact-v2.d.mts.map +1 -0
- package/dist/actions/create-contact-v2.mjs +30 -0
- package/dist/actions/create-contact-v2.mjs.map +1 -0
- package/dist/actions/create-contact.cjs +25 -0
- package/dist/actions/create-contact.cjs.map +1 -0
- package/dist/actions/create-contact.d.cts +9 -0
- package/dist/actions/create-contact.d.cts.map +1 -0
- package/dist/actions/create-contact.d.mts +9 -0
- package/dist/actions/create-contact.d.mts.map +1 -0
- package/dist/actions/create-contact.mjs +22 -0
- package/dist/actions/create-contact.mjs.map +1 -0
- package/dist/actions/create-domain.cjs +45 -0
- package/dist/actions/create-domain.cjs.map +1 -0
- package/dist/actions/create-domain.d.cts +9 -0
- package/dist/actions/create-domain.d.cts.map +1 -0
- package/dist/actions/create-domain.d.mts +9 -0
- package/dist/actions/create-domain.d.mts.map +1 -0
- package/dist/actions/create-domain.mjs +44 -0
- package/dist/actions/create-domain.mjs.map +1 -0
- package/dist/actions/create-template.cjs +36 -0
- package/dist/actions/create-template.cjs.map +1 -0
- package/dist/actions/create-template.d.cts +9 -0
- package/dist/actions/create-template.d.cts.map +1 -0
- package/dist/actions/create-template.d.mts +9 -0
- package/dist/actions/create-template.d.mts.map +1 -0
- package/dist/actions/create-template.mjs +33 -0
- package/dist/actions/create-template.mjs.map +1 -0
- package/dist/actions/create-topic.cjs +24 -0
- package/dist/actions/create-topic.cjs.map +1 -0
- package/dist/actions/create-topic.d.cts +9 -0
- package/dist/actions/create-topic.d.cts.map +1 -0
- package/dist/actions/create-topic.d.mts +9 -0
- package/dist/actions/create-topic.d.mts.map +1 -0
- package/dist/actions/create-topic.mjs +21 -0
- package/dist/actions/create-topic.mjs.map +1 -0
- package/dist/actions/create-webhook.cjs +23 -0
- package/dist/actions/create-webhook.cjs.map +1 -0
- package/dist/actions/create-webhook.d.cts +9 -0
- package/dist/actions/create-webhook.d.cts.map +1 -0
- package/dist/actions/create-webhook.d.mts +9 -0
- package/dist/actions/create-webhook.d.mts.map +1 -0
- package/dist/actions/create-webhook.mjs +20 -0
- package/dist/actions/create-webhook.mjs.map +1 -0
- package/dist/actions/delete-api-key.cjs +20 -0
- package/dist/actions/delete-api-key.cjs.map +1 -0
- package/dist/actions/delete-api-key.d.cts +9 -0
- package/dist/actions/delete-api-key.d.cts.map +1 -0
- package/dist/actions/delete-api-key.d.mts +9 -0
- package/dist/actions/delete-api-key.d.mts.map +1 -0
- package/dist/actions/delete-api-key.mjs +17 -0
- package/dist/actions/delete-api-key.mjs.map +1 -0
- package/dist/actions/delete-audience.cjs +19 -0
- package/dist/actions/delete-audience.cjs.map +1 -0
- package/dist/actions/delete-audience.d.cts +9 -0
- package/dist/actions/delete-audience.d.cts.map +1 -0
- package/dist/actions/delete-audience.d.mts +9 -0
- package/dist/actions/delete-audience.d.mts.map +1 -0
- package/dist/actions/delete-audience.mjs +16 -0
- package/dist/actions/delete-audience.mjs.map +1 -0
- package/dist/actions/delete-contact-by-id.cjs +20 -0
- package/dist/actions/delete-contact-by-id.cjs.map +1 -0
- package/dist/actions/delete-contact-by-id.d.cts +9 -0
- package/dist/actions/delete-contact-by-id.d.cts.map +1 -0
- package/dist/actions/delete-contact-by-id.d.mts +9 -0
- package/dist/actions/delete-contact-by-id.d.mts.map +1 -0
- package/dist/actions/delete-contact-by-id.mjs +17 -0
- package/dist/actions/delete-contact-by-id.mjs.map +1 -0
- package/dist/actions/delete-contact-property.cjs +20 -0
- package/dist/actions/delete-contact-property.cjs.map +1 -0
- package/dist/actions/delete-contact-property.d.cts +9 -0
- package/dist/actions/delete-contact-property.d.cts.map +1 -0
- package/dist/actions/delete-contact-property.d.mts +9 -0
- package/dist/actions/delete-contact-property.d.mts.map +1 -0
- package/dist/actions/delete-contact-property.mjs +17 -0
- package/dist/actions/delete-contact-property.mjs.map +1 -0
- package/dist/actions/delete-contact.cjs +24 -0
- package/dist/actions/delete-contact.cjs.map +1 -0
- package/dist/actions/delete-contact.d.cts +9 -0
- package/dist/actions/delete-contact.d.cts.map +1 -0
- package/dist/actions/delete-contact.d.mts +9 -0
- package/dist/actions/delete-contact.d.mts.map +1 -0
- package/dist/actions/delete-contact.mjs +21 -0
- package/dist/actions/delete-contact.mjs.map +1 -0
- package/dist/actions/delete-domain.cjs +20 -0
- package/dist/actions/delete-domain.cjs.map +1 -0
- package/dist/actions/delete-domain.d.cts +9 -0
- package/dist/actions/delete-domain.d.cts.map +1 -0
- package/dist/actions/delete-domain.d.mts +9 -0
- package/dist/actions/delete-domain.d.mts.map +1 -0
- package/dist/actions/delete-domain.mjs +17 -0
- package/dist/actions/delete-domain.mjs.map +1 -0
- package/dist/actions/delete-segment.cjs +20 -0
- package/dist/actions/delete-segment.cjs.map +1 -0
- package/dist/actions/delete-segment.d.cts +9 -0
- package/dist/actions/delete-segment.d.cts.map +1 -0
- package/dist/actions/delete-segment.d.mts +9 -0
- package/dist/actions/delete-segment.d.mts.map +1 -0
- package/dist/actions/delete-segment.mjs +17 -0
- package/dist/actions/delete-segment.mjs.map +1 -0
- package/dist/actions/delete-template.cjs +20 -0
- package/dist/actions/delete-template.cjs.map +1 -0
- package/dist/actions/delete-template.d.cts +9 -0
- package/dist/actions/delete-template.d.cts.map +1 -0
- package/dist/actions/delete-template.d.mts +9 -0
- package/dist/actions/delete-template.d.mts.map +1 -0
- package/dist/actions/delete-template.mjs +17 -0
- package/dist/actions/delete-template.mjs.map +1 -0
- package/dist/actions/delete-topic.cjs +20 -0
- package/dist/actions/delete-topic.cjs.map +1 -0
- package/dist/actions/delete-topic.d.cts +9 -0
- package/dist/actions/delete-topic.d.cts.map +1 -0
- package/dist/actions/delete-topic.d.mts +9 -0
- package/dist/actions/delete-topic.d.mts.map +1 -0
- package/dist/actions/delete-topic.mjs +17 -0
- package/dist/actions/delete-topic.mjs.map +1 -0
- package/dist/actions/delete-webhook.cjs +20 -0
- package/dist/actions/delete-webhook.cjs.map +1 -0
- package/dist/actions/delete-webhook.d.cts +9 -0
- package/dist/actions/delete-webhook.d.cts.map +1 -0
- package/dist/actions/delete-webhook.d.mts +9 -0
- package/dist/actions/delete-webhook.d.mts.map +1 -0
- package/dist/actions/delete-webhook.mjs +17 -0
- package/dist/actions/delete-webhook.mjs.map +1 -0
- package/dist/actions/duplicate-template.cjs +19 -0
- package/dist/actions/duplicate-template.cjs.map +1 -0
- package/dist/actions/duplicate-template.d.cts +9 -0
- package/dist/actions/duplicate-template.d.cts.map +1 -0
- package/dist/actions/duplicate-template.d.mts +9 -0
- package/dist/actions/duplicate-template.d.mts.map +1 -0
- package/dist/actions/duplicate-template.mjs +16 -0
- package/dist/actions/duplicate-template.mjs.map +1 -0
- package/dist/actions/get-contact-property.cjs +23 -0
- package/dist/actions/get-contact-property.cjs.map +1 -0
- package/dist/actions/get-contact-property.d.cts +9 -0
- package/dist/actions/get-contact-property.d.cts.map +1 -0
- package/dist/actions/get-contact-property.d.mts +9 -0
- package/dist/actions/get-contact-property.d.mts.map +1 -0
- package/dist/actions/get-contact-property.mjs +20 -0
- package/dist/actions/get-contact-property.mjs.map +1 -0
- package/dist/actions/get-contact.cjs +25 -0
- package/dist/actions/get-contact.cjs.map +1 -0
- package/dist/actions/get-contact.d.cts +9 -0
- package/dist/actions/get-contact.d.cts.map +1 -0
- package/dist/actions/get-contact.d.mts +9 -0
- package/dist/actions/get-contact.d.mts.map +1 -0
- package/dist/actions/get-contact.mjs +22 -0
- package/dist/actions/get-contact.mjs.map +1 -0
- package/dist/actions/get-email-attachment.cjs +30 -0
- package/dist/actions/get-email-attachment.cjs.map +1 -0
- package/dist/actions/get-email-attachment.d.cts +9 -0
- package/dist/actions/get-email-attachment.d.cts.map +1 -0
- package/dist/actions/get-email-attachment.d.mts +9 -0
- package/dist/actions/get-email-attachment.d.mts.map +1 -0
- package/dist/actions/get-email-attachment.mjs +29 -0
- package/dist/actions/get-email-attachment.mjs.map +1 -0
- package/dist/actions/get-segment.cjs +23 -0
- package/dist/actions/get-segment.cjs.map +1 -0
- package/dist/actions/get-segment.d.cts +9 -0
- package/dist/actions/get-segment.d.cts.map +1 -0
- package/dist/actions/get-segment.d.mts +9 -0
- package/dist/actions/get-segment.d.mts.map +1 -0
- package/dist/actions/get-segment.mjs +20 -0
- package/dist/actions/get-segment.mjs.map +1 -0
- package/dist/actions/get-template.cjs +47 -0
- package/dist/actions/get-template.cjs.map +1 -0
- package/dist/actions/get-template.d.cts +9 -0
- package/dist/actions/get-template.d.cts.map +1 -0
- package/dist/actions/get-template.d.mts +9 -0
- package/dist/actions/get-template.d.mts.map +1 -0
- package/dist/actions/get-template.mjs +46 -0
- package/dist/actions/get-template.mjs.map +1 -0
- package/dist/actions/get-topic.cjs +22 -0
- package/dist/actions/get-topic.cjs.map +1 -0
- package/dist/actions/get-topic.d.cts +9 -0
- package/dist/actions/get-topic.d.cts.map +1 -0
- package/dist/actions/get-topic.d.mts +9 -0
- package/dist/actions/get-topic.d.mts.map +1 -0
- package/dist/actions/get-topic.mjs +19 -0
- package/dist/actions/get-topic.mjs.map +1 -0
- package/dist/actions/get-webhook.cjs +24 -0
- package/dist/actions/get-webhook.cjs.map +1 -0
- package/dist/actions/get-webhook.d.cts +9 -0
- package/dist/actions/get-webhook.d.cts.map +1 -0
- package/dist/actions/get-webhook.d.mts +9 -0
- package/dist/actions/get-webhook.d.mts.map +1 -0
- package/dist/actions/get-webhook.mjs +21 -0
- package/dist/actions/get-webhook.mjs.map +1 -0
- package/dist/actions/index.cjs +125 -0
- package/dist/actions/index.d.cts +63 -0
- package/dist/actions/index.d.mts +63 -0
- package/dist/actions/index.mjs +63 -0
- package/dist/actions/list-all-contacts.cjs +32 -0
- package/dist/actions/list-all-contacts.cjs.map +1 -0
- package/dist/actions/list-all-contacts.d.cts +9 -0
- package/dist/actions/list-all-contacts.d.cts.map +1 -0
- package/dist/actions/list-all-contacts.d.mts +9 -0
- package/dist/actions/list-all-contacts.d.mts.map +1 -0
- package/dist/actions/list-all-contacts.mjs +31 -0
- package/dist/actions/list-all-contacts.mjs.map +1 -0
- package/dist/actions/list-api-keys.cjs +29 -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 +28 -0
- package/dist/actions/list-api-keys.mjs.map +1 -0
- package/dist/actions/list-audiences.cjs +29 -0
- package/dist/actions/list-audiences.cjs.map +1 -0
- package/dist/actions/list-audiences.d.cts +9 -0
- package/dist/actions/list-audiences.d.cts.map +1 -0
- package/dist/actions/list-audiences.d.mts +9 -0
- package/dist/actions/list-audiences.d.mts.map +1 -0
- package/dist/actions/list-audiences.mjs +28 -0
- package/dist/actions/list-audiences.mjs.map +1 -0
- package/dist/actions/list-broadcasts.cjs +32 -0
- package/dist/actions/list-broadcasts.cjs.map +1 -0
- package/dist/actions/list-broadcasts.d.cts +9 -0
- package/dist/actions/list-broadcasts.d.cts.map +1 -0
- package/dist/actions/list-broadcasts.d.mts +9 -0
- package/dist/actions/list-broadcasts.d.mts.map +1 -0
- package/dist/actions/list-broadcasts.mjs +31 -0
- package/dist/actions/list-broadcasts.mjs.map +1 -0
- package/dist/actions/list-contact-properties.cjs +31 -0
- package/dist/actions/list-contact-properties.cjs.map +1 -0
- package/dist/actions/list-contact-properties.d.cts +9 -0
- package/dist/actions/list-contact-properties.d.cts.map +1 -0
- package/dist/actions/list-contact-properties.d.mts +9 -0
- package/dist/actions/list-contact-properties.d.mts.map +1 -0
- package/dist/actions/list-contact-properties.mjs +30 -0
- package/dist/actions/list-contact-properties.mjs.map +1 -0
- package/dist/actions/list-contact-segments.cjs +30 -0
- package/dist/actions/list-contact-segments.cjs.map +1 -0
- package/dist/actions/list-contact-segments.d.cts +9 -0
- package/dist/actions/list-contact-segments.d.cts.map +1 -0
- package/dist/actions/list-contact-segments.d.mts +9 -0
- package/dist/actions/list-contact-segments.d.mts.map +1 -0
- package/dist/actions/list-contact-segments.mjs +29 -0
- package/dist/actions/list-contact-segments.mjs.map +1 -0
- package/dist/actions/list-contact-topics.cjs +31 -0
- package/dist/actions/list-contact-topics.cjs.map +1 -0
- package/dist/actions/list-contact-topics.d.cts +9 -0
- package/dist/actions/list-contact-topics.d.cts.map +1 -0
- package/dist/actions/list-contact-topics.d.mts +9 -0
- package/dist/actions/list-contact-topics.d.mts.map +1 -0
- package/dist/actions/list-contact-topics.mjs +30 -0
- package/dist/actions/list-contact-topics.mjs.map +1 -0
- package/dist/actions/list-contacts.cjs +33 -0
- package/dist/actions/list-contacts.cjs.map +1 -0
- package/dist/actions/list-contacts.d.cts +9 -0
- package/dist/actions/list-contacts.d.cts.map +1 -0
- package/dist/actions/list-contacts.d.mts +9 -0
- package/dist/actions/list-contacts.d.mts.map +1 -0
- package/dist/actions/list-contacts.mjs +32 -0
- package/dist/actions/list-contacts.mjs.map +1 -0
- package/dist/actions/list-domains.cjs +23 -0
- package/dist/actions/list-domains.cjs.map +1 -0
- package/dist/actions/list-domains.d.cts +9 -0
- package/dist/actions/list-domains.d.cts.map +1 -0
- package/dist/actions/list-domains.d.mts +9 -0
- package/dist/actions/list-domains.d.mts.map +1 -0
- package/dist/actions/list-domains.mjs +22 -0
- package/dist/actions/list-domains.mjs.map +1 -0
- package/dist/actions/list-email-attachments.cjs +35 -0
- package/dist/actions/list-email-attachments.cjs.map +1 -0
- package/dist/actions/list-email-attachments.d.cts +9 -0
- package/dist/actions/list-email-attachments.d.cts.map +1 -0
- package/dist/actions/list-email-attachments.d.mts +9 -0
- package/dist/actions/list-email-attachments.d.mts.map +1 -0
- package/dist/actions/list-email-attachments.mjs +34 -0
- package/dist/actions/list-email-attachments.mjs.map +1 -0
- package/dist/actions/list-emails.cjs +38 -0
- package/dist/actions/list-emails.cjs.map +1 -0
- package/dist/actions/list-emails.d.cts +9 -0
- package/dist/actions/list-emails.d.cts.map +1 -0
- package/dist/actions/list-emails.d.mts +9 -0
- package/dist/actions/list-emails.d.mts.map +1 -0
- package/dist/actions/list-emails.mjs +37 -0
- package/dist/actions/list-emails.mjs.map +1 -0
- package/dist/actions/list-received-emails.cjs +36 -0
- package/dist/actions/list-received-emails.cjs.map +1 -0
- package/dist/actions/list-received-emails.d.cts +9 -0
- package/dist/actions/list-received-emails.d.cts.map +1 -0
- package/dist/actions/list-received-emails.d.mts +9 -0
- package/dist/actions/list-received-emails.d.mts.map +1 -0
- package/dist/actions/list-received-emails.mjs +35 -0
- package/dist/actions/list-received-emails.mjs.map +1 -0
- package/dist/actions/list-segments.cjs +30 -0
- package/dist/actions/list-segments.cjs.map +1 -0
- package/dist/actions/list-segments.d.cts +9 -0
- package/dist/actions/list-segments.d.cts.map +1 -0
- package/dist/actions/list-segments.d.mts +9 -0
- package/dist/actions/list-segments.d.mts.map +1 -0
- package/dist/actions/list-segments.mjs +29 -0
- package/dist/actions/list-segments.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +33 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +32 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/list-topics.cjs +30 -0
- package/dist/actions/list-topics.cjs.map +1 -0
- package/dist/actions/list-topics.d.cts +9 -0
- package/dist/actions/list-topics.d.cts.map +1 -0
- package/dist/actions/list-topics.d.mts +9 -0
- package/dist/actions/list-topics.d.mts.map +1 -0
- package/dist/actions/list-topics.mjs +29 -0
- package/dist/actions/list-topics.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +31 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +30 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/publish-template.cjs +19 -0
- package/dist/actions/publish-template.cjs.map +1 -0
- package/dist/actions/publish-template.d.cts +9 -0
- package/dist/actions/publish-template.d.cts.map +1 -0
- package/dist/actions/publish-template.d.mts +9 -0
- package/dist/actions/publish-template.d.mts.map +1 -0
- package/dist/actions/publish-template.mjs +16 -0
- package/dist/actions/publish-template.mjs.map +1 -0
- package/dist/actions/remove-contact-from-segment.cjs +22 -0
- package/dist/actions/remove-contact-from-segment.cjs.map +1 -0
- package/dist/actions/remove-contact-from-segment.d.cts +9 -0
- package/dist/actions/remove-contact-from-segment.d.cts.map +1 -0
- package/dist/actions/remove-contact-from-segment.d.mts +9 -0
- package/dist/actions/remove-contact-from-segment.d.mts.map +1 -0
- package/dist/actions/remove-contact-from-segment.mjs +19 -0
- package/dist/actions/remove-contact-from-segment.mjs.map +1 -0
- package/dist/actions/retrieve-audience.cjs +21 -0
- package/dist/actions/retrieve-audience.cjs.map +1 -0
- package/dist/actions/retrieve-audience.d.cts +9 -0
- package/dist/actions/retrieve-audience.d.cts.map +1 -0
- package/dist/actions/retrieve-audience.d.mts +9 -0
- package/dist/actions/retrieve-audience.d.mts.map +1 -0
- package/dist/actions/retrieve-audience.mjs +18 -0
- package/dist/actions/retrieve-audience.mjs.map +1 -0
- package/dist/actions/retrieve-contact.cjs +27 -0
- package/dist/actions/retrieve-contact.cjs.map +1 -0
- package/dist/actions/retrieve-contact.d.cts +9 -0
- package/dist/actions/retrieve-contact.d.cts.map +1 -0
- package/dist/actions/retrieve-contact.d.mts +9 -0
- package/dist/actions/retrieve-contact.d.mts.map +1 -0
- package/dist/actions/retrieve-contact.mjs +24 -0
- package/dist/actions/retrieve-contact.mjs.map +1 -0
- package/dist/actions/retrieve-domain.cjs +23 -0
- package/dist/actions/retrieve-domain.cjs.map +1 -0
- package/dist/actions/retrieve-domain.d.cts +9 -0
- package/dist/actions/retrieve-domain.d.cts.map +1 -0
- package/dist/actions/retrieve-domain.d.mts +9 -0
- package/dist/actions/retrieve-domain.d.mts.map +1 -0
- package/dist/actions/retrieve-domain.mjs +20 -0
- package/dist/actions/retrieve-domain.mjs.map +1 -0
- package/dist/actions/retrieve-email.cjs +29 -0
- package/dist/actions/retrieve-email.cjs.map +1 -0
- package/dist/actions/retrieve-email.d.cts +9 -0
- package/dist/actions/retrieve-email.d.cts.map +1 -0
- package/dist/actions/retrieve-email.d.mts +9 -0
- package/dist/actions/retrieve-email.d.mts.map +1 -0
- package/dist/actions/retrieve-email.mjs +26 -0
- package/dist/actions/retrieve-email.mjs.map +1 -0
- package/dist/actions/send-batch-emails.cjs +31 -0
- package/dist/actions/send-batch-emails.cjs.map +1 -0
- package/dist/actions/send-batch-emails.d.cts +9 -0
- package/dist/actions/send-batch-emails.d.cts.map +1 -0
- package/dist/actions/send-batch-emails.d.mts +9 -0
- package/dist/actions/send-batch-emails.d.mts.map +1 -0
- package/dist/actions/send-batch-emails.mjs +30 -0
- package/dist/actions/send-batch-emails.mjs.map +1 -0
- package/dist/actions/send-email.cjs +31 -0
- package/dist/actions/send-email.cjs.map +1 -0
- package/dist/actions/send-email.d.cts +9 -0
- package/dist/actions/send-email.d.cts.map +1 -0
- package/dist/actions/send-email.d.mts +9 -0
- package/dist/actions/send-email.d.mts.map +1 -0
- package/dist/actions/send-email.mjs +28 -0
- package/dist/actions/send-email.mjs.map +1 -0
- package/dist/actions/update-broadcast.cjs +30 -0
- package/dist/actions/update-broadcast.cjs.map +1 -0
- package/dist/actions/update-broadcast.d.cts +9 -0
- package/dist/actions/update-broadcast.d.cts.map +1 -0
- package/dist/actions/update-broadcast.d.mts +9 -0
- package/dist/actions/update-broadcast.d.mts.map +1 -0
- package/dist/actions/update-broadcast.mjs +27 -0
- package/dist/actions/update-broadcast.mjs.map +1 -0
- package/dist/actions/update-contact-property.cjs +26 -0
- package/dist/actions/update-contact-property.cjs.map +1 -0
- package/dist/actions/update-contact-property.d.cts +9 -0
- package/dist/actions/update-contact-property.d.cts.map +1 -0
- package/dist/actions/update-contact-property.d.mts +9 -0
- package/dist/actions/update-contact-property.d.mts.map +1 -0
- package/dist/actions/update-contact-property.mjs +23 -0
- package/dist/actions/update-contact-property.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +24 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +21 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-domain.cjs +28 -0
- package/dist/actions/update-domain.cjs.map +1 -0
- package/dist/actions/update-domain.d.cts +9 -0
- package/dist/actions/update-domain.d.cts.map +1 -0
- package/dist/actions/update-domain.d.mts +9 -0
- package/dist/actions/update-domain.d.mts.map +1 -0
- package/dist/actions/update-domain.mjs +25 -0
- package/dist/actions/update-domain.mjs.map +1 -0
- package/dist/actions/update-email.cjs +22 -0
- package/dist/actions/update-email.cjs.map +1 -0
- package/dist/actions/update-email.d.cts +9 -0
- package/dist/actions/update-email.d.cts.map +1 -0
- package/dist/actions/update-email.d.mts +9 -0
- package/dist/actions/update-email.d.mts.map +1 -0
- package/dist/actions/update-email.mjs +19 -0
- package/dist/actions/update-email.mjs.map +1 -0
- package/dist/actions/update-template.cjs +38 -0
- package/dist/actions/update-template.cjs.map +1 -0
- package/dist/actions/update-template.d.cts +9 -0
- package/dist/actions/update-template.d.cts.map +1 -0
- package/dist/actions/update-template.d.mts +9 -0
- package/dist/actions/update-template.d.mts.map +1 -0
- package/dist/actions/update-template.mjs +35 -0
- package/dist/actions/update-template.mjs.map +1 -0
- package/dist/actions/update-topic.cjs +22 -0
- package/dist/actions/update-topic.cjs.map +1 -0
- package/dist/actions/update-topic.d.cts +9 -0
- package/dist/actions/update-topic.d.cts.map +1 -0
- package/dist/actions/update-topic.d.mts +9 -0
- package/dist/actions/update-topic.d.mts.map +1 -0
- package/dist/actions/update-topic.mjs +19 -0
- package/dist/actions/update-topic.mjs.map +1 -0
- package/dist/actions/update-webhook.cjs +24 -0
- package/dist/actions/update-webhook.cjs.map +1 -0
- package/dist/actions/update-webhook.d.cts +9 -0
- package/dist/actions/update-webhook.d.cts.map +1 -0
- package/dist/actions/update-webhook.d.mts +9 -0
- package/dist/actions/update-webhook.d.mts.map +1 -0
- package/dist/actions/update-webhook.mjs +21 -0
- package/dist/actions/update-webhook.mjs.map +1 -0
- package/dist/actions/verify-domain.cjs +19 -0
- package/dist/actions/verify-domain.cjs.map +1 -0
- package/dist/actions/verify-domain.d.cts +9 -0
- package/dist/actions/verify-domain.d.cts.map +1 -0
- package/dist/actions/verify-domain.d.mts +9 -0
- package/dist/actions/verify-domain.d.mts.map +1 -0
- package/dist/actions/verify-domain.mjs +16 -0
- package/dist/actions/verify-domain.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 +130 -0
- package/dist/index.d.cts +65 -0
- package/dist/index.d.mts +65 -4
- package/dist/index.mjs +66 -5
- package/package.json +31 -53
- package/LICENSE +0 -21
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/emails-DNEKKuhw.mjs +0 -590
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/resend.credential-set-BVQIXE4k.mjs +0 -18
- package/dist/resend.credential-set-CO_XYnvV.d.mts +0 -16
- package/dist/schemas/index.d.mts +0 -1292
- package/dist/schemas/index.mjs +0 -3
- package/dist/verify-resend-domain.operation-BusUhEql.d.mts +0 -1818
- package/dist/verify-resend-domain.operation-ClVQJYPC.mjs +0 -1481
|
@@ -1,1481 +0,0 @@
|
|
|
1
|
-
import { t as resendCredentialSet } from "./resend.credential-set-BVQIXE4k.mjs";
|
|
2
|
-
import { $ as listDomainsResponseSchema, G as listTemplatesResponseSchema, H as listTopicsResponseSchema, J as listSegmentContactsResponseSchema, K as templateDetailSchema, Q as domainDetailSchema, U as topicDefaultSubscriptionSchema, W as topicSchema, X as segmentDetailSchema, Y as listSegmentsResponseSchema, Z as domainCapabilitiesSchema, _ as webhookEventSelectionSchema, a as listAttachmentsResponseSchema, at as contactTopicsResponseSchema, c as sendEmailResponseSchema, ct as topicSubscriptionSchema, d as receivedAttachmentDetailSchema, dt as listBroadcastsResponseSchema, et as contactPropertySchema, f as receivedEmailDetailSchema, ft as apiKeyCreatedSchema, g as webhookDetailSchema, h as listWebhooksResponseSchema, ht as resendApiKeyPermissionSchema, i as emailDetailSchema, it as contactPropertiesValueSchema, l as listReceivedAttachmentsResponseSchema, lt as broadcastCreateInputSchema, m as logDetailSchema, mt as paginationQuerySchema, n as batchSendInputSchema, nt as listContactPropertiesResponseSchema, o as listEmailsResponseSchema, ot as listContactSegmentsResponseSchema, p as listLogsResponseSchema, pt as listApiKeysResponseSchema, q as templateWriteFieldsSchema, r as batchSendResponseSchema, rt as contactDetailSchema, s as sendEmailInputSchema, st as listContactsResponseSchema, t as attachmentDetailSchema, tt as contactPropertyTypeSchema, u as listReceivedEmailsResponseSchema, ut as broadcastDetailSchema, v as webhookStatusSchema, vt as resendRegionSchema, yt as resendTlsPolicySchema } from "./emails-DNEKKuhw.mjs";
|
|
3
|
-
import { Operation } from "@keystrokehq/core";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region ../../packages/integration-authoring/dist/http.mjs
|
|
7
|
-
/**
|
|
8
|
-
* Typed error thrown by `createJsonRestClient` for non-2xx responses.
|
|
9
|
-
*
|
|
10
|
-
* Includes the full HTTP status, status text, response headers, raw body
|
|
11
|
-
* string, and request URL/method so callers can make structured decisions
|
|
12
|
-
* (retry on 5xx, map 401/403 to `CredentialRevokedError`, read
|
|
13
|
-
* `Retry-After`, etc.) instead of parsing error messages.
|
|
14
|
-
*/
|
|
15
|
-
var JsonRestError = class extends Error {
|
|
16
|
-
name = "JsonRestError";
|
|
17
|
-
status;
|
|
18
|
-
statusText;
|
|
19
|
-
body;
|
|
20
|
-
headers;
|
|
21
|
-
url;
|
|
22
|
-
method;
|
|
23
|
-
constructor(init) {
|
|
24
|
-
super(`${init.errorPrefix}: ${init.status} ${init.statusText}${init.body ? ` — ${init.body}` : ""}`);
|
|
25
|
-
this.status = init.status;
|
|
26
|
-
this.statusText = init.statusText;
|
|
27
|
-
this.body = init.body;
|
|
28
|
-
this.headers = init.headers;
|
|
29
|
-
this.url = init.url;
|
|
30
|
-
this.method = init.method;
|
|
31
|
-
}
|
|
32
|
-
/** True for 401 and 403 responses (auth / permission failures). */
|
|
33
|
-
static isAuthError(error) {
|
|
34
|
-
return isJsonRestError(error) && (error.status === 401 || error.status === 403);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Structural type guard for `JsonRestError`. Tolerates cross-realm errors by
|
|
39
|
-
* checking the `name` property instead of relying on `instanceof`.
|
|
40
|
-
*/
|
|
41
|
-
function isJsonRestError(error) {
|
|
42
|
-
if (!error || typeof error !== "object") return false;
|
|
43
|
-
const candidate = error;
|
|
44
|
-
return candidate.name === "JsonRestError" && typeof candidate.status === "number" && typeof candidate.body === "string";
|
|
45
|
-
}
|
|
46
|
-
function buildQueryString(query) {
|
|
47
|
-
if (!query) return "";
|
|
48
|
-
const params = new URLSearchParams();
|
|
49
|
-
for (const [key, value] of Object.entries(query)) if (value !== void 0 && value !== null) params.set(key, String(value));
|
|
50
|
-
const qs = params.toString();
|
|
51
|
-
return qs ? `?${qs}` : "";
|
|
52
|
-
}
|
|
53
|
-
function createJsonRestClient(config) {
|
|
54
|
-
const fetchImpl = config.fetchImpl ?? fetch;
|
|
55
|
-
const request = async (options) => {
|
|
56
|
-
const { method, path, body, query, headers: requestHeaders } = options;
|
|
57
|
-
const url = `${config.baseUrl}${path}${buildQueryString(query)}`;
|
|
58
|
-
const headers = {
|
|
59
|
-
Accept: "application/json",
|
|
60
|
-
...config.defaultHeaders,
|
|
61
|
-
...config.authHeaders(),
|
|
62
|
-
...requestHeaders
|
|
63
|
-
};
|
|
64
|
-
if (body !== void 0) headers["Content-Type"] ??= "application/json";
|
|
65
|
-
const response = await fetchImpl(url, {
|
|
66
|
-
method,
|
|
67
|
-
headers,
|
|
68
|
-
body: body !== void 0 ? JSON.stringify(body) : void 0
|
|
69
|
-
});
|
|
70
|
-
if (!response.ok) {
|
|
71
|
-
const errorBody = await response.text().catch(() => "");
|
|
72
|
-
throw new JsonRestError({
|
|
73
|
-
errorPrefix: config.errorPrefix,
|
|
74
|
-
status: response.status,
|
|
75
|
-
statusText: response.statusText,
|
|
76
|
-
body: errorBody,
|
|
77
|
-
headers: response.headers,
|
|
78
|
-
url,
|
|
79
|
-
method
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
if (response.status === 204) return;
|
|
83
|
-
return await response.json();
|
|
84
|
-
};
|
|
85
|
-
return { request };
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region src/utils/client.ts
|
|
90
|
-
/**
|
|
91
|
-
* resend/client.ts
|
|
92
|
-
*
|
|
93
|
-
* Thin wrapper over the shared `createJsonRestClient` helper configured
|
|
94
|
-
* for the Resend API.
|
|
95
|
-
*
|
|
96
|
-
* Resend-specific notes:
|
|
97
|
-
* - Base URL is `https://api.resend.com` (no version prefix).
|
|
98
|
-
* - Auth is `Authorization: Bearer re_…`.
|
|
99
|
-
* - A `User-Agent` header is *mandatory*: missing UA = HTTP 403 with
|
|
100
|
-
* error code 1010. Always attach one.
|
|
101
|
-
* - `POST /emails` and `POST /emails/batch` honour an optional
|
|
102
|
-
* `Idempotency-Key` header (24h TTL, ≤256 chars). Pass it via
|
|
103
|
-
* `request({ headers: { 'Idempotency-Key': key } })`.
|
|
104
|
-
*/
|
|
105
|
-
const RESEND_BASE_URL = "https://api.resend.com";
|
|
106
|
-
/** User-Agent Resend sees on every request. Stable across minor releases. */
|
|
107
|
-
const RESEND_USER_AGENT = "keystroke-resend/0.0.0";
|
|
108
|
-
/**
|
|
109
|
-
* Create a Resend API client from resolved credentials.
|
|
110
|
-
*
|
|
111
|
-
* @param credentials - Resolved credentials containing `RESEND_API_KEY`.
|
|
112
|
-
* @param options - Optional overrides (primarily for testing).
|
|
113
|
-
* @returns A client with a typed `request` method.
|
|
114
|
-
*/
|
|
115
|
-
function createResendClient(credentials, options = {}) {
|
|
116
|
-
return createJsonRestClient({
|
|
117
|
-
baseUrl: options.baseUrl ?? RESEND_BASE_URL,
|
|
118
|
-
errorPrefix: "Resend API error",
|
|
119
|
-
authHeaders: () => ({ Authorization: `Bearer ${credentials.RESEND_API_KEY}` }),
|
|
120
|
-
defaultHeaders: { "User-Agent": options.userAgent ?? RESEND_USER_AGENT },
|
|
121
|
-
...options.fetchImpl ? { fetchImpl: options.fetchImpl } : {}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/operations/add-resend-contact-to-segment.operation.ts
|
|
127
|
-
const addContactToSegmentOperation = new Operation({
|
|
128
|
-
id: "resend.add-resend-contact-to-segment",
|
|
129
|
-
name: "Add Resend Contact to Segment",
|
|
130
|
-
description: "Add a contact to a segment.",
|
|
131
|
-
credentialSets: [resendCredentialSet],
|
|
132
|
-
input: z.object({
|
|
133
|
-
contact_id: z.string().min(1),
|
|
134
|
-
segment_id: z.string().min(1)
|
|
135
|
-
}),
|
|
136
|
-
output: z.object({}).passthrough(),
|
|
137
|
-
needsApproval: true,
|
|
138
|
-
run: async (input, context) => {
|
|
139
|
-
return createResendClient(context.credentials.resend).request({
|
|
140
|
-
method: "POST",
|
|
141
|
-
path: `/contacts/${encodeURIComponent(input.contact_id)}/segments/${encodeURIComponent(input.segment_id)}`
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
//#endregion
|
|
147
|
-
//#region src/operations/cancel-resend-scheduled-email.operation.ts
|
|
148
|
-
const cancelScheduledEmailOperation = new Operation({
|
|
149
|
-
id: "resend.cancel-resend-scheduled-email",
|
|
150
|
-
name: "Cancel Resend Scheduled Email",
|
|
151
|
-
description: "Cancel a scheduled email before it is sent.",
|
|
152
|
-
credentialSets: [resendCredentialSet],
|
|
153
|
-
input: z.object({ id: z.string().min(1) }),
|
|
154
|
-
output: z.object({
|
|
155
|
-
object: z.literal("email").optional(),
|
|
156
|
-
id: z.string()
|
|
157
|
-
}),
|
|
158
|
-
needsApproval: true,
|
|
159
|
-
run: async (input, context) => {
|
|
160
|
-
return createResendClient(context.credentials.resend).request({
|
|
161
|
-
method: "POST",
|
|
162
|
-
path: `/emails/${encodeURIComponent(input.id)}/cancel`
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/operations/create-resend-api-key.operation.ts
|
|
169
|
-
const createApiKeyOperation = new Operation({
|
|
170
|
-
id: "resend.create-resend-api-key",
|
|
171
|
-
name: "Create Resend API Key",
|
|
172
|
-
description: "Create a new API key. The cleartext token is returned once — store it immediately; Resend cannot retrieve it again.",
|
|
173
|
-
credentialSets: [resendCredentialSet],
|
|
174
|
-
input: z.object({
|
|
175
|
-
name: z.string().min(1).max(50),
|
|
176
|
-
permission: resendApiKeyPermissionSchema.default("full_access"),
|
|
177
|
-
domain_id: z.string().min(1).optional().describe("When set with permission=sending_access, restricts the key to sending from a single verified domain.")
|
|
178
|
-
}),
|
|
179
|
-
output: apiKeyCreatedSchema,
|
|
180
|
-
needsApproval: true,
|
|
181
|
-
run: async (input, context) => {
|
|
182
|
-
return createResendClient(context.credentials.resend).request({
|
|
183
|
-
method: "POST",
|
|
184
|
-
path: "/api-keys",
|
|
185
|
-
body: input
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/operations/create-resend-broadcast.operation.ts
|
|
192
|
-
const createBroadcastOperation = new Operation({
|
|
193
|
-
id: "resend.create-resend-broadcast",
|
|
194
|
-
name: "Create Resend Broadcast",
|
|
195
|
-
description: "Create a draft broadcast targeting a segment (or legacy audience).",
|
|
196
|
-
credentialSets: [resendCredentialSet],
|
|
197
|
-
input: broadcastCreateInputSchema,
|
|
198
|
-
output: broadcastDetailSchema,
|
|
199
|
-
needsApproval: true,
|
|
200
|
-
run: async (input, context) => {
|
|
201
|
-
return createResendClient(context.credentials.resend).request({
|
|
202
|
-
method: "POST",
|
|
203
|
-
path: "/broadcasts",
|
|
204
|
-
body: input
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region src/operations/create-resend-contact.operation.ts
|
|
211
|
-
const createContactOperation = new Operation({
|
|
212
|
-
id: "resend.create-resend-contact",
|
|
213
|
-
name: "Create Resend Contact",
|
|
214
|
-
description: "Create a contact.",
|
|
215
|
-
credentialSets: [resendCredentialSet],
|
|
216
|
-
input: z.object({
|
|
217
|
-
email: z.email(),
|
|
218
|
-
first_name: z.string().optional(),
|
|
219
|
-
last_name: z.string().optional(),
|
|
220
|
-
unsubscribed: z.boolean().optional(),
|
|
221
|
-
properties: z.record(z.string(), contactPropertiesValueSchema).optional(),
|
|
222
|
-
segment_ids: z.array(z.string().min(1)).optional(),
|
|
223
|
-
topic_subscriptions: z.array(topicSubscriptionSchema).optional()
|
|
224
|
-
}),
|
|
225
|
-
output: contactDetailSchema,
|
|
226
|
-
needsApproval: true,
|
|
227
|
-
run: async (input, context) => {
|
|
228
|
-
return createResendClient(context.credentials.resend).request({
|
|
229
|
-
method: "POST",
|
|
230
|
-
path: "/contacts",
|
|
231
|
-
body: input
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/operations/create-resend-contact-property.operation.ts
|
|
238
|
-
const createContactPropertyOperation = new Operation({
|
|
239
|
-
id: "resend.create-resend-contact-property",
|
|
240
|
-
name: "Create Resend Contact Property",
|
|
241
|
-
description: "Create a custom contact property.",
|
|
242
|
-
credentialSets: [resendCredentialSet],
|
|
243
|
-
input: z.object({
|
|
244
|
-
key: z.string().min(1).regex(/^[a-z0-9_]+$/, "Keys use a-z, 0-9, underscore."),
|
|
245
|
-
type: contactPropertyTypeSchema,
|
|
246
|
-
label: z.string().optional()
|
|
247
|
-
}),
|
|
248
|
-
output: contactPropertySchema,
|
|
249
|
-
needsApproval: true,
|
|
250
|
-
run: async (input, context) => {
|
|
251
|
-
return createResendClient(context.credentials.resend).request({
|
|
252
|
-
method: "POST",
|
|
253
|
-
path: "/contact-properties",
|
|
254
|
-
body: input
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/operations/create-resend-domain.operation.ts
|
|
261
|
-
const createDomainOperation = new Operation({
|
|
262
|
-
id: "resend.create-resend-domain",
|
|
263
|
-
name: "Create Resend Domain",
|
|
264
|
-
description: "Register a new sending or receiving domain.",
|
|
265
|
-
credentialSets: [resendCredentialSet],
|
|
266
|
-
input: z.object({
|
|
267
|
-
name: z.string().min(1),
|
|
268
|
-
region: resendRegionSchema.optional(),
|
|
269
|
-
custom_return_path: z.string().optional(),
|
|
270
|
-
open_tracking: z.boolean().optional(),
|
|
271
|
-
click_tracking: z.boolean().optional(),
|
|
272
|
-
tracking_subdomain: z.string().optional(),
|
|
273
|
-
tls: resendTlsPolicySchema.optional(),
|
|
274
|
-
capabilities: domainCapabilitiesSchema.optional()
|
|
275
|
-
}),
|
|
276
|
-
output: domainDetailSchema,
|
|
277
|
-
needsApproval: true,
|
|
278
|
-
run: async (input, context) => {
|
|
279
|
-
return createResendClient(context.credentials.resend).request({
|
|
280
|
-
method: "POST",
|
|
281
|
-
path: "/domains",
|
|
282
|
-
body: input
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region src/operations/create-resend-segment.operation.ts
|
|
289
|
-
const createSegmentOperation = new Operation({
|
|
290
|
-
id: "resend.create-resend-segment",
|
|
291
|
-
name: "Create Resend Segment",
|
|
292
|
-
description: "Create a new segment. The filter DSL is provider-native JSON.",
|
|
293
|
-
credentialSets: [resendCredentialSet],
|
|
294
|
-
input: z.object({
|
|
295
|
-
name: z.string().min(1),
|
|
296
|
-
filter: z.record(z.string(), z.unknown()).optional()
|
|
297
|
-
}),
|
|
298
|
-
output: segmentDetailSchema,
|
|
299
|
-
needsApproval: true,
|
|
300
|
-
run: async (input, context) => {
|
|
301
|
-
return createResendClient(context.credentials.resend).request({
|
|
302
|
-
method: "POST",
|
|
303
|
-
path: "/segments",
|
|
304
|
-
body: input
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
|
|
309
|
-
//#endregion
|
|
310
|
-
//#region src/operations/create-resend-template.operation.ts
|
|
311
|
-
const createTemplateOperation = new Operation({
|
|
312
|
-
id: "resend.create-resend-template",
|
|
313
|
-
name: "Create Resend Template",
|
|
314
|
-
description: "Create a new email template (draft).",
|
|
315
|
-
credentialSets: [resendCredentialSet],
|
|
316
|
-
input: templateWriteFieldsSchema,
|
|
317
|
-
output: templateDetailSchema,
|
|
318
|
-
needsApproval: true,
|
|
319
|
-
run: async (input, context) => {
|
|
320
|
-
return createResendClient(context.credentials.resend).request({
|
|
321
|
-
method: "POST",
|
|
322
|
-
path: "/templates",
|
|
323
|
-
body: input
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
|
|
328
|
-
//#endregion
|
|
329
|
-
//#region src/operations/create-resend-topic.operation.ts
|
|
330
|
-
const createTopicOperation = new Operation({
|
|
331
|
-
id: "resend.create-resend-topic",
|
|
332
|
-
name: "Create Resend Topic",
|
|
333
|
-
description: "Create a new subscription topic.",
|
|
334
|
-
credentialSets: [resendCredentialSet],
|
|
335
|
-
input: z.object({
|
|
336
|
-
name: z.string().min(1),
|
|
337
|
-
default_subscription: topicDefaultSubscriptionSchema,
|
|
338
|
-
description: z.string().optional()
|
|
339
|
-
}),
|
|
340
|
-
output: topicSchema,
|
|
341
|
-
needsApproval: true,
|
|
342
|
-
run: async (input, context) => {
|
|
343
|
-
return createResendClient(context.credentials.resend).request({
|
|
344
|
-
method: "POST",
|
|
345
|
-
path: "/topics",
|
|
346
|
-
body: input
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
//#endregion
|
|
352
|
-
//#region src/operations/create-resend-webhook.operation.ts
|
|
353
|
-
const createWebhookOperation = new Operation({
|
|
354
|
-
id: "resend.create-resend-webhook",
|
|
355
|
-
name: "Create Resend Webhook",
|
|
356
|
-
description: "Register a webhook endpoint. Response includes the Svix signing secret (whsec_…); store it securely.",
|
|
357
|
-
credentialSets: [resendCredentialSet],
|
|
358
|
-
input: z.object({
|
|
359
|
-
endpoint_url: z.url(),
|
|
360
|
-
events: webhookEventSelectionSchema,
|
|
361
|
-
status: webhookStatusSchema.optional()
|
|
362
|
-
}),
|
|
363
|
-
output: webhookDetailSchema,
|
|
364
|
-
needsApproval: true,
|
|
365
|
-
run: async (input, context) => {
|
|
366
|
-
return createResendClient(context.credentials.resend).request({
|
|
367
|
-
method: "POST",
|
|
368
|
-
path: "/webhooks",
|
|
369
|
-
body: input
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
|
|
374
|
-
//#endregion
|
|
375
|
-
//#region src/operations/delete-resend-api-key.operation.ts
|
|
376
|
-
const deleteApiKeyOperation = new Operation({
|
|
377
|
-
id: "resend.delete-resend-api-key",
|
|
378
|
-
name: "Delete Resend API Key",
|
|
379
|
-
description: "Delete (revoke) an API key.",
|
|
380
|
-
credentialSets: [resendCredentialSet],
|
|
381
|
-
input: z.object({ id: z.string().min(1) }),
|
|
382
|
-
output: z.object({
|
|
383
|
-
object: z.literal("api_key").optional(),
|
|
384
|
-
id: z.string(),
|
|
385
|
-
deleted: z.boolean().optional()
|
|
386
|
-
}).passthrough(),
|
|
387
|
-
needsApproval: true,
|
|
388
|
-
run: async (input, context) => {
|
|
389
|
-
return createResendClient(context.credentials.resend).request({
|
|
390
|
-
method: "DELETE",
|
|
391
|
-
path: `/api-keys/${encodeURIComponent(input.id)}`
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
|
|
396
|
-
//#endregion
|
|
397
|
-
//#region src/operations/delete-resend-broadcast.operation.ts
|
|
398
|
-
const deleteBroadcastOperation = new Operation({
|
|
399
|
-
id: "resend.delete-resend-broadcast",
|
|
400
|
-
name: "Delete Resend Broadcast",
|
|
401
|
-
description: "Delete a broadcast.",
|
|
402
|
-
credentialSets: [resendCredentialSet],
|
|
403
|
-
input: z.object({ id: z.string().min(1) }),
|
|
404
|
-
output: z.object({
|
|
405
|
-
object: z.literal("broadcast").optional(),
|
|
406
|
-
id: z.string(),
|
|
407
|
-
deleted: z.boolean().optional()
|
|
408
|
-
}).passthrough(),
|
|
409
|
-
needsApproval: true,
|
|
410
|
-
run: async (input, context) => {
|
|
411
|
-
return createResendClient(context.credentials.resend).request({
|
|
412
|
-
method: "DELETE",
|
|
413
|
-
path: `/broadcasts/${encodeURIComponent(input.id)}`
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region src/operations/delete-resend-contact.operation.ts
|
|
420
|
-
const deleteContactOperation = new Operation({
|
|
421
|
-
id: "resend.delete-resend-contact",
|
|
422
|
-
name: "Delete Resend Contact",
|
|
423
|
-
description: "Delete a contact.",
|
|
424
|
-
credentialSets: [resendCredentialSet],
|
|
425
|
-
input: z.object({ id: z.string().min(1) }),
|
|
426
|
-
output: z.object({
|
|
427
|
-
object: z.literal("contact").optional(),
|
|
428
|
-
id: z.string(),
|
|
429
|
-
deleted: z.boolean().optional()
|
|
430
|
-
}).passthrough(),
|
|
431
|
-
needsApproval: true,
|
|
432
|
-
run: async (input, context) => {
|
|
433
|
-
return createResendClient(context.credentials.resend).request({
|
|
434
|
-
method: "DELETE",
|
|
435
|
-
path: `/contacts/${encodeURIComponent(input.id)}`
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
//#endregion
|
|
441
|
-
//#region src/operations/delete-resend-contact-property.operation.ts
|
|
442
|
-
const deleteContactPropertyOperation = new Operation({
|
|
443
|
-
id: "resend.delete-resend-contact-property",
|
|
444
|
-
name: "Delete Resend Contact Property",
|
|
445
|
-
description: "Delete a contact property.",
|
|
446
|
-
credentialSets: [resendCredentialSet],
|
|
447
|
-
input: z.object({ id: z.string().min(1) }),
|
|
448
|
-
output: z.object({
|
|
449
|
-
object: z.literal("contact_property").optional(),
|
|
450
|
-
id: z.string(),
|
|
451
|
-
deleted: z.boolean().optional()
|
|
452
|
-
}).passthrough(),
|
|
453
|
-
needsApproval: true,
|
|
454
|
-
run: async (input, context) => {
|
|
455
|
-
return createResendClient(context.credentials.resend).request({
|
|
456
|
-
method: "DELETE",
|
|
457
|
-
path: `/contact-properties/${encodeURIComponent(input.id)}`
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
//#endregion
|
|
463
|
-
//#region src/operations/delete-resend-domain.operation.ts
|
|
464
|
-
const deleteDomainOperation = new Operation({
|
|
465
|
-
id: "resend.delete-resend-domain",
|
|
466
|
-
name: "Delete Resend Domain",
|
|
467
|
-
description: "Delete a domain.",
|
|
468
|
-
credentialSets: [resendCredentialSet],
|
|
469
|
-
input: z.object({ id: z.string().min(1) }),
|
|
470
|
-
output: z.object({
|
|
471
|
-
object: z.literal("domain").optional(),
|
|
472
|
-
id: z.string(),
|
|
473
|
-
deleted: z.boolean().optional()
|
|
474
|
-
}).passthrough(),
|
|
475
|
-
needsApproval: true,
|
|
476
|
-
run: async (input, context) => {
|
|
477
|
-
return createResendClient(context.credentials.resend).request({
|
|
478
|
-
method: "DELETE",
|
|
479
|
-
path: `/domains/${encodeURIComponent(input.id)}`
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
//#endregion
|
|
485
|
-
//#region src/operations/delete-resend-segment.operation.ts
|
|
486
|
-
const deleteSegmentOperation = new Operation({
|
|
487
|
-
id: "resend.delete-resend-segment",
|
|
488
|
-
name: "Delete Resend Segment",
|
|
489
|
-
description: "Delete a segment.",
|
|
490
|
-
credentialSets: [resendCredentialSet],
|
|
491
|
-
input: z.object({ id: z.string().min(1) }),
|
|
492
|
-
output: z.object({
|
|
493
|
-
object: z.literal("segment").optional(),
|
|
494
|
-
id: z.string(),
|
|
495
|
-
deleted: z.boolean().optional()
|
|
496
|
-
}).passthrough(),
|
|
497
|
-
needsApproval: true,
|
|
498
|
-
run: async (input, context) => {
|
|
499
|
-
return createResendClient(context.credentials.resend).request({
|
|
500
|
-
method: "DELETE",
|
|
501
|
-
path: `/segments/${encodeURIComponent(input.id)}`
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
|
-
|
|
506
|
-
//#endregion
|
|
507
|
-
//#region src/operations/delete-resend-template.operation.ts
|
|
508
|
-
const deleteTemplateOperation = new Operation({
|
|
509
|
-
id: "resend.delete-resend-template",
|
|
510
|
-
name: "Delete Resend Template",
|
|
511
|
-
description: "Delete an existing template.",
|
|
512
|
-
credentialSets: [resendCredentialSet],
|
|
513
|
-
input: z.object({ id: z.string().min(1) }),
|
|
514
|
-
output: z.object({
|
|
515
|
-
object: z.literal("template").optional(),
|
|
516
|
-
id: z.string(),
|
|
517
|
-
deleted: z.boolean().optional()
|
|
518
|
-
}),
|
|
519
|
-
needsApproval: true,
|
|
520
|
-
run: async (input, context) => {
|
|
521
|
-
return createResendClient(context.credentials.resend).request({
|
|
522
|
-
method: "DELETE",
|
|
523
|
-
path: `/templates/${encodeURIComponent(input.id)}`
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
|
|
528
|
-
//#endregion
|
|
529
|
-
//#region src/operations/delete-resend-topic.operation.ts
|
|
530
|
-
const deleteTopicOperation = new Operation({
|
|
531
|
-
id: "resend.delete-resend-topic",
|
|
532
|
-
name: "Delete Resend Topic",
|
|
533
|
-
description: "Delete a topic.",
|
|
534
|
-
credentialSets: [resendCredentialSet],
|
|
535
|
-
input: z.object({ id: z.string().min(1) }),
|
|
536
|
-
output: z.object({
|
|
537
|
-
object: z.literal("topic").optional(),
|
|
538
|
-
id: z.string(),
|
|
539
|
-
deleted: z.boolean().optional()
|
|
540
|
-
}).passthrough(),
|
|
541
|
-
needsApproval: true,
|
|
542
|
-
run: async (input, context) => {
|
|
543
|
-
return createResendClient(context.credentials.resend).request({
|
|
544
|
-
method: "DELETE",
|
|
545
|
-
path: `/topics/${encodeURIComponent(input.id)}`
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
});
|
|
549
|
-
|
|
550
|
-
//#endregion
|
|
551
|
-
//#region src/operations/delete-resend-webhook.operation.ts
|
|
552
|
-
const deleteWebhookOperation = new Operation({
|
|
553
|
-
id: "resend.delete-resend-webhook",
|
|
554
|
-
name: "Delete Resend Webhook",
|
|
555
|
-
description: "Delete a webhook endpoint.",
|
|
556
|
-
credentialSets: [resendCredentialSet],
|
|
557
|
-
input: z.object({ id: z.string().min(1) }),
|
|
558
|
-
output: z.object({
|
|
559
|
-
object: z.literal("webhook").optional(),
|
|
560
|
-
id: z.string(),
|
|
561
|
-
deleted: z.boolean().optional()
|
|
562
|
-
}).passthrough(),
|
|
563
|
-
needsApproval: true,
|
|
564
|
-
run: async (input, context) => {
|
|
565
|
-
return createResendClient(context.credentials.resend).request({
|
|
566
|
-
method: "DELETE",
|
|
567
|
-
path: `/webhooks/${encodeURIComponent(input.id)}`
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
|
|
572
|
-
//#endregion
|
|
573
|
-
//#region src/operations/duplicate-resend-template.operation.ts
|
|
574
|
-
const duplicateTemplateOperation = new Operation({
|
|
575
|
-
id: "resend.duplicate-resend-template",
|
|
576
|
-
name: "Duplicate Resend Template",
|
|
577
|
-
description: "Duplicate an existing template.",
|
|
578
|
-
credentialSets: [resendCredentialSet],
|
|
579
|
-
input: z.object({ id: z.string().min(1) }),
|
|
580
|
-
output: templateDetailSchema,
|
|
581
|
-
needsApproval: true,
|
|
582
|
-
run: async (input, context) => {
|
|
583
|
-
return createResendClient(context.credentials.resend).request({
|
|
584
|
-
method: "POST",
|
|
585
|
-
path: `/templates/${encodeURIComponent(input.id)}/duplicate`
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
|
|
590
|
-
//#endregion
|
|
591
|
-
//#region src/operations/get-resend-contact-topics.operation.ts
|
|
592
|
-
const getContactTopicsOperation = new Operation({
|
|
593
|
-
id: "resend.get-resend-contact-topics",
|
|
594
|
-
name: "Get Resend Contact Topics",
|
|
595
|
-
description: "List topic subscriptions for a contact.",
|
|
596
|
-
credentialSets: [resendCredentialSet],
|
|
597
|
-
input: z.object({ contact_id: z.string().min(1) }),
|
|
598
|
-
output: contactTopicsResponseSchema,
|
|
599
|
-
run: async (input, context) => {
|
|
600
|
-
return createResendClient(context.credentials.resend).request({
|
|
601
|
-
method: "GET",
|
|
602
|
-
path: `/contacts/${encodeURIComponent(input.contact_id)}/topics`
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
|
|
607
|
-
//#endregion
|
|
608
|
-
//#region src/operations/list-resend-api-keys.operation.ts
|
|
609
|
-
const listApiKeysOperation = new Operation({
|
|
610
|
-
id: "resend.list-resend-api-keys",
|
|
611
|
-
name: "List Resend API Keys",
|
|
612
|
-
description: "List API keys for the authenticated team.",
|
|
613
|
-
credentialSets: [resendCredentialSet],
|
|
614
|
-
input: paginationQuerySchema,
|
|
615
|
-
output: listApiKeysResponseSchema,
|
|
616
|
-
run: async (input, context) => {
|
|
617
|
-
return createResendClient(context.credentials.resend).request({
|
|
618
|
-
method: "GET",
|
|
619
|
-
path: "/api-keys",
|
|
620
|
-
query: input
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
|
|
625
|
-
//#endregion
|
|
626
|
-
//#region src/operations/list-resend-broadcasts.operation.ts
|
|
627
|
-
const listBroadcastsOperation = new Operation({
|
|
628
|
-
id: "resend.list-resend-broadcasts",
|
|
629
|
-
name: "List Resend Broadcasts",
|
|
630
|
-
description: "List broadcasts, optionally cursor-paginated.",
|
|
631
|
-
credentialSets: [resendCredentialSet],
|
|
632
|
-
input: paginationQuerySchema,
|
|
633
|
-
output: listBroadcastsResponseSchema,
|
|
634
|
-
run: async (input, context) => {
|
|
635
|
-
return createResendClient(context.credentials.resend).request({
|
|
636
|
-
method: "GET",
|
|
637
|
-
path: "/broadcasts",
|
|
638
|
-
query: input
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
|
|
643
|
-
//#endregion
|
|
644
|
-
//#region src/operations/list-resend-contact-properties.operation.ts
|
|
645
|
-
const listContactPropertiesOperation = new Operation({
|
|
646
|
-
id: "resend.list-resend-contact-properties",
|
|
647
|
-
name: "List Resend Contact Properties",
|
|
648
|
-
description: "List all custom contact properties.",
|
|
649
|
-
credentialSets: [resendCredentialSet],
|
|
650
|
-
input: paginationQuerySchema,
|
|
651
|
-
output: listContactPropertiesResponseSchema,
|
|
652
|
-
run: async (input, context) => {
|
|
653
|
-
return createResendClient(context.credentials.resend).request({
|
|
654
|
-
method: "GET",
|
|
655
|
-
path: "/contact-properties",
|
|
656
|
-
query: input
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
|
-
|
|
661
|
-
//#endregion
|
|
662
|
-
//#region src/operations/list-resend-contact-segments.operation.ts
|
|
663
|
-
const listContactSegmentsOperation = new Operation({
|
|
664
|
-
id: "resend.list-resend-contact-segments",
|
|
665
|
-
name: "List Resend Contact Segments",
|
|
666
|
-
description: "List segments a contact belongs to.",
|
|
667
|
-
credentialSets: [resendCredentialSet],
|
|
668
|
-
input: z.object({ contact_id: z.string().min(1) }),
|
|
669
|
-
output: listContactSegmentsResponseSchema,
|
|
670
|
-
run: async (input, context) => {
|
|
671
|
-
return createResendClient(context.credentials.resend).request({
|
|
672
|
-
method: "GET",
|
|
673
|
-
path: `/contacts/${encodeURIComponent(input.contact_id)}/segments`
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
//#endregion
|
|
679
|
-
//#region src/operations/list-resend-contacts.operation.ts
|
|
680
|
-
const listContactsOperation = new Operation({
|
|
681
|
-
id: "resend.list-resend-contacts",
|
|
682
|
-
name: "List Resend Contacts",
|
|
683
|
-
description: "List contacts, optionally filtered by segment.",
|
|
684
|
-
credentialSets: [resendCredentialSet],
|
|
685
|
-
input: paginationQuerySchema.extend({ segment_id: z.string().min(1).optional() }),
|
|
686
|
-
output: listContactsResponseSchema,
|
|
687
|
-
run: async (input, context) => {
|
|
688
|
-
return createResendClient(context.credentials.resend).request({
|
|
689
|
-
method: "GET",
|
|
690
|
-
path: "/contacts",
|
|
691
|
-
query: input
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
});
|
|
695
|
-
|
|
696
|
-
//#endregion
|
|
697
|
-
//#region src/operations/list-resend-domains.operation.ts
|
|
698
|
-
const listDomainsOperation = new Operation({
|
|
699
|
-
id: "resend.list-resend-domains",
|
|
700
|
-
name: "List Resend Domains",
|
|
701
|
-
description: "Retrieve a list of domains.",
|
|
702
|
-
credentialSets: [resendCredentialSet],
|
|
703
|
-
input: paginationQuerySchema,
|
|
704
|
-
output: listDomainsResponseSchema,
|
|
705
|
-
run: async (input, context) => {
|
|
706
|
-
return createResendClient(context.credentials.resend).request({
|
|
707
|
-
method: "GET",
|
|
708
|
-
path: "/domains",
|
|
709
|
-
query: input
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
});
|
|
713
|
-
|
|
714
|
-
//#endregion
|
|
715
|
-
//#region src/operations/list-resend-logs.operation.ts
|
|
716
|
-
const listLogsOperation = new Operation({
|
|
717
|
-
id: "resend.list-resend-logs",
|
|
718
|
-
name: "List Resend Logs",
|
|
719
|
-
description: "List API request logs. Plan-gated.",
|
|
720
|
-
credentialSets: [resendCredentialSet],
|
|
721
|
-
input: paginationQuerySchema,
|
|
722
|
-
output: listLogsResponseSchema,
|
|
723
|
-
run: async (input, context) => {
|
|
724
|
-
return createResendClient(context.credentials.resend).request({
|
|
725
|
-
method: "GET",
|
|
726
|
-
path: "/logs",
|
|
727
|
-
query: input
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
});
|
|
731
|
-
|
|
732
|
-
//#endregion
|
|
733
|
-
//#region src/operations/list-resend-received-email-attachments.operation.ts
|
|
734
|
-
const listReceivedAttachmentsOperation = new Operation({
|
|
735
|
-
id: "resend.list-resend-received-email-attachments",
|
|
736
|
-
name: "List Resend Received Email Attachments",
|
|
737
|
-
description: "List attachments on a single received email.",
|
|
738
|
-
credentialSets: [resendCredentialSet],
|
|
739
|
-
input: paginationQuerySchema.extend({ email_id: z.string().min(1) }),
|
|
740
|
-
output: listReceivedAttachmentsResponseSchema,
|
|
741
|
-
run: async (input, context) => {
|
|
742
|
-
const { email_id, ...query } = input;
|
|
743
|
-
return createResendClient(context.credentials.resend).request({
|
|
744
|
-
method: "GET",
|
|
745
|
-
path: `/emails/receiving/${encodeURIComponent(email_id)}/attachments`,
|
|
746
|
-
query
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
|
|
751
|
-
//#endregion
|
|
752
|
-
//#region src/operations/list-resend-received-emails.operation.ts
|
|
753
|
-
const listReceivedEmailsOperation = new Operation({
|
|
754
|
-
id: "resend.list-resend-received-emails",
|
|
755
|
-
name: "List Resend Received Emails",
|
|
756
|
-
description: "List inbound (received) emails for the authenticated team.",
|
|
757
|
-
credentialSets: [resendCredentialSet],
|
|
758
|
-
input: paginationQuerySchema,
|
|
759
|
-
output: listReceivedEmailsResponseSchema,
|
|
760
|
-
run: async (input, context) => {
|
|
761
|
-
return createResendClient(context.credentials.resend).request({
|
|
762
|
-
method: "GET",
|
|
763
|
-
path: "/emails/receiving",
|
|
764
|
-
query: input
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
});
|
|
768
|
-
|
|
769
|
-
//#endregion
|
|
770
|
-
//#region src/operations/list-resend-segment-contacts.operation.ts
|
|
771
|
-
const listSegmentContactsOperation = new Operation({
|
|
772
|
-
id: "resend.list-resend-segment-contacts",
|
|
773
|
-
name: "List Resend Segment Contacts",
|
|
774
|
-
description: "List the contacts in a segment.",
|
|
775
|
-
credentialSets: [resendCredentialSet],
|
|
776
|
-
input: paginationQuerySchema.extend({ segment_id: z.string().min(1) }),
|
|
777
|
-
output: listSegmentContactsResponseSchema,
|
|
778
|
-
run: async (input, context) => {
|
|
779
|
-
const { segment_id, ...query } = input;
|
|
780
|
-
return createResendClient(context.credentials.resend).request({
|
|
781
|
-
method: "GET",
|
|
782
|
-
path: `/segments/${encodeURIComponent(segment_id)}/contacts`,
|
|
783
|
-
query
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
});
|
|
787
|
-
|
|
788
|
-
//#endregion
|
|
789
|
-
//#region src/operations/list-resend-segments.operation.ts
|
|
790
|
-
const listSegmentsOperation = new Operation({
|
|
791
|
-
id: "resend.list-resend-segments",
|
|
792
|
-
name: "List Resend Segments",
|
|
793
|
-
description: "Retrieve a cursor-paginated list of segments.",
|
|
794
|
-
credentialSets: [resendCredentialSet],
|
|
795
|
-
input: paginationQuerySchema,
|
|
796
|
-
output: listSegmentsResponseSchema,
|
|
797
|
-
run: async (input, context) => {
|
|
798
|
-
return createResendClient(context.credentials.resend).request({
|
|
799
|
-
method: "GET",
|
|
800
|
-
path: "/segments",
|
|
801
|
-
query: input
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
});
|
|
805
|
-
|
|
806
|
-
//#endregion
|
|
807
|
-
//#region src/operations/list-resend-sent-email-attachments.operation.ts
|
|
808
|
-
const listSentAttachmentsOperation = new Operation({
|
|
809
|
-
id: "resend.list-resend-sent-email-attachments",
|
|
810
|
-
name: "List Resend Sent Email Attachments",
|
|
811
|
-
description: "List attachments that were sent with a given email.",
|
|
812
|
-
credentialSets: [resendCredentialSet],
|
|
813
|
-
input: paginationQuerySchema.extend({ email_id: z.string().min(1) }),
|
|
814
|
-
output: listAttachmentsResponseSchema,
|
|
815
|
-
run: async (input, context) => {
|
|
816
|
-
const { email_id, ...query } = input;
|
|
817
|
-
return createResendClient(context.credentials.resend).request({
|
|
818
|
-
method: "GET",
|
|
819
|
-
path: `/emails/${encodeURIComponent(email_id)}/attachments`,
|
|
820
|
-
query
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
});
|
|
824
|
-
|
|
825
|
-
//#endregion
|
|
826
|
-
//#region src/operations/list-resend-sent-emails.operation.ts
|
|
827
|
-
const listSentEmailsOperation = new Operation({
|
|
828
|
-
id: "resend.list-resend-sent-emails",
|
|
829
|
-
name: "List Resend Sent Emails",
|
|
830
|
-
description: "Retrieve a cursor-paginated list of emails your team has sent.",
|
|
831
|
-
credentialSets: [resendCredentialSet],
|
|
832
|
-
input: paginationQuerySchema,
|
|
833
|
-
output: listEmailsResponseSchema,
|
|
834
|
-
run: async (input, context) => {
|
|
835
|
-
return createResendClient(context.credentials.resend).request({
|
|
836
|
-
method: "GET",
|
|
837
|
-
path: "/emails",
|
|
838
|
-
query: input
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
});
|
|
842
|
-
|
|
843
|
-
//#endregion
|
|
844
|
-
//#region src/operations/list-resend-templates.operation.ts
|
|
845
|
-
const listTemplatesOperation = new Operation({
|
|
846
|
-
id: "resend.list-resend-templates",
|
|
847
|
-
name: "List Resend Templates",
|
|
848
|
-
description: "Retrieve a cursor-paginated list of templates.",
|
|
849
|
-
credentialSets: [resendCredentialSet],
|
|
850
|
-
input: paginationQuerySchema,
|
|
851
|
-
output: listTemplatesResponseSchema,
|
|
852
|
-
run: async (input, context) => {
|
|
853
|
-
return createResendClient(context.credentials.resend).request({
|
|
854
|
-
method: "GET",
|
|
855
|
-
path: "/templates",
|
|
856
|
-
query: input
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
});
|
|
860
|
-
|
|
861
|
-
//#endregion
|
|
862
|
-
//#region src/operations/list-resend-topics.operation.ts
|
|
863
|
-
const listTopicsOperation = new Operation({
|
|
864
|
-
id: "resend.list-resend-topics",
|
|
865
|
-
name: "List Resend Topics",
|
|
866
|
-
description: "Retrieve a cursor-paginated list of topics.",
|
|
867
|
-
credentialSets: [resendCredentialSet],
|
|
868
|
-
input: paginationQuerySchema,
|
|
869
|
-
output: listTopicsResponseSchema,
|
|
870
|
-
run: async (input, context) => {
|
|
871
|
-
return createResendClient(context.credentials.resend).request({
|
|
872
|
-
method: "GET",
|
|
873
|
-
path: "/topics",
|
|
874
|
-
query: input
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
});
|
|
878
|
-
|
|
879
|
-
//#endregion
|
|
880
|
-
//#region src/operations/list-resend-webhooks.operation.ts
|
|
881
|
-
const listWebhooksOperation = new Operation({
|
|
882
|
-
id: "resend.list-resend-webhooks",
|
|
883
|
-
name: "List Resend Webhooks",
|
|
884
|
-
description: "List registered webhook endpoints.",
|
|
885
|
-
credentialSets: [resendCredentialSet],
|
|
886
|
-
input: paginationQuerySchema,
|
|
887
|
-
output: listWebhooksResponseSchema,
|
|
888
|
-
run: async (input, context) => {
|
|
889
|
-
return createResendClient(context.credentials.resend).request({
|
|
890
|
-
method: "GET",
|
|
891
|
-
path: "/webhooks",
|
|
892
|
-
query: input
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
});
|
|
896
|
-
|
|
897
|
-
//#endregion
|
|
898
|
-
//#region src/operations/publish-resend-template.operation.ts
|
|
899
|
-
const publishTemplateOperation = new Operation({
|
|
900
|
-
id: "resend.publish-resend-template",
|
|
901
|
-
name: "Publish Resend Template",
|
|
902
|
-
description: "Publish a draft template so it can be referenced from sendEmail.",
|
|
903
|
-
credentialSets: [resendCredentialSet],
|
|
904
|
-
input: z.object({ id: z.string().min(1) }),
|
|
905
|
-
output: templateDetailSchema,
|
|
906
|
-
needsApproval: true,
|
|
907
|
-
run: async (input, context) => {
|
|
908
|
-
return createResendClient(context.credentials.resend).request({
|
|
909
|
-
method: "POST",
|
|
910
|
-
path: `/templates/${encodeURIComponent(input.id)}/publish`
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
});
|
|
914
|
-
|
|
915
|
-
//#endregion
|
|
916
|
-
//#region src/operations/remove-resend-contact-from-segment.operation.ts
|
|
917
|
-
const removeContactFromSegmentOperation = new Operation({
|
|
918
|
-
id: "resend.remove-resend-contact-from-segment",
|
|
919
|
-
name: "Remove Resend Contact from Segment",
|
|
920
|
-
description: "Remove a contact from a segment.",
|
|
921
|
-
credentialSets: [resendCredentialSet],
|
|
922
|
-
input: z.object({
|
|
923
|
-
contact_id: z.string().min(1),
|
|
924
|
-
segment_id: z.string().min(1)
|
|
925
|
-
}),
|
|
926
|
-
output: z.object({}).passthrough(),
|
|
927
|
-
needsApproval: true,
|
|
928
|
-
run: async (input, context) => {
|
|
929
|
-
return createResendClient(context.credentials.resend).request({
|
|
930
|
-
method: "DELETE",
|
|
931
|
-
path: `/contacts/${encodeURIComponent(input.contact_id)}/segments/${encodeURIComponent(input.segment_id)}`
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
});
|
|
935
|
-
|
|
936
|
-
//#endregion
|
|
937
|
-
//#region src/operations/retrieve-resend-broadcast.operation.ts
|
|
938
|
-
const retrieveBroadcastOperation = new Operation({
|
|
939
|
-
id: "resend.retrieve-resend-broadcast",
|
|
940
|
-
name: "Retrieve Resend Broadcast",
|
|
941
|
-
description: "Retrieve a single broadcast by id.",
|
|
942
|
-
credentialSets: [resendCredentialSet],
|
|
943
|
-
input: z.object({ id: z.string().min(1) }),
|
|
944
|
-
output: broadcastDetailSchema,
|
|
945
|
-
run: async (input, context) => {
|
|
946
|
-
return createResendClient(context.credentials.resend).request({
|
|
947
|
-
method: "GET",
|
|
948
|
-
path: `/broadcasts/${encodeURIComponent(input.id)}`
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
});
|
|
952
|
-
|
|
953
|
-
//#endregion
|
|
954
|
-
//#region src/operations/retrieve-resend-contact.operation.ts
|
|
955
|
-
const retrieveContactOperation = new Operation({
|
|
956
|
-
id: "resend.retrieve-resend-contact",
|
|
957
|
-
name: "Retrieve Resend Contact",
|
|
958
|
-
description: "Retrieve a contact by id or email.",
|
|
959
|
-
credentialSets: [resendCredentialSet],
|
|
960
|
-
input: z.object({ id: z.string().min(1) }),
|
|
961
|
-
output: contactDetailSchema,
|
|
962
|
-
run: async (input, context) => {
|
|
963
|
-
return createResendClient(context.credentials.resend).request({
|
|
964
|
-
method: "GET",
|
|
965
|
-
path: `/contacts/${encodeURIComponent(input.id)}`
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
});
|
|
969
|
-
|
|
970
|
-
//#endregion
|
|
971
|
-
//#region src/operations/retrieve-resend-contact-property.operation.ts
|
|
972
|
-
const retrieveContactPropertyOperation = new Operation({
|
|
973
|
-
id: "resend.retrieve-resend-contact-property",
|
|
974
|
-
name: "Retrieve Resend Contact Property",
|
|
975
|
-
description: "Retrieve a single contact property by id.",
|
|
976
|
-
credentialSets: [resendCredentialSet],
|
|
977
|
-
input: z.object({ id: z.string().min(1) }),
|
|
978
|
-
output: contactPropertySchema,
|
|
979
|
-
run: async (input, context) => {
|
|
980
|
-
return createResendClient(context.credentials.resend).request({
|
|
981
|
-
method: "GET",
|
|
982
|
-
path: `/contact-properties/${encodeURIComponent(input.id)}`
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
});
|
|
986
|
-
|
|
987
|
-
//#endregion
|
|
988
|
-
//#region src/operations/retrieve-resend-domain.operation.ts
|
|
989
|
-
const retrieveDomainOperation = new Operation({
|
|
990
|
-
id: "resend.retrieve-resend-domain",
|
|
991
|
-
name: "Retrieve Resend Domain",
|
|
992
|
-
description: "Retrieve a domain by id, including DNS records.",
|
|
993
|
-
credentialSets: [resendCredentialSet],
|
|
994
|
-
input: z.object({ id: z.string().min(1) }),
|
|
995
|
-
output: domainDetailSchema,
|
|
996
|
-
run: async (input, context) => {
|
|
997
|
-
return createResendClient(context.credentials.resend).request({
|
|
998
|
-
method: "GET",
|
|
999
|
-
path: `/domains/${encodeURIComponent(input.id)}`
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
});
|
|
1003
|
-
|
|
1004
|
-
//#endregion
|
|
1005
|
-
//#region src/operations/retrieve-resend-email.operation.ts
|
|
1006
|
-
const retrieveEmailOperation = new Operation({
|
|
1007
|
-
id: "resend.retrieve-resend-email",
|
|
1008
|
-
name: "Retrieve Resend Email",
|
|
1009
|
-
description: "Retrieve a single sent email by its id.",
|
|
1010
|
-
credentialSets: [resendCredentialSet],
|
|
1011
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1012
|
-
output: emailDetailSchema,
|
|
1013
|
-
run: async (input, context) => {
|
|
1014
|
-
return createResendClient(context.credentials.resend).request({
|
|
1015
|
-
method: "GET",
|
|
1016
|
-
path: `/emails/${encodeURIComponent(input.id)}`
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
});
|
|
1020
|
-
|
|
1021
|
-
//#endregion
|
|
1022
|
-
//#region src/operations/retrieve-resend-log.operation.ts
|
|
1023
|
-
const retrieveLogOperation = new Operation({
|
|
1024
|
-
id: "resend.retrieve-resend-log",
|
|
1025
|
-
name: "Retrieve Resend Log",
|
|
1026
|
-
description: "Retrieve a single API request log with full request and response bodies.",
|
|
1027
|
-
credentialSets: [resendCredentialSet],
|
|
1028
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1029
|
-
output: logDetailSchema,
|
|
1030
|
-
run: async (input, context) => {
|
|
1031
|
-
return createResendClient(context.credentials.resend).request({
|
|
1032
|
-
method: "GET",
|
|
1033
|
-
path: `/logs/${encodeURIComponent(input.id)}`
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
|
|
1038
|
-
//#endregion
|
|
1039
|
-
//#region src/operations/retrieve-resend-received-email.operation.ts
|
|
1040
|
-
const retrieveReceivedEmailOperation = new Operation({
|
|
1041
|
-
id: "resend.retrieve-resend-received-email",
|
|
1042
|
-
name: "Retrieve Resend Received Email",
|
|
1043
|
-
description: "Retrieve a single received email with its body, headers, and attachment metadata.",
|
|
1044
|
-
credentialSets: [resendCredentialSet],
|
|
1045
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1046
|
-
output: receivedEmailDetailSchema,
|
|
1047
|
-
run: async (input, context) => {
|
|
1048
|
-
return createResendClient(context.credentials.resend).request({
|
|
1049
|
-
method: "GET",
|
|
1050
|
-
path: `/emails/receiving/${encodeURIComponent(input.id)}`
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
});
|
|
1054
|
-
|
|
1055
|
-
//#endregion
|
|
1056
|
-
//#region src/operations/retrieve-resend-received-email-attachment.operation.ts
|
|
1057
|
-
const retrieveReceivedAttachmentOperation = new Operation({
|
|
1058
|
-
id: "resend.retrieve-resend-received-email-attachment",
|
|
1059
|
-
name: "Retrieve Resend Received Email Attachment",
|
|
1060
|
-
description: "Retrieve a single attachment from a received email. Response includes a time-limited signed URL for the binary body.",
|
|
1061
|
-
credentialSets: [resendCredentialSet],
|
|
1062
|
-
input: z.object({
|
|
1063
|
-
email_id: z.string().min(1),
|
|
1064
|
-
attachment_id: z.string().min(1)
|
|
1065
|
-
}),
|
|
1066
|
-
output: receivedAttachmentDetailSchema,
|
|
1067
|
-
run: async (input, context) => {
|
|
1068
|
-
return createResendClient(context.credentials.resend).request({
|
|
1069
|
-
method: "GET",
|
|
1070
|
-
path: `/emails/receiving/${encodeURIComponent(input.email_id)}/attachments/${encodeURIComponent(input.attachment_id)}`
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
});
|
|
1074
|
-
|
|
1075
|
-
//#endregion
|
|
1076
|
-
//#region src/operations/retrieve-resend-segment.operation.ts
|
|
1077
|
-
const retrieveSegmentOperation = new Operation({
|
|
1078
|
-
id: "resend.retrieve-resend-segment",
|
|
1079
|
-
name: "Retrieve Resend Segment",
|
|
1080
|
-
description: "Retrieve a single segment by id.",
|
|
1081
|
-
credentialSets: [resendCredentialSet],
|
|
1082
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1083
|
-
output: segmentDetailSchema,
|
|
1084
|
-
run: async (input, context) => {
|
|
1085
|
-
return createResendClient(context.credentials.resend).request({
|
|
1086
|
-
method: "GET",
|
|
1087
|
-
path: `/segments/${encodeURIComponent(input.id)}`
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
});
|
|
1091
|
-
|
|
1092
|
-
//#endregion
|
|
1093
|
-
//#region src/operations/retrieve-resend-sent-email-attachment.operation.ts
|
|
1094
|
-
const retrieveSentAttachmentOperation = new Operation({
|
|
1095
|
-
id: "resend.retrieve-resend-sent-email-attachment",
|
|
1096
|
-
name: "Retrieve Resend Sent Email Attachment",
|
|
1097
|
-
description: "Retrieve a single attachment from a sent email. Response includes a time-limited signed URL for the binary body.",
|
|
1098
|
-
credentialSets: [resendCredentialSet],
|
|
1099
|
-
input: z.object({
|
|
1100
|
-
email_id: z.string().min(1),
|
|
1101
|
-
attachment_id: z.string().min(1)
|
|
1102
|
-
}),
|
|
1103
|
-
output: attachmentDetailSchema,
|
|
1104
|
-
run: async (input, context) => {
|
|
1105
|
-
return createResendClient(context.credentials.resend).request({
|
|
1106
|
-
method: "GET",
|
|
1107
|
-
path: `/emails/${encodeURIComponent(input.email_id)}/attachments/${encodeURIComponent(input.attachment_id)}`
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
});
|
|
1111
|
-
|
|
1112
|
-
//#endregion
|
|
1113
|
-
//#region src/operations/retrieve-resend-template.operation.ts
|
|
1114
|
-
const retrieveTemplateOperation = new Operation({
|
|
1115
|
-
id: "resend.retrieve-resend-template",
|
|
1116
|
-
name: "Retrieve Resend Template",
|
|
1117
|
-
description: "Retrieve a single template by id or alias.",
|
|
1118
|
-
credentialSets: [resendCredentialSet],
|
|
1119
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1120
|
-
output: templateDetailSchema,
|
|
1121
|
-
run: async (input, context) => {
|
|
1122
|
-
return createResendClient(context.credentials.resend).request({
|
|
1123
|
-
method: "GET",
|
|
1124
|
-
path: `/templates/${encodeURIComponent(input.id)}`
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
});
|
|
1128
|
-
|
|
1129
|
-
//#endregion
|
|
1130
|
-
//#region src/operations/retrieve-resend-topic.operation.ts
|
|
1131
|
-
const retrieveTopicOperation = new Operation({
|
|
1132
|
-
id: "resend.retrieve-resend-topic",
|
|
1133
|
-
name: "Retrieve Resend Topic",
|
|
1134
|
-
description: "Retrieve a single topic by id.",
|
|
1135
|
-
credentialSets: [resendCredentialSet],
|
|
1136
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1137
|
-
output: topicSchema,
|
|
1138
|
-
run: async (input, context) => {
|
|
1139
|
-
return createResendClient(context.credentials.resend).request({
|
|
1140
|
-
method: "GET",
|
|
1141
|
-
path: `/topics/${encodeURIComponent(input.id)}`
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
});
|
|
1145
|
-
|
|
1146
|
-
//#endregion
|
|
1147
|
-
//#region src/operations/retrieve-resend-webhook.operation.ts
|
|
1148
|
-
const retrieveWebhookOperation = new Operation({
|
|
1149
|
-
id: "resend.retrieve-resend-webhook",
|
|
1150
|
-
name: "Retrieve Resend Webhook",
|
|
1151
|
-
description: "Retrieve a webhook endpoint, including its signing secret.",
|
|
1152
|
-
credentialSets: [resendCredentialSet],
|
|
1153
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1154
|
-
output: webhookDetailSchema,
|
|
1155
|
-
run: async (input, context) => {
|
|
1156
|
-
return createResendClient(context.credentials.resend).request({
|
|
1157
|
-
method: "GET",
|
|
1158
|
-
path: `/webhooks/${encodeURIComponent(input.id)}`
|
|
1159
|
-
});
|
|
1160
|
-
}
|
|
1161
|
-
});
|
|
1162
|
-
|
|
1163
|
-
//#endregion
|
|
1164
|
-
//#region src/operations/send-resend-batch-emails.operation.ts
|
|
1165
|
-
const sendBatchEmailsOperation = new Operation({
|
|
1166
|
-
id: "resend.send-resend-batch-emails",
|
|
1167
|
-
name: "Send Resend Batch Emails",
|
|
1168
|
-
description: "Send up to 100 transactional emails in a single Resend API call.",
|
|
1169
|
-
credentialSets: [resendCredentialSet],
|
|
1170
|
-
input: batchSendInputSchema,
|
|
1171
|
-
output: batchSendResponseSchema,
|
|
1172
|
-
needsApproval: true,
|
|
1173
|
-
run: async (input, context) => {
|
|
1174
|
-
return createResendClient(context.credentials.resend).request({
|
|
1175
|
-
method: "POST",
|
|
1176
|
-
path: "/emails/batch",
|
|
1177
|
-
body: input.emails,
|
|
1178
|
-
...input.idempotency_key ? { headers: { "Idempotency-Key": input.idempotency_key } } : {}
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
});
|
|
1182
|
-
|
|
1183
|
-
//#endregion
|
|
1184
|
-
//#region src/operations/send-resend-broadcast.operation.ts
|
|
1185
|
-
const sendBroadcastOperation = new Operation({
|
|
1186
|
-
id: "resend.send-resend-broadcast",
|
|
1187
|
-
name: "Send Resend Broadcast",
|
|
1188
|
-
description: "Start sending a draft broadcast. Optionally schedule it for later.",
|
|
1189
|
-
credentialSets: [resendCredentialSet],
|
|
1190
|
-
input: z.object({
|
|
1191
|
-
id: z.string().min(1),
|
|
1192
|
-
scheduled_at: z.string().min(1).optional()
|
|
1193
|
-
}),
|
|
1194
|
-
output: z.object({
|
|
1195
|
-
id: z.string(),
|
|
1196
|
-
object: z.literal("broadcast").optional()
|
|
1197
|
-
}).passthrough(),
|
|
1198
|
-
needsApproval: true,
|
|
1199
|
-
run: async (input, context) => {
|
|
1200
|
-
const { id, scheduled_at } = input;
|
|
1201
|
-
return createResendClient(context.credentials.resend).request({
|
|
1202
|
-
method: "POST",
|
|
1203
|
-
path: `/broadcasts/${encodeURIComponent(id)}/send`,
|
|
1204
|
-
...scheduled_at ? { body: { scheduled_at } } : {}
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
});
|
|
1208
|
-
|
|
1209
|
-
//#endregion
|
|
1210
|
-
//#region src/operations/send-resend-email.operation.ts
|
|
1211
|
-
const sendEmailOperation = new Operation({
|
|
1212
|
-
id: "resend.send-resend-email",
|
|
1213
|
-
name: "Send Resend Email",
|
|
1214
|
-
description: "Send a single transactional email via Resend.",
|
|
1215
|
-
credentialSets: [resendCredentialSet],
|
|
1216
|
-
input: sendEmailInputSchema,
|
|
1217
|
-
output: sendEmailResponseSchema,
|
|
1218
|
-
needsApproval: true,
|
|
1219
|
-
run: async (input, context) => {
|
|
1220
|
-
const { idempotency_key, ...body } = input;
|
|
1221
|
-
return createResendClient(context.credentials.resend).request({
|
|
1222
|
-
method: "POST",
|
|
1223
|
-
path: "/emails",
|
|
1224
|
-
body,
|
|
1225
|
-
...idempotency_key ? { headers: { "Idempotency-Key": idempotency_key } } : {}
|
|
1226
|
-
});
|
|
1227
|
-
}
|
|
1228
|
-
});
|
|
1229
|
-
|
|
1230
|
-
//#endregion
|
|
1231
|
-
//#region src/operations/update-resend-broadcast.operation.ts
|
|
1232
|
-
const updateBroadcastOperation = new Operation({
|
|
1233
|
-
id: "resend.update-resend-broadcast",
|
|
1234
|
-
name: "Update Resend Broadcast",
|
|
1235
|
-
description: "Update a draft broadcast. Ignored once the broadcast has started sending.",
|
|
1236
|
-
credentialSets: [resendCredentialSet],
|
|
1237
|
-
input: z.object({
|
|
1238
|
-
id: z.string().min(1),
|
|
1239
|
-
name: z.string().optional(),
|
|
1240
|
-
from: z.string().optional(),
|
|
1241
|
-
subject: z.string().optional(),
|
|
1242
|
-
reply_to: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1243
|
-
preview_text: z.string().optional(),
|
|
1244
|
-
html: z.string().optional(),
|
|
1245
|
-
text: z.string().optional(),
|
|
1246
|
-
template: z.object({
|
|
1247
|
-
id: z.string().min(1),
|
|
1248
|
-
variables: z.record(z.string(), z.union([z.string(), z.number()])).optional()
|
|
1249
|
-
}).optional(),
|
|
1250
|
-
segment_id: z.string().optional(),
|
|
1251
|
-
audience_id: z.string().optional(),
|
|
1252
|
-
scheduled_at: z.string().optional()
|
|
1253
|
-
}),
|
|
1254
|
-
output: broadcastDetailSchema,
|
|
1255
|
-
needsApproval: true,
|
|
1256
|
-
run: async (input, context) => {
|
|
1257
|
-
const { id, ...body } = input;
|
|
1258
|
-
return createResendClient(context.credentials.resend).request({
|
|
1259
|
-
method: "PATCH",
|
|
1260
|
-
path: `/broadcasts/${encodeURIComponent(id)}`,
|
|
1261
|
-
body
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
});
|
|
1265
|
-
|
|
1266
|
-
//#endregion
|
|
1267
|
-
//#region src/operations/update-resend-contact.operation.ts
|
|
1268
|
-
const updateContactOperation = new Operation({
|
|
1269
|
-
id: "resend.update-resend-contact",
|
|
1270
|
-
name: "Update Resend Contact",
|
|
1271
|
-
description: "Update an existing contact.",
|
|
1272
|
-
credentialSets: [resendCredentialSet],
|
|
1273
|
-
input: z.object({
|
|
1274
|
-
id: z.string().min(1),
|
|
1275
|
-
email: z.email().optional(),
|
|
1276
|
-
first_name: z.string().optional(),
|
|
1277
|
-
last_name: z.string().optional(),
|
|
1278
|
-
unsubscribed: z.boolean().optional(),
|
|
1279
|
-
properties: z.record(z.string(), contactPropertiesValueSchema).optional()
|
|
1280
|
-
}),
|
|
1281
|
-
output: contactDetailSchema,
|
|
1282
|
-
needsApproval: true,
|
|
1283
|
-
run: async (input, context) => {
|
|
1284
|
-
const { id, ...body } = input;
|
|
1285
|
-
return createResendClient(context.credentials.resend).request({
|
|
1286
|
-
method: "PATCH",
|
|
1287
|
-
path: `/contacts/${encodeURIComponent(id)}`,
|
|
1288
|
-
body
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
});
|
|
1292
|
-
|
|
1293
|
-
//#endregion
|
|
1294
|
-
//#region src/operations/update-resend-contact-property.operation.ts
|
|
1295
|
-
const updateContactPropertyOperation = new Operation({
|
|
1296
|
-
id: "resend.update-resend-contact-property",
|
|
1297
|
-
name: "Update Resend Contact Property",
|
|
1298
|
-
description: "Update a contact property (label only; key and type are immutable).",
|
|
1299
|
-
credentialSets: [resendCredentialSet],
|
|
1300
|
-
input: z.object({
|
|
1301
|
-
id: z.string().min(1),
|
|
1302
|
-
label: z.string().optional()
|
|
1303
|
-
}),
|
|
1304
|
-
output: contactPropertySchema,
|
|
1305
|
-
needsApproval: true,
|
|
1306
|
-
run: async (input, context) => {
|
|
1307
|
-
const { id, ...body } = input;
|
|
1308
|
-
return createResendClient(context.credentials.resend).request({
|
|
1309
|
-
method: "PATCH",
|
|
1310
|
-
path: `/contact-properties/${encodeURIComponent(id)}`,
|
|
1311
|
-
body
|
|
1312
|
-
});
|
|
1313
|
-
}
|
|
1314
|
-
});
|
|
1315
|
-
|
|
1316
|
-
//#endregion
|
|
1317
|
-
//#region src/operations/update-resend-contact-topics.operation.ts
|
|
1318
|
-
const updateContactTopicsOperation = new Operation({
|
|
1319
|
-
id: "resend.update-resend-contact-topics",
|
|
1320
|
-
name: "Update Resend Contact Topics",
|
|
1321
|
-
description: "Update topic subscriptions for a contact.",
|
|
1322
|
-
credentialSets: [resendCredentialSet],
|
|
1323
|
-
input: z.object({
|
|
1324
|
-
contact_id: z.string().min(1),
|
|
1325
|
-
subscriptions: z.array(topicSubscriptionSchema).min(1)
|
|
1326
|
-
}),
|
|
1327
|
-
output: contactTopicsResponseSchema,
|
|
1328
|
-
needsApproval: true,
|
|
1329
|
-
run: async (input, context) => {
|
|
1330
|
-
const { contact_id, subscriptions } = input;
|
|
1331
|
-
return createResendClient(context.credentials.resend).request({
|
|
1332
|
-
method: "PATCH",
|
|
1333
|
-
path: `/contacts/${encodeURIComponent(contact_id)}/topics`,
|
|
1334
|
-
body: { subscriptions }
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
});
|
|
1338
|
-
|
|
1339
|
-
//#endregion
|
|
1340
|
-
//#region src/operations/update-resend-domain.operation.ts
|
|
1341
|
-
const updateDomainOperation = new Operation({
|
|
1342
|
-
id: "resend.update-resend-domain",
|
|
1343
|
-
name: "Update Resend Domain",
|
|
1344
|
-
description: "Update tracking, TLS, or receiving settings on a domain.",
|
|
1345
|
-
credentialSets: [resendCredentialSet],
|
|
1346
|
-
input: z.object({
|
|
1347
|
-
id: z.string().min(1),
|
|
1348
|
-
open_tracking: z.boolean().optional(),
|
|
1349
|
-
click_tracking: z.boolean().optional(),
|
|
1350
|
-
tracking_subdomain: z.string().optional(),
|
|
1351
|
-
tls: resendTlsPolicySchema.optional(),
|
|
1352
|
-
capabilities: domainCapabilitiesSchema.optional()
|
|
1353
|
-
}),
|
|
1354
|
-
output: domainDetailSchema,
|
|
1355
|
-
needsApproval: true,
|
|
1356
|
-
run: async (input, context) => {
|
|
1357
|
-
const { id, ...body } = input;
|
|
1358
|
-
return createResendClient(context.credentials.resend).request({
|
|
1359
|
-
method: "PATCH",
|
|
1360
|
-
path: `/domains/${encodeURIComponent(id)}`,
|
|
1361
|
-
body
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
|
|
1366
|
-
//#endregion
|
|
1367
|
-
//#region src/operations/update-resend-scheduled-email.operation.ts
|
|
1368
|
-
const updateScheduledEmailOperation = new Operation({
|
|
1369
|
-
id: "resend.update-resend-scheduled-email",
|
|
1370
|
-
name: "Update Resend Scheduled Email",
|
|
1371
|
-
description: "Update a scheduled email before it is sent. Typically used to move scheduled_at.",
|
|
1372
|
-
credentialSets: [resendCredentialSet],
|
|
1373
|
-
input: z.object({
|
|
1374
|
-
id: z.string().min(1),
|
|
1375
|
-
scheduled_at: z.string().min(1).optional()
|
|
1376
|
-
}),
|
|
1377
|
-
output: sendEmailResponseSchema,
|
|
1378
|
-
needsApproval: true,
|
|
1379
|
-
run: async (input, context) => {
|
|
1380
|
-
const { id, ...body } = input;
|
|
1381
|
-
return createResendClient(context.credentials.resend).request({
|
|
1382
|
-
method: "PATCH",
|
|
1383
|
-
path: `/emails/${encodeURIComponent(id)}`,
|
|
1384
|
-
body
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
|
-
|
|
1389
|
-
//#endregion
|
|
1390
|
-
//#region src/operations/update-resend-template.operation.ts
|
|
1391
|
-
const updateTemplateOperation = new Operation({
|
|
1392
|
-
id: "resend.update-resend-template",
|
|
1393
|
-
name: "Update Resend Template",
|
|
1394
|
-
description: "Update an existing template. Produces a new draft version.",
|
|
1395
|
-
credentialSets: [resendCredentialSet],
|
|
1396
|
-
input: templateWriteFieldsSchema.partial().extend({ id: z.string().min(1) }),
|
|
1397
|
-
output: templateDetailSchema,
|
|
1398
|
-
needsApproval: true,
|
|
1399
|
-
run: async (input, context) => {
|
|
1400
|
-
const { id, ...body } = input;
|
|
1401
|
-
return createResendClient(context.credentials.resend).request({
|
|
1402
|
-
method: "PATCH",
|
|
1403
|
-
path: `/templates/${encodeURIComponent(id)}`,
|
|
1404
|
-
body
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
});
|
|
1408
|
-
|
|
1409
|
-
//#endregion
|
|
1410
|
-
//#region src/operations/update-resend-topic.operation.ts
|
|
1411
|
-
const updateTopicOperation = new Operation({
|
|
1412
|
-
id: "resend.update-resend-topic",
|
|
1413
|
-
name: "Update Resend Topic",
|
|
1414
|
-
description: "Update an existing topic.",
|
|
1415
|
-
credentialSets: [resendCredentialSet],
|
|
1416
|
-
input: z.object({
|
|
1417
|
-
id: z.string().min(1),
|
|
1418
|
-
name: z.string().optional(),
|
|
1419
|
-
description: z.string().optional(),
|
|
1420
|
-
default_subscription: topicDefaultSubscriptionSchema.optional()
|
|
1421
|
-
}),
|
|
1422
|
-
output: topicSchema,
|
|
1423
|
-
needsApproval: true,
|
|
1424
|
-
run: async (input, context) => {
|
|
1425
|
-
const { id, ...body } = input;
|
|
1426
|
-
return createResendClient(context.credentials.resend).request({
|
|
1427
|
-
method: "PATCH",
|
|
1428
|
-
path: `/topics/${encodeURIComponent(id)}`,
|
|
1429
|
-
body
|
|
1430
|
-
});
|
|
1431
|
-
}
|
|
1432
|
-
});
|
|
1433
|
-
|
|
1434
|
-
//#endregion
|
|
1435
|
-
//#region src/operations/update-resend-webhook.operation.ts
|
|
1436
|
-
const updateWebhookOperation = new Operation({
|
|
1437
|
-
id: "resend.update-resend-webhook",
|
|
1438
|
-
name: "Update Resend Webhook",
|
|
1439
|
-
description: "Update a webhook endpoint. Does NOT rotate the signing secret — cutover via create+delete for rotation.",
|
|
1440
|
-
credentialSets: [resendCredentialSet],
|
|
1441
|
-
input: z.object({
|
|
1442
|
-
id: z.string().min(1),
|
|
1443
|
-
endpoint_url: z.url().optional(),
|
|
1444
|
-
events: webhookEventSelectionSchema.optional(),
|
|
1445
|
-
status: webhookStatusSchema.optional()
|
|
1446
|
-
}),
|
|
1447
|
-
output: webhookDetailSchema,
|
|
1448
|
-
needsApproval: true,
|
|
1449
|
-
run: async (input, context) => {
|
|
1450
|
-
const { id, ...body } = input;
|
|
1451
|
-
return createResendClient(context.credentials.resend).request({
|
|
1452
|
-
method: "PATCH",
|
|
1453
|
-
path: `/webhooks/${encodeURIComponent(id)}`,
|
|
1454
|
-
body
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
});
|
|
1458
|
-
|
|
1459
|
-
//#endregion
|
|
1460
|
-
//#region src/operations/verify-resend-domain.operation.ts
|
|
1461
|
-
const verifyDomainOperation = new Operation({
|
|
1462
|
-
id: "resend.verify-resend-domain",
|
|
1463
|
-
name: "Verify Resend Domain",
|
|
1464
|
-
description: "Trigger DNS verification on a domain.",
|
|
1465
|
-
credentialSets: [resendCredentialSet],
|
|
1466
|
-
input: z.object({ id: z.string().min(1) }),
|
|
1467
|
-
output: z.object({
|
|
1468
|
-
id: z.string(),
|
|
1469
|
-
object: z.literal("domain").optional()
|
|
1470
|
-
}).passthrough(),
|
|
1471
|
-
needsApproval: true,
|
|
1472
|
-
run: async (input, context) => {
|
|
1473
|
-
return createResendClient(context.credentials.resend).request({
|
|
1474
|
-
method: "POST",
|
|
1475
|
-
path: `/domains/${encodeURIComponent(input.id)}/verify`
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
});
|
|
1479
|
-
|
|
1480
|
-
//#endregion
|
|
1481
|
-
export { deleteContactOperation as $, listTopicsOperation as A, listContactsOperation as B, retrieveDomainOperation as C, removeContactFromSegmentOperation as D, retrieveBroadcastOperation as E, listSegmentContactsOperation as F, getContactTopicsOperation as G, listContactPropertiesOperation as H, listReceivedEmailsOperation as I, deleteTopicOperation as J, duplicateTemplateOperation as K, listReceivedAttachmentsOperation as L, listSentEmailsOperation as M, listSentAttachmentsOperation as N, publishTemplateOperation as O, listSegmentsOperation as P, deleteContactPropertyOperation as Q, listLogsOperation as R, retrieveEmailOperation as S, retrieveContactOperation as T, listBroadcastsOperation as U, listContactSegmentsOperation as V, listApiKeysOperation as W, deleteSegmentOperation as X, deleteTemplateOperation as Y, deleteDomainOperation as Z, retrieveSentAttachmentOperation as _, updateScheduledEmailOperation as a, createSegmentOperation as at, retrieveReceivedEmailOperation as b, updateContactPropertyOperation as c, createContactOperation as ct, sendEmailOperation as d, cancelScheduledEmailOperation as dt, deleteBroadcastOperation as et, sendBroadcastOperation as f, addContactToSegmentOperation as ft, retrieveTemplateOperation as g, retrieveTopicOperation as h, updateTemplateOperation as i, createTemplateOperation as it, listTemplatesOperation as j, listWebhooksOperation as k, updateContactOperation as l, createBroadcastOperation as lt, retrieveWebhookOperation as m, updateWebhookOperation as n, createWebhookOperation as nt, updateDomainOperation as o, createDomainOperation as ot, sendBatchEmailsOperation as p, deleteWebhookOperation as q, updateTopicOperation as r, createTopicOperation as rt, updateContactTopicsOperation as s, createContactPropertyOperation as st, verifyDomainOperation as t, deleteApiKeyOperation as tt, updateBroadcastOperation as u, createApiKeyOperation as ut, retrieveSegmentOperation as v, retrieveContactPropertyOperation as w, retrieveLogOperation as x, retrieveReceivedAttachmentOperation as y, listDomainsOperation as z };
|