@vitrina/api 14.11.0 → 14.12.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 +23 -0
- package/dist/index.d.ts +23 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -114219,6 +114219,8 @@ interface paths {
|
|
|
114219
114219
|
*
|
|
114220
114220
|
* Each row also carries `ad_origin` (the `AdOrigin` schema) — the Meta ad that opened the thread, in ONE shape whatever the channel (click-to-WhatsApp or an Instagram DM ad), or `null` for an organic thread. `platform` is the thread channel; `ad_external_id` is Meta's ad id (`null` for a boosted post); `ad_name` and `campaign_name` are `null` when the Ads read does not know them; `title` is the ADVERTISER'S copy, never the customer's words; `thumbnail_url` is Vitrina's durable copy of the creative when `media_archived` is `true`, else Meta's own link, which expires — render it with a fallback; `captured_at` is when the thread opened. Meta's own object stays on `ad_referral`, verbatim and write-once, in the channel's spelling (`source_id`/`ctwa_clid` on WhatsApp; `source: 'ADS'`, `ad_id`, `ads_context_data` on Instagram).
|
|
114221
114221
|
*
|
|
114222
|
+
* Each row also carries `campaign_origin` — the newest campaign send stored in the thread (`null` when none): its campaign, when it left, whether the send created the thread, and whether it is still the newest message (`awaiting_reply`). `fromCampaign=true` lists every such thread, closed ones included.
|
|
114223
|
+
*
|
|
114222
114224
|
* Rows here do NOT carry `ad_origin_nudge` — that field is single-conversation-read only, to avoid a per-row integration lookup on every page of the inbox.
|
|
114223
114225
|
*
|
|
114224
114226
|
* `fields=summary` answers the SAME page with only the identifying and funnel scalars per row — `id`, `display_id`, `channel`, `source`, `status`, `handler`, `assignee_user_id`, `contact_id`, `ticket_id`, `awaiting_human_since`, `first_ai_message_at`, `last_message_date`, `created_at`, `ad_origin` — plus `contact_name`, `ticket_status` and `current_stage_id` off the embeds, and `assignee_name` / `unread` when the list computed them (an api_key has no read markers, so no `unread`). No `contact`, `ticket`, `lastMessage`, `tags`, `marketplaceWindow` or `last_call`. `meta` and `counts` are unchanged. A 20-row page is ~147k characters at `full` (the default, byte-identical to omitting the parameter) and a fraction of that at `summary`; page with `summary` to choose, then `GET /conversations/{id}` for one thread whole.
|
|
@@ -114249,6 +114251,7 @@ interface paths {
|
|
|
114249
114251
|
filtered?: boolean | null;
|
|
114250
114252
|
aiReplied?: boolean | null;
|
|
114251
114253
|
fromAd?: boolean | null;
|
|
114254
|
+
fromCampaign?: boolean | null;
|
|
114252
114255
|
sort?: "created_at" | "updated_at" | "last_message_date";
|
|
114253
114256
|
order?: "asc" | "desc";
|
|
114254
114257
|
include?: "counts";
|
|
@@ -114549,6 +114552,7 @@ interface paths {
|
|
|
114549
114552
|
"application/json": {
|
|
114550
114553
|
data: {
|
|
114551
114554
|
ad_origin: components["schemas"]["AdOrigin"];
|
|
114555
|
+
campaign_origin?: components["schemas"]["ConversationCampaignOrigin"];
|
|
114552
114556
|
}[];
|
|
114553
114557
|
meta?: {
|
|
114554
114558
|
[key: string]: unknown;
|
|
@@ -115096,6 +115100,7 @@ interface paths {
|
|
|
115096
115100
|
"application/json": {
|
|
115097
115101
|
data: {
|
|
115098
115102
|
ad_origin: components["schemas"]["AdOrigin"];
|
|
115103
|
+
campaign_origin?: components["schemas"]["ConversationCampaignOrigin"];
|
|
115099
115104
|
};
|
|
115100
115105
|
meta?: {
|
|
115101
115106
|
[key: string]: unknown;
|
|
@@ -180190,6 +180195,11 @@ interface components {
|
|
|
180190
180195
|
replied_at: string | null;
|
|
180191
180196
|
/** Format: uuid */
|
|
180192
180197
|
replied_conversation_id: string | null;
|
|
180198
|
+
/**
|
|
180199
|
+
* Format: uuid
|
|
180200
|
+
* @description The conversation the send was stored in — created by the send (born closed) or the live thread it was appended to. Null before the send, or for a send the backfill has not linked yet.
|
|
180201
|
+
*/
|
|
180202
|
+
conversation_id?: string | null;
|
|
180193
180203
|
created_at: string;
|
|
180194
180204
|
};
|
|
180195
180205
|
CampaignResults: {
|
|
@@ -180207,6 +180217,8 @@ interface components {
|
|
|
180207
180217
|
failed: number;
|
|
180208
180218
|
suppressed: number;
|
|
180209
180219
|
pending: number;
|
|
180220
|
+
/** @description Conversations this campaign's sends created («conversaciones iniciadas»). A send to a contact with a live thread is appended there and not counted. */
|
|
180221
|
+
conversations_created: number;
|
|
180210
180222
|
};
|
|
180211
180223
|
/** @description 0–1 fractions; null when the denominator is 0. */
|
|
180212
180224
|
rates: {
|
|
@@ -181822,6 +181834,17 @@ interface components {
|
|
|
181822
181834
|
/** @description When the thread opened from the ad (the conversation creation time). */
|
|
181823
181835
|
captured_at: string | null;
|
|
181824
181836
|
} | null;
|
|
181837
|
+
/** @description List rows only: the newest campaign send stored in the thread (`null` when none). */
|
|
181838
|
+
ConversationCampaignOrigin: {
|
|
181839
|
+
/** Format: uuid */
|
|
181840
|
+
campaign_id: string;
|
|
181841
|
+
campaign_name: string | null;
|
|
181842
|
+
sent_at: string | null;
|
|
181843
|
+
/** @description The send CREATED this thread (born closed, `source = campaign`). */
|
|
181844
|
+
started_by_campaign: boolean;
|
|
181845
|
+
/** @description The newest message in the thread is that send — «Enviada · sin respuesta». */
|
|
181846
|
+
awaiting_reply: boolean;
|
|
181847
|
+
} | null;
|
|
181825
181848
|
MessageAttachment: {
|
|
181826
181849
|
/** @description Position in `media_urls`. */
|
|
181827
181850
|
index: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -114219,6 +114219,8 @@ interface paths {
|
|
|
114219
114219
|
*
|
|
114220
114220
|
* Each row also carries `ad_origin` (the `AdOrigin` schema) — the Meta ad that opened the thread, in ONE shape whatever the channel (click-to-WhatsApp or an Instagram DM ad), or `null` for an organic thread. `platform` is the thread channel; `ad_external_id` is Meta's ad id (`null` for a boosted post); `ad_name` and `campaign_name` are `null` when the Ads read does not know them; `title` is the ADVERTISER'S copy, never the customer's words; `thumbnail_url` is Vitrina's durable copy of the creative when `media_archived` is `true`, else Meta's own link, which expires — render it with a fallback; `captured_at` is when the thread opened. Meta's own object stays on `ad_referral`, verbatim and write-once, in the channel's spelling (`source_id`/`ctwa_clid` on WhatsApp; `source: 'ADS'`, `ad_id`, `ads_context_data` on Instagram).
|
|
114221
114221
|
*
|
|
114222
|
+
* Each row also carries `campaign_origin` — the newest campaign send stored in the thread (`null` when none): its campaign, when it left, whether the send created the thread, and whether it is still the newest message (`awaiting_reply`). `fromCampaign=true` lists every such thread, closed ones included.
|
|
114223
|
+
*
|
|
114222
114224
|
* Rows here do NOT carry `ad_origin_nudge` — that field is single-conversation-read only, to avoid a per-row integration lookup on every page of the inbox.
|
|
114223
114225
|
*
|
|
114224
114226
|
* `fields=summary` answers the SAME page with only the identifying and funnel scalars per row — `id`, `display_id`, `channel`, `source`, `status`, `handler`, `assignee_user_id`, `contact_id`, `ticket_id`, `awaiting_human_since`, `first_ai_message_at`, `last_message_date`, `created_at`, `ad_origin` — plus `contact_name`, `ticket_status` and `current_stage_id` off the embeds, and `assignee_name` / `unread` when the list computed them (an api_key has no read markers, so no `unread`). No `contact`, `ticket`, `lastMessage`, `tags`, `marketplaceWindow` or `last_call`. `meta` and `counts` are unchanged. A 20-row page is ~147k characters at `full` (the default, byte-identical to omitting the parameter) and a fraction of that at `summary`; page with `summary` to choose, then `GET /conversations/{id}` for one thread whole.
|
|
@@ -114249,6 +114251,7 @@ interface paths {
|
|
|
114249
114251
|
filtered?: boolean | null;
|
|
114250
114252
|
aiReplied?: boolean | null;
|
|
114251
114253
|
fromAd?: boolean | null;
|
|
114254
|
+
fromCampaign?: boolean | null;
|
|
114252
114255
|
sort?: "created_at" | "updated_at" | "last_message_date";
|
|
114253
114256
|
order?: "asc" | "desc";
|
|
114254
114257
|
include?: "counts";
|
|
@@ -114549,6 +114552,7 @@ interface paths {
|
|
|
114549
114552
|
"application/json": {
|
|
114550
114553
|
data: {
|
|
114551
114554
|
ad_origin: components["schemas"]["AdOrigin"];
|
|
114555
|
+
campaign_origin?: components["schemas"]["ConversationCampaignOrigin"];
|
|
114552
114556
|
}[];
|
|
114553
114557
|
meta?: {
|
|
114554
114558
|
[key: string]: unknown;
|
|
@@ -115096,6 +115100,7 @@ interface paths {
|
|
|
115096
115100
|
"application/json": {
|
|
115097
115101
|
data: {
|
|
115098
115102
|
ad_origin: components["schemas"]["AdOrigin"];
|
|
115103
|
+
campaign_origin?: components["schemas"]["ConversationCampaignOrigin"];
|
|
115099
115104
|
};
|
|
115100
115105
|
meta?: {
|
|
115101
115106
|
[key: string]: unknown;
|
|
@@ -180190,6 +180195,11 @@ interface components {
|
|
|
180190
180195
|
replied_at: string | null;
|
|
180191
180196
|
/** Format: uuid */
|
|
180192
180197
|
replied_conversation_id: string | null;
|
|
180198
|
+
/**
|
|
180199
|
+
* Format: uuid
|
|
180200
|
+
* @description The conversation the send was stored in — created by the send (born closed) or the live thread it was appended to. Null before the send, or for a send the backfill has not linked yet.
|
|
180201
|
+
*/
|
|
180202
|
+
conversation_id?: string | null;
|
|
180193
180203
|
created_at: string;
|
|
180194
180204
|
};
|
|
180195
180205
|
CampaignResults: {
|
|
@@ -180207,6 +180217,8 @@ interface components {
|
|
|
180207
180217
|
failed: number;
|
|
180208
180218
|
suppressed: number;
|
|
180209
180219
|
pending: number;
|
|
180220
|
+
/** @description Conversations this campaign's sends created («conversaciones iniciadas»). A send to a contact with a live thread is appended there and not counted. */
|
|
180221
|
+
conversations_created: number;
|
|
180210
180222
|
};
|
|
180211
180223
|
/** @description 0–1 fractions; null when the denominator is 0. */
|
|
180212
180224
|
rates: {
|
|
@@ -181822,6 +181834,17 @@ interface components {
|
|
|
181822
181834
|
/** @description When the thread opened from the ad (the conversation creation time). */
|
|
181823
181835
|
captured_at: string | null;
|
|
181824
181836
|
} | null;
|
|
181837
|
+
/** @description List rows only: the newest campaign send stored in the thread (`null` when none). */
|
|
181838
|
+
ConversationCampaignOrigin: {
|
|
181839
|
+
/** Format: uuid */
|
|
181840
|
+
campaign_id: string;
|
|
181841
|
+
campaign_name: string | null;
|
|
181842
|
+
sent_at: string | null;
|
|
181843
|
+
/** @description The send CREATED this thread (born closed, `source = campaign`). */
|
|
181844
|
+
started_by_campaign: boolean;
|
|
181845
|
+
/** @description The newest message in the thread is that send — «Enviada · sin respuesta». */
|
|
181846
|
+
awaiting_reply: boolean;
|
|
181847
|
+
} | null;
|
|
181825
181848
|
MessageAttachment: {
|
|
181826
181849
|
/** @description Position in `media_urls`. */
|
|
181827
181850
|
index: number;
|
package/package.json
CHANGED