planvortex 0.9.0 → 0.11.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 +3 -3
- package/dist/{chunk-IIAKKH3S.js → chunk-RK2OR6IV.js} +4 -4
- package/dist/chunk-RK2OR6IV.js.map +1 -0
- package/dist/{index-Cgvnq4LI.d.cts → index-B1pa7Ct0.d.cts} +372 -31
- package/dist/{index-Cgvnq4LI.d.ts → index-B1pa7Ct0.d.ts} +372 -31
- package/dist/index.cjs +70 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +186 -124
- package/dist/index.d.ts +186 -124
- package/dist/index.js +70 -4
- package/dist/index.js.map +1 -1
- package/dist/webhooks/index.cjs +2 -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-IIAKKH3S.js.map +0 -1
|
@@ -205,6 +205,8 @@ interface paths {
|
|
|
205
205
|
*
|
|
206
206
|
* **The user's email must be verified** (`ERROR_CODE_546`). This is the only route in `/apps` that asks for it: an app is a key to the whole public API, and this is what stops a throwaway address from minting them in bulk. Reading, updating and deleting an app you already own do not check it.
|
|
207
207
|
*
|
|
208
|
+
* **The identifier has a format** (error 533): lowercase letters, numbers, `.`, `-` and `_`, starting with a letter or a number, 3 to 64 characters. Pick it carefully — it cannot be changed later (error 547).
|
|
209
|
+
*
|
|
208
210
|
* Every URL is validated: a bad entry in `allowed_domains` answers 531, in `redirect_urls` 532, and a bad `webhook_url` answers 535.
|
|
209
211
|
*
|
|
210
212
|
* **The secret is not in the response.** Read it with `GET /clients/{id_client}/apps/{id_app}/secret`.
|
|
@@ -240,6 +242,8 @@ interface paths {
|
|
|
240
242
|
*
|
|
241
243
|
* **It replaces every field with what the body carries.** `name`, `keycloak_client_idenfifier`, `allowed_domains`, `redirect_urls` and `webhook_url` are all written as sent, so omitting one erases it — sending an update without `webhook_url` turns the webhook off. Read the app first and send it back whole.
|
|
242
244
|
*
|
|
245
|
+
* **`keycloak_client_idenfifier` is the one field that is NOT overwritten.** Sending a different one answers `ERROR_CODE_547` and nothing is written: it is the `client_id` your integration authenticates with, and renaming it would lock out everything already asking for tokens with the old one. Send it unchanged, or leave it out. If you need a different identifier, create another app.
|
|
246
|
+
*
|
|
243
247
|
* **An app token works here.** This is the one part of `/apps` that does: an app can read and update its own record, but it cannot list, create, delete, or read the secret. **No plan is required**: apps are on all four plans, the free one included.
|
|
244
248
|
*/
|
|
245
249
|
put: operations["updateClientApp"];
|
|
@@ -275,7 +279,19 @@ interface paths {
|
|
|
275
279
|
*/
|
|
276
280
|
get: operations["getClientAppSecret"];
|
|
277
281
|
put?: never;
|
|
278
|
-
|
|
282
|
+
/**
|
|
283
|
+
* Regenerate the app's secret
|
|
284
|
+
* @description Rotates the `client_secret` and returns the new one.
|
|
285
|
+
*
|
|
286
|
+
* **The previous secret stops working the moment this answers** — there is no grace period and no overlap. Anything still holding it gets `invalid_client` from `POST /oauth/token` on its very next call, so roll it out before you rotate, not after.
|
|
287
|
+
*
|
|
288
|
+
* **It also changes how your webhooks are signed.** `x-hub-signature` and `x-hub-signature-256` are HMACs of the body computed with this same secret, so a receiver that verifies the signature will start rejecting legitimate deliveries until it is updated too.
|
|
289
|
+
*
|
|
290
|
+
* The new value comes back only here. If you lose it, read it again with `GET /clients/{id_client}/apps/{id_app}/secret` — it is not stored anywhere on our side except Keycloak.
|
|
291
|
+
*
|
|
292
|
+
* **Needs a USER token, not an app token** (`ERROR_CODE_512`), and the `client_app:update` permission — reading the secret changes nothing, this invalidates what was there.
|
|
293
|
+
*/
|
|
294
|
+
post: operations["regenerateClientAppSecret"];
|
|
279
295
|
delete?: never;
|
|
280
296
|
options?: never;
|
|
281
297
|
head?: never;
|
|
@@ -496,6 +512,34 @@ interface paths {
|
|
|
496
512
|
patch?: never;
|
|
497
513
|
trace?: never;
|
|
498
514
|
};
|
|
515
|
+
"/clients/{id_client}/organizations/{id_organization}/ai_plans/results": {
|
|
516
|
+
parameters: {
|
|
517
|
+
query?: never;
|
|
518
|
+
header?: never;
|
|
519
|
+
path?: never;
|
|
520
|
+
cookie?: never;
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* Compare the results of AI plans
|
|
524
|
+
* @description What each AI plan achieved with what it published, the aggregate per template and the total — the data behind «which plan worked best?». Requires **both** `ai_plans:read` and `publication_stats:read`: it shows plans and it shows publication metrics.
|
|
525
|
+
*
|
|
526
|
+
* **The range filters on the plan's week** (`week_start`), not on when it was created: a plan created today for next week has published nothing and has no results yet.
|
|
527
|
+
*
|
|
528
|
+
* **Only plans that published something are listed** — with `social_network`, something on those networks. A plan whose posts are all still scheduled would be a row of blanks. Archived plans are included; cancelled ones are not.
|
|
529
|
+
*
|
|
530
|
+
* **The default order is interactions per measured publication**, and only plans with at least 3 measured publications (or all of them, if they published fewer) compete in it; the rest come after. See `AiPlanResult` for why it is that number and not the total or the engagement rate.
|
|
531
|
+
*
|
|
532
|
+
* Covers **this organization only**, not its children — it is the sibling of `GET .../ai_plans` and talks about the same plans. The dashboard's `ai_plan_results` block does include children.
|
|
533
|
+
*/
|
|
534
|
+
get: operations["getAiPlanResultsService"];
|
|
535
|
+
put?: never;
|
|
536
|
+
post?: never;
|
|
537
|
+
delete?: never;
|
|
538
|
+
options?: never;
|
|
539
|
+
head?: never;
|
|
540
|
+
patch?: never;
|
|
541
|
+
trace?: never;
|
|
542
|
+
};
|
|
499
543
|
"/clients/{id_client}/roles": {
|
|
500
544
|
parameters: {
|
|
501
545
|
query?: never;
|
|
@@ -753,7 +797,7 @@ interface paths {
|
|
|
753
797
|
*
|
|
754
798
|
* **Telegram does not come through here, and cannot be made to.** That network has no callback: the account is created by PlanVortex when the bot is added to a channel, and what authorizes it is a single-use voucher minted at that moment and spent in the same breath — it never leaves the server, so calling this endpoint for `telegram` answers error 700. It is deliberate: the bot is shared, so without it anyone could hang any channel where that bot is an admin off their own organization by passing a chat id by hand. What an integration listens for instead is the `new_account` webhook notification.
|
|
755
799
|
*
|
|
756
|
-
* **And a Telegram account arrives already active.** In the other
|
|
800
|
+
* **And a Telegram account arrives already active.** In the other twelve networks this endpoint hands you accounts that are still off, and you pick which ones spend a plan slot with `POST .../accounts/{id_account}/enable`. Here there is nothing to call: one channel arrives — the one the person picked in Telegram — and PlanVortex takes the slot for it right then. If the plan has no free slot the account is still created, off, and the person is told so in the bot chat; `GET /organizations/{id_organization}/accounts` will not list it, because that listing only returns active accounts, but naming it in the `accounts` filter does return it.
|
|
757
801
|
*/
|
|
758
802
|
get: operations["connectAccount"];
|
|
759
803
|
put?: never;
|
|
@@ -900,6 +944,8 @@ interface paths {
|
|
|
900
944
|
* It takes a **slot of the plan**, so it fails with error 706 when the organization is already at its account limit. It also turns the network's webhooks back on, on any plan but the free one.
|
|
901
945
|
*
|
|
902
946
|
* **On `telegram` you normally never call this.** That network's accounts are born active — there is no authorization return in which to choose them, so PlanVortex takes the slot when the bot is added to the channel. The one case left is a channel that arrived while the plan was full: it stays off until a slot frees up, and this is what turns it on.
|
|
947
|
+
*
|
|
948
|
+
* **On `slack` this is also what puts the PlanVortex app inside the channel**, with `conversations.join`. It works on a **public** channel and it cannot work on a private one: Slack has no API for joining one. The account is enabled all the same and the connection looks healthy, and then the first publication fails with error 980 — so a private channel has to be told to the person **before** they pick it, together with the `/invite @PlanVortex` they have to run in that channel. Whether the app is inside travels in `extra_data.is_member`, and it can turn `false` later, the day somebody removes the app from an already connected channel.
|
|
903
949
|
*/
|
|
904
950
|
post: operations["enableAccount"];
|
|
905
951
|
delete?: never;
|
|
@@ -1362,7 +1408,7 @@ interface paths {
|
|
|
1362
1408
|
*
|
|
1363
1409
|
* **An app cannot call this.** Connecting a social account is an OAuth flow with a person in front of it, so this endpoint only accepts a user token or a temporal connect token; with app credentials it answers error 519. The way an integration does it is to issue a temporal connect token with `GET /organizations/{id_organization}/temporal_connect_token` and hand it to its end user.
|
|
1364
1410
|
*
|
|
1365
|
-
* **Read `authorization`, not `link`.**
|
|
1411
|
+
* **Read `authorization`, not `link`.** Eleven of the thirteen networks are `redirect` and you send the person to `link`. Two are not, and neither of them fails visibly if you treat it as one:
|
|
1366
1412
|
*
|
|
1367
1413
|
* • **WhatsApp is not a URL at all.** Its sign-up is Meta's Embedded Signup, a popup you raise with the Facebook JavaScript SDK, so its `link` is an empty string and everything you need to open that popup travels in `authorization`. A client that loops over the list and redirects to `link` sends its user to its own page.
|
|
1368
1414
|
* • **Telegram has a link and still is not a redirect.** It opens a chat with the PlanVortex bot, and nobody comes back from it: the account is born minutes later, from the bot being added to a channel, and it is announced over the WebSocket. Open it in another tab and keep listening; redirect to it and there is nobody left to tell.
|
|
@@ -1465,7 +1511,7 @@ interface paths {
|
|
|
1465
1511
|
};
|
|
1466
1512
|
/**
|
|
1467
1513
|
* The whole home screen in one call
|
|
1468
|
-
* @description Composes every block of the home screen in a single round trip: operational health, publications, publication metrics, account metrics, plan use, AI plans and unread messages.
|
|
1514
|
+
* @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.
|
|
1469
1515
|
*
|
|
1470
1516
|
* **A block the caller cannot read is omitted, not refused.** The endpoint only demands the minimum permission — reading the organization — and then checks each block on its own: somebody who can only see publications still gets their home instead of a 403. `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.
|
|
1471
1517
|
*
|
|
@@ -2506,9 +2552,9 @@ interface components {
|
|
|
2506
2552
|
/**
|
|
2507
2553
|
* @description A social account connected to an organization.
|
|
2508
2554
|
*
|
|
2509
|
-
* On `discord` and on `
|
|
2555
|
+
* On `discord`, on `telegram` and on `slack` an account is a **channel**, not a profile: publishing to two Discord channels of the same server — or to two Telegram channels of the same brand, or to `#anuncios` and `#general` of the same Slack workspace — costs two accounts of the plan.
|
|
2510
2556
|
*
|
|
2511
|
-
* `error_code` other than `0` means the connection is broken — an expired token, a permission taken away — and the account has to be connected again. On `telegram` nothing expires, because there is no account token: what breaks the connection is the bot being removed from the channel or losing its permission to post there (error 968).
|
|
2557
|
+
* `error_code` other than `0` means the connection is broken — an expired token, a permission taken away — and the account has to be connected again. On `telegram` nothing expires, because there is no account token: what breaks the connection is the bot being removed from the channel or losing its permission to post there (error 968). On `slack` the bot token does not expire either: what breaks it is the app being removed from the channel (error 980) or the channel being archived or deleted (error 985).
|
|
2512
2558
|
*/
|
|
2513
2559
|
Account: {
|
|
2514
2560
|
_id: string;
|
|
@@ -2516,7 +2562,7 @@ interface components {
|
|
|
2516
2562
|
creation_date: string;
|
|
2517
2563
|
/** @description `0` is a healthy account. Anything else is a PlanVortex error code explaining why the connection stopped working; the account keeps its data but cannot be used until it is reconnected. */
|
|
2518
2564
|
error_code: number;
|
|
2519
|
-
/** @description Followers the network reports. Absent on an account that has never been measured. On `telegram` it is the channel's member count, and it is the **only** audience figure
|
|
2565
|
+
/** @description Followers the network reports. Absent on an account that has never been measured. On `telegram` and on `slack` it is the channel's member count, and it is the **only** audience figure either network publishes: there are no views, no impressions and no reach anywhere in the Bot API nor in the Slack Web API. */
|
|
2520
2566
|
followers_count?: number;
|
|
2521
2567
|
/** @description The client the organization hangs from. Denormalized here for the plan checks. */
|
|
2522
2568
|
id_client: string;
|
|
@@ -2585,7 +2631,7 @@ interface components {
|
|
|
2585
2631
|
/**
|
|
2586
2632
|
* @description **How** an account of this network is authorized, which is not always "send the user to this URL".
|
|
2587
2633
|
*
|
|
2588
|
-
*
|
|
2634
|
+
* Eleven of the thirteen networks are `redirect`: open `link` and the network sends the person back to PlanVortex with a code. Two are not:
|
|
2589
2635
|
*
|
|
2590
2636
|
* • **WhatsApp.** Its sign-up is Meta's *Embedded Signup*: a popup raised by the Facebook JavaScript SDK from your own page, which returns — over `postMessage` — session data (`waba_id`, `phone_number_id`) that no query string carries. Its `link` is therefore an empty string.
|
|
2591
2637
|
* • **Telegram.** There is no OAuth here: no consent screen, no `code`, no account token. `link` opens a private chat with the PlanVortex bot, the person then adds that bot to their channel, and **the account is created from that event**, not from any request of yours. Which means the connection cannot be finished by calling `GET /organizations/{id_organization}/account-connect/telegram` — see that endpoint.
|
|
@@ -2652,6 +2698,101 @@ interface components {
|
|
|
2652
2698
|
value_proposition?: string;
|
|
2653
2699
|
website?: string;
|
|
2654
2700
|
};
|
|
2701
|
+
/**
|
|
2702
|
+
* @description What ONE AI plan achieved with what it published.
|
|
2703
|
+
*
|
|
2704
|
+
* **Where the numbers come from.** A plan keeps its publications, and each publication keeps the last known value of its metrics (the same ones `GET /organizations/{id}/publications/stats` returns). This adds those up — nothing here is measured twice or asked to the network again.
|
|
2705
|
+
*
|
|
2706
|
+
* **Only the publications that went out and were measured count** (`publications.measured`). A post scheduled for tomorrow, one that failed or one published an hour ago that nobody has measured yet does not lower the average: it is simply not in it.
|
|
2707
|
+
*
|
|
2708
|
+
* **A missing metric is not a zero**, as everywhere else: if no publication of the plan reports `reach`, the plan has no `reach` key.
|
|
2709
|
+
*/
|
|
2710
|
+
AiPlanResult: {
|
|
2711
|
+
/** @description Accounts the plan was generated for. */
|
|
2712
|
+
accounts: number;
|
|
2713
|
+
/**
|
|
2714
|
+
* Format: date-time
|
|
2715
|
+
* @description Archived plans are included: archiving is visibility only, and what they published is still published.
|
|
2716
|
+
*/
|
|
2717
|
+
archived_date?: string;
|
|
2718
|
+
/** Format: date-time */
|
|
2719
|
+
creation_date: string;
|
|
2720
|
+
/** @description AI credits per interaction: what each interaction cost. Lower is better. Absent with no interactions, with no credits spent (your own AI key) and **whenever `social_network` is filtered** — the cost belongs to the whole plan, and dividing it by one network's interactions would overprice every one of them. */
|
|
2721
|
+
credits_per_engagement?: number;
|
|
2722
|
+
/** @description AI credits the plan cost, for the whole plan. */
|
|
2723
|
+
credits_spent: number;
|
|
2724
|
+
/** @description Interactions per measured publication — **the number plans are ranked by**. The total rewards size (seven accounts for seven days beat one account even if each post does half as well), and the engagement rate divides by reach on some networks and by followers on others, which makes two plans on different networks incomparable. Absent when nothing is measured yet. */
|
|
2725
|
+
engagement_per_publication?: number;
|
|
2726
|
+
/** @description `engagement_per_publication` divided by `expected_engagement_per_publication`: **1 means like your average, 2 twice as much, 0.5 half**. This is the number that says whether a plan is *good*, not just first — the ranking still orders by `engagement_per_publication`, so the first plan can be below 1. Absent with nothing measured or no average to compare with. */
|
|
2727
|
+
engagement_vs_average?: number;
|
|
2728
|
+
/**
|
|
2729
|
+
* @description What **your usual posts** would get with the same mix of networks: the organization's average interactions per measured post on each network, weighted by how many measured posts the plan has there. Two measured posts on Instagram (average 5) and two on LinkedIn (average 1) expect (2·5 + 2·1) / 4 = 3.
|
|
2730
|
+
*
|
|
2731
|
+
* The average covers **every** measured post of the organization in the range, AI ones included, on the same networks. Weighting by network is what keeps a LinkedIn-only plan from always reading as below average just because LinkedIn moves less than Instagram.
|
|
2732
|
+
*/
|
|
2733
|
+
expected_engagement_per_publication?: number;
|
|
2734
|
+
id_ai_plan: string;
|
|
2735
|
+
/** @description The organization the plan belongs to. In the dashboard block it can be a **child** of the organization you asked about, and a plan is only reachable by id through its own organization. */
|
|
2736
|
+
id_organization: string;
|
|
2737
|
+
/** Format: date-time */
|
|
2738
|
+
last_publish_date?: string;
|
|
2739
|
+
/** @description Its numbers are still moving: something is still scheduled, or its last publication is less than 7 days old. Comparing it with a plan from last month is unfair to the new one — say so rather than hiding it. */
|
|
2740
|
+
maturing: boolean;
|
|
2741
|
+
metrics: components["schemas"]["NormalizedMetrics"];
|
|
2742
|
+
prompt: string;
|
|
2743
|
+
publications: {
|
|
2744
|
+
/** @description Failed to publish. */
|
|
2745
|
+
failed: number;
|
|
2746
|
+
/** @description Published **and** with metrics collected: the only ones the averages use. */
|
|
2747
|
+
measured: number;
|
|
2748
|
+
/** @description Went out to the network. */
|
|
2749
|
+
published: number;
|
|
2750
|
+
/** @description Scheduled, or being published right now. */
|
|
2751
|
+
scheduled: number;
|
|
2752
|
+
/** @description Publications of the plan that still exist. Deleted ones do not count. */
|
|
2753
|
+
total: number;
|
|
2754
|
+
};
|
|
2755
|
+
/** @description Whether the plan competes in the ranking: it needs at least **3 measured publications**, or all of them if it published fewer. With a single measurement, one lucky post would put its plan first. */
|
|
2756
|
+
ranked: boolean;
|
|
2757
|
+
/** @description Networks the plan published on. With the `social_network` filter, only the filtered ones. */
|
|
2758
|
+
social_networks: components["schemas"]["SocialNetwork"][];
|
|
2759
|
+
/**
|
|
2760
|
+
* @description Only these two can have results. A `generated` plan was never validated, but someone may have published some of its drafts by hand.
|
|
2761
|
+
* @enum {string}
|
|
2762
|
+
*/
|
|
2763
|
+
state: "generated" | "validated";
|
|
2764
|
+
/**
|
|
2765
|
+
* @description What the plan was generated from. A plan created before templates existed reads `standard`.
|
|
2766
|
+
* @enum {string}
|
|
2767
|
+
*/
|
|
2768
|
+
template: "standard" | "from_images" | "from_text" | "from_catalog" | "campaign";
|
|
2769
|
+
/**
|
|
2770
|
+
* Format: date-time
|
|
2771
|
+
* @description The week the plan publishes in. **This is what the range filters on**, not the creation date.
|
|
2772
|
+
*/
|
|
2773
|
+
week_start: string;
|
|
2774
|
+
};
|
|
2775
|
+
/** @description The aggregate of a set of plans: all of them, or those of one template. */
|
|
2776
|
+
AiPlanResultsGroup: {
|
|
2777
|
+
/** @description Credits per interaction, counting **only the plans that already have something measured**: a plan validated yesterday brings its whole cost and no interactions, and would make the group look expensive for arriving late. Absent with the `social_network` filter. */
|
|
2778
|
+
credits_per_engagement?: number;
|
|
2779
|
+
/** @description Credits of every plan in the group. */
|
|
2780
|
+
credits_spent: number;
|
|
2781
|
+
/** @description A **weighted** average: every interaction of the group divided by every measured publication of the group — not the average of each plan's average, which would let a one-post plan weigh as much as a forty-post one. */
|
|
2782
|
+
engagement_per_publication?: number;
|
|
2783
|
+
/** @description The group's interactions per post over what was expected, computed over the **same** plans on both sides — a plan with no reference cannot add its interactions to one side only. */
|
|
2784
|
+
engagement_vs_average?: number;
|
|
2785
|
+
/** @description What your usual posts would get with the group's mix of networks, weighted like its average. Only plans that have a reference count. */
|
|
2786
|
+
expected_engagement_per_publication?: number;
|
|
2787
|
+
metrics: components["schemas"]["NormalizedMetrics"];
|
|
2788
|
+
plans: number;
|
|
2789
|
+
publications: {
|
|
2790
|
+
measured: number;
|
|
2791
|
+
published: number;
|
|
2792
|
+
};
|
|
2793
|
+
/** @description How many of them compete in the ranking (see `AiPlanResult.ranked`). */
|
|
2794
|
+
ranked_plans: number;
|
|
2795
|
+
};
|
|
2655
2796
|
AiPlansAiPlan: {
|
|
2656
2797
|
/** @example 66d04a6a427f4c43b9d97f54 */
|
|
2657
2798
|
_id: string;
|
|
@@ -2839,6 +2980,32 @@ interface components {
|
|
|
2839
2980
|
*/
|
|
2840
2981
|
week_start?: string;
|
|
2841
2982
|
};
|
|
2983
|
+
AiPlansAiPlanResults: {
|
|
2984
|
+
/** @description The page of plans, in `sort` order. */
|
|
2985
|
+
ai_plans: components["schemas"]["AiPlanResult"][];
|
|
2986
|
+
/** @description One entry per template that has plans in the range, best `engagement_per_publication` first. This is the answer to «which kind of plan works for me?». */
|
|
2987
|
+
by_template: components["schemas"]["AiPlansAiPlanResultsTemplateGroup"][];
|
|
2988
|
+
/** @description The range that was actually used. The plans in it are those whose **week** starts inside it. */
|
|
2989
|
+
range: {
|
|
2990
|
+
/** Format: date-time */
|
|
2991
|
+
from_date: string;
|
|
2992
|
+
/** Format: date-time */
|
|
2993
|
+
previous_from_date?: string;
|
|
2994
|
+
/** Format: date-time */
|
|
2995
|
+
previous_to_date?: string;
|
|
2996
|
+
/** Format: date-time */
|
|
2997
|
+
to_date: string;
|
|
2998
|
+
};
|
|
2999
|
+
/** @description The order that was applied. */
|
|
3000
|
+
sort: string;
|
|
3001
|
+
/** @description Plans with results in the range (and filters), across every page. */
|
|
3002
|
+
total: number;
|
|
3003
|
+
totals: components["schemas"]["AiPlanResultsGroup"];
|
|
3004
|
+
};
|
|
3005
|
+
AiPlansAiPlanResultsTemplateGroup: components["schemas"]["AiPlanResultsGroup"] & {
|
|
3006
|
+
/** @enum {string} */
|
|
3007
|
+
template: "standard" | "from_images" | "from_text" | "from_catalog" | "campaign";
|
|
3008
|
+
};
|
|
2842
3009
|
/** @description The plan source as it was STORED: a snapshot taken when the plan was created, not a live reference. It is what makes a retry reproduce the same plan even if the article went offline or the product left the catalogue — same reason as `organization_context`. */
|
|
2843
3010
|
AiPlansAiPlanSource: {
|
|
2844
3011
|
/** @description `campaign`. The event and its date, already normalised to the start of ITS day in the plan timezone. */
|
|
@@ -2933,7 +3100,7 @@ interface components {
|
|
|
2933
3100
|
id_client: string;
|
|
2934
3101
|
/** @description The user who created the app, when it was created from the panel. */
|
|
2935
3102
|
id_user?: string;
|
|
2936
|
-
/** @description The app's `client_id`. */
|
|
3103
|
+
/** @description The app's `client_id`. Fixed for the life of the app: it cannot be changed once created (error 547). */
|
|
2937
3104
|
keycloak_client_idenfifier: string;
|
|
2938
3105
|
name: string;
|
|
2939
3106
|
redirect_urls: string[];
|
|
@@ -2949,7 +3116,14 @@ interface components {
|
|
|
2949
3116
|
AppsClientAppInput: {
|
|
2950
3117
|
/** @description Origins allowed to call the API with this app's identity. Every entry has to be a valid URL (error 531). */
|
|
2951
3118
|
allowed_domains?: string[];
|
|
2952
|
-
/**
|
|
3119
|
+
/**
|
|
3120
|
+
* @description The app's `client_id`, which is what you send to `POST /oauth/token`.
|
|
3121
|
+
*
|
|
3122
|
+
* **Format is enforced** (error 533): lowercase letters, numbers, `.`, `-` and `_`, starting with a letter or a number, between 3 and 64 characters — `shop-integration`, not `Shop Integration`. Keycloak itself accepts anything, so an identifier with a space in it used to create an app that could never get a token.
|
|
3123
|
+
*
|
|
3124
|
+
* It also has to be unique across PlanVortex (error 534), and **it cannot be changed once the app exists** (error 547): it is what your integration authenticates with, so renaming it would lock out everything already using the old one. Send it unchanged on an update, or leave it out. The spelling of the field is historical and kept for compatibility.
|
|
3125
|
+
* @example shop-integration
|
|
3126
|
+
*/
|
|
2953
3127
|
keycloak_client_idenfifier: string;
|
|
2954
3128
|
/** @description A name for the app. Cannot be blank (error 525). */
|
|
2955
3129
|
name: string;
|
|
@@ -3052,13 +3226,21 @@ interface components {
|
|
|
3052
3226
|
characters: components["schemas"]["CatalogSocialLimitsMap"];
|
|
3053
3227
|
/** @description Maximum length of a reply to a comment. `0` means the network has no comments. */
|
|
3054
3228
|
comment_characters: components["schemas"]["CatalogSocialLimitsMap"];
|
|
3055
|
-
/**
|
|
3229
|
+
/**
|
|
3230
|
+
* @description Maximum size of one file, in megabytes.
|
|
3231
|
+
*
|
|
3232
|
+
* **On `slack` this one is a ceiling, not a promise.** 1.024 MB is what the network allows; the real limit is the lesser of that and the storage the client's own workspace plan still has, which no API exposes. A file inside this number can still come back as error 986. It is the only key in this map with that property.
|
|
3233
|
+
*/
|
|
3056
3234
|
max_file_size_mb: components["schemas"]["CatalogSocialLimitsMap"];
|
|
3057
3235
|
/** @description Second text limit, in UTF-8 bytes. `0` means the network does not measure text in bytes; only Bluesky does, at 3.000. */
|
|
3058
3236
|
max_post_bytes: components["schemas"]["CatalogSocialLimitsMap"];
|
|
3059
3237
|
/** @description Maximum length of the title. `0` means the network has no title field at all. */
|
|
3060
3238
|
title_characters: components["schemas"]["CatalogSocialLimitsMap"];
|
|
3061
|
-
/**
|
|
3239
|
+
/**
|
|
3240
|
+
* @description How many images one publication accepts. `0` means images are not a publication on that network.
|
|
3241
|
+
*
|
|
3242
|
+
* **On `discord`, `threads` and `slack` it counts images and videos together**, because there the carousel is one message carrying several attachments and not several publications: what is validated is the total number of files. Over it, the publication is created in state `withErrors` — on `slack` with `publication_errors[].code = 982`.
|
|
3243
|
+
*/
|
|
3062
3244
|
total_images: components["schemas"]["CatalogSocialLimitsMap"];
|
|
3063
3245
|
/** @description Maximum video duration. A network that limits weight instead of duration is not here but in `max_file_size_mb`. */
|
|
3064
3246
|
video_duration_in_seconds: components["schemas"]["CatalogSocialLimitsMap"];
|
|
@@ -3462,6 +3644,23 @@ interface components {
|
|
|
3462
3644
|
previous_total: components["schemas"]["NormalizedMetrics"];
|
|
3463
3645
|
total: components["schemas"]["NormalizedMetrics"];
|
|
3464
3646
|
};
|
|
3647
|
+
/**
|
|
3648
|
+
* @description The best AI plans of the range, by interactions per measured publication — the short version of `GET /clients/{id}/organizations/{id}/ai_plans/results`, with the same rules: the range filters on the plan's **week**, and only plans with at least 3 measured publications compete.
|
|
3649
|
+
*
|
|
3650
|
+
* Unlike that endpoint it covers the organization **and its children**, like the rest of this screen, so each plan carries its `id_organization`.
|
|
3651
|
+
*/
|
|
3652
|
+
ai_plan_results?: {
|
|
3653
|
+
/** @description Interactions per measured publication across every plan of the range. */
|
|
3654
|
+
engagement_per_publication?: number;
|
|
3655
|
+
/** @description Interactions per post of every plan of the range over what your usual posts would get on the same networks. 1 means like your average. */
|
|
3656
|
+
engagement_vs_average?: number;
|
|
3657
|
+
/** @description Plans with results in the range. */
|
|
3658
|
+
plans: number;
|
|
3659
|
+
/** @description How many of those compete in the ranking. `plans > 0` with `ranked_plans: 0` means there are results, just not enough measured yet. */
|
|
3660
|
+
ranked_plans: number;
|
|
3661
|
+
/** @description Up to three plans, best first. Only ranked ones. */
|
|
3662
|
+
top: components["schemas"]["AiPlanResult"][];
|
|
3663
|
+
};
|
|
3465
3664
|
ai_plans?: {
|
|
3466
3665
|
by_state: {
|
|
3467
3666
|
state?: string;
|
|
@@ -3479,6 +3678,8 @@ interface components {
|
|
|
3479
3678
|
/** @description Which blocks the caller was allowed to see. A `false` here is a permission (or plan) answer; a block that is `true` but empty means there is no data. */
|
|
3480
3679
|
available_blocks: {
|
|
3481
3680
|
account_metrics: boolean;
|
|
3681
|
+
/** @description Needs both `ai_plans:read` and `publication_stats:read`: the block shows plans and their publications' metrics. */
|
|
3682
|
+
ai_plan_results: boolean;
|
|
3482
3683
|
ai_plans: boolean;
|
|
3483
3684
|
health: boolean;
|
|
3484
3685
|
messages: boolean;
|
|
@@ -3649,7 +3850,7 @@ interface components {
|
|
|
3649
3850
|
* The catalogue grows with the product, so treat an unknown `code` as a generic failure instead of rejecting it.
|
|
3650
3851
|
*/
|
|
3651
3852
|
Error: {
|
|
3652
|
-
/** @description PlanVortex error code. Ranges: 500-546 auth, tokens and client apps · 601-612 user · 700-715 social accounts · 800-810 files · 900-
|
|
3853
|
+
/** @description PlanVortex error code. Ranges: 500-546 auth, tokens and client apps · 601-612 user · 700-715 social accounts · 800-810 files · 900-986 publications · 1000-1003 general · 1100-1111 organizations · 1200-1207 roles · 1300-1308 client plan · 1400-1408 organization plan · 1500-1512 messaging · 1600-1601 contacts · 1900-1906 payments · 2000-2099 products · 2100-2199 AI plans · 2200-2299 integrations. */
|
|
3653
3854
|
code: number;
|
|
3654
3855
|
/** @description Extra context attached to the error, when there is any. */
|
|
3655
3856
|
data?: {
|
|
@@ -4175,7 +4376,11 @@ interface components {
|
|
|
4175
4376
|
};
|
|
4176
4377
|
/** @description Body accepted when creating or updating a publication. Only these properties are read; anything else in the payload is ignored. */
|
|
4177
4378
|
PublicationsPublicationInput: {
|
|
4178
|
-
/**
|
|
4379
|
+
/**
|
|
4380
|
+
* @description Identifiers of uploads previously created through the uploads endpoints, attached to this publication.
|
|
4381
|
+
*
|
|
4382
|
+
* **On Slack the files travel inside the message**, not as publications of their own: up to 10 attachments counting images and videos together (`publication_errors[].code = 982` over it), each one under the `max_file_size_mb.slack` ceiling (code 983), and anything the upload itself refuses comes back as code 986.
|
|
4383
|
+
*/
|
|
4179
4384
|
files?: string[];
|
|
4180
4385
|
/** @description Internal name for the publication. Useful for grouping; never shown on the social network. */
|
|
4181
4386
|
name?: string;
|
|
@@ -4195,7 +4400,7 @@ interface components {
|
|
|
4195
4400
|
* Not every connectable network publishes — a local business listing receives reviews, not posts — so this list is shorter than the one in `GET /social_networks`. Ask `GET /allowed_social_publications` rather than hardcoding it, because it grows.
|
|
4196
4401
|
* @enum {string}
|
|
4197
4402
|
*/
|
|
4198
|
-
social_network?: "facebook" | "instagram" | "twitter" | "linkedin" | "tiktok" | "whatsapp" | "youtube" | "bluesky" | "discord" | "telegram" | "threads";
|
|
4403
|
+
social_network?: "facebook" | "instagram" | "twitter" | "linkedin" | "tiktok" | "whatsapp" | "youtube" | "bluesky" | "discord" | "telegram" | "threads" | "slack";
|
|
4199
4404
|
/**
|
|
4200
4405
|
* @description Send `draft` to store the publication without publishing it. If omitted, the state is resolved automatically: `ready` when everything validates, `withErrors` otherwise. Forcing `sended` marks it as published without actually sending it.
|
|
4201
4406
|
* @enum {string}
|
|
@@ -4205,6 +4410,8 @@ interface components {
|
|
|
4205
4410
|
* @description Body text of the publication. Either `text` or at least one entry in `files` is required: if both are empty the publication is still created, but in state `withErrors` with `publication_errors[].code = 915`. Maximum length depends on the network. On YouTube this is the video **description** (5,000 characters), and the publication must carry exactly one video file and no images — otherwise it is created in state `withErrors` with `publication_errors[].code = 943`. For X (Twitter), a text containing a link costs 200 credits instead of 15.
|
|
4206
4411
|
*
|
|
4207
4412
|
* **On Telegram the limit depends on what else the publication carries**: 4.096 characters while it is text only, and **1.024** the moment it has an image or a video, because then the text is the caption of a photo, a video or an album and no longer a message. Over the limit it is created in state `withErrors` with `publication_errors[].code = 967`, whose `data` carries `characters`, `max_characters` and `has_media`. Both numbers are published, as `characters.telegram` and `characters.telegram_media` in `GET /social_limits`.
|
|
4413
|
+
*
|
|
4414
|
+
* **On Slack the limit is 4.000 characters** and it is counted over the text you send, not over what travels: `&`, `<` and `>` are escaped before publishing, so a text made of ampersands grows on the wire and is still measured here. Over the limit the publication is created in state `withErrors` with `publication_errors[].code = 981`. And because the escaped text is what is measured on the wire, a text that passed at 4.000 characters and is full of `&` is **trimmed** before going out — Slack does not reject a long `text`, it truncates it or splits it into several messages, and one publication showing up as two posts is worse. The text goes out **plain**: Slack speaks *mrkdwn* and not Markdown, and PlanVortex sends no `blocks`, so `**bold**` is published literally.
|
|
4208
4415
|
*/
|
|
4209
4416
|
text?: string;
|
|
4210
4417
|
/** @description Title for the publication. Only some networks use it: optional on LinkedIn, and **required on YouTube**, where it is the video title and must be 100 characters or fewer — a publication without it, or with a longer one, is created in state `withErrors` with `publication_errors[].code = 944`. */
|
|
@@ -4310,6 +4517,8 @@ interface components {
|
|
|
4310
4517
|
* On `threads` there are six, and the one that matters is `views`: it is the only one of the four newest networks with something like impressions, so its engagement rate is computed over a real base and not over followers. Sharing arrives split in three — `reposts`, `quotes` and `shares` (outside Threads) — and the three are added into one figure, the same criterion as on X; the breakdown stays in `raw`. A reply is what every other network calls a comment.
|
|
4311
4518
|
*
|
|
4312
4519
|
* On `telegram` there are two as well, and **neither of them is asked for**: the Bot API has no method that returns a message's metrics, so `reactions` arrives on its own through the bot and `comments` is counted in PlanVortex's own inbox. There are no impressions, no reach, no views and no forwards to be had anywhere in it, so engagement is computed over followers.
|
|
4520
|
+
*
|
|
4521
|
+
* On `slack` there is exactly **one**, `reactions`, and the other absences are the informative part: the Web API publishes no impressions, no reach, no views and no clicks for a message, so those keys are missing rather than zero. There is no `comments` either — Slack threads are not read at all (`comments` is `false` in `GET /social_capabilities`). Engagement is computed over the channel's members.
|
|
4313
4522
|
*/
|
|
4314
4523
|
PublicationStats: {
|
|
4315
4524
|
angers?: number;
|
|
@@ -4340,7 +4549,7 @@ interface components {
|
|
|
4340
4549
|
profile_visits?: number;
|
|
4341
4550
|
quotes?: number;
|
|
4342
4551
|
reach?: number;
|
|
4343
|
-
/** @description Telegram. Every reaction on the post, all emoji together. It is the **complete state and not an increment**: it goes down when somebody takes theirs back. Normalised as `likes`. */
|
|
4552
|
+
/** @description Telegram and Slack. Every reaction on the post, all emoji together. It is the **complete state and not an increment**: it goes down when somebody takes theirs back. Normalised as `likes`. On `slack` it is the only metric the network gives. */
|
|
4344
4553
|
reactions?: number;
|
|
4345
4554
|
/** @description Telegram. The same total broken down by emoji. Reactions with a custom emoji are grouped under a single key: their identifier means nothing outside the server that created it. */
|
|
4346
4555
|
reactions_by_emoji?: {
|
|
@@ -4394,7 +4603,7 @@ interface components {
|
|
|
4394
4603
|
* **This list grows.** Treat it as an open enumeration: a client that rejects an unknown value breaks the day a network is added, which happens several times a year. Not every network does everything — ask `GET /social_capabilities`.
|
|
4395
4604
|
* @enum {string}
|
|
4396
4605
|
*/
|
|
4397
|
-
SocialNetwork: "facebook" | "instagram" | "linkedin" | "tiktok" | "twitter" | "whatsapp" | "youtube" | "google_business" | "bluesky" | "discord" | "telegram" | "threads";
|
|
4606
|
+
SocialNetwork: "facebook" | "instagram" | "linkedin" | "tiktok" | "twitter" | "whatsapp" | "youtube" | "google_business" | "bluesky" | "discord" | "telegram" | "threads" | "slack";
|
|
4398
4607
|
/** @description Statistics collection settings. Only `auto_refresh_twitter` is read; any other key is ignored. */
|
|
4399
4608
|
StatsSettings: {
|
|
4400
4609
|
/**
|
|
@@ -4530,12 +4739,16 @@ interface components {
|
|
|
4530
4739
|
};
|
|
4531
4740
|
};
|
|
4532
4741
|
parameters: {
|
|
4742
|
+
/** @description Start of the range, ISO 8601. Defaults to 30 days before `to_date`. A range longer than 366 days answers error 1003. */
|
|
4743
|
+
AiPlansfromDate: string;
|
|
4533
4744
|
/** @description AI plan identifier */
|
|
4534
4745
|
AiPlansidAiPlan: string;
|
|
4535
4746
|
/** @description Client identifier */
|
|
4536
4747
|
AiPlansidClient: string;
|
|
4537
4748
|
/** @description Organization identifier */
|
|
4538
4749
|
AiPlansidOrganization: string;
|
|
4750
|
+
/** @description End of the range, ISO 8601. Defaults to now. */
|
|
4751
|
+
AiPlanstoDate: string;
|
|
4539
4752
|
/** @description App identifier */
|
|
4540
4753
|
AppsidApp: string;
|
|
4541
4754
|
/** @description Client identifier */
|
|
@@ -5201,6 +5414,34 @@ interface operations {
|
|
|
5201
5414
|
400: components["responses"]["AppsError"];
|
|
5202
5415
|
};
|
|
5203
5416
|
};
|
|
5417
|
+
regenerateClientAppSecret: {
|
|
5418
|
+
parameters: {
|
|
5419
|
+
query?: never;
|
|
5420
|
+
header?: never;
|
|
5421
|
+
path: {
|
|
5422
|
+
/** @description App identifier */
|
|
5423
|
+
id_app: components["parameters"]["AppsidApp"];
|
|
5424
|
+
/** @description Client identifier */
|
|
5425
|
+
id_client: components["parameters"]["AppsidClient"];
|
|
5426
|
+
};
|
|
5427
|
+
cookie?: never;
|
|
5428
|
+
};
|
|
5429
|
+
requestBody?: never;
|
|
5430
|
+
responses: {
|
|
5431
|
+
/** @description The new secret */
|
|
5432
|
+
200: {
|
|
5433
|
+
headers: {
|
|
5434
|
+
[name: string]: unknown;
|
|
5435
|
+
};
|
|
5436
|
+
content: {
|
|
5437
|
+
"application/json": {
|
|
5438
|
+
secret: string;
|
|
5439
|
+
};
|
|
5440
|
+
};
|
|
5441
|
+
};
|
|
5442
|
+
400: components["responses"]["AppsError"];
|
|
5443
|
+
};
|
|
5444
|
+
};
|
|
5204
5445
|
getClientOrganizations: {
|
|
5205
5446
|
parameters: {
|
|
5206
5447
|
query?: {
|
|
@@ -5921,6 +6162,73 @@ interface operations {
|
|
|
5921
6162
|
};
|
|
5922
6163
|
};
|
|
5923
6164
|
};
|
|
6165
|
+
getAiPlanResultsService: {
|
|
6166
|
+
parameters: {
|
|
6167
|
+
query?: {
|
|
6168
|
+
/** @description Start of the range, ISO 8601. Defaults to 30 days before `to_date`. A range longer than 366 days answers error 1003. */
|
|
6169
|
+
from_date?: components["parameters"]["AiPlansfromDate"];
|
|
6170
|
+
/** @description Plans per page. At most 100. */
|
|
6171
|
+
limit?: number;
|
|
6172
|
+
/** @description Number of plans to skip (pagination) */
|
|
6173
|
+
offset?: number;
|
|
6174
|
+
/** @description Recompute every plan with **only** its publications on these networks, which is what makes plans on different networks comparable. Repeat the parameter for several. `credits_per_engagement` disappears with this filter. */
|
|
6175
|
+
social_network?: components["schemas"]["SocialNetwork"][];
|
|
6176
|
+
/** @description Order of the plans. Each one has its natural direction — `credits_per_engagement` cheapest first, `week_start` newest first, everything else highest first — and plans without that value go last. */
|
|
6177
|
+
sort?: "engagement_per_publication" | "engagement" | "impressions" | "reach" | "credits_per_engagement" | "credits_spent" | "week_start";
|
|
6178
|
+
/** @description Only plans generated from this template. An unknown one answers error 2111. */
|
|
6179
|
+
template?: "standard" | "from_images" | "from_text" | "from_catalog" | "campaign";
|
|
6180
|
+
/** @description End of the range, ISO 8601. Defaults to now. */
|
|
6181
|
+
to_date?: components["parameters"]["AiPlanstoDate"];
|
|
6182
|
+
};
|
|
6183
|
+
header?: never;
|
|
6184
|
+
path: {
|
|
6185
|
+
/** @description Client identifier */
|
|
6186
|
+
id_client: components["parameters"]["AiPlansidClient"];
|
|
6187
|
+
/** @description Organization identifier */
|
|
6188
|
+
id_organization: components["parameters"]["AiPlansidOrganization"];
|
|
6189
|
+
};
|
|
6190
|
+
cookie?: never;
|
|
6191
|
+
};
|
|
6192
|
+
requestBody?: never;
|
|
6193
|
+
responses: {
|
|
6194
|
+
/** @description Successful operation */
|
|
6195
|
+
200: {
|
|
6196
|
+
headers: {
|
|
6197
|
+
[name: string]: unknown;
|
|
6198
|
+
};
|
|
6199
|
+
content: {
|
|
6200
|
+
"application/json": components["schemas"]["AiPlansAiPlanResults"];
|
|
6201
|
+
};
|
|
6202
|
+
};
|
|
6203
|
+
/**
|
|
6204
|
+
* @description The request failed. The body carries the PlanVortex error code in `code`:
|
|
6205
|
+
*
|
|
6206
|
+
* | Code | Meaning |
|
|
6207
|
+
* | --- | --- |
|
|
6208
|
+
* | `1000` | Invalid `from_date`, or an unknown `sort` or `social_network` (`data.allowed` lists the valid values) |
|
|
6209
|
+
* | `1001` | Invalid `to_date` |
|
|
6210
|
+
* | `1003` | Range longer than 366 days |
|
|
6211
|
+
* | `2111` | Unknown `template` |
|
|
6212
|
+
* | `1101` | Invalid organization |
|
|
6213
|
+
* | `521` | Invalid client. The identifier is invalid or doesn't exist |
|
|
6214
|
+
*/
|
|
6215
|
+
400: {
|
|
6216
|
+
headers: {
|
|
6217
|
+
[name: string]: unknown;
|
|
6218
|
+
};
|
|
6219
|
+
content: {
|
|
6220
|
+
"application/json": components["schemas"]["Error"];
|
|
6221
|
+
};
|
|
6222
|
+
};
|
|
6223
|
+
/** @description Unhandled error by the server */
|
|
6224
|
+
500: {
|
|
6225
|
+
headers: {
|
|
6226
|
+
[name: string]: unknown;
|
|
6227
|
+
};
|
|
6228
|
+
content?: never;
|
|
6229
|
+
};
|
|
6230
|
+
};
|
|
6231
|
+
};
|
|
5924
6232
|
getClientRoles: {
|
|
5925
6233
|
parameters: {
|
|
5926
6234
|
query?: {
|
|
@@ -7172,11 +7480,11 @@ interface operations {
|
|
|
7172
7480
|
};
|
|
7173
7481
|
deleteMessageTemplate: {
|
|
7174
7482
|
parameters: {
|
|
7175
|
-
query
|
|
7483
|
+
query: {
|
|
7176
7484
|
/** @description Identifier of the template on the network. */
|
|
7177
|
-
template_id
|
|
7485
|
+
template_id: string;
|
|
7178
7486
|
/** @description Name of the template on the network. */
|
|
7179
|
-
template_name
|
|
7487
|
+
template_name: string;
|
|
7180
7488
|
};
|
|
7181
7489
|
header?: never;
|
|
7182
7490
|
path: {
|
|
@@ -10898,7 +11206,8 @@ interface operations {
|
|
|
10898
11206
|
* "bluesky",
|
|
10899
11207
|
* "discord",
|
|
10900
11208
|
* "telegram",
|
|
10901
|
-
* "threads"
|
|
11209
|
+
* "threads",
|
|
11210
|
+
* "slack"
|
|
10902
11211
|
* ]
|
|
10903
11212
|
*/
|
|
10904
11213
|
"application/json": components["schemas"]["SocialNetwork"][];
|
|
@@ -10980,9 +11289,9 @@ interface operations {
|
|
|
10980
11289
|
* de una organizacion. Aqui se llama `PublicationInput`. Los que describen LO MISMO en varias
|
|
10981
11290
|
* secciones viven en `common.json` y conservan su nombre —`Publication`, `Account`, `Upload`,
|
|
10982
11291
|
* `Message`, `Contact`, `NormalizedMetrics`—: es lo que evita dos tipos para un solo objeto.
|
|
10983
|
-
* 2. **Abre las enumeraciones que crecen** (§ trampa 8 del roadmap). `ALLOWED_RRSS` va por
|
|
11292
|
+
* 2. **Abre las enumeraciones que crecen** (§ trampa 8 del roadmap). `ALLOWED_RRSS` va por trece
|
|
10984
11293
|
* redes y sube varias veces al ano. Si `social_network` fuera una union cerrada, el dia que
|
|
10985
|
-
* entre la
|
|
11294
|
+
* entre la siguiente **dejaria de compilar el codigo de todos los integradores** hasta que
|
|
10986
11295
|
* actualizasen el paquete, y lo unico que habria pasado es que la API devuelve un valor mas.
|
|
10987
11296
|
* Con `T | (string & {})` se autocompletan las conocidas y una nueva sigue compilando.
|
|
10988
11297
|
* 3. **Avisa de lo que el tipo no puede decir por si solo**, como que `public_path` caduca.
|
|
@@ -11061,8 +11370,9 @@ type FileFormat = OpenEnum<Schemas["Upload"]["file_format"]>;
|
|
|
11061
11370
|
* Sobre que se divide el engagement de una publicacion.
|
|
11062
11371
|
*
|
|
11063
11372
|
* No todas las redes dan alcance, asi que se cae en cascada: `reach`, si no `impressions`, si no
|
|
11064
|
-
* `followers` (que es lo unico que hay en Bluesky, en Discord y en
|
|
11065
|
-
*
|
|
11373
|
+
* `followers` (que es lo unico que hay en Bluesky, en Discord, en Telegram y en Slack — ni la
|
|
11374
|
+
* Bot API ni la Web API publican impresiones, ni alcance, ni siquiera las vistas de un post).
|
|
11375
|
+
* **Dos filas con base
|
|
11066
11376
|
* distinta no son comparables**: si las pones en la misma tabla, di cual es.
|
|
11067
11377
|
*/
|
|
11068
11378
|
type EngagementBase = OpenEnum<NonNullable<Schemas["PublicationsPublicationStatsPoint"]["engagement_base"]>>;
|
|
@@ -11201,8 +11511,9 @@ type ClientWithOrganizations = Operations["getClientsWithOrganizations"]["respon
|
|
|
11201
11511
|
/**
|
|
11202
11512
|
* Una cuenta social conectada a una organizacion.
|
|
11203
11513
|
*
|
|
11204
|
-
* En Discord y en
|
|
11205
|
-
* mismo servidor —o en dos canales de la misma marca
|
|
11514
|
+
* En Discord, en Telegram y en Slack una cuenta es un **canal**, no un perfil: publicar en dos
|
|
11515
|
+
* canales del mismo servidor —o en dos canales de la misma marca, o en `#anuncios` y `#general`
|
|
11516
|
+
* del mismo workspace— gasta dos cuentas del plan. `error_code`
|
|
11206
11517
|
* distinto de 0 significa que la conexion se rompio —token caducado, permisos retirados— y hay que
|
|
11207
11518
|
* reconectarla; en Telegram no caduca nada, porque no hay token de cuenta, y lo que la rompe es que
|
|
11208
11519
|
* saquen al bot del canal o le quiten el permiso de publicar (error 968).
|
|
@@ -11253,7 +11564,7 @@ type ConnectToken = Operations["createTemporalConnectToken"]["responses"][200]["
|
|
|
11253
11564
|
*/
|
|
11254
11565
|
type ConnectLink = Schemas["AccountsSocialLinksList"]["links"][number];
|
|
11255
11566
|
/**
|
|
11256
|
-
* Con que se autoriza una red: `redirect` (
|
|
11567
|
+
* Con que se autoriza una red: `redirect` (once de las trece), `meta_embedded_signup` (WhatsApp) o
|
|
11257
11568
|
* `telegram_bot` (Telegram). Se saca de {@link ConnectLink} y esta aqui para poder nombrarlo en un
|
|
11258
11569
|
* `switch`.
|
|
11259
11570
|
*
|
|
@@ -11652,6 +11963,35 @@ type AiPlanNotice = Schemas["AiPlansAiPlanNotice"];
|
|
|
11652
11963
|
type AiPlanCostEstimate = Schemas["AiPlansAiPlanCostEstimate"];
|
|
11653
11964
|
/** Lo que devuelve encolar un plan: el plan en `pending` y lo que se calculo que costaria. */
|
|
11654
11965
|
type AiPlanCreateResult = Schemas["AiPlansAiPlanCreateResponse"];
|
|
11966
|
+
/**
|
|
11967
|
+
* Lo que rindio UN plan con lo que publico.
|
|
11968
|
+
*
|
|
11969
|
+
* **Las medias solo cuentan las publicaciones medidas** (`publications.measured`): una programada,
|
|
11970
|
+
* una fallida o una recien publicada que nadie ha medido no bajan nada, simplemente no estan.
|
|
11971
|
+
*
|
|
11972
|
+
* `engagement_per_publication` es la cifra por la que se ordena, y **solo compite el plan con
|
|
11973
|
+
* `ranked: true`** —al menos 3 publicaciones medidas, o todas si publico menos—. `maturing: true`
|
|
11974
|
+
* dice que sus numeros todavia se mueven: comparar ese plan con uno del mes pasado es injusto con el
|
|
11975
|
+
* nuevo. Y una metrica ausente en `metrics` es que ninguna publicacion del plan la da, no un cero.
|
|
11976
|
+
*
|
|
11977
|
+
* **Ser el primero no es ser bueno**, y para eso esta `engagement_vs_average`: la media del plan entre
|
|
11978
|
+
* lo que habrian sacado tus publicaciones habituales con sus mismas redes (1 = como tu media, 2 = el
|
|
11979
|
+
* doble). El ranking sigue ordenando por `engagement_per_publication`, asi que el primero puede estar
|
|
11980
|
+
* por debajo de 1 —un plan de LinkedIn saca menos por publicacion que uno de Instagram y aun asi puede
|
|
11981
|
+
* doblar lo suyo—.
|
|
11982
|
+
*/
|
|
11983
|
+
type AiPlanResult = Schemas["AiPlanResult"];
|
|
11984
|
+
/**
|
|
11985
|
+
* El agregado de un conjunto de planes. `engagement_per_publication` es una media PONDERADA —todas
|
|
11986
|
+
* las interacciones entre todas las publicaciones medidas—, no la media de las medias.
|
|
11987
|
+
*/
|
|
11988
|
+
type AiPlanResultsGroup = Schemas["AiPlanResultsGroup"];
|
|
11989
|
+
/** El agregado de los planes de UNA plantilla: la respuesta a «¿que tipo de plan me funciona?». */
|
|
11990
|
+
type AiPlanResultsTemplateGroup = Schemas["AiPlansAiPlanResultsTemplateGroup"];
|
|
11991
|
+
/** Lo que devuelve {@link AiPlansResource.results}: el total, el desglose por plantilla y la pagina. */
|
|
11992
|
+
type AiPlanResults = Schemas["AiPlansAiPlanResults"];
|
|
11993
|
+
/** Por que se pueden ordenar los resultados. Cada criterio lleva su direccion natural. */
|
|
11994
|
+
type AiPlanResultsSort = NonNullable<NonNullable<Operations["getAiPlanResultsService"]["parameters"]["query"]>["sort"]>;
|
|
11655
11995
|
/** Una app de cliente: las credenciales con las que una integracion se autentica. */
|
|
11656
11996
|
type ClientApp = Schemas["AppsClientApp"];
|
|
11657
11997
|
/** Lo que se manda para crear o actualizar una app. Al actualizar, REEMPLAZA los cinco campos. */
|
|
@@ -11870,8 +12210,9 @@ declare class AccountError extends PlanVortexError {
|
|
|
11870
12210
|
/** 800-810 — ficheros: formato no admitido, demasiado grande, conversión fallida. */
|
|
11871
12211
|
declare class FileError extends PlanVortexError {
|
|
11872
12212
|
}
|
|
11873
|
-
/** 900-
|
|
11874
|
-
* dos frenos de ritmo
|
|
12213
|
+
/** 900-986 — publicaciones, incluidos los límites por red (caracteres, imágenes, duración), los
|
|
12214
|
+
* dos frenos de ritmo —978 (demasiado rápido en esta cuenta) y 979 (tope diario de esa red)— y
|
|
12215
|
+
* los de Slack (980-986), que empiezan por el más común: 980, la app no está en el canal. */
|
|
11875
12216
|
declare class PublicationError extends PlanVortexError {
|
|
11876
12217
|
}
|
|
11877
12218
|
/** 1100-1111 — organizaciones, y el token temporal atado a una sola de ellas (1101). */
|
|
@@ -12201,4 +12542,4 @@ interface PlanVortexWebhooksOptions {
|
|
|
12201
12542
|
*/
|
|
12202
12543
|
declare function planvortexWebhooks(options: PlanVortexWebhooksOptions): (request: WebhookRequestLike, response: WebhookResponseLike, next: (error?: unknown) => void) => void;
|
|
12203
12544
|
|
|
12204
|
-
export { type
|
|
12545
|
+
export { type PlanData as $, type Account as A, type ContactExtraData as B, type ConnectLink as C, type Dashboard as D, type EnableResult as E, type Contact as F, type ContactCreate as G, type ContactUpdate as H, type IntegrationProviderName as I, type IntegrationProvider as J, type Integration as K, type IntegrationConnectRequest as L, type MetricName as M, type IntegrationUpdate as N, type IntegrationPickerConfig as O, type Paginated as P, type MessageTemplate as Q, type Conversation as R, type SocialNetwork as S, type TopPublicationsResult as T, type ConversationTotals as U, type Message as V, type MessageInput as W, type Client as X, type Organization as Y, type AiSettings as Z, type ClientWithOrganizations as _, type ConnectResult as a, PlanVortexAuthenticationError as a$, type PlanUseData as a0, type ConnectToken as a1, type AiContext as a2, type SocialCredentialsInput as a3, type Product as a4, type ProductInput as a5, type ProductCatalog as a6, type ProductCatalogInput as a7, type PublicationInput as a8, type PublicationState as a9, type CommentChange as aA, type ContactChannel as aB, ContactError as aC, type DashboardAiPlanRef as aD, type DashboardPublicationRef as aE, type DashboardRange as aF, type EngagementBase as aG, FileError as aH, type FileFormat as aI, type FileProperties as aJ, type FileType as aK, IntegrationError as aL, type IntegrationErrorChange as aM, type MessageChange as aN, type MessageOptions as aO, type MessageType as aP, MessagingError as aQ, type MetricRow as aR, NO_ERROR_CODE as aS, type components as aT, type operations as aU, type paths as aV, type webhooks as aW, type OpenEnum as aX, OrganizationError as aY, PLANVORTEX_ERROR_RANGES as aZ, PlanLimitError as a_, type PublicationStats as aa, type PublicationStatsHistory as ab, type Upload as ac, AccountError as ad, type AccountMetricRow as ae, type AccountStateChange as af, type AccountWebhookChangeBase as ag, type AccountWithError as ah, type AiPlanCostEstimate as ai, AiPlanError as aj, type AiPlanNotice as ak, type AiPlanOptions as al, type AiPlanOptionsInput as am, type AiPlanResult as an, type AiPlanResultsGroup as ao, type AiPlanResultsTemplateGroup as ap, type AiPlanSource as aq, type AiPlanSourceImageInput as ar, type AiPlanSourceInput as as, type AiPlanSourceProduct as at, type AiPlanState as au, type ApiErrorBody as av, type AspectRatios as aw, AuthError as ax, type ClientPlan as ay, type CommentAuthor as az, type AccountMetrics as b, PlanVortexConfigError as b0, PlanVortexConnectionError as b1, PlanVortexError as b2, type PlanVortexErrorOptions as b3, type PlanVortexErrorRange as b4, type PlannerTemplateField as b5, type PlannerTemplateFieldType as b6, ProductError as b7, PublicationError as b8, type PublicationErrorDetail as b9, messageDirection as bA, messageFileIds as bB, messageFiles as bC, publication as bD, publicationId as bE, type HandleWebhookRequestOptions as bF, type PlanVortexWebhooksOptions as bG, type RawWebhookBody as bH, type VerifyWebhookSignatureOptions as bI, WEBHOOK_EVENTS as bJ, WEBHOOK_SIGNATURE_HEADERS as bK, WebhookBodyError as bL, type WebhookHeaders as bM, type WebhookRequestLike as bN, type WebhookResponseLike as bO, WebhookSignatureError as bP, handleWebhookRequest as bQ, isAccountStateChange as bR, isCommentChange as bS, isIntegrationErrorChange as bT, isMessageChange as bU, parseWebhookPayload as bV, planvortexWebhooks as bW, verifyWebhookSignature as bX, type PublicationMetrics as ba, type PublicationStatsPoint as bb, type PublicationType as bc, type PublicationsSummary as bd, type RssConfig as be, type SocialAuthorizationMethod as bf, type SocialCredentials as bg, type SocialIdentifier as bh, type SocialIdentifierInput as bi, type SocialLimitsMap as bj, TOKEN_ERROR_CODES as bk, type TopPublication as bl, type UnknownWebhookChange as bm, UserError as bn, type WebhookAlgorithm as bo, type WebhookChange as bp, type WebhookEvent as bq, type WithAccount as br, type WithPublication as bs, account as bt, accountId as bu, errorFamilyForCode as bv, isPlanVortexError as bw, isTokenError as bx, messageContact as by, messageContactId as bz, type PersistentMenu as c, type DashboardMetricsResult as d, type PublicationsSummaryResult as e, type PublicationsStatsResult as f, type PlanUse as g, type Publication as h, type AiPlanResultsSort as i, type PlannerTemplateName as j, type AiPlanCreateRequest as k, type AiPlanCreateResult as l, type AiPlan as m, type AiPlanResults as n, type ClientApp as o, type ClientAppInput as p, type SocialCapabilities as q, type CommentActions as r, type SocialLimits as s, type PublicationLimits as t, type AspectRatiosByNetwork as u, type PlannerTemplate as v, type CommentNetwork as w, type Comment as x, type CommentThread as y, type CommentReplyResult as z };
|