@vitrina/api 11.22.1 → 11.23.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 +284 -0
- package/dist/index.d.ts +284 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -13042,6 +13042,124 @@ interface paths {
|
|
|
13042
13042
|
patch?: never;
|
|
13043
13043
|
trace?: never;
|
|
13044
13044
|
};
|
|
13045
|
+
"/messaging-accounts/agent-options": {
|
|
13046
|
+
parameters: {
|
|
13047
|
+
query?: never;
|
|
13048
|
+
header?: never;
|
|
13049
|
+
path?: never;
|
|
13050
|
+
cookie?: never;
|
|
13051
|
+
};
|
|
13052
|
+
/**
|
|
13053
|
+
* List the agents a new channel can be answered by
|
|
13054
|
+
* @description The workspace's active AI agents, most-used first (agent runs in the last 90 days), with the preselected one. When a channel is connected without choosing an agent, a workspace with exactly one active agent gets it pinned automatically on WhatsApp, Instagram, Messenger, TikTok, web chat and email; with two or more, `choice_required` is true and the agent must be set on the new channel (`assignee_ai_agent_id`). On email, the pinned agent only ever answers mail classified as a customer.
|
|
13055
|
+
*/
|
|
13056
|
+
get: {
|
|
13057
|
+
parameters: {
|
|
13058
|
+
query?: never;
|
|
13059
|
+
header?: never;
|
|
13060
|
+
path?: never;
|
|
13061
|
+
cookie?: never;
|
|
13062
|
+
};
|
|
13063
|
+
requestBody?: never;
|
|
13064
|
+
responses: {
|
|
13065
|
+
/** @description Agents available for a channel */
|
|
13066
|
+
200: {
|
|
13067
|
+
headers: {
|
|
13068
|
+
[name: string]: unknown;
|
|
13069
|
+
};
|
|
13070
|
+
content: {
|
|
13071
|
+
/**
|
|
13072
|
+
* @example {
|
|
13073
|
+
* "data": {
|
|
13074
|
+
* "agents": [
|
|
13075
|
+
* {
|
|
13076
|
+
* "id": "a3a3a3a3-0000-4000-8000-000000000001",
|
|
13077
|
+
* "name": "Asistente de ventas",
|
|
13078
|
+
* "runs": 412
|
|
13079
|
+
* },
|
|
13080
|
+
* {
|
|
13081
|
+
* "id": "a3a3a3a3-0000-4000-8000-000000000002",
|
|
13082
|
+
* "name": "Asistente de postventa",
|
|
13083
|
+
* "runs": 37
|
|
13084
|
+
* }
|
|
13085
|
+
* ],
|
|
13086
|
+
* "suggested_agent_id": "a3a3a3a3-0000-4000-8000-000000000001",
|
|
13087
|
+
* "choice_required": true
|
|
13088
|
+
* }
|
|
13089
|
+
* }
|
|
13090
|
+
*/
|
|
13091
|
+
"application/json": {
|
|
13092
|
+
data?: unknown;
|
|
13093
|
+
meta?: {
|
|
13094
|
+
[key: string]: unknown;
|
|
13095
|
+
};
|
|
13096
|
+
};
|
|
13097
|
+
};
|
|
13098
|
+
};
|
|
13099
|
+
/** @description Validation error */
|
|
13100
|
+
400: {
|
|
13101
|
+
headers: {
|
|
13102
|
+
[name: string]: unknown;
|
|
13103
|
+
};
|
|
13104
|
+
content: {
|
|
13105
|
+
"application/json": components["schemas"]["Error"];
|
|
13106
|
+
};
|
|
13107
|
+
};
|
|
13108
|
+
/** @description Unauthorized */
|
|
13109
|
+
401: {
|
|
13110
|
+
headers: {
|
|
13111
|
+
[name: string]: unknown;
|
|
13112
|
+
};
|
|
13113
|
+
content: {
|
|
13114
|
+
"application/json": components["schemas"]["Error"];
|
|
13115
|
+
};
|
|
13116
|
+
};
|
|
13117
|
+
/** @description Forbidden */
|
|
13118
|
+
403: {
|
|
13119
|
+
headers: {
|
|
13120
|
+
[name: string]: unknown;
|
|
13121
|
+
};
|
|
13122
|
+
content: {
|
|
13123
|
+
"application/json": components["schemas"]["Error"];
|
|
13124
|
+
};
|
|
13125
|
+
};
|
|
13126
|
+
/** @description Not found */
|
|
13127
|
+
404: {
|
|
13128
|
+
headers: {
|
|
13129
|
+
[name: string]: unknown;
|
|
13130
|
+
};
|
|
13131
|
+
content: {
|
|
13132
|
+
"application/json": components["schemas"]["Error"];
|
|
13133
|
+
};
|
|
13134
|
+
};
|
|
13135
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
13136
|
+
409: {
|
|
13137
|
+
headers: {
|
|
13138
|
+
[name: string]: unknown;
|
|
13139
|
+
};
|
|
13140
|
+
content: {
|
|
13141
|
+
"application/json": components["schemas"]["Error"];
|
|
13142
|
+
};
|
|
13143
|
+
};
|
|
13144
|
+
/** @description Rate limited */
|
|
13145
|
+
429: {
|
|
13146
|
+
headers: {
|
|
13147
|
+
[name: string]: unknown;
|
|
13148
|
+
};
|
|
13149
|
+
content: {
|
|
13150
|
+
"application/json": components["schemas"]["Error"];
|
|
13151
|
+
};
|
|
13152
|
+
};
|
|
13153
|
+
};
|
|
13154
|
+
};
|
|
13155
|
+
put?: never;
|
|
13156
|
+
post?: never;
|
|
13157
|
+
delete?: never;
|
|
13158
|
+
options?: never;
|
|
13159
|
+
head?: never;
|
|
13160
|
+
patch?: never;
|
|
13161
|
+
trace?: never;
|
|
13162
|
+
};
|
|
13045
13163
|
"/messaging-accounts/stats": {
|
|
13046
13164
|
parameters: {
|
|
13047
13165
|
query?: never;
|
|
@@ -23695,6 +23813,172 @@ interface paths {
|
|
|
23695
23813
|
patch?: never;
|
|
23696
23814
|
trace?: never;
|
|
23697
23815
|
};
|
|
23816
|
+
"/lead-outreach/status": {
|
|
23817
|
+
parameters: {
|
|
23818
|
+
query?: never;
|
|
23819
|
+
header?: never;
|
|
23820
|
+
path?: never;
|
|
23821
|
+
cookie?: never;
|
|
23822
|
+
};
|
|
23823
|
+
/**
|
|
23824
|
+
* First-touch status for one lead source
|
|
23825
|
+
* @description Health and recent outcomes of the proactive first message for one lead source (`chileautos`, `yapo`, `mercadolibre`, `website`, …): which rail it uses, whether its account is usable, sends today, and the latest outcomes with the reason a lead was skipped.
|
|
23826
|
+
*
|
|
23827
|
+
* `website` is ON by default for every workspace. With no `website` block of its own it borrows the account and template chain of the first enabled source (`config_origin: inherited`, named in `inherited_from`), or uses the partner WhatsApp account and Vitrina's own website templates (`platform_default`). `templates` lists the WhatsApp ladder in send order with each template's state on that account: only `APPROVED` templates are ever sent; a `PENDING` or `REJECTED` one is shown so it is not silently skipped, and `status: null` means it is not on that account. When no template can be sent the first message goes by email, from the workspace mailbox.
|
|
23828
|
+
*/
|
|
23829
|
+
get: {
|
|
23830
|
+
parameters: {
|
|
23831
|
+
query: {
|
|
23832
|
+
/** @description Lead source key: `chileautos`, `yapo`, `mercadolibre`, `website`, … */
|
|
23833
|
+
source: string;
|
|
23834
|
+
};
|
|
23835
|
+
header?: never;
|
|
23836
|
+
path?: never;
|
|
23837
|
+
cookie?: never;
|
|
23838
|
+
};
|
|
23839
|
+
requestBody?: never;
|
|
23840
|
+
responses: {
|
|
23841
|
+
/** @description First-touch status */
|
|
23842
|
+
200: {
|
|
23843
|
+
headers: {
|
|
23844
|
+
[name: string]: unknown;
|
|
23845
|
+
};
|
|
23846
|
+
content: {
|
|
23847
|
+
/**
|
|
23848
|
+
* @example {
|
|
23849
|
+
* "data": {
|
|
23850
|
+
* "source": "website",
|
|
23851
|
+
* "enabled": true,
|
|
23852
|
+
* "contact_method": "whatsapp",
|
|
23853
|
+
* "template_name": "contacto_sitio_web_nombre",
|
|
23854
|
+
* "account": {
|
|
23855
|
+
* "id": "c3c3c3c3-0000-4000-8000-000000000001",
|
|
23856
|
+
* "name": "WhatsApp",
|
|
23857
|
+
* "enabled": true
|
|
23858
|
+
* },
|
|
23859
|
+
* "account_ok": true,
|
|
23860
|
+
* "config_origin": "platform_default",
|
|
23861
|
+
* "inherited_from": null,
|
|
23862
|
+
* "templates": [
|
|
23863
|
+
* {
|
|
23864
|
+
* "name": "contacto_sitio_web_nombre",
|
|
23865
|
+
* "language": "es",
|
|
23866
|
+
* "status": "APPROVED",
|
|
23867
|
+
* "category": "MARKETING",
|
|
23868
|
+
* "rejection_reason": null,
|
|
23869
|
+
* "synced_at": "2026-09-25T13:00:00.000Z"
|
|
23870
|
+
* },
|
|
23871
|
+
* {
|
|
23872
|
+
* "name": "contacto_sitio_web",
|
|
23873
|
+
* "language": "es",
|
|
23874
|
+
* "status": "PENDING",
|
|
23875
|
+
* "category": "UTILITY",
|
|
23876
|
+
* "rejection_reason": null,
|
|
23877
|
+
* "synced_at": "2026-09-25T13:00:00.000Z"
|
|
23878
|
+
* },
|
|
23879
|
+
* {
|
|
23880
|
+
* "name": "contacto_sitio_web_generico",
|
|
23881
|
+
* "language": "es",
|
|
23882
|
+
* "status": null,
|
|
23883
|
+
* "category": null,
|
|
23884
|
+
* "rejection_reason": null,
|
|
23885
|
+
* "synced_at": null
|
|
23886
|
+
* }
|
|
23887
|
+
* ],
|
|
23888
|
+
* "sent_today": 3,
|
|
23889
|
+
* "daily_cap": 100000,
|
|
23890
|
+
* "recent": [
|
|
23891
|
+
* {
|
|
23892
|
+
* "id": "d4d4d4d4-0000-4000-8000-000000000001",
|
|
23893
|
+
* "status": "skipped",
|
|
23894
|
+
* "channel": "whatsapp",
|
|
23895
|
+
* "skip_reason": "no_phone",
|
|
23896
|
+
* "error_class": null,
|
|
23897
|
+
* "created_at": "2026-09-25T12:41:00.000Z",
|
|
23898
|
+
* "conversation_id": "e5e5e5e5-0000-4000-8000-000000000001",
|
|
23899
|
+
* "lead": {
|
|
23900
|
+
* "id": "f6f6f6f6-0000-4000-8000-000000000001",
|
|
23901
|
+
* "display_id": "L-42",
|
|
23902
|
+
* "title": "Consulta desde el sitio web",
|
|
23903
|
+
* "conversation_id": "e5e5e5e5-0000-4000-8000-000000000001"
|
|
23904
|
+
* }
|
|
23905
|
+
* }
|
|
23906
|
+
* ]
|
|
23907
|
+
* }
|
|
23908
|
+
* }
|
|
23909
|
+
*/
|
|
23910
|
+
"application/json": {
|
|
23911
|
+
data?: unknown;
|
|
23912
|
+
meta?: {
|
|
23913
|
+
[key: string]: unknown;
|
|
23914
|
+
};
|
|
23915
|
+
};
|
|
23916
|
+
};
|
|
23917
|
+
};
|
|
23918
|
+
/** @description Validation error */
|
|
23919
|
+
400: {
|
|
23920
|
+
headers: {
|
|
23921
|
+
[name: string]: unknown;
|
|
23922
|
+
};
|
|
23923
|
+
content: {
|
|
23924
|
+
"application/json": components["schemas"]["Error"];
|
|
23925
|
+
};
|
|
23926
|
+
};
|
|
23927
|
+
/** @description Unauthorized */
|
|
23928
|
+
401: {
|
|
23929
|
+
headers: {
|
|
23930
|
+
[name: string]: unknown;
|
|
23931
|
+
};
|
|
23932
|
+
content: {
|
|
23933
|
+
"application/json": components["schemas"]["Error"];
|
|
23934
|
+
};
|
|
23935
|
+
};
|
|
23936
|
+
/** @description Forbidden */
|
|
23937
|
+
403: {
|
|
23938
|
+
headers: {
|
|
23939
|
+
[name: string]: unknown;
|
|
23940
|
+
};
|
|
23941
|
+
content: {
|
|
23942
|
+
"application/json": components["schemas"]["Error"];
|
|
23943
|
+
};
|
|
23944
|
+
};
|
|
23945
|
+
/** @description Not found */
|
|
23946
|
+
404: {
|
|
23947
|
+
headers: {
|
|
23948
|
+
[name: string]: unknown;
|
|
23949
|
+
};
|
|
23950
|
+
content: {
|
|
23951
|
+
"application/json": components["schemas"]["Error"];
|
|
23952
|
+
};
|
|
23953
|
+
};
|
|
23954
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
23955
|
+
409: {
|
|
23956
|
+
headers: {
|
|
23957
|
+
[name: string]: unknown;
|
|
23958
|
+
};
|
|
23959
|
+
content: {
|
|
23960
|
+
"application/json": components["schemas"]["Error"];
|
|
23961
|
+
};
|
|
23962
|
+
};
|
|
23963
|
+
/** @description Rate limited */
|
|
23964
|
+
429: {
|
|
23965
|
+
headers: {
|
|
23966
|
+
[name: string]: unknown;
|
|
23967
|
+
};
|
|
23968
|
+
content: {
|
|
23969
|
+
"application/json": components["schemas"]["Error"];
|
|
23970
|
+
};
|
|
23971
|
+
};
|
|
23972
|
+
};
|
|
23973
|
+
};
|
|
23974
|
+
put?: never;
|
|
23975
|
+
post?: never;
|
|
23976
|
+
delete?: never;
|
|
23977
|
+
options?: never;
|
|
23978
|
+
head?: never;
|
|
23979
|
+
patch?: never;
|
|
23980
|
+
trace?: never;
|
|
23981
|
+
};
|
|
23698
23982
|
"/contacts/search": {
|
|
23699
23983
|
parameters: {
|
|
23700
23984
|
query?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -13042,6 +13042,124 @@ interface paths {
|
|
|
13042
13042
|
patch?: never;
|
|
13043
13043
|
trace?: never;
|
|
13044
13044
|
};
|
|
13045
|
+
"/messaging-accounts/agent-options": {
|
|
13046
|
+
parameters: {
|
|
13047
|
+
query?: never;
|
|
13048
|
+
header?: never;
|
|
13049
|
+
path?: never;
|
|
13050
|
+
cookie?: never;
|
|
13051
|
+
};
|
|
13052
|
+
/**
|
|
13053
|
+
* List the agents a new channel can be answered by
|
|
13054
|
+
* @description The workspace's active AI agents, most-used first (agent runs in the last 90 days), with the preselected one. When a channel is connected without choosing an agent, a workspace with exactly one active agent gets it pinned automatically on WhatsApp, Instagram, Messenger, TikTok, web chat and email; with two or more, `choice_required` is true and the agent must be set on the new channel (`assignee_ai_agent_id`). On email, the pinned agent only ever answers mail classified as a customer.
|
|
13055
|
+
*/
|
|
13056
|
+
get: {
|
|
13057
|
+
parameters: {
|
|
13058
|
+
query?: never;
|
|
13059
|
+
header?: never;
|
|
13060
|
+
path?: never;
|
|
13061
|
+
cookie?: never;
|
|
13062
|
+
};
|
|
13063
|
+
requestBody?: never;
|
|
13064
|
+
responses: {
|
|
13065
|
+
/** @description Agents available for a channel */
|
|
13066
|
+
200: {
|
|
13067
|
+
headers: {
|
|
13068
|
+
[name: string]: unknown;
|
|
13069
|
+
};
|
|
13070
|
+
content: {
|
|
13071
|
+
/**
|
|
13072
|
+
* @example {
|
|
13073
|
+
* "data": {
|
|
13074
|
+
* "agents": [
|
|
13075
|
+
* {
|
|
13076
|
+
* "id": "a3a3a3a3-0000-4000-8000-000000000001",
|
|
13077
|
+
* "name": "Asistente de ventas",
|
|
13078
|
+
* "runs": 412
|
|
13079
|
+
* },
|
|
13080
|
+
* {
|
|
13081
|
+
* "id": "a3a3a3a3-0000-4000-8000-000000000002",
|
|
13082
|
+
* "name": "Asistente de postventa",
|
|
13083
|
+
* "runs": 37
|
|
13084
|
+
* }
|
|
13085
|
+
* ],
|
|
13086
|
+
* "suggested_agent_id": "a3a3a3a3-0000-4000-8000-000000000001",
|
|
13087
|
+
* "choice_required": true
|
|
13088
|
+
* }
|
|
13089
|
+
* }
|
|
13090
|
+
*/
|
|
13091
|
+
"application/json": {
|
|
13092
|
+
data?: unknown;
|
|
13093
|
+
meta?: {
|
|
13094
|
+
[key: string]: unknown;
|
|
13095
|
+
};
|
|
13096
|
+
};
|
|
13097
|
+
};
|
|
13098
|
+
};
|
|
13099
|
+
/** @description Validation error */
|
|
13100
|
+
400: {
|
|
13101
|
+
headers: {
|
|
13102
|
+
[name: string]: unknown;
|
|
13103
|
+
};
|
|
13104
|
+
content: {
|
|
13105
|
+
"application/json": components["schemas"]["Error"];
|
|
13106
|
+
};
|
|
13107
|
+
};
|
|
13108
|
+
/** @description Unauthorized */
|
|
13109
|
+
401: {
|
|
13110
|
+
headers: {
|
|
13111
|
+
[name: string]: unknown;
|
|
13112
|
+
};
|
|
13113
|
+
content: {
|
|
13114
|
+
"application/json": components["schemas"]["Error"];
|
|
13115
|
+
};
|
|
13116
|
+
};
|
|
13117
|
+
/** @description Forbidden */
|
|
13118
|
+
403: {
|
|
13119
|
+
headers: {
|
|
13120
|
+
[name: string]: unknown;
|
|
13121
|
+
};
|
|
13122
|
+
content: {
|
|
13123
|
+
"application/json": components["schemas"]["Error"];
|
|
13124
|
+
};
|
|
13125
|
+
};
|
|
13126
|
+
/** @description Not found */
|
|
13127
|
+
404: {
|
|
13128
|
+
headers: {
|
|
13129
|
+
[name: string]: unknown;
|
|
13130
|
+
};
|
|
13131
|
+
content: {
|
|
13132
|
+
"application/json": components["schemas"]["Error"];
|
|
13133
|
+
};
|
|
13134
|
+
};
|
|
13135
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
13136
|
+
409: {
|
|
13137
|
+
headers: {
|
|
13138
|
+
[name: string]: unknown;
|
|
13139
|
+
};
|
|
13140
|
+
content: {
|
|
13141
|
+
"application/json": components["schemas"]["Error"];
|
|
13142
|
+
};
|
|
13143
|
+
};
|
|
13144
|
+
/** @description Rate limited */
|
|
13145
|
+
429: {
|
|
13146
|
+
headers: {
|
|
13147
|
+
[name: string]: unknown;
|
|
13148
|
+
};
|
|
13149
|
+
content: {
|
|
13150
|
+
"application/json": components["schemas"]["Error"];
|
|
13151
|
+
};
|
|
13152
|
+
};
|
|
13153
|
+
};
|
|
13154
|
+
};
|
|
13155
|
+
put?: never;
|
|
13156
|
+
post?: never;
|
|
13157
|
+
delete?: never;
|
|
13158
|
+
options?: never;
|
|
13159
|
+
head?: never;
|
|
13160
|
+
patch?: never;
|
|
13161
|
+
trace?: never;
|
|
13162
|
+
};
|
|
13045
13163
|
"/messaging-accounts/stats": {
|
|
13046
13164
|
parameters: {
|
|
13047
13165
|
query?: never;
|
|
@@ -23695,6 +23813,172 @@ interface paths {
|
|
|
23695
23813
|
patch?: never;
|
|
23696
23814
|
trace?: never;
|
|
23697
23815
|
};
|
|
23816
|
+
"/lead-outreach/status": {
|
|
23817
|
+
parameters: {
|
|
23818
|
+
query?: never;
|
|
23819
|
+
header?: never;
|
|
23820
|
+
path?: never;
|
|
23821
|
+
cookie?: never;
|
|
23822
|
+
};
|
|
23823
|
+
/**
|
|
23824
|
+
* First-touch status for one lead source
|
|
23825
|
+
* @description Health and recent outcomes of the proactive first message for one lead source (`chileautos`, `yapo`, `mercadolibre`, `website`, …): which rail it uses, whether its account is usable, sends today, and the latest outcomes with the reason a lead was skipped.
|
|
23826
|
+
*
|
|
23827
|
+
* `website` is ON by default for every workspace. With no `website` block of its own it borrows the account and template chain of the first enabled source (`config_origin: inherited`, named in `inherited_from`), or uses the partner WhatsApp account and Vitrina's own website templates (`platform_default`). `templates` lists the WhatsApp ladder in send order with each template's state on that account: only `APPROVED` templates are ever sent; a `PENDING` or `REJECTED` one is shown so it is not silently skipped, and `status: null` means it is not on that account. When no template can be sent the first message goes by email, from the workspace mailbox.
|
|
23828
|
+
*/
|
|
23829
|
+
get: {
|
|
23830
|
+
parameters: {
|
|
23831
|
+
query: {
|
|
23832
|
+
/** @description Lead source key: `chileautos`, `yapo`, `mercadolibre`, `website`, … */
|
|
23833
|
+
source: string;
|
|
23834
|
+
};
|
|
23835
|
+
header?: never;
|
|
23836
|
+
path?: never;
|
|
23837
|
+
cookie?: never;
|
|
23838
|
+
};
|
|
23839
|
+
requestBody?: never;
|
|
23840
|
+
responses: {
|
|
23841
|
+
/** @description First-touch status */
|
|
23842
|
+
200: {
|
|
23843
|
+
headers: {
|
|
23844
|
+
[name: string]: unknown;
|
|
23845
|
+
};
|
|
23846
|
+
content: {
|
|
23847
|
+
/**
|
|
23848
|
+
* @example {
|
|
23849
|
+
* "data": {
|
|
23850
|
+
* "source": "website",
|
|
23851
|
+
* "enabled": true,
|
|
23852
|
+
* "contact_method": "whatsapp",
|
|
23853
|
+
* "template_name": "contacto_sitio_web_nombre",
|
|
23854
|
+
* "account": {
|
|
23855
|
+
* "id": "c3c3c3c3-0000-4000-8000-000000000001",
|
|
23856
|
+
* "name": "WhatsApp",
|
|
23857
|
+
* "enabled": true
|
|
23858
|
+
* },
|
|
23859
|
+
* "account_ok": true,
|
|
23860
|
+
* "config_origin": "platform_default",
|
|
23861
|
+
* "inherited_from": null,
|
|
23862
|
+
* "templates": [
|
|
23863
|
+
* {
|
|
23864
|
+
* "name": "contacto_sitio_web_nombre",
|
|
23865
|
+
* "language": "es",
|
|
23866
|
+
* "status": "APPROVED",
|
|
23867
|
+
* "category": "MARKETING",
|
|
23868
|
+
* "rejection_reason": null,
|
|
23869
|
+
* "synced_at": "2026-09-25T13:00:00.000Z"
|
|
23870
|
+
* },
|
|
23871
|
+
* {
|
|
23872
|
+
* "name": "contacto_sitio_web",
|
|
23873
|
+
* "language": "es",
|
|
23874
|
+
* "status": "PENDING",
|
|
23875
|
+
* "category": "UTILITY",
|
|
23876
|
+
* "rejection_reason": null,
|
|
23877
|
+
* "synced_at": "2026-09-25T13:00:00.000Z"
|
|
23878
|
+
* },
|
|
23879
|
+
* {
|
|
23880
|
+
* "name": "contacto_sitio_web_generico",
|
|
23881
|
+
* "language": "es",
|
|
23882
|
+
* "status": null,
|
|
23883
|
+
* "category": null,
|
|
23884
|
+
* "rejection_reason": null,
|
|
23885
|
+
* "synced_at": null
|
|
23886
|
+
* }
|
|
23887
|
+
* ],
|
|
23888
|
+
* "sent_today": 3,
|
|
23889
|
+
* "daily_cap": 100000,
|
|
23890
|
+
* "recent": [
|
|
23891
|
+
* {
|
|
23892
|
+
* "id": "d4d4d4d4-0000-4000-8000-000000000001",
|
|
23893
|
+
* "status": "skipped",
|
|
23894
|
+
* "channel": "whatsapp",
|
|
23895
|
+
* "skip_reason": "no_phone",
|
|
23896
|
+
* "error_class": null,
|
|
23897
|
+
* "created_at": "2026-09-25T12:41:00.000Z",
|
|
23898
|
+
* "conversation_id": "e5e5e5e5-0000-4000-8000-000000000001",
|
|
23899
|
+
* "lead": {
|
|
23900
|
+
* "id": "f6f6f6f6-0000-4000-8000-000000000001",
|
|
23901
|
+
* "display_id": "L-42",
|
|
23902
|
+
* "title": "Consulta desde el sitio web",
|
|
23903
|
+
* "conversation_id": "e5e5e5e5-0000-4000-8000-000000000001"
|
|
23904
|
+
* }
|
|
23905
|
+
* }
|
|
23906
|
+
* ]
|
|
23907
|
+
* }
|
|
23908
|
+
* }
|
|
23909
|
+
*/
|
|
23910
|
+
"application/json": {
|
|
23911
|
+
data?: unknown;
|
|
23912
|
+
meta?: {
|
|
23913
|
+
[key: string]: unknown;
|
|
23914
|
+
};
|
|
23915
|
+
};
|
|
23916
|
+
};
|
|
23917
|
+
};
|
|
23918
|
+
/** @description Validation error */
|
|
23919
|
+
400: {
|
|
23920
|
+
headers: {
|
|
23921
|
+
[name: string]: unknown;
|
|
23922
|
+
};
|
|
23923
|
+
content: {
|
|
23924
|
+
"application/json": components["schemas"]["Error"];
|
|
23925
|
+
};
|
|
23926
|
+
};
|
|
23927
|
+
/** @description Unauthorized */
|
|
23928
|
+
401: {
|
|
23929
|
+
headers: {
|
|
23930
|
+
[name: string]: unknown;
|
|
23931
|
+
};
|
|
23932
|
+
content: {
|
|
23933
|
+
"application/json": components["schemas"]["Error"];
|
|
23934
|
+
};
|
|
23935
|
+
};
|
|
23936
|
+
/** @description Forbidden */
|
|
23937
|
+
403: {
|
|
23938
|
+
headers: {
|
|
23939
|
+
[name: string]: unknown;
|
|
23940
|
+
};
|
|
23941
|
+
content: {
|
|
23942
|
+
"application/json": components["schemas"]["Error"];
|
|
23943
|
+
};
|
|
23944
|
+
};
|
|
23945
|
+
/** @description Not found */
|
|
23946
|
+
404: {
|
|
23947
|
+
headers: {
|
|
23948
|
+
[name: string]: unknown;
|
|
23949
|
+
};
|
|
23950
|
+
content: {
|
|
23951
|
+
"application/json": components["schemas"]["Error"];
|
|
23952
|
+
};
|
|
23953
|
+
};
|
|
23954
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
23955
|
+
409: {
|
|
23956
|
+
headers: {
|
|
23957
|
+
[name: string]: unknown;
|
|
23958
|
+
};
|
|
23959
|
+
content: {
|
|
23960
|
+
"application/json": components["schemas"]["Error"];
|
|
23961
|
+
};
|
|
23962
|
+
};
|
|
23963
|
+
/** @description Rate limited */
|
|
23964
|
+
429: {
|
|
23965
|
+
headers: {
|
|
23966
|
+
[name: string]: unknown;
|
|
23967
|
+
};
|
|
23968
|
+
content: {
|
|
23969
|
+
"application/json": components["schemas"]["Error"];
|
|
23970
|
+
};
|
|
23971
|
+
};
|
|
23972
|
+
};
|
|
23973
|
+
};
|
|
23974
|
+
put?: never;
|
|
23975
|
+
post?: never;
|
|
23976
|
+
delete?: never;
|
|
23977
|
+
options?: never;
|
|
23978
|
+
head?: never;
|
|
23979
|
+
patch?: never;
|
|
23980
|
+
trace?: never;
|
|
23981
|
+
};
|
|
23698
23982
|
"/contacts/search": {
|
|
23699
23983
|
parameters: {
|
|
23700
23984
|
query?: never;
|
package/package.json
CHANGED