n8n-nodes-pilot-status 2.21.0 → 2.23.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/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  All notable changes to `n8n-nodes-pilot-status`.
4
4
 
5
+ ## 2.23.0 - 2026-11-29
6
+
7
+ ### Added
8
+
9
+ - Message → Send: Message Types **Location** (latitude, longitude, optional name/address) and
10
+ **Contact** (contacts as JSON — structured or `{"vcard": ...}` — or a raw vCard).
11
+ - Message operations **React** (`POST /v1/messages/{id}/reaction`, emoji) and **Remove
12
+ Reaction** (`DELETE /v1/messages/{id}/reaction`; 422 `NOT_SUPPORTED_ON_OFFICIAL_NUMBER` on
13
+ official numbers).
14
+
15
+ ## 2.22.0 - 2026-11-29
16
+
17
+ ### Added
18
+
19
+ - Trigger events `message.reaction`, `message.edited` and `message.deleted` (edited/deleted on
20
+ official numbers only in coexistence).
21
+ - Every request sends `x-pilot-status-client: n8n/<version>`, which the API reads before the
22
+ User-Agent. A browser `fetch` cannot set `User-Agent`, so without it browser calls were
23
+ counted as `browser` instead of as this client.
24
+
5
25
  ## 2.21.0 - 2026-11-29
6
26
 
7
27
  ### Added
package/README.md CHANGED
@@ -89,6 +89,7 @@ The secret is returned in clear **once**: in the `201` of the create (`POST /v1/
89
89
  - **Flow Response Received** (`flow.response_received`): Triggered when someone SUBMITS a WhatsApp Flow form — the answers arrive here. **META numbers only.** Wrapped in `data`: `{ event, data: { event, flowId, metaFlowId, flowToken, messageId, whatsappNumberId, from, receivedAt, response, responseRaw, flowMedia, submitted } }`. Four things to know. The number field is **`whatsappNumberId`, not `numberId`** — same value, different name on the wire. **`response` and `responseRaw` are mutually exclusive**: `response` holds what your own Flow endpoint returned, already parsed, and `responseRaw` is `null`; if the parse failed it is the other way round, and the raw string is the only copy of the answer there is. **On a Flow with a `data_exchange` endpoint `response` is EMPTY even on a number that stores everything** — Meta's completion payload carries only the `flow_token` — and what the person typed is in **`submitted`**: one entry per `data_exchange` screen, `{ screen, at, data, omitted }`, in order, where `omitted` (`DATA_TOO_LARGE`, `LIMIT_REACHED` or `UNREADABLE`) says why a `data` is `null`. `flowMedia` holds the files attached inside the form: `{ field, fileName, mimeType, status, url }`. Both are `null` and **never `[]`** when empty, so a node testing for an empty array never fires; `GET /v1/flows/{id}/responses` publishes the same two lists as arrays, under `media` and `submitted`. And picking this event for a **non-Meta** number fails SILENTLY: the API filters a webhook's events down to what the number's provider can emit, so the subscription is created with an empty event list, returns `201`, and never fires.
90
90
  - **Lead Received** (`lead.received`): A lead from a **Meta Lead Ads Instant Form** (Facebook / Instagram), delivered on the WhatsApp number whose Page is linked in the dashboard — **any provider**, not only Meta numbers. Wrapped in `data`: `{ event, data: { leadId, leadgenId, whatsappNumberId, pageId, pageName, formId, formName, adId, adsetId, campaignId, adName, adsetName, campaignName, platform, isOrganic, createdAt, fullName, email, phone, fields, consentGiven, conversationId } }`. The number field is **`whatsappNumberId`, not `numberId`**. `leadId` is the Pilot Status id (the one **Lead → Get** takes); `leadgenId` is Meta's, unique per lead — use it to deduplicate. `createdAt` is when the person **submitted** the form. `fields` holds every answer as `{ key, label?, values }`, and `values` is **always a list**, even for a single answer. `label` is absent when it could not be resolved; on **Lead → Get** / **Get Many** it is always present, falling back to the key. `consentGiven` is `true`/`false` only when the form has a consent checkbox configured; `null` means **unknown**, never a refusal.
91
91
  - **Chat Archived / Unarchived** (`chat.archived`, `chat.unarchived`) and **Contact Blocked / Unblocked** (`contact.blocked`, `contact.unblocked`): one shared payload, `{ id, event, data: { numberId, numberPhone, provider, jid, phone, isGroup, occurredAt, source } }`. `provider` is `qrcode` or `meta`; `source` is `phone` (changed on the device) or `api` (changed through Pilot Status); `phone` is `null` when the JID is not a phone (group, LID). **`chat.*` is QR Code only**; `contact.*` fires on QR Code numbers and on official Meta numbers (Meta: only when the block is done through the API). Deduplicate on the top-level `id`.
92
+ - **Message Reaction / Edited / Deleted** (`message.reaction`, `message.edited`, `message.deleted`): one shared payload, `{ id, event, data: { messageId, originalMessageId, originalInternalMessageId, whatsappNumberId, provider, from, to, chatId, isGroup, fromMe, createdAt, emoji?, text? } }`. Only changes made by the contact. `emoji` is `null` when the reaction was removed; `text` is the new text of an edit. On official (Meta) numbers, `message.edited` and `message.deleted` only fire for numbers in coexistence (WhatsApp Business app). Deduplicate on the top-level `id`.
92
93
 
93
94
  Webhook payload notes:
94
95
  - Customer webhook payloads do not include: `projectSlug`, `lastMessageId`. Optional `correlationId` (same as HTTP 202 when present) may appear on outbound status events and on `message.reply` / `message.received` when correlated to a prior send.
@@ -104,7 +105,7 @@ Webhook payload notes:
104
105
  The **Pilot Status** node provides several resources and operations to manage your account and send messages.
105
106
 
106
107
  ### 1. Message
107
- - **Send:** Pick a **Message Type** first (right below the recipient): **Template** (default; OTP, Utility or Marketing template with variables), **Text** (free text — required **Text** field, no template), **Media** (**Media URL**, **Media Type**, optional **Caption**) or **Interactive** (**Text** plus buttons/list/carousel/Flow from Additional Fields). Workflows saved before this field keep working as **Template**. Choose **Phone Number** or **WhatsApp Group**; for groups use `groupId` (JID ending in `@g.us`) instead of `destinationNumber`. Optional dropdown loads groups from `GET /v1/groups` when the WhatsApp session is connected. Variables can be provided via JSON or the UI collection (including placeholders used in button labels). Add **Mark Read** (switched off) under Additional Fields to reply without marking the conversation read — e.g. an AI agent answering while a human should still see it unread; leave it out to follow the number's **Mark Read On Send** setting. Meta Cloud API numbers only (no "typing" indicator either); on Evolution numbers turn off **Read Messages** instead. Note that **Send Typing Indicator** on a Meta number also marks read. Add **Idempotency Key** under Additional Fields to make retries safe: it is sent as the `Idempotency-Key` header (never in the body), and within 24 hours the same key with the same body returns the first accepted response instead of sending again (`Idempotent-Replayed: true`). Map it from your own data (e.g. an order id) so a retry reuses it. Same key + different body → `409 IDEMPOTENCY_KEY_REUSED`; first call still running → `409 IDEMPOTENCY_KEY_IN_USE`; invalid key → `400 IDEMPOTENCY_KEY_INVALID`. Only 2xx responses are remembered, so after an error you can fix the input and retry with the same key.
108
+ - **Send:** Pick a **Message Type** first (right below the recipient): **Template** (default; OTP, Utility or Marketing template with variables), **Text** (free text — required **Text** field, no template), **Media** (**Media URL**, **Media Type**, optional **Caption**) **Interactive** (**Text** plus buttons/list/carousel/Flow from Additional Fields), **Location** (**Latitude**, **Longitude**, optional **Location Name**/**Location Address**) or **Contact** (**Contacts (JSON)** — 1–257 cards, structured or `{"vcard": ...}` — or a raw **vCard**). Workflows saved before this field keep working as **Template**. Choose **Phone Number** or **WhatsApp Group**; for groups use `groupId` (JID ending in `@g.us`) instead of `destinationNumber`. Optional dropdown loads groups from `GET /v1/groups` when the WhatsApp session is connected. Variables can be provided via JSON or the UI collection (including placeholders used in button labels). Add **Mark Read** (switched off) under Additional Fields to reply without marking the conversation read — e.g. an AI agent answering while a human should still see it unread; leave it out to follow the number's **Mark Read On Send** setting. Meta Cloud API numbers only (no "typing" indicator either); on Evolution numbers turn off **Read Messages** instead. Note that **Send Typing Indicator** on a Meta number also marks read. Add **Idempotency Key** under Additional Fields to make retries safe: it is sent as the `Idempotency-Key` header (never in the body), and within 24 hours the same key with the same body returns the first accepted response instead of sending again (`Idempotent-Replayed: true`). Map it from your own data (e.g. an order id) so a retry reuses it. Same key + different body → `409 IDEMPOTENCY_KEY_REUSED`; first call still running → `409 IDEMPOTENCY_KEY_IN_USE`; invalid key → `400 IDEMPOTENCY_KEY_INVALID`. Only 2xx responses are remembered, so after an error you can fix the input and retry with the same key.
108
109
  - **Get Status:** Retrieve the current status of a specific message using either its Pilot Status message id or WhatsApp provider id.
109
110
  - **Get History:** Read the conversation history of the number, newest first — both directions, every provider, including messages imported from the device on connect. Filters by **Start Date** / **End Date** over the *provider* timestamp (when the message happened, not when it was ingested). This is how you fetch old messages: the webhook does not replay history by default. Requires a number-scoped API key.
110
111
  - **Get Many:** The message **log** — sent and received, with delivery status, newest first. Different from Get History: this is the operational trail (`status`, `errorCode`, `origin`, whether the 24h window was open at send), not the chat thread. Filters: Direction, Status (comma-separated), Page, Page Size. For date/search/template filters use the HTTP Request node.
@@ -114,6 +115,8 @@ The **Pilot Status** node provides several resources and operations to manage yo
114
115
  - **Resend:** `POST /v1/messages/{id}/resend`, no body → `202`, a NEW message (`originalMessageId` points back). Only `FAILED`/`CANCELED` (`409 MESSAGE_NOT_RESENDABLE`); a second resend within 120 s is `409 RESEND_ALREADY_IN_FLIGHT`; no stored request is `422`. Number-scoped credential; needs `messages:resend`.
115
116
  - **Mark as Read:** Blue ticks for a contact's last inbound message and every earlier one, without sending anything. Best-effort: a `200` with `acked: false` means there was nothing to acknowledge, or the number is `RELAY_ONLY`.
116
117
  - **Send Typing Indicator:** Show "typing"/"recording" to a contact. It clears when a message is sent or after a provider timeout (~25s on Meta). On **META** numbers `recording` is shown as `typing` and `paused` is a no-op — read `effectiveState` in the response for what actually happened.
118
+ - **React:** React to a message with one emoji (`POST /v1/messages/{id}/reaction`; the **Message ID** may be the Pilot Status id, the correlationId or the wamid). Counts as a message.
119
+ - **Remove Reaction:** Remove this number's reaction (`DELETE /v1/messages/{id}/reaction`). Official (Meta) numbers answer `422 NOT_SUPPORTED_ON_OFFICIAL_NUMBER`.
117
120
  - **Cancel:** Cancel scheduled (not-yet-sent) messages by id.
118
121
 
119
122
  ### 2. Number
@@ -7,9 +7,9 @@ export declare const DEFAULT_BASE_URL = "https://pilotstatus.com.br";
7
7
  * `/v1` callers by User-Agent and recognises this node only when the header STARTS
8
8
  * with `pilot-status-n8n/<version>`; without it n8n would send its generic `n8n`.
9
9
  */
10
- export declare const USER_AGENT = "pilot-status-n8n/2.21.0";
10
+ export declare const USER_AGENT = "pilot-status-n8n/2.23.0";
11
11
  /** `x-pilot-status-client: n8n/<version>`, read by the API BEFORE the User-Agent. */
12
- export declare const CLIENT_HEADER = "n8n/2.21.0";
12
+ export declare const CLIENT_HEADER = "n8n/2.23.0";
13
13
  export declare class PilotStatusApi implements ICredentialType {
14
14
  name: string;
15
15
  displayName: string;
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "2.21.0";
1
+ export declare const PACKAGE_VERSION = "2.23.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PACKAGE_VERSION = void 0;
4
4
  // GENERATED by scripts/write-version.cjs from package.json — do not edit by hand.
5
- exports.PACKAGE_VERSION = "2.21.0";
5
+ exports.PACKAGE_VERSION = "2.23.0";
@@ -1353,7 +1353,7 @@ class PilotStatus {
1353
1353
  send: {
1354
1354
  preSend: [
1355
1355
  async function (requestOptions) {
1356
- var _a, _b, _c, _d, _e, _f, _g;
1356
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1357
1357
  const destinationType = this.getNodeParameter('sendDestinationType') || 'phone';
1358
1358
  if (!requestOptions.body || typeof requestOptions.body !== 'object') {
1359
1359
  requestOptions.body = {};
@@ -1416,6 +1416,50 @@ class PilotStatus {
1416
1416
  else
1417
1417
  delete body.text;
1418
1418
  }
1419
+ else if (messageType === 'location') {
1420
+ delete body.text;
1421
+ const lat = Number(this.getNodeParameter('locationLatitude', 0));
1422
+ const lng = Number(this.getNodeParameter('locationLongitude', 0));
1423
+ if (!Number.isFinite(lat) || lat < -90 || lat > 90 || !Number.isFinite(lng) || lng < -180 || lng > 180) {
1424
+ throw new Error('Pilot Status: Latitude must be between -90 and 90 and Longitude between -180 and 180.');
1425
+ }
1426
+ const location = { latitude: lat, longitude: lng };
1427
+ const name = String((_d = this.getNodeParameter('locationName', '')) !== null && _d !== void 0 ? _d : '').trim();
1428
+ const address = String((_e = this.getNodeParameter('locationAddress', '')) !== null && _e !== void 0 ? _e : '').trim();
1429
+ if (name)
1430
+ location.name = name;
1431
+ if (address)
1432
+ location.address = address;
1433
+ body.location = location;
1434
+ }
1435
+ else if (messageType === 'contact') {
1436
+ delete body.text;
1437
+ const format = this.getNodeParameter('contactsFormat', 'json') || 'json';
1438
+ if (format === 'vcard') {
1439
+ const vcard = String((_f = this.getNodeParameter('contactsVcard', '')) !== null && _f !== void 0 ? _f : '').trim();
1440
+ if (!vcard) {
1441
+ throw new Error('Pilot Status: fill in the "vCard" field to send a contact.');
1442
+ }
1443
+ body.contacts = [{ vcard }];
1444
+ }
1445
+ else {
1446
+ const raw = this.getNodeParameter('contactsJson', '[]');
1447
+ let parsed = raw;
1448
+ if (typeof raw === 'string') {
1449
+ try {
1450
+ parsed = JSON.parse(raw);
1451
+ }
1452
+ catch {
1453
+ throw new Error(`Pilot Status: "Contacts (JSON)" contains invalid JSON.\nValue received: ${raw}`);
1454
+ }
1455
+ }
1456
+ const contacts = Array.isArray(parsed) ? parsed : [parsed];
1457
+ if (contacts.length === 0 || contacts.some((c) => !c || typeof c !== 'object')) {
1458
+ throw new Error('Pilot Status: "Contacts (JSON)" must be a contact object or a non-empty array of them.');
1459
+ }
1460
+ body.contacts = contacts;
1461
+ }
1462
+ }
1419
1463
  }
1420
1464
  const mode = this.getNodeParameter('variablesMode');
1421
1465
  let variables = {};
@@ -1438,8 +1482,8 @@ class PilotStatus {
1438
1482
  }
1439
1483
  else {
1440
1484
  const ui = this.getNodeParameter('variablesUi');
1441
- for (const entry of (_d = ui === null || ui === void 0 ? void 0 : ui.values) !== null && _d !== void 0 ? _d : []) {
1442
- variables[entry.name] = String((_e = entry.value) !== null && _e !== void 0 ? _e : '');
1485
+ for (const entry of (_g = ui === null || ui === void 0 ? void 0 : ui.values) !== null && _g !== void 0 ? _g : []) {
1486
+ variables[entry.name] = String((_h = entry.value) !== null && _h !== void 0 ? _h : '');
1443
1487
  }
1444
1488
  }
1445
1489
  // reason: defensive re-guard — requestOptions.body is already an object here (set above by the first guard / destination handling), so this branch is unreachable.
@@ -1462,7 +1506,7 @@ class PilotStatus {
1462
1506
  ]) {
1463
1507
  // The fields live under Additional Fields; a top-level parameter of
1464
1508
  // the same name is still honoured for older callers.
1465
- const extras = ((_f = this.getNodeParameter('additionalFields', {})) !== null && _f !== void 0 ? _f : {});
1509
+ const extras = ((_j = this.getNodeParameter('additionalFields', {})) !== null && _j !== void 0 ? _j : {});
1466
1510
  const topLevel = this.getNodeParameter(param, '');
1467
1511
  const bruto = topLevel !== undefined && topLevel !== null && topLevel !== ''
1468
1512
  ? topLevel
@@ -1490,7 +1534,7 @@ class PilotStatus {
1490
1534
  : '';
1491
1535
  if (idempotencyKey) {
1492
1536
  requestOptions.headers = {
1493
- ...((_g = requestOptions.headers) !== null && _g !== void 0 ? _g : {}),
1537
+ ...((_k = requestOptions.headers) !== null && _k !== void 0 ? _k : {}),
1494
1538
  'Idempotency-Key': idempotencyKey,
1495
1539
  };
1496
1540
  }
@@ -1562,6 +1606,24 @@ class PilotStatus {
1562
1606
  action: 'Mark messages as read',
1563
1607
  routing: { request: { method: 'POST', url: '/messages/read' } },
1564
1608
  },
1609
+ {
1610
+ name: 'React',
1611
+ value: 'react',
1612
+ description: 'React to a message with one emoji (202, same shape as Send). The message ID may be the Pilot Status id, the correlationId or the WhatsApp id (wamid). Counts as a message. Official numbers: 422 REACTION_TARGET_INVALID (target not received from the user, older than 30 days, deleted or a reaction) and 422 SERVICE_WINDOW_CLOSED; 404 MESSAGE_NOT_FOUND. Needs messages:send and a number-scoped credential.',
1613
+ action: 'React to a message',
1614
+ routing: {
1615
+ request: { method: 'POST', url: '=/messages/{{encodeURIComponent($parameter.reactionMessageId)}}/reaction' },
1616
+ },
1617
+ },
1618
+ {
1619
+ name: 'Remove Reaction',
1620
+ value: 'removeReaction',
1621
+ description: 'Remove this number\'s reaction from a message (202, no body). Official (Meta Cloud API) numbers answer 422 NOT_SUPPORTED_ON_OFFICIAL_NUMBER. Needs messages:send and a number-scoped credential.',
1622
+ action: 'Remove a reaction',
1623
+ routing: {
1624
+ request: { method: 'DELETE', url: '=/messages/{{encodeURIComponent($parameter.reactionMessageId)}}/reaction' },
1625
+ },
1626
+ },
1565
1627
  {
1566
1628
  name: 'Send Typing Indicator',
1567
1629
  value: 'typing',
@@ -1667,6 +1729,8 @@ class PilotStatus {
1667
1729
  value: 'interactive',
1668
1730
  description: 'Text with buttons, list, carousel or Flow (set them under Additional Fields)',
1669
1731
  },
1732
+ { name: 'Location', value: 'location', description: 'A location pin (latitude, longitude, name, address)' },
1733
+ { name: 'Contact', value: 'contact', description: 'One or more contact cards (JSON or raw vCard)' },
1670
1734
  ],
1671
1735
  default: 'template',
1672
1736
  displayOptions: { show: { resource: ['message'], operation: ['send'] } },
@@ -1708,6 +1772,76 @@ class PilotStatus {
1708
1772
  description: 'Audio and Sticker take no caption. Sticker must be image/webp.',
1709
1773
  displayOptions: { show: { resource: ['message'], operation: ['send'], messageType: ['media'] } },
1710
1774
  },
1775
+ {
1776
+ displayName: 'Latitude',
1777
+ name: 'locationLatitude',
1778
+ type: 'number',
1779
+ typeOptions: { minValue: -90, maxValue: 90, numberPrecision: 7 },
1780
+ default: 0,
1781
+ required: true,
1782
+ description: 'Between -90 and 90',
1783
+ displayOptions: { show: { resource: ['message'], operation: ['send'], messageType: ['location'] } },
1784
+ },
1785
+ {
1786
+ displayName: 'Longitude',
1787
+ name: 'locationLongitude',
1788
+ type: 'number',
1789
+ typeOptions: { minValue: -180, maxValue: 180, numberPrecision: 7 },
1790
+ default: 0,
1791
+ required: true,
1792
+ description: 'Between -180 and 180',
1793
+ displayOptions: { show: { resource: ['message'], operation: ['send'], messageType: ['location'] } },
1794
+ },
1795
+ {
1796
+ displayName: 'Location Name',
1797
+ name: 'locationName',
1798
+ type: 'string',
1799
+ default: '',
1800
+ description: 'Optional place name (1–1000 characters)',
1801
+ displayOptions: { show: { resource: ['message'], operation: ['send'], messageType: ['location'] } },
1802
+ },
1803
+ {
1804
+ displayName: 'Location Address',
1805
+ name: 'locationAddress',
1806
+ type: 'string',
1807
+ default: '',
1808
+ description: 'Optional address (1–1000 characters)',
1809
+ displayOptions: { show: { resource: ['message'], operation: ['send'], messageType: ['location'] } },
1810
+ },
1811
+ {
1812
+ displayName: 'Contacts Format',
1813
+ name: 'contactsFormat',
1814
+ type: 'options',
1815
+ options: [
1816
+ { name: 'JSON', value: 'json' },
1817
+ { name: 'vCard', value: 'vcard' },
1818
+ ],
1819
+ default: 'json',
1820
+ displayOptions: { show: { resource: ['message'], operation: ['send'], messageType: ['contact'] } },
1821
+ },
1822
+ {
1823
+ displayName: 'Contacts (JSON)',
1824
+ name: 'contactsJson',
1825
+ type: 'json',
1826
+ default: '[{"name":{"formattedName":""},"phones":[{"phone":""}]}]',
1827
+ required: true,
1828
+ description: '1–257 contacts. Each: {"name":{"formattedName","first?","last?"},"phones":[{"phone","type?"}] (1–20),"emails?":[{"email","type?"}],"org?":{"company?","title?"}} or {"vcard":"BEGIN:VCARD..."}. A single object is also accepted.',
1829
+ displayOptions: {
1830
+ show: { resource: ['message'], operation: ['send'], messageType: ['contact'], contactsFormat: ['json'] },
1831
+ },
1832
+ },
1833
+ {
1834
+ displayName: 'vCard',
1835
+ name: 'contactsVcard',
1836
+ type: 'string',
1837
+ typeOptions: { rows: 6 },
1838
+ default: '',
1839
+ required: true,
1840
+ description: 'Raw vCard 3.0/4.0 text; may contain several BEGIN:VCARD blocks. The API converts it.',
1841
+ displayOptions: {
1842
+ show: { resource: ['message'], operation: ['send'], messageType: ['contact'], contactsFormat: ['vcard'] },
1843
+ },
1844
+ },
1711
1845
  {
1712
1846
  displayName: 'Caption',
1713
1847
  name: 'mediaCaption',
@@ -2122,6 +2256,26 @@ class PilotStatus {
2122
2256
  default: '',
2123
2257
  required: true,
2124
2258
  },
2259
+ // Message: React / Remove Reaction
2260
+ {
2261
+ displayName: 'Message ID',
2262
+ name: 'reactionMessageId',
2263
+ type: 'string',
2264
+ description: 'Target message: Pilot Status id, correlationId or WhatsApp id (wamid)',
2265
+ displayOptions: { show: { resource: ['message'], operation: ['react', 'removeReaction'] } },
2266
+ default: '',
2267
+ required: true,
2268
+ },
2269
+ {
2270
+ displayName: 'Emoji',
2271
+ name: 'reactionEmoji',
2272
+ type: 'string',
2273
+ description: 'Exactly one emoji, e.g. 👍',
2274
+ displayOptions: { show: { resource: ['message'], operation: ['react'] } },
2275
+ default: '',
2276
+ required: true,
2277
+ routing: { send: { type: 'body', property: 'emoji' } },
2278
+ },
2125
2279
  // Message: Get Unread Counts
2126
2280
  {
2127
2281
  displayName: 'WhatsApp Number IDs',
@@ -223,6 +223,21 @@ class PilotStatusTrigger {
223
223
  value: 'contact.unblocked',
224
224
  description: 'A contact was unblocked. QR Code numbers (on the phone or via the API) and Meta numbers (via the API only).',
225
225
  },
226
+ {
227
+ name: 'Message Reaction',
228
+ value: 'message.reaction',
229
+ description: 'A contact reacted to a message, or removed the reaction (data.emoji is null). QR Code and Meta numbers.',
230
+ },
231
+ {
232
+ name: 'Message Edited',
233
+ value: 'message.edited',
234
+ description: 'A contact edited a message (data.text is the new text). QR Code numbers; on Meta numbers only in coexistence (WhatsApp Business app).',
235
+ },
236
+ {
237
+ name: 'Message Deleted',
238
+ value: 'message.deleted',
239
+ description: 'A contact deleted a message for everyone (data.originalMessageId). QR Code numbers; on Meta numbers only in coexistence (WhatsApp Business app).',
240
+ },
226
241
  ],
227
242
  default: '*',
228
243
  description: 'The event to listen to',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-pilot-status",
3
- "version": "2.21.0",
3
+ "version": "2.23.0",
4
4
  "description": "n8n node for Pilot Status API",
5
5
  "keywords": [
6
6
  "n8ncommunity",