@vitrina/api 17.39.0 → 17.40.1
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 +169 -4
- package/dist/index.d.ts +169 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -142178,7 +142178,7 @@ interface paths {
|
|
|
142178
142178
|
put?: never;
|
|
142179
142179
|
/**
|
|
142180
142180
|
* Create the Instagram dataset in Meta (idempotent)
|
|
142181
|
-
* @description The Meta destinations of the workspace’s outcomes, each set up by its own explicit press, never as a side effect. Step 1 — the dataset linked to the WhatsApp Business Account — receives the outcomes carrying the click-to-WhatsApp ad click (`ctwa_clid`), as `business_messaging`; a click-to-WhatsApp ad set optimised on Purchase needs it. Step 2 — the website pixel — receives every other outcome, matched by the hashed phone and e-mail; without it those outcomes (most payments) are not sent at all. Step 3 — the dataset linked to the Instagram account — receives the outcomes of conversations an Instagram ad opened, as `business_messaging` with the customer’s Instagram-scoped id (measurement only: Meta offers no Purchase optimisation on Instagram); until it exists they reach the website pixel as before. Each sends from its press on (no history), and nothing flows until the stages are switched on in «Enviar a Meta». Meta cannot delete a dataset. The measurement engine asks Meta to create the dataset linked to the connected Instagram account, and creates its Instagram destination; an existing destination is never repointed. Needs the CURRENT `instagram.notice` (version + hash from the read): 409 `notice_required` otherwise. A retry answers `already_present`; a turned-off dataset is turned back on. 409 `details.reason`: `meta_ads_not_connected`, `instagram_not_connected`, `entitlement_required`, `duplicate_kind`, `dataset_unreadable`, `already_exists`, `engine_not_ready` (the engine cannot create it yet: «Pronto»), `meta_permission_missing` (Meta refused for a missing app permission — `instagram_manage_events`), `reconnect_required` (the
|
|
142181
|
+
* @description The Meta destinations of the workspace’s outcomes, each set up by its own explicit press, never as a side effect. Step 1 — the dataset linked to the WhatsApp Business Account — receives the outcomes carrying the click-to-WhatsApp ad click (`ctwa_clid`), as `business_messaging`; a click-to-WhatsApp ad set optimised on Purchase needs it. Step 2 — the website pixel — receives every other outcome, matched by the hashed phone and e-mail; without it those outcomes (most payments) are not sent at all. Step 3 — the dataset linked to the Instagram account — receives the outcomes of conversations an Instagram ad opened, as `business_messaging` with the customer’s Instagram-scoped id (measurement only: Meta offers no Purchase optimisation on Instagram); until it exists they reach the website pixel as before. Each sends from its press on (no history), and nothing flows until the stages are switched on in «Enviar a Meta». Meta cannot delete a dataset. The measurement engine asks Meta to create the dataset linked to the connected Instagram account, and creates its Instagram destination; an existing destination is never repointed. Needs the CURRENT `instagram.notice` (version + hash from the read): 409 `notice_required` otherwise. A retry answers `already_present`; a turned-off dataset is turned back on. 409 `details.reason`: `meta_ads_not_connected`, `instagram_not_connected`, `entitlement_required`, `duplicate_kind`, `dataset_unreadable`, `already_exists`, `engine_not_ready` (the engine cannot create it yet: «Pronto»), `meta_permission_missing` (Meta refused for a missing app permission — `instagram_manage_events`), `reconnect_required` (the Meta Ads connection expired), `instagram_events_permission_required` (the Meta Ads connection has no `instagram_manage_events` yet: `POST …/instagram/enable-events` first; the read-back already carries it as the step's `reason_code`, with no press offered); nothing is created on any refusal. 502 when Meta failed (nothing was created). The answer carries the engine’s read-back. Requires `ads:write`.
|
|
142182
142182
|
*/
|
|
142183
142183
|
post: {
|
|
142184
142184
|
parameters: {
|
|
@@ -142424,6 +142424,171 @@ interface paths {
|
|
|
142424
142424
|
patch?: never;
|
|
142425
142425
|
trace?: never;
|
|
142426
142426
|
};
|
|
142427
|
+
"/ads/conversion-sync/data-sources/instagram/enable-events": {
|
|
142428
|
+
parameters: {
|
|
142429
|
+
query?: never;
|
|
142430
|
+
header?: never;
|
|
142431
|
+
path?: never;
|
|
142432
|
+
cookie?: never;
|
|
142433
|
+
};
|
|
142434
|
+
get?: never;
|
|
142435
|
+
put?: never;
|
|
142436
|
+
/**
|
|
142437
|
+
* Start the Meta Ads reconnect that turns on Instagram events
|
|
142438
|
+
* @description The Meta destinations of the workspace’s outcomes, each set up by its own explicit press, never as a side effect. Step 1 — the dataset linked to the WhatsApp Business Account — receives the outcomes carrying the click-to-WhatsApp ad click (`ctwa_clid`), as `business_messaging`; a click-to-WhatsApp ad set optimised on Purchase needs it. Step 2 — the website pixel — receives every other outcome, matched by the hashed phone and e-mail; without it those outcomes (most payments) are not sent at all. Step 3 — the dataset linked to the Instagram account — receives the outcomes of conversations an Instagram ad opened, as `business_messaging` with the customer’s Instagram-scoped id (measurement only: Meta offers no Purchase optimisation on Instagram); until it exists they reach the website pixel as before. Each sends from its press on (no history), and nothing flows until the stages are switched on in «Enviar a Meta». Meta cannot delete a dataset. The Instagram dataset, and every event sent to it, uses the workspace's Meta Ads connection, which needs Meta's `instagram_manage_events` permission first: Step 3 reads `reason_code: instagram_events_permission_required` until it has it. This returns the URL of ONE Meta Ads reconnect that asks for it; open it in a browser, accept, and come back to `return_to` (with `instagram_events=return`), then read the status again. The Meta Ads card and the Instagram connection do not change. Meta reports these events but does not optimize Instagram ads on them yet. 502 when the measurement engine could not mint the link. Requires `ads:write`.
|
|
142439
|
+
*/
|
|
142440
|
+
post: {
|
|
142441
|
+
parameters: {
|
|
142442
|
+
query?: never;
|
|
142443
|
+
header?: {
|
|
142444
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
142445
|
+
"Idempotency-Key"?: string;
|
|
142446
|
+
};
|
|
142447
|
+
path?: never;
|
|
142448
|
+
cookie?: never;
|
|
142449
|
+
};
|
|
142450
|
+
requestBody?: {
|
|
142451
|
+
content: {
|
|
142452
|
+
/**
|
|
142453
|
+
* @example {
|
|
142454
|
+
* "return_to": "https://app.vitrinadev.com/anuncios/salud/envio"
|
|
142455
|
+
* }
|
|
142456
|
+
*/
|
|
142457
|
+
"application/json": {
|
|
142458
|
+
/**
|
|
142459
|
+
* Format: uri
|
|
142460
|
+
* @description Where the owner comes back to after Meta’s consent: an absolute URL on the app’s own origin. `instagram_events=return` is appended.
|
|
142461
|
+
*/
|
|
142462
|
+
return_to: string;
|
|
142463
|
+
};
|
|
142464
|
+
};
|
|
142465
|
+
};
|
|
142466
|
+
responses: {
|
|
142467
|
+
/** @description The reconnect URL. */
|
|
142468
|
+
200: {
|
|
142469
|
+
headers: {
|
|
142470
|
+
[name: string]: unknown;
|
|
142471
|
+
};
|
|
142472
|
+
content: {
|
|
142473
|
+
/**
|
|
142474
|
+
* @example {
|
|
142475
|
+
* "data": {
|
|
142476
|
+
* "url": "https://connect.example.com/h/abc123",
|
|
142477
|
+
* "expires_at": "2026-11-03T19:45:00.000Z"
|
|
142478
|
+
* }
|
|
142479
|
+
* }
|
|
142480
|
+
*/
|
|
142481
|
+
"application/json": {
|
|
142482
|
+
data: {
|
|
142483
|
+
/**
|
|
142484
|
+
* Format: uri
|
|
142485
|
+
* @description Open it in the browser: the Meta Ads consent that asks for Instagram events.
|
|
142486
|
+
*/
|
|
142487
|
+
url: string;
|
|
142488
|
+
/** @description When the link stops working (about 45 minutes). */
|
|
142489
|
+
expires_at: string | null;
|
|
142490
|
+
};
|
|
142491
|
+
};
|
|
142492
|
+
};
|
|
142493
|
+
};
|
|
142494
|
+
/** @description Validation error */
|
|
142495
|
+
400: {
|
|
142496
|
+
headers: {
|
|
142497
|
+
[name: string]: unknown;
|
|
142498
|
+
};
|
|
142499
|
+
content: {
|
|
142500
|
+
"application/json": components["schemas"]["Error"];
|
|
142501
|
+
};
|
|
142502
|
+
};
|
|
142503
|
+
/** @description Unauthorized */
|
|
142504
|
+
401: {
|
|
142505
|
+
headers: {
|
|
142506
|
+
[name: string]: unknown;
|
|
142507
|
+
};
|
|
142508
|
+
content: {
|
|
142509
|
+
"application/json": components["schemas"]["Error"];
|
|
142510
|
+
};
|
|
142511
|
+
};
|
|
142512
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
142513
|
+
402: {
|
|
142514
|
+
headers: {
|
|
142515
|
+
[name: string]: unknown;
|
|
142516
|
+
};
|
|
142517
|
+
content: {
|
|
142518
|
+
/**
|
|
142519
|
+
* @example {
|
|
142520
|
+
* "error": {
|
|
142521
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
142522
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
142523
|
+
* "details": {
|
|
142524
|
+
* "required": [
|
|
142525
|
+
* "vitrina_ads"
|
|
142526
|
+
* ],
|
|
142527
|
+
* "active": [],
|
|
142528
|
+
* "feature": "vitrina_ads",
|
|
142529
|
+
* "entitlement_state": "off"
|
|
142530
|
+
* }
|
|
142531
|
+
* }
|
|
142532
|
+
* }
|
|
142533
|
+
*/
|
|
142534
|
+
"application/json": components["schemas"]["Error"];
|
|
142535
|
+
};
|
|
142536
|
+
};
|
|
142537
|
+
/** @description Forbidden */
|
|
142538
|
+
403: {
|
|
142539
|
+
headers: {
|
|
142540
|
+
[name: string]: unknown;
|
|
142541
|
+
};
|
|
142542
|
+
content: {
|
|
142543
|
+
"application/json": components["schemas"]["Error"];
|
|
142544
|
+
};
|
|
142545
|
+
};
|
|
142546
|
+
/** @description Not found */
|
|
142547
|
+
404: {
|
|
142548
|
+
headers: {
|
|
142549
|
+
[name: string]: unknown;
|
|
142550
|
+
};
|
|
142551
|
+
content: {
|
|
142552
|
+
"application/json": components["schemas"]["Error"];
|
|
142553
|
+
};
|
|
142554
|
+
};
|
|
142555
|
+
/** @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. */
|
|
142556
|
+
409: {
|
|
142557
|
+
headers: {
|
|
142558
|
+
[name: string]: unknown;
|
|
142559
|
+
};
|
|
142560
|
+
content: {
|
|
142561
|
+
/**
|
|
142562
|
+
* @example {
|
|
142563
|
+
* "error": {
|
|
142564
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
142565
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
142566
|
+
* "details": {
|
|
142567
|
+
* "key_kind": "core"
|
|
142568
|
+
* }
|
|
142569
|
+
* }
|
|
142570
|
+
* }
|
|
142571
|
+
*/
|
|
142572
|
+
"application/json": components["schemas"]["Error"];
|
|
142573
|
+
};
|
|
142574
|
+
};
|
|
142575
|
+
/** @description Rate limited */
|
|
142576
|
+
429: {
|
|
142577
|
+
headers: {
|
|
142578
|
+
[name: string]: unknown;
|
|
142579
|
+
};
|
|
142580
|
+
content: {
|
|
142581
|
+
"application/json": components["schemas"]["Error"];
|
|
142582
|
+
};
|
|
142583
|
+
};
|
|
142584
|
+
};
|
|
142585
|
+
};
|
|
142586
|
+
delete?: never;
|
|
142587
|
+
options?: never;
|
|
142588
|
+
head?: never;
|
|
142589
|
+
patch?: never;
|
|
142590
|
+
trace?: never;
|
|
142591
|
+
};
|
|
142427
142592
|
"/ads/conversion-sync/data-sources/instagram/turn-off": {
|
|
142428
142593
|
parameters: {
|
|
142429
142594
|
query?: never;
|
|
@@ -289627,7 +289792,7 @@ interface components {
|
|
|
289627
289792
|
*/
|
|
289628
289793
|
state: "coming_soon" | "unknown" | "prerequisites_missing" | "ready" | "created" | "sending" | "off" | "error";
|
|
289629
289794
|
/** @enum {string|null} */
|
|
289630
|
-
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289795
|
+
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "instagram_events_permission_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289631
289796
|
/** @description What to do, in Spanish, when `reason_code` is set. */
|
|
289632
289797
|
message: string | null;
|
|
289633
289798
|
dataset: {
|
|
@@ -289661,7 +289826,7 @@ interface components {
|
|
|
289661
289826
|
*/
|
|
289662
289827
|
state: "coming_soon" | "unknown" | "prerequisites_missing" | "ready" | "created" | "sending" | "off" | "error";
|
|
289663
289828
|
/** @enum {string|null} */
|
|
289664
|
-
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289829
|
+
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "instagram_events_permission_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289665
289830
|
/** @description What to do, in Spanish, when `reason_code` is set. */
|
|
289666
289831
|
message: string | null;
|
|
289667
289832
|
dataset: {
|
|
@@ -289706,7 +289871,7 @@ interface components {
|
|
|
289706
289871
|
*/
|
|
289707
289872
|
state: "coming_soon" | "unknown" | "prerequisites_missing" | "ready" | "created" | "sending" | "off" | "error";
|
|
289708
289873
|
/** @enum {string|null} */
|
|
289709
|
-
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289874
|
+
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "instagram_events_permission_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289710
289875
|
/** @description What to do, in Spanish, when `reason_code` is set. */
|
|
289711
289876
|
message: string | null;
|
|
289712
289877
|
dataset: {
|
package/dist/index.d.ts
CHANGED
|
@@ -142178,7 +142178,7 @@ interface paths {
|
|
|
142178
142178
|
put?: never;
|
|
142179
142179
|
/**
|
|
142180
142180
|
* Create the Instagram dataset in Meta (idempotent)
|
|
142181
|
-
* @description The Meta destinations of the workspace’s outcomes, each set up by its own explicit press, never as a side effect. Step 1 — the dataset linked to the WhatsApp Business Account — receives the outcomes carrying the click-to-WhatsApp ad click (`ctwa_clid`), as `business_messaging`; a click-to-WhatsApp ad set optimised on Purchase needs it. Step 2 — the website pixel — receives every other outcome, matched by the hashed phone and e-mail; without it those outcomes (most payments) are not sent at all. Step 3 — the dataset linked to the Instagram account — receives the outcomes of conversations an Instagram ad opened, as `business_messaging` with the customer’s Instagram-scoped id (measurement only: Meta offers no Purchase optimisation on Instagram); until it exists they reach the website pixel as before. Each sends from its press on (no history), and nothing flows until the stages are switched on in «Enviar a Meta». Meta cannot delete a dataset. The measurement engine asks Meta to create the dataset linked to the connected Instagram account, and creates its Instagram destination; an existing destination is never repointed. Needs the CURRENT `instagram.notice` (version + hash from the read): 409 `notice_required` otherwise. A retry answers `already_present`; a turned-off dataset is turned back on. 409 `details.reason`: `meta_ads_not_connected`, `instagram_not_connected`, `entitlement_required`, `duplicate_kind`, `dataset_unreadable`, `already_exists`, `engine_not_ready` (the engine cannot create it yet: «Pronto»), `meta_permission_missing` (Meta refused for a missing app permission — `instagram_manage_events`), `reconnect_required` (the
|
|
142181
|
+
* @description The Meta destinations of the workspace’s outcomes, each set up by its own explicit press, never as a side effect. Step 1 — the dataset linked to the WhatsApp Business Account — receives the outcomes carrying the click-to-WhatsApp ad click (`ctwa_clid`), as `business_messaging`; a click-to-WhatsApp ad set optimised on Purchase needs it. Step 2 — the website pixel — receives every other outcome, matched by the hashed phone and e-mail; without it those outcomes (most payments) are not sent at all. Step 3 — the dataset linked to the Instagram account — receives the outcomes of conversations an Instagram ad opened, as `business_messaging` with the customer’s Instagram-scoped id (measurement only: Meta offers no Purchase optimisation on Instagram); until it exists they reach the website pixel as before. Each sends from its press on (no history), and nothing flows until the stages are switched on in «Enviar a Meta». Meta cannot delete a dataset. The measurement engine asks Meta to create the dataset linked to the connected Instagram account, and creates its Instagram destination; an existing destination is never repointed. Needs the CURRENT `instagram.notice` (version + hash from the read): 409 `notice_required` otherwise. A retry answers `already_present`; a turned-off dataset is turned back on. 409 `details.reason`: `meta_ads_not_connected`, `instagram_not_connected`, `entitlement_required`, `duplicate_kind`, `dataset_unreadable`, `already_exists`, `engine_not_ready` (the engine cannot create it yet: «Pronto»), `meta_permission_missing` (Meta refused for a missing app permission — `instagram_manage_events`), `reconnect_required` (the Meta Ads connection expired), `instagram_events_permission_required` (the Meta Ads connection has no `instagram_manage_events` yet: `POST …/instagram/enable-events` first; the read-back already carries it as the step's `reason_code`, with no press offered); nothing is created on any refusal. 502 when Meta failed (nothing was created). The answer carries the engine’s read-back. Requires `ads:write`.
|
|
142182
142182
|
*/
|
|
142183
142183
|
post: {
|
|
142184
142184
|
parameters: {
|
|
@@ -142424,6 +142424,171 @@ interface paths {
|
|
|
142424
142424
|
patch?: never;
|
|
142425
142425
|
trace?: never;
|
|
142426
142426
|
};
|
|
142427
|
+
"/ads/conversion-sync/data-sources/instagram/enable-events": {
|
|
142428
|
+
parameters: {
|
|
142429
|
+
query?: never;
|
|
142430
|
+
header?: never;
|
|
142431
|
+
path?: never;
|
|
142432
|
+
cookie?: never;
|
|
142433
|
+
};
|
|
142434
|
+
get?: never;
|
|
142435
|
+
put?: never;
|
|
142436
|
+
/**
|
|
142437
|
+
* Start the Meta Ads reconnect that turns on Instagram events
|
|
142438
|
+
* @description The Meta destinations of the workspace’s outcomes, each set up by its own explicit press, never as a side effect. Step 1 — the dataset linked to the WhatsApp Business Account — receives the outcomes carrying the click-to-WhatsApp ad click (`ctwa_clid`), as `business_messaging`; a click-to-WhatsApp ad set optimised on Purchase needs it. Step 2 — the website pixel — receives every other outcome, matched by the hashed phone and e-mail; without it those outcomes (most payments) are not sent at all. Step 3 — the dataset linked to the Instagram account — receives the outcomes of conversations an Instagram ad opened, as `business_messaging` with the customer’s Instagram-scoped id (measurement only: Meta offers no Purchase optimisation on Instagram); until it exists they reach the website pixel as before. Each sends from its press on (no history), and nothing flows until the stages are switched on in «Enviar a Meta». Meta cannot delete a dataset. The Instagram dataset, and every event sent to it, uses the workspace's Meta Ads connection, which needs Meta's `instagram_manage_events` permission first: Step 3 reads `reason_code: instagram_events_permission_required` until it has it. This returns the URL of ONE Meta Ads reconnect that asks for it; open it in a browser, accept, and come back to `return_to` (with `instagram_events=return`), then read the status again. The Meta Ads card and the Instagram connection do not change. Meta reports these events but does not optimize Instagram ads on them yet. 502 when the measurement engine could not mint the link. Requires `ads:write`.
|
|
142439
|
+
*/
|
|
142440
|
+
post: {
|
|
142441
|
+
parameters: {
|
|
142442
|
+
query?: never;
|
|
142443
|
+
header?: {
|
|
142444
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
142445
|
+
"Idempotency-Key"?: string;
|
|
142446
|
+
};
|
|
142447
|
+
path?: never;
|
|
142448
|
+
cookie?: never;
|
|
142449
|
+
};
|
|
142450
|
+
requestBody?: {
|
|
142451
|
+
content: {
|
|
142452
|
+
/**
|
|
142453
|
+
* @example {
|
|
142454
|
+
* "return_to": "https://app.vitrinadev.com/anuncios/salud/envio"
|
|
142455
|
+
* }
|
|
142456
|
+
*/
|
|
142457
|
+
"application/json": {
|
|
142458
|
+
/**
|
|
142459
|
+
* Format: uri
|
|
142460
|
+
* @description Where the owner comes back to after Meta’s consent: an absolute URL on the app’s own origin. `instagram_events=return` is appended.
|
|
142461
|
+
*/
|
|
142462
|
+
return_to: string;
|
|
142463
|
+
};
|
|
142464
|
+
};
|
|
142465
|
+
};
|
|
142466
|
+
responses: {
|
|
142467
|
+
/** @description The reconnect URL. */
|
|
142468
|
+
200: {
|
|
142469
|
+
headers: {
|
|
142470
|
+
[name: string]: unknown;
|
|
142471
|
+
};
|
|
142472
|
+
content: {
|
|
142473
|
+
/**
|
|
142474
|
+
* @example {
|
|
142475
|
+
* "data": {
|
|
142476
|
+
* "url": "https://connect.example.com/h/abc123",
|
|
142477
|
+
* "expires_at": "2026-11-03T19:45:00.000Z"
|
|
142478
|
+
* }
|
|
142479
|
+
* }
|
|
142480
|
+
*/
|
|
142481
|
+
"application/json": {
|
|
142482
|
+
data: {
|
|
142483
|
+
/**
|
|
142484
|
+
* Format: uri
|
|
142485
|
+
* @description Open it in the browser: the Meta Ads consent that asks for Instagram events.
|
|
142486
|
+
*/
|
|
142487
|
+
url: string;
|
|
142488
|
+
/** @description When the link stops working (about 45 minutes). */
|
|
142489
|
+
expires_at: string | null;
|
|
142490
|
+
};
|
|
142491
|
+
};
|
|
142492
|
+
};
|
|
142493
|
+
};
|
|
142494
|
+
/** @description Validation error */
|
|
142495
|
+
400: {
|
|
142496
|
+
headers: {
|
|
142497
|
+
[name: string]: unknown;
|
|
142498
|
+
};
|
|
142499
|
+
content: {
|
|
142500
|
+
"application/json": components["schemas"]["Error"];
|
|
142501
|
+
};
|
|
142502
|
+
};
|
|
142503
|
+
/** @description Unauthorized */
|
|
142504
|
+
401: {
|
|
142505
|
+
headers: {
|
|
142506
|
+
[name: string]: unknown;
|
|
142507
|
+
};
|
|
142508
|
+
content: {
|
|
142509
|
+
"application/json": components["schemas"]["Error"];
|
|
142510
|
+
};
|
|
142511
|
+
};
|
|
142512
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
142513
|
+
402: {
|
|
142514
|
+
headers: {
|
|
142515
|
+
[name: string]: unknown;
|
|
142516
|
+
};
|
|
142517
|
+
content: {
|
|
142518
|
+
/**
|
|
142519
|
+
* @example {
|
|
142520
|
+
* "error": {
|
|
142521
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
142522
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
142523
|
+
* "details": {
|
|
142524
|
+
* "required": [
|
|
142525
|
+
* "vitrina_ads"
|
|
142526
|
+
* ],
|
|
142527
|
+
* "active": [],
|
|
142528
|
+
* "feature": "vitrina_ads",
|
|
142529
|
+
* "entitlement_state": "off"
|
|
142530
|
+
* }
|
|
142531
|
+
* }
|
|
142532
|
+
* }
|
|
142533
|
+
*/
|
|
142534
|
+
"application/json": components["schemas"]["Error"];
|
|
142535
|
+
};
|
|
142536
|
+
};
|
|
142537
|
+
/** @description Forbidden */
|
|
142538
|
+
403: {
|
|
142539
|
+
headers: {
|
|
142540
|
+
[name: string]: unknown;
|
|
142541
|
+
};
|
|
142542
|
+
content: {
|
|
142543
|
+
"application/json": components["schemas"]["Error"];
|
|
142544
|
+
};
|
|
142545
|
+
};
|
|
142546
|
+
/** @description Not found */
|
|
142547
|
+
404: {
|
|
142548
|
+
headers: {
|
|
142549
|
+
[name: string]: unknown;
|
|
142550
|
+
};
|
|
142551
|
+
content: {
|
|
142552
|
+
"application/json": components["schemas"]["Error"];
|
|
142553
|
+
};
|
|
142554
|
+
};
|
|
142555
|
+
/** @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. */
|
|
142556
|
+
409: {
|
|
142557
|
+
headers: {
|
|
142558
|
+
[name: string]: unknown;
|
|
142559
|
+
};
|
|
142560
|
+
content: {
|
|
142561
|
+
/**
|
|
142562
|
+
* @example {
|
|
142563
|
+
* "error": {
|
|
142564
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
142565
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
142566
|
+
* "details": {
|
|
142567
|
+
* "key_kind": "core"
|
|
142568
|
+
* }
|
|
142569
|
+
* }
|
|
142570
|
+
* }
|
|
142571
|
+
*/
|
|
142572
|
+
"application/json": components["schemas"]["Error"];
|
|
142573
|
+
};
|
|
142574
|
+
};
|
|
142575
|
+
/** @description Rate limited */
|
|
142576
|
+
429: {
|
|
142577
|
+
headers: {
|
|
142578
|
+
[name: string]: unknown;
|
|
142579
|
+
};
|
|
142580
|
+
content: {
|
|
142581
|
+
"application/json": components["schemas"]["Error"];
|
|
142582
|
+
};
|
|
142583
|
+
};
|
|
142584
|
+
};
|
|
142585
|
+
};
|
|
142586
|
+
delete?: never;
|
|
142587
|
+
options?: never;
|
|
142588
|
+
head?: never;
|
|
142589
|
+
patch?: never;
|
|
142590
|
+
trace?: never;
|
|
142591
|
+
};
|
|
142427
142592
|
"/ads/conversion-sync/data-sources/instagram/turn-off": {
|
|
142428
142593
|
parameters: {
|
|
142429
142594
|
query?: never;
|
|
@@ -289627,7 +289792,7 @@ interface components {
|
|
|
289627
289792
|
*/
|
|
289628
289793
|
state: "coming_soon" | "unknown" | "prerequisites_missing" | "ready" | "created" | "sending" | "off" | "error";
|
|
289629
289794
|
/** @enum {string|null} */
|
|
289630
|
-
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289795
|
+
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "instagram_events_permission_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289631
289796
|
/** @description What to do, in Spanish, when `reason_code` is set. */
|
|
289632
289797
|
message: string | null;
|
|
289633
289798
|
dataset: {
|
|
@@ -289661,7 +289826,7 @@ interface components {
|
|
|
289661
289826
|
*/
|
|
289662
289827
|
state: "coming_soon" | "unknown" | "prerequisites_missing" | "ready" | "created" | "sending" | "off" | "error";
|
|
289663
289828
|
/** @enum {string|null} */
|
|
289664
|
-
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289829
|
+
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "instagram_events_permission_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289665
289830
|
/** @description What to do, in Spanish, when `reason_code` is set. */
|
|
289666
289831
|
message: string | null;
|
|
289667
289832
|
dataset: {
|
|
@@ -289706,7 +289871,7 @@ interface components {
|
|
|
289706
289871
|
*/
|
|
289707
289872
|
state: "coming_soon" | "unknown" | "prerequisites_missing" | "ready" | "created" | "sending" | "off" | "error";
|
|
289708
289873
|
/** @enum {string|null} */
|
|
289709
|
-
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289874
|
+
reason_code: "entitlement_required" | "duplicate_kind" | "access_missing" | "dataset_unreadable" | "already_exists" | "no_pixel" | "pixels_unavailable" | "pixel_already_attached" | "instagram_facebook_login_required" | "instagram_events_permission_required" | "meta_refused" | "meta_unavailable" | "engine_error" | null;
|
|
289710
289875
|
/** @description What to do, in Spanish, when `reason_code` is set. */
|
|
289711
289876
|
message: string | null;
|
|
289712
289877
|
dataset: {
|
package/package.json
CHANGED