@vitrina/api 17.120.0 → 17.122.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 +438 -27
- package/dist/index.d.ts +438 -27
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -115754,7 +115754,7 @@ interface paths {
|
|
|
115754
115754
|
};
|
|
115755
115755
|
/**
|
|
115756
115756
|
* What the Paquete anual of a year holds and what it is missing
|
|
115757
|
-
* @description The Paquete anual's manifest, without the bytes: the files (key, label, name, rows, size), `complete` (
|
|
115757
|
+
* @description The Paquete anual's manifest, without the bytes: the files (key, label, name, rows, size), `complete` (the year is over and nothing a person can do is missing; `limits`, what Vitrina does not hold, do not count), `status`, `has_limits`, `limits` (one sentence per kind: the SII window, F29 filed elsewhere, payments marked paid before Vitrina...), `incomplete` (every reason with `actionable`: the months not closed, not read by the SII sync, with unclassified movements or documents, F29 periods with no filing, undated collections and payments, money out nothing explains: Spanish sentences, ready to show), `warnings` (retention declared versus the boletas) and one row per month. The zip downloads from `GET /finanzas/contador-export?year=`. `00-estado-del-ano` (what makes the year incomplete), `01-resultado-por-cuenta` (a column per month and the total), `02-base-de-caja` (collected and paid by account, `no_operacional` money apart, undated items listed), `03-iva-y-ppm` (each F29, proposal or filed), `04-honorarios-y-retenciones` (with the comparison against F29 code 151), `05-libro-de-compras`, `06-libro-de-ventas` and `07-pagos-de-impuestos`, each `<name>-<year>.xlsx`. A future year answers 400, and so does the current year until a month of it has closed; a workspace with more than one sociedad answers 409. It writes nothing: the open cases are read as stored (they are rebuilt after every sync and change). A caller without the patient register (the Contador) sees a patient as «Paciente A. P.» with no RUT; the libro de ventas keeps the patient RUT on facturas and on notas de crédito or débito that cite one, and boletas carry neither RUT nor name. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`, `finanzas_reports:read` and `finanzas:export` (the Contador seat, owners and admins).
|
|
115758
115758
|
*/
|
|
115759
115759
|
get: {
|
|
115760
115760
|
parameters: {
|
|
@@ -115781,6 +115781,11 @@ interface paths {
|
|
|
115781
115781
|
* "filename": "paquete-contador-2025.zip",
|
|
115782
115782
|
* "in_progress": false,
|
|
115783
115783
|
* "complete": true,
|
|
115784
|
+
* "has_limits": false,
|
|
115785
|
+
* "status": "complete",
|
|
115786
|
+
* "status_label": "Completo",
|
|
115787
|
+
* "actionable_count": 0,
|
|
115788
|
+
* "limits": [],
|
|
115784
115789
|
* "sociedad": {
|
|
115785
115790
|
* "connection_id": "0194f3a0-7c1e-7a52-9d1b-3c5e8f2a6b41",
|
|
115786
115791
|
* "rut": "76.123.456-7",
|
|
@@ -115799,7 +115804,9 @@ interface paths {
|
|
|
115799
115804
|
* "sii_read": true,
|
|
115800
115805
|
* "f29": "filed",
|
|
115801
115806
|
* "f29_label": "Presentado",
|
|
115802
|
-
* "issues": []
|
|
115807
|
+
* "issues": [],
|
|
115808
|
+
* "actionable_issues": [],
|
|
115809
|
+
* "complete": true
|
|
115803
115810
|
* },
|
|
115804
115811
|
* {
|
|
115805
115812
|
* "month": "2025-02",
|
|
@@ -115811,7 +115818,9 @@ interface paths {
|
|
|
115811
115818
|
* "sii_read": true,
|
|
115812
115819
|
* "f29": "filed",
|
|
115813
115820
|
* "f29_label": "Presentado",
|
|
115814
|
-
* "issues": []
|
|
115821
|
+
* "issues": [],
|
|
115822
|
+
* "actionable_issues": [],
|
|
115823
|
+
* "complete": true
|
|
115815
115824
|
* },
|
|
115816
115825
|
* {
|
|
115817
115826
|
* "month": "2025-03",
|
|
@@ -115823,7 +115832,9 @@ interface paths {
|
|
|
115823
115832
|
* "sii_read": true,
|
|
115824
115833
|
* "f29": "filed",
|
|
115825
115834
|
* "f29_label": "Presentado",
|
|
115826
|
-
* "issues": []
|
|
115835
|
+
* "issues": [],
|
|
115836
|
+
* "actionable_issues": [],
|
|
115837
|
+
* "complete": true
|
|
115827
115838
|
* },
|
|
115828
115839
|
* {
|
|
115829
115840
|
* "month": "2025-04",
|
|
@@ -115835,7 +115846,9 @@ interface paths {
|
|
|
115835
115846
|
* "sii_read": true,
|
|
115836
115847
|
* "f29": "filed",
|
|
115837
115848
|
* "f29_label": "Presentado",
|
|
115838
|
-
* "issues": []
|
|
115849
|
+
* "issues": [],
|
|
115850
|
+
* "actionable_issues": [],
|
|
115851
|
+
* "complete": true
|
|
115839
115852
|
* },
|
|
115840
115853
|
* {
|
|
115841
115854
|
* "month": "2025-05",
|
|
@@ -115847,7 +115860,9 @@ interface paths {
|
|
|
115847
115860
|
* "sii_read": true,
|
|
115848
115861
|
* "f29": "filed",
|
|
115849
115862
|
* "f29_label": "Presentado",
|
|
115850
|
-
* "issues": []
|
|
115863
|
+
* "issues": [],
|
|
115864
|
+
* "actionable_issues": [],
|
|
115865
|
+
* "complete": true
|
|
115851
115866
|
* },
|
|
115852
115867
|
* {
|
|
115853
115868
|
* "month": "2025-06",
|
|
@@ -115859,7 +115874,9 @@ interface paths {
|
|
|
115859
115874
|
* "sii_read": true,
|
|
115860
115875
|
* "f29": "filed",
|
|
115861
115876
|
* "f29_label": "Presentado",
|
|
115862
|
-
* "issues": []
|
|
115877
|
+
* "issues": [],
|
|
115878
|
+
* "actionable_issues": [],
|
|
115879
|
+
* "complete": true
|
|
115863
115880
|
* },
|
|
115864
115881
|
* {
|
|
115865
115882
|
* "month": "2025-07",
|
|
@@ -115871,7 +115888,9 @@ interface paths {
|
|
|
115871
115888
|
* "sii_read": true,
|
|
115872
115889
|
* "f29": "filed",
|
|
115873
115890
|
* "f29_label": "Presentado",
|
|
115874
|
-
* "issues": []
|
|
115891
|
+
* "issues": [],
|
|
115892
|
+
* "actionable_issues": [],
|
|
115893
|
+
* "complete": true
|
|
115875
115894
|
* },
|
|
115876
115895
|
* {
|
|
115877
115896
|
* "month": "2025-08",
|
|
@@ -115883,7 +115902,9 @@ interface paths {
|
|
|
115883
115902
|
* "sii_read": true,
|
|
115884
115903
|
* "f29": "filed",
|
|
115885
115904
|
* "f29_label": "Presentado",
|
|
115886
|
-
* "issues": []
|
|
115905
|
+
* "issues": [],
|
|
115906
|
+
* "actionable_issues": [],
|
|
115907
|
+
* "complete": true
|
|
115887
115908
|
* },
|
|
115888
115909
|
* {
|
|
115889
115910
|
* "month": "2025-09",
|
|
@@ -115895,7 +115916,9 @@ interface paths {
|
|
|
115895
115916
|
* "sii_read": true,
|
|
115896
115917
|
* "f29": "filed",
|
|
115897
115918
|
* "f29_label": "Presentado",
|
|
115898
|
-
* "issues": []
|
|
115919
|
+
* "issues": [],
|
|
115920
|
+
* "actionable_issues": [],
|
|
115921
|
+
* "complete": true
|
|
115899
115922
|
* },
|
|
115900
115923
|
* {
|
|
115901
115924
|
* "month": "2025-10",
|
|
@@ -115907,7 +115930,9 @@ interface paths {
|
|
|
115907
115930
|
* "sii_read": true,
|
|
115908
115931
|
* "f29": "filed",
|
|
115909
115932
|
* "f29_label": "Presentado",
|
|
115910
|
-
* "issues": []
|
|
115933
|
+
* "issues": [],
|
|
115934
|
+
* "actionable_issues": [],
|
|
115935
|
+
* "complete": true
|
|
115911
115936
|
* },
|
|
115912
115937
|
* {
|
|
115913
115938
|
* "month": "2025-11",
|
|
@@ -115919,7 +115944,9 @@ interface paths {
|
|
|
115919
115944
|
* "sii_read": true,
|
|
115920
115945
|
* "f29": "filed",
|
|
115921
115946
|
* "f29_label": "Presentado",
|
|
115922
|
-
* "issues": []
|
|
115947
|
+
* "issues": [],
|
|
115948
|
+
* "actionable_issues": [],
|
|
115949
|
+
* "complete": true
|
|
115923
115950
|
* },
|
|
115924
115951
|
* {
|
|
115925
115952
|
* "month": "2025-12",
|
|
@@ -115931,7 +115958,9 @@ interface paths {
|
|
|
115931
115958
|
* "sii_read": true,
|
|
115932
115959
|
* "f29": "filed",
|
|
115933
115960
|
* "f29_label": "Presentado",
|
|
115934
|
-
* "issues": []
|
|
115961
|
+
* "issues": [],
|
|
115962
|
+
* "actionable_issues": [],
|
|
115963
|
+
* "complete": true
|
|
115935
115964
|
* }
|
|
115936
115965
|
* ],
|
|
115937
115966
|
* "files": [
|
|
@@ -116004,13 +116033,40 @@ interface paths {
|
|
|
116004
116033
|
filename: string;
|
|
116005
116034
|
/** @description The current year: figures still moving, future months missing. */
|
|
116006
116035
|
in_progress: boolean;
|
|
116007
|
-
/** @description True
|
|
116036
|
+
/** @description True when the year is over and no ACTIONABLE reason remains (`actionable_count` is 0). `limits` (what Vitrina does not hold) do not count: see `has_limits`. False for the current year. A year that is not complete is not final. */
|
|
116008
116037
|
complete: boolean;
|
|
116038
|
+
/** @description The year has limits: things the package does not contain or cannot confirm and no action in Vitrina can fix. A complete year can have limits («Completo, con límites»). */
|
|
116039
|
+
has_limits: boolean;
|
|
116040
|
+
/**
|
|
116041
|
+
* @description `complete` and not `has_limits`: «Completo»; `complete_with_limits`: «Completo, con límites»; `incomplete`: «Incompleto»; `in_progress` (the current year): «En curso: incompleto».
|
|
116042
|
+
* @enum {string}
|
|
116043
|
+
*/
|
|
116044
|
+
status: "complete" | "complete_with_limits" | "incomplete" | "in_progress";
|
|
116045
|
+
/** @description The Spanish label of `status`. */
|
|
116046
|
+
status_label: string;
|
|
116047
|
+
/** @description How many `incomplete` items have `actionable: true`. */
|
|
116048
|
+
actionable_count: number;
|
|
116049
|
+
/** @description The non-actionable reasons, ONE entry per kind for the year (not one per month). Nothing a person does in Vitrina clears them. */
|
|
116050
|
+
limits: {
|
|
116051
|
+
/** @enum {string} */
|
|
116052
|
+
kind: "sii_not_read_previous_year" | "sii_not_read" | "f29_not_readable" | "undated_collections_before_vitrina" | "undated_payments_before_vitrina" | "month_in_progress" | "month_not_started" | "rows_truncated";
|
|
116053
|
+
/** @description The reason codes collapsed into this limit. */
|
|
116054
|
+
codes: ("month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated")[];
|
|
116055
|
+
/** @description Spanish, neutral register: what the package does not contain or cannot confirm. */
|
|
116056
|
+
message: string;
|
|
116057
|
+
/** @description Months for the month kinds, documents for the undated kinds, files for `rows_truncated`. */
|
|
116058
|
+
count: number;
|
|
116059
|
+
/** @description In base de caja, for the undated kinds; null otherwise. */
|
|
116060
|
+
amount_clp: number | null;
|
|
116061
|
+
/** @description `YYYY-MM` months it covers; empty for a year-wide limit. */
|
|
116062
|
+
months: string[];
|
|
116063
|
+
}[];
|
|
116009
116064
|
sociedad: {
|
|
116010
116065
|
connection_id: string;
|
|
116011
116066
|
rut: string;
|
|
116012
116067
|
legal_name: string | null;
|
|
116013
116068
|
} | null;
|
|
116069
|
+
/** @description Every reason, actionable or not. Group by `actionable` to render «Por revisar» and «Lo que este paquete no trae». */
|
|
116014
116070
|
incomplete: {
|
|
116015
116071
|
/** @enum {string} */
|
|
116016
116072
|
code: "month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated";
|
|
@@ -116018,6 +116074,8 @@ interface paths {
|
|
|
116018
116074
|
month: string | null;
|
|
116019
116075
|
/** @description Spanish, ready to show. */
|
|
116020
116076
|
message: string;
|
|
116077
|
+
/** @description A person can clear it in Vitrina. False: Vitrina does not hold the data or it only needs time; it is also summarised in `limits`. An undated-payments or undated-collections reason is split into an actionable item and a non-actionable one (documents marked paid before Vitrina have no date to give). */
|
|
116078
|
+
actionable: boolean;
|
|
116021
116079
|
}[];
|
|
116022
116080
|
warnings: {
|
|
116023
116081
|
/** @enum {string} */
|
|
@@ -116037,7 +116095,12 @@ interface paths {
|
|
|
116037
116095
|
/** @enum {string} */
|
|
116038
116096
|
f29: "filed" | "proposal" | "missing" | "not_due";
|
|
116039
116097
|
f29_label: string;
|
|
116098
|
+
/** @description Every reason code of the month, actionable or not. */
|
|
116040
116099
|
issues: ("month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated")[];
|
|
116100
|
+
/** @description The subset of `issues` a person can clear. */
|
|
116101
|
+
actionable_issues: ("month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated")[];
|
|
116102
|
+
/** @description The month has ended and no actionable reason remains. False for the current month and for months that have not begun. */
|
|
116103
|
+
complete: boolean;
|
|
116041
116104
|
}[];
|
|
116042
116105
|
files: {
|
|
116043
116106
|
/** @enum {string} */
|
|
@@ -183230,7 +183293,8 @@ interface paths {
|
|
|
183230
183293
|
* "checked_at": "2026-09-25T10:40:00.000Z",
|
|
183231
183294
|
* "stale": false,
|
|
183232
183295
|
* "sample": false,
|
|
183233
|
-
* "ad_set_goals": null
|
|
183296
|
+
* "ad_set_goals": null,
|
|
183297
|
+
* "engaged_visit": null
|
|
183234
183298
|
* }
|
|
183235
183299
|
* }
|
|
183236
183300
|
*/
|
|
@@ -225317,14 +225381,14 @@ interface paths {
|
|
|
225317
225381
|
* "review": {
|
|
225318
225382
|
* "language": "es",
|
|
225319
225383
|
* "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
|
|
225384
|
+
* "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
225385
|
* "price_per_send": {
|
|
225322
225386
|
* "market": "CL",
|
|
225323
225387
|
* "currency": "USD",
|
|
225324
225388
|
* "category": "marketing",
|
|
225325
225389
|
* "amount": 0.0889,
|
|
225326
225390
|
* "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
|
|
225391
|
+
* "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
225392
|
* },
|
|
225329
225393
|
* "header": {
|
|
225330
225394
|
* "format": "VIDEO",
|
|
@@ -225333,8 +225397,8 @@ interface paths {
|
|
|
225333
225397
|
* "mime_type": "video/mp4",
|
|
225334
225398
|
* "byte_size": 4200000
|
|
225335
225399
|
* },
|
|
225336
|
-
* "body_text": "Hola {{nombre}},
|
|
225337
|
-
* "body_preview": "Hola María,
|
|
225400
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225401
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225338
225402
|
* "variables": [
|
|
225339
225403
|
* {
|
|
225340
225404
|
* "name": "nombre",
|
|
@@ -225466,14 +225530,14 @@ interface paths {
|
|
|
225466
225530
|
* "review": {
|
|
225467
225531
|
* "language": "es",
|
|
225468
225532
|
* "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
|
|
225533
|
+
* "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
225534
|
* "price_per_send": {
|
|
225471
225535
|
* "market": "CL",
|
|
225472
225536
|
* "currency": "USD",
|
|
225473
225537
|
* "category": "marketing",
|
|
225474
225538
|
* "amount": 0.0889,
|
|
225475
225539
|
* "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
|
|
225540
|
+
* "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
225541
|
* },
|
|
225478
225542
|
* "header": {
|
|
225479
225543
|
* "format": "VIDEO",
|
|
@@ -225482,8 +225546,8 @@ interface paths {
|
|
|
225482
225546
|
* "mime_type": "video/mp4",
|
|
225483
225547
|
* "byte_size": 4200000
|
|
225484
225548
|
* },
|
|
225485
|
-
* "body_text": "Hola {{nombre}},
|
|
225486
|
-
* "body_preview": "Hola María,
|
|
225549
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225550
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225487
225551
|
* "variables": [
|
|
225488
225552
|
* {
|
|
225489
225553
|
* "name": "nombre",
|
|
@@ -225626,14 +225690,14 @@ interface paths {
|
|
|
225626
225690
|
* "review": {
|
|
225627
225691
|
* "language": "es",
|
|
225628
225692
|
* "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
|
|
225693
|
+
* "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
225694
|
* "price_per_send": {
|
|
225631
225695
|
* "market": "CL",
|
|
225632
225696
|
* "currency": "USD",
|
|
225633
225697
|
* "category": "marketing",
|
|
225634
225698
|
* "amount": 0.0889,
|
|
225635
225699
|
* "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
|
|
225700
|
+
* "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
225701
|
* },
|
|
225638
225702
|
* "header": {
|
|
225639
225703
|
* "format": "VIDEO",
|
|
@@ -225642,8 +225706,8 @@ interface paths {
|
|
|
225642
225706
|
* "mime_type": "video/mp4",
|
|
225643
225707
|
* "byte_size": 4200000
|
|
225644
225708
|
* },
|
|
225645
|
-
* "body_text": "Hola {{nombre}},
|
|
225646
|
-
* "body_preview": "Hola María,
|
|
225709
|
+
* "body_text": "Hola {{nombre}}, así es la primera visita.",
|
|
225710
|
+
* "body_preview": "Hola María, así es la primera visita.",
|
|
225647
225711
|
* "variables": [
|
|
225648
225712
|
* {
|
|
225649
225713
|
* "name": "nombre",
|
|
@@ -247811,6 +247875,309 @@ interface paths {
|
|
|
247811
247875
|
patch?: never;
|
|
247812
247876
|
trace?: never;
|
|
247813
247877
|
};
|
|
247878
|
+
"/ads/tracking/engaged-visit": {
|
|
247879
|
+
parameters: {
|
|
247880
|
+
query?: never;
|
|
247881
|
+
header?: never;
|
|
247882
|
+
path?: never;
|
|
247883
|
+
cookie?: never;
|
|
247884
|
+
};
|
|
247885
|
+
/**
|
|
247886
|
+
* The «Se quedó 15 segundos» signal: state read back
|
|
247887
|
+
* @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`).
|
|
247888
|
+
*/
|
|
247889
|
+
get: {
|
|
247890
|
+
parameters: {
|
|
247891
|
+
query?: never;
|
|
247892
|
+
header?: never;
|
|
247893
|
+
path?: never;
|
|
247894
|
+
cookie?: never;
|
|
247895
|
+
};
|
|
247896
|
+
requestBody?: never;
|
|
247897
|
+
responses: {
|
|
247898
|
+
/** @description The signal’s state */
|
|
247899
|
+
200: {
|
|
247900
|
+
headers: {
|
|
247901
|
+
[name: string]: unknown;
|
|
247902
|
+
};
|
|
247903
|
+
content: {
|
|
247904
|
+
/**
|
|
247905
|
+
* @example {
|
|
247906
|
+
* "data": {
|
|
247907
|
+
* "state": "off",
|
|
247908
|
+
* "enabled": false,
|
|
247909
|
+
* "seconds": 15,
|
|
247910
|
+
* "export_ready": false,
|
|
247911
|
+
* "export_blocker": null,
|
|
247912
|
+
* "blocker_text": null,
|
|
247913
|
+
* "can_write": true,
|
|
247914
|
+
* "managed_by_agency": false,
|
|
247915
|
+
* "title": "Se quedó 15 segundos",
|
|
247916
|
+
* "summary": "Apagada. No se envía nada a Meta sobre cuánto tiempo se queda la gente en la página.",
|
|
247917
|
+
* "measures": "Mide el tiempo que la página estuvo abierta y a la vista, no cuánto del video se reprodujo.",
|
|
247918
|
+
* "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.",
|
|
247919
|
+
* "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.",
|
|
247920
|
+
* "agency_note": null,
|
|
247921
|
+
* "install": {
|
|
247922
|
+
* "path": "/ads/tracking/key",
|
|
247923
|
+
* "field": "snippet"
|
|
247924
|
+
* }
|
|
247925
|
+
* }
|
|
247926
|
+
* }
|
|
247927
|
+
*/
|
|
247928
|
+
"application/json": {
|
|
247929
|
+
data: components["schemas"]["AdsEngagedVisit"] & Record<string, never>;
|
|
247930
|
+
};
|
|
247931
|
+
};
|
|
247932
|
+
};
|
|
247933
|
+
/** @description Validation error */
|
|
247934
|
+
400: {
|
|
247935
|
+
headers: {
|
|
247936
|
+
[name: string]: unknown;
|
|
247937
|
+
};
|
|
247938
|
+
content: {
|
|
247939
|
+
"application/json": components["schemas"]["Error"];
|
|
247940
|
+
};
|
|
247941
|
+
};
|
|
247942
|
+
/** @description Unauthorized */
|
|
247943
|
+
401: {
|
|
247944
|
+
headers: {
|
|
247945
|
+
[name: string]: unknown;
|
|
247946
|
+
};
|
|
247947
|
+
content: {
|
|
247948
|
+
"application/json": components["schemas"]["Error"];
|
|
247949
|
+
};
|
|
247950
|
+
};
|
|
247951
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
247952
|
+
402: {
|
|
247953
|
+
headers: {
|
|
247954
|
+
[name: string]: unknown;
|
|
247955
|
+
};
|
|
247956
|
+
content: {
|
|
247957
|
+
/**
|
|
247958
|
+
* @example {
|
|
247959
|
+
* "error": {
|
|
247960
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
247961
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
247962
|
+
* "details": {
|
|
247963
|
+
* "required": [
|
|
247964
|
+
* "vitrina_ads"
|
|
247965
|
+
* ],
|
|
247966
|
+
* "active": [],
|
|
247967
|
+
* "feature": "vitrina_ads",
|
|
247968
|
+
* "entitlement_state": "off"
|
|
247969
|
+
* }
|
|
247970
|
+
* }
|
|
247971
|
+
* }
|
|
247972
|
+
*/
|
|
247973
|
+
"application/json": components["schemas"]["Error"];
|
|
247974
|
+
};
|
|
247975
|
+
};
|
|
247976
|
+
/** @description Forbidden */
|
|
247977
|
+
403: {
|
|
247978
|
+
headers: {
|
|
247979
|
+
[name: string]: unknown;
|
|
247980
|
+
};
|
|
247981
|
+
content: {
|
|
247982
|
+
"application/json": components["schemas"]["Error"];
|
|
247983
|
+
};
|
|
247984
|
+
};
|
|
247985
|
+
/** @description Not found */
|
|
247986
|
+
404: {
|
|
247987
|
+
headers: {
|
|
247988
|
+
[name: string]: unknown;
|
|
247989
|
+
};
|
|
247990
|
+
content: {
|
|
247991
|
+
"application/json": components["schemas"]["Error"];
|
|
247992
|
+
};
|
|
247993
|
+
};
|
|
247994
|
+
/** @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. */
|
|
247995
|
+
409: {
|
|
247996
|
+
headers: {
|
|
247997
|
+
[name: string]: unknown;
|
|
247998
|
+
};
|
|
247999
|
+
content: {
|
|
248000
|
+
/**
|
|
248001
|
+
* @example {
|
|
248002
|
+
* "error": {
|
|
248003
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
248004
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
248005
|
+
* "details": {
|
|
248006
|
+
* "key_kind": "core"
|
|
248007
|
+
* }
|
|
248008
|
+
* }
|
|
248009
|
+
* }
|
|
248010
|
+
*/
|
|
248011
|
+
"application/json": components["schemas"]["Error"];
|
|
248012
|
+
};
|
|
248013
|
+
};
|
|
248014
|
+
/** @description Rate limited */
|
|
248015
|
+
429: {
|
|
248016
|
+
headers: {
|
|
248017
|
+
[name: string]: unknown;
|
|
248018
|
+
};
|
|
248019
|
+
content: {
|
|
248020
|
+
"application/json": components["schemas"]["Error"];
|
|
248021
|
+
};
|
|
248022
|
+
};
|
|
248023
|
+
};
|
|
248024
|
+
};
|
|
248025
|
+
put?: never;
|
|
248026
|
+
post?: never;
|
|
248027
|
+
delete?: never;
|
|
248028
|
+
options?: never;
|
|
248029
|
+
head?: never;
|
|
248030
|
+
/**
|
|
248031
|
+
* Turn the «Se quedó 15 segundos» signal on or off
|
|
248032
|
+
* @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`).
|
|
248033
|
+
*/
|
|
248034
|
+
patch: {
|
|
248035
|
+
parameters: {
|
|
248036
|
+
query?: never;
|
|
248037
|
+
header?: never;
|
|
248038
|
+
path?: never;
|
|
248039
|
+
cookie?: never;
|
|
248040
|
+
};
|
|
248041
|
+
requestBody: {
|
|
248042
|
+
content: {
|
|
248043
|
+
/**
|
|
248044
|
+
* @example {
|
|
248045
|
+
* "enabled": true
|
|
248046
|
+
* }
|
|
248047
|
+
*/
|
|
248048
|
+
"application/json": components["schemas"]["AdsEngagedVisitPatch"];
|
|
248049
|
+
};
|
|
248050
|
+
};
|
|
248051
|
+
responses: {
|
|
248052
|
+
/** @description The signal’s state after the change */
|
|
248053
|
+
200: {
|
|
248054
|
+
headers: {
|
|
248055
|
+
[name: string]: unknown;
|
|
248056
|
+
};
|
|
248057
|
+
content: {
|
|
248058
|
+
/**
|
|
248059
|
+
* @example {
|
|
248060
|
+
* "data": {
|
|
248061
|
+
* "state": "not_sending",
|
|
248062
|
+
* "enabled": true,
|
|
248063
|
+
* "seconds": 15,
|
|
248064
|
+
* "export_ready": false,
|
|
248065
|
+
* "export_blocker": "no_clean_dataset_destination",
|
|
248066
|
+
* "blocker_text": "todavía no hay un conjunto de datos protegido de Meta conectado",
|
|
248067
|
+
* "can_write": true,
|
|
248068
|
+
* "managed_by_agency": false,
|
|
248069
|
+
* "title": "Se quedó 15 segundos",
|
|
248070
|
+
* "summary": "Encendida, pero por ahora no se envía nada a Meta: todavía no hay un conjunto de datos protegido de Meta conectado.",
|
|
248071
|
+
* "measures": "Mide el tiempo que la página estuvo abierta y a la vista, no cuánto del video se reprodujo.",
|
|
248072
|
+
* "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.",
|
|
248073
|
+
* "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.",
|
|
248074
|
+
* "agency_note": null,
|
|
248075
|
+
* "install": {
|
|
248076
|
+
* "path": "/ads/tracking/key",
|
|
248077
|
+
* "field": "snippet"
|
|
248078
|
+
* }
|
|
248079
|
+
* }
|
|
248080
|
+
* }
|
|
248081
|
+
*/
|
|
248082
|
+
"application/json": {
|
|
248083
|
+
data: components["schemas"]["AdsEngagedVisit"] & Record<string, never>;
|
|
248084
|
+
};
|
|
248085
|
+
};
|
|
248086
|
+
};
|
|
248087
|
+
/** @description Validation error */
|
|
248088
|
+
400: {
|
|
248089
|
+
headers: {
|
|
248090
|
+
[name: string]: unknown;
|
|
248091
|
+
};
|
|
248092
|
+
content: {
|
|
248093
|
+
"application/json": components["schemas"]["Error"];
|
|
248094
|
+
};
|
|
248095
|
+
};
|
|
248096
|
+
/** @description Unauthorized */
|
|
248097
|
+
401: {
|
|
248098
|
+
headers: {
|
|
248099
|
+
[name: string]: unknown;
|
|
248100
|
+
};
|
|
248101
|
+
content: {
|
|
248102
|
+
"application/json": components["schemas"]["Error"];
|
|
248103
|
+
};
|
|
248104
|
+
};
|
|
248105
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
248106
|
+
402: {
|
|
248107
|
+
headers: {
|
|
248108
|
+
[name: string]: unknown;
|
|
248109
|
+
};
|
|
248110
|
+
content: {
|
|
248111
|
+
/**
|
|
248112
|
+
* @example {
|
|
248113
|
+
* "error": {
|
|
248114
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
248115
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
248116
|
+
* "details": {
|
|
248117
|
+
* "required": [
|
|
248118
|
+
* "vitrina_ads"
|
|
248119
|
+
* ],
|
|
248120
|
+
* "active": [],
|
|
248121
|
+
* "feature": "vitrina_ads",
|
|
248122
|
+
* "entitlement_state": "off"
|
|
248123
|
+
* }
|
|
248124
|
+
* }
|
|
248125
|
+
* }
|
|
248126
|
+
*/
|
|
248127
|
+
"application/json": components["schemas"]["Error"];
|
|
248128
|
+
};
|
|
248129
|
+
};
|
|
248130
|
+
/** @description Forbidden */
|
|
248131
|
+
403: {
|
|
248132
|
+
headers: {
|
|
248133
|
+
[name: string]: unknown;
|
|
248134
|
+
};
|
|
248135
|
+
content: {
|
|
248136
|
+
"application/json": components["schemas"]["Error"];
|
|
248137
|
+
};
|
|
248138
|
+
};
|
|
248139
|
+
/** @description Not found */
|
|
248140
|
+
404: {
|
|
248141
|
+
headers: {
|
|
248142
|
+
[name: string]: unknown;
|
|
248143
|
+
};
|
|
248144
|
+
content: {
|
|
248145
|
+
"application/json": components["schemas"]["Error"];
|
|
248146
|
+
};
|
|
248147
|
+
};
|
|
248148
|
+
/** @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. */
|
|
248149
|
+
409: {
|
|
248150
|
+
headers: {
|
|
248151
|
+
[name: string]: unknown;
|
|
248152
|
+
};
|
|
248153
|
+
content: {
|
|
248154
|
+
/**
|
|
248155
|
+
* @example {
|
|
248156
|
+
* "error": {
|
|
248157
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
248158
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
248159
|
+
* "details": {
|
|
248160
|
+
* "key_kind": "core"
|
|
248161
|
+
* }
|
|
248162
|
+
* }
|
|
248163
|
+
* }
|
|
248164
|
+
*/
|
|
248165
|
+
"application/json": components["schemas"]["Error"];
|
|
248166
|
+
};
|
|
248167
|
+
};
|
|
248168
|
+
/** @description Rate limited */
|
|
248169
|
+
429: {
|
|
248170
|
+
headers: {
|
|
248171
|
+
[name: string]: unknown;
|
|
248172
|
+
};
|
|
248173
|
+
content: {
|
|
248174
|
+
"application/json": components["schemas"]["Error"];
|
|
248175
|
+
};
|
|
248176
|
+
};
|
|
248177
|
+
};
|
|
248178
|
+
};
|
|
248179
|
+
trace?: never;
|
|
248180
|
+
};
|
|
247814
248181
|
"/ads/tracking/gtm": {
|
|
247815
248182
|
parameters: {
|
|
247816
248183
|
query?: never;
|
|
@@ -342529,6 +342896,46 @@ interface components {
|
|
|
342529
342896
|
ttl_ms: number;
|
|
342530
342897
|
privacy?: components["schemas"]["AdsPrivacyCheck"];
|
|
342531
342898
|
};
|
|
342899
|
+
/** @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. */
|
|
342900
|
+
AdsEngagedVisit: {
|
|
342901
|
+
/**
|
|
342902
|
+
* @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).
|
|
342903
|
+
* @enum {string}
|
|
342904
|
+
*/
|
|
342905
|
+
state: "off" | "sending" | "not_sending" | "unavailable";
|
|
342906
|
+
/** @description The signal is on. Off by default. */
|
|
342907
|
+
enabled: boolean;
|
|
342908
|
+
/** @description Visible seconds before the event fires. Read-only: 15 unless the platform changes it. */
|
|
342909
|
+
seconds: number;
|
|
342910
|
+
/** @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. */
|
|
342911
|
+
export_ready: boolean;
|
|
342912
|
+
/**
|
|
342913
|
+
* @description Why `export_ready` is false; `null` when ready or not named.
|
|
342914
|
+
* @enum {string|null}
|
|
342915
|
+
*/
|
|
342916
|
+
export_blocker: "not_platform_safe" | "platform_safe_target_not_clean" | "meta_export_disabled" | "no_clean_dataset_destination" | null;
|
|
342917
|
+
/** @description `export_blocker` in plain Spanish; only when `not_sending`. */
|
|
342918
|
+
blocker_text: string | null;
|
|
342919
|
+
/** @description False for a workspace that is a guest on its agency’s profile. */
|
|
342920
|
+
can_write: boolean;
|
|
342921
|
+
managed_by_agency: boolean;
|
|
342922
|
+
/** @description «Se quedó 15 segundos». */
|
|
342923
|
+
title: string;
|
|
342924
|
+
/** @description The state in one Spanish sentence. */
|
|
342925
|
+
summary: string;
|
|
342926
|
+
/** @description Time on the PAGE, not video play time (Spanish). */
|
|
342927
|
+
measures: string;
|
|
342928
|
+
/** @description A signal sent to Meta, never an optimisation target: it is not verified that an ad set can optimise on it (Spanish). */
|
|
342929
|
+
meta_note: string;
|
|
342930
|
+
/** @description The install snippet must be copied again after the setting changes (Spanish). */
|
|
342931
|
+
recopy_note: string;
|
|
342932
|
+
agency_note: string | null;
|
|
342933
|
+
/** @description Where the snippet is: `GET {path}` (the existing tracking key read), field `field`. */
|
|
342934
|
+
install: {
|
|
342935
|
+
path: string;
|
|
342936
|
+
field: string;
|
|
342937
|
+
};
|
|
342938
|
+
} | null;
|
|
342532
342939
|
AdsSendStatus: {
|
|
342533
342940
|
/**
|
|
342534
342941
|
* @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 +343196,7 @@ interface components {
|
|
|
342789
343196
|
/** @description Distinct active ad sets that optimise on an event Vitrina sends (the wiring verdicts). */
|
|
342790
343197
|
on_sent_events: number;
|
|
342791
343198
|
} | null;
|
|
343199
|
+
engaged_visit: components["schemas"]["AdsEngagedVisit"];
|
|
342792
343200
|
};
|
|
342793
343201
|
AdsSendPreviewEvent: {
|
|
342794
343202
|
/** @enum {string} */
|
|
@@ -347704,6 +348112,9 @@ interface components {
|
|
|
347704
348112
|
}[];
|
|
347705
348113
|
} | null;
|
|
347706
348114
|
};
|
|
348115
|
+
AdsEngagedVisitPatch: {
|
|
348116
|
+
enabled: boolean;
|
|
348117
|
+
};
|
|
347707
348118
|
/**
|
|
347708
348119
|
* @example {
|
|
347709
348120
|
* "type": "tag",
|