@vitrina/api 14.110.0 → 14.111.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 CHANGED
@@ -166261,6 +166261,419 @@ interface paths {
166261
166261
  patch?: never;
166262
166262
  trace?: never;
166263
166263
  };
166264
+ "/ads/lanzamientos/creative-sets/{set_id}/videos": {
166265
+ parameters: {
166266
+ query?: never;
166267
+ header?: never;
166268
+ path?: never;
166269
+ cookie?: never;
166270
+ };
166271
+ /**
166272
+ * The Lanzamiento consignment videos of a set
166273
+ * @description Each planned variant with its status (`queued`, `rendering`, `ready`, `failed` with the reason) and, once ready, the creative asset id and a short-lived playback URL. 404 until videos were requested for the set.
166274
+ */
166275
+ get: {
166276
+ parameters: {
166277
+ query?: never;
166278
+ header?: never;
166279
+ path: {
166280
+ set_id: string;
166281
+ };
166282
+ cookie?: never;
166283
+ };
166284
+ requestBody?: never;
166285
+ responses: {
166286
+ /** @description The video set. */
166287
+ 200: {
166288
+ headers: {
166289
+ [name: string]: unknown;
166290
+ };
166291
+ content: {
166292
+ /**
166293
+ * @example {
166294
+ * "data": {
166295
+ * "id": "9a3f6c1e-55b2-4f0e-8d7a-1b2c3d4e5f60",
166296
+ * "creative_set_id": "6f1c2a8e-3b7d-4c55-9a10-2d4e8b9c0f11",
166297
+ * "status": "rendering",
166298
+ * "error": null,
166299
+ * "created_at": "2026-10-27T15:00:00.000Z",
166300
+ * "completed_at": null,
166301
+ * "voice_skipped": [],
166302
+ * "renders": [
166303
+ * {
166304
+ * "id": "2b7e1d4a-8c3f-4a6e-9f10-3c4d5e6f7a81",
166305
+ * "render_key": "hookA-16s-4x5-vo",
166306
+ * "hook": "A",
166307
+ * "cut": 16,
166308
+ * "aspect": "4x5",
166309
+ * "voiced": true,
166310
+ * "status": "ready",
166311
+ * "error": null,
166312
+ * "asset_id": "2b7e1d4a-8c3f-4a6e-9f10-3c4d5e6f7a81",
166313
+ * "playback": {
166314
+ * "url": "https://storage.example.com/<tenant>/ads-creatives/<id>.mp4?sig=…",
166315
+ * "expires_at": "2026-10-27T15:10:00.000Z"
166316
+ * }
166317
+ * },
166318
+ * {
166319
+ * "id": "5d1c8e2f-3a4b-4c5d-8e6f-7a8b9c0d1e22",
166320
+ * "render_key": "hookA-16s-9x16-vo",
166321
+ * "hook": "A",
166322
+ * "cut": 16,
166323
+ * "aspect": "9x16",
166324
+ * "voiced": true,
166325
+ * "status": "rendering",
166326
+ * "error": null,
166327
+ * "asset_id": null,
166328
+ * "playback": null
166329
+ * }
166330
+ * ]
166331
+ * }
166332
+ * }
166333
+ */
166334
+ "application/json": {
166335
+ data: {
166336
+ /** Format: uuid */
166337
+ id: string;
166338
+ /** Format: uuid */
166339
+ creative_set_id: string;
166340
+ /** @enum {string} */
166341
+ status: "queued" | "planning" | "rendering" | "done" | "failed";
166342
+ /** @description Why the set failed: a missing fact (`address_missing`, `landing_url_missing`, `photos_too_few`), `no_variants`, `every_variant_failed`, or the render service’s reason. */
166343
+ error: string | null;
166344
+ created_at: string;
166345
+ completed_at: string | null;
166346
+ /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166347
+ voice_skipped: ("A" | "B" | "C" | "D")[];
166348
+ renders: {
166349
+ /** Format: uuid */
166350
+ id: string;
166351
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166352
+ render_key: string;
166353
+ /** @enum {string} */
166354
+ hook: "A" | "B" | "C" | "D";
166355
+ cut: number;
166356
+ /** @enum {string} */
166357
+ aspect: "9x16" | "4x5";
166358
+ voiced: boolean;
166359
+ /** @enum {string} */
166360
+ status: "queued" | "rendering" | "ready" | "failed";
166361
+ /** @description Why it failed (failed only). */
166362
+ error: string | null;
166363
+ /**
166364
+ * Format: uuid
166365
+ * @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`.
166366
+ */
166367
+ asset_id: string | null;
166368
+ /** @description A 10-minute playback URL (ready only). */
166369
+ playback: {
166370
+ url: string;
166371
+ expires_at: string;
166372
+ } | null;
166373
+ }[];
166374
+ };
166375
+ };
166376
+ };
166377
+ };
166378
+ /** @description Validation error */
166379
+ 400: {
166380
+ headers: {
166381
+ [name: string]: unknown;
166382
+ };
166383
+ content: {
166384
+ "application/json": components["schemas"]["Error"];
166385
+ };
166386
+ };
166387
+ /** @description Unauthorized */
166388
+ 401: {
166389
+ headers: {
166390
+ [name: string]: unknown;
166391
+ };
166392
+ content: {
166393
+ "application/json": components["schemas"]["Error"];
166394
+ };
166395
+ };
166396
+ /** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
166397
+ 402: {
166398
+ headers: {
166399
+ [name: string]: unknown;
166400
+ };
166401
+ content: {
166402
+ /**
166403
+ * @example {
166404
+ * "error": {
166405
+ * "code": "ENTITLEMENT_NOT_ACTIVE",
166406
+ * "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
166407
+ * "details": {
166408
+ * "required": [
166409
+ * "vitrina_ads"
166410
+ * ],
166411
+ * "active": [],
166412
+ * "feature": "vitrina_ads",
166413
+ * "entitlement_state": "off"
166414
+ * }
166415
+ * }
166416
+ * }
166417
+ */
166418
+ "application/json": components["schemas"]["Error"];
166419
+ };
166420
+ };
166421
+ /** @description Forbidden */
166422
+ 403: {
166423
+ headers: {
166424
+ [name: string]: unknown;
166425
+ };
166426
+ content: {
166427
+ "application/json": components["schemas"]["Error"];
166428
+ };
166429
+ };
166430
+ /** @description Not found */
166431
+ 404: {
166432
+ headers: {
166433
+ [name: string]: unknown;
166434
+ };
166435
+ content: {
166436
+ "application/json": components["schemas"]["Error"];
166437
+ };
166438
+ };
166439
+ /** @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. */
166440
+ 409: {
166441
+ headers: {
166442
+ [name: string]: unknown;
166443
+ };
166444
+ content: {
166445
+ /**
166446
+ * @example {
166447
+ * "error": {
166448
+ * "code": "ADS_KEY_NEEDS_REMINT",
166449
+ * "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
166450
+ * "details": {
166451
+ * "key_kind": "core"
166452
+ * }
166453
+ * }
166454
+ * }
166455
+ */
166456
+ "application/json": components["schemas"]["Error"];
166457
+ };
166458
+ };
166459
+ /** @description Rate limited */
166460
+ 429: {
166461
+ headers: {
166462
+ [name: string]: unknown;
166463
+ };
166464
+ content: {
166465
+ "application/json": components["schemas"]["Error"];
166466
+ };
166467
+ };
166468
+ };
166469
+ };
166470
+ put?: never;
166471
+ /**
166472
+ * Render the Lanzamiento consignment videos
166473
+ * @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.
166474
+ */
166475
+ post: {
166476
+ parameters: {
166477
+ query?: never;
166478
+ header?: {
166479
+ /** @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. */
166480
+ "Idempotency-Key"?: string;
166481
+ };
166482
+ path: {
166483
+ set_id: string;
166484
+ };
166485
+ cookie?: never;
166486
+ };
166487
+ requestBody?: {
166488
+ content: {
166489
+ /**
166490
+ * @example {
166491
+ * "cuts": [
166492
+ * "16"
166493
+ * ],
166494
+ * "voice": "both"
166495
+ * }
166496
+ */
166497
+ "application/json": {
166498
+ /** @description Hooks to render. Default: every hook the Oferta allows (B needs a commission figure, C needs `segment_label`). */
166499
+ hooks?: ("A" | "B" | "C")[];
166500
+ /** @description Lengths in seconds. Default: `16` (the recipe’s main cut). */
166501
+ cuts?: ("12" | "16" | "20")[];
166502
+ /** @description Default: both. The Lanzamiento runs a 4:5 feed video with its 9:16 twin. */
166503
+ aspects?: ("9x16" | "4x5")[];
166504
+ /**
166505
+ * @description With voice-over, music-only, or both (default; every video also renders music-only).
166506
+ * @enum {string}
166507
+ */
166508
+ voice?: "both" | "voiced" | "music";
166509
+ /** @description Hook C («¿Tienes un SUV 2018+?»): the kind of car the dealer is looking for. The year is the Condiciones’ minimum; without both, hook C is not rendered. */
166510
+ segment_label?: string;
166511
+ };
166512
+ };
166513
+ };
166514
+ responses: {
166515
+ /** @description The video set, queued. */
166516
+ 202: {
166517
+ headers: {
166518
+ [name: string]: unknown;
166519
+ };
166520
+ content: {
166521
+ /**
166522
+ * @example {
166523
+ * "data": {
166524
+ * "id": "9a3f6c1e-55b2-4f0e-8d7a-1b2c3d4e5f60",
166525
+ * "creative_set_id": "6f1c2a8e-3b7d-4c55-9a10-2d4e8b9c0f11",
166526
+ * "status": "queued",
166527
+ * "error": null,
166528
+ * "created_at": "2026-10-27T15:00:00.000Z",
166529
+ * "completed_at": null,
166530
+ * "voice_skipped": [],
166531
+ * "renders": []
166532
+ * }
166533
+ * }
166534
+ */
166535
+ "application/json": {
166536
+ data: {
166537
+ /** Format: uuid */
166538
+ id: string;
166539
+ /** Format: uuid */
166540
+ creative_set_id: string;
166541
+ /** @enum {string} */
166542
+ status: "queued" | "planning" | "rendering" | "done" | "failed";
166543
+ /** @description Why the set failed: a missing fact (`address_missing`, `landing_url_missing`, `photos_too_few`), `no_variants`, `every_variant_failed`, or the render service’s reason. */
166544
+ error: string | null;
166545
+ created_at: string;
166546
+ completed_at: string | null;
166547
+ /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166548
+ voice_skipped: ("A" | "B" | "C" | "D")[];
166549
+ renders: {
166550
+ /** Format: uuid */
166551
+ id: string;
166552
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166553
+ render_key: string;
166554
+ /** @enum {string} */
166555
+ hook: "A" | "B" | "C" | "D";
166556
+ cut: number;
166557
+ /** @enum {string} */
166558
+ aspect: "9x16" | "4x5";
166559
+ voiced: boolean;
166560
+ /** @enum {string} */
166561
+ status: "queued" | "rendering" | "ready" | "failed";
166562
+ /** @description Why it failed (failed only). */
166563
+ error: string | null;
166564
+ /**
166565
+ * Format: uuid
166566
+ * @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`.
166567
+ */
166568
+ asset_id: string | null;
166569
+ /** @description A 10-minute playback URL (ready only). */
166570
+ playback: {
166571
+ url: string;
166572
+ expires_at: string;
166573
+ } | null;
166574
+ }[];
166575
+ };
166576
+ };
166577
+ };
166578
+ };
166579
+ /** @description Validation error */
166580
+ 400: {
166581
+ headers: {
166582
+ [name: string]: unknown;
166583
+ };
166584
+ content: {
166585
+ "application/json": components["schemas"]["Error"];
166586
+ };
166587
+ };
166588
+ /** @description Unauthorized */
166589
+ 401: {
166590
+ headers: {
166591
+ [name: string]: unknown;
166592
+ };
166593
+ content: {
166594
+ "application/json": components["schemas"]["Error"];
166595
+ };
166596
+ };
166597
+ /** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
166598
+ 402: {
166599
+ headers: {
166600
+ [name: string]: unknown;
166601
+ };
166602
+ content: {
166603
+ /**
166604
+ * @example {
166605
+ * "error": {
166606
+ * "code": "ENTITLEMENT_NOT_ACTIVE",
166607
+ * "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
166608
+ * "details": {
166609
+ * "required": [
166610
+ * "vitrina_ads"
166611
+ * ],
166612
+ * "active": [],
166613
+ * "feature": "vitrina_ads",
166614
+ * "entitlement_state": "off"
166615
+ * }
166616
+ * }
166617
+ * }
166618
+ */
166619
+ "application/json": components["schemas"]["Error"];
166620
+ };
166621
+ };
166622
+ /** @description Forbidden */
166623
+ 403: {
166624
+ headers: {
166625
+ [name: string]: unknown;
166626
+ };
166627
+ content: {
166628
+ "application/json": components["schemas"]["Error"];
166629
+ };
166630
+ };
166631
+ /** @description Not found */
166632
+ 404: {
166633
+ headers: {
166634
+ [name: string]: unknown;
166635
+ };
166636
+ content: {
166637
+ "application/json": components["schemas"]["Error"];
166638
+ };
166639
+ };
166640
+ /** @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. */
166641
+ 409: {
166642
+ headers: {
166643
+ [name: string]: unknown;
166644
+ };
166645
+ content: {
166646
+ /**
166647
+ * @example {
166648
+ * "error": {
166649
+ * "code": "ADS_KEY_NEEDS_REMINT",
166650
+ * "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
166651
+ * "details": {
166652
+ * "key_kind": "core"
166653
+ * }
166654
+ * }
166655
+ * }
166656
+ */
166657
+ "application/json": components["schemas"]["Error"];
166658
+ };
166659
+ };
166660
+ /** @description Rate limited */
166661
+ 429: {
166662
+ headers: {
166663
+ [name: string]: unknown;
166664
+ };
166665
+ content: {
166666
+ "application/json": components["schemas"]["Error"];
166667
+ };
166668
+ };
166669
+ };
166670
+ };
166671
+ delete?: never;
166672
+ options?: never;
166673
+ head?: never;
166674
+ patch?: never;
166675
+ trace?: never;
166676
+ };
166264
166677
  "/ads/lanzamientos/car-creative-sets": {
166265
166678
  parameters: {
166266
166679
  query?: never;
package/dist/index.d.ts CHANGED
@@ -166261,6 +166261,419 @@ interface paths {
166261
166261
  patch?: never;
166262
166262
  trace?: never;
166263
166263
  };
166264
+ "/ads/lanzamientos/creative-sets/{set_id}/videos": {
166265
+ parameters: {
166266
+ query?: never;
166267
+ header?: never;
166268
+ path?: never;
166269
+ cookie?: never;
166270
+ };
166271
+ /**
166272
+ * The Lanzamiento consignment videos of a set
166273
+ * @description Each planned variant with its status (`queued`, `rendering`, `ready`, `failed` with the reason) and, once ready, the creative asset id and a short-lived playback URL. 404 until videos were requested for the set.
166274
+ */
166275
+ get: {
166276
+ parameters: {
166277
+ query?: never;
166278
+ header?: never;
166279
+ path: {
166280
+ set_id: string;
166281
+ };
166282
+ cookie?: never;
166283
+ };
166284
+ requestBody?: never;
166285
+ responses: {
166286
+ /** @description The video set. */
166287
+ 200: {
166288
+ headers: {
166289
+ [name: string]: unknown;
166290
+ };
166291
+ content: {
166292
+ /**
166293
+ * @example {
166294
+ * "data": {
166295
+ * "id": "9a3f6c1e-55b2-4f0e-8d7a-1b2c3d4e5f60",
166296
+ * "creative_set_id": "6f1c2a8e-3b7d-4c55-9a10-2d4e8b9c0f11",
166297
+ * "status": "rendering",
166298
+ * "error": null,
166299
+ * "created_at": "2026-10-27T15:00:00.000Z",
166300
+ * "completed_at": null,
166301
+ * "voice_skipped": [],
166302
+ * "renders": [
166303
+ * {
166304
+ * "id": "2b7e1d4a-8c3f-4a6e-9f10-3c4d5e6f7a81",
166305
+ * "render_key": "hookA-16s-4x5-vo",
166306
+ * "hook": "A",
166307
+ * "cut": 16,
166308
+ * "aspect": "4x5",
166309
+ * "voiced": true,
166310
+ * "status": "ready",
166311
+ * "error": null,
166312
+ * "asset_id": "2b7e1d4a-8c3f-4a6e-9f10-3c4d5e6f7a81",
166313
+ * "playback": {
166314
+ * "url": "https://storage.example.com/<tenant>/ads-creatives/<id>.mp4?sig=…",
166315
+ * "expires_at": "2026-10-27T15:10:00.000Z"
166316
+ * }
166317
+ * },
166318
+ * {
166319
+ * "id": "5d1c8e2f-3a4b-4c5d-8e6f-7a8b9c0d1e22",
166320
+ * "render_key": "hookA-16s-9x16-vo",
166321
+ * "hook": "A",
166322
+ * "cut": 16,
166323
+ * "aspect": "9x16",
166324
+ * "voiced": true,
166325
+ * "status": "rendering",
166326
+ * "error": null,
166327
+ * "asset_id": null,
166328
+ * "playback": null
166329
+ * }
166330
+ * ]
166331
+ * }
166332
+ * }
166333
+ */
166334
+ "application/json": {
166335
+ data: {
166336
+ /** Format: uuid */
166337
+ id: string;
166338
+ /** Format: uuid */
166339
+ creative_set_id: string;
166340
+ /** @enum {string} */
166341
+ status: "queued" | "planning" | "rendering" | "done" | "failed";
166342
+ /** @description Why the set failed: a missing fact (`address_missing`, `landing_url_missing`, `photos_too_few`), `no_variants`, `every_variant_failed`, or the render service’s reason. */
166343
+ error: string | null;
166344
+ created_at: string;
166345
+ completed_at: string | null;
166346
+ /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166347
+ voice_skipped: ("A" | "B" | "C" | "D")[];
166348
+ renders: {
166349
+ /** Format: uuid */
166350
+ id: string;
166351
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166352
+ render_key: string;
166353
+ /** @enum {string} */
166354
+ hook: "A" | "B" | "C" | "D";
166355
+ cut: number;
166356
+ /** @enum {string} */
166357
+ aspect: "9x16" | "4x5";
166358
+ voiced: boolean;
166359
+ /** @enum {string} */
166360
+ status: "queued" | "rendering" | "ready" | "failed";
166361
+ /** @description Why it failed (failed only). */
166362
+ error: string | null;
166363
+ /**
166364
+ * Format: uuid
166365
+ * @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`.
166366
+ */
166367
+ asset_id: string | null;
166368
+ /** @description A 10-minute playback URL (ready only). */
166369
+ playback: {
166370
+ url: string;
166371
+ expires_at: string;
166372
+ } | null;
166373
+ }[];
166374
+ };
166375
+ };
166376
+ };
166377
+ };
166378
+ /** @description Validation error */
166379
+ 400: {
166380
+ headers: {
166381
+ [name: string]: unknown;
166382
+ };
166383
+ content: {
166384
+ "application/json": components["schemas"]["Error"];
166385
+ };
166386
+ };
166387
+ /** @description Unauthorized */
166388
+ 401: {
166389
+ headers: {
166390
+ [name: string]: unknown;
166391
+ };
166392
+ content: {
166393
+ "application/json": components["schemas"]["Error"];
166394
+ };
166395
+ };
166396
+ /** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
166397
+ 402: {
166398
+ headers: {
166399
+ [name: string]: unknown;
166400
+ };
166401
+ content: {
166402
+ /**
166403
+ * @example {
166404
+ * "error": {
166405
+ * "code": "ENTITLEMENT_NOT_ACTIVE",
166406
+ * "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
166407
+ * "details": {
166408
+ * "required": [
166409
+ * "vitrina_ads"
166410
+ * ],
166411
+ * "active": [],
166412
+ * "feature": "vitrina_ads",
166413
+ * "entitlement_state": "off"
166414
+ * }
166415
+ * }
166416
+ * }
166417
+ */
166418
+ "application/json": components["schemas"]["Error"];
166419
+ };
166420
+ };
166421
+ /** @description Forbidden */
166422
+ 403: {
166423
+ headers: {
166424
+ [name: string]: unknown;
166425
+ };
166426
+ content: {
166427
+ "application/json": components["schemas"]["Error"];
166428
+ };
166429
+ };
166430
+ /** @description Not found */
166431
+ 404: {
166432
+ headers: {
166433
+ [name: string]: unknown;
166434
+ };
166435
+ content: {
166436
+ "application/json": components["schemas"]["Error"];
166437
+ };
166438
+ };
166439
+ /** @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. */
166440
+ 409: {
166441
+ headers: {
166442
+ [name: string]: unknown;
166443
+ };
166444
+ content: {
166445
+ /**
166446
+ * @example {
166447
+ * "error": {
166448
+ * "code": "ADS_KEY_NEEDS_REMINT",
166449
+ * "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
166450
+ * "details": {
166451
+ * "key_kind": "core"
166452
+ * }
166453
+ * }
166454
+ * }
166455
+ */
166456
+ "application/json": components["schemas"]["Error"];
166457
+ };
166458
+ };
166459
+ /** @description Rate limited */
166460
+ 429: {
166461
+ headers: {
166462
+ [name: string]: unknown;
166463
+ };
166464
+ content: {
166465
+ "application/json": components["schemas"]["Error"];
166466
+ };
166467
+ };
166468
+ };
166469
+ };
166470
+ put?: never;
166471
+ /**
166472
+ * Render the Lanzamiento consignment videos
166473
+ * @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.
166474
+ */
166475
+ post: {
166476
+ parameters: {
166477
+ query?: never;
166478
+ header?: {
166479
+ /** @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. */
166480
+ "Idempotency-Key"?: string;
166481
+ };
166482
+ path: {
166483
+ set_id: string;
166484
+ };
166485
+ cookie?: never;
166486
+ };
166487
+ requestBody?: {
166488
+ content: {
166489
+ /**
166490
+ * @example {
166491
+ * "cuts": [
166492
+ * "16"
166493
+ * ],
166494
+ * "voice": "both"
166495
+ * }
166496
+ */
166497
+ "application/json": {
166498
+ /** @description Hooks to render. Default: every hook the Oferta allows (B needs a commission figure, C needs `segment_label`). */
166499
+ hooks?: ("A" | "B" | "C")[];
166500
+ /** @description Lengths in seconds. Default: `16` (the recipe’s main cut). */
166501
+ cuts?: ("12" | "16" | "20")[];
166502
+ /** @description Default: both. The Lanzamiento runs a 4:5 feed video with its 9:16 twin. */
166503
+ aspects?: ("9x16" | "4x5")[];
166504
+ /**
166505
+ * @description With voice-over, music-only, or both (default; every video also renders music-only).
166506
+ * @enum {string}
166507
+ */
166508
+ voice?: "both" | "voiced" | "music";
166509
+ /** @description Hook C («¿Tienes un SUV 2018+?»): the kind of car the dealer is looking for. The year is the Condiciones’ minimum; without both, hook C is not rendered. */
166510
+ segment_label?: string;
166511
+ };
166512
+ };
166513
+ };
166514
+ responses: {
166515
+ /** @description The video set, queued. */
166516
+ 202: {
166517
+ headers: {
166518
+ [name: string]: unknown;
166519
+ };
166520
+ content: {
166521
+ /**
166522
+ * @example {
166523
+ * "data": {
166524
+ * "id": "9a3f6c1e-55b2-4f0e-8d7a-1b2c3d4e5f60",
166525
+ * "creative_set_id": "6f1c2a8e-3b7d-4c55-9a10-2d4e8b9c0f11",
166526
+ * "status": "queued",
166527
+ * "error": null,
166528
+ * "created_at": "2026-10-27T15:00:00.000Z",
166529
+ * "completed_at": null,
166530
+ * "voice_skipped": [],
166531
+ * "renders": []
166532
+ * }
166533
+ * }
166534
+ */
166535
+ "application/json": {
166536
+ data: {
166537
+ /** Format: uuid */
166538
+ id: string;
166539
+ /** Format: uuid */
166540
+ creative_set_id: string;
166541
+ /** @enum {string} */
166542
+ status: "queued" | "planning" | "rendering" | "done" | "failed";
166543
+ /** @description Why the set failed: a missing fact (`address_missing`, `landing_url_missing`, `photos_too_few`), `no_variants`, `every_variant_failed`, or the render service’s reason. */
166544
+ error: string | null;
166545
+ created_at: string;
166546
+ completed_at: string | null;
166547
+ /** @description Hooks rendered music-only because their voice-over cannot fit 25 words (a long dealer name or landing address). */
166548
+ voice_skipped: ("A" | "B" | "C" | "D")[];
166549
+ renders: {
166550
+ /** Format: uuid */
166551
+ id: string;
166552
+ /** @description `hook<H>-<cut>s-<aspect>-<vo|novo>`, unique in the set. */
166553
+ render_key: string;
166554
+ /** @enum {string} */
166555
+ hook: "A" | "B" | "C" | "D";
166556
+ cut: number;
166557
+ /** @enum {string} */
166558
+ aspect: "9x16" | "4x5";
166559
+ voiced: boolean;
166560
+ /** @enum {string} */
166561
+ status: "queued" | "rendering" | "ready" | "failed";
166562
+ /** @description Why it failed (failed only). */
166563
+ error: string | null;
166564
+ /**
166565
+ * Format: uuid
166566
+ * @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`.
166567
+ */
166568
+ asset_id: string | null;
166569
+ /** @description A 10-minute playback URL (ready only). */
166570
+ playback: {
166571
+ url: string;
166572
+ expires_at: string;
166573
+ } | null;
166574
+ }[];
166575
+ };
166576
+ };
166577
+ };
166578
+ };
166579
+ /** @description Validation error */
166580
+ 400: {
166581
+ headers: {
166582
+ [name: string]: unknown;
166583
+ };
166584
+ content: {
166585
+ "application/json": components["schemas"]["Error"];
166586
+ };
166587
+ };
166588
+ /** @description Unauthorized */
166589
+ 401: {
166590
+ headers: {
166591
+ [name: string]: unknown;
166592
+ };
166593
+ content: {
166594
+ "application/json": components["schemas"]["Error"];
166595
+ };
166596
+ };
166597
+ /** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
166598
+ 402: {
166599
+ headers: {
166600
+ [name: string]: unknown;
166601
+ };
166602
+ content: {
166603
+ /**
166604
+ * @example {
166605
+ * "error": {
166606
+ * "code": "ENTITLEMENT_NOT_ACTIVE",
166607
+ * "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
166608
+ * "details": {
166609
+ * "required": [
166610
+ * "vitrina_ads"
166611
+ * ],
166612
+ * "active": [],
166613
+ * "feature": "vitrina_ads",
166614
+ * "entitlement_state": "off"
166615
+ * }
166616
+ * }
166617
+ * }
166618
+ */
166619
+ "application/json": components["schemas"]["Error"];
166620
+ };
166621
+ };
166622
+ /** @description Forbidden */
166623
+ 403: {
166624
+ headers: {
166625
+ [name: string]: unknown;
166626
+ };
166627
+ content: {
166628
+ "application/json": components["schemas"]["Error"];
166629
+ };
166630
+ };
166631
+ /** @description Not found */
166632
+ 404: {
166633
+ headers: {
166634
+ [name: string]: unknown;
166635
+ };
166636
+ content: {
166637
+ "application/json": components["schemas"]["Error"];
166638
+ };
166639
+ };
166640
+ /** @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. */
166641
+ 409: {
166642
+ headers: {
166643
+ [name: string]: unknown;
166644
+ };
166645
+ content: {
166646
+ /**
166647
+ * @example {
166648
+ * "error": {
166649
+ * "code": "ADS_KEY_NEEDS_REMINT",
166650
+ * "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
166651
+ * "details": {
166652
+ * "key_kind": "core"
166653
+ * }
166654
+ * }
166655
+ * }
166656
+ */
166657
+ "application/json": components["schemas"]["Error"];
166658
+ };
166659
+ };
166660
+ /** @description Rate limited */
166661
+ 429: {
166662
+ headers: {
166663
+ [name: string]: unknown;
166664
+ };
166665
+ content: {
166666
+ "application/json": components["schemas"]["Error"];
166667
+ };
166668
+ };
166669
+ };
166670
+ };
166671
+ delete?: never;
166672
+ options?: never;
166673
+ head?: never;
166674
+ patch?: never;
166675
+ trace?: never;
166676
+ };
166264
166677
  "/ads/lanzamientos/car-creative-sets": {
166265
166678
  parameters: {
166266
166679
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.110.0",
3
+ "version": "14.111.1",
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",