@vitrina/api 14.48.0 → 14.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +9 -5
- package/dist/index.d.ts +9 -5
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -89500,7 +89500,7 @@ interface paths {
|
|
|
89500
89500
|
};
|
|
89501
89501
|
/**
|
|
89502
89502
|
* Fetch one campaign with its stats
|
|
89503
|
-
* @description The campaign plus its delivery counters — this is the read to poll while a send is in progress. A WhatsApp campaign that is not finished also carries `pacing` (ADR 0129): its number’s tier and `limit_per_24h`, `sent_last_24h`, `pending`, `waiting` (a paced campaign waiting for the window) with `next_batch_at`, `estimated_completion_at` and `windows_remaining`, plus the effective `send_window` (`send_window_source`: campaign | workspace), its `window_label` and `next_window_opens_at` (outside the window now); null when the budget cannot be read. With a `send_schedule` (ADR 0139) it also carries `schedule_label`, `next_slot_at`, `batches` (what each slot did: planned / sent / failed / skipped_reason, oldest first) and `schedule` — the pending part simulated slot by slot.
|
|
89503
|
+
* @description The campaign plus its delivery counters — this is the read to poll while a send is in progress. A WhatsApp campaign that is not finished also carries `pacing` (ADR 0129): its number’s tier and `limit_per_24h`, `sent_last_24h`, `pending`, `waiting` (a paced campaign waiting for the window) with `next_batch_at`, `estimated_completion_at` and `windows_remaining`, plus the effective `send_window` (`send_window_source`: campaign | workspace), its `window_label` and `next_window_opens_at` (outside the window now); null when the budget cannot be read. With a `send_schedule` (ADR 0139) it also carries `schedule_label`, `next_slot_at`, `batches` (what each slot did: planned / sent / failed / skipped_reason, oldest first) and `schedule` — the pending part simulated slot by slot. A campaign paused with `paused_reason: delivery_guard` carries `paused_detail` (`sends`, `undeliverable` 131026, `withheld` 131049, `rate` 0-1), computed from the recipients; null otherwise.
|
|
89504
89504
|
*/
|
|
89505
89505
|
get: {
|
|
89506
89506
|
parameters: {
|
|
@@ -90434,7 +90434,7 @@ interface paths {
|
|
|
90434
90434
|
put?: never;
|
|
90435
90435
|
/**
|
|
90436
90436
|
* Pause the campaign
|
|
90437
|
-
* @description Legal from `sending` and `scheduled`; a 409 otherwise. Stops further delivery — messages already sent are already sent.
|
|
90437
|
+
* @description Legal from `sending` and `scheduled`; a 409 otherwise. Stops further delivery — messages already sent are already sent. A person's pause reads `paused_reason: manual`. The platform also pauses on its own: `messaging_limit` (Meta pushed back; resumes by itself within the hour), `number_quality` (the WhatsApp number's quality turned RED; every sending or scheduled campaign on the number and its WABA siblings stops, and only a person resumes it), `budget_exhausted`, `delivery_guard` (WhatsApp: undeliverable 131026 + withheld 131049 failures passed 10% of the sends, after 50), `pilot`, `schedule_exhausted`, `config_error` and `reputation_guard` (email). Each automatic pause fires the `campaign.paused` webhook.
|
|
90438
90438
|
*/
|
|
90439
90439
|
post: {
|
|
90440
90440
|
parameters: {
|
|
@@ -90586,6 +90586,8 @@ interface paths {
|
|
|
90586
90586
|
*
|
|
90587
90587
|
* An optional body `{ send_mode }` switches how the rest is sent — e.g. an `asap` campaign the messaging-limit budget paused (`budget_exhausted`) resumed as `paced` continues by itself across the following days. A pilot (`paused_reason: pilot`) resumes into the full send.
|
|
90588
90588
|
*
|
|
90589
|
+
* **A WhatsApp number whose quality is not GREEN asks for confirmation.** When the stored quality of the campaign's number is YELLOW or RED (or unknown after a `number_quality` pause), a resume without `acknowledge_quality: true` answers 409 with `details: { reason: "number_quality_not_green", quality_rating: "RED" | "YELLOW" | null }` and leaves it paused; with it, the campaign resumes. Nothing resumes a `number_quality` pause automatically.
|
|
90590
|
+
*
|
|
90589
90591
|
* A 409 if the campaign is not paused. An EMAIL campaign is re-checked against the connected-mailbox rule before it resumes (a mailbox may have been connected, or the sending domain removed, while it was paused): a 422 `CAMPAIGN_FROM_CONNECTED_MAILBOX` leaves it paused.
|
|
90590
90592
|
*/
|
|
90591
90593
|
post: {
|
|
@@ -188051,7 +188053,7 @@ interface components {
|
|
|
188051
188053
|
/** @enum {string} */
|
|
188052
188054
|
kind: "list";
|
|
188053
188055
|
/** @enum {string} */
|
|
188054
|
-
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals";
|
|
188056
|
+
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals" | "campaigns";
|
|
188055
188057
|
filter: {
|
|
188056
188058
|
[key: string]: string | number | boolean;
|
|
188057
188059
|
};
|
|
@@ -188093,7 +188095,7 @@ interface components {
|
|
|
188093
188095
|
/** @enum {string} */
|
|
188094
188096
|
kind: "list";
|
|
188095
188097
|
/** @enum {string} */
|
|
188096
|
-
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals";
|
|
188098
|
+
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals" | "campaigns";
|
|
188097
188099
|
filter: {
|
|
188098
188100
|
[key: string]: string | number | boolean;
|
|
188099
188101
|
};
|
|
@@ -188120,7 +188122,7 @@ interface components {
|
|
|
188120
188122
|
/** @enum {string} */
|
|
188121
188123
|
kind: "list";
|
|
188122
188124
|
/** @enum {string} */
|
|
188123
|
-
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals";
|
|
188125
|
+
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals" | "campaigns";
|
|
188124
188126
|
filter: {
|
|
188125
188127
|
[key: string]: string | number | boolean;
|
|
188126
188128
|
};
|
|
@@ -190358,6 +190360,8 @@ interface components {
|
|
|
190358
190360
|
* @enum {string}
|
|
190359
190361
|
*/
|
|
190360
190362
|
send_mode?: "paced" | "asap";
|
|
190363
|
+
/** @description Resume a WhatsApp campaign although its number's quality is not GREEN (YELLOW or RED, or unknown after a `number_quality` pause). Without it such a resume answers 409 with `details.reason: number_quality_not_green` and `details.quality_rating`. */
|
|
190364
|
+
acknowledge_quality?: boolean;
|
|
190361
190365
|
};
|
|
190362
190366
|
CampaignRecipient: {
|
|
190363
190367
|
/** Format: uuid */
|
package/dist/index.d.ts
CHANGED
|
@@ -89500,7 +89500,7 @@ interface paths {
|
|
|
89500
89500
|
};
|
|
89501
89501
|
/**
|
|
89502
89502
|
* Fetch one campaign with its stats
|
|
89503
|
-
* @description The campaign plus its delivery counters — this is the read to poll while a send is in progress. A WhatsApp campaign that is not finished also carries `pacing` (ADR 0129): its number’s tier and `limit_per_24h`, `sent_last_24h`, `pending`, `waiting` (a paced campaign waiting for the window) with `next_batch_at`, `estimated_completion_at` and `windows_remaining`, plus the effective `send_window` (`send_window_source`: campaign | workspace), its `window_label` and `next_window_opens_at` (outside the window now); null when the budget cannot be read. With a `send_schedule` (ADR 0139) it also carries `schedule_label`, `next_slot_at`, `batches` (what each slot did: planned / sent / failed / skipped_reason, oldest first) and `schedule` — the pending part simulated slot by slot.
|
|
89503
|
+
* @description The campaign plus its delivery counters — this is the read to poll while a send is in progress. A WhatsApp campaign that is not finished also carries `pacing` (ADR 0129): its number’s tier and `limit_per_24h`, `sent_last_24h`, `pending`, `waiting` (a paced campaign waiting for the window) with `next_batch_at`, `estimated_completion_at` and `windows_remaining`, plus the effective `send_window` (`send_window_source`: campaign | workspace), its `window_label` and `next_window_opens_at` (outside the window now); null when the budget cannot be read. With a `send_schedule` (ADR 0139) it also carries `schedule_label`, `next_slot_at`, `batches` (what each slot did: planned / sent / failed / skipped_reason, oldest first) and `schedule` — the pending part simulated slot by slot. A campaign paused with `paused_reason: delivery_guard` carries `paused_detail` (`sends`, `undeliverable` 131026, `withheld` 131049, `rate` 0-1), computed from the recipients; null otherwise.
|
|
89504
89504
|
*/
|
|
89505
89505
|
get: {
|
|
89506
89506
|
parameters: {
|
|
@@ -90434,7 +90434,7 @@ interface paths {
|
|
|
90434
90434
|
put?: never;
|
|
90435
90435
|
/**
|
|
90436
90436
|
* Pause the campaign
|
|
90437
|
-
* @description Legal from `sending` and `scheduled`; a 409 otherwise. Stops further delivery — messages already sent are already sent.
|
|
90437
|
+
* @description Legal from `sending` and `scheduled`; a 409 otherwise. Stops further delivery — messages already sent are already sent. A person's pause reads `paused_reason: manual`. The platform also pauses on its own: `messaging_limit` (Meta pushed back; resumes by itself within the hour), `number_quality` (the WhatsApp number's quality turned RED; every sending or scheduled campaign on the number and its WABA siblings stops, and only a person resumes it), `budget_exhausted`, `delivery_guard` (WhatsApp: undeliverable 131026 + withheld 131049 failures passed 10% of the sends, after 50), `pilot`, `schedule_exhausted`, `config_error` and `reputation_guard` (email). Each automatic pause fires the `campaign.paused` webhook.
|
|
90438
90438
|
*/
|
|
90439
90439
|
post: {
|
|
90440
90440
|
parameters: {
|
|
@@ -90586,6 +90586,8 @@ interface paths {
|
|
|
90586
90586
|
*
|
|
90587
90587
|
* An optional body `{ send_mode }` switches how the rest is sent — e.g. an `asap` campaign the messaging-limit budget paused (`budget_exhausted`) resumed as `paced` continues by itself across the following days. A pilot (`paused_reason: pilot`) resumes into the full send.
|
|
90588
90588
|
*
|
|
90589
|
+
* **A WhatsApp number whose quality is not GREEN asks for confirmation.** When the stored quality of the campaign's number is YELLOW or RED (or unknown after a `number_quality` pause), a resume without `acknowledge_quality: true` answers 409 with `details: { reason: "number_quality_not_green", quality_rating: "RED" | "YELLOW" | null }` and leaves it paused; with it, the campaign resumes. Nothing resumes a `number_quality` pause automatically.
|
|
90590
|
+
*
|
|
90589
90591
|
* A 409 if the campaign is not paused. An EMAIL campaign is re-checked against the connected-mailbox rule before it resumes (a mailbox may have been connected, or the sending domain removed, while it was paused): a 422 `CAMPAIGN_FROM_CONNECTED_MAILBOX` leaves it paused.
|
|
90590
90592
|
*/
|
|
90591
90593
|
post: {
|
|
@@ -188051,7 +188053,7 @@ interface components {
|
|
|
188051
188053
|
/** @enum {string} */
|
|
188052
188054
|
kind: "list";
|
|
188053
188055
|
/** @enum {string} */
|
|
188054
|
-
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals";
|
|
188056
|
+
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals" | "campaigns";
|
|
188055
188057
|
filter: {
|
|
188056
188058
|
[key: string]: string | number | boolean;
|
|
188057
188059
|
};
|
|
@@ -188093,7 +188095,7 @@ interface components {
|
|
|
188093
188095
|
/** @enum {string} */
|
|
188094
188096
|
kind: "list";
|
|
188095
188097
|
/** @enum {string} */
|
|
188096
|
-
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals";
|
|
188098
|
+
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals" | "campaigns";
|
|
188097
188099
|
filter: {
|
|
188098
188100
|
[key: string]: string | number | boolean;
|
|
188099
188101
|
};
|
|
@@ -188120,7 +188122,7 @@ interface components {
|
|
|
188120
188122
|
/** @enum {string} */
|
|
188121
188123
|
kind: "list";
|
|
188122
188124
|
/** @enum {string} */
|
|
188123
|
-
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals";
|
|
188125
|
+
screen: "conversations" | "busquedas" | "contacts_demand" | "clinic_call_today" | "clinic_inventory" | "transferencias" | "pipelines" | "price_approvals" | "campaigns";
|
|
188124
188126
|
filter: {
|
|
188125
188127
|
[key: string]: string | number | boolean;
|
|
188126
188128
|
};
|
|
@@ -190358,6 +190360,8 @@ interface components {
|
|
|
190358
190360
|
* @enum {string}
|
|
190359
190361
|
*/
|
|
190360
190362
|
send_mode?: "paced" | "asap";
|
|
190363
|
+
/** @description Resume a WhatsApp campaign although its number's quality is not GREEN (YELLOW or RED, or unknown after a `number_quality` pause). Without it such a resume answers 409 with `details.reason: number_quality_not_green` and `details.quality_rating`. */
|
|
190364
|
+
acknowledge_quality?: boolean;
|
|
190361
190365
|
};
|
|
190362
190366
|
CampaignRecipient: {
|
|
190363
190367
|
/** Format: uuid */
|
package/package.json
CHANGED