n8n-nodes-resend 2.9.0 → 3.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 +32 -17
- package/dist/nodes/Resend/Resend.node.d.ts +5 -1
- package/dist/nodes/Resend/Resend.node.js +43 -11
- package/dist/nodes/Resend/ResendTrigger.node.js +7 -100
- package/dist/nodes/Resend/actions/account/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/account/execute.js +8 -1
- package/dist/nodes/Resend/actions/account/getUsage.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/account/getUsage.operation.js +24 -0
- package/dist/nodes/Resend/actions/account/index.d.ts +4 -1
- package/dist/nodes/Resend/actions/account/index.js +58 -8
- package/dist/nodes/Resend/actions/account/listGrants.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/account/listGrants.operation.js +44 -0
- package/dist/nodes/Resend/actions/account/revokeGrant.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/account/revokeGrant.operation.js +37 -0
- package/dist/nodes/Resend/actions/{workflow → automation}/create.operation.js +19 -19
- package/dist/nodes/Resend/actions/{workflow → automation}/delete.operation.js +7 -7
- package/dist/nodes/Resend/actions/automation/duplicate.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/automation/duplicate.operation.js +37 -0
- package/dist/nodes/Resend/actions/automation/execute.d.ts +5 -0
- package/dist/nodes/Resend/actions/automation/execute.js +24 -0
- package/dist/nodes/Resend/actions/{workflow → automation}/get.operation.js +7 -7
- package/dist/nodes/Resend/actions/{workflow → automation}/getRun.operation.js +9 -9
- package/dist/nodes/Resend/actions/{workflow → automation}/index.d.ts +4 -4
- package/dist/nodes/Resend/actions/automation/index.js +167 -0
- package/dist/nodes/Resend/actions/automation/list.operation.js +75 -0
- package/dist/nodes/Resend/actions/automation/listRuns.operation.js +95 -0
- package/dist/nodes/Resend/actions/automation/stop.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/automation/stop.operation.js +37 -0
- package/dist/nodes/Resend/actions/automation/update.operation.js +120 -0
- package/dist/nodes/Resend/actions/broadcast/create.operation.js +34 -4
- package/dist/nodes/Resend/actions/broadcast/duplicate.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/broadcast/duplicate.operation.js +37 -0
- package/dist/nodes/Resend/actions/broadcast/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/broadcast/execute.js +7 -1
- package/dist/nodes/Resend/actions/broadcast/index.d.ts +4 -1
- package/dist/nodes/Resend/actions/broadcast/index.js +47 -2
- package/dist/nodes/Resend/actions/broadcast/listClickedLinks.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/broadcast/listClickedLinks.operation.js +63 -0
- package/dist/nodes/Resend/actions/broadcast/listRecipients.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/broadcast/listRecipients.operation.js +169 -0
- package/dist/nodes/Resend/actions/broadcast/update.operation.js +11 -1
- package/dist/nodes/Resend/actions/contact/create.operation.js +27 -19
- package/dist/nodes/Resend/actions/contact/createImport.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/contact/createImport.operation.js +198 -0
- package/dist/nodes/Resend/actions/contact/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/contact/execute.js +10 -2
- package/dist/nodes/Resend/actions/contact/getImport.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/contact/getImport.operation.js +37 -0
- package/dist/nodes/Resend/actions/contact/getTopics.operation.js +2 -9
- package/dist/nodes/Resend/actions/contact/index.d.ts +4 -1
- package/dist/nodes/Resend/actions/contact/index.js +46 -1
- package/dist/nodes/Resend/actions/contact/list.operation.js +2 -3
- package/dist/nodes/Resend/actions/contact/listImports.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/contact/listImports.operation.js +90 -0
- package/dist/nodes/Resend/actions/contact/listSegments.operation.js +2 -9
- package/dist/nodes/Resend/actions/contact/properties.d.ts +12 -0
- package/dist/nodes/Resend/actions/contact/properties.js +55 -0
- package/dist/nodes/Resend/actions/contact/update.operation.js +25 -17
- package/dist/nodes/Resend/actions/contact/updateTopics.operation.js +2 -2
- package/dist/nodes/Resend/actions/contactProperty/create.operation.js +6 -1
- package/dist/nodes/Resend/actions/contactProperty/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/contactProperty/list.operation.js +23 -1
- package/dist/nodes/Resend/actions/domain/create.operation.js +11 -2
- package/dist/nodes/Resend/actions/domain/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/domain/execute.js +1 -11
- package/dist/nodes/Resend/actions/domain/index.d.ts +1 -6
- package/dist/nodes/Resend/actions/domain/index.js +3 -78
- package/dist/nodes/Resend/actions/domain/update.operation.js +47 -2
- package/dist/nodes/Resend/actions/email/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/email/execute.js +5 -1
- package/dist/nodes/Resend/actions/email/getMetrics.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/email/getMetrics.operation.js +256 -0
- package/dist/nodes/Resend/actions/email/index.d.ts +3 -1
- package/dist/nodes/Resend/actions/email/index.js +31 -1
- package/dist/nodes/Resend/actions/email/listAttachments.operation.js +2 -9
- package/dist/nodes/Resend/actions/email/send.operation.js +13 -16
- package/dist/nodes/Resend/actions/email/sendBatch.operation.js +1 -3
- package/dist/nodes/Resend/actions/email/share.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/email/share.operation.js +51 -0
- package/dist/nodes/Resend/actions/event/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/event/list.operation.js +23 -1
- package/dist/nodes/Resend/actions/event/send.operation.js +1 -1
- package/dist/nodes/Resend/actions/event/update.operation.js +2 -2
- package/dist/nodes/Resend/actions/inbox/create.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/create.operation.js +80 -0
- package/dist/nodes/Resend/actions/inbox/createLabel.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/createLabel.operation.js +57 -0
- package/dist/nodes/Resend/actions/inbox/delete.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/delete.operation.js +25 -0
- package/dist/nodes/Resend/actions/inbox/deleteLabel.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/deleteLabel.operation.js +25 -0
- package/dist/nodes/Resend/actions/inbox/execute.d.ts +5 -0
- package/dist/nodes/Resend/actions/inbox/execute.js +28 -0
- package/dist/nodes/Resend/actions/inbox/fields.d.ts +10 -0
- package/dist/nodes/Resend/actions/inbox/fields.js +70 -0
- package/dist/nodes/Resend/actions/inbox/get.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/get.operation.js +25 -0
- package/dist/nodes/Resend/actions/inbox/getAgent.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/getAgent.operation.js +25 -0
- package/dist/nodes/Resend/actions/inbox/index.d.ts +18 -0
- package/dist/nodes/Resend/actions/inbox/index.js +197 -0
- package/dist/nodes/Resend/actions/inbox/list.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/{workflow → inbox}/list.operation.js +25 -3
- package/dist/nodes/Resend/actions/inbox/listLabels.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/listLabels.operation.js +26 -0
- package/dist/nodes/Resend/actions/inbox/update.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/update.operation.js +67 -0
- package/dist/nodes/Resend/actions/inbox/updateAgent.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/updateAgent.operation.js +137 -0
- package/dist/nodes/Resend/actions/inbox/updateLabel.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inbox/updateLabel.operation.js +53 -0
- package/dist/nodes/Resend/actions/inboxDraft/create.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxDraft/create.operation.js +96 -0
- package/dist/nodes/Resend/actions/inboxDraft/delete.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxDraft/delete.operation.js +25 -0
- package/dist/nodes/Resend/actions/inboxDraft/execute.d.ts +5 -0
- package/dist/nodes/Resend/actions/inboxDraft/execute.js +19 -0
- package/dist/nodes/Resend/actions/inboxDraft/get.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxDraft/get.operation.js +25 -0
- package/dist/nodes/Resend/actions/inboxDraft/index.d.ts +13 -0
- package/dist/nodes/Resend/actions/inboxDraft/index.js +122 -0
- package/dist/nodes/Resend/actions/inboxDraft/list.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxDraft/list.operation.js +25 -0
- package/dist/nodes/Resend/actions/inboxDraft/send.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxDraft/send.operation.js +42 -0
- package/dist/nodes/Resend/actions/inboxDraft/update.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxDraft/update.operation.js +118 -0
- package/dist/nodes/Resend/actions/inboxThread/addLabels.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/addLabels.operation.js +33 -0
- package/dist/nodes/Resend/actions/inboxThread/delete.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/delete.operation.js +25 -0
- package/dist/nodes/Resend/actions/inboxThread/execute.d.ts +5 -0
- package/dist/nodes/Resend/actions/inboxThread/execute.js +31 -0
- package/dist/nodes/Resend/actions/inboxThread/forward.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/forward.operation.js +97 -0
- package/dist/nodes/Resend/actions/inboxThread/get.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/get.operation.js +25 -0
- package/dist/nodes/Resend/actions/inboxThread/getEmail.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/getEmail.operation.js +29 -0
- package/dist/nodes/Resend/actions/inboxThread/index.d.ts +19 -0
- package/dist/nodes/Resend/actions/inboxThread/index.js +212 -0
- package/dist/nodes/Resend/actions/inboxThread/list.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/list.operation.js +41 -0
- package/dist/nodes/Resend/actions/inboxThread/listEmails.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/listEmails.operation.js +29 -0
- package/dist/nodes/Resend/actions/inboxThread/removeLabel.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/removeLabel.operation.js +45 -0
- package/dist/nodes/Resend/actions/inboxThread/reply.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/reply.operation.js +99 -0
- package/dist/nodes/Resend/actions/inboxThread/search.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/search.operation.js +131 -0
- package/dist/nodes/Resend/actions/inboxThread/setLabels.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/setLabels.operation.js +33 -0
- package/dist/nodes/Resend/actions/inboxThread/shared.d.ts +45 -0
- package/dist/nodes/Resend/actions/inboxThread/shared.js +485 -0
- package/dist/nodes/Resend/actions/inboxThread/update.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/inboxThread/update.operation.js +77 -0
- package/dist/nodes/Resend/actions/log/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/receivingEmail/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/receivingEmail/get.operation.js +31 -2
- package/dist/nodes/Resend/actions/receivingEmail/list.operation.js +23 -1
- package/dist/nodes/Resend/actions/receivingEmail/listAttachments.operation.js +2 -9
- package/dist/nodes/Resend/actions/router.js +48 -18
- package/dist/nodes/Resend/actions/segment/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/segment/execute.js +6 -4
- package/dist/nodes/Resend/actions/segment/getMetrics.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/segment/getMetrics.operation.js +84 -0
- package/dist/nodes/Resend/actions/segment/index.d.ts +3 -1
- package/dist/nodes/Resend/actions/segment/index.js +31 -1
- package/dist/nodes/Resend/actions/segment/listContacts.operation.d.ts +1 -1
- package/dist/nodes/Resend/actions/segment/listContacts.operation.js +6 -4
- package/dist/nodes/Resend/actions/segment/update.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/segment/update.operation.js +50 -0
- package/dist/nodes/Resend/actions/suppression/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/template/create.operation.js +51 -14
- package/dist/nodes/Resend/actions/template/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/template/list.operation.js +23 -1
- package/dist/nodes/Resend/actions/template/update.operation.js +5 -9
- package/dist/nodes/Resend/actions/topic/create.operation.js +1 -1
- package/dist/nodes/Resend/actions/topic/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/topic/list.operation.js +23 -1
- package/dist/nodes/Resend/actions/webhook/create.operation.js +3 -3
- package/dist/nodes/Resend/actions/webhook/events.d.ts +5 -0
- package/dist/nodes/Resend/actions/webhook/events.js +154 -0
- package/dist/nodes/Resend/actions/webhook/execute.d.ts +2 -1
- package/dist/nodes/Resend/actions/webhook/execute.js +11 -1
- package/dist/nodes/Resend/actions/webhook/getEvent.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/webhook/getEvent.operation.js +39 -0
- package/dist/nodes/Resend/actions/webhook/index.d.ts +8 -3
- package/dist/nodes/Resend/actions/webhook/index.js +79 -97
- package/dist/nodes/Resend/actions/webhook/list.operation.js +23 -1
- package/dist/nodes/Resend/actions/{domain/getTrackingDomain.operation.d.ts → webhook/listEventAttempts.operation.d.ts} +2 -2
- package/dist/nodes/Resend/actions/webhook/listEventAttempts.operation.js +66 -0
- package/dist/nodes/Resend/actions/webhook/listEvents.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/webhook/listEvents.operation.js +63 -0
- package/dist/nodes/Resend/actions/webhook/replayEvent.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/webhook/replayEvent.operation.js +39 -0
- package/dist/nodes/Resend/actions/{domain/listTrackingDomains.operation.d.ts → webhook/rotateSigningSecret.operation.d.ts} +2 -2
- package/dist/nodes/Resend/actions/webhook/rotateSigningSecret.operation.js +37 -0
- package/dist/nodes/Resend/actions/webhook/shared.d.ts +6 -0
- package/dist/nodes/Resend/actions/webhook/shared.js +27 -0
- package/dist/nodes/Resend/actions/webhook/update.operation.js +3 -3
- package/dist/nodes/Resend/methods/index.d.ts +5 -1
- package/dist/nodes/Resend/methods/index.js +50 -2
- package/dist/nodes/Resend/transport/index.d.ts +9 -4
- package/dist/nodes/Resend/transport/index.js +30 -8
- package/dist/nodes/Resend/utils/dynamicFields.d.ts +4 -0
- package/dist/nodes/Resend/utils/dynamicFields.js +4 -0
- package/package.json +7 -7
- package/dist/nodes/Resend/actions/domain/createTrackingDomain.operation.d.ts +0 -8
- package/dist/nodes/Resend/actions/domain/createTrackingDomain.operation.js +0 -50
- package/dist/nodes/Resend/actions/domain/deleteTrackingDomain.operation.d.ts +0 -8
- package/dist/nodes/Resend/actions/domain/deleteTrackingDomain.operation.js +0 -50
- package/dist/nodes/Resend/actions/domain/getTrackingDomain.operation.js +0 -50
- package/dist/nodes/Resend/actions/domain/listTrackingDomains.operation.js +0 -43
- package/dist/nodes/Resend/actions/domain/verifyTrackingDomain.operation.d.ts +0 -8
- package/dist/nodes/Resend/actions/domain/verifyTrackingDomain.operation.js +0 -50
- package/dist/nodes/Resend/actions/workflow/execute.d.ts +0 -4
- package/dist/nodes/Resend/actions/workflow/execute.js +0 -24
- package/dist/nodes/Resend/actions/workflow/getRunStep.operation.d.ts +0 -8
- package/dist/nodes/Resend/actions/workflow/getRunStep.operation.js +0 -67
- package/dist/nodes/Resend/actions/workflow/index.js +0 -167
- package/dist/nodes/Resend/actions/workflow/listRunSteps.operation.d.ts +0 -8
- package/dist/nodes/Resend/actions/workflow/listRunSteps.operation.js +0 -56
- package/dist/nodes/Resend/actions/workflow/listRuns.operation.js +0 -43
- package/dist/nodes/Resend/actions/workflow/update.operation.js +0 -56
- /package/dist/nodes/Resend/actions/{workflow → automation}/create.operation.d.ts +0 -0
- /package/dist/nodes/Resend/actions/{workflow → automation}/delete.operation.d.ts +0 -0
- /package/dist/nodes/Resend/actions/{workflow → automation}/get.operation.d.ts +0 -0
- /package/dist/nodes/Resend/actions/{workflow → automation}/getRun.operation.d.ts +0 -0
- /package/dist/nodes/Resend/actions/{workflow → automation}/list.operation.d.ts +0 -0
- /package/dist/nodes/Resend/actions/{workflow → automation}/listRuns.operation.d.ts +0 -0
- /package/dist/nodes/Resend/actions/{workflow → automation}/update.operation.d.ts +0 -0
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a href="#installation">Installation</a> |
|
|
17
|
+
<a href="#migrating-to-v300">Migrating to v3</a> |
|
|
17
18
|
<a href="#credentials">Credentials</a> |
|
|
18
19
|
<a href="#human-in-the-loop">Human in the Loop</a> |
|
|
19
20
|
<a href="#trigger-events">Trigger Events</a> |
|
|
@@ -35,26 +36,40 @@ The table below shows which endpoints are currently implemented:
|
|
|
35
36
|
<details>
|
|
36
37
|
<summary><strong>View all endpoints</strong></summary>
|
|
37
38
|
|
|
38
|
-
| API Resource | Endpoint | Status
|
|
39
|
-
| ---------------------- | --------------------- |
|
|
40
|
-
| **Account** | `/oauth
|
|
41
|
-
| **Email** | `/emails` | ✅ Full | Send, Send Batch, Send and Wait, List, Get, Update, Cancel, List Attachments, Get Attachment
|
|
42
|
-
| **Receiving Emails** | `/emails/receiving` | ✅ Full | List, Get, List Attachments, Get Attachment
|
|
43
|
-
| **Domains** | `/domains` | ✅ Full | Create, List, Get, Update, Delete, Verify,
|
|
44
|
-
| **Templates** | `/templates` | ✅ Full | Create, List, Get, Update, Delete, Publish, Duplicate
|
|
45
|
-
| **Contacts** | `/contacts` | ✅ Full | Create, List, Get, Update, Delete, Add to Segment, List Segments, Remove from Segment, Get Topics, Update Topics
|
|
46
|
-
| **Broadcasts** | `/broadcasts` | ✅ Full | Create, List, Get, Update, Delete, Send, Cancel
|
|
47
|
-
| **Segments** | `/segments` | ✅ Full | Create, List, Get, Delete
|
|
48
|
-
| **Suppressions** | `/suppressions` | ✅ Full | Create, List, Get, Delete, Batch Add, Batch Remove
|
|
49
|
-
| **Topics** | `/topics` | ✅ Full | Create, List, Get, Update, Delete
|
|
50
|
-
| **Contact Properties** | `/contact-properties` | ✅ Full | Create, List, Get, Update, Delete
|
|
51
|
-
| **Webhooks** | `/webhooks` | ✅ Full | Create, List, Get, Update, Delete
|
|
52
|
-
| **Events** | `/events` | ✅ Full | Create, List, Get, Update, Delete, Send
|
|
53
|
-
| **
|
|
54
|
-
| **
|
|
39
|
+
| API Resource | Endpoint | Status | Operations |
|
|
40
|
+
| ---------------------- | --------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
41
|
+
| **Account** | `/oauth`, `/usage` | ✅ Full | Get Usage, Disconnect (OAuth2 credential only), List Grants, Revoke Grant |
|
|
42
|
+
| **Email** | `/emails` | ✅ Full | Send, Send Batch, Send and Wait, List, Get, Update, Cancel, Share, Get Metrics, List Attachments, Get Attachment |
|
|
43
|
+
| **Receiving Emails** | `/emails/receiving` | ✅ Full | List, Get, List Attachments, Get Attachment |
|
|
44
|
+
| **Domains** | `/domains` | ✅ Full | Create, List, Get, Update, Delete, Verify, Claim, Get Claim, Verify Claim (tracking subdomain via Create/Update) |
|
|
45
|
+
| **Templates** | `/templates` | ✅ Full | Create, List, Get, Update, Delete, Publish, Duplicate |
|
|
46
|
+
| **Contacts** | `/contacts` | ✅ Full | Create, List, Get, Update, Delete, Add to Segment, List Segments, Remove from Segment, Get Topics, Update Topics, Create Import, List Imports, Get Import |
|
|
47
|
+
| **Broadcasts** | `/broadcasts` | ✅ Full | Create, List, Get, Update, Delete, Send, Cancel, Duplicate, List Clicked Links, List Recipients |
|
|
48
|
+
| **Segments** | `/segments` | ✅ Full | Create, List, Get, Update, Delete, List Contacts, Get Metrics |
|
|
49
|
+
| **Suppressions** | `/suppressions` | ✅ Full | Create, List, Get, Delete, Batch Add, Batch Remove |
|
|
50
|
+
| **Topics** | `/topics` | ✅ Full | Create, List, Get, Update, Delete |
|
|
51
|
+
| **Contact Properties** | `/contact-properties` | ✅ Full | Create, List, Get, Update, Delete |
|
|
52
|
+
| **Webhooks** | `/webhooks` | ✅ Full | Create, List, Get, Update, Delete, Rotate Signing Secret, List Events, Get Event, Replay Event, List Event Attempts |
|
|
53
|
+
| **Events** | `/events` | ✅ Full | Create, List, Get, Update, Delete, Send |
|
|
54
|
+
| **Inboxes** | `/inboxes` | ✅ Full | Create, List, Get, Update, Delete, Get Agent Settings, Update Agent Settings, Create Label, List Labels, Update Label, Delete Label |
|
|
55
|
+
| **Inbox Threads** | `/inboxes/{id}/threads` | ✅ Full | List, Search, Get, Update, Delete, Add Labels, Set Labels, Remove Label, List Emails, Get Email, Reply, Forward |
|
|
56
|
+
| **Inbox Drafts** | `/inboxes/{id}/drafts` | ✅ Full | Create, List, Get, Update, Delete, Send |
|
|
57
|
+
| **Automations** | `/automations` | ✅ Full | Create, List, Get, Update, Delete, Duplicate, Stop, List Runs, Get Run |
|
|
58
|
+
| **Logs** | `/logs` | ✅ Full | List, Retrieve |
|
|
55
59
|
|
|
56
60
|
</details>
|
|
57
61
|
|
|
62
|
+
## Migrating to v3.0.0
|
|
63
|
+
|
|
64
|
+
v3.0.0 has breaking changes. Existing Resend nodes show a notice linking here; new nodes don't.
|
|
65
|
+
|
|
66
|
+
| Change | What to do |
|
|
67
|
+
| --- | --- |
|
|
68
|
+
| **Workflow** resource renamed to **Automation** | Select **Automation**, pick the operation again, re-enter the ID in **Automation ID**. **List Run Steps** / **Get Run Step** are gone; use **Get Run**. |
|
|
69
|
+
| **Tracking Domain** operations removed | Use the **Tracking Subdomain** option on **Domain → Create / Update**. |
|
|
70
|
+
| List operations (e.g. **Contact → List**) run once per execution, not once per input item | If you need one result set per input item, put the node in a **Loop Over Items**. Lists that take an ID (e.g. **Segment → List Contacts**) still run per item. |
|
|
71
|
+
| **Automation → List Runs** returns up to 50 runs | Turn on **Return All** to get every run. |
|
|
72
|
+
|
|
58
73
|
## Installation
|
|
59
74
|
|
|
60
75
|
1. Make a new workflow or open an existing one
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { router } from "./actions/router.js";
|
|
2
|
-
import { getBroadcasts, getContactProperties, getContacts, getDomains, getEmails, getReceivedEmails, getSegments, getSuppressions, getTemplateVariables, getTemplates, getTopics, getWebhooks } from "./methods/index.js";
|
|
2
|
+
import { getBroadcasts, getContactProperties, getContacts, getDomains, getEmails, getInboxLabels, getInboxes, getReceivedEmails, getSegments, getSuppressions, getTemplateVariables, getTemplates, getTopics, getWebhooks } from "./methods/index.js";
|
|
3
3
|
import { INodeType, INodeTypeDescription, IWebhookFunctions } from "n8n-workflow";
|
|
4
4
|
//#region nodes/Resend/Resend.node.d.ts
|
|
5
5
|
declare class Resend implements INodeType {
|
|
@@ -11,6 +11,8 @@ declare class Resend implements INodeType {
|
|
|
11
11
|
getContacts: typeof getContacts;
|
|
12
12
|
getDomains: typeof getDomains;
|
|
13
13
|
getEmails: typeof getEmails;
|
|
14
|
+
getInboxes: typeof getInboxes;
|
|
15
|
+
getInboxLabels: typeof getInboxLabels;
|
|
14
16
|
getReceivedEmails: typeof getReceivedEmails;
|
|
15
17
|
getSegments: typeof getSegments;
|
|
16
18
|
getSuppressions: typeof getSuppressions;
|
|
@@ -25,6 +27,8 @@ declare class Resend implements INodeType {
|
|
|
25
27
|
getContacts: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
26
28
|
getDomains: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
27
29
|
getEmails: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
30
|
+
getInboxes: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
31
|
+
getInboxLabels: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
28
32
|
getReceivedEmails: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
29
33
|
getSegments: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
30
34
|
getSuppressions: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_nodes_Resend_actions_account_index = require("./actions/account/index.js");
|
|
3
|
+
const require_nodes_Resend_actions_automation_index = require("./actions/automation/index.js");
|
|
3
4
|
const require_nodes_Resend_actions_broadcast_index = require("./actions/broadcast/index.js");
|
|
4
5
|
const require_nodes_Resend_actions_contact_index = require("./actions/contact/index.js");
|
|
5
6
|
const require_nodes_Resend_actions_contactProperty_index = require("./actions/contactProperty/index.js");
|
|
@@ -9,6 +10,9 @@ const require_nodes_Resend_utils_sendAndWait_utils = require("./utils/sendAndWai
|
|
|
9
10
|
require("./utils/sendAndWait/index.js");
|
|
10
11
|
const require_nodes_Resend_actions_email_index = require("./actions/email/index.js");
|
|
11
12
|
const require_nodes_Resend_actions_event_index = require("./actions/event/index.js");
|
|
13
|
+
const require_nodes_Resend_actions_inbox_index = require("./actions/inbox/index.js");
|
|
14
|
+
const require_nodes_Resend_actions_inboxDraft_index = require("./actions/inboxDraft/index.js");
|
|
15
|
+
const require_nodes_Resend_actions_inboxThread_index = require("./actions/inboxThread/index.js");
|
|
12
16
|
const require_nodes_Resend_actions_log_index = require("./actions/log/index.js");
|
|
13
17
|
const require_nodes_Resend_actions_receivingEmail_index = require("./actions/receivingEmail/index.js");
|
|
14
18
|
const require_nodes_Resend_actions_segment_index = require("./actions/segment/index.js");
|
|
@@ -16,7 +20,6 @@ const require_nodes_Resend_actions_suppression_index = require("./actions/suppre
|
|
|
16
20
|
const require_nodes_Resend_actions_template_index = require("./actions/template/index.js");
|
|
17
21
|
const require_nodes_Resend_actions_topic_index = require("./actions/topic/index.js");
|
|
18
22
|
const require_nodes_Resend_actions_webhook_index = require("./actions/webhook/index.js");
|
|
19
|
-
const require_nodes_Resend_actions_workflow_index = require("./actions/workflow/index.js");
|
|
20
23
|
const require_nodes_Resend_actions_router = require("./actions/router.js");
|
|
21
24
|
const require_nodes_Resend_methods_index = require("./methods/index.js");
|
|
22
25
|
let n8n_workflow = require("n8n-workflow");
|
|
@@ -31,10 +34,10 @@ var Resend = class {
|
|
|
31
34
|
dark: "file:resend-icon-white.svg"
|
|
32
35
|
},
|
|
33
36
|
group: ["output"],
|
|
34
|
-
version: 1,
|
|
37
|
+
version: [1, 2],
|
|
35
38
|
usableAsTool: true,
|
|
36
39
|
description: "Send emails, manage contacts, create broadcasts, handle templates, domains, segments, topics, and webhooks using the Resend email platform",
|
|
37
|
-
subtitle: "={{(() => { const resourceLabels = { account: \"account\", broadcasts: \"broadcast\", contacts: \"contact\", contactProperties: \"contact property\", domains: \"domain\", email: \"email\", logs: \"log\", receivingEmails: \"received email\",
|
|
40
|
+
subtitle: "={{(() => { const resourceLabels = { account: \"account\", automations: \"automation\", broadcasts: \"broadcast\", contacts: \"contact\", contactProperties: \"contact property\", domains: \"domain\", email: \"email\", logs: \"log\", receivingEmails: \"received email\", inboxes: \"inbox\", inboxThreads: \"inbox thread\", inboxDrafts: \"inbox draft\", events: \"event\", segments: \"segment\", suppressions: \"suppression\", templates: \"template\", topics: \"topic\", webhooks: \"webhook\" }; const operationLabels = { retrieve: \"get\", sendBatch: \"send batch\", listAttachments: \"list attachments\", getAttachment: \"get attachment\", addToSegment: \"add to segment\", listSegments: \"list segments\", removeFromSegment: \"remove from segment\", getTopics: \"get topics\", updateTopics: \"update topics\", listRuns: \"list runs\", getRun: \"get run\", batchAdd: \"batch add\", batchRemove: \"batch remove\", listClickedLinks: \"list clicked links\", listRecipients: \"list recipients\", getMetrics: \"get metrics\", listGrants: \"list grants\", revokeGrant: \"revoke grant\", createImport: \"create import\", listImports: \"list imports\", getImport: \"get import\", getUsage: \"get usage\", rotateSigningSecret: \"rotate signing secret\", listEvents: \"list events\", getEvent: \"get event\", replayEvent: \"replay event\", listEventAttempts: \"list event attempts\", getAgent: \"get agent settings\", updateAgent: \"update agent settings\", createLabel: \"create label\", listLabels: \"list labels\", updateLabel: \"update label\", deleteLabel: \"delete label\", listEmails: \"list emails\", getEmail: \"get email\", addLabels: \"add labels\", setLabels: \"set labels\", removeLabel: \"remove label\" }; const resource = $parameter[\"resource\"]; const operation = $parameter[\"operation\"]; const resourceLabel = resourceLabels[resource] ?? resource; const operationLabel = operationLabels[operation] ?? operation; return operationLabel + \": \" + resourceLabel; })() }}",
|
|
38
41
|
defaults: { name: "Resend" },
|
|
39
42
|
credentials: [{
|
|
40
43
|
name: "resendOAuth2Api",
|
|
@@ -50,6 +53,13 @@ var Resend = class {
|
|
|
50
53
|
inputs: [n8n_workflow.NodeConnectionTypes.Main],
|
|
51
54
|
outputs: [n8n_workflow.NodeConnectionTypes.Main],
|
|
52
55
|
properties: [
|
|
56
|
+
{
|
|
57
|
+
displayName: "Resend 3.0 has breaking changes: Workflow is now Automation, Tracking Domain operations were removed, and list operations run once per execution. <a href=\"https://github.com/resend/n8n-nodes-resend#migrating-to-v300\" target=\"_blank\">See what to update</a>.",
|
|
58
|
+
name: "versionOneNotice",
|
|
59
|
+
type: "notice",
|
|
60
|
+
default: "",
|
|
61
|
+
displayOptions: { show: { "@version": [1] } }
|
|
62
|
+
},
|
|
53
63
|
{
|
|
54
64
|
displayName: "Authentication",
|
|
55
65
|
name: "authentication",
|
|
@@ -74,7 +84,12 @@ var Resend = class {
|
|
|
74
84
|
{
|
|
75
85
|
name: "Account",
|
|
76
86
|
value: "account",
|
|
77
|
-
description: "
|
|
87
|
+
description: "Get account usage and plan limits, or manage the connected OAuth2 account and its OAuth grants"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "Automation",
|
|
91
|
+
value: "automations",
|
|
92
|
+
description: "Create, update, delete, duplicate, stop, or list automated email sequences and monitor runs (private alpha)"
|
|
78
93
|
},
|
|
79
94
|
{
|
|
80
95
|
name: "Broadcast",
|
|
@@ -104,7 +119,22 @@ var Resend = class {
|
|
|
104
119
|
{
|
|
105
120
|
name: "Event",
|
|
106
121
|
value: "events",
|
|
107
|
-
description: "Create, send, retrieve, update, or delete events for triggering
|
|
122
|
+
description: "Create, send, retrieve, update, or delete events for triggering automations (private alpha)"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "Inbox",
|
|
126
|
+
value: "inboxes",
|
|
127
|
+
description: "Create, update, delete, or list inboxes, manage their labels, and configure the inbox AI agent"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "Inbox Draft",
|
|
131
|
+
value: "inboxDrafts",
|
|
132
|
+
description: "Create, edit, and send unsent inbox drafts"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "Inbox Thread",
|
|
136
|
+
value: "inboxThreads",
|
|
137
|
+
description: "Read, organize, reply to, and forward inbox conversation threads"
|
|
108
138
|
},
|
|
109
139
|
{
|
|
110
140
|
name: "Log",
|
|
@@ -140,16 +170,12 @@ var Resend = class {
|
|
|
140
170
|
name: "Webhook",
|
|
141
171
|
value: "webhooks",
|
|
142
172
|
description: "Create, update, delete, or list webhooks for receiving real-time notifications about email events"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: "Workflow",
|
|
146
|
-
value: "workflows",
|
|
147
|
-
description: "Create, update, delete, or list automated email workflows and monitor runs (private alpha)"
|
|
148
173
|
}
|
|
149
174
|
],
|
|
150
175
|
default: "email"
|
|
151
176
|
},
|
|
152
177
|
...require_nodes_Resend_actions_account_index.descriptions,
|
|
178
|
+
...require_nodes_Resend_actions_automation_index.descriptions,
|
|
153
179
|
...require_nodes_Resend_actions_email_index.descriptions,
|
|
154
180
|
...require_nodes_Resend_actions_template_index.descriptions,
|
|
155
181
|
...require_nodes_Resend_actions_domain_index.descriptions,
|
|
@@ -161,8 +187,10 @@ var Resend = class {
|
|
|
161
187
|
...require_nodes_Resend_actions_contactProperty_index.descriptions,
|
|
162
188
|
...require_nodes_Resend_actions_webhook_index.descriptions,
|
|
163
189
|
...require_nodes_Resend_actions_receivingEmail_index.descriptions,
|
|
164
|
-
...require_nodes_Resend_actions_workflow_index.descriptions,
|
|
165
190
|
...require_nodes_Resend_actions_event_index.descriptions,
|
|
191
|
+
...require_nodes_Resend_actions_inbox_index.descriptions,
|
|
192
|
+
...require_nodes_Resend_actions_inboxThread_index.descriptions,
|
|
193
|
+
...require_nodes_Resend_actions_inboxDraft_index.descriptions,
|
|
166
194
|
...require_nodes_Resend_actions_log_index.descriptions
|
|
167
195
|
]
|
|
168
196
|
};
|
|
@@ -173,6 +201,8 @@ var Resend = class {
|
|
|
173
201
|
getContacts: require_nodes_Resend_methods_index.getContacts,
|
|
174
202
|
getDomains: require_nodes_Resend_methods_index.getDomains,
|
|
175
203
|
getEmails: require_nodes_Resend_methods_index.getEmails,
|
|
204
|
+
getInboxes: require_nodes_Resend_methods_index.getInboxes,
|
|
205
|
+
getInboxLabels: require_nodes_Resend_methods_index.getInboxLabels,
|
|
176
206
|
getReceivedEmails: require_nodes_Resend_methods_index.getReceivedEmails,
|
|
177
207
|
getSegments: require_nodes_Resend_methods_index.getSegments,
|
|
178
208
|
getSuppressions: require_nodes_Resend_methods_index.getSuppressions,
|
|
@@ -187,6 +217,8 @@ var Resend = class {
|
|
|
187
217
|
getContacts: require_nodes_Resend_methods_index.getContactsListSearch,
|
|
188
218
|
getDomains: require_nodes_Resend_methods_index.getDomainsListSearch,
|
|
189
219
|
getEmails: require_nodes_Resend_methods_index.getEmailsListSearch,
|
|
220
|
+
getInboxes: require_nodes_Resend_methods_index.getInboxesListSearch,
|
|
221
|
+
getInboxLabels: require_nodes_Resend_methods_index.getInboxLabelsListSearch,
|
|
190
222
|
getReceivedEmails: require_nodes_Resend_methods_index.getReceivedEmailsListSearch,
|
|
191
223
|
getSegments: require_nodes_Resend_methods_index.getSegmentsListSearch,
|
|
192
224
|
getSuppressions: require_nodes_Resend_methods_index.getSuppressionsListSearch,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_nodes_Resend_actions_webhook_events = require("./actions/webhook/events.js");
|
|
2
3
|
let n8n_workflow = require("n8n-workflow");
|
|
3
4
|
let node_crypto = require("node:crypto");
|
|
4
5
|
//#region nodes/Resend/ResendTrigger.node.ts
|
|
@@ -68,8 +69,8 @@ var ResendTrigger = class {
|
|
|
68
69
|
},
|
|
69
70
|
group: ["trigger"],
|
|
70
71
|
version: 1,
|
|
71
|
-
description: "Triggers workflows when Resend
|
|
72
|
-
subtitle: "={{(() => { const events = $parameter[\"events\"] ?? []; const actionLabels = { created: \"create\", deleted: \"delete\", updated: \"update\", sent: \"send\", opened: \"open\", clicked: \"click\", bounced: \"bounce\", complained: \"complain\", delivered: \"deliver\", delivery_delayed: \"delay\", failed: \"fail\", received: \"receive\", scheduled: \"schedule\", suppressed: \"suppress\" }; return events.map((event) => { const parts = event.split(\".\"); const action = parts.pop(); const resource = parts.join(\".\"); if (!resource || !action) { return event; } const actionLabel = actionLabels[action] ?? action.replace(/_/g, \" \"); return actionLabel + \": \" + resource; }).join(\", \"); })() }}",
|
|
72
|
+
description: "Triggers workflows when Resend events occur, such as emails being sent, delivered, opened, or bounced or contacts and domains changing. Includes secure webhook signature verification.",
|
|
73
|
+
subtitle: "={{(() => { const events = $parameter[\"events\"] ?? []; const actionLabels = { created: \"create\", deleted: \"delete\", updated: \"update\", sent: \"send\", opened: \"open\", clicked: \"click\", bounced: \"bounce\", complained: \"complain\", delivered: \"deliver\", delivery_delayed: \"delay\", failed: \"fail\", received: \"receive\", scheduled: \"schedule\", suppressed: \"suppress\", added: \"add\", removed: \"remove\", assigned: \"assign\", unassigned: \"unassign\" }; return events.map((event) => { const parts = event.split(\".\"); const action = parts.pop(); const resource = parts.join(\".\"); if (!resource || !action) { return event; } const actionLabel = actionLabels[action] ?? action.replace(/_/g, \" \"); return actionLabel + \": \" + resource; }).join(\", \"); })() }}",
|
|
73
74
|
defaults: { name: "Resend Trigger" },
|
|
74
75
|
credentials: [{
|
|
75
76
|
name: "resendWebhookSigningSecretApi",
|
|
@@ -110,103 +111,9 @@ var ResendTrigger = class {
|
|
|
110
111
|
type: "multiOptions",
|
|
111
112
|
required: true,
|
|
112
113
|
default: ["email.sent"],
|
|
113
|
-
options:
|
|
114
|
-
{
|
|
115
|
-
name: "Contact Created",
|
|
116
|
-
value: "contact.created"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "Contact Deleted",
|
|
120
|
-
value: "contact.deleted"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: "Contact Topics Updated",
|
|
124
|
-
value: "contact.topics.updated"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: "Contact Updated",
|
|
128
|
-
value: "contact.updated"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: "Domain Created",
|
|
132
|
-
value: "domain.created"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: "Domain Deleted",
|
|
136
|
-
value: "domain.deleted"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: "Domain Updated",
|
|
140
|
-
value: "domain.updated"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: "Email Bounced",
|
|
144
|
-
value: "email.bounced"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: "Email Clicked",
|
|
148
|
-
value: "email.clicked"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: "Email Complained",
|
|
152
|
-
value: "email.complained"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name: "Email Delivered",
|
|
156
|
-
value: "email.delivered"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
name: "Email Delivery Delayed",
|
|
160
|
-
value: "email.delivery_delayed"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: "Email Failed",
|
|
164
|
-
value: "email.failed"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
name: "Email Opened",
|
|
168
|
-
value: "email.opened"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
name: "Email Received",
|
|
172
|
-
value: "email.received"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
name: "Email Scheduled",
|
|
176
|
-
value: "email.scheduled"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
name: "Email Sent",
|
|
180
|
-
value: "email.sent"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
name: "Email Suppressed",
|
|
184
|
-
value: "email.suppressed"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
name: "Suppression Added",
|
|
188
|
-
value: "suppression.added"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
name: "Suppression Removed",
|
|
192
|
-
value: "suppression.removed"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
name: "Topic Created",
|
|
196
|
-
value: "topic.created"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
name: "Topic Deleted",
|
|
200
|
-
value: "topic.deleted"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
name: "Topic Updated",
|
|
204
|
-
value: "topic.updated"
|
|
205
|
-
}
|
|
206
|
-
],
|
|
114
|
+
options: require_nodes_Resend_actions_webhook_events.webhookEventOptions,
|
|
207
115
|
description: "Select the Resend event types to listen for"
|
|
208
|
-
}]
|
|
209
|
-
usableAsTool: true
|
|
116
|
+
}]
|
|
210
117
|
};
|
|
211
118
|
this.methods = { credentialTest: { async resendWebhookSigningSecretTest(credential) {
|
|
212
119
|
var _credential$data;
|
|
@@ -231,7 +138,7 @@ var ResendTrigger = class {
|
|
|
231
138
|
const webhookData = this.getWorkflowStaticData("node");
|
|
232
139
|
if (!webhookData.webhookId) return false;
|
|
233
140
|
try {
|
|
234
|
-
await resendApiRequest.call(this, "GET", `/webhooks/${webhookData.webhookId}`);
|
|
141
|
+
await resendApiRequest.call(this, "GET", `/webhooks/${encodeURIComponent(String(webhookData.webhookId))}`);
|
|
235
142
|
return true;
|
|
236
143
|
} catch (error) {
|
|
237
144
|
if (isNotFoundError(error)) {
|
|
@@ -263,7 +170,7 @@ var ResendTrigger = class {
|
|
|
263
170
|
const webhookData = this.getWorkflowStaticData("node");
|
|
264
171
|
if (!webhookData.webhookId) return true;
|
|
265
172
|
if (await hasResendApiCredential(this)) try {
|
|
266
|
-
await resendApiRequest.call(this, "DELETE", `/webhooks/${webhookData.webhookId}`);
|
|
173
|
+
await resendApiRequest.call(this, "DELETE", `/webhooks/${encodeURIComponent(String(webhookData.webhookId))}`);
|
|
267
174
|
} catch (error) {
|
|
268
175
|
if (!isNotFoundError(error)) throw new n8n_workflow.NodeApiError(this.getNode(), error);
|
|
269
176
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { OperationRouter } from "../../transport/index.js";
|
|
1
2
|
//#region nodes/Resend/actions/account/execute.d.ts
|
|
2
|
-
declare const execute:
|
|
3
|
+
declare const execute: OperationRouter;
|
|
3
4
|
//#endregion
|
|
4
5
|
export { execute };
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
3
3
|
const require_nodes_Resend_actions_account_disconnect_operation = require("./disconnect.operation.js");
|
|
4
|
+
const require_nodes_Resend_actions_account_getUsage_operation = require("./getUsage.operation.js");
|
|
5
|
+
const require_nodes_Resend_actions_account_listGrants_operation = require("./listGrants.operation.js");
|
|
6
|
+
const require_nodes_Resend_actions_account_revokeGrant_operation = require("./revokeGrant.operation.js");
|
|
4
7
|
//#region nodes/Resend/actions/account/execute.ts
|
|
5
|
-
const execute = require_nodes_Resend_transport_index.createOperationRouter({
|
|
8
|
+
const execute = require_nodes_Resend_transport_index.createOperationRouter({
|
|
9
|
+
disconnect: require_nodes_Resend_actions_account_disconnect_operation.disconnect_operation_exports,
|
|
10
|
+
getUsage: require_nodes_Resend_actions_account_getUsage_operation.getUsage_operation_exports,
|
|
11
|
+
revokeGrant: require_nodes_Resend_actions_account_revokeGrant_operation.revokeGrant_operation_exports
|
|
12
|
+
}, { listGrants: require_nodes_Resend_actions_account_listGrants_operation.listGrants_operation_exports });
|
|
6
13
|
//#endregion
|
|
7
14
|
exports.execute = execute;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace getUsage_operation_d_exports {
|
|
3
|
+
export { description, execute };
|
|
4
|
+
}
|
|
5
|
+
declare const description: INodeProperties[];
|
|
6
|
+
declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { description, execute, getUsage_operation_d_exports };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
4
|
+
//#region nodes/Resend/actions/account/getUsage.operation.ts
|
|
5
|
+
var getUsage_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
+
description: () => description,
|
|
7
|
+
execute: () => execute
|
|
8
|
+
});
|
|
9
|
+
const description = [];
|
|
10
|
+
async function execute(index) {
|
|
11
|
+
return [{
|
|
12
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "GET", "/usage"),
|
|
13
|
+
pairedItem: { item: index }
|
|
14
|
+
}];
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.description = description;
|
|
18
|
+
exports.execute = execute;
|
|
19
|
+
Object.defineProperty(exports, "getUsage_operation_exports", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function() {
|
|
22
|
+
return getUsage_operation_exports;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { disconnect_operation_d_exports } from "./disconnect.operation.js";
|
|
2
2
|
import { execute } from "./execute.js";
|
|
3
|
+
import { getUsage_operation_d_exports } from "./getUsage.operation.js";
|
|
4
|
+
import { listGrants_operation_d_exports } from "./listGrants.operation.js";
|
|
5
|
+
import { revokeGrant_operation_d_exports } from "./revokeGrant.operation.js";
|
|
3
6
|
import { INodeProperties } from "n8n-workflow";
|
|
4
7
|
//#region nodes/Resend/actions/account/index.d.ts
|
|
5
8
|
declare const operations: INodeProperties[];
|
|
6
9
|
declare const descriptions: INodeProperties[];
|
|
7
10
|
//#endregion
|
|
8
|
-
export { descriptions, disconnect_operation_d_exports as disconnect, execute, operations };
|
|
11
|
+
export { descriptions, disconnect_operation_d_exports as disconnect, execute, getUsage_operation_d_exports as getUsage, listGrants_operation_d_exports as listGrants, operations, revokeGrant_operation_d_exports as revokeGrant };
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
3
|
const require_nodes_Resend_actions_account_disconnect_operation = require("./disconnect.operation.js");
|
|
4
|
+
const require_nodes_Resend_actions_account_getUsage_operation = require("./getUsage.operation.js");
|
|
5
|
+
const require_nodes_Resend_actions_account_listGrants_operation = require("./listGrants.operation.js");
|
|
6
|
+
const require_nodes_Resend_actions_account_revokeGrant_operation = require("./revokeGrant.operation.js");
|
|
4
7
|
const require_nodes_Resend_actions_account_execute = require("./execute.js");
|
|
5
8
|
//#region nodes/Resend/actions/account/index.ts
|
|
6
9
|
var account_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
10
|
descriptions: () => descriptions,
|
|
8
11
|
disconnect: () => require_nodes_Resend_actions_account_disconnect_operation.disconnect_operation_exports,
|
|
9
12
|
execute: () => require_nodes_Resend_actions_account_execute.execute,
|
|
10
|
-
|
|
13
|
+
getUsage: () => require_nodes_Resend_actions_account_getUsage_operation.getUsage_operation_exports,
|
|
14
|
+
listGrants: () => require_nodes_Resend_actions_account_listGrants_operation.listGrants_operation_exports,
|
|
15
|
+
operations: () => operations,
|
|
16
|
+
revokeGrant: () => require_nodes_Resend_actions_account_revokeGrant_operation.revokeGrant_operation_exports
|
|
11
17
|
});
|
|
12
18
|
const operations = [{
|
|
13
19
|
displayName: "Operation",
|
|
@@ -15,15 +21,41 @@ const operations = [{
|
|
|
15
21
|
type: "options",
|
|
16
22
|
noDataExpression: true,
|
|
17
23
|
displayOptions: { show: { resource: ["account"] } },
|
|
18
|
-
options: [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
options: [
|
|
25
|
+
{
|
|
26
|
+
name: "Disconnect",
|
|
27
|
+
value: "disconnect",
|
|
28
|
+
description: "Revoke the connected Resend OAuth2 grant, ending the connection to your Resend account",
|
|
29
|
+
action: "Disconnect the resend account"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "Get Usage",
|
|
33
|
+
value: "getUsage",
|
|
34
|
+
description: "Retrieve the account's current email, contact, and segment usage along with its plan limits",
|
|
35
|
+
action: "Get account usage"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "List Grants",
|
|
39
|
+
value: "listGrants",
|
|
40
|
+
description: "Retrieve the OAuth grants issued by your team, including revoked ones",
|
|
41
|
+
action: "List oauth grants"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "Revoke Grant",
|
|
45
|
+
value: "revokeGrant",
|
|
46
|
+
description: "Revoke an OAuth grant by ID, immediately disconnecting that OAuth client",
|
|
47
|
+
action: "Revoke an oauth grant"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
24
50
|
default: "disconnect"
|
|
25
51
|
}];
|
|
26
|
-
const descriptions = [
|
|
52
|
+
const descriptions = [
|
|
53
|
+
...operations,
|
|
54
|
+
...require_nodes_Resend_actions_account_disconnect_operation.description,
|
|
55
|
+
...require_nodes_Resend_actions_account_getUsage_operation.description,
|
|
56
|
+
...require_nodes_Resend_actions_account_listGrants_operation.description,
|
|
57
|
+
...require_nodes_Resend_actions_account_revokeGrant_operation.description
|
|
58
|
+
];
|
|
27
59
|
//#endregion
|
|
28
60
|
Object.defineProperty(exports, "account_exports", {
|
|
29
61
|
enumerable: true,
|
|
@@ -39,4 +71,22 @@ Object.defineProperty(exports, "disconnect", {
|
|
|
39
71
|
}
|
|
40
72
|
});
|
|
41
73
|
exports.execute = require_nodes_Resend_actions_account_execute.execute;
|
|
74
|
+
Object.defineProperty(exports, "getUsage", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function() {
|
|
77
|
+
return require_nodes_Resend_actions_account_getUsage_operation.getUsage_operation_exports;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "listGrants", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function() {
|
|
83
|
+
return require_nodes_Resend_actions_account_listGrants_operation.listGrants_operation_exports;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
42
86
|
exports.operations = operations;
|
|
87
|
+
Object.defineProperty(exports, "revokeGrant", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function() {
|
|
90
|
+
return require_nodes_Resend_actions_account_revokeGrant_operation.revokeGrant_operation_exports;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace listGrants_operation_d_exports {
|
|
3
|
+
export { description, execute };
|
|
4
|
+
}
|
|
5
|
+
declare const description: INodeProperties[];
|
|
6
|
+
declare function execute(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { description, execute, listGrants_operation_d_exports };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
4
|
+
//#region nodes/Resend/actions/account/listGrants.operation.ts
|
|
5
|
+
var listGrants_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
+
description: () => description,
|
|
7
|
+
execute: () => execute
|
|
8
|
+
});
|
|
9
|
+
const description = [{
|
|
10
|
+
displayName: "Return All",
|
|
11
|
+
name: "returnAll",
|
|
12
|
+
type: "boolean",
|
|
13
|
+
default: false,
|
|
14
|
+
displayOptions: { show: {
|
|
15
|
+
resource: ["account"],
|
|
16
|
+
operation: ["listGrants"]
|
|
17
|
+
} },
|
|
18
|
+
description: "Whether to return all results or only up to a given limit"
|
|
19
|
+
}, {
|
|
20
|
+
displayName: "Limit",
|
|
21
|
+
name: "limit",
|
|
22
|
+
type: "number",
|
|
23
|
+
default: 50,
|
|
24
|
+
typeOptions: { minValue: 1 },
|
|
25
|
+
displayOptions: { show: {
|
|
26
|
+
resource: ["account"],
|
|
27
|
+
operation: ["listGrants"],
|
|
28
|
+
returnAll: [false]
|
|
29
|
+
} },
|
|
30
|
+
description: "Max number of results to return"
|
|
31
|
+
}];
|
|
32
|
+
async function execute() {
|
|
33
|
+
const items = await require_nodes_Resend_transport_index.requestList.call(this, "/oauth/grants");
|
|
34
|
+
return require_nodes_Resend_transport_index.createListExecutionData.call(this, items);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.description = description;
|
|
38
|
+
exports.execute = execute;
|
|
39
|
+
Object.defineProperty(exports, "listGrants_operation_exports", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function() {
|
|
42
|
+
return listGrants_operation_exports;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace revokeGrant_operation_d_exports {
|
|
3
|
+
export { description, execute };
|
|
4
|
+
}
|
|
5
|
+
declare const description: INodeProperties[];
|
|
6
|
+
declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { description, execute, revokeGrant_operation_d_exports };
|