planvortex 0.11.0 → 0.13.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.
@@ -367,7 +367,7 @@ interface paths {
367
367
  put?: never;
368
368
  /**
369
369
  * Create an AI publication plan
370
- * @description Create a weekly AI publication plan. The plan is queued in state 'pending' and generated asynchronously by the generate-ai-plans job; poll GET by id while state is pending or generating. Validations at creation: the client plan allows AI (it contracts AI credits; Free does not), the accounts belong to the organization, there are enough AI credits for the deterministic base cost (orchestration + target texts), and there is room in the organization's monthly publication limit. Returns the created plan together with the deterministic cost estimate. Requires the ai_plans:create permission. Since the plan can be generated from a SOURCE (`template` + `source`), part of that validation is the source itself: the article is downloaded, the catalogue is read live and the product pictures are copied — all of it inside this request, so what does not work fails with the user in front of it. A plan whose source did not fit in the week is still created, and says so in ai_plan.warnings (2117).
370
+ * @description Create a weekly AI publication plan. The plan is queued in state 'pending' and generated asynchronously by the generate-ai-plans job; poll GET by id while state is pending or generating. Validations at creation: the client plan allows AI (it contracts AI credits; Free does not), the accounts belong to the organization, there are enough AI credits for the deterministic base cost (orchestration + target texts), and there is room in the organization's monthly publication limit. Returns the created plan together with the deterministic cost estimate. Requires the ai_plans:create permission. Since the plan can be generated from a SOURCE (`template` + `source`), part of that validation is the source itself: the article is downloaded, the catalogue is read live and the product pictures are copied — all of it inside this request, so what does not work fails with the user in front of it. A plan whose source did not fit in the week is still created, and says so in ai_plan.warnings (2117). With a Pinterest account in the plan, two more checks run at creation: every Pinterest account needs its board in `destinations` (2118), and a configuration that would leave pins without an image is refused (2119).
371
371
  */
372
372
  post: operations["addAiPlan"];
373
373
  delete?: never;
@@ -681,7 +681,7 @@ interface paths {
681
681
  };
682
682
  /**
683
683
  * Catalogue of available integration providers
684
- * @description What every provider is and what it can do: whether it connects through OAuth or a form, whether it contributes files to the library, whether it is polled for content, which file formats it accepts and which fields its configuration form takes.
684
+ * @description What every provider is and what it can do: whether it has an OAuth token behind it, whether it connects with a link (and what that link needs first), whether it contributes files to the library, whether it is polled for content, whether it has a product catalogue, which file formats it accepts and which fields its configuration form takes.
685
685
  *
686
686
  * Consume this instead of hardcoding a provider list: a new provider shows up here without any client change.
687
687
  */
@@ -797,7 +797,7 @@ interface paths {
797
797
  *
798
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.
799
799
  *
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.
800
+ * **And a Telegram account arrives already active.** In every other network 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.
801
801
  */
802
802
  get: operations["connectAccount"];
803
803
  put?: never;
@@ -928,6 +928,56 @@ interface paths {
928
928
  patch?: never;
929
929
  trace?: never;
930
930
  };
931
+ "/organizations/{id_organization}/accounts/{id_account}/destinations": {
932
+ parameters: {
933
+ query?: never;
934
+ header?: never;
935
+ path?: never;
936
+ cookie?: never;
937
+ };
938
+ /**
939
+ * List where this account can publish
940
+ * @description The places inside the account a publication can go to: on Pinterest, the boards.
941
+ *
942
+ * **Most networks have none, and that is not a failure of yours.** Connecting the account already says where a publication comes out — the wall, the channel, the profile — so only the networks that answer `destinations: true` in `GET /social_capabilities` have anything to list. Anywhere else this answers error 992.
943
+ *
944
+ * **Where they exist, the destination is required.** What comes back here is what you send in `destination.id` when creating the publication, and one created without it is created in state `withErrors` with `publication_errors[].code = 987`, which the background job will not attempt.
945
+ *
946
+ * The **sections** of a board are not in this listing: ask for one destination to get them.
947
+ */
948
+ get: operations["getAccountDestinations"];
949
+ put?: never;
950
+ post?: never;
951
+ delete?: never;
952
+ options?: never;
953
+ head?: never;
954
+ patch?: never;
955
+ trace?: never;
956
+ };
957
+ "/organizations/{id_organization}/accounts/{id_account}/destinations/{id_destination}": {
958
+ parameters: {
959
+ query?: never;
960
+ header?: never;
961
+ path?: never;
962
+ cookie?: never;
963
+ };
964
+ /**
965
+ * Read one destination and its sections
966
+ * @description One destination with its detail: on Pinterest, the sections of the board, which is what goes in `destination.section_id`.
967
+ *
968
+ * They are deliberately not in the listing — reading the sections of every board would cost one call to the network per board.
969
+ *
970
+ * **It is checked against this account's own destinations, not asked of the network blind.** A destination that is not in this account answers error 993, whether it never existed, was just deleted, or belongs to somebody else; without that check the endpoint would read any public board's sections with your token.
971
+ */
972
+ get: operations["getAccountDestination"];
973
+ put?: never;
974
+ post?: never;
975
+ delete?: never;
976
+ options?: never;
977
+ head?: never;
978
+ patch?: never;
979
+ trace?: never;
980
+ };
931
981
  "/organizations/{id_organization}/accounts/{id_account}/enable": {
932
982
  parameters: {
933
983
  query?: never;
@@ -1408,7 +1458,7 @@ interface paths {
1408
1458
  *
1409
1459
  * **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.
1410
1460
  *
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:
1461
+ * **Read `authorization`, not `link`.** Almost every network is `redirect` and you send the person to `link`. Two are not, and neither of them fails visibly if you treat it as one:
1412
1462
  *
1413
1463
  * • **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.
1414
1464
  * • **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.
@@ -1545,6 +1595,7 @@ interface paths {
1545
1595
  *
1546
1596
  * - `google_drive`: `{ provider, code }`, where `code` is the OAuth code returned to the redirect of `connect_link`. It is single-use, so the plan allowance is checked **before** the exchange.
1547
1597
  * - `rss`: `{ provider, url, id_accounts, template?, publication_type?, auto_publish?, import_image? }`. The feed is read once to validate it and to take its title, and every item it already has is recorded as seen — connecting a blog never publishes its back catalogue.
1598
+ * - `woocommerce`: `{ provider, url, consumer_key, consumer_secret }`, a **read** key created by hand in the store. The keys are tried against the store before anything is saved, and an organization can connect several stores: each one takes one integration of the allowance. The approval button (`connect_link`) does the same without anyone copying a key, and is the better way whenever the store allows it.
1548
1599
  *
1549
1600
  * Requires the `integrations:create` permission.
1550
1601
  */
@@ -1571,6 +1622,8 @@ interface paths {
1571
1622
  * Update an integration
1572
1623
  * @description Only what the user owns: its name, whether it is enabled and its `config` (merged, not replaced — `seen_guids` and `last_checked` belong to the job). Credentials are never updated here; for that, `POST .../reconnect`. Changing a feed's `url` here keeps the items it had already seen, so the new feed's back catalogue would be published on the next sweep — change a feed's URL through `/reconnect`, which revalidates it and marks its current items as seen.
1573
1624
  *
1625
+ * **A store's `config` cannot be edited at all** (`2220`, and nothing of the request is applied): its `url` decides which server receives the stored key, so whoever could change it could send the key, which also reads the store's orders and customers, anywhere. Changing store is reconnecting, which tries the key against the new URL.
1626
+ *
1574
1627
  * A disabled integration stops consuming plan allowance. Enabling one or changing its config clears `error_code`, so the job retries it.
1575
1628
  *
1576
1629
  * Requires the `integrations:update` permission.
@@ -1579,7 +1632,9 @@ interface paths {
1579
1632
  post?: never;
1580
1633
  /**
1581
1634
  * Disconnect an integration
1582
- * @description Revokes the credentials at the provider and deletes the connection.
1635
+ * @description Revokes the credentials at the provider, when the provider allows it, and deletes the connection.
1636
+ *
1637
+ * **A WooCommerce key cannot be revoked from outside**: WooCommerce does not let an app delete its own key. Tell the user to delete it in WooCommerce → Settings → Advanced → REST API; it is the one whose description starts with "PlanVortex - API" (when it was created with the button) and whose key ends in `config.key_ending`. Until then the key stays alive in their WordPress, unused.
1583
1638
  *
1584
1639
  * Files already imported are **not** touched: they are your files, in your library, counting against your storage. Disconnecting Drive never empties anyone's library.
1585
1640
  *
@@ -1615,6 +1670,34 @@ interface paths {
1615
1670
  patch?: never;
1616
1671
  trace?: never;
1617
1672
  };
1673
+ "/organizations/{id_organization}/integrations/{id_integration}/products": {
1674
+ parameters: {
1675
+ query?: never;
1676
+ header?: never;
1677
+ path?: never;
1678
+ cookie?: never;
1679
+ };
1680
+ /**
1681
+ * Products of a connected store
1682
+ * @description One page of the catalogue of an integration whose provider has `catalog: true` (a WooCommerce store), to choose the products of a `from_catalog` AI plan. Read **live** from the store on every call.
1683
+ *
1684
+ * - **Paginated by an opaque `cursor`**, not by page number: send back `next_cursor` as it came, and stop when it is absent.
1685
+ * - **What the public cannot see does not come**: drafts, private products and products hidden from the catalogue. **What is out of stock DOES come, with `available: false`**: show it marked and do not let it be chosen.
1686
+ * - `price` is text to copy verbatim, as the store displays it. Absent means no price, and it is also absent on taxable products while the store's `config.tax_location_missing` is true.
1687
+ *
1688
+ * A store that rejects its key (`2211`) is marked with that `error_code` until it is reconnected, and shows up as `connected: false`. A firewall (`2212`) or a store that does not answer (`2213`) does not mark it: that fixes itself, or on the store's side.
1689
+ *
1690
+ * Requires the `integrations:read` permission.
1691
+ */
1692
+ get: operations["getIntegrationProducts"];
1693
+ put?: never;
1694
+ post?: never;
1695
+ delete?: never;
1696
+ options?: never;
1697
+ head?: never;
1698
+ patch?: never;
1699
+ trace?: never;
1700
+ };
1618
1701
  "/organizations/{id_organization}/integrations/{id_integration}/reconnect": {
1619
1702
  parameters: {
1620
1703
  query?: never;
@@ -1628,11 +1711,11 @@ interface paths {
1628
1711
  * Reconnect an integration
1629
1712
  * @description Renews the credentials of an integration that already exists — the OAuth token expired or the provider revoked it (`2203`) — or revalidates a feed's configuration, **on the same document**.
1630
1713
  *
1631
- * The body is the same one you would send to connect: `{ provider, code }` for an OAuth provider, or the form fields for a feed. It is handled by the same provider logic, so a feed that still cannot be read is still a `2205`.
1714
+ * The body is the same one you would send to connect: `{ provider, code }` for an OAuth provider, or the form fields for a feed or a store. A store can also be reconnected with its approval button: `connect_link` with `id_integration`, and no call here. It is handled by the same provider logic, so a feed that still cannot be read is still a `2205`.
1632
1715
  *
1633
1716
  * Use this instead of deleting and connecting again. Reconnecting keeps the `_id` (publications created by a feed reference it), the connection date and the feed's seen items — deleting and reconnecting a feed would republish the blog's whole back catalogue on the next sweep.
1634
1717
  *
1635
- * What it does not touch: `enabled` (reconnecting never switches on a disabled integration, because that consumes plan allowance) and the creation date. `error_code` is cleared, so the background jobs pick it up again. `name` is kept unless the connection now points somewhere else (another Google account, another feed URL), in which case the new one is taken.
1718
+ * What it does not touch: `enabled` (reconnecting never switches on a disabled integration, because that consumes plan allowance) and the creation date. `error_code` is cleared, so the background jobs pick it up again. `name` is kept unless the connection now points somewhere else (another Google account, another feed URL, another store), in which case the new one is taken.
1636
1719
  *
1637
1720
  * No allowance check: nothing new is created, so it works even with the plan full.
1638
1721
  *
@@ -1653,10 +1736,15 @@ interface paths {
1653
1736
  cookie?: never;
1654
1737
  };
1655
1738
  /**
1656
- * Authorization URL of an OAuth provider
1657
- * @description Only for providers whose `requires_oauth` is true; anything else returns `2201`. Send the user to the returned URL; the provider will come back to `{FRONT_APP}/connect/integration/{provider}` with a `code` to post to `POST /organizations/{id_organization}/integrations`.
1739
+ * Connection link of a provider (OAuth or a store's approval page)
1740
+ * @description The link to send the user to, for providers whose `connect_link` is true; anything else returns `2201`.
1741
+ *
1742
+ * - `google_drive`: Google's consent screen. The user comes back to `{FRONT_APP}/connect/integration/google_drive` with a `code` to post to `POST /organizations/{id_organization}/integrations`.
1743
+ * - `woocommerce`: the store's own approval page (`/wc-auth/v1/authorize`), so the store `url` is required (`connect_link_fields`). The store is checked **now, without credentials** (https, a firewall in front, whether WooCommerce is there), so what is going to fail fails while the user is still in your app. The person approving must be able to manage WooCommerce in that WordPress (an administrator or a shop manager). After approving, the store sends a read-only key straight to PlanVortex, and the user comes back to `{FRONT_APP}/connect/integration/woocommerce?id_integration=…&success=…&user_id=…`.
1658
1744
  *
1659
- * Requires the `integrations:create` **or** `integrations:update` permission: the consent link is needed both to connect a new integration and to reconnect one that already exists (`POST /organizations/{id_organization}/integrations/{id_integration}/reconnect`).
1745
+ * **After a store's link, do not trust `success`: read `GET .../integrations/{id_integration}`.** A `2200` means the key never arrived (the user cancelled, or the store's call failed); `error_code` `2219` means it is still being checked (a few seconds; poll, and if it stays there, reconnect); any other `error_code` is what failed; none means connected. The link lasts 15 minutes and works once. The allowance is checked here (`1404`) so nobody approves a key that would be refused, and again when the key arrives.
1746
+ *
1747
+ * Requires the `integrations:create` **or** `integrations:update` permission: the consent link is needed both to connect a new integration and to reconnect one that already exists (`POST /organizations/{id_organization}/integrations/{id_integration}/reconnect`). Reconnecting a store with `id_integration` requires `integrations:update`.
1660
1748
  */
1661
1749
  get: operations["getIntegrationConnectLink"];
1662
1750
  put?: never;
@@ -2352,7 +2440,8 @@ interface paths {
2352
2440
  * • **`orchestration_cost` is an ESTIMATE, not the bill.** The real charge is per use (what the provider reports). `orchestration_cost_per_source_item` is what each unit of the source adds on top — one vision pass per image.
2353
2441
  * • **A plan is WEEKLY, and the source does not extend it.** With `max_source_items` photos but fewer slots left in the week, the extra ones are dropped and the plan carries warning 2117 in `ai_plan.warnings`. Say it in your UI *before* creating the plan, not after charging for it.
2354
2442
  * • **`source_fields` is what the source step is made of.** The simple types are ordinary controls; `uploads_with_description` and `catalog_products` are the signal that the step needs a component of its own.
2355
- * • **The fields carry their own limits.** `max` and `min` are in the field's own units — characters of a text, items of a list, **days** for a date — and `source_requires_any` names the fields of which at least one is needed (`from_text`: the URL or the pasted text). Read them from here; hardcoding them is how a wizard ends up rejecting at a number the server does not use.
2443
+ * • **Not every network fits every template.** `unsupported_networks` lists the ones whose accounts a plan of that template cannot carry (2120): offer only the rest, instead of letting the user pick a YouTube account for a week of product photos.
2444
+ * • **The fields carry their own limits.** `max` and `min` are in the field's own units — characters of a text, items of a list, **days** for a date — and `source_requires_any` names the fields of which at least one is needed (`from_text`: the URL or the pasted text; `from_catalog`: a Meta catalogue account or a connected store). Read them from here; hardcoding them is how a wizard ends up rejecting at a number the server does not use.
2356
2445
  */
2357
2446
  get: operations["getPlannerTemplates"];
2358
2447
  put?: never;
@@ -2398,7 +2487,9 @@ interface paths {
2398
2487
  *
2399
2488
  * `comments` is the coarse gate — whether the network has comments at all. Which *actions* it allows on one is a finer question and lives in `GET /social_comment_actions`, because the shape here is `{[capability]: boolean}` and nesting an object inside would break it.
2400
2489
  *
2401
- * Today ten networks answer `comments: true`: Facebook, Instagram, Threads, LinkedIn, X, YouTube, Google Business, Bluesky, Discord and Telegram. TikTok and WhatsApp answer `false`, for reasons of theirs and not ours.
2490
+ * Today ten networks answer `comments: true`: Facebook, Instagram, Threads, LinkedIn, X, YouTube, Google Business, Bluesky, Discord and Telegram. TikTok, WhatsApp, Slack and Pinterest answer `false`, for reasons of theirs and not ours — on Pinterest the API *counts* a pin's comments and offers no way to read them, so the figure shows up in the publication's statistics and there is still no inbox.
2491
+ *
2492
+ * **Two of the keys are about publishing, not about reading.** `destinations` says the network publishes into places inside the account and every publication has to name one — a Pinterest board, read with `GET /organizations/{id_organization}/accounts/{id_account}/destinations`. `link` says a publication carries a destination link of its own, separate from its text. Both are `false` everywhere but `pinterest` today, and both are the reason to ask this matrix instead of keeping a list of your own: a composer with its own copy of which network has which field is exactly what drifted with the character limits.
2402
2493
  *
2403
2494
  * 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.
2404
2495
  *
@@ -2631,7 +2722,7 @@ interface components {
2631
2722
  /**
2632
2723
  * @description **How** an account of this network is authorized, which is not always "send the user to this URL".
2633
2724
  *
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:
2725
+ * Almost every network is `redirect`: open `link` and the network sends the person back to PlanVortex with a code. Two are not:
2635
2726
  *
2636
2727
  * • **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.
2637
2728
  * • **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.
@@ -2813,6 +2904,8 @@ interface components {
2813
2904
  creation_date: string;
2814
2905
  /** @description AI credits actually consumed by the generation. */
2815
2906
  credits_spent: number;
2907
+ /** @description The destination of each account of the plan that needs one (today, the board of every Pinterest account). Empty on a plan without such accounts, and on every plan created before destinations existed. */
2908
+ destinations?: components["schemas"]["AiPlansAiPlanDestination"][];
2816
2909
  /** @description Last generation error. Present only in state `failed`. */
2817
2910
  error?: components["schemas"]["AiPlansAiPlanNotice"];
2818
2911
  /** Format: date-time */
@@ -2848,7 +2941,11 @@ interface components {
2848
2941
  /**
2849
2942
  * @description Non-blocking notices about the LAST attempt (they are cleared when a new one starts). The plan is generated and perfectly usable; your UI just has to say what happened.
2850
2943
  *
2851
- * Today there is one: **2117 — some source items did not fit in the plan week.** A plan is weekly and the source does not extend it, so 12 photos with 6 slots left publish 6 and the rest are dropped. `data` carries `{ source_items, capacity }`. Better said BEFORE creating the plan (the slots are the publish days x the accounts) than after charging for it.
2944
+ * Today there are two.
2945
+ *
2946
+ * **2117 — some source items did not fit in the plan week.** A plan is weekly and the source does not extend it, so 12 photos with 6 slots left publish 6 and the rest are dropped. `data` carries `{ source_items, capacity }`. Better said BEFORE creating the plan (the slots are the publish days x the accounts) than after charging for it.
2947
+ *
2948
+ * **922 — a publication of a network that cannot publish without an image was left without one.** On Pinterest a pin is an image or a video, never text. The plan cannot be created with a configuration that would cause this (2119), but an image generation that fails halfway through the plan cannot be foreseen. `data` carries `{ step, social_network, id_account, id_publication }`: that draft will not publish until it has an image — regenerate it or attach one.
2852
2949
  */
2853
2950
  warnings?: components["schemas"]["AiPlansAiPlanNotice"][];
2854
2951
  };
@@ -2864,12 +2961,20 @@ interface components {
2864
2961
  texts_target: number;
2865
2962
  };
2866
2963
  AiPlansAiPlanCreateRequest: {
2867
- /** @description Account ids (belonging to the organization) to generate the plan for. */
2964
+ /** @description Account ids (belonging to the organization) to generate the plan for. **Not every network fits every template**: leave out the ones in the template's `unsupported_networks` (`GET /planner_templates`), or the plan is refused with 2120. */
2868
2965
  accounts: string[];
2966
+ /**
2967
+ * @description Where each account publishes, for the networks that answer `destinations: true` in `GET /social_capabilities` — today `pinterest` alone, where it is the board of every pin of that account.
2968
+ *
2969
+ * **On Pinterest it is required, one entry per Pinterest account of the plan.** A plan without it — or with a board id that is not a string of digits — is rejected with **2118**, listing EVERY account that fails in `data.accounts[]` with the same `reason` as the publication's 987 (`missing`, `invalid_id`, `invalid_section_id`), so your UI can mark them all at once. Without this check the plan would be created, charged, and leave a week of drafts in `withErrors` with the 987.
2970
+ *
2971
+ * Entries for accounts on networks without destinations are dropped, not rejected. The board is **not** checked against Pinterest at creation — that would make creating a plan depend on Pinterest answering; a board that does not exist fails when the pin is published. Read the account's boards with `GET /organizations/{id_organization}/accounts/{id_account}/destinations`.
2972
+ */
2973
+ destinations?: components["schemas"]["AiPlansAiPlanDestination"][];
2869
2974
  options?: components["schemas"]["AiPlansAiPlanOptionsInput"];
2870
2975
  /** @description Theme prompt written by the user. */
2871
2976
  prompt: string;
2872
- /** @description The source itself. Which fields it carries depends on `template`. Required for every template except `standard`, and validated at creation — 2112, 2113, 2114, 2115 or 2116 come back while the user is still there. */
2977
+ /** @description The source itself. Which fields it carries depends on `template`. Required for every template except `standard`, and validated at creation — 2112, 2113, 2114, 2115, 2116 or a store's own errors (2200, 2207-2214) come back while the user is still there. */
2873
2978
  source?: components["schemas"]["AiPlansAiPlanSourceInput"];
2874
2979
  /**
2875
2980
  * @description What the plan is generated FROM. Optional; defaults to `standard`, which is exactly what every plan did before templates existed — send nothing and nothing changes.
@@ -2887,6 +2992,18 @@ interface components {
2887
2992
  /** @description Shortcut to estimate.estimated_cost. */
2888
2993
  estimated_cost: number;
2889
2994
  };
2995
+ /**
2996
+ * @description The destination of ONE account of the plan: the Pinterest board where **all** of that account's publications of the plan go.
2997
+ *
2998
+ * One per ACCOUNT, not one per plan, because a plan can carry three Pinterest profiles and each one has its own boards. And it travels with the account, not with the content: in a `shared` plan the same content replicated to three profiles lands on three boards with nothing else to touch.
2999
+ *
3000
+ * There is no default destination stored on the account: it lives in the plan alone.
3001
+ */
3002
+ AiPlansAiPlanDestination: {
3003
+ destination: components["schemas"]["PublicationDestination"];
3004
+ /** @description An account of the plan — one of `accounts`. An entry for an account that is not in the plan is a 2106 (almost always an id swapped by mistake). */
3005
+ id_account: string;
3006
+ };
2890
3007
  AiPlansAiPlanList: {
2891
3008
  ai_plans: components["schemas"]["AiPlansAiPlan"][];
2892
3009
  total: number;
@@ -2916,6 +3033,8 @@ interface components {
2916
3033
  * @default es
2917
3034
  */
2918
3035
  language: string;
3036
+ /** @description The destination link given to the plan's publications on the networks with `link: true` (today `pinterest`). Absent when none was sent or the plan has no such network. */
3037
+ link?: string;
2919
3038
  /** @description Optional cap on the number of images; the credit budget may reduce it further. */
2920
3039
  max_images?: number;
2921
3040
  /**
@@ -2962,6 +3081,12 @@ interface components {
2962
3081
  gallery_uploads?: string[];
2963
3082
  /** @description Language of the generated texts. Optional; defaults to `"es"`. */
2964
3083
  language?: string;
3084
+ /**
3085
+ * @description **The destination link** of the plan's publications — the pin's `link`, the same for every publication of the plan. Optional: a pin without a link is legitimate, it just takes nobody anywhere. On `from_catalog`, each pin leads to **its product's page** (`permalink`) when this is absent; when it is present, it wins.
3086
+ *
3087
+ * It only reaches the publications of the networks that answer `link: true` in `GET /social_capabilities` (today `pinterest`); with none of them in the plan it is dropped. With one, it is validated **at creation**: a URL Pinterest would reject is a **994** now (`data.reason` `invalid_url` or `too_long`), not a week of pins failing at publish time.
3088
+ */
3089
+ link?: string;
2965
3090
  /** @description Optional cap on the number of images; the credit budget may reduce it further. */
2966
3091
  max_images?: number;
2967
3092
  /** @description Days of the week the plan publishes on, in ISO 8601 numbering (1 = Monday ... 7 = Sunday). Defaults to the whole week. There is still at most ONE publication per day and account, so this is what bounds the size and the cost of the plan: the number of generated posts is (selected days x accounts). Must be a non-empty array of unique integers between 1 and 7, or the request is rejected with 2106. The 7-day window starts at week_start, so each ISO day appears exactly once: with a week_start in mid-week, day 1 (Monday) is the FOLLOWING Monday. If the selected days leave no future slot at all, the request is rejected with 2108. Optional; defaults to `[1,2,3,4,5,6,7]`. */
@@ -3014,8 +3139,10 @@ interface components {
3014
3139
  date?: string;
3015
3140
  name?: string;
3016
3141
  };
3017
- /** @description `from_catalog`. The account whose catalogue was read. */
3142
+ /** @description `from_catalog`. The account whose Meta catalogue was read. */
3018
3143
  id_account_catalog?: string;
3144
+ /** @description `from_catalog`. The connected store (an integration) whose catalogue was read. Only one of the two is present. */
3145
+ id_integration_catalog?: string;
3019
3146
  /** @description `from_images`. The chosen photos with their descriptions, in the order they were sent — the position IS the `source_index` of the publication that uses it. */
3020
3147
  images?: {
3021
3148
  description?: string;
@@ -3038,14 +3165,14 @@ interface components {
3038
3165
  /**
3039
3166
  * @description The plan's source, as you SEND it. **One shape per template**: send only the fields of the template you chose — what it does not read is ignored, and what it needs and does not get is a 2112.
3040
3167
  *
3041
- * It is validated when the plan is **created**, not when it is generated: the article is downloaded, the catalogue is read live and the product pictures are copied. So a source that does not work fails while the user is still there and can fix it, and what gets stored is a SNAPSHOT — a retry three days later does not depend on the article still being online or the product still being in the catalogue.
3168
+ * It is validated when the plan is **created**, not when it is generated: the article is downloaded, the catalogue or the store is read live and the product pictures are copied. So a source that does not work fails while the user is still there and can fix it, and what gets stored is a SNAPSHOT — a retry three days later does not depend on the article still being online or the product still being in the catalogue.
3042
3169
  *
3043
3170
  * | Template | Fields |
3044
3171
  * | --- | --- |
3045
3172
  * | `standard` | none — no source |
3046
3173
  * | `from_images` | `images` |
3047
3174
  * | `from_text` | `url` **or** `text` |
3048
- * | `from_catalog` | `id_account_catalog`, `product_catalog_id`, `products` |
3175
+ * | `from_catalog` | `id_account_catalog` + `product_catalog_id` (a Meta catalogue) **or** `id_integration_catalog` (a connected store), and `products` |
3049
3176
  * | `campaign` | `event_name`, `event_date` |
3050
3177
  */
3051
3178
  AiPlansAiPlanSourceInput: {
@@ -3056,13 +3183,15 @@ interface components {
3056
3183
  event_date?: string;
3057
3184
  /** @description `campaign`. What the countdown is towards ("Rebajas de verano", "Apertura del local"). Over 120 characters it is **rejected, not truncated**: a name cut mid-word would come out that way in all seven publications, and whatever else needs saying goes in `prompt`. */
3058
3185
  event_name?: string;
3059
- /** @description `from_catalog`. Which account's catalogue the products come from. It has to belong to the organization (2103) and be on a network that supports products (2115). It only chooses the catalogue: the publications still go to every account in `accounts` — a LinkedIn account can publish a product from a Facebook catalogue. */
3186
+ /** @description `from_catalog`, from a **Meta catalogue**. Which account's catalogue the products come from. It has to belong to the organization (2103) and be on a network that supports products (2115). It only chooses the catalogue: the publications still go to every account in `accounts` — a LinkedIn account can publish a product from a Facebook catalogue. **Exclusive with `id_integration_catalog`** (both at once is a 2112). */
3060
3187
  id_account_catalog?: string;
3188
+ /** @description `from_catalog`, from a **connected store**. An integration of the organization whose provider has `catalog: true` (a WooCommerce store), enabled; another organization's is a 2200, without confirming it exists. The products are its `external_id`s, from `GET .../integrations/{id_integration}/products`. Like the account, it only chooses the catalogue: the publications go to every account in `accounts`. **Exclusive with `id_account_catalog`.** */
3189
+ id_integration_catalog?: string;
3061
3190
  /** @description `from_images`. Your own photos, each with its own description, **in the order that tells the story**: the orchestrator picks one per publication and keeps its position in `source_index`, so photo 3 can be the "before" and photo 7 the "after". Up to 20 (`max_source_items`), and each one has to be an image upload of this organization (806 otherwise). */
3062
3191
  images?: components["schemas"]["AiPlansAiPlanSourceImageInput"][];
3063
- /** @description `from_catalog`. The catalogue itself, as the network identifies it. */
3192
+ /** @description `from_catalog` with `id_account_catalog` only. The catalogue itself, as the network identifies it: an account can have several catalogues, a store is one. */
3064
3193
  product_catalog_id?: string;
3065
- /** @description `from_catalog`. Ids of the chosen products, **in the order they should tell the week**. Up to 12 — a unit here is not an id already in the database: it is a live read plus a real download inside this request, with the user waiting. Repeated ids are deduplicated. They are ALL checked against the catalogue before a single picture is downloaded (2112 naming the missing one), and each picture is copied into an upload of the organization: the network CDN URL expires, and a plan published weeks later would carry a broken file. Those uploads count against the storage quota. */
3194
+ /** @description `from_catalog`. Ids of the chosen products, **in the order they should tell the week**. Up to 12 — a unit here is not an id already in the database: it is a live read plus a real download inside this request, with the user waiting. Repeated ids are deduplicated. They are ALL checked against the catalogue before a single picture is downloaded (2112 naming the missing one, or the one that is out of stock), and each picture is copied into an upload of the organization: a catalogue's picture URL expires or changes, and a plan published weeks later would carry a broken file. Those uploads count against the storage quota. */
3066
3195
  products?: string[];
3067
3196
  /** @description `from_text`. The article pasted by hand. **It wins over `url`** when both come: pasting is what a user does when the download did not work (a paywall, a page that needs JavaScript), so re-downloading to ignore what they wrote would take away their only way out. Truncated to 12.000 characters — the cap is what keeps the estimate honest, since the real charge is per use. Under 200 characters it is not an article, it is the theme, which is `prompt` and another field (2116). */
3068
3197
  text?: string;
@@ -3075,12 +3204,14 @@ interface components {
3075
3204
  /** @description A product of the catalogue, copied when the plan was created. */
3076
3205
  AiPlansAiPlanSourceProduct: {
3077
3206
  description?: string;
3078
- /** @description The id it has in the network catalogue. */
3207
+ /** @description The id it has in the catalogue: the network's, or the store's. */
3079
3208
  external_id?: string;
3080
3209
  /** @description The product picture, copied into an upload of the organization. The network CDN URL expires; this one does not. */
3081
3210
  id_upload?: string;
3082
3211
  name?: string;
3083
- /** @description The price **exactly as the network returned it** ("9,99 €"). It is never converted: the same field is a number in other paths of Meta's API and there is no way to tell units from cents, and dividing by 100 "just in case" is precisely how a 10 € product gets advertised at 0,10 €. The prompt is told to copy it verbatim or to say nothing. */
3212
+ /** @description The product's public page (a store's product page, or the `url` of the Meta catalogue item), kept only when it is an http(s) address. The texts use it on the networks where a link in the text can be clicked, never on Instagram or TikTok; and a Pinterest pin leads there unless the plan has its own `options.link`. Absent on plans created before the field existed. */
3213
+ permalink?: string;
3214
+ /** @description The price **exactly as the source gave it**: Meta's formatted price ("9,99 €"), or a store's displayed price with its tax, symbol and range ("14,52 € IVA incluido"). It is never converted: the same field is a number in other paths of Meta's API and there is no way to tell units from cents, and dividing by 100 "just in case" is precisely how a 10 € product gets advertised at 0,10 €. The prompt is told to copy it verbatim or to say nothing. Absent when the product has no price, and on a store's taxable products while its `config.tax_location_missing` is true. */
3084
3215
  price?: string;
3085
3216
  };
3086
3217
  /**
@@ -3187,7 +3318,7 @@ interface components {
3187
3318
  };
3188
3319
  source_fields?: components["schemas"]["CatalogPlannerTemplateField"][];
3189
3320
  /**
3190
- * @description Fields of which AT LEAST ONE is needed, even though none of them is required on its own. Today it is `from_text`: either the URL or the pasted text, never both empty (2116).
3321
+ * @description Fields of which AT LEAST ONE is needed, even though none of them is required on its own: `from_text` takes the URL or the pasted text, never both empty (2116); `from_catalog` takes `id_account_catalog` or `id_integration_catalog`, and exactly one (2112 with both).
3191
3322
  *
3192
3323
  * It exists because a field's `required` cannot say "one or the other", and without it your UI would have to hardcode that rule — exactly the copy this catalogue exists to avoid. Absent = there is nothing of the sort to resolve.
3193
3324
  */
@@ -3198,11 +3329,22 @@ interface components {
3198
3329
  * • **`standard`** — a theme prompt, images generated by the model. What every plan was before templates existed.
3199
3330
  * • **`from_images`** — the user's own photos, each with its own description. One vision pass over ALL of them at once, so the model can sequence a narrative (photo 3 the "before", photo 7 the "after") instead of writing seven independent posts. It generates no images.
3200
3331
  * • **`from_text`** — an article: a URL that is downloaded at creation, or the text pasted by hand.
3201
- * • **`from_catalog`** — products read LIVE from a connected catalogue, with their name, their price and their picture. The one template that cannot be copied by a generic AI tool, because it needs the catalogue connection.
3332
+ * • **`from_catalog`** — products read LIVE from a connected catalogue (a Meta catalogue through a connected account, or a connected store such as WooCommerce), with their name, their description, their price, their picture and the link to their page. The one template that cannot be copied by a generic AI tool, because it needs the catalogue connection.
3202
3333
  * • **`campaign`** — a countdown towards a date, with a narrative arc: teaser, announcement, reminder, today, thank you. The only plan that is a story instead of seven loose posts.
3203
3334
  * @enum {string}
3204
3335
  */
3205
3336
  template?: "standard" | "from_images" | "from_text" | "from_catalog" | "campaign";
3337
+ /**
3338
+ * @description Networks whose accounts cannot be in a plan of this template: creating one is refused with 2120, before anything is read or charged. The ones that do not publish (`whatsapp`, `google_business`) on every template; and on the templates where every publication is the photo of its source (`from_images`, `from_catalog`), also the ones that do not publish images: `youtube`, which only uploads video.
3339
+ *
3340
+ * It is computed from the same data that validates publishing, not from a list: a new network that does not publish photos drops out on its own. Filter the accounts you offer with it.
3341
+ * @example [
3342
+ * "whatsapp",
3343
+ * "google_business",
3344
+ * "youtube"
3345
+ * ]
3346
+ */
3347
+ unsupported_networks?: components["schemas"]["SocialNetwork"][];
3206
3348
  };
3207
3349
  /** @description One field of the source step. `uploads_with_description` (photos, each with its own description) and `catalog_products` (products read live from a connected catalogue) need a dedicated component; the rest are ordinary controls. */
3208
3350
  CatalogPlannerTemplateField: {
@@ -3230,6 +3372,8 @@ interface components {
3230
3372
  * @description Maximum size of one file, in megabytes.
3231
3373
  *
3232
3374
  * **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.
3375
+ *
3376
+ * **On `pinterest` this number is the IMAGE one** (~20 MB); a video is allowed two orders of magnitude more. It is the one entry in this map that does not apply to every file of its network, so a size warning shown against it would be wrong on every video. Over whichever ceiling applies, the publication is created in state `withErrors` with `publication_errors[].code = 996` and `data.max_mb`.
3233
3377
  */
3234
3378
  max_file_size_mb: components["schemas"]["CatalogSocialLimitsMap"];
3235
3379
  /** @description Second text limit, in UTF-8 bytes. `0` means the network does not measure text in bytes; only Bluesky does, at 3.000. */
@@ -3240,6 +3384,8 @@ interface components {
3240
3384
  * @description How many images one publication accepts. `0` means images are not a publication on that network.
3241
3385
  *
3242
3386
  * **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`.
3387
+ *
3388
+ * **On `pinterest` it is a ceiling with a floor under it.** Several images are a carousel of 2 to 5: one image is not a small carousel (it is a plain image pin, which is a different call) and six is not a trimmed one. Outside that range the publication is created in state `withErrors` with `publication_errors[].code = 990`.
3243
3389
  */
3244
3390
  total_images: components["schemas"]["CatalogSocialLimitsMap"];
3245
3391
  /** @description Maximum video duration. A network that limits weight instead of duration is not here but in `max_file_size_mb`. */
@@ -3500,6 +3646,10 @@ interface components {
3500
3646
  /** @description The coarse gates of one network */
3501
3647
  CommentsSocialCapabilities: {
3502
3648
  comments: boolean;
3649
+ /** @description The network publishes into **places inside the account**, and every publication has to name one: a Pinterest board. When this is `true`, read `GET /organizations/{id_organization}/accounts/{id_account}/destinations` and send one back in `destination` — a publication created without it lands in state `withErrors` with `publication_errors[].code = 987`. Today only `pinterest`. */
3650
+ destinations: boolean;
3651
+ /** @description The publication carries a **destination link of its own** (`link`), separate from its text: where a pin takes whoever clicks it. On a network that answers `false` the field is deleted on save, so do not offer it. Today only `pinterest`. */
3652
+ link: boolean;
3503
3653
  messages: boolean;
3504
3654
  persistent_menu: boolean;
3505
3655
  products: boolean;
@@ -3850,7 +4000,7 @@ interface components {
3850
4000
  * The catalogue grows with the product, so treat an unknown `code` as a generic failure instead of rejecting it.
3851
4001
  */
3852
4002
  Error: {
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. */
4003
+ /** @description PlanVortex error code. Ranges: 500-548 auth, tokens and client apps · 601-612 user · 700-716 social accounts · 800-810 files · 900-996 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. */
3854
4004
  code: number;
3855
4005
  /** @description Extra context attached to the error, when there is any. */
3856
4006
  data?: {
@@ -3886,18 +4036,18 @@ interface components {
3886
4036
  /** @description Credentials are never returned. `connected` is the summary the panel paints: false means the connection failed and needs attention. */
3887
4037
  IntegrationsIntegration: {
3888
4038
  _id: string;
3889
- /** @description Provider-specific configuration. **Empty object for `google_drive`** — the Picker supplies everything — so every field here is optional and only an `rss` integration fills them in. */
3890
- config: components["schemas"]["IntegrationsRssConfig"];
4039
+ /** @description Provider-specific configuration, built by the server. **Empty object for `google_drive`** (the Picker supplies everything), the feed settings for `rss` and the store connection for `woocommerce`, so every field here is optional. It never carries a secret. */
4040
+ config: components["schemas"]["IntegrationsIntegrationConfig"];
3891
4041
  /** @description `error_code` is empty. It is computed on the way out, not stored: the panel needs to know whether the connection is alive, not with which credentials. */
3892
4042
  connected: boolean;
3893
4043
  /** Format: date-time */
3894
4044
  creation_date: string;
3895
4045
  /** @description Only enabled integrations consume plan allowance. */
3896
4046
  enabled: boolean;
3897
- /** @description PlanVortex error code of the last failure (2203 token revoked, 2205 feed unreachable, 924 no publication allowance left…). */
4047
+ /** @description PlanVortex error code of the last failure (2203 token revoked, 2205 feed unreachable, 2211 the store rejected its key, 924 no publication allowance left…). **2219 is not a failure**: a store connected with the button is being checked, for a few seconds; if it stays there, the check never finished and the store has to be reconnected. */
3898
4048
  error_code?: number | null;
3899
4049
  /**
3900
- * @description The Google account email, or the feed URL.
4050
+ * @description The Google account email, the feed URL, or the store URL.
3901
4051
  * @example ana@empresa.com
3902
4052
  */
3903
4053
  external_identifier?: string;
@@ -3905,10 +4055,97 @@ interface components {
3905
4055
  id_organization: string;
3906
4056
  /** Format: date-time */
3907
4057
  last_used_date?: string;
3908
- /** @example Drive de ana@empresa.com */
4058
+ /**
4059
+ * @description The Google account, the feed title, or the store's site name.
4060
+ * @example Drive de ana@empresa.com
4061
+ */
3909
4062
  name: string;
3910
4063
  provider: components["schemas"]["IntegrationsIntegrationProviderName"];
3911
4064
  };
4065
+ IntegrationsIntegrationCatalogPage: {
4066
+ items: components["schemas"]["IntegrationsIntegrationCatalogProduct"][];
4067
+ /** @description Absent on the last page. **Opaque**: send it back as `cursor` exactly as it came, and never build or parse one. A cursor the server did not issue is a `2208`. */
4068
+ next_cursor?: string;
4069
+ };
4070
+ /** @description A product of a connected store, already normalised: the same shape whatever the store is. */
4071
+ IntegrationsIntegrationCatalogProduct: {
4072
+ /** @description Can it be chosen? **false for what is out of stock**: show it, marked, but do not let it be picked. Advertising what cannot be bought is worse than not advertising, and a plan with one is rejected (`2112`). A product on backorder is available. */
4073
+ available: boolean;
4074
+ /** @description Plain text, already stripped of HTML, entities and page-builder shortcodes, cut at 400 characters without splitting a word. */
4075
+ description?: string;
4076
+ /**
4077
+ * @description The id it has in the store. **Always a string**, even where the store uses numbers. It is what goes into `source.products` of a `from_catalog` plan.
4078
+ * @example 68
4079
+ */
4080
+ external_id: string;
4081
+ /** @description The first image of the product. It is the store's own URL: it can be slow, or blocked when loaded from another domain. */
4082
+ image_url?: string;
4083
+ /** @example Taza de cerámica */
4084
+ name: string;
4085
+ /** @description The product's public page in the store. */
4086
+ permalink?: string;
4087
+ /**
4088
+ * @description Text ready to be copied **verbatim**, as the store displays it: with its tax suffix, its currency symbol and the range of a variable product ("36,30 € - 48,40 € IVA incluido"); for a product on sale, the sale price alone. Never a number to do arithmetic with. **Absent = no price**: the product has none, or it is taxable and the store's `config.tax_location_missing` is true.
4089
+ * @example 14,52 € IVA incluido
4090
+ */
4091
+ price?: string;
4092
+ };
4093
+ /** @description What `config` holds, per provider. `google_drive`: nothing. `rss`: the feed settings. `woocommerce`: how to reach the store, which the server detects when connecting. None of it is a secret. */
4094
+ IntegrationsIntegrationConfig: {
4095
+ /**
4096
+ * @description `woocommerce`. Where the store's REST API answers: `wp-json` (`/wp-json/wc/v3/…`) or `rest_route` (`/?rest_route=/wc/v3/…`), the fallback for stores with plain permalinks. A `rest_route` store cannot use the approval button (`2216`).
4097
+ * @enum {string}
4098
+ */
4099
+ api_base?: "wp-json" | "rest_route";
4100
+ /**
4101
+ * @description `woocommerce`. How the key travels: `basic` (the `Authorization` header) or `query` (in the URL, only for hostings that drop that header). Detected when connecting.
4102
+ * @enum {string}
4103
+ */
4104
+ auth_mode?: "basic" | "query";
4105
+ /** @description `rss`. */
4106
+ auto_publish?: boolean;
4107
+ /**
4108
+ * @description `woocommerce`. The store currency, when the key could read it (it needs a shop manager's key). Only used for a product that comes without `price_html`.
4109
+ * @example EUR
4110
+ */
4111
+ currency?: string;
4112
+ /** @description `rss`. */
4113
+ id_accounts?: string[];
4114
+ /** @description `rss`. */
4115
+ import_image?: boolean;
4116
+ /**
4117
+ * @description `woocommerce`. The last 7 characters of the consumer key, which is what WooCommerce shows in its key list (WooCommerce → Settings → Advanced → REST API). Disconnecting cannot revoke the key: this is how the user finds which one to delete there.
4118
+ * @example 3f9a2c1
4119
+ */
4120
+ key_ending?: string;
4121
+ /**
4122
+ * Format: date-time
4123
+ * @description `rss`.
4124
+ */
4125
+ last_checked?: string;
4126
+ /** @description `rss`. */
4127
+ publication_type?: string;
4128
+ /** @description `rss`. Entries already processed (last 200, FIFO). Owned by the job: filled at connection time with everything the feed already had, so the back catalogue is never published. */
4129
+ seen_guids?: string[];
4130
+ /** @description `woocommerce`. **true when the store's API gives prices WITHOUT tax, labelled as tax included.** It happens with the default customer location set to geolocate (or to no location), prices entered without tax and tax based on the customer's address: an API request has no customer, so WooCommerce has nowhere to charge tax, and `price_html` reads "20,00 € IVA incluido" where the shop charges 24,20 €. While it is true, the store's **taxable products come back without a price** rather than with a wrong one; products with no tax keep theirs. It is checked when connecting, so after fixing the setting (WooCommerce → Settings → General → Default customer location → Shop country/region) the store has to be reconnected. Always present on a store, also as `false`. */
4131
+ tax_location_missing?: boolean;
4132
+ /** @description `rss`. */
4133
+ template?: string;
4134
+ /** @description `rss`: the feed. `woocommerce`: the store, as it was resolved when connecting (after its own redirects, which from then on are never followed). **A store's `url` cannot be changed with `PUT`** (`2220`): it decides which server receives the stored key. Changing store is reconnecting. */
4135
+ url?: string;
4136
+ };
4137
+ /** @description One field of a provider's form. Build the form from these, not from a copy of your own: the server that validates the field is the one that announces it. */
4138
+ IntegrationsIntegrationFormField: {
4139
+ default?: unknown;
4140
+ name: string;
4141
+ options?: string[];
4142
+ required: boolean;
4143
+ /**
4144
+ * @description `accounts` is a picker of the organization's accounts. `secret` is a credential (WooCommerce's consumer secret): mask it, never prefill it when editing, and mark the input as a new password (`autocomplete="new-password"`), or the browser's password manager fills it with the user's own PlanVortex password and the store answers `2211`.
4145
+ * @enum {string}
4146
+ */
4147
+ type: "url" | "text" | "textarea" | "boolean" | "accounts" | "select" | "secret";
4148
+ };
3912
4149
  IntegrationsIntegrationProvider: {
3913
4150
  /**
3914
4151
  * @description File formats accepted at the door. **Empty when `file_import` is false** — that is what `rss` returns, and it does not mean "anything goes". heic/heif are accepted and converted to JPEG on ingestion, so what ends up stored is always jpeg.
@@ -3923,24 +4160,24 @@ interface components {
3923
4160
  * ]
3924
4161
  */
3925
4162
  accepted_formats: string[];
3926
- config_fields: {
3927
- default?: unknown;
3928
- name: string;
3929
- options?: string[];
3930
- required?: boolean;
3931
- /** @enum {string} */
3932
- type: "url" | "text" | "textarea" | "boolean" | "accounts" | "select";
3933
- }[];
4163
+ /** @description Has a product catalogue: `GET .../integrations/{id_integration}/products`, and a source for the `from_catalog` planner template (`source.id_integration_catalog`). WooCommerce. */
4164
+ catalog: boolean;
4165
+ /** @description The connection form. Empty when the provider connects through OAuth alone. */
4166
+ config_fields: components["schemas"]["IntegrationsIntegrationFormField"][];
4167
+ /** @description Can be connected by sending the user to `GET .../integrations/{provider}/connect_link`: Google Drive (its OAuth) and WooCommerce (the store's approval button, which creates the key without anyone copying it). A provider with a link can ALSO have `config_fields`: a WooCommerce store accepts API keys by hand too. */
4168
+ connect_link: boolean;
4169
+ /** @description What `connect_link` needs in its query before it can build the link: the store `url` on WooCommerce, because the link points at the store's own WordPress. Empty on Google Drive. */
4170
+ connect_link_fields: components["schemas"]["IntegrationsIntegrationFormField"][];
3934
4171
  /** @description Polled by the poll-feeds job, which turns new entries into publications. */
3935
4172
  content_feed: boolean;
3936
4173
  /** @description Contributes files to the library through POST /uploads/import. */
3937
4174
  file_import: boolean;
3938
4175
  provider: components["schemas"]["IntegrationsIntegrationProviderName"];
3939
- /** @description true = connect with connect_link + code. false = connect with a form built from config_fields. */
4176
+ /** @description true = there is an OAuth token behind the connection (Google Drive): connect with `connect_link` + `code`, one per organization and provider. false = no token to renew. **Having a link is not being OAuth**: read `connect_link` for that. */
3940
4177
  requires_oauth: boolean;
3941
4178
  };
3942
4179
  /** @enum {string} */
3943
- IntegrationsIntegrationProviderName: "google_drive" | "rss";
4180
+ IntegrationsIntegrationProviderName: "google_drive" | "rss" | "woocommerce";
3944
4181
  /** @description Provider-specific configuration. Empty for google_drive. */
3945
4182
  IntegrationsRssConfig: {
3946
4183
  auto_publish?: boolean;
@@ -3973,6 +4210,19 @@ interface components {
3973
4210
  */
3974
4211
  url: string;
3975
4212
  };
4213
+ IntegrationsWooCommerceConnectRequest: {
4214
+ /** @description Starts with `ck_`. Created in WooCommerce → Settings → Advanced → REST API with **Read** permission. */
4215
+ consumer_key: string;
4216
+ /** @description Starts with `cs_`. Stored encrypted and never returned by any endpoint. */
4217
+ consumer_secret: string;
4218
+ /** @enum {string} */
4219
+ provider: "woocommerce";
4220
+ /**
4221
+ * @description The store address. **https only**: a store that only answers on http is not connected, because the key would travel in the clear. Its redirects (http to https, bare domain to www) are resolved now, without credentials, and the final URL is what gets stored.
4222
+ * @example https://tienda.example.com
4223
+ */
4224
+ url: string;
4225
+ };
3976
4226
  /**
3977
4227
  * @description A message exchanged with a contact.
3978
4228
  *
@@ -4308,6 +4558,8 @@ interface components {
4308
4558
  _id: string;
4309
4559
  /** Format: date-time */
4310
4560
  creation_date: string;
4561
+ /** @description Where inside the account this publication goes. Only present on the networks that answer `destinations: true` in `GET /social_capabilities`. */
4562
+ destination?: components["schemas"]["PublicationDestination"];
4311
4563
  /**
4312
4564
  * @description What this publication's engagement rate is divided by.
4313
4565
  * @enum {string}
@@ -4334,6 +4586,14 @@ interface components {
4334
4586
  /** @description The integration this publication came from — an RSS feed, for instance. Set when it is created and never changed afterwards. */
4335
4587
  id_integration?: string;
4336
4588
  id_organization: string;
4589
+ /**
4590
+ * @description **The destination link**: where the publication takes whoever clicks it. Not to be confused with `url`, which is the link to the publication *on the network* and only exists once it is published.
4591
+ *
4592
+ * Only the networks that answer `link: true` in `GET /social_capabilities` carry it — today `pinterest` alone, where a pin has a `link` field of its own and sending traffic somewhere is the whole point of publishing there. Putting the URL inside `text` instead leaves it visible and unclickable.
4593
+ *
4594
+ * **On every other network the field is deleted on save**, like `destination`.
4595
+ */
4596
+ link?: string;
4337
4597
  /** @description Last known measurement, in the common vocabulary. Absent until it is measured. */
4338
4598
  metrics?: components["schemas"]["NormalizedMetrics"];
4339
4599
  /** @description Internal name. Never shown on the social network. */
@@ -4374,14 +4634,71 @@ interface components {
4374
4634
  /** @description Link to the publication on the network, when there is one. A **private** Telegram channel has no public URL, so it comes back empty even though the post went out. */
4375
4635
  url?: string;
4376
4636
  };
4637
+ /**
4638
+ * @description **Where inside the account** a publication goes, on the networks where choosing the account is not yet choosing the destination. Today that is `pinterest` alone, where it is the board the pin is saved to.
4639
+ *
4640
+ * Ask `destinations` in `GET /social_capabilities` instead of keeping a list of your own, and read the account's boards with `GET /organizations/{id_organization}/accounts/{id_account}/destinations`.
4641
+ *
4642
+ * **On Pinterest it is required.** A publication created without it is created in state `withErrors` with `publication_errors[].code = 987` and the background job will not attempt it — the same treatment as a YouTube video with no title, and for the same reason: a scheduled publication that dies at 3 a.m. over a board that was missing from the start is a failure that could have been told to the person while they were still there.
4643
+ *
4644
+ * **On every other network the field is deleted, not rejected.** A `destination` on a Facebook publication would be a field that does nothing, and giving it back in the response would be worse than dropping it.
4645
+ *
4646
+ * `name` and `section_name` are labels for display ("Recipes > Desserts"). The server never checks them and nothing is decided by them: what publishes is `id`.
4647
+ */
4648
+ PublicationDestination: {
4649
+ /** @description The board id. **Always a string**, never a number: Pinterest's ids are long integers, so a client that sends one as a JSON number has already lost digits to rounding before the request arrives. That is refused — `publication_errors[].code = 987` with `data.reason = "invalid_id"` — rather than published to some other board. Sending the board's *name* instead of its id fails the same way, which is the likeliest first mistake of an integration. */
4650
+ id?: string;
4651
+ /** @description The board's label, for display. Decides nothing. */
4652
+ name?: string;
4653
+ /** @description Pinterest only: the section of the board, optional. Absent or empty means the board itself. Same rule as `id` — anything that is not a string of digits is `data.reason = "invalid_section_id"`. A board's sections arrive in the detail of one destination, not in the list of them. */
4654
+ section_id?: string;
4655
+ /** @description The section's label, for display. Decides nothing. */
4656
+ section_name?: string;
4657
+ };
4658
+ /** @description A place inside the account a publication can be sent to: on Pinterest, a board. */
4659
+ PublicationsDestination: {
4660
+ /** @description The destination's own description, when the network has one. */
4661
+ description?: string;
4662
+ /** @description What goes in `destination.id` when creating a publication. **Always a string**, even though Pinterest's are long integers — parse it as text or you will lose digits. */
4663
+ id: string;
4664
+ /** @description A cover image for the picker, when the network has one. */
4665
+ image?: string;
4666
+ /** @description The name to show in a picker. */
4667
+ name: string;
4668
+ /** @description Pinterest: `PUBLIC`, `PROTECTED` or `SECRET`. Worth showing: a pin on a secret board is seen by nobody else, and afterwards there is nothing in the statistics that explains why it has no impressions. */
4669
+ privacy?: string;
4670
+ /** @description Pinterest: the board's sections, which is what goes in `destination.section_id`. **Only in the detail of one destination** — listing them for every board would cost one call to the network per board. */
4671
+ sections?: {
4672
+ id: string;
4673
+ name: string;
4674
+ }[];
4675
+ };
4377
4676
  /** @description Body accepted when creating or updating a publication. Only these properties are read; anything else in the payload is ignored. */
4378
4677
  PublicationsPublicationInput: {
4678
+ /**
4679
+ * @description Where inside the account the publication goes. **Required on the networks that answer `destinations: true` in `GET /social_capabilities`** — today `pinterest`, where it is the board — and **deleted** on every other one.
4680
+ *
4681
+ * Read the account's destinations with `GET /organizations/{id_organization}/accounts/{id_account}/destinations` and send back the `id` you got from there. Missing or malformed, the publication is still created, in state `withErrors` with `publication_errors[].code = 987` and a `data.reason` of `missing`, `invalid_id` or `invalid_section_id`. It is **not** checked against the network at creation: that would cost a call to Pinterest on every publication and make creating one depend on Pinterest answering.
4682
+ *
4683
+ * On an update, omitting it keeps the destination that was there.
4684
+ */
4685
+ destination?: components["schemas"]["PublicationDestination"];
4379
4686
  /**
4380
4687
  * @description Identifiers of uploads previously created through the uploads endpoints, attached to this publication.
4381
4688
  *
4382
4689
  * **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.
4690
+ *
4691
+ * **On Pinterest a pin is an image or a video, never text alone** (code 922 with neither), and it is of one kind only: two to five images make a carousel — outside that range, code 990 — images and videos are not mixed and there is no more than one video (code 916). The weight ceilings are two orders of magnitude apart, so `max_file_size_mb.pinterest` is the **image** one (~20 MB) while a video is allowed far more; over either, code 996 with `data.max_mb`.
4383
4692
  */
4384
4693
  files?: string[];
4694
+ /**
4695
+ * @description **The destination link**: where the publication takes whoever clicks it. Only on the networks that answer `link: true` in `GET /social_capabilities` — today `pinterest`, where it is the whole point of a pin — and **deleted** on every other one. It is not `url`, which is the link to the publication on the network once published.
4696
+ *
4697
+ * It is optional (a pin with no link is legitimate), but if it is sent it must be a real `http(s)://` URL of at most 2.048 characters: a bare domain such as `mysite.com/recipe` is created in state `withErrors` with `publication_errors[].code = 994` and `data.reason` of `invalid_url` or `too_long`. It is checked when the publication is **created**, not when it is published, so a scheduled pin does not die at 3 a.m. over a link that was already wrong.
4698
+ *
4699
+ * On an update: omit it to keep what was there, send `null` or `""` to remove it.
4700
+ */
4701
+ link?: string;
4385
4702
  /** @description Internal name for the publication. Useful for grouping; never shown on the social network. */
4386
4703
  name?: string;
4387
4704
  /**
@@ -4400,7 +4717,7 @@ interface components {
4400
4717
  * 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.
4401
4718
  * @enum {string}
4402
4719
  */
4403
- social_network?: "facebook" | "instagram" | "twitter" | "linkedin" | "tiktok" | "whatsapp" | "youtube" | "bluesky" | "discord" | "telegram" | "threads" | "slack";
4720
+ social_network?: "facebook" | "instagram" | "twitter" | "linkedin" | "tiktok" | "whatsapp" | "youtube" | "bluesky" | "discord" | "telegram" | "threads" | "slack" | "pinterest";
4404
4721
  /**
4405
4722
  * @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.
4406
4723
  * @enum {string}
@@ -4412,9 +4729,15 @@ interface components {
4412
4729
  * **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
4730
  *
4414
4731
  * **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.
4732
+ *
4733
+ * **On Pinterest `text` is the pin's description**, at most 800 characters — the title is the separate `title` field, which is the first thing anyone arriving from Facebook gets wrong. Over it, `publication_errors[].code = 995` with `data.field = "description"`.
4415
4734
  */
4416
4735
  text?: string;
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`. */
4736
+ /**
4737
+ * @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`.
4738
+ *
4739
+ * **On Pinterest it is the pin's title**, optional and at most 100 characters; over it the publication is created in state `withErrors` with `publication_errors[].code = 995` and `data.field = "title"`.
4740
+ */
4418
4741
  title?: string;
4419
4742
  };
4420
4743
  PublicationsPublicationList: {
@@ -4519,6 +4842,8 @@ interface components {
4519
4842
  * 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
4843
  *
4521
4844
  * 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.
4845
+ *
4846
+ * On `pinterest` there are seven, and three of them exist nowhere else: `saves` — the gesture the whole network is built on —, `outbound_clicks` (clicks that left the pin towards its `link`, which is the one normalised as the common `clicks`) and `pin_clicks` (clicks that opened the pin inside Pinterest, with no common equivalent). `impressions` is real here, so the engagement rate is computed over it and not over followers. `video_views` only exists on a video pin. And `comments` is the odd one: Pinterest **counts** them and offers no way to read them, so the number is reported while `comments` is `false` in `GET /social_capabilities` — this network has no comment inbox, and it is not a gap waiting to be filled.
4522
4847
  */
4523
4848
  PublicationStats: {
4524
4849
  angers?: number;
@@ -4534,7 +4859,11 @@ interface components {
4534
4859
  likes?: number;
4535
4860
  loves?: number;
4536
4861
  negative_feedback?: number;
4862
+ /** @description Pinterest. Clicks that left the pin towards its `link`. This is the one normalised as the common `clicks`. */
4863
+ outbound_clicks?: number;
4537
4864
  page_likes?: number;
4865
+ /** @description Pinterest. Clicks that opened the pin inside Pinterest without leaving it. No common equivalent, so it lives only here. */
4866
+ pin_clicks?: number;
4538
4867
  /** @description X (Twitter). Video playbacks that reached 0% — i.e. started. Comes from X's non-public metrics: omitted when unavailable. */
4539
4868
  playback_0_count?: number;
4540
4869
  /** @description X (Twitter). Video playbacks that reached 25%. Comes from X's non-public metrics: omitted when unavailable. */
@@ -4549,7 +4878,7 @@ interface components {
4549
4878
  profile_visits?: number;
4550
4879
  quotes?: number;
4551
4880
  reach?: number;
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. */
4881
+ /** @description Telegram, Slack and Pinterest. Every reaction on the post, all emoji together, normalised as `likes`. On `telegram` and `slack` it is the **complete state and not an increment**: it goes down when somebody takes theirs back. On `slack` it is the only metric the network gives. */
4553
4882
  reactions?: number;
4554
4883
  /** @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. */
4555
4884
  reactions_by_emoji?: {
@@ -4558,6 +4887,8 @@ interface components {
4558
4887
  replys?: number;
4559
4888
  retwets?: number;
4560
4889
  saved?: number;
4890
+ /** @description Pinterest. Times the pin was saved to a board — the gesture the network is built on. Normalised as `saves` and counted towards engagement. Not the same key as `saved`, which is Instagram's. */
4891
+ saves?: number;
4561
4892
  share?: number;
4562
4893
  shareMentions?: number;
4563
4894
  shares?: number;
@@ -4603,7 +4934,7 @@ interface components {
4603
4934
  * **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`.
4604
4935
  * @enum {string}
4605
4936
  */
4606
- SocialNetwork: "facebook" | "instagram" | "linkedin" | "tiktok" | "twitter" | "whatsapp" | "youtube" | "google_business" | "bluesky" | "discord" | "telegram" | "threads" | "slack";
4937
+ SocialNetwork: "facebook" | "instagram" | "linkedin" | "tiktok" | "twitter" | "whatsapp" | "youtube" | "google_business" | "bluesky" | "discord" | "telegram" | "threads" | "slack" | "pinterest";
4607
4938
  /** @description Statistics collection settings. Only `auto_refresh_twitter` is read; any other key is ignored. */
4608
4939
  StatsSettings: {
4609
4940
  /**
@@ -5759,11 +6090,19 @@ interface operations {
5759
6090
  * | `2106` | Invalid AI plan options (missing prompt, invalid timezone, invalid week_start, invalid max_images or invalid publish_days). Also when an option is not accepted by the chosen template: `shared` on one whose `allows_shared` is false, or `gallery_uploads` on one whose `allows_gallery` is false. |
5760
6091
  * | `2108` | The selected publish days leave no available slot in the plan week: every slot of the chosen days is already in the past. Pick more days or a later week_start. The response data carries { publish_days, week_start, timezone }. |
5761
6092
  * | `2111` | Invalid planner template: `template` is not one of the ones published by `GET /planner_templates`. |
5762
- * | `2112` | Invalid or missing `source` for the chosen template: a field is missing, an id is not valid, there are more units than `max_source_items`, an image has no description, a product is no longer in the catalogue, or the event date falls before the plan week or more than 60 days after it. `data` says which one and why. |
6093
+ * | `2112` | Invalid or missing `source` for the chosen template: a field is missing, an id is not valid, there are more units than `max_source_items`, an image has no description, a product is no longer in the catalogue or is out of stock, both `id_account_catalog` and `id_integration_catalog` were sent (the catalogue comes from one of them), or the event date falls before the plan week or more than 60 days after it. `data` says which one and why. |
5763
6094
  * | `2113` | Could not read the source URL (`from_text`): the download failed, answered something that is not text or HTML, or the page carried no usable text. Paste the article in `source.text` instead. |
5764
6095
  * | `2114` | The source URL points to a non-public address (`from_text`): loopback, private, link-local or CGNAT. Checked before every redirect and again when the socket opens. |
5765
- * | `2115` | The selected account has no usable product catalogue (`from_catalog`): its network has no products, or the catalogue could not be read — expired token, deleted catalogue, missing permission — or came back empty. |
6096
+ * | `2115` | The selected account has no usable product catalogue (`from_catalog` with `id_account_catalog`): its network has no products, or the catalogue could not be read — expired token, deleted catalogue, missing permission — or came back empty. |
5766
6097
  * | `2116` | The source has no usable items: no images, no products, or no text at all (neither `url` nor `text`, or a pasted text under 200 characters). |
6098
+ * | `994` | Invalid `options.link` with a network that uses it (`pinterest`) in the plan. `data.reason` is `invalid_url` or `too_long`. |
6099
+ * | `2118` | A Pinterest account of the plan has no valid board in `destinations`. `data.accounts[]` lists every one that fails, as `{ _id, social_network, reason }`, with `reason` `missing`, `invalid_id` or `invalid_section_id`. |
6100
+ * | `2119` | The plan would leave pins without an image: a pin is never text-only. Only checked with Pinterest in the plan and a template that GENERATES images (`from_images` and `from_catalog` bring their own photo). `data.reason` is `images_disabled` (`allow_images: false`), `max_images` (a cap below what is needed) or `credits` (not enough credits for that many images); `data` also carries `{ required, images_target, social_networks }`. The images needed are one per day and per account of a network that requires one — Instagram included, because both networks draw on the same image budget. |
6101
+ * | `2120` | An account of the plan is on a network this template cannot publish to: the networks in the template's `unsupported_networks` (`GET /planner_templates`). Today that is `youtube` on `from_images` and `from_catalog`, whose every publication is the photo of its source, while YouTube only uploads video. Checked before the store is read or a picture downloaded, and `data.accounts[]` lists every account that does not fit, as `{ _id, social_network }`. |
6102
+ * | `2200` | `source.id_integration_catalog` is not an integration of this organization. |
6103
+ * | `2207` | `source.id_integration_catalog` has no product catalogue (a Google Drive or a feed). |
6104
+ * | `2209` | `source.id_integration_catalog` is disabled. |
6105
+ * | `2208`, `2210`-`2214` | The store could not be read. They are the same errors as `GET .../integrations/{id_integration}/products`, and a `2211` (the store rejected its key) also marks the integration until it is reconnected. |
5767
6106
  * | `521` | Invalid client. The identifier is invalid or doesn't exist |
5768
6107
  */
5769
6108
  400: {
@@ -7352,6 +7691,177 @@ interface operations {
7352
7691
  400: components["responses"]["MessagesError"];
7353
7692
  };
7354
7693
  };
7694
+ getAccountDestinations: {
7695
+ parameters: {
7696
+ query?: {
7697
+ /** @description `true` skips the short cache and asks the network again. For a board that was created a moment ago — not on every call: all of PlanVortex's Pinterest traffic leaves through one application, and the cache is what keeps a picker that opens on every compose from spending it. */
7698
+ refresh?: "true" | "false";
7699
+ };
7700
+ header?: never;
7701
+ path: {
7702
+ /** @description Connected account identifier */
7703
+ id_account: string;
7704
+ /** @description Organization identifier */
7705
+ id_organization: string;
7706
+ };
7707
+ cookie?: never;
7708
+ };
7709
+ requestBody?: never;
7710
+ responses: {
7711
+ /** @description The account's destinations */
7712
+ 200: {
7713
+ headers: {
7714
+ [name: string]: unknown;
7715
+ };
7716
+ content: {
7717
+ /**
7718
+ * @example {
7719
+ * "destinations": [
7720
+ * {
7721
+ * "id": "1093847562910384756",
7722
+ * "name": "Recipes",
7723
+ * "privacy": "PUBLIC",
7724
+ * "image": "https://i.pinimg.com/…/board.jpg"
7725
+ * },
7726
+ * {
7727
+ * "id": "1093847562910384799",
7728
+ * "name": "Drafts",
7729
+ * "privacy": "SECRET"
7730
+ * }
7731
+ * ]
7732
+ * }
7733
+ */
7734
+ "application/json": {
7735
+ destinations: components["schemas"]["PublicationsDestination"][];
7736
+ };
7737
+ };
7738
+ };
7739
+ /**
7740
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
7741
+ *
7742
+ * | Code | Meaning |
7743
+ * | --- | --- |
7744
+ * | `992` | This network has no destinations: the account itself is where publications go. `data` carries `social_network` |
7745
+ * | `701` | Account not found in this organization |
7746
+ * | `700` | Account not connected, missing authorization tokens |
7747
+ * | `1101` | Invalid organization |
7748
+ */
7749
+ 400: {
7750
+ headers: {
7751
+ [name: string]: unknown;
7752
+ };
7753
+ content: {
7754
+ "application/json": components["schemas"]["Error"];
7755
+ };
7756
+ };
7757
+ /** @description Pinterest is rate limiting, and the request was correct: wait and repeat it. `code` is 991 and `data.retry_after_seconds` says how long. The ceiling is the **application's**, shared by every PlanVortex client on the network, so this is not a sign that the account is broken. */
7758
+ 429: {
7759
+ headers: {
7760
+ /** @description Seconds to wait before trying again. */
7761
+ "Retry-After"?: number;
7762
+ [name: string]: unknown;
7763
+ };
7764
+ content: {
7765
+ "application/json": components["schemas"]["Error"];
7766
+ };
7767
+ };
7768
+ /** @description Unhandled error by the server */
7769
+ 500: {
7770
+ headers: {
7771
+ [name: string]: unknown;
7772
+ };
7773
+ content?: never;
7774
+ };
7775
+ };
7776
+ };
7777
+ getAccountDestination: {
7778
+ parameters: {
7779
+ query?: {
7780
+ /** @description `true` skips the short cache and asks the network again. For a board that was created a moment ago — not on every call: all of PlanVortex's Pinterest traffic leaves through one application, and the cache is what keeps a picker that opens on every compose from spending it. */
7781
+ refresh?: "true" | "false";
7782
+ };
7783
+ header?: never;
7784
+ path: {
7785
+ /** @description Connected account identifier */
7786
+ id_account: string;
7787
+ /** @description The destination's id **on the network** — the `id` of an entry in the listing, not a PlanVortex identifier. */
7788
+ id_destination: string;
7789
+ /** @description Organization identifier */
7790
+ id_organization: string;
7791
+ };
7792
+ cookie?: never;
7793
+ };
7794
+ requestBody?: never;
7795
+ responses: {
7796
+ /** @description The destination */
7797
+ 200: {
7798
+ headers: {
7799
+ [name: string]: unknown;
7800
+ };
7801
+ content: {
7802
+ /**
7803
+ * @example {
7804
+ * "destination": {
7805
+ * "id": "1093847562910384756",
7806
+ * "name": "Recipes",
7807
+ * "privacy": "PUBLIC",
7808
+ * "sections": [
7809
+ * {
7810
+ * "id": "5039281746501928374",
7811
+ * "name": "Desserts"
7812
+ * },
7813
+ * {
7814
+ * "id": "5039281746501928375",
7815
+ * "name": "Breakfast"
7816
+ * }
7817
+ * ]
7818
+ * }
7819
+ * }
7820
+ */
7821
+ "application/json": {
7822
+ destination: components["schemas"]["PublicationsDestination"];
7823
+ };
7824
+ };
7825
+ };
7826
+ /**
7827
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
7828
+ *
7829
+ * | Code | Meaning |
7830
+ * | --- | --- |
7831
+ * | `993` | That destination is not in this account. `data` carries `social_network` and `destination_id` |
7832
+ * | `992` | This network has no destinations: the account itself is where publications go |
7833
+ * | `701` | Account not found in this organization |
7834
+ * | `700` | Account not connected, missing authorization tokens |
7835
+ * | `1101` | Invalid organization |
7836
+ */
7837
+ 400: {
7838
+ headers: {
7839
+ [name: string]: unknown;
7840
+ };
7841
+ content: {
7842
+ "application/json": components["schemas"]["Error"];
7843
+ };
7844
+ };
7845
+ /** @description Pinterest is rate limiting, and the request was correct: wait and repeat it. `code` is 991 and `data.retry_after_seconds` says how long. The ceiling is the **application's**, shared by every PlanVortex client on the network, so this is not a sign that the account is broken. */
7846
+ 429: {
7847
+ headers: {
7848
+ /** @description Seconds to wait before trying again. */
7849
+ "Retry-After"?: number;
7850
+ [name: string]: unknown;
7851
+ };
7852
+ content: {
7853
+ "application/json": components["schemas"]["Error"];
7854
+ };
7855
+ };
7856
+ /** @description Unhandled error by the server */
7857
+ 500: {
7858
+ headers: {
7859
+ [name: string]: unknown;
7860
+ };
7861
+ content?: never;
7862
+ };
7863
+ };
7864
+ };
7355
7865
  enableAccount: {
7356
7866
  parameters: {
7357
7867
  query?: never;
@@ -8781,7 +9291,7 @@ interface operations {
8781
9291
  };
8782
9292
  requestBody: {
8783
9293
  content: {
8784
- "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"];
9294
+ "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"] | components["schemas"]["IntegrationsWooCommerceConnectRequest"];
8785
9295
  };
8786
9296
  };
8787
9297
  responses: {
@@ -8807,6 +9317,12 @@ interface operations {
8807
9317
  * | `2203` | Integration token expired or revoked, reconnect required. |
8808
9318
  * | `2205` | Feed URL unreachable or not a valid feed. |
8809
9319
  * | `2206` | Feed has no target accounts configured. |
9320
+ * | `2210` | The store URL cannot be used. `data.reason`: `invalid_url`, `not_https` (the store only answers on http, and a key never travels in the clear), `non_public_address`, `redirect` (the store redirected a request carrying credentials, which is never followed) or `too_many_redirects`. |
9321
+ * | `2211` | The store rejected the API key: it does not exist, it was deleted in WordPress, the secret does not match, or it has no read permission. `data` carries what the store said. |
9322
+ * | `2212` | A firewall or a security plugin in front of the store answered instead of WooCommerce (an HTML challenge from Cloudflare, Wordfence…). **It is not the keys**: the store's hosting has to let PlanVortex's server through. |
9323
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9324
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9325
+ * | `2215` | The keys are missing or do not have WooCommerce's shape: the consumer key starts with `ck_` and the secret with `cs_`. Pasting them the other way round is the usual mistake. |
8810
9326
  */
8811
9327
  400: {
8812
9328
  headers: {
@@ -8887,7 +9403,14 @@ interface operations {
8887
9403
  };
8888
9404
  };
8889
9405
  };
8890
- /** @description Error. Classify by `code` in the body, never by the HTTP status: every domain error travels with HTTP 400. */
9406
+ /**
9407
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9408
+ *
9409
+ * | Code | Meaning |
9410
+ * | --- | --- |
9411
+ * | `2200` | Integration not found. |
9412
+ * | `2220` | This `config` key cannot be edited on this provider (on WooCommerce, none can): reconnect the integration to change it. `data.keys` lists the ones that were refused. |
9413
+ */
8891
9414
  400: {
8892
9415
  headers: {
8893
9416
  [name: string]: unknown;
@@ -8975,6 +9498,61 @@ interface operations {
8975
9498
  };
8976
9499
  };
8977
9500
  };
9501
+ getIntegrationProducts: {
9502
+ parameters: {
9503
+ query?: {
9504
+ /** @description The `next_cursor` of the previous page, as it came. Absent = the first page. */
9505
+ cursor?: string;
9506
+ /** @description Products per page. A value outside 1-100 is clamped, not refused. */
9507
+ limit?: number;
9508
+ /** @description Text to look for, with the store's own product search. A store's catalogue is not something to walk through 50 at a time. */
9509
+ search?: string;
9510
+ };
9511
+ header?: never;
9512
+ path: {
9513
+ /** @description Integration identifier */
9514
+ id_integration: components["parameters"]["IntegrationsidIntegration"];
9515
+ /** @description Organization identifier */
9516
+ id_organization: components["parameters"]["IntegrationsidOrganization"];
9517
+ };
9518
+ cookie?: never;
9519
+ };
9520
+ requestBody?: never;
9521
+ responses: {
9522
+ /** @description Successful operation */
9523
+ 200: {
9524
+ headers: {
9525
+ [name: string]: unknown;
9526
+ };
9527
+ content: {
9528
+ "application/json": components["schemas"]["IntegrationsIntegrationCatalogPage"];
9529
+ };
9530
+ };
9531
+ /**
9532
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9533
+ *
9534
+ * | Code | Meaning |
9535
+ * | --- | --- |
9536
+ * | `2200` | Integration not found (`1102` if it belongs to another organization). |
9537
+ * | `2207` | This integration has no product catalogue (a Google Drive or a feed). |
9538
+ * | `2208` | The catalogue could not be read and the store gave nothing more specific, or `cursor` is not one this API issued. `data.error` carries the cause. |
9539
+ * | `2209` | The integration is disabled. Enable it first: a disabled one does not take allowance, so it cannot be read either. |
9540
+ * | `2210` | The store URL cannot be used. `data.reason`: `invalid_url`, `not_https` (the store only answers on http, and a key never travels in the clear), `non_public_address`, `redirect` (the store redirected a request carrying credentials, which is never followed) or `too_many_redirects`. |
9541
+ * | `2211` | The store rejected the API key: it does not exist, it was deleted in WordPress, the secret does not match, or it has no read permission. `data` carries what the store said. |
9542
+ * | `2212` | A firewall or a security plugin in front of the store answered instead of WooCommerce (an HTML challenge from Cloudflare, Wordfence…). **It is not the keys**: the store's hosting has to let PlanVortex's server through. |
9543
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9544
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9545
+ */
9546
+ 400: {
9547
+ headers: {
9548
+ [name: string]: unknown;
9549
+ };
9550
+ content: {
9551
+ "application/json": components["schemas"]["Error"];
9552
+ };
9553
+ };
9554
+ };
9555
+ };
8978
9556
  reconnectIntegration: {
8979
9557
  parameters: {
8980
9558
  query?: never;
@@ -8989,7 +9567,7 @@ interface operations {
8989
9567
  };
8990
9568
  requestBody: {
8991
9569
  content: {
8992
- "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"];
9570
+ "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"] | components["schemas"]["IntegrationsWooCommerceConnectRequest"];
8993
9571
  };
8994
9572
  };
8995
9573
  responses: {
@@ -9014,6 +9592,12 @@ interface operations {
9014
9592
  * | `2203` | The provider refused the new credentials. |
9015
9593
  * | `2205` | Feed URL unreachable or not a valid feed. |
9016
9594
  * | `2206` | Feed has no target accounts configured. |
9595
+ * | `2210` | The store URL cannot be used. `data.reason`: `invalid_url`, `not_https` (the store only answers on http, and a key never travels in the clear), `non_public_address`, `redirect` (the store redirected a request carrying credentials, which is never followed) or `too_many_redirects`. |
9596
+ * | `2211` | The store rejected the API key: it does not exist, it was deleted in WordPress, the secret does not match, or it has no read permission. `data` carries what the store said. |
9597
+ * | `2212` | A firewall or a security plugin in front of the store answered instead of WooCommerce (an HTML challenge from Cloudflare, Wordfence…). **It is not the keys**: the store's hosting has to let PlanVortex's server through. |
9598
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9599
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9600
+ * | `2215` | The keys are missing or do not have WooCommerce's shape: the consumer key starts with `ck_` and the secret with `cs_`. Pasting them the other way round is the usual mistake. |
9017
9601
  */
9018
9602
  400: {
9019
9603
  headers: {
@@ -9028,8 +9612,12 @@ interface operations {
9028
9612
  getIntegrationConnectLink: {
9029
9613
  parameters: {
9030
9614
  query?: {
9615
+ /** @description `woocommerce`: reconnect THIS store with the button instead of connecting a new one. The key is renewed on the same document and no allowance is taken. Requires `integrations:update`. */
9616
+ id_integration?: string;
9031
9617
  /** @description Alternative return URL. It must be one of the redirects allowed for the installation, otherwise the request fails with `532`. */
9032
9618
  redirect_uri?: string;
9619
+ /** @description `woocommerce`: the store address. Required for that provider, ignored by the rest. */
9620
+ url?: string;
9033
9621
  };
9034
9622
  header?: never;
9035
9623
  path: {
@@ -9053,7 +9641,21 @@ interface operations {
9053
9641
  };
9054
9642
  };
9055
9643
  };
9056
- /** @description Error. Classify by `code` in the body, never by the HTTP status: every domain error travels with HTTP 400. */
9644
+ /**
9645
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9646
+ *
9647
+ * | Code | Meaning |
9648
+ * | --- | --- |
9649
+ * | `1404` | Integrations limit reached for the organization plan. On the free plan the allowance is 0, so this always fires. |
9650
+ * | `2201` | The provider does not connect with a link (`rss`), or `id_integration` is of another provider. |
9651
+ * | `2200` | `id_integration` does not exist (`1102` if it belongs to another organization). |
9652
+ * | `2210` | The store URL cannot be used. `data.reason`: `invalid_url`, `not_https` (the store only answers on http, and a key never travels in the clear), `non_public_address`, `redirect` (the store redirected a request carrying credentials, which is never followed) or `too_many_redirects`. |
9653
+ * | `2212` | A firewall or a security plugin in front of the store answered instead of WooCommerce (an HTML challenge from Cloudflare, Wordfence…). **It is not the keys**: the store's hosting has to let PlanVortex's server through. |
9654
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9655
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9656
+ * | `2216` | This store cannot use the approval button: connect it with API keys instead. `data.reason`: `plain_permalinks` (the store uses plain permalinks, and without rewrite rules WooCommerce's approval page does not exist) or `callback_not_https` (this PlanVortex deployment has no public https address for the store to send the key to). |
9657
+ * | `532` | `redirect_uri` is not one of the allowed redirects. |
9658
+ */
9057
9659
  400: {
9058
9660
  headers: {
9059
9661
  [name: string]: unknown;
@@ -11074,7 +11676,9 @@ interface operations {
11074
11676
  * "products": false,
11075
11677
  * "webhooks": true,
11076
11678
  * "persistent_menu": false,
11077
- * "comments": true
11679
+ * "comments": true,
11680
+ * "destinations": false,
11681
+ * "link": false
11078
11682
  * },
11079
11683
  * "google_business": {
11080
11684
  * "publications": false,
@@ -11082,7 +11686,19 @@ interface operations {
11082
11686
  * "products": false,
11083
11687
  * "webhooks": false,
11084
11688
  * "persistent_menu": false,
11085
- * "comments": true
11689
+ * "comments": true,
11690
+ * "destinations": false,
11691
+ * "link": false
11692
+ * },
11693
+ * "pinterest": {
11694
+ * "publications": true,
11695
+ * "messages": false,
11696
+ * "products": false,
11697
+ * "webhooks": false,
11698
+ * "persistent_menu": false,
11699
+ * "comments": false,
11700
+ * "destinations": true,
11701
+ * "link": true
11086
11702
  * }
11087
11703
  * }
11088
11704
  */
@@ -11207,7 +11823,8 @@ interface operations {
11207
11823
  * "discord",
11208
11824
  * "telegram",
11209
11825
  * "threads",
11210
- * "slack"
11826
+ * "slack",
11827
+ * "pinterest"
11211
11828
  * ]
11212
11829
  */
11213
11830
  "application/json": components["schemas"]["SocialNetwork"][];
@@ -11289,7 +11906,7 @@ interface operations {
11289
11906
  * de una organizacion. Aqui se llama `PublicationInput`. Los que describen LO MISMO en varias
11290
11907
  * secciones viven en `common.json` y conservan su nombre —`Publication`, `Account`, `Upload`,
11291
11908
  * `Message`, `Contact`, `NormalizedMetrics`—: es lo que evita dos tipos para un solo objeto.
11292
- * 2. **Abre las enumeraciones que crecen** (§ trampa 8 del roadmap). `ALLOWED_RRSS` va por trece
11909
+ * 2. **Abre las enumeraciones que crecen** (§ trampa 8 del roadmap). `ALLOWED_RRSS` va por catorce
11293
11910
  * redes y sube varias veces al ano. Si `social_network` fuera una union cerrada, el dia que
11294
11911
  * entre la siguiente **dejaria de compilar el codigo de todos los integradores** hasta que
11295
11912
  * actualizasen el paquete, y lo unico que habria pasado es que la API devuelve un valor mas.
@@ -11351,7 +11968,13 @@ interface Paginated<T> {
11351
11968
  * `GET /social_capabilities`.
11352
11969
  */
11353
11970
  type SocialNetwork = OpenEnum<Schemas["SocialNetwork"]>;
11354
- /** Una red que tiene comentarios. Tambien crece. */
11971
+ /**
11972
+ * Una red que tiene comentarios. Tambien crece.
11973
+ *
11974
+ * **No es `SocialNetwork` menos las que no publican**: son dos listas independientes. `pinterest`
11975
+ * publica y NO esta aqui —la API de Pinterest no deja leer los comentarios de un pin, aunque el
11976
+ * numero si llega en sus metricas—, igual que `google_business` esta aqui y no publica.
11977
+ */
11355
11978
  type CommentNetwork = OpenEnum<Schemas["CommentsCommentNetworkName"]>;
11356
11979
  /**
11357
11980
  * El estado de una publicacion.
@@ -11441,6 +12064,10 @@ type PlannerTemplateName = OpenEnum<NonNullable<Schemas["CatalogPlannerTemplate"
11441
12064
  * Y `regenerate` es por plantilla: la que no genero la imagen tampoco puede regenerarla. Ofrecer
11442
12065
  * ese boton igualmente es cobrarle al usuario 70 creditos por sustituir su propia foto por una
11443
12066
  * inventada.
12067
+ *
12068
+ * `unsupported_networks` son las redes cuyas cuentas no caben en un plan de esa plantilla (2120):
12069
+ * filtra con eso las cuentas que ofreces, en vez de dejar elegir una de YouTube para una semana de
12070
+ * fotos de producto.
11444
12071
  */
11445
12072
  type PlannerTemplate = Schemas["CatalogPlannerTemplate"];
11446
12073
  /**
@@ -11536,6 +12163,25 @@ type AccountMetrics = Schemas["AccountsMetricModel"];
11536
12163
  type AccountMetricRow = AccountMetrics["stats"][number];
11537
12164
  /** El menu fijo del chat, en el formato de Meta. Solo lo tienen las redes con mensajeria. */
11538
12165
  type PersistentMenu = Schemas["AccountsPersistentMenu"];
12166
+ /**
12167
+ * Un sitio DENTRO de la cuenta al que se puede mandar una publicacion: en Pinterest, un tablero.
12168
+ *
12169
+ * Lo que devuelven `accounts.destinations()` y `accounts.destination()`, que es lo que se ENSENA en
12170
+ * un selector. Lo que se MANDA al crear la publicacion es {@link PublicationDestination}, con
12171
+ * `id` como identificador —siempre una cadena— y `name` solo como etiqueta.
12172
+ *
12173
+ * `privacy` merece ensenarse: un pin en un tablero `SECRET` no lo ve nadie mas, y luego no hay nada
12174
+ * en las estadisticas que explique por que no tiene impresiones. Y `sections` solo viene en el
12175
+ * detalle de uno, nunca en la lista.
12176
+ */
12177
+ type Destination = Schemas["PublicationsDestination"];
12178
+ /**
12179
+ * El `destination` de una publicacion: en que tablero sale. Ver {@link PublicationInput}.
12180
+ *
12181
+ * Solo decide `id` (y `section_id`, si va a una seccion del tablero). `name` y `section_name` son
12182
+ * etiquetas para pintar "Recetas > Postres": el servidor no las comprueba.
12183
+ */
12184
+ type PublicationDestination = Schemas["PublicationDestination"];
11539
12185
  /**
11540
12186
  * El token temporal con el que UNA PERSONA conecta una cuenta social, y la URL a la que mandarla.
11541
12187
  *
@@ -11564,7 +12210,7 @@ type ConnectToken = Operations["createTemporalConnectToken"]["responses"][200]["
11564
12210
  */
11565
12211
  type ConnectLink = Schemas["AccountsSocialLinksList"]["links"][number];
11566
12212
  /**
11567
- * Con que se autoriza una red: `redirect` (once de las trece), `meta_embedded_signup` (WhatsApp) o
12213
+ * Con que se autoriza una red: `redirect` (doce de las catorce), `meta_embedded_signup` (WhatsApp) o
11568
12214
  * `telegram_bot` (Telegram). Se saca de {@link ConnectLink} y esta aqui para poder nombrarlo en un
11569
12215
  * `switch`.
11570
12216
  *
@@ -11629,6 +12275,9 @@ type FileProperties = Schemas["FileProperties"];
11629
12275
  * Si `state` es `withErrors`, el motivo esta en `publication_errors` —que es un ARRAY— y su `code`
11630
12276
  * es un codigo del catalogo de PlanVortex, nunca un status HTTP.
11631
12277
  *
12278
+ * En Pinterest `destination` dice en que tablero salio el pin, y `link` a donde lleva: no se
12279
+ * confunda con `url`, que es el enlace a la publicacion EN la red y solo existe ya publicada.
12280
+ *
11632
12281
  * Y OJO EN TELEGRAM: un album es UNA publicacion que son VARIOS mensajes. `external_identifier` es
11633
12282
  * el primero y el resto viajan en `extra_data.telegram_message_ids`, que es el unico sitio donde
11634
12283
  * hoy escribe nadie ese campo. En un canal privado ademas no hay `url`, porque no hay `@nombre` que
@@ -11655,6 +12304,25 @@ type PublicationErrorDetail = Publication["publication_errors"][number];
11655
12304
  *
11656
12305
  * `publish_date` admite un `Date` ademas de la cadena ISO: la libreria lo convierte. Sin eso, el
11657
12306
  * primer olvido es siempre el `.toISOString()`.
12307
+ *
12308
+ * **Dos campos que solo aplican a unas redes**, y ninguna de las dos listas se copia: se pregunta
12309
+ * `destinations` y `link` en `catalog.socialCapabilities()`. Hoy las dos son solo `pinterest`.
12310
+ *
12311
+ * - **`destination`: en Pinterest es OBLIGATORIO.** Elegir la cuenta no elige donde sale el pin:
12312
+ * sale en un TABLERO, y se lee con `accounts.destinations()`. Sin el, la publicacion se crea
12313
+ * igual pero en `withErrors` con el 987 y nadie la intenta. `destination.id` es SIEMPRE una
12314
+ * cadena —los ids de Pinterest son enteros largos y un `number` ya ha perdido digitos antes de
12315
+ * salir—, y mandar el NOMBRE del tablero en vez de su id falla igual.
12316
+ * - **`link`: el enlace de destino va aqui, no dentro de `text`.** Es a donde lleva el pin a quien
12317
+ * lo pulsa; metido en el texto se ve y no se puede pulsar. Un enlace que no es `http(s)` es un
12318
+ * 994 al crear.
12319
+ *
12320
+ * En las demas redes los dos se BORRAN al guardar, no se rechazan.
12321
+ *
12322
+ * Y lo demas de Pinterest que el tipo no dice: **no hay publicaciones de solo texto** (922), un
12323
+ * carrusel es de 2 a 5 imagenes sin mezclar con video (990), y `title` y `text` son dos campos con
12324
+ * dos limites —100 y 800— que ademas no se cuentan en la misma unidad (995): el titulo en puntos de
12325
+ * codigo, la descripcion en unidades UTF-16. Los dos numeros vienen de `catalog.socialLimits()`.
11658
12326
  */
11659
12327
  type PublicationInput = Override<Schemas["PublicationsPublicationInput"], {
11660
12328
  social_network: SocialNetwork;
@@ -11850,26 +12518,78 @@ type ProductCatalog = Schemas["ProductsProductCatalog"];
11850
12518
  type ProductCatalogInput = Schemas["ProductsProductCatalogInput"];
11851
12519
  /**
11852
12520
  * Una conexion de una ORGANIZACION con una herramienta de la que se trae material: Google Drive,
11853
- * un feed RSS.
12521
+ * un feed RSS, una tienda WooCommerce.
11854
12522
  *
11855
12523
  * No confundir con una **app** ({@link ClientApp}), que es el acceso al API de PlanVortex. Son dos
11856
12524
  * cosas distintas que media web ha llamado igual.
11857
12525
  *
11858
12526
  * Las credenciales no salen nunca: para saber si la conexion esta viva esta `connected`, y el
11859
- * motivo cuando no lo esta, en `error_code`.
12527
+ * motivo cuando no lo esta, en `error_code`. **El 2219 no es un fallo**: una tienda conectada con el
12528
+ * boton se esta comprobando, unos segundos; si se queda ahi, hay que reconectarla.
11860
12529
  */
11861
12530
  type Integration = Schemas["IntegrationsIntegration"];
11862
- /** Que sabe hacer un proveedor y que campos lleva su formulario. Es lo que decide como conectar. */
12531
+ /**
12532
+ * Que sabe hacer un proveedor y que campos lleva su formulario. Es lo que decide como conectar, y
12533
+ * se ramifica por sus puertas, nunca por el nombre del proveedor:
12534
+ *
12535
+ * - `requires_oauth`: hay un token detras (Google Drive). **Tener enlace no es ser OAuth.**
12536
+ * - `connect_link`: se conecta mandando al usuario a {@link IntegrationsResource.connectLink}.
12537
+ * Drive (su OAuth) y WooCommerce (el boton de aprobar de la tienda), que ademas pide antes lo que
12538
+ * diga `connect_link_fields` (la `url` de la tienda).
12539
+ * - `catalog`: tiene catalogo de productos ({@link IntegrationsResource.products}) y sirve de fuente
12540
+ * a la plantilla `from_catalog`.
12541
+ */
11863
12542
  type IntegrationProvider = Schemas["IntegrationsIntegrationProvider"];
12543
+ /**
12544
+ * Un campo del formulario de un proveedor. **`secret` es una credencial** (la consumer secret de
12545
+ * WooCommerce): se oculta, no se rellena nunca al editar y va con `autocomplete="new-password"`, o
12546
+ * el gestor de contrasenas del navegador la rellena con la contrasena de PlanVortex del usuario y la
12547
+ * tienda contesta 2211.
12548
+ */
12549
+ type IntegrationFormField = Schemas["IntegrationsIntegrationFormField"];
11864
12550
  /** Un proveedor soportado. Abierto porque la lista crece. */
11865
12551
  type IntegrationProviderName = OpenEnum<Schemas["IntegrationsIntegrationProviderName"]>;
11866
- /** La configuracion de un feed RSS. En Google Drive el `config` es un objeto vacio. */
12552
+ /** La configuracion de un feed RSS: lo que se puede mandar en el `config` de un `update`. */
11867
12553
  type RssConfig = Schemas["IntegrationsRssConfig"];
11868
12554
  /**
11869
- * Lo que se manda para conectar o reconectar. Son dos formas y las distingue `provider`: con OAuth
11870
- * viaja el `code`, y sin el, el formulario de `config_fields`.
12555
+ * Lo que guarda el `config` de una integracion, segun el proveedor. Google Drive: nada. RSS: el feed.
12556
+ * WooCommerce: como llegar a la tienda, que lo detecta el servidor al conectar. Nunca un secreto.
12557
+ *
12558
+ * Dos claves de la tienda que hay que ENSENAR, no solo guardar:
12559
+ *
12560
+ * - **`key_ending`**: desconectar no revoca la clave (WooCommerce no deja que una app borre la
12561
+ * suya), y es lo que dice cual borrar en WooCommerce → Ajustes → Avanzado → API REST.
12562
+ * - **`tax_location_missing`**: la API de esa tienda da los precios SIN impuesto con la etiqueta de
12563
+ * "IVA incluido", asi que sus productos con impuesto vienen sin `price`. Se arregla en su
12564
+ * WordPress (ubicacion del cliente por defecto → pais de la tienda) y reconectando.
12565
+ */
12566
+ type IntegrationConfig = Schemas["IntegrationsIntegrationConfig"];
12567
+ /**
12568
+ * Conectar una tienda con claves creadas a mano (con permiso de **lectura**). El boton
12569
+ * ({@link IntegrationsResource.connectLink}) hace lo mismo sin copiar ninguna clave, y es mejor
12570
+ * siempre que la tienda lo permita: con enlaces permanentes "simples" no puede (2216).
12571
+ */
12572
+ type WooCommerceConnectRequest = Schemas["IntegrationsWooCommerceConnectRequest"];
12573
+ /**
12574
+ * Lo que se manda para conectar o reconectar. Tres formas y las distingue `provider`: con OAuth
12575
+ * viaja el `code`; sin el, el formulario de `config_fields` PLANO (el feed, o la tienda con sus
12576
+ * claves).
11871
12577
  */
11872
- type IntegrationConnectRequest = Schemas["IntegrationsGoogleDriveConnectRequest"] | Schemas["IntegrationsRssConnectRequest"];
12578
+ type IntegrationConnectRequest = Schemas["IntegrationsGoogleDriveConnectRequest"] | Schemas["IntegrationsRssConnectRequest"] | WooCommerceConnectRequest;
12579
+ /**
12580
+ * Un producto de una tienda conectada, ya normalizado: la misma forma sea cual sea la tienda.
12581
+ *
12582
+ * `external_id` es SIEMPRE una cadena, y es lo que va en `source.products` de un plan
12583
+ * `from_catalog`. `price` es TEXTO para copiar literal, como lo ensena la tienda (impuesto, simbolo,
12584
+ * rango): nunca un numero sobre el que hacer cuentas, y ausente es "sin precio". **`available: false`
12585
+ * es lo agotado**: se ensena marcado pero no se deja elegir, y un plan con uno se rechaza (2112).
12586
+ */
12587
+ type IntegrationCatalogProduct = Schemas["IntegrationsIntegrationCatalogProduct"];
12588
+ /**
12589
+ * Una pagina del catalogo de una tienda. Sin `next_cursor`, es la ultima. El cursor es OPACO: se
12590
+ * devuelve tal cual llego y no se construye ni se interpreta nunca.
12591
+ */
12592
+ type IntegrationCatalogPage = Schemas["IntegrationsIntegrationCatalogPage"];
11873
12593
  /** Lo que se puede cambiar de una integracion ya conectada. */
11874
12594
  type IntegrationUpdate = Operations["updateIntegration"]["requestBody"]["content"]["application/json"];
11875
12595
  /**
@@ -11905,8 +12625,34 @@ type AiPlanOptionsInput = Schemas["AiPlansAiPlanOptionsInput"];
11905
12625
  * `template` y `source` son OPCIONALES: sin ellos el plan es `standard`, que es exactamente lo que
11906
12626
  * hacia cualquier plan antes de que existieran las plantillas. Mandar una opcion que la plantilla
11907
12627
  * elegida no admite —un `shared` en `from_images`— es un 2106, no un silencio.
12628
+ *
12629
+ * **Con una cuenta de Pinterest en el plan hay dos comprobaciones mas, las dos al crear:**
12630
+ *
12631
+ * - **`destinations` es obligatorio para cada cuenta de Pinterest**: el tablero donde salen TODOS
12632
+ * sus pins del plan, uno por cuenta ({@link AiPlanDestination}). Sin el —o con un id que no es
12633
+ * una cadena de digitos— el plan se rechaza con el **2118**, que trae en `data.accounts` TODAS
12634
+ * las cuentas que fallan. Sin esa comprobacion el plan se crearia, se cobraria y dejaria una
12635
+ * semana de borradores con el 987.
12636
+ * - **Un plan que dejaria pins sin imagen se rechaza con el 2119**: un pin nunca es solo texto.
12637
+ * Solo con una plantilla que GENERA imagenes, y `data.reason` dice por que: `images_disabled`,
12638
+ * `max_images` o `credits`. Las imagenes necesarias son una por dia y cuenta de una red que la
12639
+ * exige, Instagram incluida, porque las dos redes tiran del mismo presupuesto.
12640
+ *
12641
+ * Y `options.link` es el enlace de destino de todos los pins del plan: se valida al crear (994) y
12642
+ * se tira si el plan no tiene ninguna red con `link`.
12643
+ *
12644
+ * **No toda red cabe en toda plantilla.** Las de `unsupported_networks` de la plantilla
12645
+ * ({@link PlannerTemplate}) se quedan fuera de `accounts`, o el plan se rechaza con el **2120**
12646
+ * antes de leer nada ni cobrar nada: hoy es YouTube en `from_images` y `from_catalog`, donde toda
12647
+ * publicacion es la foto de su fuente y YouTube solo sube video.
11908
12648
  */
11909
12649
  type AiPlanCreateRequest = Schemas["AiPlansAiPlanCreateRequest"];
12650
+ /**
12651
+ * El tablero de UNA cuenta de Pinterest del plan: donde salen todos sus pins. Va por cuenta y no
12652
+ * por plan porque cada perfil tiene sus tableros, y en un plan `shared` el mismo contenido sale en
12653
+ * el tablero de cada perfil sin tocar nada mas. No hay tablero por defecto guardado en la cuenta.
12654
+ */
12655
+ type AiPlanDestination = Schemas["AiPlansAiPlanDestination"];
11910
12656
  /**
11911
12657
  * La fuente del plan, tal y como se MANDA. **Una forma por plantilla**: manda solo los campos de la
11912
12658
  * que elegiste —lo que no lee se ignora, y lo que necesita y no recibe es un 2112—.
@@ -11916,14 +12662,15 @@ type AiPlanCreateRequest = Schemas["AiPlansAiPlanCreateRequest"];
11916
12662
  * | `standard` | ninguno: no tiene fuente |
11917
12663
  * | `from_images` | `images` |
11918
12664
  * | `from_text` | `url` **o** `text` |
11919
- * | `from_catalog` | `id_account_catalog`, `product_catalog_id`, `products` |
12665
+ * | `from_catalog` | `id_account_catalog` + `product_catalog_id` (un catalogo de Meta) **o** `id_integration_catalog` (una tienda conectada), y `products` |
11920
12666
  * | `campaign` | `event_name`, `event_date` |
11921
12667
  *
11922
- * Se valida al CREAR el plan, no al generarlo: el articulo se descarga, el catalogo se lee en vivo
11923
- * y las fotos de los productos se copian, asi que una fuente que no funciona falla mientras el
11924
- * usuario sigue delante. Dos trampas que el tipo no puede decir: `text` GANA sobre `url` cuando
11925
- * llegan los dos —pegar el texto es lo que hace quien no consiguio que se descargara—, y
11926
- * `event_date` es un DIA DE CALENDARIO (`YYYY-MM-DD`), nunca un instante ISO.
12668
+ * Se valida al CREAR el plan, no al generarlo: el articulo se descarga, el catalogo o la tienda se
12669
+ * leen en vivo y las fotos de los productos se copian, asi que una fuente que no funciona falla
12670
+ * mientras el usuario sigue delante. Tres trampas que el tipo no puede decir: `text` GANA sobre
12671
+ * `url` cuando llegan los dos —pegar el texto es lo que hace quien no consiguio que se descargara—,
12672
+ * `event_date` es un DIA DE CALENDARIO (`YYYY-MM-DD`), nunca un instante ISO, y las dos fuentes de
12673
+ * `from_catalog` son EXCLUYENTES: mandar las dos es un 2112, no una mezcla.
11927
12674
  */
11928
12675
  type AiPlanSourceInput = Schemas["AiPlansAiPlanSourceInput"];
11929
12676
  /** Una foto de `from_images`. La descripcion es obligatoria a proposito: sin ella el modelo escribe sobre lo que cree ver. */
@@ -11936,21 +12683,27 @@ type AiPlanSource = Schemas["AiPlansAiPlanSource"];
11936
12683
  /**
11937
12684
  * Un producto del catalogo, copiado al crear el plan.
11938
12685
  *
11939
- * `price` viene **exactamente como lo devolvio la red** (`"9,99 €"`) y no se convierte nunca: el
11940
- * mismo campo es un numero en otros caminos de la API de Meta y no hay forma de saber si son
11941
- * unidades o centimos. Dividir por 100 "por si acaso" es como se anuncia un producto de 10 € a
11942
- * 0,10 €. Y `id_upload` es la foto ya copiada a un fichero de la organizacion, porque la URL del
11943
- * CDN de la red caduca.
12686
+ * `price` viene **exactamente como lo dio la fuente** (`"9,99 €"` de Meta, `"14,52 € IVA incluido"`
12687
+ * de una tienda) y no se convierte nunca: el mismo campo es un numero en otros caminos de la API de
12688
+ * Meta y no hay forma de saber si son unidades o centimos. Dividir por 100 "por si acaso" es como se
12689
+ * anuncia un producto de 10 € a 0,10 €. `permalink` es la ficha publica del producto: el texto la
12690
+ * pone donde un enlace se puede pulsar, y un pin lleva ahi si el plan no trae su `options.link`. Y
12691
+ * `id_upload` es la foto ya copiada a un fichero de la organizacion, porque la URL del catalogo caduca.
11944
12692
  */
11945
12693
  type AiPlanSourceProduct = Schemas["AiPlansAiPlanSourceProduct"];
11946
12694
  /**
11947
12695
  * Algo que el plan tiene que decir de si mismo, con la forma de un error de la API. Lo comparten
11948
12696
  * `error` (solo en estado `failed`) y `warnings` (en un plan que se genero bien).
11949
12697
  *
11950
- * Hoy hay un aviso: **2117 — parte de la fuente no cabia en la semana del plan**. Un plan es
11951
- * SEMANAL y la fuente no lo alarga, asi que 12 fotos con 6 huecos libres publican 6 y las demas se
11952
- * quedan fuera; `data` trae `{source_items, capacity}`. Se dice mejor ANTES de crear el plan —los
11953
- * huecos son los dias de publicacion por las cuentas— que despues de haberlo cobrado.
12698
+ * Hoy hay dos avisos:
12699
+ *
12700
+ * - **2117 — parte de la fuente no cabia en la semana del plan**. Un plan es SEMANAL y la fuente
12701
+ * no lo alarga, asi que 12 fotos con 6 huecos libres publican 6 y las demas se quedan fuera;
12702
+ * `data` trae `{source_items, capacity}`. Se dice mejor ANTES de crear el plan —los huecos son
12703
+ * los dias de publicacion por las cuentas— que despues de haberlo cobrado.
12704
+ * - **922 — una publicacion de una red que no publica sin imagen se quedo sin ella**: un pin cuya
12705
+ * imagen fallo a mitad de la generacion. El 2119 impide la configuracion que lo provoca, pero no
12706
+ * un fallo del proveedor. `data.id_publication` dice cual: no saldra hasta que tenga imagen.
11954
12707
  */
11955
12708
  type AiPlanNotice = Schemas["AiPlansAiPlanNotice"];
11956
12709
  /**
@@ -12198,21 +12951,24 @@ declare class PlanVortexError extends Error {
12198
12951
  readonly retryAfter: number | undefined;
12199
12952
  constructor(code: number, message: string, options?: PlanVortexErrorOptions);
12200
12953
  }
12201
- /** 500-546 — tokens, apps de cliente, permisos. Incluye el 501 y el 522, los de token caducado. */
12954
+ /** 500-548 — tokens, apps de cliente, permisos. Incluye el 501 y el 522, los de token caducado. */
12202
12955
  declare class AuthError extends PlanVortexError {
12203
12956
  }
12204
12957
  /** 601-612 — el usuario final. */
12205
12958
  declare class UserError extends PlanVortexError {
12206
12959
  }
12207
- /** 700-715 — cuentas sociales: desconectada, sin permisos en la red, sin refrescar. */
12960
+ /** 700-716 — cuentas sociales: desconectada, sin permisos en la red, sin refrescar. */
12208
12961
  declare class AccountError extends PlanVortexError {
12209
12962
  }
12210
12963
  /** 800-810 — ficheros: formato no admitido, demasiado grande, conversión fallida. */
12211
12964
  declare class FileError extends PlanVortexError {
12212
12965
  }
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. */
12966
+ /** 900-996 — publicaciones, incluidos los límites por red (caracteres, imágenes, duración), los
12967
+ * dos frenos de ritmo —978 (demasiado rápido en esta cuenta) y 979 (tope diario de esa red)—, los
12968
+ * de Slack (980-986), que empiezan por el más común: 980, la app no está en el canal, y los de
12969
+ * Pinterest (987-996), que empiezan igual: 987, la publicación no dice en qué tablero va. Y uno
12970
+ * de ellos no es un fallo: el 991 es Pinterest frenando a la aplicación, sale 429 con
12971
+ * `Retry-After` y la respuesta es esperar. */
12216
12972
  declare class PublicationError extends PlanVortexError {
12217
12973
  }
12218
12974
  /** 1100-1111 — organizaciones, y el token temporal atado a una sola de ellas (1101). */
@@ -12542,4 +13298,4 @@ interface PlanVortexWebhooksOptions {
12542
13298
  */
12543
13299
  declare function planvortexWebhooks(options: PlanVortexWebhooksOptions): (request: WebhookRequestLike, response: WebhookResponseLike, next: (error?: unknown) => void) => void;
12544
13300
 
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 };
13301
+ export { type AiSettings as $, type Account as A, type CommentReplyResult as B, type ConnectLink as C, type Destination as D, type EnableResult as E, type ContactExtraData as F, type Contact as G, type ContactCreate as H, type ContactUpdate as I, type IntegrationProviderName as J, type IntegrationProvider as K, type Integration as L, type MetricName as M, type IntegrationConnectRequest as N, type IntegrationUpdate as O, type Paginated as P, type IntegrationPickerConfig as Q, type IntegrationCatalogPage as R, type SocialNetwork as S, type TopPublicationsResult as T, type MessageTemplate as U, type Conversation as V, type ConversationTotals as W, type Message as X, type MessageInput as Y, type Client as Z, type Organization as _, type ConnectResult as a, type paths as a$, type ClientWithOrganizations as a0, type PlanData as a1, type PlanUseData as a2, type ConnectToken as a3, type AiContext as a4, type SocialCredentialsInput as a5, type Product as a6, type ProductInput as a7, type ProductCatalog as a8, type ProductCatalogInput as a9, AuthError as aA, type ClientPlan as aB, type CommentAuthor as aC, type CommentChange as aD, type ContactChannel as aE, ContactError as aF, type DashboardAiPlanRef as aG, type DashboardPublicationRef as aH, type DashboardRange as aI, type EngagementBase as aJ, FileError as aK, type FileFormat as aL, type FileProperties as aM, type FileType as aN, type IntegrationCatalogProduct as aO, type IntegrationConfig as aP, IntegrationError as aQ, type IntegrationErrorChange as aR, type IntegrationFormField as aS, type MessageChange as aT, type MessageOptions as aU, type MessageType as aV, MessagingError as aW, type MetricRow as aX, NO_ERROR_CODE as aY, type components as aZ, type operations as a_, type PublicationInput as aa, type PublicationState as ab, type PublicationStats as ac, type PublicationStatsHistory as ad, type Upload as ae, AccountError as af, type AccountMetricRow as ag, type AccountStateChange as ah, type AccountWebhookChangeBase as ai, type AccountWithError as aj, type AiPlanCostEstimate as ak, type AiPlanDestination as al, AiPlanError as am, type AiPlanNotice as an, type AiPlanOptions as ao, type AiPlanOptionsInput as ap, type AiPlanResult as aq, type AiPlanResultsGroup as ar, type AiPlanResultsTemplateGroup as as, type AiPlanSource as at, type AiPlanSourceImageInput as au, type AiPlanSourceInput as av, type AiPlanSourceProduct as aw, type AiPlanState as ax, type ApiErrorBody as ay, type AspectRatios as az, type AccountMetrics as b, isIntegrationErrorChange as b$, type webhooks as b0, type OpenEnum as b1, OrganizationError as b2, PLANVORTEX_ERROR_RANGES as b3, PlanLimitError as b4, PlanVortexAuthenticationError as b5, PlanVortexConfigError as b6, PlanVortexConnectionError as b7, PlanVortexError as b8, type PlanVortexErrorOptions as b9, type WooCommerceConnectRequest as bA, account as bB, accountId as bC, errorFamilyForCode as bD, isPlanVortexError as bE, isTokenError as bF, messageContact as bG, messageContactId as bH, messageDirection as bI, messageFileIds as bJ, messageFiles as bK, publication as bL, publicationId as bM, type HandleWebhookRequestOptions as bN, type PlanVortexWebhooksOptions as bO, type RawWebhookBody as bP, type VerifyWebhookSignatureOptions as bQ, WEBHOOK_EVENTS as bR, WEBHOOK_SIGNATURE_HEADERS as bS, WebhookBodyError as bT, type WebhookHeaders as bU, type WebhookRequestLike as bV, type WebhookResponseLike as bW, WebhookSignatureError as bX, handleWebhookRequest as bY, isAccountStateChange as bZ, isCommentChange as b_, type PlanVortexErrorRange as ba, type PlannerTemplateField as bb, type PlannerTemplateFieldType as bc, ProductError as bd, type PublicationDestination as be, PublicationError as bf, type PublicationErrorDetail as bg, type PublicationMetrics as bh, type PublicationStatsPoint as bi, type PublicationType as bj, type PublicationsSummary as bk, type RssConfig as bl, type SocialAuthorizationMethod as bm, type SocialCredentials as bn, type SocialIdentifier as bo, type SocialIdentifierInput as bp, type SocialLimitsMap as bq, TOKEN_ERROR_CODES as br, type TopPublication as bs, type UnknownWebhookChange as bt, UserError as bu, type WebhookAlgorithm as bv, type WebhookChange as bw, type WebhookEvent as bx, type WithAccount as by, type WithPublication as bz, type PersistentMenu as c, isMessageChange as c0, parseWebhookPayload as c1, planvortexWebhooks as c2, verifyWebhookSignature as c3, type Dashboard as d, type DashboardMetricsResult as e, type PublicationsSummaryResult as f, type PublicationsStatsResult as g, type PlanUse as h, type Publication as i, type AiPlanResultsSort as j, type PlannerTemplateName as k, type AiPlanCreateRequest as l, type AiPlanCreateResult as m, type AiPlan as n, type AiPlanResults as o, type ClientApp as p, type ClientAppInput as q, type SocialCapabilities as r, type CommentActions as s, type SocialLimits as t, type PublicationLimits as u, type AspectRatiosByNetwork as v, type PlannerTemplate as w, type CommentNetwork as x, type Comment as y, type CommentThread as z };