n8n-nodes-resend 2.9.0 → 3.0.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 +29 -17
- package/dist/nodes/Resend/Resend.node.js +18 -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/{workflow/list.operation.js → account/getUsage.operation.js} +9 -7
- 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/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 +42 -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 +98 -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/transport/index.d.ts +8 -3
- package/dist/nodes/Resend/transport/index.js +27 -6
- 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,37 @@ 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
|
-
| **Logs** | `/logs` | ✅ Full | List, Retrieve
|
|
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
|
+
| **Automations** | `/automations` | ✅ Full | Create, List, Get, Update, Delete, Duplicate, Stop, List Runs, Get Run |
|
|
55
|
+
| **Logs** | `/logs` | ✅ Full | List, Retrieve |
|
|
55
56
|
|
|
56
57
|
</details>
|
|
57
58
|
|
|
59
|
+
## Migrating to v3.0.0
|
|
60
|
+
|
|
61
|
+
v3.0.0 has breaking changes. Existing Resend nodes show a notice linking here; new nodes don't.
|
|
62
|
+
|
|
63
|
+
| Change | What to do |
|
|
64
|
+
| --- | --- |
|
|
65
|
+
| **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**. |
|
|
66
|
+
| **Tracking Domain** operations removed | Use the **Tracking Subdomain** option on **Domain → Create / Update**. |
|
|
67
|
+
| 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. |
|
|
68
|
+
| **Automation → List Runs** returns up to 50 runs | Turn on **Return All** to get every run. |
|
|
69
|
+
|
|
58
70
|
## Installation
|
|
59
71
|
|
|
60
72
|
1. Make a new workflow or open an existing one
|
|
@@ -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");
|
|
@@ -16,7 +17,6 @@ const require_nodes_Resend_actions_suppression_index = require("./actions/suppre
|
|
|
16
17
|
const require_nodes_Resend_actions_template_index = require("./actions/template/index.js");
|
|
17
18
|
const require_nodes_Resend_actions_topic_index = require("./actions/topic/index.js");
|
|
18
19
|
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
20
|
const require_nodes_Resend_actions_router = require("./actions/router.js");
|
|
21
21
|
const require_nodes_Resend_methods_index = require("./methods/index.js");
|
|
22
22
|
let n8n_workflow = require("n8n-workflow");
|
|
@@ -31,10 +31,10 @@ var Resend = class {
|
|
|
31
31
|
dark: "file:resend-icon-white.svg"
|
|
32
32
|
},
|
|
33
33
|
group: ["output"],
|
|
34
|
-
version: 1,
|
|
34
|
+
version: [1, 2],
|
|
35
35
|
usableAsTool: true,
|
|
36
36
|
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\",
|
|
37
|
+
subtitle: "={{(() => { const resourceLabels = { account: \"account\", automations: \"automation\", broadcasts: \"broadcast\", contacts: \"contact\", contactProperties: \"contact property\", domains: \"domain\", email: \"email\", logs: \"log\", receivingEmails: \"received email\", 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\" }; const resource = $parameter[\"resource\"]; const operation = $parameter[\"operation\"]; const resourceLabel = resourceLabels[resource] ?? resource; const operationLabel = operationLabels[operation] ?? operation; return operationLabel + \": \" + resourceLabel; })() }}",
|
|
38
38
|
defaults: { name: "Resend" },
|
|
39
39
|
credentials: [{
|
|
40
40
|
name: "resendOAuth2Api",
|
|
@@ -50,6 +50,13 @@ var Resend = class {
|
|
|
50
50
|
inputs: [n8n_workflow.NodeConnectionTypes.Main],
|
|
51
51
|
outputs: [n8n_workflow.NodeConnectionTypes.Main],
|
|
52
52
|
properties: [
|
|
53
|
+
{
|
|
54
|
+
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>.",
|
|
55
|
+
name: "versionOneNotice",
|
|
56
|
+
type: "notice",
|
|
57
|
+
default: "",
|
|
58
|
+
displayOptions: { show: { "@version": [1] } }
|
|
59
|
+
},
|
|
53
60
|
{
|
|
54
61
|
displayName: "Authentication",
|
|
55
62
|
name: "authentication",
|
|
@@ -74,7 +81,12 @@ var Resend = class {
|
|
|
74
81
|
{
|
|
75
82
|
name: "Account",
|
|
76
83
|
value: "account",
|
|
77
|
-
description: "
|
|
84
|
+
description: "Get account usage and plan limits, or manage the connected OAuth2 account and its OAuth grants"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "Automation",
|
|
88
|
+
value: "automations",
|
|
89
|
+
description: "Create, update, delete, duplicate, stop, or list automated email sequences and monitor runs (private alpha)"
|
|
78
90
|
},
|
|
79
91
|
{
|
|
80
92
|
name: "Broadcast",
|
|
@@ -104,7 +116,7 @@ var Resend = class {
|
|
|
104
116
|
{
|
|
105
117
|
name: "Event",
|
|
106
118
|
value: "events",
|
|
107
|
-
description: "Create, send, retrieve, update, or delete events for triggering
|
|
119
|
+
description: "Create, send, retrieve, update, or delete events for triggering automations (private alpha)"
|
|
108
120
|
},
|
|
109
121
|
{
|
|
110
122
|
name: "Log",
|
|
@@ -140,16 +152,12 @@ var Resend = class {
|
|
|
140
152
|
name: "Webhook",
|
|
141
153
|
value: "webhooks",
|
|
142
154
|
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
155
|
}
|
|
149
156
|
],
|
|
150
157
|
default: "email"
|
|
151
158
|
},
|
|
152
159
|
...require_nodes_Resend_actions_account_index.descriptions,
|
|
160
|
+
...require_nodes_Resend_actions_automation_index.descriptions,
|
|
153
161
|
...require_nodes_Resend_actions_email_index.descriptions,
|
|
154
162
|
...require_nodes_Resend_actions_template_index.descriptions,
|
|
155
163
|
...require_nodes_Resend_actions_domain_index.descriptions,
|
|
@@ -161,7 +169,6 @@ var Resend = class {
|
|
|
161
169
|
...require_nodes_Resend_actions_contactProperty_index.descriptions,
|
|
162
170
|
...require_nodes_Resend_actions_webhook_index.descriptions,
|
|
163
171
|
...require_nodes_Resend_actions_receivingEmail_index.descriptions,
|
|
164
|
-
...require_nodes_Resend_actions_workflow_index.descriptions,
|
|
165
172
|
...require_nodes_Resend_actions_event_index.descriptions,
|
|
166
173
|
...require_nodes_Resend_actions_log_index.descriptions
|
|
167
174
|
]
|
|
@@ -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\" }; 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 };
|
package/dist/nodes/Resend/actions/{workflow/list.operation.js → account/getUsage.operation.js}
RENAMED
|
@@ -1,22 +1,24 @@
|
|
|
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_transport_index = require("../../transport/index.js");
|
|
4
|
-
//#region nodes/Resend/actions/
|
|
5
|
-
var
|
|
4
|
+
//#region nodes/Resend/actions/account/getUsage.operation.ts
|
|
5
|
+
var getUsage_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
6
|
description: () => description,
|
|
7
7
|
execute: () => execute
|
|
8
8
|
});
|
|
9
9
|
const description = [];
|
|
10
|
-
async function execute() {
|
|
11
|
-
|
|
12
|
-
|
|
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
|
+
}];
|
|
13
15
|
}
|
|
14
16
|
//#endregion
|
|
15
17
|
exports.description = description;
|
|
16
18
|
exports.execute = execute;
|
|
17
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "getUsage_operation_exports", {
|
|
18
20
|
enumerable: true,
|
|
19
21
|
get: function() {
|
|
20
|
-
return
|
|
22
|
+
return getUsage_operation_exports;
|
|
21
23
|
}
|
|
22
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 };
|
|
@@ -0,0 +1,37 @@
|
|
|
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/revokeGrant.operation.ts
|
|
5
|
+
var revokeGrant_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
+
description: () => description,
|
|
7
|
+
execute: () => execute
|
|
8
|
+
});
|
|
9
|
+
const description = [{
|
|
10
|
+
displayName: "OAuth Grant ID",
|
|
11
|
+
name: "oauthGrantId",
|
|
12
|
+
type: "string",
|
|
13
|
+
required: true,
|
|
14
|
+
default: "",
|
|
15
|
+
placeholder: "650e8400-e29b-41d4-a716-446655440001",
|
|
16
|
+
displayOptions: { show: {
|
|
17
|
+
resource: ["account"],
|
|
18
|
+
operation: ["revokeGrant"]
|
|
19
|
+
} },
|
|
20
|
+
description: "The unique identifier of the OAuth grant to revoke. Revoking a grant immediately disconnects that OAuth client and invalidates its access and refresh tokens. This cannot be undone."
|
|
21
|
+
}];
|
|
22
|
+
async function execute(index) {
|
|
23
|
+
const oauthGrantId = this.getNodeParameter("oauthGrantId", index);
|
|
24
|
+
return [{
|
|
25
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "DELETE", `/oauth/grants/${encodeURIComponent(oauthGrantId)}`),
|
|
26
|
+
pairedItem: { item: index }
|
|
27
|
+
}];
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.description = description;
|
|
31
|
+
exports.execute = execute;
|
|
32
|
+
Object.defineProperty(exports, "revokeGrant_operation_exports", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return revokeGrant_operation_exports;
|
|
36
|
+
}
|
|
37
|
+
});
|