n8n-nodes-pilot-status 2.5.0 → 2.7.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 +42 -0
- package/README.md +3 -1
- package/dist/nodes/PilotStatus/PilotStatus.node.js +33 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `n8n-nodes-pilot-status`.
|
|
4
4
|
|
|
5
|
+
## 2.7.0 - 2026-10-19
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Message → Send → Additional Fields → Mark Read** (boolean). Sent as `markRead` only when
|
|
10
|
+
the option is added — `false` included — so leaving it out keeps the number's
|
|
11
|
+
`markReadOnSend` setting (default on). Off on a **Meta Cloud API** number: the message
|
|
12
|
+
goes out without the "typing" indicator and the contact's last inbound message is NOT
|
|
13
|
+
marked read (no blue ticks) — the Cloud API only allows typing as part of a read receipt,
|
|
14
|
+
so the two are inseparable. Use case: an AI agent replies and a human still finds the
|
|
15
|
+
conversation unread later. No effect on Evolution (unofficial) numbers: sending never
|
|
16
|
+
marks read there, and read-on-arrival is the number's **Read Messages** setting (turn it
|
|
17
|
+
off for this use case). ⚠️ **Send Typing Indicator** on a Meta number also marks read.
|
|
18
|
+
- **Number → Update Settings → Mark Read On Send** (boolean, default on) — sent as
|
|
19
|
+
`settings.markReadOnSend`. The per-number default for **Mark Read**, same semantics,
|
|
20
|
+
Meta-only effect. A plain boolean like **Ignore Newsletters**, not an Evolution GO
|
|
21
|
+
tri-state field.
|
|
22
|
+
|
|
23
|
+
## 2.6.0 - 2026-10-11
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **Number → Pay Extra Charge** — `POST /v1/numbers/{id}/pay`, no body; takes only the
|
|
28
|
+
**Number Instance ID**. "Pay now" for the extra-number charge of one number. A number
|
|
29
|
+
past the workspace's paid capacity is charged when it first connects; if that charge is
|
|
30
|
+
refused, sending from the number is blocked (`409 NUMBER_BLOCKED`,
|
|
31
|
+
`reason: "extra_charge_unpaid"`) until it is paid. With a card on file this **charges**
|
|
32
|
+
it. Requires a **tenant-scoped API key** with the `billing:manage` permission.
|
|
33
|
+
- Answers `{ ok: true, status: "paid" }`, or `status: "not_required"` when nothing is
|
|
34
|
+
owed for the number — so the operation is safe to repeat.
|
|
35
|
+
- Fails the item with `402 PAYMENT_FAILED` (may carry `declineCode`, `proratedTotal`,
|
|
36
|
+
`currency`), `402 INSUFFICIENT_FUNDS` (no credits and no usable card),
|
|
37
|
+
`409 PAYMENT_IN_PROGRESS` (another payment of the workspace is running — retry in a
|
|
38
|
+
few seconds), `502 PAYMENT_PROVIDER_ERROR` (the charge could not be concluded; Pilot
|
|
39
|
+
Status retries it on its own), `404 NUMBER_NOT_FOUND`, or
|
|
40
|
+
`403 NUMBER_SCOPE_NOT_ALLOWED` / `PERMISSION_DENIED`.
|
|
41
|
+
- **Number → Get** now returns `extraChargeUnpaidSince` and `extraChargeDisconnectAt` (ISO
|
|
42
|
+
timestamps or `null`) at the top level of the number. The first is non-null while sending
|
|
43
|
+
is blocked for the unpaid charge; the second is when the number is disconnected if it
|
|
44
|
+
stays unpaid (7 days after the block) and is always `null` on a Meta Cloud API number.
|
|
45
|
+
No node change: the node passes the API response through.
|
|
46
|
+
|
|
5
47
|
## 2.5.0 - 2026-10-08
|
|
6
48
|
|
|
7
49
|
### Added
|
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ Webhook payload notes:
|
|
|
90
90
|
The **Pilot Status** node provides several resources and operations to manage your account and send messages.
|
|
91
91
|
|
|
92
92
|
### 1. Message
|
|
93
|
-
- **Send:** Send a template message (OTP, Utility, or Marketing). 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).
|
|
93
|
+
- **Send:** Send a template message (OTP, Utility, or Marketing). 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.
|
|
94
94
|
- **Get Status:** Retrieve the current status of a specific message using either its Pilot Status message id or WhatsApp provider id.
|
|
95
95
|
- **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.
|
|
96
96
|
- **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.
|
|
@@ -111,9 +111,11 @@ The **Pilot Status** node provides several resources and operations to manage yo
|
|
|
111
111
|
- **Restore:** Undo a soft-delete inside the window. Gives back the **row**, not the connection: run **Connect** afterwards (`requiresReconnect: true`).
|
|
112
112
|
- **Purge:** Irreversible hard delete. Cascades chat, messages, templates and keys, and tears the number down at Meta.
|
|
113
113
|
- **Logout:** Unpair the device without deleting anything — id, keys, webhooks and history are kept.
|
|
114
|
+
- **Pay Extra Charge:** Pay now the extra-number charge of one number (`POST /numbers/{id}/pay`, no body). A number past the paid capacity is charged when it first connects; if that charge is refused, **sending** from it is blocked (`409 NUMBER_BLOCKED`, `reason: "extra_charge_unpaid"`) until it is paid — **Get** shows `extraChargeUnpaidSince` and, for a non-Meta number, `extraChargeDisconnectAt` (when it is disconnected if it stays unpaid). With a card on file this **charges** it, and it needs a **tenant-scoped API key** with the `billing:manage` permission. Answers `status: "paid"`, or `"not_required"` when nothing is owed (safe to repeat). Fails with `402 PAYMENT_FAILED` / `INSUFFICIENT_FUNDS`, `409 PAYMENT_IN_PROGRESS`, or `502 PAYMENT_PROVIDER_ERROR` (retried by Pilot Status on its own).
|
|
114
115
|
- **Check on WhatsApp:** Whether a phone exists on WhatsApp. **Non-official (Evolution) numbers only** — a Meta number answers `400 NOT_SUPPORTED_FOR_META`. For Brazilian mobiles the 9th-digit variant is probed too, and the returned `number` is the **registered** form to send to, which may differ from what you passed.
|
|
115
116
|
- **Update Settings:** Per-number settings. This is the only settings endpoint: there is no `POST /numbers/{id}/settings`, and Evolution's `syncFullHistory` does not exist here. Partial — only the fields you add to the collection change.
|
|
116
117
|
- **History Import Enabled** / **Webhook Historical Messages** apply to every provider. The second is off by default: each reconnect replays up to 30 days of conversation, and your integration cannot tell it apart from new traffic (on the FREE plan it also consumes inbound quota). To *read* history, use Message → Get History.
|
|
118
|
+
- **Ignore Newsletters** and **Mark Read On Send** are platform-level too (not Evolution GO fields). **Mark Read On Send** (on by default) is the default for **Mark Read** on Message → Send: switched off, a send from a **Meta Cloud API** number goes out without the "typing" indicator and does **not** mark the contact's last message as read (no blue ticks) — Meta only allows typing as part of a read receipt, so the two are inseparable. It has no effect on Evolution numbers: sending never marks read there, and read-on-arrival is **Read Messages**.
|
|
117
119
|
- **Always Online**, **Reject Call**, **Reject Call Message**, **Read Messages**, **Ignore Groups**, **Ignore Status** are the Evolution GO advanced settings, in the GO dialect (`ignoreGroups`, not the v2 `groupsIgnore`). They are tri-state: *Inherit From Provider* leaves the field untouched, *Reset to Provider Default* clears the stored value. On a Meta number they are stored but never applied.
|
|
118
120
|
|
|
119
121
|
### 3. API Key
|
|
@@ -650,6 +650,13 @@ class PilotStatus {
|
|
|
650
650
|
default: false,
|
|
651
651
|
description: 'Whether to enable AI rewriting for marketing messages',
|
|
652
652
|
},
|
|
653
|
+
{
|
|
654
|
+
displayName: 'Mark Read',
|
|
655
|
+
name: 'markRead',
|
|
656
|
+
type: 'boolean',
|
|
657
|
+
default: false,
|
|
658
|
+
description: 'Whether this send marks the conversation as read. Leave it out to use the number\'s Mark Read On Send setting (on by default); add it switched off to reply without marking read. Off on a Meta Cloud API number: no "typing" indicator and the contact\'s last message is NOT marked read (no blue ticks) — Meta only allows typing as part of a read receipt, so the two go together. No effect on Evolution numbers (sending never marks read there; use the Read Messages setting). Note: Send Typing Indicator on a Meta number also marks read.',
|
|
659
|
+
},
|
|
653
660
|
{
|
|
654
661
|
displayName: 'Media URL',
|
|
655
662
|
name: 'media',
|
|
@@ -840,6 +847,16 @@ class PilotStatus {
|
|
|
840
847
|
default: '={{ $parameter.additionalFields?.aiRewriteEnabled ? { aiRewriteEnabled: true } : undefined }}',
|
|
841
848
|
routing: { send: { type: 'body', property: 'marketingOptions' } },
|
|
842
849
|
},
|
|
850
|
+
{
|
|
851
|
+
displayName: 'Mark Read',
|
|
852
|
+
name: 'markReadNormalized',
|
|
853
|
+
type: 'hidden',
|
|
854
|
+
displayOptions: { show: { resource: ['message'], operation: ['send'] } },
|
|
855
|
+
// `false` is the value that matters, so test for presence, not truthiness:
|
|
856
|
+
// an omitted option must leave the number's markReadOnSend in charge.
|
|
857
|
+
default: '={{ typeof $parameter.additionalFields?.markRead === "boolean" ? $parameter.additionalFields.markRead : undefined }}',
|
|
858
|
+
routing: { send: { type: 'body', property: 'markRead' } },
|
|
859
|
+
},
|
|
843
860
|
{
|
|
844
861
|
displayName: 'Media URL',
|
|
845
862
|
name: 'mediaNormalized',
|
|
@@ -1140,6 +1157,13 @@ class PilotStatus {
|
|
|
1140
1157
|
action: 'Logout a number',
|
|
1141
1158
|
routing: { request: { method: 'POST', url: '=/numbers/{{$parameter.numberId}}/logout' } },
|
|
1142
1159
|
},
|
|
1160
|
+
{
|
|
1161
|
+
name: 'Pay Extra Charge',
|
|
1162
|
+
value: 'pay',
|
|
1163
|
+
description: 'Pay now the extra-number charge of one number. A number past the paid capacity is charged when it first connects; if that charge is refused, SENDING from the number is blocked (409 NUMBER_BLOCKED, reason extra_charge_unpaid) until it is paid — Get shows extraChargeUnpaidSince and extraChargeDisconnectAt. With a card on file this CHARGES it. Requires a tenant-scoped API key with the billing:manage permission. Answers status paid, or not_required when nothing is owed (safe to repeat). Fails with 402 PAYMENT_FAILED or INSUFFICIENT_FUNDS, 409 PAYMENT_IN_PROGRESS, or 502 PAYMENT_PROVIDER_ERROR (retried by Pilot Status on its own).',
|
|
1164
|
+
action: 'Pay the extra charge of a number',
|
|
1165
|
+
routing: { request: { method: 'POST', url: '=/numbers/{{$parameter.numberId}}/pay' } },
|
|
1166
|
+
},
|
|
1143
1167
|
{
|
|
1144
1168
|
name: 'Check on WhatsApp',
|
|
1145
1169
|
value: 'check',
|
|
@@ -1212,6 +1236,7 @@ class PilotStatus {
|
|
|
1212
1236
|
'restore',
|
|
1213
1237
|
'purge',
|
|
1214
1238
|
'logout',
|
|
1239
|
+
'pay',
|
|
1215
1240
|
'get',
|
|
1216
1241
|
'updateSettings',
|
|
1217
1242
|
],
|
|
@@ -1266,6 +1291,13 @@ class PilotStatus {
|
|
|
1266
1291
|
default: false,
|
|
1267
1292
|
description: 'Whether to drop WhatsApp Channel (@newsletter) posts on ingestion: no conversation, no stored message and no webhook. Not an Evolution GO field — the provider has no channel gate, so the post always arrives and can only be refused on our side.',
|
|
1268
1293
|
},
|
|
1294
|
+
{
|
|
1295
|
+
displayName: 'Mark Read On Send',
|
|
1296
|
+
name: 'markReadOnSend',
|
|
1297
|
+
type: 'boolean',
|
|
1298
|
+
default: true,
|
|
1299
|
+
description: 'Whether sends from this number mark the conversation as read by default (Message → Send can override it with Mark Read). On by default. Off on a Meta Cloud API number: sends go out without the "typing" indicator and do NOT mark the contact\'s last message as read (no blue ticks) — Meta only allows typing as part of a read receipt. Accepted on every provider, but only a Meta number is affected: sending never marks read on Evolution, where read-on-arrival is Read Messages. Not an Evolution GO field.',
|
|
1300
|
+
},
|
|
1269
1301
|
{
|
|
1270
1302
|
displayName: 'Always Online',
|
|
1271
1303
|
name: 'alwaysOnline',
|
|
@@ -1330,7 +1362,7 @@ class PilotStatus {
|
|
|
1330
1362
|
displayOptions: { show: { resource: ['number'], operation: ['updateSettings'] } },
|
|
1331
1363
|
// `|| undefined` no fim: um `settings: {}` seria rejeitado com 400
|
|
1332
1364
|
// EMPTY_PATCH pelo servidor.
|
|
1333
|
-
default: '={{ (() => { const c = $parameter.numberSettings || {}; const out = {}; for (const k of ["historyImportEnabled","webhookHistoricalMessages","ignoreNewsletters"]) { if (c[k] !== undefined) out[k] = c[k]; } for (const k of ["alwaysOnline","rejectCall","readMessages","ignoreGroups","ignoreStatus"]) { const v = c[k]; if (v === "on") out[k] = true; else if (v === "off") out[k] = false; else if (v === "default") out[k] = null; } if (c.msgRejectCallReset === true) out.msgRejectCall = null; else if (c.msgRejectCall) out.msgRejectCall = c.msgRejectCall; return Object.keys(out).length ? out : undefined; })() }}',
|
|
1365
|
+
default: '={{ (() => { const c = $parameter.numberSettings || {}; const out = {}; for (const k of ["historyImportEnabled","webhookHistoricalMessages","ignoreNewsletters","markReadOnSend"]) { if (c[k] !== undefined) out[k] = c[k]; } for (const k of ["alwaysOnline","rejectCall","readMessages","ignoreGroups","ignoreStatus"]) { const v = c[k]; if (v === "on") out[k] = true; else if (v === "off") out[k] = false; else if (v === "default") out[k] = null; } if (c.msgRejectCallReset === true) out.msgRejectCall = null; else if (c.msgRejectCall) out.msgRejectCall = c.msgRejectCall; return Object.keys(out).length ? out : undefined; })() }}',
|
|
1334
1366
|
routing: { send: { type: 'body', property: 'settings' } },
|
|
1335
1367
|
},
|
|
1336
1368
|
// ----------------------------------
|