planvortex 0.12.0 → 0.14.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.
@@ -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
  */
@@ -1085,6 +1085,7 @@ interface paths {
1085
1085
  *
1086
1086
  * • `simple_message` needs `text`, and it is validated against `characters` in `GET /social_limits`.
1087
1087
  * • **WhatsApp only allows a free-form message inside 24 hours** of the contact's last message. Outside that window the only thing that goes through is a `template_message` with a pre-approved template, and anything else answers an error.
1088
+ * • A `template_message` needs `message_options.template_name` and `template_language`, and, if the template's body has variables, `template_parameters` with their values in order (`{{1}}`, `{{2}}`...). That is what turns an approved template into an appointment reminder with the customer's name and time.
1088
1089
  * • `file_message` needs at least one entry in `message_options.files` (an upload of this organization) or in `files_urls`.
1089
1090
  * • Facebook and Instagram accept **one** file per message.
1090
1091
  * • `quick_reply_message`, `button_message`, `elements_message` and `interactive_message` are Meta-only shapes and each one requires its own block inside `message_options`.
@@ -1462,6 +1463,8 @@ interface paths {
1462
1463
  *
1463
1464
  * • **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.
1464
1465
  * • **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.
1466
+ *
1467
+ * **With a temporal token issued with `account_selection=integrator`** the list has a single entry: the session's network, with the session's `state` inside its link. Any other link would go back through the hosted flow, which that token cannot use (error 554). Once the person has come back from the network the session is no longer waiting for a link, and this answers 551.
1465
1468
  */
1466
1469
  get: operations["getConnectLinks"];
1467
1470
  put?: never;
@@ -1472,6 +1475,56 @@ interface paths {
1472
1475
  patch?: never;
1473
1476
  trace?: never;
1474
1477
  };
1478
+ "/organizations/{id_organization}/connect_sessions/{id_session}": {
1479
+ parameters: {
1480
+ query?: never;
1481
+ header?: never;
1482
+ path?: never;
1483
+ cookie?: never;
1484
+ };
1485
+ /**
1486
+ * Read a connect session
1487
+ * @description What your user authorized, so your app can show its own account picker. It only exists for temporal tokens issued with `account_selection=integrator`.
1488
+ *
1489
+ * **What arrives at your `redirect_uri`**: `connect_session` and `social_network`, never account ids. When the connection did not finish there is also `error`: the network's own value (`access_denied` when the person cancelled), `no_accounts` when the network returned none (on `instagram`, an account that is not a business account linked to a page), or `connect_failed` together with our `error_code`. In those three cases the session is still `pending` and the person can try again with the same link.
1490
+ *
1491
+ * **Only the app that issued the token** can read it, with its own credentials. Any other app gets 551, the same answer as an unknown or expired session: the id travels in a URL and should not confirm to anybody that it exists.
1492
+ *
1493
+ * `already_enabled` marks an account that was already connected (a reconnection), which takes no slot. `accounts_used` and `accounts_limit` are the plan counter. A `returned` session lives **thirty minutes**.
1494
+ */
1495
+ get: operations["getConnectSession"];
1496
+ put?: never;
1497
+ post?: never;
1498
+ delete?: never;
1499
+ options?: never;
1500
+ head?: never;
1501
+ patch?: never;
1502
+ trace?: never;
1503
+ };
1504
+ "/organizations/{id_organization}/connect_sessions/{id_session}/confirm": {
1505
+ parameters: {
1506
+ query?: never;
1507
+ header?: never;
1508
+ path?: never;
1509
+ cookie?: never;
1510
+ };
1511
+ get?: never;
1512
+ put?: never;
1513
+ /**
1514
+ * Confirm the accounts of a connect session
1515
+ * @description Enables the accounts your user picked and closes the session. Send an empty list if they picked none: the session closes and nothing is enabled.
1516
+ *
1517
+ * **All or nothing.** If the new accounts do not fit in the plan, the answer is 706 with `{limit, used, requested}` and **none** of them is enabled, so you can show that number as it is. Accounts with `already_enabled: true` do not count.
1518
+ *
1519
+ * Each enabled account fires the `new_account` webhook to your app, as on any other connection.
1520
+ */
1521
+ post: operations["confirmConnectSession"];
1522
+ delete?: never;
1523
+ options?: never;
1524
+ head?: never;
1525
+ patch?: never;
1526
+ trace?: never;
1527
+ };
1475
1528
  "/organizations/{id_organization}/contacts": {
1476
1529
  parameters: {
1477
1530
  query?: never;
@@ -1595,6 +1648,7 @@ interface paths {
1595
1648
  *
1596
1649
  * - `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.
1597
1650
  * - `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.
1651
+ * - `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.
1598
1652
  *
1599
1653
  * Requires the `integrations:create` permission.
1600
1654
  */
@@ -1621,6 +1675,8 @@ interface paths {
1621
1675
  * Update an integration
1622
1676
  * @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.
1623
1677
  *
1678
+ * **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.
1679
+ *
1624
1680
  * A disabled integration stops consuming plan allowance. Enabling one or changing its config clears `error_code`, so the job retries it.
1625
1681
  *
1626
1682
  * Requires the `integrations:update` permission.
@@ -1629,7 +1685,9 @@ interface paths {
1629
1685
  post?: never;
1630
1686
  /**
1631
1687
  * Disconnect an integration
1632
- * @description Revokes the credentials at the provider and deletes the connection.
1688
+ * @description Revokes the credentials at the provider, when the provider allows it, and deletes the connection.
1689
+ *
1690
+ * **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.
1633
1691
  *
1634
1692
  * Files already imported are **not** touched: they are your files, in your library, counting against your storage. Disconnecting Drive never empties anyone's library.
1635
1693
  *
@@ -1665,6 +1723,34 @@ interface paths {
1665
1723
  patch?: never;
1666
1724
  trace?: never;
1667
1725
  };
1726
+ "/organizations/{id_organization}/integrations/{id_integration}/products": {
1727
+ parameters: {
1728
+ query?: never;
1729
+ header?: never;
1730
+ path?: never;
1731
+ cookie?: never;
1732
+ };
1733
+ /**
1734
+ * Products of a connected store
1735
+ * @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.
1736
+ *
1737
+ * - **Paginated by an opaque `cursor`**, not by page number: send back `next_cursor` as it came, and stop when it is absent.
1738
+ * - **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.
1739
+ * - `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.
1740
+ *
1741
+ * 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.
1742
+ *
1743
+ * Requires the `integrations:read` permission.
1744
+ */
1745
+ get: operations["getIntegrationProducts"];
1746
+ put?: never;
1747
+ post?: never;
1748
+ delete?: never;
1749
+ options?: never;
1750
+ head?: never;
1751
+ patch?: never;
1752
+ trace?: never;
1753
+ };
1668
1754
  "/organizations/{id_organization}/integrations/{id_integration}/reconnect": {
1669
1755
  parameters: {
1670
1756
  query?: never;
@@ -1678,11 +1764,11 @@ interface paths {
1678
1764
  * Reconnect an integration
1679
1765
  * @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**.
1680
1766
  *
1681
- * 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`.
1767
+ * 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`.
1682
1768
  *
1683
1769
  * 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.
1684
1770
  *
1685
- * 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.
1771
+ * 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.
1686
1772
  *
1687
1773
  * No allowance check: nothing new is created, so it works even with the plan full.
1688
1774
  *
@@ -1703,10 +1789,15 @@ interface paths {
1703
1789
  cookie?: never;
1704
1790
  };
1705
1791
  /**
1706
- * Authorization URL of an OAuth provider
1707
- * @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`.
1792
+ * Connection link of a provider (OAuth or a store's approval page)
1793
+ * @description The link to send the user to, for providers whose `connect_link` is true; anything else returns `2201`.
1794
+ *
1795
+ * - `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`.
1796
+ * - `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=…`.
1797
+ *
1798
+ * **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.
1708
1799
  *
1709
- * 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`).
1800
+ * 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`.
1710
1801
  */
1711
1802
  get: operations["getIntegrationConnectLink"];
1712
1803
  put?: never;
@@ -2209,6 +2300,16 @@ interface paths {
2209
2300
  *
2210
2301
  * **If you pass `social_network`, the token is bound to that network** and will not connect any other (error 544). Leave it out to let the person pick.
2211
2302
  *
2303
+ * **Or show the account picker yourself** with `account_selection=integrator`. By default PlanVortex shows the screen where the person picks which accounts to enable, and only then sends them to your `redirect_uri`. In this mode that screen is yours:
2304
+ *
2305
+ * 1. The `url` that comes back is **the network's own authorization page**, so the person goes there straight from your app. Keep the `connect_session` id next to your user's session.
2306
+ * 2. When they finish, the network sends them through PlanVortex, which renders nothing, to `redirect_uri?connect_session=…&social_network=…`. Check that the id is the one you started.
2307
+ * 3. Read the accounts with `GET /organizations/{id_organization}/connect_sessions/{id_session}`, show your picker, and confirm with `POST /organizations/{id_organization}/connect_sessions/{id_session}/confirm`.
2308
+ *
2309
+ * This mode needs `redirect_uri` and `social_network` (error 549): your app also picks the network. `telegram` cannot use it (error 550), because its link opens a chat that never comes back to the browser. On `whatsapp` the `url` is still a PlanVortex page with one button, because Meta's popup only opens on our domain; the picker after it is yours.
2310
+ *
2311
+ * PlanVortex's domain does show in the address bar on the way back: networks only return to the URLs registered in their own portals.
2312
+ *
2212
2313
  * If you send `redirect_uri` it has to be one of the app's `redirect_urls`, or the call answers error 532.
2213
2314
  */
2214
2315
  get: operations["createTemporalConnectToken"];
@@ -2402,7 +2503,8 @@ interface paths {
2402
2503
  * • **`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.
2403
2504
  * • **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.
2404
2505
  * • **`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.
2405
- * • **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.
2506
+ * • **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.
2507
+ * • **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.
2406
2508
  */
2407
2509
  get: operations["getPlannerTemplates"];
2408
2510
  put?: never;
@@ -2450,7 +2552,7 @@ interface paths {
2450
2552
  *
2451
2553
  * 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.
2452
2554
  *
2453
- * **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.
2555
+ * **Three 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. `reply_control` says a publication can choose who can reply to it, and is `true` only on `threads`. The three 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.
2454
2556
  *
2455
2557
  * 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.
2456
2558
  *
@@ -2647,6 +2749,39 @@ interface components {
2647
2749
  AccountsAccountOne: {
2648
2750
  account: components["schemas"]["Account"];
2649
2751
  };
2752
+ /** @description A connection in `account_selection=integrator` mode, from the moment the temporal token is issued until your app confirms which accounts stay. */
2753
+ AccountsConnectSession: {
2754
+ /** @description The id that comes back in your `redirect_uri` as `connect_session`. */
2755
+ _id: string;
2756
+ /** @description The accounts **this** authorization brought back, in the order the network returned them. Never other pending accounts of the organization. Empty while `pending`. */
2757
+ accounts: components["schemas"]["AccountsConnectSessionAccount"][];
2758
+ /** @description Accounts the plan allows. New accounts beyond `accounts_limit - accounts_used` answer 706 on confirm. */
2759
+ accounts_limit: number;
2760
+ /** @description Accounts of the plan already in use: the same counter the PlanVortex screen shows. */
2761
+ accounts_used: number;
2762
+ /** Format: date-time */
2763
+ creation_date?: string;
2764
+ /**
2765
+ * Format: date-time
2766
+ * @description While `pending`, the token's expiry. Once `returned`, thirty minutes after the person came back. After it the session answers 551 and its accounts stay unconnected.
2767
+ */
2768
+ expires_at: string;
2769
+ id_client?: string;
2770
+ id_organization?: string;
2771
+ /** @description The app that issued the token. Only that app can read or confirm the session. */
2772
+ keycloak_client_idenfifier?: string;
2773
+ redirect_uri?: string;
2774
+ social_network: components["schemas"]["SocialNetwork"];
2775
+ /**
2776
+ * @description `pending`: the person has not come back from the network yet. `returned`: the accounts are waiting for your choice. `confirmed`: done, the session cannot be used again.
2777
+ * @enum {string}
2778
+ */
2779
+ status: "pending" | "returned" | "confirmed";
2780
+ };
2781
+ AccountsConnectSessionAccount: components["schemas"]["Account"] & {
2782
+ /** @description `true` when the account was already connected before this authorization (a reconnection). Confirming it takes no slot of the plan. */
2783
+ already_enabled: boolean;
2784
+ };
2650
2785
  AccountsMetricList: ("page_total_actions" | "page_call_phone_clicks_logged_in_unique" | "page_get_directions_clicks_logged_in_unique" | "page_website_clicks_logged_in_unique" | "page_post_engagements" | "page_consumptions_unique" | "page_negative_feedback" | "page_negative_feedback_unique" | "page_fans_online_per_day" | "page_impressions" | "page_impressions_unique" | "page_impressions_paid" | "page_impressions_paid_unique" | "page_impressions_organic_v2" | "page_impressions_organic_unique_v2" | "page_impressions_viral" | "page_impressions_viral_unique" | "page_impressions_nonviral" | "page_impressions_nonviral_unique" | "page_posts_impressions" | "page_posts_impressions_unique" | "page_posts_impressions_paid" | "page_posts_impressions_paid_unique" | "page_posts_impressions_organic" | "page_posts_impressions_organic_unique" | "page_posts_served_impressions_organic_unique" | "page_posts_impressions_viral" | "page_posts_impressions_viral_unique" | "page_posts_impressions_nonviral" | "page_posts_impressions_nonviral_unique" | "impressions" | "reach" | "total_interactions" | "accounts_engaged" | "likes" | "comments" | "saves" | "shares" | "replies" | "follows_and_unfollows" | "profile_links_taps" | "website_clicks" | "profile_views" | "paidFollowers" | "organicFollowerGain" | "careersPageBannerPromoClicks" | "careersPagePromoLinksClicks" | "careersPageEmployeesClicks" | "careersPageJobsClicks" | "careersPageViewsUnique" | "careersPageViews" | "overviewPageViewsUnique" | "overviewPageViews" | "allPageViews" | "follows" | "share" | "views")[];
2651
2786
  /** @description A metric series for one account, already grouped. `group` says what each row covers: a range of 31 days or less is grouped by day, up to 720 by month, and beyond that by year. */
2652
2787
  AccountsMetricModel: {
@@ -2705,6 +2840,8 @@ interface components {
2705
2840
  graph_version?: string;
2706
2841
  /** @description `meta_embedded_signup` only. Goes to `extras.sessionInfoVersion`. */
2707
2842
  session_info_version?: string;
2843
+ /** @description `meta_embedded_signup` only, and only with a temporal token issued with `account_selection=integrator`. The popup hands the `code` back in JavaScript, not in a URL from Meta, so whoever builds the return URL has to add this as `state`. The PlanVortex page does it for you. */
2844
+ state?: string;
2708
2845
  /**
2709
2846
  * @description `redirect`: send the user to `link`. `meta_embedded_signup`: open the Meta popup with the fields below. `telegram_bot`: open `link` in another tab and wait for the account to show up.
2710
2847
  * @enum {string}
@@ -2750,6 +2887,23 @@ interface components {
2750
2887
  value_proposition?: string;
2751
2888
  website?: string;
2752
2889
  };
2890
+ /**
2891
+ * @description Where an AI-generated image came from. **Only images a model generated carry it**: a photo the organization uploaded, a product photo pulled from a connected shop or an image imported from an integration never does.
2892
+ *
2893
+ * It is set when the image is generated and cannot be edited. Use it to show your own AI label: under article 50(4) of the EU AI Act, telling the audience that an image is AI-generated is the job of whoever publishes it.
2894
+ *
2895
+ * Images made with the default model also carry a signed C2PA manifest, IPTC metadata and a SynthID watermark in the file itself. PlanVortex keeps the IPTC marker when it crops or recompresses an image for a network; the C2PA signature does not survive a change of pixels.
2896
+ */
2897
+ AiImageOrigin: {
2898
+ /** Format: date-time */
2899
+ generated_at: string;
2900
+ /** @description The AI plan that generated it. */
2901
+ id_ai_plan?: string;
2902
+ /** @description The model, as it was requested, for instance `google/gemini-3.1-flash-image`. */
2903
+ model: string;
2904
+ /** @description The AI provider that answered: `openrouter` unless the client brought its own key. */
2905
+ provider: string;
2906
+ };
2753
2907
  /**
2754
2908
  * @description What ONE AI plan achieved with what it published.
2755
2909
  *
@@ -2922,7 +3076,7 @@ interface components {
2922
3076
  texts_target: number;
2923
3077
  };
2924
3078
  AiPlansAiPlanCreateRequest: {
2925
- /** @description Account ids (belonging to the organization) to generate the plan for. */
3079
+ /** @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. */
2926
3080
  accounts: string[];
2927
3081
  /**
2928
3082
  * @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.
@@ -2935,7 +3089,7 @@ interface components {
2935
3089
  options?: components["schemas"]["AiPlansAiPlanOptionsInput"];
2936
3090
  /** @description Theme prompt written by the user. */
2937
3091
  prompt: string;
2938
- /** @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. */
3092
+ /** @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. */
2939
3093
  source?: components["schemas"]["AiPlansAiPlanSourceInput"];
2940
3094
  /**
2941
3095
  * @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.
@@ -3043,7 +3197,7 @@ interface components {
3043
3197
  /** @description Language of the generated texts. Optional; defaults to `"es"`. */
3044
3198
  language?: string;
3045
3199
  /**
3046
- * @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.
3200
+ * @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.
3047
3201
  *
3048
3202
  * 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.
3049
3203
  */
@@ -3100,8 +3254,10 @@ interface components {
3100
3254
  date?: string;
3101
3255
  name?: string;
3102
3256
  };
3103
- /** @description `from_catalog`. The account whose catalogue was read. */
3257
+ /** @description `from_catalog`. The account whose Meta catalogue was read. */
3104
3258
  id_account_catalog?: string;
3259
+ /** @description `from_catalog`. The connected store (an integration) whose catalogue was read. Only one of the two is present. */
3260
+ id_integration_catalog?: string;
3105
3261
  /** @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. */
3106
3262
  images?: {
3107
3263
  description?: string;
@@ -3124,14 +3280,14 @@ interface components {
3124
3280
  /**
3125
3281
  * @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.
3126
3282
  *
3127
- * 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.
3283
+ * 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.
3128
3284
  *
3129
3285
  * | Template | Fields |
3130
3286
  * | --- | --- |
3131
3287
  * | `standard` | none — no source |
3132
3288
  * | `from_images` | `images` |
3133
3289
  * | `from_text` | `url` **or** `text` |
3134
- * | `from_catalog` | `id_account_catalog`, `product_catalog_id`, `products` |
3290
+ * | `from_catalog` | `id_account_catalog` + `product_catalog_id` (a Meta catalogue) **or** `id_integration_catalog` (a connected store), and `products` |
3135
3291
  * | `campaign` | `event_name`, `event_date` |
3136
3292
  */
3137
3293
  AiPlansAiPlanSourceInput: {
@@ -3142,13 +3298,15 @@ interface components {
3142
3298
  event_date?: string;
3143
3299
  /** @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`. */
3144
3300
  event_name?: string;
3145
- /** @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. */
3301
+ /** @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). */
3146
3302
  id_account_catalog?: string;
3303
+ /** @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`.** */
3304
+ id_integration_catalog?: string;
3147
3305
  /** @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). */
3148
3306
  images?: components["schemas"]["AiPlansAiPlanSourceImageInput"][];
3149
- /** @description `from_catalog`. The catalogue itself, as the network identifies it. */
3307
+ /** @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. */
3150
3308
  product_catalog_id?: string;
3151
- /** @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. */
3309
+ /** @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. */
3152
3310
  products?: string[];
3153
3311
  /** @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). */
3154
3312
  text?: string;
@@ -3161,12 +3319,14 @@ interface components {
3161
3319
  /** @description A product of the catalogue, copied when the plan was created. */
3162
3320
  AiPlansAiPlanSourceProduct: {
3163
3321
  description?: string;
3164
- /** @description The id it has in the network catalogue. */
3322
+ /** @description The id it has in the catalogue: the network's, or the store's. */
3165
3323
  external_id?: string;
3166
3324
  /** @description The product picture, copied into an upload of the organization. The network CDN URL expires; this one does not. */
3167
3325
  id_upload?: string;
3168
3326
  name?: string;
3169
- /** @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. */
3327
+ /** @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. */
3328
+ permalink?: string;
3329
+ /** @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. */
3170
3330
  price?: string;
3171
3331
  };
3172
3332
  /**
@@ -3273,7 +3433,7 @@ interface components {
3273
3433
  };
3274
3434
  source_fields?: components["schemas"]["CatalogPlannerTemplateField"][];
3275
3435
  /**
3276
- * @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).
3436
+ * @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).
3277
3437
  *
3278
3438
  * 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.
3279
3439
  */
@@ -3284,11 +3444,22 @@ interface components {
3284
3444
  * • **`standard`** — a theme prompt, images generated by the model. What every plan was before templates existed.
3285
3445
  * • **`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.
3286
3446
  * • **`from_text`** — an article: a URL that is downloaded at creation, or the text pasted by hand.
3287
- * • **`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.
3447
+ * • **`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.
3288
3448
  * • **`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.
3289
3449
  * @enum {string}
3290
3450
  */
3291
3451
  template?: "standard" | "from_images" | "from_text" | "from_catalog" | "campaign";
3452
+ /**
3453
+ * @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.
3454
+ *
3455
+ * 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.
3456
+ * @example [
3457
+ * "whatsapp",
3458
+ * "google_business",
3459
+ * "youtube"
3460
+ * ]
3461
+ */
3462
+ unsupported_networks?: components["schemas"]["SocialNetwork"][];
3292
3463
  };
3293
3464
  /** @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. */
3294
3465
  CatalogPlannerTemplateField: {
@@ -3598,6 +3769,8 @@ interface components {
3598
3769
  persistent_menu: boolean;
3599
3770
  products: boolean;
3600
3771
  publications: boolean;
3772
+ /** @description The publication can say **who can reply** to it (`reply_control`): anyone, the account's followers, the profiles it follows or the profiles mentioned in the text. It is set when the publication goes out and cannot be changed afterwards. On a network that answers `false` the field is deleted on save, so do not offer it. Today only `threads`. */
3773
+ reply_control: boolean;
3601
3774
  webhooks: boolean;
3602
3775
  };
3603
3776
  /**
@@ -3944,7 +4117,7 @@ interface components {
3944
4117
  * The catalogue grows with the product, so treat an unknown `code` as a generic failure instead of rejecting it.
3945
4118
  */
3946
4119
  Error: {
3947
- /** @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. */
4120
+ /** @description PlanVortex error code. Ranges: 500-554 auth, tokens, client apps and connect sessions · 601-612 user · 700-716 social accounts · 800-810 files · 900-996 publications · 1000-1003 general · 1100-1111 organizations · 1200-1207 roles · 1300-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. */
3948
4121
  code: number;
3949
4122
  /** @description Extra context attached to the error, when there is any. */
3950
4123
  data?: {
@@ -3980,18 +4153,18 @@ interface components {
3980
4153
  /** @description Credentials are never returned. `connected` is the summary the panel paints: false means the connection failed and needs attention. */
3981
4154
  IntegrationsIntegration: {
3982
4155
  _id: string;
3983
- /** @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. */
3984
- config: components["schemas"]["IntegrationsRssConfig"];
4156
+ /** @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. */
4157
+ config: components["schemas"]["IntegrationsIntegrationConfig"];
3985
4158
  /** @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. */
3986
4159
  connected: boolean;
3987
4160
  /** Format: date-time */
3988
4161
  creation_date: string;
3989
4162
  /** @description Only enabled integrations consume plan allowance. */
3990
4163
  enabled: boolean;
3991
- /** @description PlanVortex error code of the last failure (2203 token revoked, 2205 feed unreachable, 924 no publication allowance left…). */
4164
+ /** @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. */
3992
4165
  error_code?: number | null;
3993
4166
  /**
3994
- * @description The Google account email, or the feed URL.
4167
+ * @description The Google account email, the feed URL, or the store URL.
3995
4168
  * @example ana@empresa.com
3996
4169
  */
3997
4170
  external_identifier?: string;
@@ -3999,10 +4172,97 @@ interface components {
3999
4172
  id_organization: string;
4000
4173
  /** Format: date-time */
4001
4174
  last_used_date?: string;
4002
- /** @example Drive de ana@empresa.com */
4175
+ /**
4176
+ * @description The Google account, the feed title, or the store's site name.
4177
+ * @example Drive de ana@empresa.com
4178
+ */
4003
4179
  name: string;
4004
4180
  provider: components["schemas"]["IntegrationsIntegrationProviderName"];
4005
4181
  };
4182
+ IntegrationsIntegrationCatalogPage: {
4183
+ items: components["schemas"]["IntegrationsIntegrationCatalogProduct"][];
4184
+ /** @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`. */
4185
+ next_cursor?: string;
4186
+ };
4187
+ /** @description A product of a connected store, already normalised: the same shape whatever the store is. */
4188
+ IntegrationsIntegrationCatalogProduct: {
4189
+ /** @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. */
4190
+ available: boolean;
4191
+ /** @description Plain text, already stripped of HTML, entities and page-builder shortcodes, cut at 400 characters without splitting a word. */
4192
+ description?: string;
4193
+ /**
4194
+ * @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.
4195
+ * @example 68
4196
+ */
4197
+ external_id: string;
4198
+ /** @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. */
4199
+ image_url?: string;
4200
+ /** @example Taza de cerámica */
4201
+ name: string;
4202
+ /** @description The product's public page in the store. */
4203
+ permalink?: string;
4204
+ /**
4205
+ * @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.
4206
+ * @example 14,52 € IVA incluido
4207
+ */
4208
+ price?: string;
4209
+ };
4210
+ /** @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. */
4211
+ IntegrationsIntegrationConfig: {
4212
+ /**
4213
+ * @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`).
4214
+ * @enum {string}
4215
+ */
4216
+ api_base?: "wp-json" | "rest_route";
4217
+ /**
4218
+ * @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.
4219
+ * @enum {string}
4220
+ */
4221
+ auth_mode?: "basic" | "query";
4222
+ /** @description `rss`. */
4223
+ auto_publish?: boolean;
4224
+ /**
4225
+ * @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`.
4226
+ * @example EUR
4227
+ */
4228
+ currency?: string;
4229
+ /** @description `rss`. */
4230
+ id_accounts?: string[];
4231
+ /** @description `rss`. */
4232
+ import_image?: boolean;
4233
+ /**
4234
+ * @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.
4235
+ * @example 3f9a2c1
4236
+ */
4237
+ key_ending?: string;
4238
+ /**
4239
+ * Format: date-time
4240
+ * @description `rss`.
4241
+ */
4242
+ last_checked?: string;
4243
+ /** @description `rss`. */
4244
+ publication_type?: string;
4245
+ /** @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. */
4246
+ seen_guids?: string[];
4247
+ /** @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`. */
4248
+ tax_location_missing?: boolean;
4249
+ /** @description `rss`. */
4250
+ template?: string;
4251
+ /** @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. */
4252
+ url?: string;
4253
+ };
4254
+ /** @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. */
4255
+ IntegrationsIntegrationFormField: {
4256
+ default?: unknown;
4257
+ name: string;
4258
+ options?: string[];
4259
+ required: boolean;
4260
+ /**
4261
+ * @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`.
4262
+ * @enum {string}
4263
+ */
4264
+ type: "url" | "text" | "textarea" | "boolean" | "accounts" | "select" | "secret";
4265
+ };
4006
4266
  IntegrationsIntegrationProvider: {
4007
4267
  /**
4008
4268
  * @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.
@@ -4017,24 +4277,24 @@ interface components {
4017
4277
  * ]
4018
4278
  */
4019
4279
  accepted_formats: string[];
4020
- config_fields: {
4021
- default?: unknown;
4022
- name: string;
4023
- options?: string[];
4024
- required?: boolean;
4025
- /** @enum {string} */
4026
- type: "url" | "text" | "textarea" | "boolean" | "accounts" | "select";
4027
- }[];
4280
+ /** @description Has a product catalogue: `GET .../integrations/{id_integration}/products`, and a source for the `from_catalog` planner template (`source.id_integration_catalog`). WooCommerce. */
4281
+ catalog: boolean;
4282
+ /** @description The connection form. Empty when the provider connects through OAuth alone. */
4283
+ config_fields: components["schemas"]["IntegrationsIntegrationFormField"][];
4284
+ /** @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. */
4285
+ connect_link: boolean;
4286
+ /** @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. */
4287
+ connect_link_fields: components["schemas"]["IntegrationsIntegrationFormField"][];
4028
4288
  /** @description Polled by the poll-feeds job, which turns new entries into publications. */
4029
4289
  content_feed: boolean;
4030
4290
  /** @description Contributes files to the library through POST /uploads/import. */
4031
4291
  file_import: boolean;
4032
4292
  provider: components["schemas"]["IntegrationsIntegrationProviderName"];
4033
- /** @description true = connect with connect_link + code. false = connect with a form built from config_fields. */
4293
+ /** @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. */
4034
4294
  requires_oauth: boolean;
4035
4295
  };
4036
4296
  /** @enum {string} */
4037
- IntegrationsIntegrationProviderName: "google_drive" | "rss";
4297
+ IntegrationsIntegrationProviderName: "google_drive" | "rss" | "woocommerce";
4038
4298
  /** @description Provider-specific configuration. Empty for google_drive. */
4039
4299
  IntegrationsRssConfig: {
4040
4300
  auto_publish?: boolean;
@@ -4067,6 +4327,19 @@ interface components {
4067
4327
  */
4068
4328
  url: string;
4069
4329
  };
4330
+ IntegrationsWooCommerceConnectRequest: {
4331
+ /** @description Starts with `ck_`. Created in WooCommerce → Settings → Advanced → REST API with **Read** permission. */
4332
+ consumer_key: string;
4333
+ /** @description Starts with `cs_`. Stored encrypted and never returned by any endpoint. */
4334
+ consumer_secret: string;
4335
+ /** @enum {string} */
4336
+ provider: "woocommerce";
4337
+ /**
4338
+ * @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.
4339
+ * @example https://tienda.example.com
4340
+ */
4341
+ url: string;
4342
+ };
4070
4343
  /**
4071
4344
  * @description A message exchanged with a contact.
4072
4345
  *
@@ -4118,6 +4391,8 @@ interface components {
4118
4391
  template_language?: string;
4119
4392
  /** @description Required for `template_message`. */
4120
4393
  template_name?: string;
4394
+ /** @description For a `template_message` whose body has variables: their values, in order. The first one fills `{{1}}`, the second `{{2}}`, and so on. Without them WhatsApp rejects a template that has variables, so a reminder with the customer's name and time needs this. Each value is a non-empty string with no line breaks, no tabs and no more than four consecutive spaces; anything else answers `1511` with `data.field` = `template_parameters` and `data.index` pointing at the bad value. Only positional body variables are supported: named variables (`{{name}}`) and variables in the header or in a button URL are not sent yet. */
4395
+ template_parameters?: string[];
4121
4396
  /** @description WhatsApp interactive list, for `interactive_message`. It needs at least one section. */
4122
4397
  whatsappInteractive?: {
4123
4398
  [key: string]: unknown;
@@ -4400,6 +4675,7 @@ interface components {
4400
4675
  };
4401
4676
  Publication: {
4402
4677
  _id: string;
4678
+ ai_generated?: components["schemas"]["PublicationAiGenerated"];
4403
4679
  /** Format: date-time */
4404
4680
  creation_date: string;
4405
4681
  /** @description Where inside the account this publication goes. Only present on the networks that answer `destinations: true` in `GET /social_capabilities`. */
@@ -4460,6 +4736,13 @@ interface components {
4460
4736
  publication_type: "profile" | "page" | "group" | "reels" | "stories" | "message";
4461
4737
  /** Format: date-time */
4462
4738
  publish_date?: string;
4739
+ /**
4740
+ * @description **Who can reply** to the publication, on the networks that answer `reply_control: true` in `GET /social_capabilities` (today `threads`). Absent means the network's default, which is anyone. It is set when the publication goes out and cannot be changed afterwards.
4741
+ *
4742
+ * **On every other network the field is deleted on save**, like `link`.
4743
+ * @enum {string}
4744
+ */
4745
+ reply_control?: "everyone" | "accounts_you_follow" | "mentioned_only" | "followers_only";
4463
4746
  /** @description Manual retries already spent on a failed publication, against the `max_retries` published by `GET /publication_limits`. Only `POST .../retry` increases it; updating the publication resets it to 0. */
4464
4747
  retries: number;
4465
4748
  /** @description Always the network of the account in `id_account`. */
@@ -4478,6 +4761,17 @@ interface components {
4478
4761
  /** @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. */
4479
4762
  url?: string;
4480
4763
  };
4764
+ /**
4765
+ * @description Which part of a publication was generated by AI. **Absent means nothing was.**
4766
+ *
4767
+ * Use it to show your own AI label: under article 50(4) of the EU AI Act, telling the audience is the job of whoever publishes.
4768
+ */
4769
+ PublicationAiGenerated: {
4770
+ /** @description At least one of the files carries `ai_generated`. Recomputed every time the publication is saved, so replacing an AI image with a photo of your own turns it off. */
4771
+ image: boolean;
4772
+ /** @description The text was written by the AI planner. Set when the draft is created and never changed afterwards, not even if the text is rewritten: it says where the text came from, not who reviewed it. */
4773
+ text: boolean;
4774
+ };
4481
4775
  /**
4482
4776
  * @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.
4483
4777
  *
@@ -4555,6 +4849,20 @@ interface components {
4555
4849
  * @description When the publication must go out. If omitted, it is published immediately. An invalid date returns error 938.
4556
4850
  */
4557
4851
  publish_date?: string;
4852
+ /**
4853
+ * @description **Who can reply** to the publication. Only on the networks that answer `reply_control: true` in `GET /social_capabilities` (today `threads`), and **deleted** on every other one.
4854
+ *
4855
+ * - `everyone`: anyone. It is the network's default, and what applies when the field is omitted.
4856
+ * - `followers_only`: only the account's followers.
4857
+ * - `accounts_you_follow`: only the profiles the account follows.
4858
+ * - `mentioned_only`: only the profiles mentioned in the text.
4859
+ *
4860
+ * **It is set when the publication goes out and cannot be changed afterwards**: Threads has no way to change it on a published post through its API. A value the network does not accept does not fail the request: the publication is still created, in state `withErrors` with `publication_errors[].code = 997`, whose `data` carries the `allowed` values. It is checked when the publication is **created**, so a scheduled post does not fail at 3 a.m. over a value that was already wrong.
4861
+ *
4862
+ * On an update: omit it to keep what was there, send `null` or `""` to go back to the network's default.
4863
+ * @enum {string}
4864
+ */
4865
+ reply_control?: "everyone" | "accounts_you_follow" | "mentioned_only" | "followers_only";
4558
4866
  /**
4559
4867
  * @description Network the publication targets. **Required when creating**: the request fails with error 702 if it is missing or not one of these values. It must match the network of the account in the path.
4560
4868
  *
@@ -4798,6 +5106,7 @@ interface components {
4798
5106
  */
4799
5107
  Upload: {
4800
5108
  _id: string;
5109
+ ai_generated?: components["schemas"]["AiImageOrigin"];
4801
5110
  /** @description Cover of a video, which is another upload of its own and comes back already resolved. It never appears on its own in the library listing. */
4802
5111
  cover_image?: components["schemas"]["Upload"];
4803
5112
  /** @description Point of the video, in milliseconds, used as the cover frame. */
@@ -5934,14 +6243,19 @@ interface operations {
5934
6243
  * | `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. |
5935
6244
  * | `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 }. |
5936
6245
  * | `2111` | Invalid planner template: `template` is not one of the ones published by `GET /planner_templates`. |
5937
- * | `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. |
6246
+ * | `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. |
5938
6247
  * | `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. |
5939
6248
  * | `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. |
5940
- * | `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. |
6249
+ * | `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. |
5941
6250
  * | `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). |
5942
6251
  * | `994` | Invalid `options.link` with a network that uses it (`pinterest`) in the plan. `data.reason` is `invalid_url` or `too_long`. |
5943
6252
  * | `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`. |
5944
6253
  * | `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. |
6254
+ * | `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 }`. |
6255
+ * | `2200` | `source.id_integration_catalog` is not an integration of this organization. |
6256
+ * | `2207` | `source.id_integration_catalog` has no product catalogue (a Google Drive or a feed). |
6257
+ * | `2209` | `source.id_integration_catalog` is disabled. |
6258
+ * | `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. |
5945
6259
  * | `521` | Invalid client. The identifier is invalid or doesn't exist |
5946
6260
  */
5947
6261
  400: {
@@ -7198,6 +7512,7 @@ interface operations {
7198
7512
  * | `519` | This endpoint does not accept app credentials |
7199
7513
  * | `543` | This temporal connect token has already connected an account. Issue a new one |
7200
7514
  * | `544` | This temporal connect token was issued for a different social network |
7515
+ * | `554` | The temporal token was issued with `account_selection=integrator`. In that mode the return goes through the connect session, which checks the `state` that ties it to whoever started |
7201
7516
  * | `700` | The connection cannot be completed through this endpoint. It is what `telegram` always answers here: that network's accounts are created from the bot being added to a channel, never from a call of yours |
7202
7517
  * | `1101` | Invalid organization, or a temporal token for a different one |
7203
7518
  */
@@ -8816,9 +9131,122 @@ interface operations {
8816
9131
  *
8817
9132
  * | Code | Meaning |
8818
9133
  * | --- | --- |
8819
- * | `1101` | Invalid organization |
8820
9134
  * | `523` | Invalid application |
8821
9135
  * | `532` | `redirect_uri` is not one of the fronts registered on the server |
9136
+ * | `551` | The temporal token is for `account_selection=integrator` and its connect session has expired or is no longer waiting for the person |
9137
+ * | `1101` | Invalid organization |
9138
+ */
9139
+ 400: {
9140
+ headers: {
9141
+ [name: string]: unknown;
9142
+ };
9143
+ content: {
9144
+ "application/json": components["schemas"]["Error"];
9145
+ };
9146
+ };
9147
+ /** @description Unhandled error by the server */
9148
+ 500: {
9149
+ headers: {
9150
+ [name: string]: unknown;
9151
+ };
9152
+ content?: never;
9153
+ };
9154
+ };
9155
+ };
9156
+ getConnectSession: {
9157
+ parameters: {
9158
+ query?: never;
9159
+ header?: never;
9160
+ path: {
9161
+ /** @description Organization identifier */
9162
+ id_organization: string;
9163
+ /** @description The `connect_session` that came back in your `redirect_uri` */
9164
+ id_session: string;
9165
+ };
9166
+ cookie?: never;
9167
+ };
9168
+ requestBody?: never;
9169
+ responses: {
9170
+ /** @description The session and its accounts. */
9171
+ 200: {
9172
+ headers: {
9173
+ [name: string]: unknown;
9174
+ };
9175
+ content: {
9176
+ "application/json": {
9177
+ connect_session: components["schemas"]["AccountsConnectSession"];
9178
+ };
9179
+ };
9180
+ };
9181
+ /**
9182
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9183
+ *
9184
+ * | Code | Meaning |
9185
+ * | --- | --- |
9186
+ * | `514` | This endpoint needs app credentials |
9187
+ * | `551` | Connect session not found, expired, or issued by another app |
9188
+ * | `1101` | Invalid organization |
9189
+ */
9190
+ 400: {
9191
+ headers: {
9192
+ [name: string]: unknown;
9193
+ };
9194
+ content: {
9195
+ "application/json": components["schemas"]["Error"];
9196
+ };
9197
+ };
9198
+ /** @description Unhandled error by the server */
9199
+ 500: {
9200
+ headers: {
9201
+ [name: string]: unknown;
9202
+ };
9203
+ content?: never;
9204
+ };
9205
+ };
9206
+ };
9207
+ confirmConnectSession: {
9208
+ parameters: {
9209
+ query?: never;
9210
+ header?: never;
9211
+ path: {
9212
+ /** @description Organization identifier */
9213
+ id_organization: string;
9214
+ /** @description The `connect_session` that came back in your `redirect_uri` */
9215
+ id_session: string;
9216
+ };
9217
+ cookie?: never;
9218
+ };
9219
+ requestBody: {
9220
+ content: {
9221
+ "application/json": {
9222
+ /** @description Ids of the session's accounts to enable. */
9223
+ accounts: string[];
9224
+ };
9225
+ };
9226
+ };
9227
+ responses: {
9228
+ /** @description The accounts that were enabled. */
9229
+ 200: {
9230
+ headers: {
9231
+ [name: string]: unknown;
9232
+ };
9233
+ content: {
9234
+ "application/json": {
9235
+ accounts: components["schemas"]["Account"][];
9236
+ };
9237
+ };
9238
+ };
9239
+ /**
9240
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9241
+ *
9242
+ * | Code | Meaning |
9243
+ * | --- | --- |
9244
+ * | `514` | This endpoint needs app credentials |
9245
+ * | `551` | Connect session not found, expired, or issued by another app |
9246
+ * | `552` | The session is not waiting for a confirmation: the person has not come back yet, or it was already confirmed. `data.status` says which |
9247
+ * | `553` | Some account is not part of this session. `data.accounts` lists them |
9248
+ * | `706` | The new accounts do not fit in the plan. `data` carries `limit`, `used` and `requested`, and none was enabled |
9249
+ * | `1101` | Invalid organization |
8822
9250
  */
8823
9251
  400: {
8824
9252
  headers: {
@@ -9130,7 +9558,7 @@ interface operations {
9130
9558
  };
9131
9559
  requestBody: {
9132
9560
  content: {
9133
- "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"];
9561
+ "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"] | components["schemas"]["IntegrationsWooCommerceConnectRequest"];
9134
9562
  };
9135
9563
  };
9136
9564
  responses: {
@@ -9156,6 +9584,12 @@ interface operations {
9156
9584
  * | `2203` | Integration token expired or revoked, reconnect required. |
9157
9585
  * | `2205` | Feed URL unreachable or not a valid feed. |
9158
9586
  * | `2206` | Feed has no target accounts configured. |
9587
+ * | `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`. |
9588
+ * | `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. |
9589
+ * | `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. |
9590
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9591
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9592
+ * | `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. |
9159
9593
  */
9160
9594
  400: {
9161
9595
  headers: {
@@ -9236,7 +9670,14 @@ interface operations {
9236
9670
  };
9237
9671
  };
9238
9672
  };
9239
- /** @description Error. Classify by `code` in the body, never by the HTTP status: every domain error travels with HTTP 400. */
9673
+ /**
9674
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9675
+ *
9676
+ * | Code | Meaning |
9677
+ * | --- | --- |
9678
+ * | `2200` | Integration not found. |
9679
+ * | `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. |
9680
+ */
9240
9681
  400: {
9241
9682
  headers: {
9242
9683
  [name: string]: unknown;
@@ -9324,6 +9765,61 @@ interface operations {
9324
9765
  };
9325
9766
  };
9326
9767
  };
9768
+ getIntegrationProducts: {
9769
+ parameters: {
9770
+ query?: {
9771
+ /** @description The `next_cursor` of the previous page, as it came. Absent = the first page. */
9772
+ cursor?: string;
9773
+ /** @description Products per page. A value outside 1-100 is clamped, not refused. */
9774
+ limit?: number;
9775
+ /** @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. */
9776
+ search?: string;
9777
+ };
9778
+ header?: never;
9779
+ path: {
9780
+ /** @description Integration identifier */
9781
+ id_integration: components["parameters"]["IntegrationsidIntegration"];
9782
+ /** @description Organization identifier */
9783
+ id_organization: components["parameters"]["IntegrationsidOrganization"];
9784
+ };
9785
+ cookie?: never;
9786
+ };
9787
+ requestBody?: never;
9788
+ responses: {
9789
+ /** @description Successful operation */
9790
+ 200: {
9791
+ headers: {
9792
+ [name: string]: unknown;
9793
+ };
9794
+ content: {
9795
+ "application/json": components["schemas"]["IntegrationsIntegrationCatalogPage"];
9796
+ };
9797
+ };
9798
+ /**
9799
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9800
+ *
9801
+ * | Code | Meaning |
9802
+ * | --- | --- |
9803
+ * | `2200` | Integration not found (`1102` if it belongs to another organization). |
9804
+ * | `2207` | This integration has no product catalogue (a Google Drive or a feed). |
9805
+ * | `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. |
9806
+ * | `2209` | The integration is disabled. Enable it first: a disabled one does not take allowance, so it cannot be read either. |
9807
+ * | `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`. |
9808
+ * | `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. |
9809
+ * | `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. |
9810
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9811
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9812
+ */
9813
+ 400: {
9814
+ headers: {
9815
+ [name: string]: unknown;
9816
+ };
9817
+ content: {
9818
+ "application/json": components["schemas"]["Error"];
9819
+ };
9820
+ };
9821
+ };
9822
+ };
9327
9823
  reconnectIntegration: {
9328
9824
  parameters: {
9329
9825
  query?: never;
@@ -9338,7 +9834,7 @@ interface operations {
9338
9834
  };
9339
9835
  requestBody: {
9340
9836
  content: {
9341
- "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"];
9837
+ "application/json": components["schemas"]["IntegrationsGoogleDriveConnectRequest"] | components["schemas"]["IntegrationsRssConnectRequest"] | components["schemas"]["IntegrationsWooCommerceConnectRequest"];
9342
9838
  };
9343
9839
  };
9344
9840
  responses: {
@@ -9363,6 +9859,12 @@ interface operations {
9363
9859
  * | `2203` | The provider refused the new credentials. |
9364
9860
  * | `2205` | Feed URL unreachable or not a valid feed. |
9365
9861
  * | `2206` | Feed has no target accounts configured. |
9862
+ * | `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`. |
9863
+ * | `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. |
9864
+ * | `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. |
9865
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9866
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9867
+ * | `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. |
9366
9868
  */
9367
9869
  400: {
9368
9870
  headers: {
@@ -9377,8 +9879,12 @@ interface operations {
9377
9879
  getIntegrationConnectLink: {
9378
9880
  parameters: {
9379
9881
  query?: {
9882
+ /** @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`. */
9883
+ id_integration?: string;
9380
9884
  /** @description Alternative return URL. It must be one of the redirects allowed for the installation, otherwise the request fails with `532`. */
9381
9885
  redirect_uri?: string;
9886
+ /** @description `woocommerce`: the store address. Required for that provider, ignored by the rest. */
9887
+ url?: string;
9382
9888
  };
9383
9889
  header?: never;
9384
9890
  path: {
@@ -9402,7 +9908,21 @@ interface operations {
9402
9908
  };
9403
9909
  };
9404
9910
  };
9405
- /** @description Error. Classify by `code` in the body, never by the HTTP status: every domain error travels with HTTP 400. */
9911
+ /**
9912
+ * @description The request failed. The body carries the PlanVortex error code in `code`:
9913
+ *
9914
+ * | Code | Meaning |
9915
+ * | --- | --- |
9916
+ * | `1404` | Integrations limit reached for the organization plan. On the free plan the allowance is 0, so this always fires. |
9917
+ * | `2201` | The provider does not connect with a link (`rss`), or `id_integration` is of another provider. |
9918
+ * | `2200` | `id_integration` does not exist (`1102` if it belongs to another organization). |
9919
+ * | `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`. |
9920
+ * | `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. |
9921
+ * | `2213` | The store could not be reached, timed out or failed on its side (a 5xx). |
9922
+ * | `2214` | There is no WooCommerce REST API at this URL: not a WordPress, WooCommerce not active, or the REST API disabled. |
9923
+ * | `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). |
9924
+ * | `532` | `redirect_uri` is not one of the allowed redirects. |
9925
+ */
9406
9926
  400: {
9407
9927
  headers: {
9408
9928
  [name: string]: unknown;
@@ -10807,6 +11327,8 @@ interface operations {
10807
11327
  createTemporalConnectToken: {
10808
11328
  parameters: {
10809
11329
  query?: {
11330
+ /** @description Who shows the screen where the person picks which accounts to enable. `planvortex` (the default) is the PlanVortex screen. `integrator` sends the person back to your `redirect_uri` with a connect session, and the picking is yours: see above. Requires `redirect_uri` and `social_network` (error 549). */
11331
+ account_selection?: "planvortex" | "integrator";
10810
11332
  /** @description Where the user comes back after connecting. Has to be one of the app's `redirect_urls` (error 532). */
10811
11333
  redirect_uri?: string;
10812
11334
  /** @description Network the user is going to connect. It travels inside the returned URL **and inside the token itself**, so the token will only connect that network (error 544 otherwise). A network outside the allowed list is rejected here with error 702. */
@@ -10828,6 +11350,8 @@ interface operations {
10828
11350
  };
10829
11351
  content: {
10830
11352
  "application/json": {
11353
+ /** @description Only with `account_selection=integrator`: the id of the connect session. It comes back in your `redirect_uri` as `connect_session`; compare the two, so a session somebody else started cannot land in your user's browser. */
11354
+ connect_session?: string;
10831
11355
  /**
10832
11356
  * Format: date-time
10833
11357
  * @description When the token stops working. Fifteen minutes after it was issued.
@@ -10835,7 +11359,7 @@ interface operations {
10835
11359
  expires_at: string;
10836
11360
  /** @description The same token, on its own. This is what you pass to a client that authenticates with a temporal token; do not parse it out of `url`. */
10837
11361
  token: string;
10838
- /** @description Ready to redirect to. Carries the token in its `token` query parameter, and the network in `social_network` when one was asked for. */
11362
+ /** @description Ready to redirect to. Carries the token in its `token` query parameter, and the network in `social_network` when one was asked for. With `account_selection=integrator` it is the network's authorization page instead (on `whatsapp`, the PlanVortex page that opens Meta's popup). */
10839
11363
  url: string;
10840
11364
  };
10841
11365
  };
@@ -10847,6 +11371,8 @@ interface operations {
10847
11371
  * | --- | --- |
10848
11372
  * | `514` | This endpoint needs app credentials: neither a user token nor a temporal connect token can issue one |
10849
11373
  * | `532` | `redirect_uri` is not one of the app's registered `redirect_urls` |
11374
+ * | `549` | `account_selection` is not `planvortex` or `integrator`, or it is `integrator` without `redirect_uri` or `social_network`. `data` says which |
11375
+ * | `550` | `account_selection=integrator` on a network with no return to the browser (`telegram`) |
10850
11376
  * | `702` | `social_network` is not one of the networks PlanVortex supports |
10851
11377
  * | `1101` | Invalid organization |
10852
11378
  */
@@ -11425,7 +11951,8 @@ interface operations {
11425
11951
  * "persistent_menu": false,
11426
11952
  * "comments": true,
11427
11953
  * "destinations": false,
11428
- * "link": false
11954
+ * "link": false,
11955
+ * "reply_control": false
11429
11956
  * },
11430
11957
  * "google_business": {
11431
11958
  * "publications": false,
@@ -11435,7 +11962,8 @@ interface operations {
11435
11962
  * "persistent_menu": false,
11436
11963
  * "comments": true,
11437
11964
  * "destinations": false,
11438
- * "link": false
11965
+ * "link": false,
11966
+ * "reply_control": false
11439
11967
  * },
11440
11968
  * "pinterest": {
11441
11969
  * "publications": true,
@@ -11445,7 +11973,19 @@ interface operations {
11445
11973
  * "persistent_menu": false,
11446
11974
  * "comments": false,
11447
11975
  * "destinations": true,
11448
- * "link": true
11976
+ * "link": true,
11977
+ * "reply_control": false
11978
+ * },
11979
+ * "threads": {
11980
+ * "publications": true,
11981
+ * "messages": false,
11982
+ * "products": false,
11983
+ * "webhooks": true,
11984
+ * "persistent_menu": false,
11985
+ * "comments": true,
11986
+ * "destinations": false,
11987
+ * "link": false,
11988
+ * "reply_control": true
11449
11989
  * }
11450
11990
  * }
11451
11991
  */
@@ -11811,6 +12351,10 @@ type PlannerTemplateName = OpenEnum<NonNullable<Schemas["CatalogPlannerTemplate"
11811
12351
  * Y `regenerate` es por plantilla: la que no genero la imagen tampoco puede regenerarla. Ofrecer
11812
12352
  * ese boton igualmente es cobrarle al usuario 70 creditos por sustituir su propia foto por una
11813
12353
  * inventada.
12354
+ *
12355
+ * `unsupported_networks` son las redes cuyas cuentas no caben en un plan de esa plantilla (2120):
12356
+ * filtra con eso las cuentas que ofreces, en vez de dejar elegir una de YouTube para una semana de
12357
+ * fotos de producto.
11814
12358
  */
11815
12359
  type PlannerTemplate = Schemas["CatalogPlannerTemplate"];
11816
12360
  /**
@@ -11990,6 +12534,30 @@ interface EnableResult {
11990
12534
  /** A donde mandar al usuario despues, si el token temporal llevaba `redirect_uri`. */
11991
12535
  redirect_uri?: string;
11992
12536
  }
12537
+ /**
12538
+ * Quien ensena la pantalla de elegir cuentas al volver de la red. `planvortex` (lo de siempre) o
12539
+ * `integrator`: el usuario vuelve a tu `redirect_uri` con una sesion de conexion y el selector lo
12540
+ * pones tu. Ver {@link ConnectSession}.
12541
+ */
12542
+ type AccountSelection = "planvortex" | "integrator";
12543
+ /**
12544
+ * Una conexion en el modo `account_selection: "integrator"`: lo que autorizo tu usuario, para que
12545
+ * tu app ensene su propio selector y confirme las elegidas con
12546
+ * `accounts.confirmConnectSession()`.
12547
+ *
12548
+ * Solo la puede leer la app que emitio el token. `accounts` son las de ESTA autorizacion, nunca
12549
+ * otras pendientes de la organizacion; `already_enabled` marca una reconexion, que no gasta plaza;
12550
+ * y `accounts_used`/`accounts_limit` son el contador del plan. Una sesion `returned` vive media
12551
+ * hora.
12552
+ */
12553
+ type ConnectSession = Override<Schemas["AccountsConnectSession"], {
12554
+ social_network: SocialNetwork;
12555
+ accounts: ConnectSessionAccount[];
12556
+ }>;
12557
+ /** Una cuenta de una {@link ConnectSession}: una {@link Account} mas `already_enabled`. */
12558
+ type ConnectSessionAccount = Account & {
12559
+ already_enabled: boolean;
12560
+ };
11993
12561
  /**
11994
12562
  * Un fichero de la biblioteca de la organizacion.
11995
12563
  *
@@ -12004,6 +12572,25 @@ type Upload = Override<Schemas["Upload"], {
12004
12572
  }>;
12005
12573
  /** Ancho, alto, duracion y tamano de un fichero, mas en que redes cabe **por su recorte**. */
12006
12574
  type FileProperties = Schemas["FileProperties"];
12575
+ /**
12576
+ * De que modelo salio una imagen: el `ai_generated` de un {@link Upload}. **Solo lo llevan las
12577
+ * imagenes que genero la IA** —nunca una foto subida, ni la de un producto de una tienda— y no se
12578
+ * puede editar.
12579
+ *
12580
+ * Es lo que necesitas para cumplir TU parte del AI Act: el articulo 50.4 obliga a quien publica a
12581
+ * avisar a su audiencia cuando una imagen generada puede pasar por real, y con este campo pintas la
12582
+ * etiqueta en tu producto. La marca en el propio fichero (C2PA, IPTC y SynthID con el modelo por
12583
+ * defecto) la pone PlanVortex; el C2PA no sobrevive a un recorte, el IPTC si.
12584
+ */
12585
+ type AiImageOrigin = Schemas["AiImageOrigin"];
12586
+ /**
12587
+ * Que parte de una {@link Publication} genero la IA. **Ausente = nada.**
12588
+ *
12589
+ * `text` lo sella el planificador al crear el borrador y no cambia aunque el texto se reescriba:
12590
+ * dice de donde salio, no quien lo reviso. `image` se recalcula con los ficheros cada vez que se
12591
+ * guarda: cambiar la imagen generada por una foto propia lo apaga.
12592
+ */
12593
+ type PublicationAiGenerated = Schemas["PublicationAiGenerated"];
12007
12594
  /**
12008
12595
  * Una publicacion: programada, enviada o fallida.
12009
12596
  *
@@ -12261,26 +12848,78 @@ type ProductCatalog = Schemas["ProductsProductCatalog"];
12261
12848
  type ProductCatalogInput = Schemas["ProductsProductCatalogInput"];
12262
12849
  /**
12263
12850
  * Una conexion de una ORGANIZACION con una herramienta de la que se trae material: Google Drive,
12264
- * un feed RSS.
12851
+ * un feed RSS, una tienda WooCommerce.
12265
12852
  *
12266
12853
  * No confundir con una **app** ({@link ClientApp}), que es el acceso al API de PlanVortex. Son dos
12267
12854
  * cosas distintas que media web ha llamado igual.
12268
12855
  *
12269
12856
  * Las credenciales no salen nunca: para saber si la conexion esta viva esta `connected`, y el
12270
- * motivo cuando no lo esta, en `error_code`.
12857
+ * motivo cuando no lo esta, en `error_code`. **El 2219 no es un fallo**: una tienda conectada con el
12858
+ * boton se esta comprobando, unos segundos; si se queda ahi, hay que reconectarla.
12271
12859
  */
12272
12860
  type Integration = Schemas["IntegrationsIntegration"];
12273
- /** Que sabe hacer un proveedor y que campos lleva su formulario. Es lo que decide como conectar. */
12861
+ /**
12862
+ * Que sabe hacer un proveedor y que campos lleva su formulario. Es lo que decide como conectar, y
12863
+ * se ramifica por sus puertas, nunca por el nombre del proveedor:
12864
+ *
12865
+ * - `requires_oauth`: hay un token detras (Google Drive). **Tener enlace no es ser OAuth.**
12866
+ * - `connect_link`: se conecta mandando al usuario a {@link IntegrationsResource.connectLink}.
12867
+ * Drive (su OAuth) y WooCommerce (el boton de aprobar de la tienda), que ademas pide antes lo que
12868
+ * diga `connect_link_fields` (la `url` de la tienda).
12869
+ * - `catalog`: tiene catalogo de productos ({@link IntegrationsResource.products}) y sirve de fuente
12870
+ * a la plantilla `from_catalog`.
12871
+ */
12274
12872
  type IntegrationProvider = Schemas["IntegrationsIntegrationProvider"];
12873
+ /**
12874
+ * Un campo del formulario de un proveedor. **`secret` es una credencial** (la consumer secret de
12875
+ * WooCommerce): se oculta, no se rellena nunca al editar y va con `autocomplete="new-password"`, o
12876
+ * el gestor de contrasenas del navegador la rellena con la contrasena de PlanVortex del usuario y la
12877
+ * tienda contesta 2211.
12878
+ */
12879
+ type IntegrationFormField = Schemas["IntegrationsIntegrationFormField"];
12275
12880
  /** Un proveedor soportado. Abierto porque la lista crece. */
12276
12881
  type IntegrationProviderName = OpenEnum<Schemas["IntegrationsIntegrationProviderName"]>;
12277
- /** La configuracion de un feed RSS. En Google Drive el `config` es un objeto vacio. */
12882
+ /** La configuracion de un feed RSS: lo que se puede mandar en el `config` de un `update`. */
12278
12883
  type RssConfig = Schemas["IntegrationsRssConfig"];
12279
12884
  /**
12280
- * Lo que se manda para conectar o reconectar. Son dos formas y las distingue `provider`: con OAuth
12281
- * viaja el `code`, y sin el, el formulario de `config_fields`.
12885
+ * Lo que guarda el `config` de una integracion, segun el proveedor. Google Drive: nada. RSS: el feed.
12886
+ * WooCommerce: como llegar a la tienda, que lo detecta el servidor al conectar. Nunca un secreto.
12887
+ *
12888
+ * Dos claves de la tienda que hay que ENSENAR, no solo guardar:
12889
+ *
12890
+ * - **`key_ending`**: desconectar no revoca la clave (WooCommerce no deja que una app borre la
12891
+ * suya), y es lo que dice cual borrar en WooCommerce → Ajustes → Avanzado → API REST.
12892
+ * - **`tax_location_missing`**: la API de esa tienda da los precios SIN impuesto con la etiqueta de
12893
+ * "IVA incluido", asi que sus productos con impuesto vienen sin `price`. Se arregla en su
12894
+ * WordPress (ubicacion del cliente por defecto → pais de la tienda) y reconectando.
12282
12895
  */
12283
- type IntegrationConnectRequest = Schemas["IntegrationsGoogleDriveConnectRequest"] | Schemas["IntegrationsRssConnectRequest"];
12896
+ type IntegrationConfig = Schemas["IntegrationsIntegrationConfig"];
12897
+ /**
12898
+ * Conectar una tienda con claves creadas a mano (con permiso de **lectura**). El boton
12899
+ * ({@link IntegrationsResource.connectLink}) hace lo mismo sin copiar ninguna clave, y es mejor
12900
+ * siempre que la tienda lo permita: con enlaces permanentes "simples" no puede (2216).
12901
+ */
12902
+ type WooCommerceConnectRequest = Schemas["IntegrationsWooCommerceConnectRequest"];
12903
+ /**
12904
+ * Lo que se manda para conectar o reconectar. Tres formas y las distingue `provider`: con OAuth
12905
+ * viaja el `code`; sin el, el formulario de `config_fields` PLANO (el feed, o la tienda con sus
12906
+ * claves).
12907
+ */
12908
+ type IntegrationConnectRequest = Schemas["IntegrationsGoogleDriveConnectRequest"] | Schemas["IntegrationsRssConnectRequest"] | WooCommerceConnectRequest;
12909
+ /**
12910
+ * Un producto de una tienda conectada, ya normalizado: la misma forma sea cual sea la tienda.
12911
+ *
12912
+ * `external_id` es SIEMPRE una cadena, y es lo que va en `source.products` de un plan
12913
+ * `from_catalog`. `price` es TEXTO para copiar literal, como lo ensena la tienda (impuesto, simbolo,
12914
+ * rango): nunca un numero sobre el que hacer cuentas, y ausente es "sin precio". **`available: false`
12915
+ * es lo agotado**: se ensena marcado pero no se deja elegir, y un plan con uno se rechaza (2112).
12916
+ */
12917
+ type IntegrationCatalogProduct = Schemas["IntegrationsIntegrationCatalogProduct"];
12918
+ /**
12919
+ * Una pagina del catalogo de una tienda. Sin `next_cursor`, es la ultima. El cursor es OPACO: se
12920
+ * devuelve tal cual llego y no se construye ni se interpreta nunca.
12921
+ */
12922
+ type IntegrationCatalogPage = Schemas["IntegrationsIntegrationCatalogPage"];
12284
12923
  /** Lo que se puede cambiar de una integracion ya conectada. */
12285
12924
  type IntegrationUpdate = Operations["updateIntegration"]["requestBody"]["content"]["application/json"];
12286
12925
  /**
@@ -12331,6 +12970,11 @@ type AiPlanOptionsInput = Schemas["AiPlansAiPlanOptionsInput"];
12331
12970
  *
12332
12971
  * Y `options.link` es el enlace de destino de todos los pins del plan: se valida al crear (994) y
12333
12972
  * se tira si el plan no tiene ninguna red con `link`.
12973
+ *
12974
+ * **No toda red cabe en toda plantilla.** Las de `unsupported_networks` de la plantilla
12975
+ * ({@link PlannerTemplate}) se quedan fuera de `accounts`, o el plan se rechaza con el **2120**
12976
+ * antes de leer nada ni cobrar nada: hoy es YouTube en `from_images` y `from_catalog`, donde toda
12977
+ * publicacion es la foto de su fuente y YouTube solo sube video.
12334
12978
  */
12335
12979
  type AiPlanCreateRequest = Schemas["AiPlansAiPlanCreateRequest"];
12336
12980
  /**
@@ -12348,14 +12992,15 @@ type AiPlanDestination = Schemas["AiPlansAiPlanDestination"];
12348
12992
  * | `standard` | ninguno: no tiene fuente |
12349
12993
  * | `from_images` | `images` |
12350
12994
  * | `from_text` | `url` **o** `text` |
12351
- * | `from_catalog` | `id_account_catalog`, `product_catalog_id`, `products` |
12995
+ * | `from_catalog` | `id_account_catalog` + `product_catalog_id` (un catalogo de Meta) **o** `id_integration_catalog` (una tienda conectada), y `products` |
12352
12996
  * | `campaign` | `event_name`, `event_date` |
12353
12997
  *
12354
- * Se valida al CREAR el plan, no al generarlo: el articulo se descarga, el catalogo se lee en vivo
12355
- * y las fotos de los productos se copian, asi que una fuente que no funciona falla mientras el
12356
- * usuario sigue delante. Dos trampas que el tipo no puede decir: `text` GANA sobre `url` cuando
12357
- * llegan los dos —pegar el texto es lo que hace quien no consiguio que se descargara—, y
12358
- * `event_date` es un DIA DE CALENDARIO (`YYYY-MM-DD`), nunca un instante ISO.
12998
+ * Se valida al CREAR el plan, no al generarlo: el articulo se descarga, el catalogo o la tienda se
12999
+ * leen en vivo y las fotos de los productos se copian, asi que una fuente que no funciona falla
13000
+ * mientras el usuario sigue delante. Tres trampas que el tipo no puede decir: `text` GANA sobre
13001
+ * `url` cuando llegan los dos —pegar el texto es lo que hace quien no consiguio que se descargara—,
13002
+ * `event_date` es un DIA DE CALENDARIO (`YYYY-MM-DD`), nunca un instante ISO, y las dos fuentes de
13003
+ * `from_catalog` son EXCLUYENTES: mandar las dos es un 2112, no una mezcla.
12359
13004
  */
12360
13005
  type AiPlanSourceInput = Schemas["AiPlansAiPlanSourceInput"];
12361
13006
  /** Una foto de `from_images`. La descripcion es obligatoria a proposito: sin ella el modelo escribe sobre lo que cree ver. */
@@ -12368,11 +13013,12 @@ type AiPlanSource = Schemas["AiPlansAiPlanSource"];
12368
13013
  /**
12369
13014
  * Un producto del catalogo, copiado al crear el plan.
12370
13015
  *
12371
- * `price` viene **exactamente como lo devolvio la red** (`"9,99 €"`) y no se convierte nunca: el
12372
- * mismo campo es un numero en otros caminos de la API de Meta y no hay forma de saber si son
12373
- * unidades o centimos. Dividir por 100 "por si acaso" es como se anuncia un producto de 10 € a
12374
- * 0,10 €. Y `id_upload` es la foto ya copiada a un fichero de la organizacion, porque la URL del
12375
- * CDN de la red caduca.
13016
+ * `price` viene **exactamente como lo dio la fuente** (`"9,99 €"` de Meta, `"14,52 € IVA incluido"`
13017
+ * de una tienda) y no se convierte nunca: el mismo campo es un numero en otros caminos de la API de
13018
+ * Meta y no hay forma de saber si son unidades o centimos. Dividir por 100 "por si acaso" es como se
13019
+ * anuncia un producto de 10 € a 0,10 €. `permalink` es la ficha publica del producto: el texto la
13020
+ * pone donde un enlace se puede pulsar, y un pin lleva ahi si el plan no trae su `options.link`. Y
13021
+ * `id_upload` es la foto ya copiada a un fichero de la organizacion, porque la URL del catalogo caduca.
12376
13022
  */
12377
13023
  type AiPlanSourceProduct = Schemas["AiPlansAiPlanSourceProduct"];
12378
13024
  /**
@@ -12635,7 +13281,7 @@ declare class PlanVortexError extends Error {
12635
13281
  readonly retryAfter: number | undefined;
12636
13282
  constructor(code: number, message: string, options?: PlanVortexErrorOptions);
12637
13283
  }
12638
- /** 500-548 — tokens, apps de cliente, permisos. Incluye el 501 y el 522, los de token caducado. */
13284
+ /** 500-554 — tokens, apps de cliente, permisos, sesiones de conexion. Incluye el 501 y el 522, los de token caducado. */
12639
13285
  declare class AuthError extends PlanVortexError {
12640
13286
  }
12641
13287
  /** 601-612 — el usuario final. */
@@ -12982,4 +13628,4 @@ interface PlanVortexWebhooksOptions {
12982
13628
  */
12983
13629
  declare function planvortexWebhooks(options: PlanVortexWebhooksOptions): (request: WebhookRequestLike, response: WebhookResponseLike, next: (error?: unknown) => void) => void;
12984
13630
 
12985
- export { type ClientWithOrganizations 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 MessageTemplate as R, type SocialNetwork as S, type TopPublicationsResult as T, type Conversation as U, type ConversationTotals as V, type Message as W, type MessageInput as X, type Client as Y, type Organization as Z, type AiSettings as _, type ConnectResult as a, PLANVORTEX_ERROR_RANGES as a$, type PlanData as a0, type PlanUseData as a1, type ConnectToken as a2, type AiContext as a3, type SocialCredentialsInput as a4, type Product as a5, type ProductInput as a6, type ProductCatalog as a7, type ProductCatalogInput as a8, type PublicationInput as a9, type ClientPlan as aA, type CommentAuthor as aB, type CommentChange as aC, type ContactChannel as aD, ContactError as aE, type DashboardAiPlanRef as aF, type DashboardPublicationRef as aG, type DashboardRange as aH, type EngagementBase as aI, FileError as aJ, type FileFormat as aK, type FileProperties as aL, type FileType as aM, IntegrationError as aN, type IntegrationErrorChange as aO, type MessageChange as aP, type MessageOptions as aQ, type MessageType as aR, MessagingError as aS, type MetricRow as aT, NO_ERROR_CODE as aU, type components as aV, type operations as aW, type paths as aX, type webhooks as aY, type OpenEnum as aZ, OrganizationError as a_, type PublicationState as aa, type PublicationStats as ab, type PublicationStatsHistory as ac, type Upload as ad, AccountError as ae, type AccountMetricRow as af, type AccountStateChange as ag, type AccountWebhookChangeBase as ah, type AccountWithError as ai, type AiPlanCostEstimate as aj, type AiPlanDestination as ak, AiPlanError as al, type AiPlanNotice as am, type AiPlanOptions as an, type AiPlanOptionsInput as ao, type AiPlanResult as ap, type AiPlanResultsGroup as aq, type AiPlanResultsTemplateGroup as ar, type AiPlanSource as as, type AiPlanSourceImageInput as at, type AiPlanSourceInput as au, type AiPlanSourceProduct as av, type AiPlanState as aw, type ApiErrorBody as ax, type AspectRatios as ay, AuthError as az, type AccountMetrics as b, PlanLimitError as b0, PlanVortexAuthenticationError as b1, PlanVortexConfigError as b2, PlanVortexConnectionError as b3, PlanVortexError as b4, type PlanVortexErrorOptions as b5, type PlanVortexErrorRange as b6, type PlannerTemplateField as b7, type PlannerTemplateFieldType as b8, ProductError as b9, isTokenError as bA, messageContact as bB, messageContactId as bC, messageDirection as bD, messageFileIds as bE, messageFiles as bF, publication as bG, publicationId as bH, type HandleWebhookRequestOptions as bI, type PlanVortexWebhooksOptions as bJ, type RawWebhookBody as bK, type VerifyWebhookSignatureOptions as bL, WEBHOOK_EVENTS as bM, WEBHOOK_SIGNATURE_HEADERS as bN, WebhookBodyError as bO, type WebhookHeaders as bP, type WebhookRequestLike as bQ, type WebhookResponseLike as bR, WebhookSignatureError as bS, handleWebhookRequest as bT, isAccountStateChange as bU, isCommentChange as bV, isIntegrationErrorChange as bW, isMessageChange as bX, parseWebhookPayload as bY, planvortexWebhooks as bZ, verifyWebhookSignature as b_, type PublicationDestination as ba, PublicationError as bb, type PublicationErrorDetail as bc, type PublicationMetrics as bd, type PublicationStatsPoint as be, type PublicationType as bf, type PublicationsSummary as bg, type RssConfig as bh, type SocialAuthorizationMethod as bi, type SocialCredentials as bj, type SocialIdentifier as bk, type SocialIdentifierInput as bl, type SocialLimitsMap as bm, TOKEN_ERROR_CODES as bn, type TopPublication as bo, type UnknownWebhookChange as bp, UserError as bq, type WebhookAlgorithm as br, type WebhookChange as bs, type WebhookEvent as bt, type WithAccount as bu, type WithPublication as bv, account as bw, accountId as bx, errorFamilyForCode as by, isPlanVortexError as bz, type PersistentMenu as c, 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 };
13631
+ export { type Organization as $, type Account as A, type CommentThread as B, type ConnectLink as C, type Destination as D, type EnableResult as E, type CommentReplyResult as F, type ContactExtraData as G, type Contact as H, type ContactCreate as I, type ContactUpdate as J, type IntegrationProviderName as K, type IntegrationProvider as L, type MetricName as M, type Integration as N, type IntegrationConnectRequest as O, type Paginated as P, type IntegrationUpdate as Q, type IntegrationPickerConfig as R, type SocialNetwork as S, type TopPublicationsResult as T, type IntegrationCatalogPage as U, type MessageTemplate as V, type Conversation as W, type ConversationTotals as X, type Message as Y, type MessageInput as Z, type Client as _, type ConnectResult as a, type MetricRow as a$, type AiSettings as a0, type ClientWithOrganizations as a1, type AccountSelection as a2, type PlanData as a3, type PlanUseData as a4, type ConnectToken as a5, type AiContext as a6, type SocialCredentialsInput as a7, type Product as a8, type ProductInput as a9, type AiPlanState as aA, type ApiErrorBody as aB, type AspectRatios as aC, AuthError as aD, type ClientPlan as aE, type CommentAuthor as aF, type CommentChange as aG, type ConnectSessionAccount as aH, type ContactChannel as aI, ContactError as aJ, type DashboardAiPlanRef as aK, type DashboardPublicationRef as aL, type DashboardRange as aM, type EngagementBase as aN, FileError as aO, type FileFormat as aP, type FileProperties as aQ, type FileType as aR, type IntegrationCatalogProduct as aS, type IntegrationConfig as aT, IntegrationError as aU, type IntegrationErrorChange as aV, type IntegrationFormField as aW, type MessageChange as aX, type MessageOptions as aY, type MessageType as aZ, MessagingError as a_, type ProductCatalog as aa, type ProductCatalogInput as ab, type PublicationInput as ac, type PublicationState as ad, type PublicationStats as ae, type PublicationStatsHistory as af, type Upload as ag, AccountError as ah, type AccountMetricRow as ai, type AccountStateChange as aj, type AccountWebhookChangeBase as ak, type AccountWithError as al, type AiImageOrigin as am, type AiPlanCostEstimate as an, type AiPlanDestination as ao, AiPlanError as ap, type AiPlanNotice as aq, type AiPlanOptions as ar, type AiPlanOptionsInput as as, type AiPlanResult as at, type AiPlanResultsGroup as au, type AiPlanResultsTemplateGroup as av, type AiPlanSource as aw, type AiPlanSourceImageInput as ax, type AiPlanSourceInput as ay, type AiPlanSourceProduct as az, type ConnectSession as b, type WebhookResponseLike as b$, NO_ERROR_CODE as b0, type components as b1, type operations as b2, type paths as b3, type webhooks as b4, type OpenEnum as b5, OrganizationError as b6, PLANVORTEX_ERROR_RANGES as b7, PlanLimitError as b8, PlanVortexAuthenticationError as b9, type WebhookAlgorithm as bA, type WebhookChange as bB, type WebhookEvent as bC, type WithAccount as bD, type WithPublication as bE, type WooCommerceConnectRequest as bF, account as bG, accountId as bH, errorFamilyForCode as bI, isPlanVortexError as bJ, isTokenError as bK, messageContact as bL, messageContactId as bM, messageDirection as bN, messageFileIds as bO, messageFiles as bP, publication as bQ, publicationId as bR, type HandleWebhookRequestOptions as bS, type PlanVortexWebhooksOptions as bT, type RawWebhookBody as bU, type VerifyWebhookSignatureOptions as bV, WEBHOOK_EVENTS as bW, WEBHOOK_SIGNATURE_HEADERS as bX, WebhookBodyError as bY, type WebhookHeaders as bZ, type WebhookRequestLike as b_, PlanVortexConfigError as ba, PlanVortexConnectionError as bb, PlanVortexError as bc, type PlanVortexErrorOptions as bd, type PlanVortexErrorRange as be, type PlannerTemplateField as bf, type PlannerTemplateFieldType as bg, ProductError as bh, type PublicationAiGenerated as bi, type PublicationDestination as bj, PublicationError as bk, type PublicationErrorDetail as bl, type PublicationMetrics as bm, type PublicationStatsPoint as bn, type PublicationType as bo, type PublicationsSummary as bp, type RssConfig as bq, type SocialAuthorizationMethod as br, type SocialCredentials as bs, type SocialIdentifier as bt, type SocialIdentifierInput as bu, type SocialLimitsMap as bv, TOKEN_ERROR_CODES as bw, type TopPublication as bx, type UnknownWebhookChange as by, UserError as bz, type AccountMetrics as c, WebhookSignatureError as c0, handleWebhookRequest as c1, isAccountStateChange as c2, isCommentChange as c3, isIntegrationErrorChange as c4, isMessageChange as c5, parseWebhookPayload as c6, planvortexWebhooks as c7, verifyWebhookSignature as c8, type PersistentMenu as d, type Dashboard as e, type DashboardMetricsResult as f, type PublicationsSummaryResult as g, type PublicationsStatsResult as h, type PlanUse as i, type Publication as j, type AiPlanResultsSort as k, type PlannerTemplateName as l, type AiPlanCreateRequest as m, type AiPlanCreateResult as n, type AiPlan as o, type AiPlanResults as p, type ClientApp as q, type ClientAppInput as r, type SocialCapabilities as s, type CommentActions as t, type SocialLimits as u, type PublicationLimits as v, type AspectRatiosByNetwork as w, type PlannerTemplate as x, type CommentNetwork as y, type Comment as z };