planvortex 0.20.0 → 0.21.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 +1 -1
- package/dist/{chunk-DRVCK5JO.js → chunk-A77VAAQH.js} +5 -4
- package/dist/chunk-A77VAAQH.js.map +1 -0
- package/dist/{index-BQPQczjR.d.cts → index-BsE8URFA.d.cts} +112 -19
- package/dist/{index-BQPQczjR.d.ts → index-BsE8URFA.d.ts} +112 -19
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/webhooks/index.cjs +3 -2
- package/dist/webhooks/index.cjs.map +1 -1
- package/dist/webhooks/index.d.cts +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/dist/webhooks/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DRVCK5JO.js.map +0 -1
|
@@ -1124,6 +1124,8 @@ interface paths {
|
|
|
1124
1124
|
* **The network decides how long a file lives.** WhatsApp lets go of a file 7 days after it arrived, and Meta drops one when the message or the story is deleted. After that the answer is **1515**, with `data.social_network`; on a number that also runs the WhatsApp Business app, the file is still there. **1516** means the message is not from this account, or has no file at that position.
|
|
1125
1125
|
*
|
|
1126
1126
|
* Images, videos and audio come back `inline`. Anything else (a PDF, a spreadsheet, an HTML file, an SVG) comes back as an `attachment`: someone outside the business sent it, so don't render it inside your own pages.
|
|
1127
|
+
*
|
|
1128
|
+
* **Playing it in a browser.** Not every format WhatsApp accepts plays in a browser: an AMR voice note or a 3GPP video plays in none, and Safari does not play the Ogg/Opus of an ordinary voice note. Add `playable=1` and an audio or a video comes back converted to a format every browser plays (`audio/mp4` or `video/mp4`). **1517** means it could not be converted; the original is still there without the parameter, and the original is what a download should give.
|
|
1127
1129
|
*/
|
|
1128
1130
|
get: operations["getMessageFile"];
|
|
1129
1131
|
put?: never;
|
|
@@ -1470,7 +1472,7 @@ interface paths {
|
|
|
1470
1472
|
* You need it when a file has no `url`, or when its `url` stopped loading:
|
|
1471
1473
|
*
|
|
1472
1474
|
* • **LinkedIn** gives only the image's id, never a link.
|
|
1473
|
-
* • **Telegram**'s download link carries the bot's token, so it never leaves PlanVortex. A bot can only download up to 20 MB: past that the answer is **1515** with `data.reason: "too_big"`, and the file is only visible in Telegram.
|
|
1475
|
+
* • **Telegram**'s download link carries the bot's token, so it never leaves PlanVortex. A bot can only download up to 20 MB: past that the answer is **1515** with `data.reason: "too_big"` and `data.max_mb: 20`, and the file is only visible in Telegram. Tell the user that, not that the file is gone: it is still there.
|
|
1474
1476
|
* • **Bluesky** videos are an HLS playlist that browsers other than Safari do not play; this returns the video file itself.
|
|
1475
1477
|
* • **Facebook, Threads and Discord** links expire; this reads the comment again and returns the file behind a fresh link.
|
|
1476
1478
|
* • **X** links do not expire, and reading a post again costs money, so X is not re-read: if its `url` no longer loads, the post was deleted and the answer is **1515**.
|
|
@@ -1479,6 +1481,8 @@ interface paths {
|
|
|
1479
1481
|
*
|
|
1480
1482
|
* Images, videos and audio come back `inline`. Anything else comes back as an `attachment`: someone outside the business posted it, so don't render it inside your own pages.
|
|
1481
1483
|
*
|
|
1484
|
+
* **Playing it in a browser.** Not every audio or video format plays in every browser: Safari does not play the Ogg/Opus of a Telegram voice note, for instance. Add `playable=1` and an audio or a video comes back converted to a format every browser plays (`audio/mp4` or `video/mp4`). **1517** means it could not be converted; the original is still there without the parameter, and the original is what a download should give.
|
|
1485
|
+
*
|
|
1482
1486
|
* Requires the `comments:read` permission (`client_organization_comments:read` for apps) and a paid plan.
|
|
1483
1487
|
*/
|
|
1484
1488
|
get: operations["getCommentFile"];
|
|
@@ -1641,6 +1645,8 @@ interface paths {
|
|
|
1641
1645
|
/**
|
|
1642
1646
|
* List the contacts of an organization
|
|
1643
1647
|
* @description Newest first. `search` is a full-text search over the name, and `extra_data` filters by your own fields — which is what makes it possible to ask for "the contacts of this campaign" without keeping a second database.
|
|
1648
|
+
*
|
|
1649
|
+
* **A WhatsApp contact may have no phone number.** Since 2026 Meta leaves the number out for people who use a WhatsApp username and have not dealt with that business number by phone in the last 30 days. Such a contact's WhatsApp `external_identifier` is their `user_id` (the BSUID, e.g. `ES.13491208655302741918`), not a phone number, so don't show it or dial it as one. You can still write to them: PlanVortex sends through the BSUID. When their number arrives later, the same contact gets it as `external_identifier` and keeps its `_id` and its messages.
|
|
1644
1650
|
*/
|
|
1645
1651
|
get: operations["getContacts"];
|
|
1646
1652
|
put?: never;
|
|
@@ -1722,7 +1728,7 @@ interface paths {
|
|
|
1722
1728
|
* The whole home screen in one call
|
|
1723
1729
|
* @description Composes every block of the home screen in a single round trip: operational health, publications, publication metrics, account metrics, plan use, AI plans, the best AI plans and unread messages.
|
|
1724
1730
|
*
|
|
1725
|
-
* **A block the caller cannot read is omitted, not refused.** The endpoint
|
|
1731
|
+
* **A block the caller cannot read is omitted, not refused.** The endpoint lets in anyone who can read at least one block (the organization, publications, publication stats, account stats, accounts, messages or AI plans) and then checks each block on its own: somebody who can only see publications gets their home with that block, not a 403. A caller who can read none of them gets `520`. `available_blocks` says which blocks were allowed, so an absent block for lack of permission and an absent block for lack of data can be drawn differently.
|
|
1726
1732
|
*
|
|
1727
1733
|
* The messages block is also omitted when the client's plan has no messaging.
|
|
1728
1734
|
*/
|
|
@@ -2462,7 +2468,7 @@ interface paths {
|
|
|
2462
2468
|
};
|
|
2463
2469
|
/**
|
|
2464
2470
|
* Unread messages in the organization
|
|
2465
|
-
* @description How many incoming messages are still unread across every account of the organization.
|
|
2471
|
+
* @description How many incoming messages are still unread across every account of the organization, in total and per account. `total` is the number for a badge; `accounts` says which account holds them, so an inbox can mark the right one instead of making the user open each. It costs one query: do not compute it by walking the conversations.
|
|
2466
2472
|
*/
|
|
2467
2473
|
get: operations["getUnreadMessages"];
|
|
2468
2474
|
put?: never;
|
|
@@ -2666,6 +2672,8 @@ interface paths {
|
|
|
2666
2672
|
*
|
|
2667
2673
|
* **Four more are what TikTok's content sharing guidelines ask a composer to show**, and are `true` only on `tiktok` today: `visibility` (on TikTok, with no default), `interactions`, `commercial_content`, and `publish_settings`, which says the options each account allows must be read from `GET /organizations/{id_organization}/accounts/{id_account}/publish_settings` instead of a fixed list.
|
|
2668
2674
|
*
|
|
2675
|
+
* **`statistics` says whether PlanVortex reads any metric of that network.** It is `true` on every network but `whatsapp`, which does not publish and has no metrics to read. Use it to decide which accounts to offer on a statistics screen (or filter the account list with `capability=statistics`) instead of finding out from an empty series.
|
|
2676
|
+
*
|
|
2669
2677
|
* A `true` here is about the **network**, not about one account of it: a Telegram channel with no linked discussion group answers 965 on its comments even though the network has them.
|
|
2670
2678
|
*
|
|
2671
2679
|
* Only needs authentication.
|
|
@@ -2806,7 +2814,7 @@ interface webhooks {
|
|
|
2806
2814
|
*
|
|
2807
2815
|
* A WhatsApp number can work in the **WhatsApp Business app** on a phone and in PlanVortex at the same time. What the business sends from the app arrives as `field: "message_echoes"`, with the message in `messageObj` as one of **ours**: `contact_id` is the person it was sent to and `from_contact_id` is absent. Store it in the thread; do not answer it. It does not open WhatsApp's 24-hour window.
|
|
2808
2816
|
*
|
|
2809
|
-
* When a contact edits or deletes a message, no event is sent: the message itself changes, and the next read returns it with `edit_date` or `
|
|
2817
|
+
* When a contact edits or deletes a message, or anyone reacts to one, no event is sent: the message itself changes, and the next read returns it with `edit_date`, `deleted_date` or its `reactions`.
|
|
2810
2818
|
*
|
|
2811
2819
|
* ### Verifying the signature
|
|
2812
2820
|
*
|
|
@@ -3959,6 +3967,8 @@ interface components {
|
|
|
3959
3967
|
publish_settings: boolean;
|
|
3960
3968
|
/** @description The publication can say **who can reply** to it (`reply_control`): anyone, the account's followers, the profiles it follows or the profiles mentioned in the text. It is set when the publication goes out and cannot be changed afterwards. On a network that answers `false` the field is deleted on save, so do not offer it. Today only `threads`. */
|
|
3961
3969
|
reply_control: boolean;
|
|
3970
|
+
/** @description PlanVortex reads **statistics** for this network: account metrics (`GET /organizations/{id_organization}/accounts/{id_account}/metrics`, whose names come from `.../metric_list`) and, on the networks that publish, the metrics of each publication. It is `true` exactly when the network declares at least one account metric, so it never promises a statistics screen that would stay empty. Today every network but `whatsapp`, which does not publish and has none. */
|
|
3971
|
+
statistics: boolean;
|
|
3962
3972
|
/** @description The publication can say **who can see it** when it goes out (`visibility`). On a network that answers `false` the field is deleted on save, so do not offer it. Today `youtube` (public, unlisted, private) and `tiktok` (public, friends, followers, private; which ones each account allows comes from `publish_settings`). */
|
|
3963
3973
|
visibility: boolean;
|
|
3964
3974
|
webhooks: boolean;
|
|
@@ -4076,7 +4086,7 @@ interface components {
|
|
|
4076
4086
|
ContactsSocialIdentifierInput: {
|
|
4077
4087
|
/** @description Only when you are keeping an identifier the API already gave you. */
|
|
4078
4088
|
_id?: string;
|
|
4079
|
-
/** @description The contact id on that channel — the phone number on WhatsApp, the PSID on Messenger. Optional in the model, but a contact without it cannot be written to, and it is what deduplicates on create. */
|
|
4089
|
+
/** @description The contact id on that channel — the phone number on WhatsApp, the PSID on Messenger. Optional in the model, but a contact without it cannot be written to, and it is what deduplicates on create. On WhatsApp, for someone whose number you don't have, the `user_id` (BSUID) of a contact the API already returned also works: PlanVortex then writes to them through it. */
|
|
4080
4090
|
external_identifier?: string;
|
|
4081
4091
|
social_network: components["schemas"]["ContactChannel"];
|
|
4082
4092
|
};
|
|
@@ -4322,7 +4332,7 @@ interface components {
|
|
|
4322
4332
|
* The catalogue grows with the product, so treat an unknown `code` as a generic failure instead of rejecting it.
|
|
4323
4333
|
*/
|
|
4324
4334
|
Error: {
|
|
4325
|
-
/** @description PlanVortex error code. Ranges: 500-554 auth, tokens, client apps and connect sessions · 601-612 user · 700-716 social accounts · 800-810 files · 900-996 publications · 1000-1003 general · 1100-1111 organizations · 1200-1207 roles · 1300-1309 client plan · 1400-1408 organization plan · 1500-
|
|
4335
|
+
/** @description PlanVortex error code. Ranges: 500-554 auth, tokens, client apps and connect sessions · 601-612 user · 700-716 social accounts · 800-810 files · 900-996 publications · 1000-1003 general · 1100-1111 organizations · 1200-1207 roles · 1300-1309 client plan · 1400-1408 organization plan · 1500-1517 messaging · 1600-1601 contacts · 1900-1906 payments · 2000-2099 products · 2100-2199 AI plans · 2200-2299 integrations · 2500-2599 publication fields, the ones that no longer fit in 900-996 (visibility, made for kids, TikTok's interactions and commercial content) · 2600-2699 comments, the ones that no longer fit in 945-948. */
|
|
4326
4336
|
code: number;
|
|
4327
4337
|
/** @description Extra context attached to the error, when there is any. */
|
|
4328
4338
|
data?: {
|
|
@@ -4579,6 +4589,28 @@ interface components {
|
|
|
4579
4589
|
message_errors: components["schemas"]["Error"][];
|
|
4580
4590
|
message_options: components["schemas"]["MessageOptions"];
|
|
4581
4591
|
message_type: components["schemas"]["MessageType"];
|
|
4592
|
+
/**
|
|
4593
|
+
* @description The emoji reactions this message has on the network: WhatsApp, Instagram, Messenger and Bluesky. On WhatsApp, Instagram and Messenger each side has at most one reaction per message, and a new one replaces the old; on Bluesky one person can add several. Empty when there are none.
|
|
4594
|
+
*
|
|
4595
|
+
* A reaction is not a new message and **no webhook event is sent** for it: the message itself changes, and the next read returns it with its `reactions`. A reaction to a message PlanVortex never received (sent before the account was connected) is not recorded. On Bluesky, which has no webhook, a new reaction is picked up within a few minutes, and a removed one the next time the conversation is read.
|
|
4596
|
+
*/
|
|
4597
|
+
reactions?: {
|
|
4598
|
+
/**
|
|
4599
|
+
* @description Who reacted: the `contact`, or the `account` itself (the business, from the network's own app or inbox).
|
|
4600
|
+
* @enum {string}
|
|
4601
|
+
*/
|
|
4602
|
+
by: "contact" | "account";
|
|
4603
|
+
/**
|
|
4604
|
+
* Format: date-time
|
|
4605
|
+
* @description When the reaction was added.
|
|
4606
|
+
*/
|
|
4607
|
+
date: string;
|
|
4608
|
+
/**
|
|
4609
|
+
* @description The emoji, as the network sends it.
|
|
4610
|
+
* @example 👍
|
|
4611
|
+
*/
|
|
4612
|
+
emoji: string;
|
|
4613
|
+
}[];
|
|
4582
4614
|
read: boolean;
|
|
4583
4615
|
/** @description Absent on the messages that carry no text of their own, such as a `messaging_seen` acknowledgement. */
|
|
4584
4616
|
text?: string;
|
|
@@ -4658,7 +4690,7 @@ interface components {
|
|
|
4658
4690
|
/**
|
|
4659
4691
|
* @description What kind of message this is. `simple_message` and `file_message` work everywhere; the rest are network-specific shapes.
|
|
4660
4692
|
*
|
|
4661
|
-
* `unsupported_message` only ever **arrives**: a
|
|
4693
|
+
* `unsupported_message` only ever **arrives**: a message the network does not let the API show. On WhatsApp it is a type the API cannot read, with WhatsApp's reason in `message_errors`; if the number is also in the WhatsApp Business app, the message can be read there. On Instagram and Messenger it is something that is not a file, such as an audio shared from Instagram's own library, which arrives as an empty template. It carries no files and keeps the caption as `text` when there is one. Sending one is refused.
|
|
4662
4694
|
* @enum {string}
|
|
4663
4695
|
*/
|
|
4664
4696
|
MessageType: "simple_message" | "file_message" | "comment_message" | "publication_message" | "quick_reply_message" | "button_message" | "elements_message" | "postback_message" | "template_message" | "interactive_message" | "unsupported_message";
|
|
@@ -5469,7 +5501,7 @@ interface components {
|
|
|
5469
5501
|
/** @description The same person, on one channel. */
|
|
5470
5502
|
SocialIdentifier: {
|
|
5471
5503
|
_id: string;
|
|
5472
|
-
/** @description Identifier of the contact on that channel. */
|
|
5504
|
+
/** @description Identifier of the contact on that channel. On WhatsApp it is the phone number, digits only, **except** for someone who uses a WhatsApp username and has not shared their number with that business number: then it is their `user_id` (the BSUID, e.g. `ES.13491208655302741918`). It has a country code and a dot in front, so it never looks like a phone number. Don't show it or dial it as one. */
|
|
5473
5505
|
external_identifier?: string;
|
|
5474
5506
|
/**
|
|
5475
5507
|
* Format: date-time
|
|
@@ -5477,6 +5509,8 @@ interface components {
|
|
|
5477
5509
|
*/
|
|
5478
5510
|
last_send_date?: string;
|
|
5479
5511
|
social_network: components["schemas"]["ContactChannel"];
|
|
5512
|
+
/** @description **WhatsApp only.** The person's business-scoped user id at Meta (BSUID), e.g. `ES.13491208655302741918`. Meta sends it with every message, and since 2026 it may leave the phone number out for people who use a username and have not dealt with that business number by phone in the last 30 days. When there is no phone number it is also the `external_identifier`, and PlanVortex writes to the contact through it. Treat it as opaque: it is scoped to Meta's business portfolio, and it changes when the person changes their number (PlanVortex updates the contact when that happens). */
|
|
5513
|
+
user_id?: string;
|
|
5480
5514
|
};
|
|
5481
5515
|
/**
|
|
5482
5516
|
* @description A social network supported by PlanVortex.
|
|
@@ -7941,8 +7975,10 @@ interface operations {
|
|
|
7941
7975
|
* @description Only accounts whose network can do this. It is the same matrix `GET /social_capabilities` publishes, applied server-side: the way to ask for 'the accounts I can publish with' without keeping your own table of which network does what.
|
|
7942
7976
|
*
|
|
7943
7977
|
* `comments` also looks at each account, not only at its network: a LinkedIn **personal profile** is left out, because only LinkedIn pages have a comment inbox. `total` counts the same way.
|
|
7978
|
+
*
|
|
7979
|
+
* `statistics` leaves out the networks PlanVortex reads no metric from (today `whatsapp`): the accounts worth offering on a statistics screen.
|
|
7944
7980
|
*/
|
|
7945
|
-
capability?: "publications" | "messages" | "products" | "webhooks" | "persistent_menu" | "comments";
|
|
7981
|
+
capability?: "publications" | "messages" | "products" | "webhooks" | "persistent_menu" | "comments" | "statistics";
|
|
7946
7982
|
/** @description The limit of records will be retrieved (pagination) */
|
|
7947
7983
|
limit?: number;
|
|
7948
7984
|
/** @description Free-text search over the account's name and username. */
|
|
@@ -8691,7 +8727,10 @@ interface operations {
|
|
|
8691
8727
|
};
|
|
8692
8728
|
getMessageFile: {
|
|
8693
8729
|
parameters: {
|
|
8694
|
-
query?:
|
|
8730
|
+
query?: {
|
|
8731
|
+
/** @description `1` (or `true`) returns an audio or a video in a format every browser plays: audio as AAC in an M4A (`audio/mp4`), video as H.264 with AAC in an MP4 (`video/mp4`). Ask for it only when your player can't open the original. Images and documents come back unchanged. **1517** means it could not be converted (`data.reason`: `too_big` past 64 MB, or `unreadable`); the original is still there without this parameter. Offer the original for download, not the converted copy. */
|
|
8732
|
+
playable?: "1" | "true";
|
|
8733
|
+
};
|
|
8695
8734
|
header?: never;
|
|
8696
8735
|
path: {
|
|
8697
8736
|
/** @description Connected account identifier */
|
|
@@ -8707,7 +8746,7 @@ interface operations {
|
|
|
8707
8746
|
};
|
|
8708
8747
|
requestBody?: never;
|
|
8709
8748
|
responses: {
|
|
8710
|
-
/** @description The file, with the network's `Content-Type`. */
|
|
8749
|
+
/** @description The file, with the network's `Content-Type`. With `playable`, an audio comes back as `audio/mp4` and a video as `video/mp4`. */
|
|
8711
8750
|
200: {
|
|
8712
8751
|
headers: {
|
|
8713
8752
|
[name: string]: unknown;
|
|
@@ -9565,7 +9604,10 @@ interface operations {
|
|
|
9565
9604
|
};
|
|
9566
9605
|
getCommentFile: {
|
|
9567
9606
|
parameters: {
|
|
9568
|
-
query?:
|
|
9607
|
+
query?: {
|
|
9608
|
+
/** @description `1` (or `true`) returns an audio or a video in a format every browser plays: audio as AAC in an M4A (`audio/mp4`), video as H.264 with AAC in an MP4 (`video/mp4`). Ask for it only when your player can't open the original. Images and documents come back unchanged. **1517** means it could not be converted (`data.reason`: `too_big` past 64 MB, or `unreadable`); the original is still there without this parameter. Offer the original for download, not the converted copy. */
|
|
9609
|
+
playable?: "1" | "true";
|
|
9610
|
+
};
|
|
9569
9611
|
header?: never;
|
|
9570
9612
|
path: {
|
|
9571
9613
|
/** @description Comment identifier (PlanVortex's `_id`, not the network's `external_id`) */
|
|
@@ -9579,7 +9621,7 @@ interface operations {
|
|
|
9579
9621
|
};
|
|
9580
9622
|
requestBody?: never;
|
|
9581
9623
|
responses: {
|
|
9582
|
-
/** @description The file, with the network's `Content-Type`. */
|
|
9624
|
+
/** @description The file, with the network's `Content-Type`. With `playable`, an audio comes back as `audio/mp4` and a video as `video/mp4`. */
|
|
9583
9625
|
200: {
|
|
9584
9626
|
headers: {
|
|
9585
9627
|
[name: string]: unknown;
|
|
@@ -12000,7 +12042,29 @@ interface operations {
|
|
|
12000
12042
|
[name: string]: unknown;
|
|
12001
12043
|
};
|
|
12002
12044
|
content: {
|
|
12045
|
+
/**
|
|
12046
|
+
* @example {
|
|
12047
|
+
* "total": 5,
|
|
12048
|
+
* "accounts": [
|
|
12049
|
+
* {
|
|
12050
|
+
* "id_account": "6650f1c2a8b4e1d2c3f4a5b6",
|
|
12051
|
+
* "total": 3
|
|
12052
|
+
* },
|
|
12053
|
+
* {
|
|
12054
|
+
* "id_account": "6650f1c2a8b4e1d2c3f4a5b7",
|
|
12055
|
+
* "total": 2
|
|
12056
|
+
* }
|
|
12057
|
+
* ]
|
|
12058
|
+
* }
|
|
12059
|
+
*/
|
|
12003
12060
|
"application/json": {
|
|
12061
|
+
/** @description The same count per account. Only accounts with something unread are listed, most unread first; an account that is missing has none. */
|
|
12062
|
+
accounts: {
|
|
12063
|
+
/** @description The account's `_id`. */
|
|
12064
|
+
id_account: string;
|
|
12065
|
+
total: number;
|
|
12066
|
+
}[];
|
|
12067
|
+
/** @description Unread incoming messages across every account. Always the sum of `accounts`. */
|
|
12004
12068
|
total: number;
|
|
12005
12069
|
};
|
|
12006
12070
|
};
|
|
@@ -12520,7 +12584,8 @@ interface operations {
|
|
|
12520
12584
|
* "made_for_kids": false,
|
|
12521
12585
|
* "interactions": false,
|
|
12522
12586
|
* "commercial_content": false,
|
|
12523
|
-
* "publish_settings": false
|
|
12587
|
+
* "publish_settings": false,
|
|
12588
|
+
* "statistics": true
|
|
12524
12589
|
* },
|
|
12525
12590
|
* "google_business": {
|
|
12526
12591
|
* "publications": false,
|
|
@@ -12536,7 +12601,8 @@ interface operations {
|
|
|
12536
12601
|
* "made_for_kids": false,
|
|
12537
12602
|
* "interactions": false,
|
|
12538
12603
|
* "commercial_content": false,
|
|
12539
|
-
* "publish_settings": false
|
|
12604
|
+
* "publish_settings": false,
|
|
12605
|
+
* "statistics": true
|
|
12540
12606
|
* },
|
|
12541
12607
|
* "pinterest": {
|
|
12542
12608
|
* "publications": true,
|
|
@@ -12552,7 +12618,8 @@ interface operations {
|
|
|
12552
12618
|
* "made_for_kids": false,
|
|
12553
12619
|
* "interactions": false,
|
|
12554
12620
|
* "commercial_content": false,
|
|
12555
|
-
* "publish_settings": false
|
|
12621
|
+
* "publish_settings": false,
|
|
12622
|
+
* "statistics": true
|
|
12556
12623
|
* },
|
|
12557
12624
|
* "threads": {
|
|
12558
12625
|
* "publications": true,
|
|
@@ -12568,7 +12635,25 @@ interface operations {
|
|
|
12568
12635
|
* "made_for_kids": false,
|
|
12569
12636
|
* "interactions": false,
|
|
12570
12637
|
* "commercial_content": false,
|
|
12571
|
-
* "publish_settings": false
|
|
12638
|
+
* "publish_settings": false,
|
|
12639
|
+
* "statistics": true
|
|
12640
|
+
* },
|
|
12641
|
+
* "whatsapp": {
|
|
12642
|
+
* "publications": false,
|
|
12643
|
+
* "messages": true,
|
|
12644
|
+
* "products": false,
|
|
12645
|
+
* "webhooks": true,
|
|
12646
|
+
* "persistent_menu": false,
|
|
12647
|
+
* "comments": false,
|
|
12648
|
+
* "destinations": false,
|
|
12649
|
+
* "link": false,
|
|
12650
|
+
* "reply_control": false,
|
|
12651
|
+
* "visibility": false,
|
|
12652
|
+
* "made_for_kids": false,
|
|
12653
|
+
* "interactions": false,
|
|
12654
|
+
* "commercial_content": false,
|
|
12655
|
+
* "publish_settings": false,
|
|
12656
|
+
* "statistics": false
|
|
12572
12657
|
* }
|
|
12573
12658
|
* }
|
|
12574
12659
|
*/
|
|
@@ -13427,7 +13512,15 @@ type ContactCreate = Schemas["ContactsContactCreate"];
|
|
|
13427
13512
|
type ContactUpdate = Schemas["ContactsContactUpdate"];
|
|
13428
13513
|
/** Los campos propios de un contacto: el bloque de direccion y las seis propiedades libres. */
|
|
13429
13514
|
type ContactExtraData = Schemas["ContactExtraData"];
|
|
13430
|
-
/**
|
|
13515
|
+
/**
|
|
13516
|
+
* El mismo contacto, en un canal. Es una red social o `email`.
|
|
13517
|
+
*
|
|
13518
|
+
* **EN WHATSAPP PUEDE NO HABER TELEFONO.** Desde 2026 Meta deja de mandar el numero de quien usa
|
|
13519
|
+
* nombre de usuario y no ha tenido trato por telefono con ese numero de negocio en 30 dias. Lo que
|
|
13520
|
+
* llega siempre es `user_id`, su BSUID (`ES.13491208655302741918`), y sin telefono es tambien el
|
|
13521
|
+
* `external_identifier`. Se reconoce porque lleva el pais y un punto delante: nunca se parece a un
|
|
13522
|
+
* telefono, y no se ensena ni se marca como si lo fuera. Se le puede escribir igual.
|
|
13523
|
+
*/
|
|
13431
13524
|
type SocialIdentifier = Schemas["SocialIdentifier"];
|
|
13432
13525
|
/**
|
|
13433
13526
|
* El mismo, tal y como se MANDA: aqui `_id` es opcional y el servidor pone uno.
|
|
@@ -13918,7 +14011,7 @@ declare class OrganizationError extends PlanVortexError {
|
|
|
13918
14011
|
*/
|
|
13919
14012
|
declare class PlanLimitError extends PlanVortexError {
|
|
13920
14013
|
}
|
|
13921
|
-
/** 1500-
|
|
14014
|
+
/** 1500-1517 — conversaciones, mensajes, plantillas y sus archivos. Exige plan de pago. */
|
|
13922
14015
|
declare class MessagingError extends PlanVortexError {
|
|
13923
14016
|
}
|
|
13924
14017
|
/** 1600-1601 — contactos. */
|
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var path = require('path');
|
|
|
4
4
|
|
|
5
5
|
// src/version.ts
|
|
6
6
|
var PLANVORTEX_API_URL = "https://api.planvortex.com/v1.0.0";
|
|
7
|
-
var VERSION = "0.
|
|
7
|
+
var VERSION = "0.21.0";
|
|
8
8
|
|
|
9
9
|
// src/core/errors.ts
|
|
10
10
|
var PLANVORTEX_ERROR_RANGES = [
|
|
@@ -34,8 +34,9 @@ var PLANVORTEX_ERROR_RANGES = [
|
|
|
34
34
|
//1513 y 1514 son las plantillas de WhatsApp: el formato que Meta rechazaria sin decir por que,
|
|
35
35
|
//y Meta rechazandola al crearla. Nacieron por encima del techo, la cuarta vez que pasa. 1515 y
|
|
36
36
|
//1516 son los archivos que llegan de la red: 1515 = la red ya no lo tiene (tambien en un
|
|
37
|
-
//comentario), 1516 = ese mensaje o esa posicion no existen.
|
|
38
|
-
|
|
37
|
+
//comentario), 1516 = ese mensaje o esa posicion no existen. 1517 = ese audio o video no se pudo
|
|
38
|
+
//convertir con `playable` (el original sigue ahi sin el parametro): la quinta vez.
|
|
39
|
+
{ from: 1500, to: 1517, family: "messaging" },
|
|
39
40
|
{ from: 1600, to: 1601, family: "contact" },
|
|
40
41
|
{ from: 1900, to: 1906, family: "payment" },
|
|
41
42
|
{ from: 2e3, to: 2099, family: "product" },
|
|
@@ -1336,8 +1337,8 @@ var CatalogResource = class extends Resource {
|
|
|
1336
1337
|
);
|
|
1337
1338
|
}
|
|
1338
1339
|
/**
|
|
1339
|
-
* La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente
|
|
1340
|
-
* comentarios.
|
|
1340
|
+
* La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente,
|
|
1341
|
+
* comentarios y estadísticas (`statistics`, hoy todas menos WhatsApp).
|
|
1341
1342
|
*
|
|
1342
1343
|
* Es lo que evita ofrecer una cuenta en una pantalla que su red no soporta — WhatsApp en el
|
|
1343
1344
|
* compositor, LinkedIn en el chat.
|