@vitrina/api 15.3.1 → 15.4.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
@@ -2308,10 +2308,10 @@ interface paths {
2308
2308
  * "enabled": false,
2309
2309
  * "voice_id": null,
2310
2310
  * "voice_settings": {
2311
- * "stability": 0.9,
2312
- * "similarity_boost": 0.6,
2313
- * "speed": 0.95,
2314
- * "style": 0.6,
2311
+ * "stability": 0.5,
2312
+ * "similarity_boost": 0.75,
2313
+ * "speed": 1,
2314
+ * "style": 0,
2315
2315
  * "use_speaker_boost": true
2316
2316
  * },
2317
2317
  * "lexicon": []
@@ -117549,6 +117549,8 @@ interface paths {
117549
117549
  *
117550
117550
  * THE CARD RECARGO IS RESOLVED SERVER-SIDE. On a `tarjeta_debito` / `tarjeta_credito` payment the workspace’s configured rate for THAT card type (`tenant.settings.card_fees` — débito ≠ crédito) is applied and FROZEN on the row as `card_fee_bps` + `card_surcharge_clp` + `card_surcharge_source: "calculado"`, and the response carries all three. Send neither field and that is what you get; send `card_fee_bps` to override the RATE for one swipe (`0` is a rate and means a $0 recargo, never "unset"); send `card_surcharge_clp` to override the FIGURE, which freezes `"ajustado"`. A workspace with no rate configured for that card type — and the legacy `tarjeta` member, whose card type nobody recorded — records NO recargo at all, never a $0 one. ⚠ THE RECARGO IS WHAT THE CUSTOMER PAYS ON TOP: it is NOT part of `amount_clp` and is allocated to nothing.
117551
117551
  *
117552
+ * SAY WHAT SALE IT WAS (`sale`, optional). A back office that records one sale per call sends `sale: { ref, place?, items? }`: `ref` is the sale’s id in YOUR system (two payments with the same `ref` are ONE sale, a deposit and its balance; different refs are different sales even minutes apart); `place: "store"` marks a counter sale whatever the instrument, so a transfer taken at the till is still a store sale for ad reporting; `items` (`[{ external_id, quantity?, unit_price_clp? }]`, `external_id` = your stable item id) is what was sold, sent on to the ad platforms as the Purchase’s `content_ids` / `contents`. Nothing else reads it.
117553
+ *
117552
117554
  * ⚠ `Idempotency-Key` IS STORED ON THE ROW, not merely cached: a repeat returns **200** with the existing payment and `meta.replayed: true` instead of 409ing, because a receptionist who clicked twice asked one question. A first write answers 201. 409 when the split over-allocates the payment (`error.details.unallocated_clp` says what was left), when the cobro is closed, or when it belongs to somebody else.
117553
117555
  */
117554
117556
  post: {
@@ -117593,6 +117595,16 @@ interface paths {
117593
117595
  account_number?: string | null;
117594
117596
  document_number?: string | null;
117595
117597
  note?: string | null;
117598
+ sale?: {
117599
+ ref: string;
117600
+ /** @enum {string} */
117601
+ place?: "store" | "online";
117602
+ items?: {
117603
+ external_id: string;
117604
+ quantity?: number;
117605
+ unit_price_clp?: number;
117606
+ }[];
117607
+ } | null;
117596
117608
  card_fee_bps?: number | null;
117597
117609
  card_surcharge_clp?: number | null;
117598
117610
  /** Format: uuid */
@@ -125754,6 +125766,473 @@ interface paths {
125754
125766
  patch?: never;
125755
125767
  trace?: never;
125756
125768
  };
125769
+ "/conversations/{id}/voice-clips/{clipId}/send": {
125770
+ parameters: {
125771
+ query?: never;
125772
+ header?: never;
125773
+ path?: never;
125774
+ cookie?: never;
125775
+ };
125776
+ get?: never;
125777
+ put?: never;
125778
+ /**
125779
+ * Send a library voice clip to the customer
125780
+ * @description Sends one clip of the workspace «Clip de voz» library (`GET /voice-clips`) into the conversation as a voice note, as the caller: OGG/Opus with the push-to-talk flag on WhatsApp, AAC by public link on Instagram. The clip's transcript is stored on the message row. Everything `POST /conversations/{id}/voice` checks applies — the reply rail, the política de envíos, the Instagram/Messenger 7-day HUMAN_AGENT window and the provider's own refusal.
125781
+ *
125782
+ * Refused with 409 `CONFLICT` and `details.code`: `VOICE_CLIP_EXPIRED` (the clip is past `expires_at`; nothing is sent) or `VOICE_NOTE_UNSUPPORTED` (the channel cannot carry audio — email, web chat, Messenger, Marketplace; `details.text` holds the clip's words, or null, so the caller can offer them as a text reply; nothing is sent). Another workspace's clip is 404.
125783
+ *
125784
+ * Needs `macros:read` (the library) as well as `conversations:write` and `messages:send`.
125785
+ *
125786
+ * Requires `messages:send` in addition to `conversations:write`. Sent by an API key, a personal token or a connected app, it goes through the política de envíos first — 422 `OUTBOUND_BLOCKED`, 409 `OUTBOUND_WARNING` (resend with `acknowledge`) or, for a connected app past its fan-out limit, 202 `pending_approval`. A member in the UI is not checked.
125787
+ */
125788
+ post: {
125789
+ parameters: {
125790
+ query?: never;
125791
+ header?: {
125792
+ /** @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. */
125793
+ "Idempotency-Key"?: string;
125794
+ };
125795
+ path: {
125796
+ id: string;
125797
+ clipId: string;
125798
+ };
125799
+ cookie?: never;
125800
+ };
125801
+ requestBody?: {
125802
+ content: {
125803
+ /** @example {} */
125804
+ "application/json": {
125805
+ /** @description Advertencia de envío codes to go ahead over — every code from a 409 `OUTBOUND_WARNING` response's `reasons`, e.g. `["quiet_hours"]`. Recorded in the audit log and the outbound ledger. Has no effect on a Bloqueo (422 `OUTBOUND_BLOCKED`). */
125806
+ acknowledge?: string[];
125807
+ };
125808
+ };
125809
+ };
125810
+ responses: {
125811
+ /** @description The persisted audio message */
125812
+ 201: {
125813
+ headers: {
125814
+ [name: string]: unknown;
125815
+ };
125816
+ content: {
125817
+ /**
125818
+ * @example {
125819
+ * "data": {
125820
+ * "id": "eeeeeeee-0000-4000-8000-000000000002",
125821
+ * "tenant_id": "a1a1a1a1-0000-4000-8000-000000000001",
125822
+ * "conversation_id": "bbbbbbbb-0000-4000-8000-000000000001",
125823
+ * "content": "Hola Rodrigo, te confirmo la visita del jueves a las 10:00.",
125824
+ * "type": "text",
125825
+ * "sender_role": "assistant",
125826
+ * "sender_type": "api_key",
125827
+ * "sender_id": "c1c1c1c1-0000-4000-8000-000000000001",
125828
+ * "correlation_id": null,
125829
+ * "external_message_id": null,
125830
+ * "media_urls": null,
125831
+ * "media_sensitivity": null,
125832
+ * "media_processing_state": null,
125833
+ * "media_expires_at": null,
125834
+ * "derived_context_expires_at": null,
125835
+ * "metadata": null,
125836
+ * "tool_calls": null,
125837
+ * "tool_call_id": null,
125838
+ * "delivery_status": "sent",
125839
+ * "delivery_error": null,
125840
+ * "delivery_attempt": 1,
125841
+ * "next_attempt_at": null,
125842
+ * "delivered_at": null,
125843
+ * "read_at": null,
125844
+ * "author": {
125845
+ * "kind": "api_key",
125846
+ * "id": "c1c1c1c1-0000-4000-8000-000000000001",
125847
+ * "name": "CRM propio"
125848
+ * },
125849
+ * "created_at": "2026-09-22T11:08:10.882Z",
125850
+ * "updated_at": "2026-09-22T11:08:10.882Z"
125851
+ * }
125852
+ * }
125853
+ */
125854
+ "application/json": {
125855
+ data?: unknown;
125856
+ };
125857
+ };
125858
+ };
125859
+ /** @description Pending approval. A connected app that already wrote to 3 distinct contacts in the last 10 minutes does not write to a new one directly: the message is parked in the approval queue («vía <app>») and goes out when a member approves it. `data.message` is Spanish, for the app to relay to its person. */
125860
+ 202: {
125861
+ headers: {
125862
+ [name: string]: unknown;
125863
+ };
125864
+ content: {
125865
+ "application/json": components["schemas"]["PendingApproval"];
125866
+ };
125867
+ };
125868
+ /** @description Validation error */
125869
+ 400: {
125870
+ headers: {
125871
+ [name: string]: unknown;
125872
+ };
125873
+ content: {
125874
+ "application/json": components["schemas"]["Error"];
125875
+ };
125876
+ };
125877
+ /** @description Unauthorized */
125878
+ 401: {
125879
+ headers: {
125880
+ [name: string]: unknown;
125881
+ };
125882
+ content: {
125883
+ "application/json": components["schemas"]["Error"];
125884
+ };
125885
+ };
125886
+ /** @description Forbidden */
125887
+ 403: {
125888
+ headers: {
125889
+ [name: string]: unknown;
125890
+ };
125891
+ content: {
125892
+ "application/json": components["schemas"]["Error"];
125893
+ };
125894
+ };
125895
+ /** @description Not found */
125896
+ 404: {
125897
+ headers: {
125898
+ [name: string]: unknown;
125899
+ };
125900
+ content: {
125901
+ "application/json": components["schemas"]["Error"];
125902
+ };
125903
+ };
125904
+ /** @description `OUTBOUND_WARNING` — an Advertencia de envío (quiet hours, a thread a member is handling, a degraded number, loop protection). Nothing was sent. Resend the same request with `acknowledge` naming every code in `error.reasons` to send it anyway; the acknowledgment is recorded. (Also `IDEMPOTENCY_KEY_CONFLICT` on an Idempotency-Key reuse.) */
125905
+ 409: {
125906
+ headers: {
125907
+ [name: string]: unknown;
125908
+ };
125909
+ content: {
125910
+ "application/json": components["schemas"]["OutboundVerdictError"];
125911
+ };
125912
+ };
125913
+ /** @description `OUTBOUND_BLOCKED` — a Bloqueo de envío: an opted-out contact (a single free-text reply to a customer who wrote in again after THEIR OWN opt-out passes inside the WhatsApp / Instagram / Messenger 24-hour window, or in the same email thread; a block your team set or a spam complaint still refuses), an active hold, a closed WhatsApp 24-hour window with no template, a template Meta will reject, no channel identity, a disconnected or red account. Never overridable; `error.hint` says what to do instead. */
125914
+ 422: {
125915
+ headers: {
125916
+ [name: string]: unknown;
125917
+ };
125918
+ content: {
125919
+ "application/json": components["schemas"]["OutboundVerdictError"];
125920
+ };
125921
+ };
125922
+ /** @description Rate limited */
125923
+ 429: {
125924
+ headers: {
125925
+ [name: string]: unknown;
125926
+ };
125927
+ content: {
125928
+ "application/json": components["schemas"]["Error"];
125929
+ };
125930
+ };
125931
+ };
125932
+ };
125933
+ delete?: never;
125934
+ options?: never;
125935
+ head?: never;
125936
+ patch?: never;
125937
+ trace?: never;
125938
+ };
125939
+ "/conversations/{id}/voice-note": {
125940
+ parameters: {
125941
+ query?: never;
125942
+ header?: never;
125943
+ path?: never;
125944
+ cookie?: never;
125945
+ };
125946
+ get?: never;
125947
+ put?: never;
125948
+ /**
125949
+ * Send a typed line as a voice note in the agent’s voice
125950
+ * @description The teammate types; Vitrina speaks it in the AI agent’s configured voice (`behavior_policies.voice_note`, published setting) so the conversation keeps one voice whoever answers. Same pipeline as the agent’s own notes: numbers, prices and times are spoken as words, the Whisper check must hear every number and model, and the characters count against the workspace’s daily cap (`GET /ai-agents/{id}/voice-note/usage`). Sent as a WhatsApp voice note (OGG/Opus) or an Instagram audio (M4A), stored as an `audio` message authored by the caller, with the typed text as its transcript (`metadata.attachment_context`; no speech-to-text).
125951
+ *
125952
+ * Whose voice: `ai_agent_id`, else the agent that answers this conversation (origin agent, then the channel’s agent, then the workspace default).
125953
+ *
125954
+ * **A refusal is 200 with `ok: false`** and nothing is sent: `code` is one of `not_configured` (voice notes off or no voice chosen), `invalid_text` (`reason`: empty | too_long | phone_or_rut), `cap_reached`, `check_failed` (with `check`; characters were spent), `provider_error`, `channel_unsupported` (only WhatsApp and Instagram carry voice notes), `agent_not_found`, `transcode_failed`, `too_large`, `no_public_url`. Send the text instead. A channel rejection is the provider error, as on `POST /conversations/{id}/voice`.
125955
+ *
125956
+ * Requires `messages:send` in addition to `conversations:write`. Sent by an API key, a personal token or a connected app, it goes through the política de envíos first — 422 `OUTBOUND_BLOCKED`, 409 `OUTBOUND_WARNING` (resend with `acknowledge`) or, for a connected app past its fan-out limit, 202 `pending_approval`. A member in the UI is not checked.
125957
+ */
125958
+ post: {
125959
+ parameters: {
125960
+ query?: never;
125961
+ header?: {
125962
+ /** @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. */
125963
+ "Idempotency-Key"?: string;
125964
+ };
125965
+ path: {
125966
+ id: string;
125967
+ };
125968
+ cookie?: never;
125969
+ };
125970
+ requestBody?: {
125971
+ content: {
125972
+ /**
125973
+ * @example {
125974
+ * "text": "Te lo dejo en $830.000, lo retiras hoy hasta las 19:00 hrs."
125975
+ * }
125976
+ */
125977
+ "application/json": {
125978
+ /** @description The line the teammate typed (<= 800 characters once trimmed; numbers, prices and times are spoken as words). Becomes the note’s transcript. */
125979
+ text: string;
125980
+ /**
125981
+ * Format: uuid
125982
+ * @description Whose voice. Defaults to the agent that answers this conversation (origin agent, then the channel’s agent, then the workspace default).
125983
+ */
125984
+ ai_agent_id?: string;
125985
+ /** @description Advertencia de envío codes to go ahead over (API keys / apps only), as on `POST /conversations/{id}/messages`. */
125986
+ acknowledge?: string[];
125987
+ };
125988
+ };
125989
+ };
125990
+ responses: {
125991
+ /** @description Refused: `ok: false` with a `code`; nothing was sent. */
125992
+ 200: {
125993
+ headers: {
125994
+ [name: string]: unknown;
125995
+ };
125996
+ content: {
125997
+ /**
125998
+ * @example {
125999
+ * "data": {
126000
+ * "ok": false,
126001
+ * "code": "not_configured",
126002
+ * "message": "Voice notes are off for this agent.",
126003
+ * "ai_agent_id": "6f1c2a9e-3b7d-4c55-9a51-2d8e0b7c4f10",
126004
+ * "usage": {
126005
+ * "day": "2026-10-28",
126006
+ * "characters_today": 412,
126007
+ * "daily_cap": 10000,
126008
+ * "remaining": 9588
126009
+ * }
126010
+ * }
126011
+ * }
126012
+ */
126013
+ "application/json": {
126014
+ data: {
126015
+ ok: boolean;
126016
+ /** @description The stored `audio` message, authored by the teammate; `metadata.attachment_context` holds the transcript. */
126017
+ sent_message?: {
126018
+ [key: string]: unknown;
126019
+ };
126020
+ /** @description The typed text, stored as the note’s transcript. */
126021
+ transcript?: string;
126022
+ duration_seconds?: number;
126023
+ /** @description The channel did not confirm delivery; the row is stored. Never resend. */
126024
+ outcome_unknown?: boolean;
126025
+ /** @description Characters sent to TTS (counted against the daily cap). */
126026
+ characters?: number;
126027
+ /** @description Whose voice spoke. */
126028
+ ai_agent_id?: string | null;
126029
+ /** @enum {string} */
126030
+ code?: "check_failed" | "cap_reached" | "not_configured" | "provider_error" | "invalid_text" | "agent_not_found" | "channel_unsupported" | "source_unavailable" | "too_large" | "transcode_failed" | "no_public_url" | "delivery_failed";
126031
+ /** @description `invalid_text`: empty | too_long | phone_or_rut. `cap_reached`: cap | counter_unavailable. `provider_error`: elevenlabs… | whisper. */
126032
+ reason?: string;
126033
+ /** @description Why it was refused (English). */
126034
+ message?: string;
126035
+ check?: {
126036
+ passed: boolean;
126037
+ /** @description What Whisper heard. */
126038
+ heard: string;
126039
+ word_error_rate: number;
126040
+ mismatches: {
126041
+ original: string;
126042
+ expected: string;
126043
+ }[];
126044
+ };
126045
+ usage?: {
126046
+ /** @description UTC day, YYYY-MM-DD. */
126047
+ day: string;
126048
+ characters_today: number;
126049
+ daily_cap: number;
126050
+ remaining: number;
126051
+ };
126052
+ };
126053
+ };
126054
+ };
126055
+ };
126056
+ /** @description Sent: the stored audio message and the transcript. */
126057
+ 201: {
126058
+ headers: {
126059
+ [name: string]: unknown;
126060
+ };
126061
+ content: {
126062
+ /**
126063
+ * @example {
126064
+ * "data": {
126065
+ * "ok": true,
126066
+ * "sent_message": {
126067
+ * "id": "eeeeeeee-0000-4000-8000-000000000002",
126068
+ * "tenant_id": "a1a1a1a1-0000-4000-8000-000000000001",
126069
+ * "conversation_id": "bbbbbbbb-0000-4000-8000-000000000001",
126070
+ * "content": "Hola Rodrigo, te confirmo la visita del jueves a las 10:00.",
126071
+ * "type": "text",
126072
+ * "sender_role": "assistant",
126073
+ * "sender_type": "api_key",
126074
+ * "sender_id": "c1c1c1c1-0000-4000-8000-000000000001",
126075
+ * "correlation_id": null,
126076
+ * "external_message_id": null,
126077
+ * "media_urls": null,
126078
+ * "media_sensitivity": null,
126079
+ * "media_processing_state": null,
126080
+ * "media_expires_at": null,
126081
+ * "derived_context_expires_at": null,
126082
+ * "metadata": null,
126083
+ * "tool_calls": null,
126084
+ * "tool_call_id": null,
126085
+ * "delivery_status": "sent",
126086
+ * "delivery_error": null,
126087
+ * "delivery_attempt": 1,
126088
+ * "next_attempt_at": null,
126089
+ * "delivered_at": null,
126090
+ * "read_at": null,
126091
+ * "author": {
126092
+ * "kind": "api_key",
126093
+ * "id": "c1c1c1c1-0000-4000-8000-000000000001",
126094
+ * "name": "CRM propio"
126095
+ * },
126096
+ * "created_at": "2026-09-22T11:08:10.882Z",
126097
+ * "updated_at": "2026-09-22T11:08:10.882Z"
126098
+ * },
126099
+ * "transcript": "Te lo dejo en $830.000, lo retiras hoy hasta las 19:00 hrs.",
126100
+ * "duration_seconds": 5.4,
126101
+ * "outcome_unknown": false,
126102
+ * "characters": 112,
126103
+ * "ai_agent_id": "6f1c2a9e-3b7d-4c55-9a51-2d8e0b7c4f10",
126104
+ * "usage": {
126105
+ * "day": "2026-10-28",
126106
+ * "characters_today": 524,
126107
+ * "daily_cap": 10000,
126108
+ * "remaining": 9476
126109
+ * }
126110
+ * }
126111
+ * }
126112
+ */
126113
+ "application/json": {
126114
+ data: {
126115
+ ok: boolean;
126116
+ /** @description The stored `audio` message, authored by the teammate; `metadata.attachment_context` holds the transcript. */
126117
+ sent_message?: {
126118
+ [key: string]: unknown;
126119
+ };
126120
+ /** @description The typed text, stored as the note’s transcript. */
126121
+ transcript?: string;
126122
+ duration_seconds?: number;
126123
+ /** @description The channel did not confirm delivery; the row is stored. Never resend. */
126124
+ outcome_unknown?: boolean;
126125
+ /** @description Characters sent to TTS (counted against the daily cap). */
126126
+ characters?: number;
126127
+ /** @description Whose voice spoke. */
126128
+ ai_agent_id?: string | null;
126129
+ /** @enum {string} */
126130
+ code?: "check_failed" | "cap_reached" | "not_configured" | "provider_error" | "invalid_text" | "agent_not_found" | "channel_unsupported" | "source_unavailable" | "too_large" | "transcode_failed" | "no_public_url" | "delivery_failed";
126131
+ /** @description `invalid_text`: empty | too_long | phone_or_rut. `cap_reached`: cap | counter_unavailable. `provider_error`: elevenlabs… | whisper. */
126132
+ reason?: string;
126133
+ /** @description Why it was refused (English). */
126134
+ message?: string;
126135
+ check?: {
126136
+ passed: boolean;
126137
+ /** @description What Whisper heard. */
126138
+ heard: string;
126139
+ word_error_rate: number;
126140
+ mismatches: {
126141
+ original: string;
126142
+ expected: string;
126143
+ }[];
126144
+ };
126145
+ usage?: {
126146
+ /** @description UTC day, YYYY-MM-DD. */
126147
+ day: string;
126148
+ characters_today: number;
126149
+ daily_cap: number;
126150
+ remaining: number;
126151
+ };
126152
+ };
126153
+ };
126154
+ };
126155
+ };
126156
+ /** @description Pending approval. A connected app that already wrote to 3 distinct contacts in the last 10 minutes does not write to a new one directly: the message is parked in the approval queue («vía <app>») and goes out when a member approves it. `data.message` is Spanish, for the app to relay to its person. */
126157
+ 202: {
126158
+ headers: {
126159
+ [name: string]: unknown;
126160
+ };
126161
+ content: {
126162
+ "application/json": components["schemas"]["PendingApproval"];
126163
+ };
126164
+ };
126165
+ /** @description Validation error */
126166
+ 400: {
126167
+ headers: {
126168
+ [name: string]: unknown;
126169
+ };
126170
+ content: {
126171
+ "application/json": components["schemas"]["Error"];
126172
+ };
126173
+ };
126174
+ /** @description Unauthorized */
126175
+ 401: {
126176
+ headers: {
126177
+ [name: string]: unknown;
126178
+ };
126179
+ content: {
126180
+ "application/json": components["schemas"]["Error"];
126181
+ };
126182
+ };
126183
+ /** @description Forbidden */
126184
+ 403: {
126185
+ headers: {
126186
+ [name: string]: unknown;
126187
+ };
126188
+ content: {
126189
+ "application/json": components["schemas"]["Error"];
126190
+ };
126191
+ };
126192
+ /** @description Not found */
126193
+ 404: {
126194
+ headers: {
126195
+ [name: string]: unknown;
126196
+ };
126197
+ content: {
126198
+ "application/json": components["schemas"]["Error"];
126199
+ };
126200
+ };
126201
+ /** @description `OUTBOUND_WARNING` — an Advertencia de envío (quiet hours, a thread a member is handling, a degraded number, loop protection). Nothing was sent. Resend the same request with `acknowledge` naming every code in `error.reasons` to send it anyway; the acknowledgment is recorded. (Also `IDEMPOTENCY_KEY_CONFLICT` on an Idempotency-Key reuse.) */
126202
+ 409: {
126203
+ headers: {
126204
+ [name: string]: unknown;
126205
+ };
126206
+ content: {
126207
+ "application/json": components["schemas"]["OutboundVerdictError"];
126208
+ };
126209
+ };
126210
+ /** @description `OUTBOUND_BLOCKED` — a Bloqueo de envío: an opted-out contact (a single free-text reply to a customer who wrote in again after THEIR OWN opt-out passes inside the WhatsApp / Instagram / Messenger 24-hour window, or in the same email thread; a block your team set or a spam complaint still refuses), an active hold, a closed WhatsApp 24-hour window with no template, a template Meta will reject, no channel identity, a disconnected or red account. Never overridable; `error.hint` says what to do instead. */
126211
+ 422: {
126212
+ headers: {
126213
+ [name: string]: unknown;
126214
+ };
126215
+ content: {
126216
+ "application/json": components["schemas"]["OutboundVerdictError"];
126217
+ };
126218
+ };
126219
+ /** @description Rate limited */
126220
+ 429: {
126221
+ headers: {
126222
+ [name: string]: unknown;
126223
+ };
126224
+ content: {
126225
+ "application/json": components["schemas"]["Error"];
126226
+ };
126227
+ };
126228
+ };
126229
+ };
126230
+ delete?: never;
126231
+ options?: never;
126232
+ head?: never;
126233
+ patch?: never;
126234
+ trace?: never;
126235
+ };
125757
126236
  "/conversations/{id}/transcribe": {
125758
126237
  parameters: {
125759
126238
  query?: never;
@@ -171992,7 +172471,7 @@ interface paths {
171992
172471
  put?: never;
171993
172472
  /**
171994
172473
  * Check a Lanzamiento before creating it
171995
- * @description Everything the wizard shows before the dealer presses «Crear»: the budget split per lane and per ad set, the ad account's daily spending limit and a warning when the total exceeds it (limit_status unknown means Meta could not be read: never treat it as 0), the Facebook Pages and the dataset the ads will use, the WhatsApp number, the default geo (the dealer's region, people living in it) and every problem that would refuse the create. Reads only; creates nothing.
172474
+ * @description Everything the wizard shows before the dealer presses «Crear»: the budget split per lane and per ad set, the ad account's daily spending limit and a warning when the total exceeds it (limit_status unknown means Meta could not be read: never treat it as 0), the Facebook Pages and the dataset the ads will use, the WhatsApp number, the default geo (the dealer's region: people who live in it or are regularly there) and every problem that would refuse the create. Reads only; creates nothing.
171996
172475
  */
171997
172476
  post: {
171998
172477
  parameters: {
package/dist/index.d.ts CHANGED
@@ -2308,10 +2308,10 @@ interface paths {
2308
2308
  * "enabled": false,
2309
2309
  * "voice_id": null,
2310
2310
  * "voice_settings": {
2311
- * "stability": 0.9,
2312
- * "similarity_boost": 0.6,
2313
- * "speed": 0.95,
2314
- * "style": 0.6,
2311
+ * "stability": 0.5,
2312
+ * "similarity_boost": 0.75,
2313
+ * "speed": 1,
2314
+ * "style": 0,
2315
2315
  * "use_speaker_boost": true
2316
2316
  * },
2317
2317
  * "lexicon": []
@@ -117549,6 +117549,8 @@ interface paths {
117549
117549
  *
117550
117550
  * THE CARD RECARGO IS RESOLVED SERVER-SIDE. On a `tarjeta_debito` / `tarjeta_credito` payment the workspace’s configured rate for THAT card type (`tenant.settings.card_fees` — débito ≠ crédito) is applied and FROZEN on the row as `card_fee_bps` + `card_surcharge_clp` + `card_surcharge_source: "calculado"`, and the response carries all three. Send neither field and that is what you get; send `card_fee_bps` to override the RATE for one swipe (`0` is a rate and means a $0 recargo, never "unset"); send `card_surcharge_clp` to override the FIGURE, which freezes `"ajustado"`. A workspace with no rate configured for that card type — and the legacy `tarjeta` member, whose card type nobody recorded — records NO recargo at all, never a $0 one. ⚠ THE RECARGO IS WHAT THE CUSTOMER PAYS ON TOP: it is NOT part of `amount_clp` and is allocated to nothing.
117551
117551
  *
117552
+ * SAY WHAT SALE IT WAS (`sale`, optional). A back office that records one sale per call sends `sale: { ref, place?, items? }`: `ref` is the sale’s id in YOUR system (two payments with the same `ref` are ONE sale, a deposit and its balance; different refs are different sales even minutes apart); `place: "store"` marks a counter sale whatever the instrument, so a transfer taken at the till is still a store sale for ad reporting; `items` (`[{ external_id, quantity?, unit_price_clp? }]`, `external_id` = your stable item id) is what was sold, sent on to the ad platforms as the Purchase’s `content_ids` / `contents`. Nothing else reads it.
117553
+ *
117552
117554
  * ⚠ `Idempotency-Key` IS STORED ON THE ROW, not merely cached: a repeat returns **200** with the existing payment and `meta.replayed: true` instead of 409ing, because a receptionist who clicked twice asked one question. A first write answers 201. 409 when the split over-allocates the payment (`error.details.unallocated_clp` says what was left), when the cobro is closed, or when it belongs to somebody else.
117553
117555
  */
117554
117556
  post: {
@@ -117593,6 +117595,16 @@ interface paths {
117593
117595
  account_number?: string | null;
117594
117596
  document_number?: string | null;
117595
117597
  note?: string | null;
117598
+ sale?: {
117599
+ ref: string;
117600
+ /** @enum {string} */
117601
+ place?: "store" | "online";
117602
+ items?: {
117603
+ external_id: string;
117604
+ quantity?: number;
117605
+ unit_price_clp?: number;
117606
+ }[];
117607
+ } | null;
117596
117608
  card_fee_bps?: number | null;
117597
117609
  card_surcharge_clp?: number | null;
117598
117610
  /** Format: uuid */
@@ -125754,6 +125766,473 @@ interface paths {
125754
125766
  patch?: never;
125755
125767
  trace?: never;
125756
125768
  };
125769
+ "/conversations/{id}/voice-clips/{clipId}/send": {
125770
+ parameters: {
125771
+ query?: never;
125772
+ header?: never;
125773
+ path?: never;
125774
+ cookie?: never;
125775
+ };
125776
+ get?: never;
125777
+ put?: never;
125778
+ /**
125779
+ * Send a library voice clip to the customer
125780
+ * @description Sends one clip of the workspace «Clip de voz» library (`GET /voice-clips`) into the conversation as a voice note, as the caller: OGG/Opus with the push-to-talk flag on WhatsApp, AAC by public link on Instagram. The clip's transcript is stored on the message row. Everything `POST /conversations/{id}/voice` checks applies — the reply rail, the política de envíos, the Instagram/Messenger 7-day HUMAN_AGENT window and the provider's own refusal.
125781
+ *
125782
+ * Refused with 409 `CONFLICT` and `details.code`: `VOICE_CLIP_EXPIRED` (the clip is past `expires_at`; nothing is sent) or `VOICE_NOTE_UNSUPPORTED` (the channel cannot carry audio — email, web chat, Messenger, Marketplace; `details.text` holds the clip's words, or null, so the caller can offer them as a text reply; nothing is sent). Another workspace's clip is 404.
125783
+ *
125784
+ * Needs `macros:read` (the library) as well as `conversations:write` and `messages:send`.
125785
+ *
125786
+ * Requires `messages:send` in addition to `conversations:write`. Sent by an API key, a personal token or a connected app, it goes through the política de envíos first — 422 `OUTBOUND_BLOCKED`, 409 `OUTBOUND_WARNING` (resend with `acknowledge`) or, for a connected app past its fan-out limit, 202 `pending_approval`. A member in the UI is not checked.
125787
+ */
125788
+ post: {
125789
+ parameters: {
125790
+ query?: never;
125791
+ header?: {
125792
+ /** @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. */
125793
+ "Idempotency-Key"?: string;
125794
+ };
125795
+ path: {
125796
+ id: string;
125797
+ clipId: string;
125798
+ };
125799
+ cookie?: never;
125800
+ };
125801
+ requestBody?: {
125802
+ content: {
125803
+ /** @example {} */
125804
+ "application/json": {
125805
+ /** @description Advertencia de envío codes to go ahead over — every code from a 409 `OUTBOUND_WARNING` response's `reasons`, e.g. `["quiet_hours"]`. Recorded in the audit log and the outbound ledger. Has no effect on a Bloqueo (422 `OUTBOUND_BLOCKED`). */
125806
+ acknowledge?: string[];
125807
+ };
125808
+ };
125809
+ };
125810
+ responses: {
125811
+ /** @description The persisted audio message */
125812
+ 201: {
125813
+ headers: {
125814
+ [name: string]: unknown;
125815
+ };
125816
+ content: {
125817
+ /**
125818
+ * @example {
125819
+ * "data": {
125820
+ * "id": "eeeeeeee-0000-4000-8000-000000000002",
125821
+ * "tenant_id": "a1a1a1a1-0000-4000-8000-000000000001",
125822
+ * "conversation_id": "bbbbbbbb-0000-4000-8000-000000000001",
125823
+ * "content": "Hola Rodrigo, te confirmo la visita del jueves a las 10:00.",
125824
+ * "type": "text",
125825
+ * "sender_role": "assistant",
125826
+ * "sender_type": "api_key",
125827
+ * "sender_id": "c1c1c1c1-0000-4000-8000-000000000001",
125828
+ * "correlation_id": null,
125829
+ * "external_message_id": null,
125830
+ * "media_urls": null,
125831
+ * "media_sensitivity": null,
125832
+ * "media_processing_state": null,
125833
+ * "media_expires_at": null,
125834
+ * "derived_context_expires_at": null,
125835
+ * "metadata": null,
125836
+ * "tool_calls": null,
125837
+ * "tool_call_id": null,
125838
+ * "delivery_status": "sent",
125839
+ * "delivery_error": null,
125840
+ * "delivery_attempt": 1,
125841
+ * "next_attempt_at": null,
125842
+ * "delivered_at": null,
125843
+ * "read_at": null,
125844
+ * "author": {
125845
+ * "kind": "api_key",
125846
+ * "id": "c1c1c1c1-0000-4000-8000-000000000001",
125847
+ * "name": "CRM propio"
125848
+ * },
125849
+ * "created_at": "2026-09-22T11:08:10.882Z",
125850
+ * "updated_at": "2026-09-22T11:08:10.882Z"
125851
+ * }
125852
+ * }
125853
+ */
125854
+ "application/json": {
125855
+ data?: unknown;
125856
+ };
125857
+ };
125858
+ };
125859
+ /** @description Pending approval. A connected app that already wrote to 3 distinct contacts in the last 10 minutes does not write to a new one directly: the message is parked in the approval queue («vía <app>») and goes out when a member approves it. `data.message` is Spanish, for the app to relay to its person. */
125860
+ 202: {
125861
+ headers: {
125862
+ [name: string]: unknown;
125863
+ };
125864
+ content: {
125865
+ "application/json": components["schemas"]["PendingApproval"];
125866
+ };
125867
+ };
125868
+ /** @description Validation error */
125869
+ 400: {
125870
+ headers: {
125871
+ [name: string]: unknown;
125872
+ };
125873
+ content: {
125874
+ "application/json": components["schemas"]["Error"];
125875
+ };
125876
+ };
125877
+ /** @description Unauthorized */
125878
+ 401: {
125879
+ headers: {
125880
+ [name: string]: unknown;
125881
+ };
125882
+ content: {
125883
+ "application/json": components["schemas"]["Error"];
125884
+ };
125885
+ };
125886
+ /** @description Forbidden */
125887
+ 403: {
125888
+ headers: {
125889
+ [name: string]: unknown;
125890
+ };
125891
+ content: {
125892
+ "application/json": components["schemas"]["Error"];
125893
+ };
125894
+ };
125895
+ /** @description Not found */
125896
+ 404: {
125897
+ headers: {
125898
+ [name: string]: unknown;
125899
+ };
125900
+ content: {
125901
+ "application/json": components["schemas"]["Error"];
125902
+ };
125903
+ };
125904
+ /** @description `OUTBOUND_WARNING` — an Advertencia de envío (quiet hours, a thread a member is handling, a degraded number, loop protection). Nothing was sent. Resend the same request with `acknowledge` naming every code in `error.reasons` to send it anyway; the acknowledgment is recorded. (Also `IDEMPOTENCY_KEY_CONFLICT` on an Idempotency-Key reuse.) */
125905
+ 409: {
125906
+ headers: {
125907
+ [name: string]: unknown;
125908
+ };
125909
+ content: {
125910
+ "application/json": components["schemas"]["OutboundVerdictError"];
125911
+ };
125912
+ };
125913
+ /** @description `OUTBOUND_BLOCKED` — a Bloqueo de envío: an opted-out contact (a single free-text reply to a customer who wrote in again after THEIR OWN opt-out passes inside the WhatsApp / Instagram / Messenger 24-hour window, or in the same email thread; a block your team set or a spam complaint still refuses), an active hold, a closed WhatsApp 24-hour window with no template, a template Meta will reject, no channel identity, a disconnected or red account. Never overridable; `error.hint` says what to do instead. */
125914
+ 422: {
125915
+ headers: {
125916
+ [name: string]: unknown;
125917
+ };
125918
+ content: {
125919
+ "application/json": components["schemas"]["OutboundVerdictError"];
125920
+ };
125921
+ };
125922
+ /** @description Rate limited */
125923
+ 429: {
125924
+ headers: {
125925
+ [name: string]: unknown;
125926
+ };
125927
+ content: {
125928
+ "application/json": components["schemas"]["Error"];
125929
+ };
125930
+ };
125931
+ };
125932
+ };
125933
+ delete?: never;
125934
+ options?: never;
125935
+ head?: never;
125936
+ patch?: never;
125937
+ trace?: never;
125938
+ };
125939
+ "/conversations/{id}/voice-note": {
125940
+ parameters: {
125941
+ query?: never;
125942
+ header?: never;
125943
+ path?: never;
125944
+ cookie?: never;
125945
+ };
125946
+ get?: never;
125947
+ put?: never;
125948
+ /**
125949
+ * Send a typed line as a voice note in the agent’s voice
125950
+ * @description The teammate types; Vitrina speaks it in the AI agent’s configured voice (`behavior_policies.voice_note`, published setting) so the conversation keeps one voice whoever answers. Same pipeline as the agent’s own notes: numbers, prices and times are spoken as words, the Whisper check must hear every number and model, and the characters count against the workspace’s daily cap (`GET /ai-agents/{id}/voice-note/usage`). Sent as a WhatsApp voice note (OGG/Opus) or an Instagram audio (M4A), stored as an `audio` message authored by the caller, with the typed text as its transcript (`metadata.attachment_context`; no speech-to-text).
125951
+ *
125952
+ * Whose voice: `ai_agent_id`, else the agent that answers this conversation (origin agent, then the channel’s agent, then the workspace default).
125953
+ *
125954
+ * **A refusal is 200 with `ok: false`** and nothing is sent: `code` is one of `not_configured` (voice notes off or no voice chosen), `invalid_text` (`reason`: empty | too_long | phone_or_rut), `cap_reached`, `check_failed` (with `check`; characters were spent), `provider_error`, `channel_unsupported` (only WhatsApp and Instagram carry voice notes), `agent_not_found`, `transcode_failed`, `too_large`, `no_public_url`. Send the text instead. A channel rejection is the provider error, as on `POST /conversations/{id}/voice`.
125955
+ *
125956
+ * Requires `messages:send` in addition to `conversations:write`. Sent by an API key, a personal token or a connected app, it goes through the política de envíos first — 422 `OUTBOUND_BLOCKED`, 409 `OUTBOUND_WARNING` (resend with `acknowledge`) or, for a connected app past its fan-out limit, 202 `pending_approval`. A member in the UI is not checked.
125957
+ */
125958
+ post: {
125959
+ parameters: {
125960
+ query?: never;
125961
+ header?: {
125962
+ /** @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. */
125963
+ "Idempotency-Key"?: string;
125964
+ };
125965
+ path: {
125966
+ id: string;
125967
+ };
125968
+ cookie?: never;
125969
+ };
125970
+ requestBody?: {
125971
+ content: {
125972
+ /**
125973
+ * @example {
125974
+ * "text": "Te lo dejo en $830.000, lo retiras hoy hasta las 19:00 hrs."
125975
+ * }
125976
+ */
125977
+ "application/json": {
125978
+ /** @description The line the teammate typed (<= 800 characters once trimmed; numbers, prices and times are spoken as words). Becomes the note’s transcript. */
125979
+ text: string;
125980
+ /**
125981
+ * Format: uuid
125982
+ * @description Whose voice. Defaults to the agent that answers this conversation (origin agent, then the channel’s agent, then the workspace default).
125983
+ */
125984
+ ai_agent_id?: string;
125985
+ /** @description Advertencia de envío codes to go ahead over (API keys / apps only), as on `POST /conversations/{id}/messages`. */
125986
+ acknowledge?: string[];
125987
+ };
125988
+ };
125989
+ };
125990
+ responses: {
125991
+ /** @description Refused: `ok: false` with a `code`; nothing was sent. */
125992
+ 200: {
125993
+ headers: {
125994
+ [name: string]: unknown;
125995
+ };
125996
+ content: {
125997
+ /**
125998
+ * @example {
125999
+ * "data": {
126000
+ * "ok": false,
126001
+ * "code": "not_configured",
126002
+ * "message": "Voice notes are off for this agent.",
126003
+ * "ai_agent_id": "6f1c2a9e-3b7d-4c55-9a51-2d8e0b7c4f10",
126004
+ * "usage": {
126005
+ * "day": "2026-10-28",
126006
+ * "characters_today": 412,
126007
+ * "daily_cap": 10000,
126008
+ * "remaining": 9588
126009
+ * }
126010
+ * }
126011
+ * }
126012
+ */
126013
+ "application/json": {
126014
+ data: {
126015
+ ok: boolean;
126016
+ /** @description The stored `audio` message, authored by the teammate; `metadata.attachment_context` holds the transcript. */
126017
+ sent_message?: {
126018
+ [key: string]: unknown;
126019
+ };
126020
+ /** @description The typed text, stored as the note’s transcript. */
126021
+ transcript?: string;
126022
+ duration_seconds?: number;
126023
+ /** @description The channel did not confirm delivery; the row is stored. Never resend. */
126024
+ outcome_unknown?: boolean;
126025
+ /** @description Characters sent to TTS (counted against the daily cap). */
126026
+ characters?: number;
126027
+ /** @description Whose voice spoke. */
126028
+ ai_agent_id?: string | null;
126029
+ /** @enum {string} */
126030
+ code?: "check_failed" | "cap_reached" | "not_configured" | "provider_error" | "invalid_text" | "agent_not_found" | "channel_unsupported" | "source_unavailable" | "too_large" | "transcode_failed" | "no_public_url" | "delivery_failed";
126031
+ /** @description `invalid_text`: empty | too_long | phone_or_rut. `cap_reached`: cap | counter_unavailable. `provider_error`: elevenlabs… | whisper. */
126032
+ reason?: string;
126033
+ /** @description Why it was refused (English). */
126034
+ message?: string;
126035
+ check?: {
126036
+ passed: boolean;
126037
+ /** @description What Whisper heard. */
126038
+ heard: string;
126039
+ word_error_rate: number;
126040
+ mismatches: {
126041
+ original: string;
126042
+ expected: string;
126043
+ }[];
126044
+ };
126045
+ usage?: {
126046
+ /** @description UTC day, YYYY-MM-DD. */
126047
+ day: string;
126048
+ characters_today: number;
126049
+ daily_cap: number;
126050
+ remaining: number;
126051
+ };
126052
+ };
126053
+ };
126054
+ };
126055
+ };
126056
+ /** @description Sent: the stored audio message and the transcript. */
126057
+ 201: {
126058
+ headers: {
126059
+ [name: string]: unknown;
126060
+ };
126061
+ content: {
126062
+ /**
126063
+ * @example {
126064
+ * "data": {
126065
+ * "ok": true,
126066
+ * "sent_message": {
126067
+ * "id": "eeeeeeee-0000-4000-8000-000000000002",
126068
+ * "tenant_id": "a1a1a1a1-0000-4000-8000-000000000001",
126069
+ * "conversation_id": "bbbbbbbb-0000-4000-8000-000000000001",
126070
+ * "content": "Hola Rodrigo, te confirmo la visita del jueves a las 10:00.",
126071
+ * "type": "text",
126072
+ * "sender_role": "assistant",
126073
+ * "sender_type": "api_key",
126074
+ * "sender_id": "c1c1c1c1-0000-4000-8000-000000000001",
126075
+ * "correlation_id": null,
126076
+ * "external_message_id": null,
126077
+ * "media_urls": null,
126078
+ * "media_sensitivity": null,
126079
+ * "media_processing_state": null,
126080
+ * "media_expires_at": null,
126081
+ * "derived_context_expires_at": null,
126082
+ * "metadata": null,
126083
+ * "tool_calls": null,
126084
+ * "tool_call_id": null,
126085
+ * "delivery_status": "sent",
126086
+ * "delivery_error": null,
126087
+ * "delivery_attempt": 1,
126088
+ * "next_attempt_at": null,
126089
+ * "delivered_at": null,
126090
+ * "read_at": null,
126091
+ * "author": {
126092
+ * "kind": "api_key",
126093
+ * "id": "c1c1c1c1-0000-4000-8000-000000000001",
126094
+ * "name": "CRM propio"
126095
+ * },
126096
+ * "created_at": "2026-09-22T11:08:10.882Z",
126097
+ * "updated_at": "2026-09-22T11:08:10.882Z"
126098
+ * },
126099
+ * "transcript": "Te lo dejo en $830.000, lo retiras hoy hasta las 19:00 hrs.",
126100
+ * "duration_seconds": 5.4,
126101
+ * "outcome_unknown": false,
126102
+ * "characters": 112,
126103
+ * "ai_agent_id": "6f1c2a9e-3b7d-4c55-9a51-2d8e0b7c4f10",
126104
+ * "usage": {
126105
+ * "day": "2026-10-28",
126106
+ * "characters_today": 524,
126107
+ * "daily_cap": 10000,
126108
+ * "remaining": 9476
126109
+ * }
126110
+ * }
126111
+ * }
126112
+ */
126113
+ "application/json": {
126114
+ data: {
126115
+ ok: boolean;
126116
+ /** @description The stored `audio` message, authored by the teammate; `metadata.attachment_context` holds the transcript. */
126117
+ sent_message?: {
126118
+ [key: string]: unknown;
126119
+ };
126120
+ /** @description The typed text, stored as the note’s transcript. */
126121
+ transcript?: string;
126122
+ duration_seconds?: number;
126123
+ /** @description The channel did not confirm delivery; the row is stored. Never resend. */
126124
+ outcome_unknown?: boolean;
126125
+ /** @description Characters sent to TTS (counted against the daily cap). */
126126
+ characters?: number;
126127
+ /** @description Whose voice spoke. */
126128
+ ai_agent_id?: string | null;
126129
+ /** @enum {string} */
126130
+ code?: "check_failed" | "cap_reached" | "not_configured" | "provider_error" | "invalid_text" | "agent_not_found" | "channel_unsupported" | "source_unavailable" | "too_large" | "transcode_failed" | "no_public_url" | "delivery_failed";
126131
+ /** @description `invalid_text`: empty | too_long | phone_or_rut. `cap_reached`: cap | counter_unavailable. `provider_error`: elevenlabs… | whisper. */
126132
+ reason?: string;
126133
+ /** @description Why it was refused (English). */
126134
+ message?: string;
126135
+ check?: {
126136
+ passed: boolean;
126137
+ /** @description What Whisper heard. */
126138
+ heard: string;
126139
+ word_error_rate: number;
126140
+ mismatches: {
126141
+ original: string;
126142
+ expected: string;
126143
+ }[];
126144
+ };
126145
+ usage?: {
126146
+ /** @description UTC day, YYYY-MM-DD. */
126147
+ day: string;
126148
+ characters_today: number;
126149
+ daily_cap: number;
126150
+ remaining: number;
126151
+ };
126152
+ };
126153
+ };
126154
+ };
126155
+ };
126156
+ /** @description Pending approval. A connected app that already wrote to 3 distinct contacts in the last 10 minutes does not write to a new one directly: the message is parked in the approval queue («vía <app>») and goes out when a member approves it. `data.message` is Spanish, for the app to relay to its person. */
126157
+ 202: {
126158
+ headers: {
126159
+ [name: string]: unknown;
126160
+ };
126161
+ content: {
126162
+ "application/json": components["schemas"]["PendingApproval"];
126163
+ };
126164
+ };
126165
+ /** @description Validation error */
126166
+ 400: {
126167
+ headers: {
126168
+ [name: string]: unknown;
126169
+ };
126170
+ content: {
126171
+ "application/json": components["schemas"]["Error"];
126172
+ };
126173
+ };
126174
+ /** @description Unauthorized */
126175
+ 401: {
126176
+ headers: {
126177
+ [name: string]: unknown;
126178
+ };
126179
+ content: {
126180
+ "application/json": components["schemas"]["Error"];
126181
+ };
126182
+ };
126183
+ /** @description Forbidden */
126184
+ 403: {
126185
+ headers: {
126186
+ [name: string]: unknown;
126187
+ };
126188
+ content: {
126189
+ "application/json": components["schemas"]["Error"];
126190
+ };
126191
+ };
126192
+ /** @description Not found */
126193
+ 404: {
126194
+ headers: {
126195
+ [name: string]: unknown;
126196
+ };
126197
+ content: {
126198
+ "application/json": components["schemas"]["Error"];
126199
+ };
126200
+ };
126201
+ /** @description `OUTBOUND_WARNING` — an Advertencia de envío (quiet hours, a thread a member is handling, a degraded number, loop protection). Nothing was sent. Resend the same request with `acknowledge` naming every code in `error.reasons` to send it anyway; the acknowledgment is recorded. (Also `IDEMPOTENCY_KEY_CONFLICT` on an Idempotency-Key reuse.) */
126202
+ 409: {
126203
+ headers: {
126204
+ [name: string]: unknown;
126205
+ };
126206
+ content: {
126207
+ "application/json": components["schemas"]["OutboundVerdictError"];
126208
+ };
126209
+ };
126210
+ /** @description `OUTBOUND_BLOCKED` — a Bloqueo de envío: an opted-out contact (a single free-text reply to a customer who wrote in again after THEIR OWN opt-out passes inside the WhatsApp / Instagram / Messenger 24-hour window, or in the same email thread; a block your team set or a spam complaint still refuses), an active hold, a closed WhatsApp 24-hour window with no template, a template Meta will reject, no channel identity, a disconnected or red account. Never overridable; `error.hint` says what to do instead. */
126211
+ 422: {
126212
+ headers: {
126213
+ [name: string]: unknown;
126214
+ };
126215
+ content: {
126216
+ "application/json": components["schemas"]["OutboundVerdictError"];
126217
+ };
126218
+ };
126219
+ /** @description Rate limited */
126220
+ 429: {
126221
+ headers: {
126222
+ [name: string]: unknown;
126223
+ };
126224
+ content: {
126225
+ "application/json": components["schemas"]["Error"];
126226
+ };
126227
+ };
126228
+ };
126229
+ };
126230
+ delete?: never;
126231
+ options?: never;
126232
+ head?: never;
126233
+ patch?: never;
126234
+ trace?: never;
126235
+ };
125757
126236
  "/conversations/{id}/transcribe": {
125758
126237
  parameters: {
125759
126238
  query?: never;
@@ -171992,7 +172471,7 @@ interface paths {
171992
172471
  put?: never;
171993
172472
  /**
171994
172473
  * Check a Lanzamiento before creating it
171995
- * @description Everything the wizard shows before the dealer presses «Crear»: the budget split per lane and per ad set, the ad account's daily spending limit and a warning when the total exceeds it (limit_status unknown means Meta could not be read: never treat it as 0), the Facebook Pages and the dataset the ads will use, the WhatsApp number, the default geo (the dealer's region, people living in it) and every problem that would refuse the create. Reads only; creates nothing.
172474
+ * @description Everything the wizard shows before the dealer presses «Crear»: the budget split per lane and per ad set, the ad account's daily spending limit and a warning when the total exceeds it (limit_status unknown means Meta could not be read: never treat it as 0), the Facebook Pages and the dataset the ads will use, the WhatsApp number, the default geo (the dealer's region: people who live in it or are regularly there) and every problem that would refuse the create. Reads only; creates nothing.
171996
172475
  */
171997
172476
  post: {
171998
172477
  parameters: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "15.3.1",
3
+ "version": "15.4.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",