@vitrina/api 14.118.3 → 15.1.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 CHANGED
@@ -2062,6 +2062,8 @@ interface paths {
2062
2062
  urgency_slots?: boolean;
2063
2063
  /** @description «Especialista a más de 7 días: ofrecer también una evaluación general esta semana» (D74). `find_slots` then also reports the clinic's general evaluation slots of the next 7 days. Default false. */
2064
2064
  specialist_fallback?: boolean;
2065
+ /** @description «Handoff silencioso» (#6016). Default false: a handoff always tells the customer a person takes over (a fixed line is added when the model wrote none). true: the handoff turn may end with no customer message, or with the model's own last line; no fixed handoff line is added. Assignment, alerts, team notification and the AI's silence after the handoff are unchanged. */
2066
+ silent_handoff?: boolean;
2065
2067
  /**
2066
2068
  * @description «Signos de apertura» for this agent. `inherit` (default): the workspace's `voice.opening_marks`. `none`: no opening «¿» «¡» (removed at send time). `keep`: the agent writes them.
2067
2069
  * @enum {string}
@@ -2255,7 +2257,7 @@ interface paths {
2255
2257
  };
2256
2258
  /**
2257
2259
  * Read the agent’s behaviour policies
2258
- * @description Per-agent switches that change what the agent says (#3312/#3314): `treatment_price` (`unset` | `first_ask` | `never`, healthcare) and `far_slot_waitlist`, `urgency_slots` (D72) and `specialist_fallback` (D74). `live` is what runs today, `draft` what is staged (null = nothing staged). Every default is the agent’s behaviour before policies existed: nothing is added to its prompt while a policy is unset. `price_policy_conflicts` lists lines of the agent’s own instructions (draft when staged) and active skills that already state a price rule, so a client can reconcile them before publishing. Change them with `PUT /ai-agents/{id}/draft` (`behavior_policies`) and `POST /ai-agents/{id}/publish`.
2260
+ * @description Per-agent switches that change what the agent says (#3312/#3314): `treatment_price` (`unset` | `first_ask` | `never`, healthcare) and `far_slot_waitlist`, `urgency_slots` (D72), `specialist_fallback` (D74) and `silent_handoff` (#6016, «Handoff silencioso»: a handoff sends no announcement line; default false). `live` is what runs today, `draft` what is staged (null = nothing staged). Every default is the agent’s behaviour before policies existed: nothing is added to its prompt while a policy is unset. `price_policy_conflicts` lists lines of the agent’s own instructions (draft when staged) and active skills that already state a price rule, so a client can reconcile them before publishing. Change them with `PUT /ai-agents/{id}/draft` (`behavior_policies`) and `POST /ai-agents/{id}/publish`.
2259
2261
  */
2260
2262
  get: {
2261
2263
  parameters: {
@@ -2281,13 +2283,19 @@ interface paths {
2281
2283
  * "treatment_price": "unset",
2282
2284
  * "far_slot_waitlist": false,
2283
2285
  * "urgency_slots": false,
2284
- * "specialist_fallback": false
2286
+ * "specialist_fallback": false,
2287
+ * "silent_handoff": false,
2288
+ * "opening_marks": "inherit",
2289
+ * "register": "inherit"
2285
2290
  * },
2286
2291
  * "draft": {
2287
2292
  * "treatment_price": "first_ask",
2288
2293
  * "far_slot_waitlist": false,
2289
2294
  * "urgency_slots": true,
2290
- * "specialist_fallback": false
2295
+ * "specialist_fallback": false,
2296
+ * "silent_handoff": true,
2297
+ * "opening_marks": "inherit",
2298
+ * "register": "inherit"
2291
2299
  * },
2292
2300
  * "price_policy_conflicts": [
2293
2301
  * {
@@ -2313,6 +2321,8 @@ interface paths {
2313
2321
  urgency_slots: boolean;
2314
2322
  /** @description «Especialista a más de 7 días: ofrecer también una evaluación general esta semana» (D74). `find_slots` then also reports the clinic's general evaluation slots of the next 7 days. Default false. */
2315
2323
  specialist_fallback: boolean;
2324
+ /** @description «Handoff silencioso» (#6016). Default false: a handoff always tells the customer a person takes over (a fixed line is added when the model wrote none). true: the handoff turn may end with no customer message, or with the model's own last line; no fixed handoff line is added. Assignment, alerts, team notification and the AI's silence after the handoff are unchanged. */
2325
+ silent_handoff: boolean;
2316
2326
  /**
2317
2327
  * @description «Signos de apertura» for this agent. `inherit` (default): the workspace's `voice.opening_marks`. `none`: no opening «¿» «¡» (removed at send time). `keep`: the agent writes them.
2318
2328
  * @enum {string}
@@ -2336,6 +2346,8 @@ interface paths {
2336
2346
  urgency_slots: boolean;
2337
2347
  /** @description «Especialista a más de 7 días: ofrecer también una evaluación general esta semana» (D74). `find_slots` then also reports the clinic's general evaluation slots of the next 7 days. Default false. */
2338
2348
  specialist_fallback: boolean;
2349
+ /** @description «Handoff silencioso» (#6016). Default false: a handoff always tells the customer a person takes over (a fixed line is added when the model wrote none). true: the handoff turn may end with no customer message, or with the model's own last line; no fixed handoff line is added. Assignment, alerts, team notification and the AI's silence after the handoff are unchanged. */
2350
+ silent_handoff: boolean;
2339
2351
  /**
2340
2352
  * @description «Signos de apertura» for this agent. `inherit` (default): the workspace's `voice.opening_marks`. `none`: no opening «¿» «¡» (removed at send time). `keep`: the agent writes them.
2341
2353
  * @enum {string}
@@ -115639,7 +115651,8 @@ interface paths {
115639
115651
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
115640
115652
  * "recommended": true
115641
115653
  * }
115642
- * ]
115654
+ * ],
115655
+ * "can_create_pixel": false
115643
115656
  * },
115644
115657
  * "instagram": {
115645
115658
  * "kind": "instagram",
@@ -115892,7 +115905,8 @@ interface paths {
115892
115905
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
115893
115906
  * "recommended": true
115894
115907
  * }
115895
- * ]
115908
+ * ],
115909
+ * "can_create_pixel": false
115896
115910
  * },
115897
115911
  * "instagram": {
115898
115912
  * "kind": "instagram",
@@ -116151,7 +116165,265 @@ interface paths {
116151
116165
  * ],
116152
116166
  * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116153
116167
  * },
116154
- * "candidates": []
116168
+ * "candidates": [],
116169
+ * "can_create_pixel": false
116170
+ * },
116171
+ * "instagram": {
116172
+ * "kind": "instagram",
116173
+ * "state": "ready",
116174
+ * "reason_code": null,
116175
+ * "message": null,
116176
+ * "dataset": null,
116177
+ * "can_create": true,
116178
+ * "can_turn_off": false,
116179
+ * "notice": {
116180
+ * "version": "meta-instagram-dataset-2026-10-07",
116181
+ * "points": [
116182
+ * "Meta crea un conjunto de datos conectado a tu cuenta de Instagram…"
116183
+ * ],
116184
+ * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116185
+ * }
116186
+ * },
116187
+ * "click_less_not_sent": false,
116188
+ * "preview": {
116189
+ * "window_days": 30,
116190
+ * "total": 120,
116191
+ * "with_ad_click": 14,
116192
+ * "without_ad_click": 106,
116193
+ * "click_less_to": "not_sent",
116194
+ * "enabled_meta_rules": 0,
116195
+ * "source": "engine",
116196
+ * "truncated": false,
116197
+ * "stages": [
116198
+ * {
116199
+ * "stage": "lead_created",
116200
+ * "label": "Contacto nuevo",
116201
+ * "on": true,
116202
+ * "total": 60,
116203
+ * "with_ad_click": 9,
116204
+ * "weekly": 14,
116205
+ * "weekly_with_ad_click": 2.1,
116206
+ * "measured_weeks": 4,
116207
+ * "measured_days": 30
116208
+ * }
116209
+ * ]
116210
+ * }
116211
+ * }
116212
+ * }
116213
+ * }
116214
+ */
116215
+ "application/json": {
116216
+ data: {
116217
+ /** @enum {string} */
116218
+ outcome: "created" | "already_present";
116219
+ status: components["schemas"]["AdsMetaDatasetStatus"];
116220
+ };
116221
+ };
116222
+ };
116223
+ };
116224
+ /** @description Validation error */
116225
+ 400: {
116226
+ headers: {
116227
+ [name: string]: unknown;
116228
+ };
116229
+ content: {
116230
+ "application/json": components["schemas"]["Error"];
116231
+ };
116232
+ };
116233
+ /** @description Unauthorized */
116234
+ 401: {
116235
+ headers: {
116236
+ [name: string]: unknown;
116237
+ };
116238
+ content: {
116239
+ "application/json": components["schemas"]["Error"];
116240
+ };
116241
+ };
116242
+ /** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
116243
+ 402: {
116244
+ headers: {
116245
+ [name: string]: unknown;
116246
+ };
116247
+ content: {
116248
+ /**
116249
+ * @example {
116250
+ * "error": {
116251
+ * "code": "ENTITLEMENT_NOT_ACTIVE",
116252
+ * "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
116253
+ * "details": {
116254
+ * "required": [
116255
+ * "vitrina_ads"
116256
+ * ],
116257
+ * "active": [],
116258
+ * "feature": "vitrina_ads",
116259
+ * "entitlement_state": "off"
116260
+ * }
116261
+ * }
116262
+ * }
116263
+ */
116264
+ "application/json": components["schemas"]["Error"];
116265
+ };
116266
+ };
116267
+ /** @description Forbidden */
116268
+ 403: {
116269
+ headers: {
116270
+ [name: string]: unknown;
116271
+ };
116272
+ content: {
116273
+ "application/json": components["schemas"]["Error"];
116274
+ };
116275
+ };
116276
+ /** @description Not found */
116277
+ 404: {
116278
+ headers: {
116279
+ [name: string]: unknown;
116280
+ };
116281
+ content: {
116282
+ "application/json": components["schemas"]["Error"];
116283
+ };
116284
+ };
116285
+ /** @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. */
116286
+ 409: {
116287
+ headers: {
116288
+ [name: string]: unknown;
116289
+ };
116290
+ content: {
116291
+ /**
116292
+ * @example {
116293
+ * "error": {
116294
+ * "code": "ADS_KEY_NEEDS_REMINT",
116295
+ * "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
116296
+ * "details": {
116297
+ * "key_kind": "core"
116298
+ * }
116299
+ * }
116300
+ * }
116301
+ */
116302
+ "application/json": components["schemas"]["Error"];
116303
+ };
116304
+ };
116305
+ /** @description Rate limited */
116306
+ 429: {
116307
+ headers: {
116308
+ [name: string]: unknown;
116309
+ };
116310
+ content: {
116311
+ "application/json": components["schemas"]["Error"];
116312
+ };
116313
+ };
116314
+ };
116315
+ };
116316
+ delete?: never;
116317
+ options?: never;
116318
+ head?: never;
116319
+ patch?: never;
116320
+ trace?: never;
116321
+ };
116322
+ "/ads/conversion-sync/data-sources/website/create-pixel": {
116323
+ parameters: {
116324
+ query?: never;
116325
+ header?: never;
116326
+ path?: never;
116327
+ cookie?: never;
116328
+ };
116329
+ get?: never;
116330
+ put?: never;
116331
+ /**
116332
+ * Create a pixel in the ad account and connect it as the website pixel («Crear píxel»)
116333
+ * @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. For an ad account with no pixel (`website.can_create_pixel`): the measurement engine creates ONE pixel named «<workspace> · Vitrina» in the ad account (or adopts a pixel already carrying that name) and connects it exactly as `website/ensure` does. Meta cannot delete a pixel; a retry replays (idempotent per workspace and name) and answers `already_present`. Needs the CURRENT `website.notice` (409 `notice_required`). 409 `details.reason`: `website_pixel_connected` (another pixel is already connected; nothing created), `pixel_slot_taken` (Meta allows one self-created pixel per ad account and it is used: connect it with `website/ensure`), `pixel_already_attached`, `meta_ads_not_connected`, `meta_write_permission_missing` (reconnect Meta Ads granting every permission), `reconnect_required`, `entitlement_required`, `engine_not_ready` («Pronto»). 502 when Meta failed (nothing was created). The answer carries the engine’s read-back. Requires `ads:write`.
116334
+ */
116335
+ post: {
116336
+ parameters: {
116337
+ query?: never;
116338
+ header?: {
116339
+ /** @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. */
116340
+ "Idempotency-Key"?: string;
116341
+ };
116342
+ path?: never;
116343
+ cookie?: never;
116344
+ };
116345
+ requestBody?: {
116346
+ content: {
116347
+ /**
116348
+ * @example {
116349
+ * "notice_version": "meta-website-pixel-2026-10-02",
116350
+ * "notice_hash": "0000000000000000000000000000000000000000000000000000000000000000"
116351
+ * }
116352
+ */
116353
+ "application/json": {
116354
+ /** @description `notice.version` from the read. */
116355
+ notice_version: string;
116356
+ /** @description `notice.hash` from the read: proof the notice was read. */
116357
+ notice_hash: string;
116358
+ };
116359
+ };
116360
+ };
116361
+ responses: {
116362
+ /** @description Created (or already present) and connected, with the read-back. */
116363
+ 200: {
116364
+ headers: {
116365
+ [name: string]: unknown;
116366
+ };
116367
+ content: {
116368
+ /**
116369
+ * @example {
116370
+ * "data": {
116371
+ * "outcome": "created",
116372
+ * "status": {
116373
+ * "prerequisites": {
116374
+ * "meta_ads_connected": true,
116375
+ * "whatsapp_connected": true,
116376
+ * "instagram_connected": true
116377
+ * },
116378
+ * "whatsapp": {
116379
+ * "kind": "whatsapp",
116380
+ * "state": "created",
116381
+ * "reason_code": null,
116382
+ * "message": null,
116383
+ * "dataset": {
116384
+ * "external_id": "<dataset_id>",
116385
+ * "id_tail": "4821",
116386
+ * "export_from": "2026-10-02T15:00:00.000Z",
116387
+ * "destination_enabled": true,
116388
+ * "access_granted": true,
116389
+ * "shared": false,
116390
+ * "shared_count": null
116391
+ * },
116392
+ * "can_create": false,
116393
+ * "can_turn_off": true,
116394
+ * "notice": {
116395
+ * "version": "meta-whatsapp-dataset-2026-10-02",
116396
+ * "points": [
116397
+ * "Meta crea un conjunto de datos conectado a tu WhatsApp Business…"
116398
+ * ],
116399
+ * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116400
+ * }
116401
+ * },
116402
+ * "website": {
116403
+ * "kind": "website",
116404
+ * "state": "created",
116405
+ * "reason_code": null,
116406
+ * "message": null,
116407
+ * "dataset": {
116408
+ * "external_id": "<new_pixel_id>",
116409
+ * "id_tail": "7890",
116410
+ * "export_from": "2026-10-02T15:05:00.000Z",
116411
+ * "destination_enabled": true,
116412
+ * "access_granted": null,
116413
+ * "shared": false,
116414
+ * "shared_count": null
116415
+ * },
116416
+ * "can_create": false,
116417
+ * "can_turn_off": false,
116418
+ * "notice": {
116419
+ * "version": "meta-website-pixel-2026-10-02",
116420
+ * "points": [
116421
+ * "Tu píxel del sitio recibe los resultados que no traen el clic…"
116422
+ * ],
116423
+ * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116424
+ * },
116425
+ * "candidates": [],
116426
+ * "can_create_pixel": false
116155
116427
  * },
116156
116428
  * "instagram": {
116157
116429
  * "kind": "instagram",
@@ -116399,7 +116671,8 @@ interface paths {
116399
116671
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
116400
116672
  * "recommended": true
116401
116673
  * }
116402
- * ]
116674
+ * ],
116675
+ * "can_create_pixel": false
116403
116676
  * },
116404
116677
  * "instagram": {
116405
116678
  * "kind": "instagram",
@@ -116638,7 +116911,8 @@ interface paths {
116638
116911
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
116639
116912
  * "recommended": true
116640
116913
  * }
116641
- * ]
116914
+ * ],
116915
+ * "can_create_pixel": false
116642
116916
  * },
116643
116917
  * "instagram": {
116644
116918
  * "kind": "instagram",
@@ -116880,7 +117154,8 @@ interface paths {
116880
117154
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
116881
117155
  * "recommended": true
116882
117156
  * }
116883
- * ]
117157
+ * ],
117158
+ * "can_create_pixel": false
116884
117159
  * },
116885
117160
  * "instagram": {
116886
117161
  * "kind": "instagram",
@@ -166301,14 +166576,20 @@ interface paths {
166301
166576
  * "error": null,
166302
166577
  * "created_at": "2026-10-27T15:00:00.000Z",
166303
166578
  * "completed_at": null,
166579
+ * "templates": [
166580
+ * "asi-de-facil",
166581
+ * "pov-chat",
166582
+ * "tasacion"
166583
+ * ],
166304
166584
  * "voice_skipped": [],
166305
166585
  * "renders": [
166306
166586
  * {
166307
166587
  * "id": "2b7e1d4a-8c3f-4a6e-9f10-3c4d5e6f7a81",
166308
- * "render_key": "hookA-16s-4x5-vo",
166309
- * "hook": "A",
166310
- * "cut": 16,
166311
- * "aspect": "4x5",
166588
+ * "render_key": "tpl-asi-de-facil-20s-9x16-vo",
166589
+ * "template": "asi-de-facil",
166590
+ * "hook": null,
166591
+ * "cut": 20,
166592
+ * "aspect": "9x16",
166312
166593
  * "voiced": true,
166313
166594
  * "status": "ready",
166314
166595
  * "error": null,
@@ -166320,9 +166601,10 @@ interface paths {
166320
166601
  * },
166321
166602
  * {
166322
166603
  * "id": "5d1c8e2f-3a4b-4c5d-8e6f-7a8b9c0d1e22",
166323
- * "render_key": "hookA-16s-9x16-vo",
166324
- * "hook": "A",
166325
- * "cut": 16,
166604
+ * "render_key": "tpl-pov-chat-20s-9x16-vo",
166605
+ * "template": "pov-chat",
166606
+ * "hook": null,
166607
+ * "cut": 20,
166326
166608
  * "aspect": "9x16",
166327
166609
  * "voiced": true,
166328
166610
  * "status": "rendering",
@@ -166346,15 +166628,25 @@ interface paths {
166346
166628
  error: string | null;
166347
166629
  created_at: string;
166348
166630
  completed_at: string | null;
166349
- /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166350
- voice_skipped: ("A" | "B" | "C" | "D")[];
166631
+ /** @description What this set renders. */
166632
+ templates: ("asi-de-facil" | "pov-chat" | "tasacion" | "m30")[];
166633
+ /** @description M30 hooks rendered music-only because their voice-over cannot fit, and templates not rendered because their voice-over cannot fit 20 s (a long dealer name or landing address). */
166634
+ voice_skipped: string[];
166351
166635
  renders: {
166352
166636
  /** Format: uuid */
166353
166637
  id: string;
166354
- /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166638
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>` (M30) or `tpl-<template>-20s-9x16-vo`, unique in the set. */
166355
166639
  render_key: string;
166356
- /** @enum {string} */
166357
- hook: "A" | "B" | "C" | "D";
166640
+ /**
166641
+ * @description The template that renders this video (`m30` = the original matrix).
166642
+ * @enum {string}
166643
+ */
166644
+ template: "asi-de-facil" | "pov-chat" | "tasacion" | "m30";
166645
+ /**
166646
+ * @description The M30 hook; null for a template video.
166647
+ * @enum {string|null}
166648
+ */
166649
+ hook: "A" | "B" | "C" | "D" | null;
166358
166650
  cut: number;
166359
166651
  /** @enum {string} */
166360
166652
  aspect: "9x16" | "4x5";
@@ -166365,7 +166657,7 @@ interface paths {
166365
166657
  error: string | null;
166366
166658
  /**
166367
166659
  * Format: uuid
166368
- * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes the 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`.
166660
+ * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes an M30 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`; a template video (9:16 only) goes alone as `feed_asset_id`.
166369
166661
  */
166370
166662
  asset_id: string | null;
166371
166663
  /** @description A 10-minute playback URL (ready only). */
@@ -166473,7 +166765,7 @@ interface paths {
166473
166765
  put?: never;
166474
166766
  /**
166475
166767
  * Render the Lanzamiento consignment videos
166476
- * @description Queues the generated consignment videos for a render set: the same dealer facts, stock photos and Oferta as its statics, rendered as the 120 BPM consignment video (hooks × cuts × 9:16/4:5 × voiced/music-only). Answers 202 with the video set; poll `GET …/videos` until `status` is `done` or `failed`. Idempotent: asking again returns the same set and re-queues only the variants that failed. 409 `video_render_not_configured` while the render service is not set up; 409 `oferta_not_configured` when the set’s Oferta cannot back a claim.
166768
+ * @description Queues the generated consignment videos for a render set: the same dealer facts, stock photos and Oferta as its statics, rendered as the templates in `templates` (default: «Así de fácil», «POV: vendes tu auto solo», «¿Cuánto vale tu auto hoy?», one 9:16 voiced video each) and/or `m30`, the original consignment video (hooks × cuts × 9:16/4:5 × voiced/music-only). Answers 202 with the video set; poll `GET …/videos` until `status` is `done` or `failed`. Idempotent: asking again returns the same set and re-queues only the variants that failed. 409 `video_render_not_configured` while the render service is not set up; 409 `oferta_not_configured` when the set’s Oferta cannot back a claim.
166477
166769
  */
166478
166770
  post: {
166479
166771
  parameters: {
@@ -166491,13 +166783,16 @@ interface paths {
166491
166783
  content: {
166492
166784
  /**
166493
166785
  * @example {
166494
- * "cuts": [
166495
- * "16"
166496
- * ],
166497
- * "voice": "both"
166786
+ * "templates": [
166787
+ * "asi-de-facil",
166788
+ * "pov-chat",
166789
+ * "tasacion"
166790
+ * ]
166498
166791
  * }
166499
166792
  */
166500
166793
  "application/json": {
166794
+ /** @description Which videos to render. `asi-de-facil` («Así de fácil»: the process as an animated explainer), `pov-chat` («POV: vendes tu auto solo»: a native chat, the chaos of selling alone and the relief), `tasacion` («¿Cuánto vale tu auto hoy?»: the patente, the commission, the floor as figures): one 9:16 voiced video each, ≤ 20 s, copy from the Oferta only. `m30`: the original consignment video (hooks × cuts × 4:5/9:16 × voiced/music-only; `hooks`, `cuts`, `aspects` and `voice` narrow it). Default: the three templates. Asking again with a template the set has not rendered adds it and keeps what is ready. */
166795
+ templates?: ("asi-de-facil" | "pov-chat" | "tasacion" | "m30")[];
166501
166796
  /** @description Hooks to render. Default: every hook the Oferta allows (B needs a commission figure, C needs `segment_label`). */
166502
166797
  hooks?: ("A" | "B" | "C")[];
166503
166798
  /** @description Lengths in seconds. Default: `20` (the script with the form line needs it; a voiced cut too short for the script is reported as failed with the reason, its music-only twin renders). */
@@ -166530,6 +166825,11 @@ interface paths {
166530
166825
  * "error": null,
166531
166826
  * "created_at": "2026-10-27T15:00:00.000Z",
166532
166827
  * "completed_at": null,
166828
+ * "templates": [
166829
+ * "asi-de-facil",
166830
+ * "pov-chat",
166831
+ * "tasacion"
166832
+ * ],
166533
166833
  * "voice_skipped": [],
166534
166834
  * "renders": []
166535
166835
  * }
@@ -166547,15 +166847,25 @@ interface paths {
166547
166847
  error: string | null;
166548
166848
  created_at: string;
166549
166849
  completed_at: string | null;
166550
- /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166551
- voice_skipped: ("A" | "B" | "C" | "D")[];
166850
+ /** @description What this set renders. */
166851
+ templates: ("asi-de-facil" | "pov-chat" | "tasacion" | "m30")[];
166852
+ /** @description M30 hooks rendered music-only because their voice-over cannot fit, and templates not rendered because their voice-over cannot fit 20 s (a long dealer name or landing address). */
166853
+ voice_skipped: string[];
166552
166854
  renders: {
166553
166855
  /** Format: uuid */
166554
166856
  id: string;
166555
- /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166857
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>` (M30) or `tpl-<template>-20s-9x16-vo`, unique in the set. */
166556
166858
  render_key: string;
166557
- /** @enum {string} */
166558
- hook: "A" | "B" | "C" | "D";
166859
+ /**
166860
+ * @description The template that renders this video (`m30` = the original matrix).
166861
+ * @enum {string}
166862
+ */
166863
+ template: "asi-de-facil" | "pov-chat" | "tasacion" | "m30";
166864
+ /**
166865
+ * @description The M30 hook; null for a template video.
166866
+ * @enum {string|null}
166867
+ */
166868
+ hook: "A" | "B" | "C" | "D" | null;
166559
166869
  cut: number;
166560
166870
  /** @enum {string} */
166561
166871
  aspect: "9x16" | "4x5";
@@ -166566,7 +166876,7 @@ interface paths {
166566
166876
  error: string | null;
166567
166877
  /**
166568
166878
  * Format: uuid
166569
- * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes the 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`.
166879
+ * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes an M30 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`; a template video (9:16 only) goes alone as `feed_asset_id`.
166570
166880
  */
166571
166881
  asset_id: string | null;
166572
166882
  /** @description A 10-minute playback URL (ready only). */
@@ -235840,6 +236150,8 @@ interface components {
235840
236150
  last_fired_at: string | null;
235841
236151
  recommended: boolean;
235842
236152
  }[];
236153
+ /** @description The ad account has no pixel (`reason_code: no_pixel`): `POST /ads/conversion-sync/data-sources/website/create-pixel` would create one and connect it. */
236154
+ can_create_pixel: boolean;
235843
236155
  };
235844
236156
  /** @description 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 and the business account id (never message content). Measurement only: Meta offers no Purchase optimisation on Instagram. Until it is created those outcomes reach the website pixel as before. */
235845
236157
  instagram: {
package/dist/index.d.ts CHANGED
@@ -2062,6 +2062,8 @@ interface paths {
2062
2062
  urgency_slots?: boolean;
2063
2063
  /** @description «Especialista a más de 7 días: ofrecer también una evaluación general esta semana» (D74). `find_slots` then also reports the clinic's general evaluation slots of the next 7 days. Default false. */
2064
2064
  specialist_fallback?: boolean;
2065
+ /** @description «Handoff silencioso» (#6016). Default false: a handoff always tells the customer a person takes over (a fixed line is added when the model wrote none). true: the handoff turn may end with no customer message, or with the model's own last line; no fixed handoff line is added. Assignment, alerts, team notification and the AI's silence after the handoff are unchanged. */
2066
+ silent_handoff?: boolean;
2065
2067
  /**
2066
2068
  * @description «Signos de apertura» for this agent. `inherit` (default): the workspace's `voice.opening_marks`. `none`: no opening «¿» «¡» (removed at send time). `keep`: the agent writes them.
2067
2069
  * @enum {string}
@@ -2255,7 +2257,7 @@ interface paths {
2255
2257
  };
2256
2258
  /**
2257
2259
  * Read the agent’s behaviour policies
2258
- * @description Per-agent switches that change what the agent says (#3312/#3314): `treatment_price` (`unset` | `first_ask` | `never`, healthcare) and `far_slot_waitlist`, `urgency_slots` (D72) and `specialist_fallback` (D74). `live` is what runs today, `draft` what is staged (null = nothing staged). Every default is the agent’s behaviour before policies existed: nothing is added to its prompt while a policy is unset. `price_policy_conflicts` lists lines of the agent’s own instructions (draft when staged) and active skills that already state a price rule, so a client can reconcile them before publishing. Change them with `PUT /ai-agents/{id}/draft` (`behavior_policies`) and `POST /ai-agents/{id}/publish`.
2260
+ * @description Per-agent switches that change what the agent says (#3312/#3314): `treatment_price` (`unset` | `first_ask` | `never`, healthcare) and `far_slot_waitlist`, `urgency_slots` (D72), `specialist_fallback` (D74) and `silent_handoff` (#6016, «Handoff silencioso»: a handoff sends no announcement line; default false). `live` is what runs today, `draft` what is staged (null = nothing staged). Every default is the agent’s behaviour before policies existed: nothing is added to its prompt while a policy is unset. `price_policy_conflicts` lists lines of the agent’s own instructions (draft when staged) and active skills that already state a price rule, so a client can reconcile them before publishing. Change them with `PUT /ai-agents/{id}/draft` (`behavior_policies`) and `POST /ai-agents/{id}/publish`.
2259
2261
  */
2260
2262
  get: {
2261
2263
  parameters: {
@@ -2281,13 +2283,19 @@ interface paths {
2281
2283
  * "treatment_price": "unset",
2282
2284
  * "far_slot_waitlist": false,
2283
2285
  * "urgency_slots": false,
2284
- * "specialist_fallback": false
2286
+ * "specialist_fallback": false,
2287
+ * "silent_handoff": false,
2288
+ * "opening_marks": "inherit",
2289
+ * "register": "inherit"
2285
2290
  * },
2286
2291
  * "draft": {
2287
2292
  * "treatment_price": "first_ask",
2288
2293
  * "far_slot_waitlist": false,
2289
2294
  * "urgency_slots": true,
2290
- * "specialist_fallback": false
2295
+ * "specialist_fallback": false,
2296
+ * "silent_handoff": true,
2297
+ * "opening_marks": "inherit",
2298
+ * "register": "inherit"
2291
2299
  * },
2292
2300
  * "price_policy_conflicts": [
2293
2301
  * {
@@ -2313,6 +2321,8 @@ interface paths {
2313
2321
  urgency_slots: boolean;
2314
2322
  /** @description «Especialista a más de 7 días: ofrecer también una evaluación general esta semana» (D74). `find_slots` then also reports the clinic's general evaluation slots of the next 7 days. Default false. */
2315
2323
  specialist_fallback: boolean;
2324
+ /** @description «Handoff silencioso» (#6016). Default false: a handoff always tells the customer a person takes over (a fixed line is added when the model wrote none). true: the handoff turn may end with no customer message, or with the model's own last line; no fixed handoff line is added. Assignment, alerts, team notification and the AI's silence after the handoff are unchanged. */
2325
+ silent_handoff: boolean;
2316
2326
  /**
2317
2327
  * @description «Signos de apertura» for this agent. `inherit` (default): the workspace's `voice.opening_marks`. `none`: no opening «¿» «¡» (removed at send time). `keep`: the agent writes them.
2318
2328
  * @enum {string}
@@ -2336,6 +2346,8 @@ interface paths {
2336
2346
  urgency_slots: boolean;
2337
2347
  /** @description «Especialista a más de 7 días: ofrecer también una evaluación general esta semana» (D74). `find_slots` then also reports the clinic's general evaluation slots of the next 7 days. Default false. */
2338
2348
  specialist_fallback: boolean;
2349
+ /** @description «Handoff silencioso» (#6016). Default false: a handoff always tells the customer a person takes over (a fixed line is added when the model wrote none). true: the handoff turn may end with no customer message, or with the model's own last line; no fixed handoff line is added. Assignment, alerts, team notification and the AI's silence after the handoff are unchanged. */
2350
+ silent_handoff: boolean;
2339
2351
  /**
2340
2352
  * @description «Signos de apertura» for this agent. `inherit` (default): the workspace's `voice.opening_marks`. `none`: no opening «¿» «¡» (removed at send time). `keep`: the agent writes them.
2341
2353
  * @enum {string}
@@ -115639,7 +115651,8 @@ interface paths {
115639
115651
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
115640
115652
  * "recommended": true
115641
115653
  * }
115642
- * ]
115654
+ * ],
115655
+ * "can_create_pixel": false
115643
115656
  * },
115644
115657
  * "instagram": {
115645
115658
  * "kind": "instagram",
@@ -115892,7 +115905,8 @@ interface paths {
115892
115905
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
115893
115906
  * "recommended": true
115894
115907
  * }
115895
- * ]
115908
+ * ],
115909
+ * "can_create_pixel": false
115896
115910
  * },
115897
115911
  * "instagram": {
115898
115912
  * "kind": "instagram",
@@ -116151,7 +116165,265 @@ interface paths {
116151
116165
  * ],
116152
116166
  * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116153
116167
  * },
116154
- * "candidates": []
116168
+ * "candidates": [],
116169
+ * "can_create_pixel": false
116170
+ * },
116171
+ * "instagram": {
116172
+ * "kind": "instagram",
116173
+ * "state": "ready",
116174
+ * "reason_code": null,
116175
+ * "message": null,
116176
+ * "dataset": null,
116177
+ * "can_create": true,
116178
+ * "can_turn_off": false,
116179
+ * "notice": {
116180
+ * "version": "meta-instagram-dataset-2026-10-07",
116181
+ * "points": [
116182
+ * "Meta crea un conjunto de datos conectado a tu cuenta de Instagram…"
116183
+ * ],
116184
+ * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116185
+ * }
116186
+ * },
116187
+ * "click_less_not_sent": false,
116188
+ * "preview": {
116189
+ * "window_days": 30,
116190
+ * "total": 120,
116191
+ * "with_ad_click": 14,
116192
+ * "without_ad_click": 106,
116193
+ * "click_less_to": "not_sent",
116194
+ * "enabled_meta_rules": 0,
116195
+ * "source": "engine",
116196
+ * "truncated": false,
116197
+ * "stages": [
116198
+ * {
116199
+ * "stage": "lead_created",
116200
+ * "label": "Contacto nuevo",
116201
+ * "on": true,
116202
+ * "total": 60,
116203
+ * "with_ad_click": 9,
116204
+ * "weekly": 14,
116205
+ * "weekly_with_ad_click": 2.1,
116206
+ * "measured_weeks": 4,
116207
+ * "measured_days": 30
116208
+ * }
116209
+ * ]
116210
+ * }
116211
+ * }
116212
+ * }
116213
+ * }
116214
+ */
116215
+ "application/json": {
116216
+ data: {
116217
+ /** @enum {string} */
116218
+ outcome: "created" | "already_present";
116219
+ status: components["schemas"]["AdsMetaDatasetStatus"];
116220
+ };
116221
+ };
116222
+ };
116223
+ };
116224
+ /** @description Validation error */
116225
+ 400: {
116226
+ headers: {
116227
+ [name: string]: unknown;
116228
+ };
116229
+ content: {
116230
+ "application/json": components["schemas"]["Error"];
116231
+ };
116232
+ };
116233
+ /** @description Unauthorized */
116234
+ 401: {
116235
+ headers: {
116236
+ [name: string]: unknown;
116237
+ };
116238
+ content: {
116239
+ "application/json": components["schemas"]["Error"];
116240
+ };
116241
+ };
116242
+ /** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
116243
+ 402: {
116244
+ headers: {
116245
+ [name: string]: unknown;
116246
+ };
116247
+ content: {
116248
+ /**
116249
+ * @example {
116250
+ * "error": {
116251
+ * "code": "ENTITLEMENT_NOT_ACTIVE",
116252
+ * "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
116253
+ * "details": {
116254
+ * "required": [
116255
+ * "vitrina_ads"
116256
+ * ],
116257
+ * "active": [],
116258
+ * "feature": "vitrina_ads",
116259
+ * "entitlement_state": "off"
116260
+ * }
116261
+ * }
116262
+ * }
116263
+ */
116264
+ "application/json": components["schemas"]["Error"];
116265
+ };
116266
+ };
116267
+ /** @description Forbidden */
116268
+ 403: {
116269
+ headers: {
116270
+ [name: string]: unknown;
116271
+ };
116272
+ content: {
116273
+ "application/json": components["schemas"]["Error"];
116274
+ };
116275
+ };
116276
+ /** @description Not found */
116277
+ 404: {
116278
+ headers: {
116279
+ [name: string]: unknown;
116280
+ };
116281
+ content: {
116282
+ "application/json": components["schemas"]["Error"];
116283
+ };
116284
+ };
116285
+ /** @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. */
116286
+ 409: {
116287
+ headers: {
116288
+ [name: string]: unknown;
116289
+ };
116290
+ content: {
116291
+ /**
116292
+ * @example {
116293
+ * "error": {
116294
+ * "code": "ADS_KEY_NEEDS_REMINT",
116295
+ * "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
116296
+ * "details": {
116297
+ * "key_kind": "core"
116298
+ * }
116299
+ * }
116300
+ * }
116301
+ */
116302
+ "application/json": components["schemas"]["Error"];
116303
+ };
116304
+ };
116305
+ /** @description Rate limited */
116306
+ 429: {
116307
+ headers: {
116308
+ [name: string]: unknown;
116309
+ };
116310
+ content: {
116311
+ "application/json": components["schemas"]["Error"];
116312
+ };
116313
+ };
116314
+ };
116315
+ };
116316
+ delete?: never;
116317
+ options?: never;
116318
+ head?: never;
116319
+ patch?: never;
116320
+ trace?: never;
116321
+ };
116322
+ "/ads/conversion-sync/data-sources/website/create-pixel": {
116323
+ parameters: {
116324
+ query?: never;
116325
+ header?: never;
116326
+ path?: never;
116327
+ cookie?: never;
116328
+ };
116329
+ get?: never;
116330
+ put?: never;
116331
+ /**
116332
+ * Create a pixel in the ad account and connect it as the website pixel («Crear píxel»)
116333
+ * @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. For an ad account with no pixel (`website.can_create_pixel`): the measurement engine creates ONE pixel named «<workspace> · Vitrina» in the ad account (or adopts a pixel already carrying that name) and connects it exactly as `website/ensure` does. Meta cannot delete a pixel; a retry replays (idempotent per workspace and name) and answers `already_present`. Needs the CURRENT `website.notice` (409 `notice_required`). 409 `details.reason`: `website_pixel_connected` (another pixel is already connected; nothing created), `pixel_slot_taken` (Meta allows one self-created pixel per ad account and it is used: connect it with `website/ensure`), `pixel_already_attached`, `meta_ads_not_connected`, `meta_write_permission_missing` (reconnect Meta Ads granting every permission), `reconnect_required`, `entitlement_required`, `engine_not_ready` («Pronto»). 502 when Meta failed (nothing was created). The answer carries the engine’s read-back. Requires `ads:write`.
116334
+ */
116335
+ post: {
116336
+ parameters: {
116337
+ query?: never;
116338
+ header?: {
116339
+ /** @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. */
116340
+ "Idempotency-Key"?: string;
116341
+ };
116342
+ path?: never;
116343
+ cookie?: never;
116344
+ };
116345
+ requestBody?: {
116346
+ content: {
116347
+ /**
116348
+ * @example {
116349
+ * "notice_version": "meta-website-pixel-2026-10-02",
116350
+ * "notice_hash": "0000000000000000000000000000000000000000000000000000000000000000"
116351
+ * }
116352
+ */
116353
+ "application/json": {
116354
+ /** @description `notice.version` from the read. */
116355
+ notice_version: string;
116356
+ /** @description `notice.hash` from the read: proof the notice was read. */
116357
+ notice_hash: string;
116358
+ };
116359
+ };
116360
+ };
116361
+ responses: {
116362
+ /** @description Created (or already present) and connected, with the read-back. */
116363
+ 200: {
116364
+ headers: {
116365
+ [name: string]: unknown;
116366
+ };
116367
+ content: {
116368
+ /**
116369
+ * @example {
116370
+ * "data": {
116371
+ * "outcome": "created",
116372
+ * "status": {
116373
+ * "prerequisites": {
116374
+ * "meta_ads_connected": true,
116375
+ * "whatsapp_connected": true,
116376
+ * "instagram_connected": true
116377
+ * },
116378
+ * "whatsapp": {
116379
+ * "kind": "whatsapp",
116380
+ * "state": "created",
116381
+ * "reason_code": null,
116382
+ * "message": null,
116383
+ * "dataset": {
116384
+ * "external_id": "<dataset_id>",
116385
+ * "id_tail": "4821",
116386
+ * "export_from": "2026-10-02T15:00:00.000Z",
116387
+ * "destination_enabled": true,
116388
+ * "access_granted": true,
116389
+ * "shared": false,
116390
+ * "shared_count": null
116391
+ * },
116392
+ * "can_create": false,
116393
+ * "can_turn_off": true,
116394
+ * "notice": {
116395
+ * "version": "meta-whatsapp-dataset-2026-10-02",
116396
+ * "points": [
116397
+ * "Meta crea un conjunto de datos conectado a tu WhatsApp Business…"
116398
+ * ],
116399
+ * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116400
+ * }
116401
+ * },
116402
+ * "website": {
116403
+ * "kind": "website",
116404
+ * "state": "created",
116405
+ * "reason_code": null,
116406
+ * "message": null,
116407
+ * "dataset": {
116408
+ * "external_id": "<new_pixel_id>",
116409
+ * "id_tail": "7890",
116410
+ * "export_from": "2026-10-02T15:05:00.000Z",
116411
+ * "destination_enabled": true,
116412
+ * "access_granted": null,
116413
+ * "shared": false,
116414
+ * "shared_count": null
116415
+ * },
116416
+ * "can_create": false,
116417
+ * "can_turn_off": false,
116418
+ * "notice": {
116419
+ * "version": "meta-website-pixel-2026-10-02",
116420
+ * "points": [
116421
+ * "Tu píxel del sitio recibe los resultados que no traen el clic…"
116422
+ * ],
116423
+ * "hash": "0000000000000000000000000000000000000000000000000000000000000000"
116424
+ * },
116425
+ * "candidates": [],
116426
+ * "can_create_pixel": false
116155
116427
  * },
116156
116428
  * "instagram": {
116157
116429
  * "kind": "instagram",
@@ -116399,7 +116671,8 @@ interface paths {
116399
116671
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
116400
116672
  * "recommended": true
116401
116673
  * }
116402
- * ]
116674
+ * ],
116675
+ * "can_create_pixel": false
116403
116676
  * },
116404
116677
  * "instagram": {
116405
116678
  * "kind": "instagram",
@@ -116638,7 +116911,8 @@ interface paths {
116638
116911
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
116639
116912
  * "recommended": true
116640
116913
  * }
116641
- * ]
116914
+ * ],
116915
+ * "can_create_pixel": false
116642
116916
  * },
116643
116917
  * "instagram": {
116644
116918
  * "kind": "instagram",
@@ -116880,7 +117154,8 @@ interface paths {
116880
117154
  * "last_fired_at": "2026-10-01T22:10:00.000Z",
116881
117155
  * "recommended": true
116882
117156
  * }
116883
- * ]
117157
+ * ],
117158
+ * "can_create_pixel": false
116884
117159
  * },
116885
117160
  * "instagram": {
116886
117161
  * "kind": "instagram",
@@ -166301,14 +166576,20 @@ interface paths {
166301
166576
  * "error": null,
166302
166577
  * "created_at": "2026-10-27T15:00:00.000Z",
166303
166578
  * "completed_at": null,
166579
+ * "templates": [
166580
+ * "asi-de-facil",
166581
+ * "pov-chat",
166582
+ * "tasacion"
166583
+ * ],
166304
166584
  * "voice_skipped": [],
166305
166585
  * "renders": [
166306
166586
  * {
166307
166587
  * "id": "2b7e1d4a-8c3f-4a6e-9f10-3c4d5e6f7a81",
166308
- * "render_key": "hookA-16s-4x5-vo",
166309
- * "hook": "A",
166310
- * "cut": 16,
166311
- * "aspect": "4x5",
166588
+ * "render_key": "tpl-asi-de-facil-20s-9x16-vo",
166589
+ * "template": "asi-de-facil",
166590
+ * "hook": null,
166591
+ * "cut": 20,
166592
+ * "aspect": "9x16",
166312
166593
  * "voiced": true,
166313
166594
  * "status": "ready",
166314
166595
  * "error": null,
@@ -166320,9 +166601,10 @@ interface paths {
166320
166601
  * },
166321
166602
  * {
166322
166603
  * "id": "5d1c8e2f-3a4b-4c5d-8e6f-7a8b9c0d1e22",
166323
- * "render_key": "hookA-16s-9x16-vo",
166324
- * "hook": "A",
166325
- * "cut": 16,
166604
+ * "render_key": "tpl-pov-chat-20s-9x16-vo",
166605
+ * "template": "pov-chat",
166606
+ * "hook": null,
166607
+ * "cut": 20,
166326
166608
  * "aspect": "9x16",
166327
166609
  * "voiced": true,
166328
166610
  * "status": "rendering",
@@ -166346,15 +166628,25 @@ interface paths {
166346
166628
  error: string | null;
166347
166629
  created_at: string;
166348
166630
  completed_at: string | null;
166349
- /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166350
- voice_skipped: ("A" | "B" | "C" | "D")[];
166631
+ /** @description What this set renders. */
166632
+ templates: ("asi-de-facil" | "pov-chat" | "tasacion" | "m30")[];
166633
+ /** @description M30 hooks rendered music-only because their voice-over cannot fit, and templates not rendered because their voice-over cannot fit 20 s (a long dealer name or landing address). */
166634
+ voice_skipped: string[];
166351
166635
  renders: {
166352
166636
  /** Format: uuid */
166353
166637
  id: string;
166354
- /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166638
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>` (M30) or `tpl-<template>-20s-9x16-vo`, unique in the set. */
166355
166639
  render_key: string;
166356
- /** @enum {string} */
166357
- hook: "A" | "B" | "C" | "D";
166640
+ /**
166641
+ * @description The template that renders this video (`m30` = the original matrix).
166642
+ * @enum {string}
166643
+ */
166644
+ template: "asi-de-facil" | "pov-chat" | "tasacion" | "m30";
166645
+ /**
166646
+ * @description The M30 hook; null for a template video.
166647
+ * @enum {string|null}
166648
+ */
166649
+ hook: "A" | "B" | "C" | "D" | null;
166358
166650
  cut: number;
166359
166651
  /** @enum {string} */
166360
166652
  aspect: "9x16" | "4x5";
@@ -166365,7 +166657,7 @@ interface paths {
166365
166657
  error: string | null;
166366
166658
  /**
166367
166659
  * Format: uuid
166368
- * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes the 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`.
166660
+ * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes an M30 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`; a template video (9:16 only) goes alone as `feed_asset_id`.
166369
166661
  */
166370
166662
  asset_id: string | null;
166371
166663
  /** @description A 10-minute playback URL (ready only). */
@@ -166473,7 +166765,7 @@ interface paths {
166473
166765
  put?: never;
166474
166766
  /**
166475
166767
  * Render the Lanzamiento consignment videos
166476
- * @description Queues the generated consignment videos for a render set: the same dealer facts, stock photos and Oferta as its statics, rendered as the 120 BPM consignment video (hooks × cuts × 9:16/4:5 × voiced/music-only). Answers 202 with the video set; poll `GET …/videos` until `status` is `done` or `failed`. Idempotent: asking again returns the same set and re-queues only the variants that failed. 409 `video_render_not_configured` while the render service is not set up; 409 `oferta_not_configured` when the set’s Oferta cannot back a claim.
166768
+ * @description Queues the generated consignment videos for a render set: the same dealer facts, stock photos and Oferta as its statics, rendered as the templates in `templates` (default: «Así de fácil», «POV: vendes tu auto solo», «¿Cuánto vale tu auto hoy?», one 9:16 voiced video each) and/or `m30`, the original consignment video (hooks × cuts × 9:16/4:5 × voiced/music-only). Answers 202 with the video set; poll `GET …/videos` until `status` is `done` or `failed`. Idempotent: asking again returns the same set and re-queues only the variants that failed. 409 `video_render_not_configured` while the render service is not set up; 409 `oferta_not_configured` when the set’s Oferta cannot back a claim.
166477
166769
  */
166478
166770
  post: {
166479
166771
  parameters: {
@@ -166491,13 +166783,16 @@ interface paths {
166491
166783
  content: {
166492
166784
  /**
166493
166785
  * @example {
166494
- * "cuts": [
166495
- * "16"
166496
- * ],
166497
- * "voice": "both"
166786
+ * "templates": [
166787
+ * "asi-de-facil",
166788
+ * "pov-chat",
166789
+ * "tasacion"
166790
+ * ]
166498
166791
  * }
166499
166792
  */
166500
166793
  "application/json": {
166794
+ /** @description Which videos to render. `asi-de-facil` («Así de fácil»: the process as an animated explainer), `pov-chat` («POV: vendes tu auto solo»: a native chat, the chaos of selling alone and the relief), `tasacion` («¿Cuánto vale tu auto hoy?»: the patente, the commission, the floor as figures): one 9:16 voiced video each, ≤ 20 s, copy from the Oferta only. `m30`: the original consignment video (hooks × cuts × 4:5/9:16 × voiced/music-only; `hooks`, `cuts`, `aspects` and `voice` narrow it). Default: the three templates. Asking again with a template the set has not rendered adds it and keeps what is ready. */
166795
+ templates?: ("asi-de-facil" | "pov-chat" | "tasacion" | "m30")[];
166501
166796
  /** @description Hooks to render. Default: every hook the Oferta allows (B needs a commission figure, C needs `segment_label`). */
166502
166797
  hooks?: ("A" | "B" | "C")[];
166503
166798
  /** @description Lengths in seconds. Default: `20` (the script with the form line needs it; a voiced cut too short for the script is reported as failed with the reason, its music-only twin renders). */
@@ -166530,6 +166825,11 @@ interface paths {
166530
166825
  * "error": null,
166531
166826
  * "created_at": "2026-10-27T15:00:00.000Z",
166532
166827
  * "completed_at": null,
166828
+ * "templates": [
166829
+ * "asi-de-facil",
166830
+ * "pov-chat",
166831
+ * "tasacion"
166832
+ * ],
166533
166833
  * "voice_skipped": [],
166534
166834
  * "renders": []
166535
166835
  * }
@@ -166547,15 +166847,25 @@ interface paths {
166547
166847
  error: string | null;
166548
166848
  created_at: string;
166549
166849
  completed_at: string | null;
166550
- /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166551
- voice_skipped: ("A" | "B" | "C" | "D")[];
166850
+ /** @description What this set renders. */
166851
+ templates: ("asi-de-facil" | "pov-chat" | "tasacion" | "m30")[];
166852
+ /** @description M30 hooks rendered music-only because their voice-over cannot fit, and templates not rendered because their voice-over cannot fit 20 s (a long dealer name or landing address). */
166853
+ voice_skipped: string[];
166552
166854
  renders: {
166553
166855
  /** Format: uuid */
166554
166856
  id: string;
166555
- /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166857
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>` (M30) or `tpl-<template>-20s-9x16-vo`, unique in the set. */
166556
166858
  render_key: string;
166557
- /** @enum {string} */
166558
- hook: "A" | "B" | "C" | "D";
166859
+ /**
166860
+ * @description The template that renders this video (`m30` = the original matrix).
166861
+ * @enum {string}
166862
+ */
166863
+ template: "asi-de-facil" | "pov-chat" | "tasacion" | "m30";
166864
+ /**
166865
+ * @description The M30 hook; null for a template video.
166866
+ * @enum {string|null}
166867
+ */
166868
+ hook: "A" | "B" | "C" | "D" | null;
166559
166869
  cut: number;
166560
166870
  /** @enum {string} */
166561
166871
  aspect: "9x16" | "4x5";
@@ -166566,7 +166876,7 @@ interface paths {
166566
166876
  error: string | null;
166567
166877
  /**
166568
166878
  * Format: uuid
166569
- * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes the 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`.
166879
+ * @description Once ready: the `generated_video` creative asset. `POST /ads/lanzamientos` takes an M30 4:5 one as `videos[].feed_asset_id` and its 9:16 twin (same hook, cut and voice) as `vertical_asset_id`; a template video (9:16 only) goes alone as `feed_asset_id`.
166570
166880
  */
166571
166881
  asset_id: string | null;
166572
166882
  /** @description A 10-minute playback URL (ready only). */
@@ -235840,6 +236150,8 @@ interface components {
235840
236150
  last_fired_at: string | null;
235841
236151
  recommended: boolean;
235842
236152
  }[];
236153
+ /** @description The ad account has no pixel (`reason_code: no_pixel`): `POST /ads/conversion-sync/data-sources/website/create-pixel` would create one and connect it. */
236154
+ can_create_pixel: boolean;
235843
236155
  };
235844
236156
  /** @description 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 and the business account id (never message content). Measurement only: Meta offers no Purchase optimisation on Instagram. Until it is created those outcomes reach the website pixel as before. */
235845
236157
  instagram: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.118.3",
3
+ "version": "15.1.0",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",