planvortex 0.24.0 → 0.26.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.
@@ -207,7 +207,7 @@ interface paths {
207
207
  *
208
208
  * **The identifier has a format** (error 533): lowercase letters, numbers, `.`, `-` and `_`, starting with a letter or a number, 3 to 64 characters. Pick it carefully — it cannot be changed later (error 547).
209
209
  *
210
- * Every URL is validated: a bad entry in `allowed_domains` answers 531, in `redirect_urls` 532, and a bad `webhook_url` answers 535.
210
+ * Every URL is validated: a bad entry in `allowed_domains` answers 531, in `redirect_urls` 532, and a bad `webhook_url` answers 535. A `webhook_url` must be `https://` and point to a public address; the 535 says why in `data.reason` (`not_a_url`, `protocol`, `https_required`, `credentials` or `local_address`).
211
211
  *
212
212
  * **The secret is not in the response.** Read it with `GET /clients/{id_client}/apps/{id_app}/secret`.
213
213
  *
@@ -236,11 +236,9 @@ interface paths {
236
236
  get: operations["getClientApp"];
237
237
  /**
238
238
  * Update an app
239
- * @description Replaces the app's configuration. **Every field is overwritten with what you send**, so a `redirect_urls` you leave out becomes an empty list — send the whole object, not a patch.
239
+ * @description Updates the app's configuration. `name` is required. `allowed_domains`, `redirect_urls` and `webhook_url` are **kept when you leave them out**: to remove the webhook, send `webhook_url: null` or `""`. Until 28 November 2026 an update without `webhook_url` turned the webhook off; it no longer does.
240
240
  *
241
- * Changing `webhook_url` takes effect on the next event; there is no verification handshake.
242
- *
243
- * **It replaces every field with what the body carries.** `name`, `keycloak_client_idenfifier`, `allowed_domains`, `redirect_urls` and `webhook_url` are all written as sent, so omitting one erases it — sending an update without `webhook_url` turns the webhook off. Read the app first and send it back whole.
241
+ * Changing `webhook_url` takes effect on the next event; there is no verification handshake. A new or changed URL must be `https://` and point to a public address (error 535, with the reason in `data.reason`). To check it end to end, use «Test webhook» in the app's form in the dashboard.
244
242
  *
245
243
  * **`keycloak_client_idenfifier` is the one field that is NOT overwritten.** Sending a different one answers `ERROR_CODE_547` and nothing is written: it is the `client_id` your integration authenticates with, and renaming it would lock out everything already asking for tokens with the old one. Send it unchanged, or leave it out. If you need a different identifier, create another app.
246
244
  *
@@ -2532,7 +2530,9 @@ interface paths {
2532
2530
  put?: never;
2533
2531
  /**
2534
2532
  * Upload new file
2535
- * @description Upload new file to the received organization
2533
+ * @description Upload a new file to the received organization.
2534
+ *
2535
+ * **Made with AI.** Send `ai_generated` as `true` to declare it, or `false` to say it is not. Leave it out and the file decides: if its C2PA manifest or IPTC metadata says it was generated or edited with AI, it is stored marked with `source: "detected"` (see `AiImageOrigin`). The mark is read before any conversion, and the file is stored as it came.
2536
2536
  */
2537
2537
  post: operations["addUpload"];
2538
2538
  delete?: never;
@@ -2555,7 +2555,9 @@ interface paths {
2555
2555
  get: operations["getUpload"];
2556
2556
  /**
2557
2557
  * Update file by identifier
2558
- * @description Update file by identifier
2558
+ * @description Update an uploaded file: its cover, and whether it is made with AI. Only the properties sent are changed.
2559
+ *
2560
+ * **Made with AI.** `{"ai_generated": true}` marks it (`source: "user"`), `{"ai_generated": false}` unmarks it. What PlanVortex's planner generated cannot be unmarked (`811`). Changing the mark also updates `ai_generated.image` on the publications that use the file and have not been sent yet.
2559
2561
  */
2560
2562
  put: operations["updateUpload"];
2561
2563
  post?: never;
@@ -2587,6 +2589,8 @@ interface paths {
2587
2589
  * **The response is deliberately partial**: `uploads` carries what got in and `errors` what did not, so picking six files and getting five plus one named failure is the normal, expected outcome — not an error.
2588
2590
  *
2589
2591
  * Requires the `files:create` permission (`client_organization_files:create` for apps).
2592
+ *
2593
+ * The AI mark is read from each file before the HEIC conversion, as on upload (see `AiImageOrigin`). A wrong `ai_generated` on one file is reported for that file in `errors` (`812`).
2590
2594
  */
2591
2595
  post: operations["importUploads"];
2592
2596
  delete?: never;
@@ -2829,15 +2833,19 @@ interface webhooks {
2829
2833
  * A change happened (notification to your app)
2830
2834
  * @description PlanVortex `POST`s to the `webhook_url` of your client app when something happens. **The body is an array of changes**, and each one carries `field` telling you what it is — switch on it and ignore what you do not handle, because the list grows with the product.
2831
2835
  *
2832
- * Three shapes travel in that array. A change on an **account** (`WebhookChange`) always carries `id_account`, `id_organization` and `social_network`. A change on an **integration** (`IntegrationWebhookChange`) and the end of an **AI plan** (`AiPlanWebhookChange`) carry none of those, because they hang off the organization and not off any account.
2836
+ * Four shapes travel in that array. A change on an **account** (`WebhookChange`) always carries `id_account`, `id_organization` and `social_network`. A **publication** that finished (`PublicationWebhookChange`) carries those three plus `id_publication`. A change on an **integration** (`IntegrationWebhookChange`) and the end of an **AI plan** (`AiPlanWebhookChange`) carry neither `id_account` nor `social_network`, because they hang off the organization and not off any account.
2837
+ *
2838
+ * The events delivered today are `new_account`, `change_state_account`, `publication_published`, `publication_failed`, `messages`, `messaging_postbacks`, `messaging_seen`, `messaging_error`, `message_echoes`, `comments`, `integration_error`, `ai_plan_generated` and `ai_plan_failed`.
2833
2839
  *
2834
- * The events delivered today are `new_account`, `change_state_account`, `messages`, `messaging_postbacks`, `messaging_seen`, `messaging_error`, `message_echoes`, `comments`, `integration_error`, `ai_plan_generated` and `ai_plan_failed`.
2840
+ * **Messages and comments need a paid plan.** `messages`, `messaging_postbacks`, `messaging_seen`, `messaging_error`, `message_echoes` and `comments` are only sent while the client is on an active paid plan: on the free plan, or after a payment fails, they are not sent at all. Every other event goes out on every plan.
2835
2841
  *
2836
2842
  * ### Comments
2837
2843
  *
2838
2844
  * `field: "comments"` is the one for this section, and the comment itself travels in **`commentObj`** — a property of its own, never in `messageObj`. That is deliberate: a comment is not a message, it has no contact and it hangs off a publication. A consumer that only understands messages sees `commentObj` as absent and ignores the change, which is exactly what should happen.
2839
2845
  *
2840
- * **Which networks arrive this way:** Facebook and Instagram, because Meta pushes them, and TikTok, which pushes them within a few minutes. YouTube, LinkedIn and Google Business have no comment webhook, so those are polled by a background job and appear in the inbox within a few hours rather than instantly. X is polled too, and only when the organization turns it on, because reading replies there is billed per unit.
2846
+ * **Every network with comments sends this event.** Facebook, Instagram, TikTok and Telegram push their comments to PlanVortex, so they arrive within seconds or a few minutes. YouTube, LinkedIn, X, Discord, Bluesky, Threads and Google Business are read by a background job, so their comments arrive when that job finds them (each publication every three hours during its first two days, every twelve hours for the rest of its first week and once a day after that, up to a month; a Google Business listing every six hours; a Discord channel every five minutes), or earlier if someone opens that thread in the dashboard or through the API. X is read only when the organization turns it on, because reading replies there is billed per unit.
2847
+ *
2848
+ * Three things never arrive as `comments`: your own replies; a comment older than seven days that PlanVortex sees for the first time; and the first read of a Google Business listing or a Discord channel, which brings its whole history. Those are in the inbox anyway.
2841
2849
  *
2842
2850
  * **Meta repeats deliveries.** The same comment can arrive more than once; the backend is idempotent about it and so should you be — deduplicate on `commentObj.external_id`.
2843
2851
  *
@@ -2849,12 +2857,33 @@ interface webhooks {
2849
2857
  *
2850
2858
  * The event goes to **every** app of the client that has a `webhook_url`, not only to the one that created the plan. And it is not retried: if your endpoint was down when the plan finished, the `GET` still tells you how it ended, so on startup read the plans you were waiting for.
2851
2859
  *
2860
+ * ### Publications
2861
+ *
2862
+ * `publication_published` and `publication_failed` say that a publication has **finished**: it went out to the network, or it ended in `withErrors`. They are sent for every publication, the ones published on the spot, the scheduled ones when their time comes and the retries, so you no longer need to poll a scheduled publication to know whether it went out. A reel that the network is still processing (`publishing`) sends nothing until it is resolved.
2863
+ *
2864
+ * The change carries ids, the `state` and, when it went out, `external_identifier` (the id on the network) and `publish_date`. When it failed, `error` carries the first of `publication_errors` with its `code` and `message`. The text and the files are in `GET /organizations/{id_organization}/publish/{id_publication}`. These two events go out on every plan.
2865
+ *
2852
2866
  * ### WhatsApp replies sent from the phone
2853
2867
  *
2854
2868
  * A WhatsApp number can work in the **WhatsApp Business app** on a phone and in PlanVortex at the same time. What the business sends from the app arrives as `field: "message_echoes"`, with the message in `messageObj` as one of **ours**: `contact_id` is the person it was sent to and `from_contact_id` is absent. Store it in the thread; do not answer it. It does not open WhatsApp's 24-hour window.
2855
2869
  *
2856
2870
  * When a contact edits or deletes a message, or anyone reacts to one, no event is sent: the message itself changes, and the next read returns it with `edit_date`, `deleted_date` or its `reactions`.
2857
2871
  *
2872
+ * ### The URL, and what your endpoint has to answer
2873
+ *
2874
+ * - A **new or changed** `webhook_url` must be `https://` and point to a public address. `localhost`, a private IP or a name without a domain answers error 535 with `data.reason` (`not_a_url`, `protocol`, `https_required`, `credentials` or `local_address`). To test on your machine, use a tunnel (ngrok, Cloudflare Tunnel) and save its https URL.
2875
+ * - Answer with any **2xx within 10 seconds**. After 10 seconds the connection is closed. Answer first and process the event afterwards.
2876
+ * - **Redirects are not followed.** A 3xx counts as a failed delivery: save the final URL.
2877
+ * - Every delivery carries `User-Agent: PlanVortex-Webhooks/1.0`.
2878
+ *
2879
+ * ### Testing from the dashboard
2880
+ *
2881
+ * The form of each app in the dashboard has a **«Test webhook»** section. It sends an example of the event you choose to the saved `webhook_url`, signed with the app's secret like a real event, and shows what your server answered: the status code, the time it took and the first kilobyte of the body. A test carries `test: true` in the change and the header `x-planvortex-test: 1`, and only goes to that app.
2882
+ *
2883
+ * The same section lists the app's **recent deliveries** (real events and tests from the last seven days) with the status your server answered, or why it could not be reached. The content of the events is not kept.
2884
+ *
2885
+ * A step-by-step guide, with signature checks in Node, Python and PHP and what to look at when nothing arrives, is at https://planvortex.com/en/resources/social-media-webhooks.
2886
+ *
2858
2887
  * ### Verifying the signature
2859
2888
  *
2860
2889
  * Every delivery carries the body signed with your app's secret, twice:
@@ -2988,16 +3017,21 @@ interface components {
2988
3017
  /** @description `true` when the account was already connected before this authorization (a reconnection). Confirming it takes no slot of the plan. */
2989
3018
  already_enabled: boolean;
2990
3019
  };
2991
- 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")[];
3020
+ 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" | "organicFollowerGain" | "paidFollowers" | "impressionCount" | "uniqueImpressionsCount" | "clickCount" | "likeCount" | "commentCount" | "shareCount" | "allPageViews" | "allPageViewsUnique" | "overviewPageViews" | "overviewPageViewsUnique" | "customButtonClicks" | "careersPageViews" | "follows" | "share" | "views")[];
2992
3021
  /** @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. */
2993
3022
  AccountsMetricModel: {
2994
3023
  /** @enum {string} */
2995
3024
  group: "day" | "month" | "year";
2996
3025
  /** @description One row per metric and per group. Empty when nothing was measured in the range. */
2997
3026
  stats: {
3027
+ /**
3028
+ * @description How the days of the group were put together. `sum` for what happens every day (impressions, page views, followers gained). `last` for a running total (followers): adding up thirty snapshots of 15 followers would say 450.
3029
+ * @enum {string}
3030
+ */
3031
+ aggregation?: "sum" | "last";
2998
3032
  /**
2999
3033
  * Format: date-time
3000
- * @description First measurement of the group, which is what dates the row.
3034
+ * @description First measurement of the group: the moment its first measured day ENDED, so the midnight after it. To place the row on a chart use `period`.
3001
3035
  */
3002
3036
  date: string;
3003
3037
  /** @enum {string} */
@@ -3006,7 +3040,12 @@ interface components {
3006
3040
  group_value: number;
3007
3041
  /** @description The metric's RAW name, the one the network publishes — the same names `GET .../metric_list` returns. */
3008
3042
  name: string;
3009
- /** @description Sum of the measurements in the group. */
3043
+ /**
3044
+ * @description The day, month or year that was measured, matching `group`: `2026-11-24`, `2026-11` or `2026`.
3045
+ * @example 2026-11-24
3046
+ */
3047
+ period?: string;
3048
+ /** @description The value of the group, already put together as `aggregation` says. Rows with `sum` can be added up across groups; rows with `last` cannot. */
3010
3049
  value: number;
3011
3050
  }[];
3012
3051
  };
@@ -3094,21 +3133,52 @@ interface components {
3094
3133
  website?: string;
3095
3134
  };
3096
3135
  /**
3097
- * @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.
3136
+ * @description Marks a file as made or retouched with AI, and says who says so (`source`):
3137
+ *
3138
+ * - `planvortex`: generated by the PlanVortex AI planner. It carries `provider`, `model`, `generated_at` and `id_ai_plan`, and it **cannot be unmarked** (error `811`).
3139
+ * - `user`: declared by whoever uploaded it, with `ai_generated: true` on upload or later with `PUT`. `tool` is the tool they named, if any.
3140
+ * - `detected`: the file said so itself when it was uploaded. Its C2PA manifest or its IPTC metadata carried the digital source type `trainedAlgorithmicMedia` (generated) or `compositeWithTrainedAlgorithmicMedia` (edited with AI). PlanVortex reads what the generator declared and does not guess: it cannot see invisible watermarks such as SynthID, nor metadata already stripped (screenshots, files forwarded through messaging apps, many editors). A C2PA manifest that says the photo came from a camera is not marked.
3141
+ *
3142
+ * `user` and `detected` can be unmarked with `PUT .../uploads/{id_upload}` and `{"ai_generated": false}`. Absent means nobody says the file was made with AI.
3098
3143
  *
3099
- * 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.
3144
+ * What the mark does: TikTok receives `is_aigc` and shows its «Creator labeled as AI-generated» label; when PlanVortex crops or recompresses an image for a network it writes the IPTC marker back, which is what Meta, LinkedIn and Pinterest read; and `Publication.ai_generated.image` follows it, also on publications not sent yet when the mark changes. 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.
3100
3145
  *
3101
- * 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.
3146
+ * Images made with the planner's default model also carry a signed C2PA manifest, IPTC metadata and a SynthID watermark in the file itself. The C2PA signature does not survive a change of pixels.
3102
3147
  */
3103
3148
  AiImageOrigin: {
3104
- /** Format: date-time */
3105
- generated_at: string;
3106
- /** @description The AI plan that generated it. */
3149
+ /**
3150
+ * @description The IPTC term the file carried: generated with AI, or edited with AI.
3151
+ * @enum {string}
3152
+ */
3153
+ digital_source_type?: "trainedAlgorithmicMedia" | "compositeWithTrainedAlgorithmicMedia";
3154
+ /**
3155
+ * @description Where the file carried the mark: a C2PA manifest or the IPTC metadata. Present on `detected`, and on `user` when the file also carried one.
3156
+ * @enum {string}
3157
+ */
3158
+ found_in?: "c2pa" | "iptc";
3159
+ /**
3160
+ * Format: date-time
3161
+ * @description `planvortex` only: when it was generated.
3162
+ */
3163
+ generated_at?: string;
3164
+ /** @description `planvortex` only: the AI plan that generated it. */
3107
3165
  id_ai_plan?: string;
3108
- /** @description The model, as it was requested, for instance `google/gemini-3.1-flash-image`. */
3109
- model: string;
3110
- /** @description The AI provider that answered: `openrouter` unless the client brought its own key. */
3111
- provider: string;
3166
+ /**
3167
+ * Format: date-time
3168
+ * @description `user` and `detected`: when it was marked.
3169
+ */
3170
+ marked_at?: string;
3171
+ /** @description `planvortex` only: the model, as it was requested, for instance `google/gemini-3.1-flash-image`. */
3172
+ model?: string;
3173
+ /** @description `planvortex` only: the AI provider that answered, `openrouter` unless the client brought its own key. */
3174
+ provider?: string;
3175
+ /**
3176
+ * @description Who says the file was made with AI.
3177
+ * @enum {string}
3178
+ */
3179
+ source: "planvortex" | "user" | "detected";
3180
+ /** @description `user` and `detected`: the tool, when it is known. What the person named («ElevenLabs»), or the software agent of the C2PA action («Adobe Firefly»). */
3181
+ tool?: string;
3112
3182
  };
3113
3183
  /**
3114
3184
  * @description What ONE AI plan achieved with what it published.
@@ -3561,7 +3631,9 @@ interface components {
3561
3631
  *
3562
3632
  * **The body is an array of changes, not a single object**, and it carries two signature headers computed with this app's secret over the **raw** body: `x-hub-signature` (`sha1=<hex>`) and `x-hub-signature-256` (`sha256=<hex>`). Verify against the bytes you received — parsing the JSON and re-serialising it changes them and the signature will not match.
3563
3633
  *
3564
- * The events delivered today are `new_account`, `change_state_account`, `messages`, `messaging_postbacks`, `messaging_seen`, `messaging_error`, `message_echoes`, `comments`, `integration_error`, `ai_plan_generated` and `ai_plan_failed`. The payload is documented in the `comments` specification. **Every** app of the client that has a `webhook_url` receives every event, not only the app whose call caused it: with two apps, each event arrives twice. Delivery is best effort: PlanVortex does not retry a webhook that fails.
3634
+ * The events delivered today are `new_account`, `change_state_account`, `publication_published`, `publication_failed`, `messages`, `messaging_postbacks`, `messaging_seen`, `messaging_error`, `message_echoes`, `comments`, `integration_error`, `ai_plan_generated` and `ai_plan_failed`. Messages and comments are only sent on an active paid plan. The payload is documented in the `comments` specification.
3635
+ *
3636
+ * Your endpoint has to answer a 2xx within 10 seconds, and redirects are not followed. The dashboard can send a signed test of any event to this URL («Test webhook», with `test: true` in the change) and lists the app's recent deliveries. **Every** app of the client that has a `webhook_url` receives every event, not only the app whose call caused it: with two apps, each event arrives twice. Delivery is best effort: PlanVortex does not retry a webhook that fails.
3565
3637
  */
3566
3638
  webhook_url?: string;
3567
3639
  };
@@ -3581,7 +3653,7 @@ interface components {
3581
3653
  name: string;
3582
3654
  /** @description URLs the connect flow is allowed to come back to. A `redirect_uri` that is not in this list is refused when issuing a temporal connect token (error 532). */
3583
3655
  redirect_urls?: string[];
3584
- /** @description Where PlanVortex posts events. Has to be a valid URL (error 535). See `ClientApp.webhook_url` for what arrives and how it is signed. */
3656
+ /** @description Where PlanVortex posts events. It must be an `https://` URL that points to a public address (error 535, with the reason in `data.reason`): `localhost`, a private IP or a name without a domain are refused. Send `null` or `""` to remove it. See `ClientApp.webhook_url` for what arrives and how it is signed. */
3585
3657
  webhook_url?: string;
3586
3658
  };
3587
3659
  /** @description The error shape of the token endpoint, and **only** of the token endpoint. Every other endpoint in the API answers with `Error` instead. */
@@ -3882,6 +3954,8 @@ interface components {
3882
3954
  * @enum {string}
3883
3955
  */
3884
3956
  template: "standard" | "from_images" | "from_text" | "from_catalog" | "campaign";
3957
+ /** @description Only present on a **test** delivery, sent with the «Test webhook» button of the dashboard. A real event never carries it. A test also carries the header `x-planvortex-test: 1`, and its ids are made up except `id_organization`, which is a real organization of yours. */
3958
+ test?: boolean;
3885
3959
  /** @description How many draft publications the plan holds. A failed plan can still hold the drafts of its failed attempt; retrying it discards them. */
3886
3960
  total_publications: number;
3887
3961
  /** @description **How many** non-blocking notices the plan has, not the notices themselves: those are in `AiPlan.warnings`. Above zero the plan is still generated and usable. */
@@ -4018,6 +4092,52 @@ interface components {
4018
4092
  id_organization: string;
4019
4093
  /** @description `google_drive` or `rss` today. **This list grows**: treat it as an open enumeration. */
4020
4094
  provider: string;
4095
+ /** @description Only present on a **test** delivery, sent with the «Test webhook» button of the dashboard. A real event never carries it. A test also carries the header `x-planvortex-test: 1`, and its ids are made up except `id_organization`, which is a real organization of yours. */
4096
+ test?: boolean;
4097
+ };
4098
+ /**
4099
+ * @description One change in the array PlanVortex posts to your app's `webhook_url`, when a **publication finished**: `publication_published` when it went out to the network, `publication_failed` when it ended in `withErrors`.
4100
+ *
4101
+ * It carries ids, the state and, on failure, the first error. Read the publication itself with `GET /organizations/{id_organization}/publish/{id_publication}`, which stays the source of truth if a delivery is lost.
4102
+ * @example {
4103
+ * "field": "publication_published",
4104
+ * "id_publication": "6748c2a1f0e4b7a91c3d5e20",
4105
+ * "id_organization": "6748c2a1f0e4b7a91c3d5e10",
4106
+ * "id_account": "6748c2a1f0e4b7a91c3d5e11",
4107
+ * "social_network": "instagram",
4108
+ * "state": "sended",
4109
+ * "external_identifier": "17890000000000000",
4110
+ * "publish_date": "2026-11-28T09:00:04.000Z"
4111
+ * }
4112
+ */
4113
+ CommentsPublicationWebhookChange: {
4114
+ /** @description Only in `publication_failed`: the first entry of `publication_errors`, without its `data`. */
4115
+ error?: components["schemas"]["CommentsPublicationWebhookError"];
4116
+ /** @description Only in `publication_published`: the publication's id on the network. */
4117
+ external_identifier?: string;
4118
+ /** @enum {string} */
4119
+ field: "publication_published" | "publication_failed";
4120
+ id_account: string;
4121
+ id_organization: string;
4122
+ id_publication: string;
4123
+ /**
4124
+ * Format: date-time
4125
+ * @description Only in `publication_published`: when it went out.
4126
+ */
4127
+ publish_date?: string;
4128
+ social_network: components["schemas"]["SocialNetwork"];
4129
+ /**
4130
+ * @description `sended` when it went out, `withErrors` when it failed.
4131
+ * @enum {string}
4132
+ */
4133
+ state: "sended" | "withErrors";
4134
+ /** @description Only present on a **test** delivery, sent with the «Test webhook» button of the dashboard. A real event never carries it. A test also carries the header `x-planvortex-test: 1`, and its ids are made up except `id_organization`, which is a real organization of yours. */
4135
+ test?: boolean;
4136
+ };
4137
+ /** @description Why a publication failed: the first entry of its `publication_errors`, without its `data`. The `code` is from the PlanVortex error catalogue. */
4138
+ CommentsPublicationWebhookError: {
4139
+ code: number;
4140
+ message: string;
4021
4141
  };
4022
4142
  /** @description The coarse gates of one network */
4023
4143
  CommentsSocialCapabilities: {
@@ -4049,7 +4169,7 @@ interface components {
4049
4169
  /**
4050
4170
  * @description One change in the array PlanVortex posts to your app's `webhook_url`, when the change concerns a social **account**.
4051
4171
  *
4052
- * An integration that stopped working has a shape of its own (`IntegrationWebhookChange`), and so does an AI plan that finished (`AiPlanWebhookChange`). One delivery can mix them. Switch on `field`, and ignore what you do not handle.
4172
+ * A publication that finished has a shape of its own (`PublicationWebhookChange`), and so do an integration that stopped working (`IntegrationWebhookChange`) and an AI plan that finished (`AiPlanWebhookChange`). One delivery can mix them. Switch on `field`, and ignore what you do not handle.
4053
4173
  */
4054
4174
  CommentsWebhookChange: {
4055
4175
  /** @description The comment. Present only when `field` is `comments`, and absent even then if the author deleted a comment we had never seen. */
@@ -4082,6 +4202,8 @@ interface components {
4082
4202
  [key: string]: unknown;
4083
4203
  };
4084
4204
  social_network: components["schemas"]["SocialNetwork"];
4205
+ /** @description Only present on a **test** delivery, sent with the «Test webhook» button of the dashboard. A real event never carries it. A test also carries the header `x-planvortex-test: 1`, and its ids are made up except `id_organization`, which is a real organization of yours. */
4206
+ test?: boolean;
4085
4207
  };
4086
4208
  /** @description A person the organization exchanges messages with. The same contact can be reachable on several channels — that is what `social_identifiers` is. */
4087
4209
  Contact: {
@@ -4405,7 +4527,7 @@ interface components {
4405
4527
  * The catalogue grows with the product, so treat an unknown `code` as a generic failure instead of rejecting it.
4406
4528
  */
4407
4529
  Error: {
4408
- /** @description PlanVortex error code. Ranges: 500-554 auth, tokens, client apps and connect sessions · 601-612 user · 700-716 social accounts · 800-810 files · 900-996 publications · 1000-1003 general · 1100-1111 organizations · 1200-1207 roles · 1300-1309 client plan · 1400-1408 organization plan · 1500-1517 messaging · 1600-1601 contacts · 1900-1906 payments · 2000-2099 products · 2100-2199 AI plans · 2200-2299 integrations · 2500-2599 publication fields, the ones that no longer fit in 900-996 (visibility, made for kids, TikTok's interactions and commercial content) · 2600-2699 comments, the ones that no longer fit in 945-948 · 2700-2799 Discord · 2800-2899 TikTok comments, the ones that go through TikTok API for Business. */
4530
+ /** @description PlanVortex error code. Ranges: 500-554 auth, tokens, client apps and connect sessions · 601-612 user · 700-716 social accounts · 800-812 files · 900-996 publications · 1000-1003 general · 1100-1111 organizations · 1200-1207 roles · 1300-1309 client plan · 1400-1408 organization plan · 1500-1517 messaging · 1600-1601 contacts · 1900-1906 payments · 2000-2099 products · 2100-2199 AI plans · 2200-2299 integrations · 2500-2599 publication fields, the ones that no longer fit in 900-996 (visibility, made for kids, TikTok's interactions and commercial content) · 2600-2699 comments, the ones that no longer fit in 945-948 · 2700-2799 Discord · 2800-2899 TikTok comments, the ones that go through TikTok API for Business. */
4409
4531
  code: number;
4410
4532
  /** @description Extra context attached to the error, when there is any. */
4411
4533
  data?: {
@@ -12273,6 +12395,13 @@ interface operations {
12273
12395
  requestBody: {
12274
12396
  content: {
12275
12397
  "multipart/form-data": {
12398
+ /**
12399
+ * @description Optional. `true`: made or retouched with AI (`source: "user"`). `false`: not, even if the file's metadata says otherwise. Absent: the file's metadata decides. Any other value is error `812`, and nothing is stored.
12400
+ * @enum {string}
12401
+ */
12402
+ ai_generated?: "true" | "false";
12403
+ /** @description Optional: the AI tool, for instance `ElevenLabs`. Stored as `ai_generated.tool`. */
12404
+ ai_tool?: string;
12276
12405
  /**
12277
12406
  * Format: binary
12278
12407
  * @description file uploaded as multipart/formdata
@@ -12306,6 +12435,7 @@ interface operations {
12306
12435
  * | `809` | Only videos con have a thumbnail image |
12307
12436
  * | `810` | Thumbnail must be an image |
12308
12437
  * | `523` | Invalid application |
12438
+ * | `812` | Invalid AI declaration: `ai_generated` must be true or false, and `ai_tool` a text of up to 100 characters |
12309
12439
  */
12310
12440
  400: {
12311
12441
  headers: {
@@ -12388,9 +12518,13 @@ interface operations {
12388
12518
  requestBody: {
12389
12519
  content: {
12390
12520
  "application/json": {
12521
+ /** @description `true`: made or retouched with AI. `false`: not (error `811` if PlanVortex generated it). An object here, such as the upload's own `ai_generated` sent back unchanged, is ignored. */
12522
+ ai_generated?: boolean;
12523
+ /** @description Optional: the AI tool, for instance `ElevenLabs`. Stored as `ai_generated.tool`. */
12524
+ ai_tool?: string;
12391
12525
  /** @description Identifier of ANOTHER upload, which must be an image, to use as the cover. Returns error 810 if it does not exist or is not an image. Replacing an existing cover deletes the previous file. */
12392
12526
  cover_image?: string;
12393
- /** @description Point of the video, in milliseconds, used as the cover frame. Used by TikTok videos. WARNING: this property is written unconditionally, so omitting it clears the stored value - always send it back if you want to keep it. */
12527
+ /** @description Point of the video, in milliseconds, used as the cover frame. Used by TikTok videos. Only changed when sent. */
12394
12528
  cover_offset?: number;
12395
12529
  };
12396
12530
  };
@@ -12415,6 +12549,8 @@ interface operations {
12415
12549
  * | `809` | Only videos con have a thumbnail image |
12416
12550
  * | `810` | Thumbnail must be an image |
12417
12551
  * | `523` | Invalid application |
12552
+ * | `811` | This file was generated with AI by PlanVortex and cannot be unmarked |
12553
+ * | `812` | Invalid AI declaration: `ai_generated` must be true or false, and `ai_tool` a text of up to 100 characters |
12418
12554
  */
12419
12555
  400: {
12420
12556
  headers: {
@@ -12498,7 +12634,15 @@ interface operations {
12498
12634
  requestBody: {
12499
12635
  content: {
12500
12636
  "application/json": {
12637
+ /** @description Optional: the AI mark for the whole batch, as on upload. `true` declares every file, `false` none; absent lets each file's metadata decide. A file can override it with its own `ai_generated`. */
12638
+ ai_generated?: boolean;
12639
+ /** @description Optional: the AI tool, for instance `ElevenLabs`. Stored as `ai_generated.tool`. */
12640
+ ai_tool?: string;
12501
12641
  files: {
12642
+ /** @description Optional: the AI mark of this file. Wins over the batch's. */
12643
+ ai_generated?: boolean;
12644
+ /** @description Optional: the AI tool, for instance `ElevenLabs`. Stored as `ai_generated.tool`. */
12645
+ ai_tool?: string;
12502
12646
  /** @description File identifier at the provider (the Drive file id). */
12503
12647
  external_id: string;
12504
12648
  /** @description Type reported by the picker. Used to reject early; the real type of the body wins. */
@@ -12972,11 +13116,11 @@ interface operations {
12972
13116
  * }
12973
13117
  * ]
12974
13118
  */
12975
- "application/json": (components["schemas"]["CommentsWebhookChange"] | components["schemas"]["CommentsIntegrationWebhookChange"] | components["schemas"]["CommentsAiPlanWebhookChange"])[];
13119
+ "application/json": (components["schemas"]["CommentsWebhookChange"] | components["schemas"]["CommentsPublicationWebhookChange"] | components["schemas"]["CommentsIntegrationWebhookChange"] | components["schemas"]["CommentsAiPlanWebhookChange"])[];
12976
13120
  };
12977
13121
  };
12978
13122
  responses: {
12979
- /** @description Your endpoint acknowledged the delivery. PlanVortex does not retry: a delivery that fails is logged and dropped, so treat the inbox endpoints as the way to catch up on anything you missed. */
13123
+ /** @description Your endpoint acknowledged the delivery with a 2xx within 10 seconds. Redirects are not followed. PlanVortex does not retry: a delivery that fails is logged and dropped, so treat the inbox endpoints as the way to catch up on anything you missed. The dashboard shows each app's recent deliveries. */
12980
13124
  200: {
12981
13125
  headers: {
12982
13126
  [name: string]: unknown;
@@ -13398,14 +13542,15 @@ type Upload = Override<Schemas["Upload"], {
13398
13542
  /** Ancho, alto, duracion y tamano de un fichero, mas en que redes cabe **por su recorte**. */
13399
13543
  type FileProperties = Schemas["FileProperties"];
13400
13544
  /**
13401
- * De que modelo salio una imagen: el `ai_generated` de un {@link Upload}. **Solo lo llevan las
13402
- * imagenes que genero la IA** —nunca una foto subida, ni la de un producto de una tienda— y no se
13403
- * puede editar.
13545
+ * Que un fichero esta hecho o retocado con IA, y quien lo dice: el `ai_generated` de un {@link Upload}.
13546
+ * `source` es `planvortex` (lo genero el planificador; no se puede quitar), `user` (lo declaro quien
13547
+ * lo subio) o `detected` (el propio fichero lo decia al subirlo, en su C2PA o en su XMP de IPTC).
13548
+ * Ausente = nadie dice que lo sea. Se marca y se desmarca con `uploads.update(..., { ai_generated })`.
13404
13549
  *
13405
13550
  * Es lo que necesitas para cumplir TU parte del AI Act: el articulo 50.4 obliga a quien publica a
13406
13551
  * avisar a su audiencia cuando una imagen generada puede pasar por real, y con este campo pintas la
13407
- * etiqueta en tu producto. La marca en el propio fichero (C2PA, IPTC y SynthID con el modelo por
13408
- * defecto) la pone PlanVortex; el C2PA no sobrevive a un recorte, el IPTC si.
13552
+ * etiqueta en tu producto. TikTok lo recibe como `is_aigc`, y al recortar una imagen PlanVortex
13553
+ * repone el IPTC; el C2PA no sobrevive a un recorte.
13409
13554
  */
13410
13555
  type AiImageOrigin = Schemas["AiImageOrigin"];
13411
13556
  /**
@@ -14144,7 +14289,7 @@ declare class UserError extends PlanVortexError {
14144
14289
  /** 700-716 — cuentas sociales: desconectada, sin permisos en la red, sin refrescar. */
14145
14290
  declare class AccountError extends PlanVortexError {
14146
14291
  }
14147
- /** 800-810 — ficheros: formato no admitido, demasiado grande, conversión fallida. */
14292
+ /** 800-812 — ficheros: formato no admitido, demasiado grande, conversión fallida, y la marca de IA (811, 812). */
14148
14293
  declare class FileError extends PlanVortexError {
14149
14294
  }
14150
14295
  /** 900-996 — publicaciones, incluidos los límites por red (caracteres, imágenes, duración), los
@@ -14252,7 +14397,7 @@ type WebhookAlgorithm = keyof typeof WEBHOOK_SIGNATURE_HEADERS;
14252
14397
  * **La lista crece**, así que un `field` desconocido se ignora en vez de romper: para eso está
14253
14398
  * {@link UnknownWebhookChange}.
14254
14399
  */
14255
- declare const WEBHOOK_EVENTS: readonly ["new_account", "change_state_account", "messages", "messaging_postbacks", "messaging_seen", "messaging_error", "message_echoes", "comments", "integration_error", "ai_plan_generated", "ai_plan_failed"];
14400
+ declare const WEBHOOK_EVENTS: readonly ["new_account", "change_state_account", "publication_published", "publication_failed", "messages", "messaging_postbacks", "messaging_seen", "messaging_error", "message_echoes", "comments", "integration_error", "ai_plan_generated", "ai_plan_failed"];
14256
14401
  type WebhookEvent = (typeof WEBHOOK_EVENTS)[number];
14257
14402
  /** Lo que trae todo cambio que cuelga de una CUENTA, pase lo que pase. */
14258
14403
  interface AccountWebhookChangeBase {
@@ -14264,6 +14409,8 @@ interface AccountWebhookChangeBase {
14264
14409
  * PlanVortex por su cuenta, como `new_account`.
14265
14410
  */
14266
14411
  originalChange?: Record<string, unknown>;
14412
+ /** Ver {@link isTestChange}: sólo en las pruebas que se mandan desde el panel */
14413
+ test?: boolean;
14267
14414
  }
14268
14415
  /** Una cuenta se conectó, o cambió de estado: dejó de funcionar, se refrescó, se desconectó. */
14269
14416
  interface AccountStateChange extends AccountWebhookChangeBase {
@@ -14328,6 +14475,32 @@ interface IntegrationErrorChange {
14328
14475
  provider: string;
14329
14476
  /** El código del catálogo de PlanVortex que dice qué pasó. Los de integraciones van del 2200 al 2299. */
14330
14477
  error_code: number;
14478
+ /** Ver {@link isTestChange} */
14479
+ test?: boolean;
14480
+ }
14481
+ /**
14482
+ * Una publicación TERMINÓ: salió a la red (`publication_published`) o se quedó en `withErrors`
14483
+ * (`publication_failed`). Llega tanto para las que se publican al momento como para las programadas
14484
+ * cuando les toca y para los reintentos, así que ya no hace falta preguntar por una programada para
14485
+ * saber si salió. Un reel que la red aún procesa no manda nada hasta que se resuelve.
14486
+ *
14487
+ * Sólo trae ids, el estado y, si falló, el primer error. El texto y los ficheros, con
14488
+ * `pv.publications.get()`, que sigue diciendo cómo acabó si esta entrega se pierde.
14489
+ */
14490
+ interface PublicationChange extends AccountWebhookChangeBase {
14491
+ field: "publication_published" | "publication_failed";
14492
+ id_publication: string;
14493
+ /** `sended` si salió, `withErrors` si falló. Siempre cuadra con `field`. */
14494
+ state: "sended" | "withErrors";
14495
+ /** Sólo en `publication_published`: el id de la publicación en la red */
14496
+ external_identifier?: string;
14497
+ /** Sólo en `publication_published`: cuándo salió */
14498
+ publish_date?: string;
14499
+ /** Sólo en `publication_failed`: el primero de `publication_errors`, sin su `data` */
14500
+ error?: {
14501
+ code: number;
14502
+ message: string;
14503
+ };
14331
14504
  }
14332
14505
  /**
14333
14506
  * Un plan de IA TERMINÓ: salió (`ai_plan_generated`) o se rindió (`ai_plan_failed`).
@@ -14361,6 +14534,8 @@ interface AiPlanChange {
14361
14534
  code: number;
14362
14535
  message: string;
14363
14536
  };
14537
+ /** Ver {@link isTestChange} */
14538
+ test?: boolean;
14364
14539
  }
14365
14540
  /**
14366
14541
  * Un `field` que esta versión del paquete todavía no conoce.
@@ -14380,7 +14555,15 @@ interface UnknownWebhookChange {
14380
14555
  * `CommentChange | UnknownWebhookChange`. Para estrechar de verdad están los predicados
14381
14556
  * {@link isCommentChange} y compañía, que es la forma recomendada.
14382
14557
  */
14383
- type WebhookChange = AccountStateChange | MessageChange | MessageEchoChange | CommentChange | IntegrationErrorChange | AiPlanChange | UnknownWebhookChange;
14558
+ type WebhookChange = AccountStateChange | PublicationChange | MessageChange | MessageEchoChange | CommentChange | IntegrationErrorChange | AiPlanChange | UnknownWebhookChange;
14559
+ /** Una publicación salió o falló. Mira `field` (o `state`) para saber cuál. */
14560
+ declare function isPublicationChange(change: WebhookChange): change is PublicationChange;
14561
+ /**
14562
+ * Una PRUEBA mandada desde «Probar webhook» en el panel, no un evento de verdad. Lleva `test: true`
14563
+ * (y la cabecera `x-planvortex-test: 1`), está firmada igual que uno real y sus ids son inventados,
14564
+ * salvo `id_organization`. Lo normal es contestar 200 y no hacer nada más con ella.
14565
+ */
14566
+ declare function isTestChange(change: WebhookChange): boolean;
14384
14567
  /** Una cuenta se conectó o cambió de estado. */
14385
14568
  declare function isAccountStateChange(change: WebhookChange): change is AccountStateChange;
14386
14569
  /** Algo pasó en la mensajería. Incluye el visto y el rechazo de la red, no sólo el mensaje nuevo. */
@@ -14538,4 +14721,4 @@ interface PlanVortexWebhooksOptions {
14538
14721
  */
14539
14722
  declare function planvortexWebhooks(options: PlanVortexWebhooksOptions): (request: WebhookRequestLike, response: WebhookResponseLike, next: (error?: unknown) => void) => void;
14540
14723
 
14541
- export { type ConversationRead as $, type Account as A, type Comment as B, type ConnectLink as C, type Destination as D, type EnableResult as E, type CommentThread as F, type CommentReplyResult as G, type ContactExtraData as H, type Contact as I, type ContactCreate as J, type ContactUpdate as K, type IntegrationProviderName as L, type MetricName as M, type IntegrationProvider as N, type Integration as O, type Paginated as P, type IntegrationConnectRequest as Q, type IntegrationUpdate as R, type SocialNetwork as S, type TopPublicationsResult as T, type IntegrationPickerConfig as U, type IntegrationCatalogPage as V, type MessageTemplate as W, type Conversation as X, type ConversationTotals as Y, type Message as Z, type MessageInput as _, type ConnectResult as a, type MessageOptions as a$, type Client as a0, type Organization as a1, type AiSettings as a2, type ClientWithOrganizations as a3, type AccountSelection as a4, type PlanData as a5, type PlanUseData as a6, type ConnectToken as a7, type AiContext as a8, type SocialCredentialsInput as a9, type AiPlanSourceInput as aA, type AiPlanSourceProduct as aB, type AiPlanState as aC, type ApiErrorBody as aD, type AspectRatios as aE, AuthError as aF, type ClientPlan as aG, type CommentAuthor as aH, type CommentChange as aI, type ConnectSessionAccount as aJ, type ContactChannel as aK, ContactError as aL, type DashboardAiPlanRef as aM, type DashboardPublicationRef as aN, type DashboardRange as aO, type EngagementBase as aP, FileError as aQ, type FileFormat as aR, type FileProperties as aS, type FileType as aT, type IntegrationCatalogProduct as aU, type IntegrationConfig as aV, IntegrationError as aW, type IntegrationErrorChange as aX, type IntegrationFormField as aY, type MessageChange as aZ, type MessageEchoChange as a_, type Product as aa, type ProductInput as ab, type ProductCatalog as ac, type ProductCatalogInput as ad, type PublicationInput as ae, type PublicationState as af, type PublicationStats as ag, type PublicationStatsHistory as ah, type Upload as ai, AccountError as aj, type AccountMetricRow as ak, type AccountStateChange as al, type AccountWebhookChangeBase as am, type AccountWithError as an, type AiImageOrigin as ao, type AiPlanCostEstimate as ap, type AiPlanDestination as aq, AiPlanError as ar, type AiPlanNotice as as, type AiPlanOptions as at, type AiPlanOptionsInput as au, type AiPlanResult as av, type AiPlanResultsGroup as aw, type AiPlanResultsTemplateGroup as ax, type AiPlanSource as ay, type AiPlanSourceImageInput as az, type ConnectSession as b, WEBHOOK_EVENTS as b$, type MessageType as b0, MessagingError as b1, type MetricRow as b2, NO_ERROR_CODE as b3, type components as b4, type operations as b5, type paths as b6, type webhooks as b7, type OpenEnum as b8, OrganizationError as b9, TOKEN_ERROR_CODES as bA, type TopPublication as bB, type UnknownWebhookChange as bC, UserError as bD, type WebhookAlgorithm as bE, type WebhookChange as bF, type WebhookEvent as bG, type WithAccount as bH, type WithPublication as bI, type WooCommerceConnectRequest as bJ, account as bK, accountId as bL, errorFamilyForCode as bM, isPlanVortexError as bN, isTokenError as bO, messageContact as bP, messageContactId as bQ, messageDirection as bR, messageFileIds as bS, messageFiles as bT, publication as bU, publicationId as bV, type AiPlanChange as bW, type HandleWebhookRequestOptions as bX, type PlanVortexWebhooksOptions as bY, type RawWebhookBody as bZ, type VerifyWebhookSignatureOptions as b_, PLANVORTEX_ERROR_RANGES as ba, PlanLimitError as bb, PlanVortexAuthenticationError as bc, PlanVortexConfigError as bd, PlanVortexConnectionError as be, PlanVortexError as bf, type PlanVortexErrorOptions as bg, type PlanVortexErrorRange as bh, type PlannerTemplateField as bi, type PlannerTemplateFieldType as bj, ProductError as bk, type PublicationAiGenerated as bl, type PublicationDestination as bm, PublicationError as bn, type PublicationErrorDetail as bo, type PublicationMetrics as bp, type PublicationPending as bq, type PublicationStatsPoint as br, type PublicationType as bs, type PublicationsSummary as bt, type RssConfig as bu, type SocialAuthorizationMethod as bv, type SocialCredentials as bw, type SocialIdentifier as bx, type SocialIdentifierInput as by, type SocialLimitsMap as bz, type AccountMetrics as c, WEBHOOK_SIGNATURE_HEADERS as c0, WebhookBodyError as c1, type WebhookHeaders as c2, type WebhookRequestLike as c3, type WebhookResponseLike as c4, WebhookSignatureError as c5, handleWebhookRequest as c6, isAccountStateChange as c7, isAiPlanChange as c8, isCommentChange as c9, isIntegrationErrorChange as ca, isMessageChange as cb, isMessageEchoChange as cc, parseWebhookPayload as cd, planvortexWebhooks as ce, verifyWebhookSignature as cf, type PublishSettings as d, type PersistentMenu as e, type Dashboard as f, type DashboardMetricsResult as g, type PublicationsSummaryResult as h, type PublicationsStatsResult as i, type PlanUse as j, type Publication as k, type AiPlanResultsSort as l, type PlannerTemplateName as m, type AiPlanCreateRequest as n, type AiPlanCreateResult as o, type AiPlan as p, type AiPlanResults as q, type ClientApp as r, type ClientAppInput as s, type SocialCapabilities as t, type CommentActions as u, type SocialLimits as v, type PublicationLimits as w, type AspectRatiosByNetwork as x, type PlannerTemplate as y, type CommentNetwork as z };
14724
+ export { type ConversationRead as $, type Account as A, type Comment as B, type ConnectLink as C, type Destination as D, type EnableResult as E, type CommentThread as F, type CommentReplyResult as G, type ContactExtraData as H, type Contact as I, type ContactCreate as J, type ContactUpdate as K, type IntegrationProviderName as L, type MetricName as M, type IntegrationProvider as N, type Integration as O, type Paginated as P, type IntegrationConnectRequest as Q, type IntegrationUpdate as R, type SocialNetwork as S, type TopPublicationsResult as T, type IntegrationPickerConfig as U, type IntegrationCatalogPage as V, type MessageTemplate as W, type Conversation as X, type ConversationTotals as Y, type Message as Z, type MessageInput as _, type ConnectResult as a, type MessageOptions as a$, type Client as a0, type Organization as a1, type AiSettings as a2, type ClientWithOrganizations as a3, type AccountSelection as a4, type PlanData as a5, type PlanUseData as a6, type ConnectToken as a7, type AiContext as a8, type SocialCredentialsInput as a9, type AiPlanSourceInput as aA, type AiPlanSourceProduct as aB, type AiPlanState as aC, type ApiErrorBody as aD, type AspectRatios as aE, AuthError as aF, type ClientPlan as aG, type CommentAuthor as aH, type CommentChange as aI, type ConnectSessionAccount as aJ, type ContactChannel as aK, ContactError as aL, type DashboardAiPlanRef as aM, type DashboardPublicationRef as aN, type DashboardRange as aO, type EngagementBase as aP, FileError as aQ, type FileFormat as aR, type FileProperties as aS, type FileType as aT, type IntegrationCatalogProduct as aU, type IntegrationConfig as aV, IntegrationError as aW, type IntegrationErrorChange as aX, type IntegrationFormField as aY, type MessageChange as aZ, type MessageEchoChange as a_, type Product as aa, type ProductInput as ab, type ProductCatalog as ac, type ProductCatalogInput as ad, type PublicationInput as ae, type PublicationState as af, type PublicationStats as ag, type PublicationStatsHistory as ah, type Upload as ai, AccountError as aj, type AccountMetricRow as ak, type AccountStateChange as al, type AccountWebhookChangeBase as am, type AccountWithError as an, type AiImageOrigin as ao, type AiPlanCostEstimate as ap, type AiPlanDestination as aq, AiPlanError as ar, type AiPlanNotice as as, type AiPlanOptions as at, type AiPlanOptionsInput as au, type AiPlanResult as av, type AiPlanResultsGroup as aw, type AiPlanResultsTemplateGroup as ax, type AiPlanSource as ay, type AiPlanSourceImageInput as az, type ConnectSession as b, type VerifyWebhookSignatureOptions as b$, type MessageType as b0, MessagingError as b1, type MetricRow as b2, NO_ERROR_CODE as b3, type components as b4, type operations as b5, type paths as b6, type webhooks as b7, type OpenEnum as b8, OrganizationError as b9, TOKEN_ERROR_CODES as bA, type TopPublication as bB, type UnknownWebhookChange as bC, UserError as bD, type WebhookAlgorithm as bE, type WebhookChange as bF, type WebhookEvent as bG, type WithAccount as bH, type WithPublication as bI, type WooCommerceConnectRequest as bJ, account as bK, accountId as bL, errorFamilyForCode as bM, isPlanVortexError as bN, isTokenError as bO, messageContact as bP, messageContactId as bQ, messageDirection as bR, messageFileIds as bS, messageFiles as bT, publication as bU, publicationId as bV, type AiPlanChange as bW, type HandleWebhookRequestOptions as bX, type PlanVortexWebhooksOptions as bY, type PublicationChange as bZ, type RawWebhookBody as b_, PLANVORTEX_ERROR_RANGES as ba, PlanLimitError as bb, PlanVortexAuthenticationError as bc, PlanVortexConfigError as bd, PlanVortexConnectionError as be, PlanVortexError as bf, type PlanVortexErrorOptions as bg, type PlanVortexErrorRange as bh, type PlannerTemplateField as bi, type PlannerTemplateFieldType as bj, ProductError as bk, type PublicationAiGenerated as bl, type PublicationDestination as bm, PublicationError as bn, type PublicationErrorDetail as bo, type PublicationMetrics as bp, type PublicationPending as bq, type PublicationStatsPoint as br, type PublicationType as bs, type PublicationsSummary as bt, type RssConfig as bu, type SocialAuthorizationMethod as bv, type SocialCredentials as bw, type SocialIdentifier as bx, type SocialIdentifierInput as by, type SocialLimitsMap as bz, type AccountMetrics as c, WEBHOOK_EVENTS as c0, WEBHOOK_SIGNATURE_HEADERS as c1, WebhookBodyError as c2, type WebhookHeaders as c3, type WebhookRequestLike as c4, type WebhookResponseLike as c5, WebhookSignatureError as c6, handleWebhookRequest as c7, isAccountStateChange as c8, isAiPlanChange as c9, isCommentChange as ca, isIntegrationErrorChange as cb, isMessageChange as cc, isMessageEchoChange as cd, isPublicationChange as ce, isTestChange as cf, parseWebhookPayload as cg, planvortexWebhooks as ch, verifyWebhookSignature as ci, type PublishSettings as d, type PersistentMenu as e, type Dashboard as f, type DashboardMetricsResult as g, type PublicationsSummaryResult as h, type PublicationsStatsResult as i, type PlanUse as j, type Publication as k, type AiPlanResultsSort as l, type PlannerTemplateName as m, type AiPlanCreateRequest as n, type AiPlanCreateResult as o, type AiPlan as p, type AiPlanResults as q, type ClientApp as r, type ClientAppInput as s, type SocialCapabilities as t, type CommentActions as u, type SocialLimits as v, type PublicationLimits as w, type AspectRatiosByNetwork as x, type PlannerTemplate as y, type CommentNetwork as z };