n8n-nodes-pilot-status 2.24.0 → 2.24.1
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,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `n8n-nodes-pilot-status`.
|
|
4
4
|
|
|
5
|
+
## 2.24.1 - 2026-12-01
|
|
6
|
+
|
|
7
|
+
### Changed (BREAKING)
|
|
8
|
+
|
|
9
|
+
- Number → List Contacts / Get Contact / Get Contact Picture / Block / Unblock descriptions
|
|
10
|
+
follow the simplified API responses. Contacts are `{ phone, name, whatsappName }` (removed
|
|
11
|
+
`lid`, `jid`, `firstName`, `fullName`, `businessName`, `pushName`, `found`); the list lost
|
|
12
|
+
`totalPages`; the picture is `{ phone, url }` (removed `jid`, `pictureId`,
|
|
13
|
+
`cachedForSeconds`); block/unblock answer `{ phone, blocked }` (removed `success`,
|
|
14
|
+
`numberId`, `provider`, `jid`, `occurredAt`). `phone` is E.164 or `<id>@lid` (opaque).
|
|
15
|
+
|
|
5
16
|
## 2.24.0 - 2026-11-30
|
|
6
17
|
|
|
7
18
|
### Added
|
package/README.md
CHANGED
|
@@ -142,8 +142,8 @@ The **Pilot Status** node provides several resources and operations to manage yo
|
|
|
142
142
|
- **Create Meta Number:** `POST /v1/numbers/meta` with `{ name, number, metaPhoneId, metaWabaId, metaAccessToken, metaAppSecret, metaAppId, routeWebhooksToPilot }` → `201 { number, webhook, linkedApiKeyId }`. Your own WABA credentials: the ids are node fields, `metaAccessToken` and `metaAppSecret` come from the **Pilot Status Meta Number** credential. **Route Webhooks to Pilot Status** subscribes the WHOLE WABA to our callback. A number key cannot create numbers; an existing number is `409`.
|
|
143
143
|
- **Get Many API Keys:** `GET /v1/numbers/{id}/api-keys` → `{ data }`, masked. **Create API Key:** `POST /v1/numbers/{id}/api-keys` with `{ name }` → `201 { apiKey }` — the secret `apiKey.key` is returned **only once**; `409 NUMBER_KEY_LIMIT_REACHED` at the limit. **Revoke API Key:** `DELETE /v1/numbers/{id}/api-keys/{keyId}` → `{ revoked, id }`; the default key is `409 PRIMARY_KEY_USE_REGENERATE` (use API Key → Regenerate). All three need an account credential (`403 NUMBER_SCOPE_NOT_ALLOWED` for a number key).
|
|
144
144
|
- **Archive / Unarchive Chat:** `POST` / `DELETE /v1/numbers/{id}/chats/{jid}/archive`, no body. QR (Evolution GO) numbers only — an official number is `422 NOT_AVAILABLE_FOR_OFFICIAL_NUMBERS`. **Chat JID** (E.164 or full JID) is URL-encoded.
|
|
145
|
-
- **List Contacts / Get Contact / Get Contact Picture:** `GET /v1/numbers/{id}/contacts` (Search, Page, Page Size — same pagination as Conversation → Get Many; `{ contacts, total, page, pageSize,
|
|
146
|
-
- **Block / Unblock Contact:** `POST` / `DELETE /v1/numbers/{id}/contacts/{phone}/block`, no body
|
|
145
|
+
- **List Contacts / Get Contact / Get Contact Picture:** `GET /v1/numbers/{id}/contacts` (Search, Page, Page Size — same pagination as Conversation → Get Many; `{ contacts, total, page, pageSize }`, each contact `{ phone, name, whatsappName }`), `GET …/contacts/{phone}` (`{ contact, inAddressBook }`) and `GET …/contacts/{phone}/picture` (`{ phone, url }`; 404 when there is none). `phone` is E.164 or, when WhatsApp hasn't exposed the number yet, `<id>@lid` — treat it as opaque. QR numbers only: an official number answers `422 FEATURE_NOT_SUPPORTED`. Need `chat:read`.
|
|
146
|
+
- **Block / Unblock Contact:** `POST` / `DELETE /v1/numbers/{id}/contacts/{phone}/block`, no body; answers `{ phone, blocked }`. QR and official numbers; any other rail is `422 FEATURE_NOT_SUPPORTED`. **Contact Phone** is URL-encoded. Archive and block need `contacts:manage`.
|
|
147
147
|
|
|
148
148
|
### 3. API Key
|
|
149
149
|
- **Regenerate:** Regenerate the default API Key of a single WhatsApp number (tenant-scoped), identified by its `whatsappNumberId`. The previous key for that number is rotated and the new key is returned.
|
|
@@ -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.24.
|
|
10
|
+
export declare const USER_AGENT = "pilot-status-n8n/2.24.1";
|
|
11
11
|
/** `x-pilot-status-client: n8n/<version>`, read by the API BEFORE the User-Agent. */
|
|
12
|
-
export declare const CLIENT_HEADER = "n8n/2.24.
|
|
12
|
+
export declare const CLIENT_HEADER = "n8n/2.24.1";
|
|
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.24.
|
|
1
|
+
export declare const PACKAGE_VERSION = "2.24.1";
|
|
@@ -2665,7 +2665,7 @@ class PilotStatus {
|
|
|
2665
2665
|
{
|
|
2666
2666
|
name: 'List Contacts',
|
|
2667
2667
|
value: 'listContacts',
|
|
2668
|
-
description: "The number's address book: {contacts, total, page, pageSize
|
|
2668
|
+
description: "The number's address book: {contacts, total, page, pageSize}; each contact {phone, name, whatsappName} (name = best resolved name, whatsappName = WhatsApp push name or null); phone is E.164 or, when WhatsApp has not exposed the number yet, <id>@lid (treat it as opaque), or null when neither is known. Search filters by name or phone. QR numbers only: an official number answers 422 FEATURE_NOT_SUPPORTED. Needs chat:read.",
|
|
2669
2669
|
action: 'List contacts of a number',
|
|
2670
2670
|
routing: {
|
|
2671
2671
|
request: { method: 'GET', url: '=/numbers/{{$parameter.numberId}}/contacts' },
|
|
@@ -2675,7 +2675,7 @@ class PilotStatus {
|
|
|
2675
2675
|
{
|
|
2676
2676
|
name: 'Get Contact',
|
|
2677
2677
|
value: 'getContact',
|
|
2678
|
-
description: 'One contact of the address book: {phone,
|
|
2678
|
+
description: 'One contact of the address book: {contact: {phone, name, whatsappName}, inAddressBook}; phone may be null when neither a phone nor a LID is known. 404 when not found. QR numbers only (official: 422 FEATURE_NOT_SUPPORTED). Needs chat:read.',
|
|
2679
2679
|
action: 'Get a contact of a number',
|
|
2680
2680
|
routing: {
|
|
2681
2681
|
request: {
|
|
@@ -2687,7 +2687,7 @@ class PilotStatus {
|
|
|
2687
2687
|
{
|
|
2688
2688
|
name: 'Get Contact Picture',
|
|
2689
2689
|
value: 'getContactPicture',
|
|
2690
|
-
description: "A contact's profile picture: {phone,
|
|
2690
|
+
description: "A contact's profile picture: {phone, url}. 404 when there is none. QR numbers only (official: 422 FEATURE_NOT_SUPPORTED). Needs chat:read.",
|
|
2691
2691
|
action: 'Get the profile picture of a contact',
|
|
2692
2692
|
routing: {
|
|
2693
2693
|
request: {
|
|
@@ -2699,7 +2699,7 @@ class PilotStatus {
|
|
|
2699
2699
|
{
|
|
2700
2700
|
name: 'Block Contact',
|
|
2701
2701
|
value: 'block',
|
|
2702
|
-
description: 'Block a contact. QR (Evolution GO) and official (Meta) numbers; any other rail is 422 FEATURE_NOT_SUPPORTED. Needs contacts:manage.',
|
|
2702
|
+
description: 'Block a contact: {phone, blocked}. QR (Evolution GO) and official (Meta) numbers; any other rail is 422 FEATURE_NOT_SUPPORTED. Needs contacts:manage.',
|
|
2703
2703
|
action: 'Block a contact',
|
|
2704
2704
|
routing: {
|
|
2705
2705
|
request: {
|
|
@@ -2711,7 +2711,7 @@ class PilotStatus {
|
|
|
2711
2711
|
{
|
|
2712
2712
|
name: 'Unblock Contact',
|
|
2713
2713
|
value: 'unblock',
|
|
2714
|
-
description: 'Unblock a contact. QR (Evolution GO) and official (Meta) numbers. Needs contacts:manage.',
|
|
2714
|
+
description: 'Unblock a contact: {phone, blocked}. QR (Evolution GO) and official (Meta) numbers. Needs contacts:manage.',
|
|
2715
2715
|
action: 'Unblock a contact',
|
|
2716
2716
|
routing: {
|
|
2717
2717
|
request: {
|