@vitrina/api 17.120.0 → 17.121.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 +361 -13
- package/dist/index.d.ts +361 -13
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -183230,7 +183230,8 @@ interface paths {
|
|
|
183230
183230
|
* "checked_at": "2026-09-25T10:40:00.000Z",
|
|
183231
183231
|
* "stale": false,
|
|
183232
183232
|
* "sample": false,
|
|
183233
|
-
* "ad_set_goals": null
|
|
183233
|
+
* "ad_set_goals": null,
|
|
183234
|
+
* "engaged_visit": null
|
|
183234
183235
|
* }
|
|
183235
183236
|
* }
|
|
183236
183237
|
*/
|
|
@@ -225317,14 +225318,14 @@ interface paths {
|
|
|
225317
225318
|
* "review": {
|
|
225318
225319
|
* "language": "es",
|
|
225319
225320
|
* "category": "MARKETING",
|
|
225320
|
-
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de
|
|
225321
|
+
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de los mensajes. Meta puede cambiar la categoría al revisarla; si la aprueba en otra, Vitrina no la envía.",
|
|
225321
225322
|
* "price_per_send": {
|
|
225322
225323
|
* "market": "CL",
|
|
225323
225324
|
* "currency": "USD",
|
|
225324
225325
|
* "category": "marketing",
|
|
225325
225326
|
* "amount": 0.0889,
|
|
225326
225327
|
* "as_of": "2026-11-01",
|
|
225327
|
-
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a
|
|
225328
|
+
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a la cuenta de WhatsApp."
|
|
225328
225329
|
* },
|
|
225329
225330
|
* "header": {
|
|
225330
225331
|
* "format": "VIDEO",
|
|
@@ -225333,8 +225334,8 @@ interface paths {
|
|
|
225333
225334
|
* "mime_type": "video/mp4",
|
|
225334
225335
|
* "byte_size": 4200000
|
|
225335
225336
|
* },
|
|
225336
|
-
* "body_text": "Hola {{nombre}},
|
|
225337
|
-
* "body_preview": "Hola María,
|
|
225337
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225338
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225338
225339
|
* "variables": [
|
|
225339
225340
|
* {
|
|
225340
225341
|
* "name": "nombre",
|
|
@@ -225466,14 +225467,14 @@ interface paths {
|
|
|
225466
225467
|
* "review": {
|
|
225467
225468
|
* "language": "es",
|
|
225468
225469
|
* "category": "MARKETING",
|
|
225469
|
-
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de
|
|
225470
|
+
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de los mensajes. Meta puede cambiar la categoría al revisarla; si la aprueba en otra, Vitrina no la envía.",
|
|
225470
225471
|
* "price_per_send": {
|
|
225471
225472
|
* "market": "CL",
|
|
225472
225473
|
* "currency": "USD",
|
|
225473
225474
|
* "category": "marketing",
|
|
225474
225475
|
* "amount": 0.0889,
|
|
225475
225476
|
* "as_of": "2026-11-01",
|
|
225476
|
-
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a
|
|
225477
|
+
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a la cuenta de WhatsApp."
|
|
225477
225478
|
* },
|
|
225478
225479
|
* "header": {
|
|
225479
225480
|
* "format": "VIDEO",
|
|
@@ -225482,8 +225483,8 @@ interface paths {
|
|
|
225482
225483
|
* "mime_type": "video/mp4",
|
|
225483
225484
|
* "byte_size": 4200000
|
|
225484
225485
|
* },
|
|
225485
|
-
* "body_text": "Hola {{nombre}},
|
|
225486
|
-
* "body_preview": "Hola María,
|
|
225486
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225487
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225487
225488
|
* "variables": [
|
|
225488
225489
|
* {
|
|
225489
225490
|
* "name": "nombre",
|
|
@@ -225626,14 +225627,14 @@ interface paths {
|
|
|
225626
225627
|
* "review": {
|
|
225627
225628
|
* "language": "es",
|
|
225628
225629
|
* "category": "MARKETING",
|
|
225629
|
-
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de
|
|
225630
|
+
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de los mensajes. Meta puede cambiar la categoría al revisarla; si la aprueba en otra, Vitrina no la envía.",
|
|
225630
225631
|
* "price_per_send": {
|
|
225631
225632
|
* "market": "CL",
|
|
225632
225633
|
* "currency": "USD",
|
|
225633
225634
|
* "category": "marketing",
|
|
225634
225635
|
* "amount": 0.0889,
|
|
225635
225636
|
* "as_of": "2026-11-01",
|
|
225636
|
-
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a
|
|
225637
|
+
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a la cuenta de WhatsApp."
|
|
225637
225638
|
* },
|
|
225638
225639
|
* "header": {
|
|
225639
225640
|
* "format": "VIDEO",
|
|
@@ -225642,8 +225643,8 @@ interface paths {
|
|
|
225642
225643
|
* "mime_type": "video/mp4",
|
|
225643
225644
|
* "byte_size": 4200000
|
|
225644
225645
|
* },
|
|
225645
|
-
* "body_text": "Hola {{nombre}},
|
|
225646
|
-
* "body_preview": "Hola María,
|
|
225646
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225647
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225647
225648
|
* "variables": [
|
|
225648
225649
|
* {
|
|
225649
225650
|
* "name": "nombre",
|
|
@@ -247811,6 +247812,309 @@ interface paths {
|
|
|
247811
247812
|
patch?: never;
|
|
247812
247813
|
trace?: never;
|
|
247813
247814
|
};
|
|
247815
|
+
"/ads/tracking/engaged-visit": {
|
|
247816
|
+
parameters: {
|
|
247817
|
+
query?: never;
|
|
247818
|
+
header?: never;
|
|
247819
|
+
path?: never;
|
|
247820
|
+
cookie?: never;
|
|
247821
|
+
};
|
|
247822
|
+
/**
|
|
247823
|
+
* The «Se quedó 15 segundos» signal: state read back
|
|
247824
|
+
* @description Clinics (healthcare workspaces) with Vitrina Ads usable. The signal sends Meta an event when a person has had the page open and visible for `seconds` (15). It measures time on the PAGE, not video play time. Off by default. The state is read back from the measurement engine on every call: `enabled`, `seconds` (read-only), `export_ready` and, when it is not ready, the `export_blocker` with `blocker_text`. It is a signal sent to Meta, not an optimisation target (see `meta_note`). A workspace that is a guest on its agency’s profile reads the state (`can_write: false`). After the setting changes the install snippet must be copied again (`install`, `recopy_note`). Admin-scoped (`ads:read`).
|
|
247825
|
+
*/
|
|
247826
|
+
get: {
|
|
247827
|
+
parameters: {
|
|
247828
|
+
query?: never;
|
|
247829
|
+
header?: never;
|
|
247830
|
+
path?: never;
|
|
247831
|
+
cookie?: never;
|
|
247832
|
+
};
|
|
247833
|
+
requestBody?: never;
|
|
247834
|
+
responses: {
|
|
247835
|
+
/** @description The signal’s state */
|
|
247836
|
+
200: {
|
|
247837
|
+
headers: {
|
|
247838
|
+
[name: string]: unknown;
|
|
247839
|
+
};
|
|
247840
|
+
content: {
|
|
247841
|
+
/**
|
|
247842
|
+
* @example {
|
|
247843
|
+
* "data": {
|
|
247844
|
+
* "state": "off",
|
|
247845
|
+
* "enabled": false,
|
|
247846
|
+
* "seconds": 15,
|
|
247847
|
+
* "export_ready": false,
|
|
247848
|
+
* "export_blocker": null,
|
|
247849
|
+
* "blocker_text": null,
|
|
247850
|
+
* "can_write": true,
|
|
247851
|
+
* "managed_by_agency": false,
|
|
247852
|
+
* "title": "Se quedó 15 segundos",
|
|
247853
|
+
* "summary": "Apagada. No se envía nada a Meta sobre cuánto tiempo se queda la gente en la página.",
|
|
247854
|
+
* "measures": "Mide el tiempo que la página estuvo abierta y a la vista, no cuánto del video se reprodujo.",
|
|
247855
|
+
* "meta_note": "Es una señal que se envía a Meta, no un objetivo de optimización: todavía no está comprobado que un conjunto de anuncios pueda optimizar con ella.",
|
|
247856
|
+
* "recopy_note": "Después de encender o apagar esta señal, hay que copiar de nuevo el código de instalación en la página. Si no, la página sigue como estaba.",
|
|
247857
|
+
* "agency_note": null,
|
|
247858
|
+
* "install": {
|
|
247859
|
+
* "path": "/ads/tracking/key",
|
|
247860
|
+
* "field": "snippet"
|
|
247861
|
+
* }
|
|
247862
|
+
* }
|
|
247863
|
+
* }
|
|
247864
|
+
*/
|
|
247865
|
+
"application/json": {
|
|
247866
|
+
data: components["schemas"]["AdsEngagedVisit"] & Record<string, never>;
|
|
247867
|
+
};
|
|
247868
|
+
};
|
|
247869
|
+
};
|
|
247870
|
+
/** @description Validation error */
|
|
247871
|
+
400: {
|
|
247872
|
+
headers: {
|
|
247873
|
+
[name: string]: unknown;
|
|
247874
|
+
};
|
|
247875
|
+
content: {
|
|
247876
|
+
"application/json": components["schemas"]["Error"];
|
|
247877
|
+
};
|
|
247878
|
+
};
|
|
247879
|
+
/** @description Unauthorized */
|
|
247880
|
+
401: {
|
|
247881
|
+
headers: {
|
|
247882
|
+
[name: string]: unknown;
|
|
247883
|
+
};
|
|
247884
|
+
content: {
|
|
247885
|
+
"application/json": components["schemas"]["Error"];
|
|
247886
|
+
};
|
|
247887
|
+
};
|
|
247888
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
247889
|
+
402: {
|
|
247890
|
+
headers: {
|
|
247891
|
+
[name: string]: unknown;
|
|
247892
|
+
};
|
|
247893
|
+
content: {
|
|
247894
|
+
/**
|
|
247895
|
+
* @example {
|
|
247896
|
+
* "error": {
|
|
247897
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
247898
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
247899
|
+
* "details": {
|
|
247900
|
+
* "required": [
|
|
247901
|
+
* "vitrina_ads"
|
|
247902
|
+
* ],
|
|
247903
|
+
* "active": [],
|
|
247904
|
+
* "feature": "vitrina_ads",
|
|
247905
|
+
* "entitlement_state": "off"
|
|
247906
|
+
* }
|
|
247907
|
+
* }
|
|
247908
|
+
* }
|
|
247909
|
+
*/
|
|
247910
|
+
"application/json": components["schemas"]["Error"];
|
|
247911
|
+
};
|
|
247912
|
+
};
|
|
247913
|
+
/** @description Forbidden */
|
|
247914
|
+
403: {
|
|
247915
|
+
headers: {
|
|
247916
|
+
[name: string]: unknown;
|
|
247917
|
+
};
|
|
247918
|
+
content: {
|
|
247919
|
+
"application/json": components["schemas"]["Error"];
|
|
247920
|
+
};
|
|
247921
|
+
};
|
|
247922
|
+
/** @description Not found */
|
|
247923
|
+
404: {
|
|
247924
|
+
headers: {
|
|
247925
|
+
[name: string]: unknown;
|
|
247926
|
+
};
|
|
247927
|
+
content: {
|
|
247928
|
+
"application/json": components["schemas"]["Error"];
|
|
247929
|
+
};
|
|
247930
|
+
};
|
|
247931
|
+
/** @description Vitrina Ads is active but the delegated key has not finished rotating (`ADS_KEY_NEEDS_REMINT`) — retry once `GET /ads/state` reports `needs_remint: false`. Also the generic conflict of a write. */
|
|
247932
|
+
409: {
|
|
247933
|
+
headers: {
|
|
247934
|
+
[name: string]: unknown;
|
|
247935
|
+
};
|
|
247936
|
+
content: {
|
|
247937
|
+
/**
|
|
247938
|
+
* @example {
|
|
247939
|
+
* "error": {
|
|
247940
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
247941
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
247942
|
+
* "details": {
|
|
247943
|
+
* "key_kind": "core"
|
|
247944
|
+
* }
|
|
247945
|
+
* }
|
|
247946
|
+
* }
|
|
247947
|
+
*/
|
|
247948
|
+
"application/json": components["schemas"]["Error"];
|
|
247949
|
+
};
|
|
247950
|
+
};
|
|
247951
|
+
/** @description Rate limited */
|
|
247952
|
+
429: {
|
|
247953
|
+
headers: {
|
|
247954
|
+
[name: string]: unknown;
|
|
247955
|
+
};
|
|
247956
|
+
content: {
|
|
247957
|
+
"application/json": components["schemas"]["Error"];
|
|
247958
|
+
};
|
|
247959
|
+
};
|
|
247960
|
+
};
|
|
247961
|
+
};
|
|
247962
|
+
put?: never;
|
|
247963
|
+
post?: never;
|
|
247964
|
+
delete?: never;
|
|
247965
|
+
options?: never;
|
|
247966
|
+
head?: never;
|
|
247967
|
+
/**
|
|
247968
|
+
* Turn the «Se quedó 15 segundos» signal on or off
|
|
247969
|
+
* @description Sets `enabled` at the measurement engine and answers the state the engine now reports (never an echo of the request). Audited. Turning it on while `export_ready` is false is accepted: the answer says why nothing is sent. 403 `ATTRIBUTION_LINKED_READ_ONLY` for a workspace that is a guest on its agency’s profile (the agency manages it); 403 `vertical_not_enabled` outside clinics; 409 `ADS_KEY_NEEDS_REMINT` while the credential catches up with the add-on (one automatic re-mint is tried first). The install snippet must be copied again after the change. Admin-scoped (`ads:write`).
|
|
247970
|
+
*/
|
|
247971
|
+
patch: {
|
|
247972
|
+
parameters: {
|
|
247973
|
+
query?: never;
|
|
247974
|
+
header?: never;
|
|
247975
|
+
path?: never;
|
|
247976
|
+
cookie?: never;
|
|
247977
|
+
};
|
|
247978
|
+
requestBody: {
|
|
247979
|
+
content: {
|
|
247980
|
+
/**
|
|
247981
|
+
* @example {
|
|
247982
|
+
* "enabled": true
|
|
247983
|
+
* }
|
|
247984
|
+
*/
|
|
247985
|
+
"application/json": components["schemas"]["AdsEngagedVisitPatch"];
|
|
247986
|
+
};
|
|
247987
|
+
};
|
|
247988
|
+
responses: {
|
|
247989
|
+
/** @description The signal’s state after the change */
|
|
247990
|
+
200: {
|
|
247991
|
+
headers: {
|
|
247992
|
+
[name: string]: unknown;
|
|
247993
|
+
};
|
|
247994
|
+
content: {
|
|
247995
|
+
/**
|
|
247996
|
+
* @example {
|
|
247997
|
+
* "data": {
|
|
247998
|
+
* "state": "not_sending",
|
|
247999
|
+
* "enabled": true,
|
|
248000
|
+
* "seconds": 15,
|
|
248001
|
+
* "export_ready": false,
|
|
248002
|
+
* "export_blocker": "no_clean_dataset_destination",
|
|
248003
|
+
* "blocker_text": "todavía no hay un conjunto de datos protegido de Meta conectado",
|
|
248004
|
+
* "can_write": true,
|
|
248005
|
+
* "managed_by_agency": false,
|
|
248006
|
+
* "title": "Se quedó 15 segundos",
|
|
248007
|
+
* "summary": "Encendida, pero por ahora no se envía nada a Meta: todavía no hay un conjunto de datos protegido de Meta conectado.",
|
|
248008
|
+
* "measures": "Mide el tiempo que la página estuvo abierta y a la vista, no cuánto del video se reprodujo.",
|
|
248009
|
+
* "meta_note": "Es una señal que se envía a Meta, no un objetivo de optimización: todavía no está comprobado que un conjunto de anuncios pueda optimizar con ella.",
|
|
248010
|
+
* "recopy_note": "Después de encender o apagar esta señal, hay que copiar de nuevo el código de instalación en la página. Si no, la página sigue como estaba.",
|
|
248011
|
+
* "agency_note": null,
|
|
248012
|
+
* "install": {
|
|
248013
|
+
* "path": "/ads/tracking/key",
|
|
248014
|
+
* "field": "snippet"
|
|
248015
|
+
* }
|
|
248016
|
+
* }
|
|
248017
|
+
* }
|
|
248018
|
+
*/
|
|
248019
|
+
"application/json": {
|
|
248020
|
+
data: components["schemas"]["AdsEngagedVisit"] & Record<string, never>;
|
|
248021
|
+
};
|
|
248022
|
+
};
|
|
248023
|
+
};
|
|
248024
|
+
/** @description Validation error */
|
|
248025
|
+
400: {
|
|
248026
|
+
headers: {
|
|
248027
|
+
[name: string]: unknown;
|
|
248028
|
+
};
|
|
248029
|
+
content: {
|
|
248030
|
+
"application/json": components["schemas"]["Error"];
|
|
248031
|
+
};
|
|
248032
|
+
};
|
|
248033
|
+
/** @description Unauthorized */
|
|
248034
|
+
401: {
|
|
248035
|
+
headers: {
|
|
248036
|
+
[name: string]: unknown;
|
|
248037
|
+
};
|
|
248038
|
+
content: {
|
|
248039
|
+
"application/json": components["schemas"]["Error"];
|
|
248040
|
+
};
|
|
248041
|
+
};
|
|
248042
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
248043
|
+
402: {
|
|
248044
|
+
headers: {
|
|
248045
|
+
[name: string]: unknown;
|
|
248046
|
+
};
|
|
248047
|
+
content: {
|
|
248048
|
+
/**
|
|
248049
|
+
* @example {
|
|
248050
|
+
* "error": {
|
|
248051
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
248052
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
248053
|
+
* "details": {
|
|
248054
|
+
* "required": [
|
|
248055
|
+
* "vitrina_ads"
|
|
248056
|
+
* ],
|
|
248057
|
+
* "active": [],
|
|
248058
|
+
* "feature": "vitrina_ads",
|
|
248059
|
+
* "entitlement_state": "off"
|
|
248060
|
+
* }
|
|
248061
|
+
* }
|
|
248062
|
+
* }
|
|
248063
|
+
*/
|
|
248064
|
+
"application/json": components["schemas"]["Error"];
|
|
248065
|
+
};
|
|
248066
|
+
};
|
|
248067
|
+
/** @description Forbidden */
|
|
248068
|
+
403: {
|
|
248069
|
+
headers: {
|
|
248070
|
+
[name: string]: unknown;
|
|
248071
|
+
};
|
|
248072
|
+
content: {
|
|
248073
|
+
"application/json": components["schemas"]["Error"];
|
|
248074
|
+
};
|
|
248075
|
+
};
|
|
248076
|
+
/** @description Not found */
|
|
248077
|
+
404: {
|
|
248078
|
+
headers: {
|
|
248079
|
+
[name: string]: unknown;
|
|
248080
|
+
};
|
|
248081
|
+
content: {
|
|
248082
|
+
"application/json": components["schemas"]["Error"];
|
|
248083
|
+
};
|
|
248084
|
+
};
|
|
248085
|
+
/** @description Vitrina Ads is active but the delegated key has not finished rotating (`ADS_KEY_NEEDS_REMINT`) — retry once `GET /ads/state` reports `needs_remint: false`. Also the generic conflict of a write. */
|
|
248086
|
+
409: {
|
|
248087
|
+
headers: {
|
|
248088
|
+
[name: string]: unknown;
|
|
248089
|
+
};
|
|
248090
|
+
content: {
|
|
248091
|
+
/**
|
|
248092
|
+
* @example {
|
|
248093
|
+
* "error": {
|
|
248094
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
248095
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
248096
|
+
* "details": {
|
|
248097
|
+
* "key_kind": "core"
|
|
248098
|
+
* }
|
|
248099
|
+
* }
|
|
248100
|
+
* }
|
|
248101
|
+
*/
|
|
248102
|
+
"application/json": components["schemas"]["Error"];
|
|
248103
|
+
};
|
|
248104
|
+
};
|
|
248105
|
+
/** @description Rate limited */
|
|
248106
|
+
429: {
|
|
248107
|
+
headers: {
|
|
248108
|
+
[name: string]: unknown;
|
|
248109
|
+
};
|
|
248110
|
+
content: {
|
|
248111
|
+
"application/json": components["schemas"]["Error"];
|
|
248112
|
+
};
|
|
248113
|
+
};
|
|
248114
|
+
};
|
|
248115
|
+
};
|
|
248116
|
+
trace?: never;
|
|
248117
|
+
};
|
|
247814
248118
|
"/ads/tracking/gtm": {
|
|
247815
248119
|
parameters: {
|
|
247816
248120
|
query?: never;
|
|
@@ -342529,6 +342833,46 @@ interface components {
|
|
|
342529
342833
|
ttl_ms: number;
|
|
342530
342834
|
privacy?: components["schemas"]["AdsPrivacyCheck"];
|
|
342531
342835
|
};
|
|
342836
|
+
/** @description Clinics: the «Se quedó 15 segundos» step, a signal sent to Meta (never an optimisation target). Off by default; when on but not reaching Meta it says why. `null` outside clinics. */
|
|
342837
|
+
AdsEngagedVisit: {
|
|
342838
|
+
/**
|
|
342839
|
+
* @description `off` = nothing is sent. `sending` = on, and the setup lets it reach Meta. `not_sending` = on, but `export_blocker` keeps it from Meta. `unavailable` = the state could not be read (only inside the send status).
|
|
342840
|
+
* @enum {string}
|
|
342841
|
+
*/
|
|
342842
|
+
state: "off" | "sending" | "not_sending" | "unavailable";
|
|
342843
|
+
/** @description The signal is on. Off by default. */
|
|
342844
|
+
enabled: boolean;
|
|
342845
|
+
/** @description Visible seconds before the event fires. Read-only: 15 unless the platform changes it. */
|
|
342846
|
+
seconds: number;
|
|
342847
|
+
/** @description Read back from the measurement engine: an engaged visit would reach the clinic’s protected Meta dataset. Computed whether or not the signal is on; it does not evaluate consent or the engine’s kill switches. */
|
|
342848
|
+
export_ready: boolean;
|
|
342849
|
+
/**
|
|
342850
|
+
* @description Why `export_ready` is false; `null` when ready or not named.
|
|
342851
|
+
* @enum {string|null}
|
|
342852
|
+
*/
|
|
342853
|
+
export_blocker: "not_platform_safe" | "platform_safe_target_not_clean" | "meta_export_disabled" | "no_clean_dataset_destination" | null;
|
|
342854
|
+
/** @description `export_blocker` in plain Spanish; only when `not_sending`. */
|
|
342855
|
+
blocker_text: string | null;
|
|
342856
|
+
/** @description False for a workspace that is a guest on its agency’s profile. */
|
|
342857
|
+
can_write: boolean;
|
|
342858
|
+
managed_by_agency: boolean;
|
|
342859
|
+
/** @description «Se quedó 15 segundos». */
|
|
342860
|
+
title: string;
|
|
342861
|
+
/** @description The state in one Spanish sentence. */
|
|
342862
|
+
summary: string;
|
|
342863
|
+
/** @description Time on the PAGE, not video play time (Spanish). */
|
|
342864
|
+
measures: string;
|
|
342865
|
+
/** @description A signal sent to Meta, never an optimisation target: it is not verified that an ad set can optimise on it (Spanish). */
|
|
342866
|
+
meta_note: string;
|
|
342867
|
+
/** @description The install snippet must be copied again after the setting changes (Spanish). */
|
|
342868
|
+
recopy_note: string;
|
|
342869
|
+
agency_note: string | null;
|
|
342870
|
+
/** @description Where the snippet is: `GET {path}` (the existing tracking key read), field `field`. */
|
|
342871
|
+
install: {
|
|
342872
|
+
path: string;
|
|
342873
|
+
field: string;
|
|
342874
|
+
};
|
|
342875
|
+
} | null;
|
|
342532
342876
|
AdsSendStatus: {
|
|
342533
342877
|
/**
|
|
342534
342878
|
* @description `blocked` = only Meta or the owner outside Vitrina can fix it (`blocked_reason`). `off` = set up once and every stage stopped. `measure_only` = the owner chose «Solo medir, no enviar a Meta» (reversible with `send_setup`).
|
|
@@ -342789,6 +343133,7 @@ interface components {
|
|
|
342789
343133
|
/** @description Distinct active ad sets that optimise on an event Vitrina sends (the wiring verdicts). */
|
|
342790
343134
|
on_sent_events: number;
|
|
342791
343135
|
} | null;
|
|
343136
|
+
engaged_visit: components["schemas"]["AdsEngagedVisit"];
|
|
342792
343137
|
};
|
|
342793
343138
|
AdsSendPreviewEvent: {
|
|
342794
343139
|
/** @enum {string} */
|
|
@@ -347704,6 +348049,9 @@ interface components {
|
|
|
347704
348049
|
}[];
|
|
347705
348050
|
} | null;
|
|
347706
348051
|
};
|
|
348052
|
+
AdsEngagedVisitPatch: {
|
|
348053
|
+
enabled: boolean;
|
|
348054
|
+
};
|
|
347707
348055
|
/**
|
|
347708
348056
|
* @example {
|
|
347709
348057
|
* "type": "tag",
|
package/dist/index.d.ts
CHANGED
|
@@ -183230,7 +183230,8 @@ interface paths {
|
|
|
183230
183230
|
* "checked_at": "2026-09-25T10:40:00.000Z",
|
|
183231
183231
|
* "stale": false,
|
|
183232
183232
|
* "sample": false,
|
|
183233
|
-
* "ad_set_goals": null
|
|
183233
|
+
* "ad_set_goals": null,
|
|
183234
|
+
* "engaged_visit": null
|
|
183234
183235
|
* }
|
|
183235
183236
|
* }
|
|
183236
183237
|
*/
|
|
@@ -225317,14 +225318,14 @@ interface paths {
|
|
|
225317
225318
|
* "review": {
|
|
225318
225319
|
* "language": "es",
|
|
225319
225320
|
* "category": "MARKETING",
|
|
225320
|
-
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de
|
|
225321
|
+
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de los mensajes. Meta puede cambiar la categoría al revisarla; si la aprueba en otra, Vitrina no la envía.",
|
|
225321
225322
|
* "price_per_send": {
|
|
225322
225323
|
* "market": "CL",
|
|
225323
225324
|
* "currency": "USD",
|
|
225324
225325
|
* "category": "marketing",
|
|
225325
225326
|
* "amount": 0.0889,
|
|
225326
225327
|
* "as_of": "2026-11-01",
|
|
225327
|
-
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a
|
|
225328
|
+
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a la cuenta de WhatsApp."
|
|
225328
225329
|
* },
|
|
225329
225330
|
* "header": {
|
|
225330
225331
|
* "format": "VIDEO",
|
|
@@ -225333,8 +225334,8 @@ interface paths {
|
|
|
225333
225334
|
* "mime_type": "video/mp4",
|
|
225334
225335
|
* "byte_size": 4200000
|
|
225335
225336
|
* },
|
|
225336
|
-
* "body_text": "Hola {{nombre}},
|
|
225337
|
-
* "body_preview": "Hola María,
|
|
225337
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225338
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225338
225339
|
* "variables": [
|
|
225339
225340
|
* {
|
|
225340
225341
|
* "name": "nombre",
|
|
@@ -225466,14 +225467,14 @@ interface paths {
|
|
|
225466
225467
|
* "review": {
|
|
225467
225468
|
* "language": "es",
|
|
225468
225469
|
* "category": "MARKETING",
|
|
225469
|
-
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de
|
|
225470
|
+
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de los mensajes. Meta puede cambiar la categoría al revisarla; si la aprueba en otra, Vitrina no la envía.",
|
|
225470
225471
|
* "price_per_send": {
|
|
225471
225472
|
* "market": "CL",
|
|
225472
225473
|
* "currency": "USD",
|
|
225473
225474
|
* "category": "marketing",
|
|
225474
225475
|
* "amount": 0.0889,
|
|
225475
225476
|
* "as_of": "2026-11-01",
|
|
225476
|
-
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a
|
|
225477
|
+
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a la cuenta de WhatsApp."
|
|
225477
225478
|
* },
|
|
225478
225479
|
* "header": {
|
|
225479
225480
|
* "format": "VIDEO",
|
|
@@ -225482,8 +225483,8 @@ interface paths {
|
|
|
225482
225483
|
* "mime_type": "video/mp4",
|
|
225483
225484
|
* "byte_size": 4200000
|
|
225484
225485
|
* },
|
|
225485
|
-
* "body_text": "Hola {{nombre}},
|
|
225486
|
-
* "body_preview": "Hola María,
|
|
225486
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225487
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225487
225488
|
* "variables": [
|
|
225488
225489
|
* {
|
|
225489
225490
|
* "name": "nombre",
|
|
@@ -225626,14 +225627,14 @@ interface paths {
|
|
|
225626
225627
|
* "review": {
|
|
225627
225628
|
* "language": "es",
|
|
225628
225629
|
* "category": "MARKETING",
|
|
225629
|
-
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de
|
|
225630
|
+
* "category_note": "Marketing. Los mensajes de una secuencia se envían como marketing, así que la plantilla se pide en esa categoría y solo le llega a quien no se haya dado de baja de los mensajes. Meta puede cambiar la categoría al revisarla; si la aprueba en otra, Vitrina no la envía.",
|
|
225630
225631
|
* "price_per_send": {
|
|
225631
225632
|
* "market": "CL",
|
|
225632
225633
|
* "currency": "USD",
|
|
225633
225634
|
* "category": "marketing",
|
|
225634
225635
|
* "amount": 0.0889,
|
|
225635
225636
|
* "as_of": "2026-11-01",
|
|
225636
|
-
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a
|
|
225637
|
+
* "label": "Cada envío de esta plantilla cuesta cerca de US$0,0889, la tarifa de Meta para una plantilla de marketing a un número de Chile. Meta lo cobra a la cuenta de WhatsApp."
|
|
225637
225638
|
* },
|
|
225638
225639
|
* "header": {
|
|
225639
225640
|
* "format": "VIDEO",
|
|
@@ -225642,8 +225643,8 @@ interface paths {
|
|
|
225642
225643
|
* "mime_type": "video/mp4",
|
|
225643
225644
|
* "byte_size": 4200000
|
|
225644
225645
|
* },
|
|
225645
|
-
* "body_text": "Hola {{nombre}},
|
|
225646
|
-
* "body_preview": "Hola María,
|
|
225646
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225647
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225647
225648
|
* "variables": [
|
|
225648
225649
|
* {
|
|
225649
225650
|
* "name": "nombre",
|
|
@@ -247811,6 +247812,309 @@ interface paths {
|
|
|
247811
247812
|
patch?: never;
|
|
247812
247813
|
trace?: never;
|
|
247813
247814
|
};
|
|
247815
|
+
"/ads/tracking/engaged-visit": {
|
|
247816
|
+
parameters: {
|
|
247817
|
+
query?: never;
|
|
247818
|
+
header?: never;
|
|
247819
|
+
path?: never;
|
|
247820
|
+
cookie?: never;
|
|
247821
|
+
};
|
|
247822
|
+
/**
|
|
247823
|
+
* The «Se quedó 15 segundos» signal: state read back
|
|
247824
|
+
* @description Clinics (healthcare workspaces) with Vitrina Ads usable. The signal sends Meta an event when a person has had the page open and visible for `seconds` (15). It measures time on the PAGE, not video play time. Off by default. The state is read back from the measurement engine on every call: `enabled`, `seconds` (read-only), `export_ready` and, when it is not ready, the `export_blocker` with `blocker_text`. It is a signal sent to Meta, not an optimisation target (see `meta_note`). A workspace that is a guest on its agency’s profile reads the state (`can_write: false`). After the setting changes the install snippet must be copied again (`install`, `recopy_note`). Admin-scoped (`ads:read`).
|
|
247825
|
+
*/
|
|
247826
|
+
get: {
|
|
247827
|
+
parameters: {
|
|
247828
|
+
query?: never;
|
|
247829
|
+
header?: never;
|
|
247830
|
+
path?: never;
|
|
247831
|
+
cookie?: never;
|
|
247832
|
+
};
|
|
247833
|
+
requestBody?: never;
|
|
247834
|
+
responses: {
|
|
247835
|
+
/** @description The signal’s state */
|
|
247836
|
+
200: {
|
|
247837
|
+
headers: {
|
|
247838
|
+
[name: string]: unknown;
|
|
247839
|
+
};
|
|
247840
|
+
content: {
|
|
247841
|
+
/**
|
|
247842
|
+
* @example {
|
|
247843
|
+
* "data": {
|
|
247844
|
+
* "state": "off",
|
|
247845
|
+
* "enabled": false,
|
|
247846
|
+
* "seconds": 15,
|
|
247847
|
+
* "export_ready": false,
|
|
247848
|
+
* "export_blocker": null,
|
|
247849
|
+
* "blocker_text": null,
|
|
247850
|
+
* "can_write": true,
|
|
247851
|
+
* "managed_by_agency": false,
|
|
247852
|
+
* "title": "Se quedó 15 segundos",
|
|
247853
|
+
* "summary": "Apagada. No se envía nada a Meta sobre cuánto tiempo se queda la gente en la página.",
|
|
247854
|
+
* "measures": "Mide el tiempo que la página estuvo abierta y a la vista, no cuánto del video se reprodujo.",
|
|
247855
|
+
* "meta_note": "Es una señal que se envía a Meta, no un objetivo de optimización: todavía no está comprobado que un conjunto de anuncios pueda optimizar con ella.",
|
|
247856
|
+
* "recopy_note": "Después de encender o apagar esta señal, hay que copiar de nuevo el código de instalación en la página. Si no, la página sigue como estaba.",
|
|
247857
|
+
* "agency_note": null,
|
|
247858
|
+
* "install": {
|
|
247859
|
+
* "path": "/ads/tracking/key",
|
|
247860
|
+
* "field": "snippet"
|
|
247861
|
+
* }
|
|
247862
|
+
* }
|
|
247863
|
+
* }
|
|
247864
|
+
*/
|
|
247865
|
+
"application/json": {
|
|
247866
|
+
data: components["schemas"]["AdsEngagedVisit"] & Record<string, never>;
|
|
247867
|
+
};
|
|
247868
|
+
};
|
|
247869
|
+
};
|
|
247870
|
+
/** @description Validation error */
|
|
247871
|
+
400: {
|
|
247872
|
+
headers: {
|
|
247873
|
+
[name: string]: unknown;
|
|
247874
|
+
};
|
|
247875
|
+
content: {
|
|
247876
|
+
"application/json": components["schemas"]["Error"];
|
|
247877
|
+
};
|
|
247878
|
+
};
|
|
247879
|
+
/** @description Unauthorized */
|
|
247880
|
+
401: {
|
|
247881
|
+
headers: {
|
|
247882
|
+
[name: string]: unknown;
|
|
247883
|
+
};
|
|
247884
|
+
content: {
|
|
247885
|
+
"application/json": components["schemas"]["Error"];
|
|
247886
|
+
};
|
|
247887
|
+
};
|
|
247888
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
247889
|
+
402: {
|
|
247890
|
+
headers: {
|
|
247891
|
+
[name: string]: unknown;
|
|
247892
|
+
};
|
|
247893
|
+
content: {
|
|
247894
|
+
/**
|
|
247895
|
+
* @example {
|
|
247896
|
+
* "error": {
|
|
247897
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
247898
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
247899
|
+
* "details": {
|
|
247900
|
+
* "required": [
|
|
247901
|
+
* "vitrina_ads"
|
|
247902
|
+
* ],
|
|
247903
|
+
* "active": [],
|
|
247904
|
+
* "feature": "vitrina_ads",
|
|
247905
|
+
* "entitlement_state": "off"
|
|
247906
|
+
* }
|
|
247907
|
+
* }
|
|
247908
|
+
* }
|
|
247909
|
+
*/
|
|
247910
|
+
"application/json": components["schemas"]["Error"];
|
|
247911
|
+
};
|
|
247912
|
+
};
|
|
247913
|
+
/** @description Forbidden */
|
|
247914
|
+
403: {
|
|
247915
|
+
headers: {
|
|
247916
|
+
[name: string]: unknown;
|
|
247917
|
+
};
|
|
247918
|
+
content: {
|
|
247919
|
+
"application/json": components["schemas"]["Error"];
|
|
247920
|
+
};
|
|
247921
|
+
};
|
|
247922
|
+
/** @description Not found */
|
|
247923
|
+
404: {
|
|
247924
|
+
headers: {
|
|
247925
|
+
[name: string]: unknown;
|
|
247926
|
+
};
|
|
247927
|
+
content: {
|
|
247928
|
+
"application/json": components["schemas"]["Error"];
|
|
247929
|
+
};
|
|
247930
|
+
};
|
|
247931
|
+
/** @description Vitrina Ads is active but the delegated key has not finished rotating (`ADS_KEY_NEEDS_REMINT`) — retry once `GET /ads/state` reports `needs_remint: false`. Also the generic conflict of a write. */
|
|
247932
|
+
409: {
|
|
247933
|
+
headers: {
|
|
247934
|
+
[name: string]: unknown;
|
|
247935
|
+
};
|
|
247936
|
+
content: {
|
|
247937
|
+
/**
|
|
247938
|
+
* @example {
|
|
247939
|
+
* "error": {
|
|
247940
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
247941
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
247942
|
+
* "details": {
|
|
247943
|
+
* "key_kind": "core"
|
|
247944
|
+
* }
|
|
247945
|
+
* }
|
|
247946
|
+
* }
|
|
247947
|
+
*/
|
|
247948
|
+
"application/json": components["schemas"]["Error"];
|
|
247949
|
+
};
|
|
247950
|
+
};
|
|
247951
|
+
/** @description Rate limited */
|
|
247952
|
+
429: {
|
|
247953
|
+
headers: {
|
|
247954
|
+
[name: string]: unknown;
|
|
247955
|
+
};
|
|
247956
|
+
content: {
|
|
247957
|
+
"application/json": components["schemas"]["Error"];
|
|
247958
|
+
};
|
|
247959
|
+
};
|
|
247960
|
+
};
|
|
247961
|
+
};
|
|
247962
|
+
put?: never;
|
|
247963
|
+
post?: never;
|
|
247964
|
+
delete?: never;
|
|
247965
|
+
options?: never;
|
|
247966
|
+
head?: never;
|
|
247967
|
+
/**
|
|
247968
|
+
* Turn the «Se quedó 15 segundos» signal on or off
|
|
247969
|
+
* @description Sets `enabled` at the measurement engine and answers the state the engine now reports (never an echo of the request). Audited. Turning it on while `export_ready` is false is accepted: the answer says why nothing is sent. 403 `ATTRIBUTION_LINKED_READ_ONLY` for a workspace that is a guest on its agency’s profile (the agency manages it); 403 `vertical_not_enabled` outside clinics; 409 `ADS_KEY_NEEDS_REMINT` while the credential catches up with the add-on (one automatic re-mint is tried first). The install snippet must be copied again after the change. Admin-scoped (`ads:write`).
|
|
247970
|
+
*/
|
|
247971
|
+
patch: {
|
|
247972
|
+
parameters: {
|
|
247973
|
+
query?: never;
|
|
247974
|
+
header?: never;
|
|
247975
|
+
path?: never;
|
|
247976
|
+
cookie?: never;
|
|
247977
|
+
};
|
|
247978
|
+
requestBody: {
|
|
247979
|
+
content: {
|
|
247980
|
+
/**
|
|
247981
|
+
* @example {
|
|
247982
|
+
* "enabled": true
|
|
247983
|
+
* }
|
|
247984
|
+
*/
|
|
247985
|
+
"application/json": components["schemas"]["AdsEngagedVisitPatch"];
|
|
247986
|
+
};
|
|
247987
|
+
};
|
|
247988
|
+
responses: {
|
|
247989
|
+
/** @description The signal’s state after the change */
|
|
247990
|
+
200: {
|
|
247991
|
+
headers: {
|
|
247992
|
+
[name: string]: unknown;
|
|
247993
|
+
};
|
|
247994
|
+
content: {
|
|
247995
|
+
/**
|
|
247996
|
+
* @example {
|
|
247997
|
+
* "data": {
|
|
247998
|
+
* "state": "not_sending",
|
|
247999
|
+
* "enabled": true,
|
|
248000
|
+
* "seconds": 15,
|
|
248001
|
+
* "export_ready": false,
|
|
248002
|
+
* "export_blocker": "no_clean_dataset_destination",
|
|
248003
|
+
* "blocker_text": "todavía no hay un conjunto de datos protegido de Meta conectado",
|
|
248004
|
+
* "can_write": true,
|
|
248005
|
+
* "managed_by_agency": false,
|
|
248006
|
+
* "title": "Se quedó 15 segundos",
|
|
248007
|
+
* "summary": "Encendida, pero por ahora no se envía nada a Meta: todavía no hay un conjunto de datos protegido de Meta conectado.",
|
|
248008
|
+
* "measures": "Mide el tiempo que la página estuvo abierta y a la vista, no cuánto del video se reprodujo.",
|
|
248009
|
+
* "meta_note": "Es una señal que se envía a Meta, no un objetivo de optimización: todavía no está comprobado que un conjunto de anuncios pueda optimizar con ella.",
|
|
248010
|
+
* "recopy_note": "Después de encender o apagar esta señal, hay que copiar de nuevo el código de instalación en la página. Si no, la página sigue como estaba.",
|
|
248011
|
+
* "agency_note": null,
|
|
248012
|
+
* "install": {
|
|
248013
|
+
* "path": "/ads/tracking/key",
|
|
248014
|
+
* "field": "snippet"
|
|
248015
|
+
* }
|
|
248016
|
+
* }
|
|
248017
|
+
* }
|
|
248018
|
+
*/
|
|
248019
|
+
"application/json": {
|
|
248020
|
+
data: components["schemas"]["AdsEngagedVisit"] & Record<string, never>;
|
|
248021
|
+
};
|
|
248022
|
+
};
|
|
248023
|
+
};
|
|
248024
|
+
/** @description Validation error */
|
|
248025
|
+
400: {
|
|
248026
|
+
headers: {
|
|
248027
|
+
[name: string]: unknown;
|
|
248028
|
+
};
|
|
248029
|
+
content: {
|
|
248030
|
+
"application/json": components["schemas"]["Error"];
|
|
248031
|
+
};
|
|
248032
|
+
};
|
|
248033
|
+
/** @description Unauthorized */
|
|
248034
|
+
401: {
|
|
248035
|
+
headers: {
|
|
248036
|
+
[name: string]: unknown;
|
|
248037
|
+
};
|
|
248038
|
+
content: {
|
|
248039
|
+
"application/json": components["schemas"]["Error"];
|
|
248040
|
+
};
|
|
248041
|
+
};
|
|
248042
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
248043
|
+
402: {
|
|
248044
|
+
headers: {
|
|
248045
|
+
[name: string]: unknown;
|
|
248046
|
+
};
|
|
248047
|
+
content: {
|
|
248048
|
+
/**
|
|
248049
|
+
* @example {
|
|
248050
|
+
* "error": {
|
|
248051
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
248052
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
248053
|
+
* "details": {
|
|
248054
|
+
* "required": [
|
|
248055
|
+
* "vitrina_ads"
|
|
248056
|
+
* ],
|
|
248057
|
+
* "active": [],
|
|
248058
|
+
* "feature": "vitrina_ads",
|
|
248059
|
+
* "entitlement_state": "off"
|
|
248060
|
+
* }
|
|
248061
|
+
* }
|
|
248062
|
+
* }
|
|
248063
|
+
*/
|
|
248064
|
+
"application/json": components["schemas"]["Error"];
|
|
248065
|
+
};
|
|
248066
|
+
};
|
|
248067
|
+
/** @description Forbidden */
|
|
248068
|
+
403: {
|
|
248069
|
+
headers: {
|
|
248070
|
+
[name: string]: unknown;
|
|
248071
|
+
};
|
|
248072
|
+
content: {
|
|
248073
|
+
"application/json": components["schemas"]["Error"];
|
|
248074
|
+
};
|
|
248075
|
+
};
|
|
248076
|
+
/** @description Not found */
|
|
248077
|
+
404: {
|
|
248078
|
+
headers: {
|
|
248079
|
+
[name: string]: unknown;
|
|
248080
|
+
};
|
|
248081
|
+
content: {
|
|
248082
|
+
"application/json": components["schemas"]["Error"];
|
|
248083
|
+
};
|
|
248084
|
+
};
|
|
248085
|
+
/** @description Vitrina Ads is active but the delegated key has not finished rotating (`ADS_KEY_NEEDS_REMINT`) — retry once `GET /ads/state` reports `needs_remint: false`. Also the generic conflict of a write. */
|
|
248086
|
+
409: {
|
|
248087
|
+
headers: {
|
|
248088
|
+
[name: string]: unknown;
|
|
248089
|
+
};
|
|
248090
|
+
content: {
|
|
248091
|
+
/**
|
|
248092
|
+
* @example {
|
|
248093
|
+
* "error": {
|
|
248094
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
248095
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
248096
|
+
* "details": {
|
|
248097
|
+
* "key_kind": "core"
|
|
248098
|
+
* }
|
|
248099
|
+
* }
|
|
248100
|
+
* }
|
|
248101
|
+
*/
|
|
248102
|
+
"application/json": components["schemas"]["Error"];
|
|
248103
|
+
};
|
|
248104
|
+
};
|
|
248105
|
+
/** @description Rate limited */
|
|
248106
|
+
429: {
|
|
248107
|
+
headers: {
|
|
248108
|
+
[name: string]: unknown;
|
|
248109
|
+
};
|
|
248110
|
+
content: {
|
|
248111
|
+
"application/json": components["schemas"]["Error"];
|
|
248112
|
+
};
|
|
248113
|
+
};
|
|
248114
|
+
};
|
|
248115
|
+
};
|
|
248116
|
+
trace?: never;
|
|
248117
|
+
};
|
|
247814
248118
|
"/ads/tracking/gtm": {
|
|
247815
248119
|
parameters: {
|
|
247816
248120
|
query?: never;
|
|
@@ -342529,6 +342833,46 @@ interface components {
|
|
|
342529
342833
|
ttl_ms: number;
|
|
342530
342834
|
privacy?: components["schemas"]["AdsPrivacyCheck"];
|
|
342531
342835
|
};
|
|
342836
|
+
/** @description Clinics: the «Se quedó 15 segundos» step, a signal sent to Meta (never an optimisation target). Off by default; when on but not reaching Meta it says why. `null` outside clinics. */
|
|
342837
|
+
AdsEngagedVisit: {
|
|
342838
|
+
/**
|
|
342839
|
+
* @description `off` = nothing is sent. `sending` = on, and the setup lets it reach Meta. `not_sending` = on, but `export_blocker` keeps it from Meta. `unavailable` = the state could not be read (only inside the send status).
|
|
342840
|
+
* @enum {string}
|
|
342841
|
+
*/
|
|
342842
|
+
state: "off" | "sending" | "not_sending" | "unavailable";
|
|
342843
|
+
/** @description The signal is on. Off by default. */
|
|
342844
|
+
enabled: boolean;
|
|
342845
|
+
/** @description Visible seconds before the event fires. Read-only: 15 unless the platform changes it. */
|
|
342846
|
+
seconds: number;
|
|
342847
|
+
/** @description Read back from the measurement engine: an engaged visit would reach the clinic’s protected Meta dataset. Computed whether or not the signal is on; it does not evaluate consent or the engine’s kill switches. */
|
|
342848
|
+
export_ready: boolean;
|
|
342849
|
+
/**
|
|
342850
|
+
* @description Why `export_ready` is false; `null` when ready or not named.
|
|
342851
|
+
* @enum {string|null}
|
|
342852
|
+
*/
|
|
342853
|
+
export_blocker: "not_platform_safe" | "platform_safe_target_not_clean" | "meta_export_disabled" | "no_clean_dataset_destination" | null;
|
|
342854
|
+
/** @description `export_blocker` in plain Spanish; only when `not_sending`. */
|
|
342855
|
+
blocker_text: string | null;
|
|
342856
|
+
/** @description False for a workspace that is a guest on its agency’s profile. */
|
|
342857
|
+
can_write: boolean;
|
|
342858
|
+
managed_by_agency: boolean;
|
|
342859
|
+
/** @description «Se quedó 15 segundos». */
|
|
342860
|
+
title: string;
|
|
342861
|
+
/** @description The state in one Spanish sentence. */
|
|
342862
|
+
summary: string;
|
|
342863
|
+
/** @description Time on the PAGE, not video play time (Spanish). */
|
|
342864
|
+
measures: string;
|
|
342865
|
+
/** @description A signal sent to Meta, never an optimisation target: it is not verified that an ad set can optimise on it (Spanish). */
|
|
342866
|
+
meta_note: string;
|
|
342867
|
+
/** @description The install snippet must be copied again after the setting changes (Spanish). */
|
|
342868
|
+
recopy_note: string;
|
|
342869
|
+
agency_note: string | null;
|
|
342870
|
+
/** @description Where the snippet is: `GET {path}` (the existing tracking key read), field `field`. */
|
|
342871
|
+
install: {
|
|
342872
|
+
path: string;
|
|
342873
|
+
field: string;
|
|
342874
|
+
};
|
|
342875
|
+
} | null;
|
|
342532
342876
|
AdsSendStatus: {
|
|
342533
342877
|
/**
|
|
342534
342878
|
* @description `blocked` = only Meta or the owner outside Vitrina can fix it (`blocked_reason`). `off` = set up once and every stage stopped. `measure_only` = the owner chose «Solo medir, no enviar a Meta» (reversible with `send_setup`).
|
|
@@ -342789,6 +343133,7 @@ interface components {
|
|
|
342789
343133
|
/** @description Distinct active ad sets that optimise on an event Vitrina sends (the wiring verdicts). */
|
|
342790
343134
|
on_sent_events: number;
|
|
342791
343135
|
} | null;
|
|
343136
|
+
engaged_visit: components["schemas"]["AdsEngagedVisit"];
|
|
342792
343137
|
};
|
|
342793
343138
|
AdsSendPreviewEvent: {
|
|
342794
343139
|
/** @enum {string} */
|
|
@@ -347704,6 +348049,9 @@ interface components {
|
|
|
347704
348049
|
}[];
|
|
347705
348050
|
} | null;
|
|
347706
348051
|
};
|
|
348052
|
+
AdsEngagedVisitPatch: {
|
|
348053
|
+
enabled: boolean;
|
|
348054
|
+
};
|
|
347707
348055
|
/**
|
|
347708
348056
|
* @example {
|
|
347709
348057
|
* "type": "tag",
|
package/package.json
CHANGED