@vitrina/api 15.0.0 → 15.2.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 +1044 -9
- package/dist/index.d.ts +1044 -9
- package/package.json +1 -1
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)
|
|
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",
|
|
@@ -178552,6 +178827,764 @@ interface paths {
|
|
|
178552
178827
|
patch?: never;
|
|
178553
178828
|
trace?: never;
|
|
178554
178829
|
};
|
|
178830
|
+
"/voice-clips": {
|
|
178831
|
+
parameters: {
|
|
178832
|
+
query?: never;
|
|
178833
|
+
header?: never;
|
|
178834
|
+
path?: never;
|
|
178835
|
+
cookie?: never;
|
|
178836
|
+
};
|
|
178837
|
+
/**
|
|
178838
|
+
* List voice clips
|
|
178839
|
+
* @description Every clip in the workspace library, newest first, expired ones included and marked `expired: true`.
|
|
178840
|
+
*
|
|
178841
|
+
* With `live=true` the answer is only the clips that may be SENT now: not expired, and whose model filter is empty or names `model` (case- and whitespace-insensitive). Without `model`, only clips with no model filter qualify. `tag` (comma-separated) keeps clips carrying any of the tags.
|
|
178842
|
+
*/
|
|
178843
|
+
get: {
|
|
178844
|
+
parameters: {
|
|
178845
|
+
query?: {
|
|
178846
|
+
/** @description `true` = only the clips that may be sent now: not expired and admitted by `model`. */
|
|
178847
|
+
live?: "true" | "false";
|
|
178848
|
+
/** @description With `live=true`: the model under discussion. Without it only clips with no model filter qualify. */
|
|
178849
|
+
model?: string;
|
|
178850
|
+
/** @description With `live=true`: comma-separated tags; a clip qualifies when it carries any. */
|
|
178851
|
+
tag?: string;
|
|
178852
|
+
};
|
|
178853
|
+
header?: never;
|
|
178854
|
+
path?: never;
|
|
178855
|
+
cookie?: never;
|
|
178856
|
+
};
|
|
178857
|
+
requestBody?: never;
|
|
178858
|
+
responses: {
|
|
178859
|
+
/** @description Voice clips */
|
|
178860
|
+
200: {
|
|
178861
|
+
headers: {
|
|
178862
|
+
[name: string]: unknown;
|
|
178863
|
+
};
|
|
178864
|
+
content: {
|
|
178865
|
+
/**
|
|
178866
|
+
* @example [
|
|
178867
|
+
* {
|
|
178868
|
+
* "id": "6b0f3c1e-2a4d-4f7e-9b1a-0c2d3e4f5a6b",
|
|
178869
|
+
* "name": "Garantía 6 meses",
|
|
178870
|
+
* "tags": [
|
|
178871
|
+
* "garantia",
|
|
178872
|
+
* "cierre"
|
|
178873
|
+
* ],
|
|
178874
|
+
* "when_to_use": "Cuando el cliente pregunta por la garantía de un seminuevo.",
|
|
178875
|
+
* "expires_at": null,
|
|
178876
|
+
* "expired": false,
|
|
178877
|
+
* "models": [
|
|
178878
|
+
* "iPhone 13",
|
|
178879
|
+
* "iPhone 13 Pro",
|
|
178880
|
+
* "iPhone 14"
|
|
178881
|
+
* ],
|
|
178882
|
+
* "transcript": "Hola, te cuento que todos nuestros equipos tienen seis meses de garantía.",
|
|
178883
|
+
* "mime_type": "audio/ogg",
|
|
178884
|
+
* "byte_size": 48213,
|
|
178885
|
+
* "duration_ms": 12480,
|
|
178886
|
+
* "original_filename": "garantia.ogg",
|
|
178887
|
+
* "created_by": "2f1e0d9c-8b7a-4c6d-9e5f-1a2b3c4d5e6f",
|
|
178888
|
+
* "created_at": "2026-10-28T15:04:05.000Z",
|
|
178889
|
+
* "updated_at": "2026-10-28T15:04:05.000Z"
|
|
178890
|
+
* }
|
|
178891
|
+
* ]
|
|
178892
|
+
*/
|
|
178893
|
+
"application/json": {
|
|
178894
|
+
data?: unknown;
|
|
178895
|
+
meta?: {
|
|
178896
|
+
[key: string]: unknown;
|
|
178897
|
+
};
|
|
178898
|
+
};
|
|
178899
|
+
};
|
|
178900
|
+
};
|
|
178901
|
+
/** @description Validation error */
|
|
178902
|
+
400: {
|
|
178903
|
+
headers: {
|
|
178904
|
+
[name: string]: unknown;
|
|
178905
|
+
};
|
|
178906
|
+
content: {
|
|
178907
|
+
"application/json": components["schemas"]["Error"];
|
|
178908
|
+
};
|
|
178909
|
+
};
|
|
178910
|
+
/** @description Unauthorized */
|
|
178911
|
+
401: {
|
|
178912
|
+
headers: {
|
|
178913
|
+
[name: string]: unknown;
|
|
178914
|
+
};
|
|
178915
|
+
content: {
|
|
178916
|
+
"application/json": components["schemas"]["Error"];
|
|
178917
|
+
};
|
|
178918
|
+
};
|
|
178919
|
+
/** @description Forbidden */
|
|
178920
|
+
403: {
|
|
178921
|
+
headers: {
|
|
178922
|
+
[name: string]: unknown;
|
|
178923
|
+
};
|
|
178924
|
+
content: {
|
|
178925
|
+
"application/json": components["schemas"]["Error"];
|
|
178926
|
+
};
|
|
178927
|
+
};
|
|
178928
|
+
/** @description Not found */
|
|
178929
|
+
404: {
|
|
178930
|
+
headers: {
|
|
178931
|
+
[name: string]: unknown;
|
|
178932
|
+
};
|
|
178933
|
+
content: {
|
|
178934
|
+
"application/json": components["schemas"]["Error"];
|
|
178935
|
+
};
|
|
178936
|
+
};
|
|
178937
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
178938
|
+
409: {
|
|
178939
|
+
headers: {
|
|
178940
|
+
[name: string]: unknown;
|
|
178941
|
+
};
|
|
178942
|
+
content: {
|
|
178943
|
+
"application/json": components["schemas"]["Error"];
|
|
178944
|
+
};
|
|
178945
|
+
};
|
|
178946
|
+
/** @description Rate limited */
|
|
178947
|
+
429: {
|
|
178948
|
+
headers: {
|
|
178949
|
+
[name: string]: unknown;
|
|
178950
|
+
};
|
|
178951
|
+
content: {
|
|
178952
|
+
"application/json": components["schemas"]["Error"];
|
|
178953
|
+
};
|
|
178954
|
+
};
|
|
178955
|
+
};
|
|
178956
|
+
};
|
|
178957
|
+
put?: never;
|
|
178958
|
+
/**
|
|
178959
|
+
* Upload a voice clip
|
|
178960
|
+
* @description Uploads the audio (`file`: OGG/Opus, MP3, M4A/AAC, WAV, WebM or AMR, at most 16 MB; 415 for another type, 413 above the cap) with its details. The clip is transcribed on upload unless `transcript` is sent; when speech-to-text fails or hears nothing usable, `transcript` is null and can be filled with `PATCH`. `duration_ms` is measured from the audio. `name` defaults to the file name. Answers 201 with the clip.
|
|
178961
|
+
*
|
|
178962
|
+
* **Or a JSON body** (`application/json`) — what an MCP connector sends through `call_operation`, which cannot build multipart: `{ filename, content, content_encoding?, content_type? }` plus the operation's own form fields. `content` is UTF-8 text by default, or base64 when `content_encoding` is `"base64"` (images, PDF, audio, video). The same byte cap applies to the decoded bytes (413 above it); invalid base64 is a 400; the content type defaults from the filename extension.
|
|
178963
|
+
*/
|
|
178964
|
+
post: {
|
|
178965
|
+
parameters: {
|
|
178966
|
+
query?: never;
|
|
178967
|
+
header?: {
|
|
178968
|
+
/** @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. */
|
|
178969
|
+
"Idempotency-Key"?: string;
|
|
178970
|
+
};
|
|
178971
|
+
path?: never;
|
|
178972
|
+
cookie?: never;
|
|
178973
|
+
};
|
|
178974
|
+
requestBody?: {
|
|
178975
|
+
content: {
|
|
178976
|
+
/**
|
|
178977
|
+
* @example {
|
|
178978
|
+
* "file": "(binary audio part)",
|
|
178979
|
+
* "name": "Garantía 6 meses",
|
|
178980
|
+
* "tags": "garantia,cierre",
|
|
178981
|
+
* "when_to_use": "Cuando el cliente pregunta por la garantía."
|
|
178982
|
+
* }
|
|
178983
|
+
*/
|
|
178984
|
+
"multipart/form-data": {
|
|
178985
|
+
/** @description Defaults to the file name without its extension. */
|
|
178986
|
+
name?: string;
|
|
178987
|
+
/** @description Labels for finding the clip (stored lower-cased). Multipart: repeat the field, or send a comma-separated or JSON-array string. */
|
|
178988
|
+
tags?: string[];
|
|
178989
|
+
/** @description «Cuándo usarlo»: when this clip fits, for the team and the agent. */
|
|
178990
|
+
when_to_use?: string;
|
|
178991
|
+
/** Format: date-time */
|
|
178992
|
+
expires_at?: string | null;
|
|
178993
|
+
/** @description Model filter: the model names the clip applies to, spelled as in the catalog (`product.model`, e.g. "iPhone 13 Pro"). Empty = any model. Matched case- and whitespace-insensitively. */
|
|
178994
|
+
models?: string[];
|
|
178995
|
+
/** @description What the clip says. When given, speech-to-text is skipped. */
|
|
178996
|
+
transcript?: string;
|
|
178997
|
+
file?: unknown;
|
|
178998
|
+
};
|
|
178999
|
+
/**
|
|
179000
|
+
* @example {
|
|
179001
|
+
* "filename": "garantia.ogg",
|
|
179002
|
+
* "content": "T2dnUwACAAAAAAAAAAA…",
|
|
179003
|
+
* "content_encoding": "base64",
|
|
179004
|
+
* "name": "Garantía 6 meses",
|
|
179005
|
+
* "tags": [
|
|
179006
|
+
* "garantia",
|
|
179007
|
+
* "cierre"
|
|
179008
|
+
* ],
|
|
179009
|
+
* "when_to_use": "Cuando el cliente pregunta por la garantía.",
|
|
179010
|
+
* "models": [
|
|
179011
|
+
* "iPhone 13",
|
|
179012
|
+
* "iPhone 14"
|
|
179013
|
+
* ],
|
|
179014
|
+
* "expires_at": "2026-12-31T23:59:59-03:00"
|
|
179015
|
+
* }
|
|
179016
|
+
*/
|
|
179017
|
+
"application/json": {
|
|
179018
|
+
/** @description File name with extension; the content type defaults from it. */
|
|
179019
|
+
filename: string;
|
|
179020
|
+
/** @description The file. UTF-8 text by default; base64 when `content_encoding` is "base64" (images, PDF, audio, video). */
|
|
179021
|
+
content: string;
|
|
179022
|
+
/**
|
|
179023
|
+
* @description `utf8` (default) for text, `base64` for binary files.
|
|
179024
|
+
* @enum {string}
|
|
179025
|
+
*/
|
|
179026
|
+
content_encoding?: "utf8" | "base64";
|
|
179027
|
+
/** @description MIME type. Defaults from the extension (.png → image/png, …). */
|
|
179028
|
+
content_type?: string;
|
|
179029
|
+
/** @description Defaults to the file name without its extension. */
|
|
179030
|
+
name?: string;
|
|
179031
|
+
/** @description Labels for finding the clip (stored lower-cased). Multipart: repeat the field, or send a comma-separated or JSON-array string. */
|
|
179032
|
+
tags?: string[];
|
|
179033
|
+
/** @description «Cuándo usarlo»: when this clip fits, for the team and the agent. */
|
|
179034
|
+
when_to_use?: string;
|
|
179035
|
+
/** Format: date-time */
|
|
179036
|
+
expires_at?: string | null;
|
|
179037
|
+
/** @description Model filter: the model names the clip applies to, spelled as in the catalog (`product.model`, e.g. "iPhone 13 Pro"). Empty = any model. Matched case- and whitespace-insensitively. */
|
|
179038
|
+
models?: string[];
|
|
179039
|
+
/** @description What the clip says. When given, speech-to-text is skipped. */
|
|
179040
|
+
transcript?: string;
|
|
179041
|
+
};
|
|
179042
|
+
};
|
|
179043
|
+
};
|
|
179044
|
+
responses: {
|
|
179045
|
+
/** @description The created clip */
|
|
179046
|
+
201: {
|
|
179047
|
+
headers: {
|
|
179048
|
+
[name: string]: unknown;
|
|
179049
|
+
};
|
|
179050
|
+
content: {
|
|
179051
|
+
/**
|
|
179052
|
+
* @example {
|
|
179053
|
+
* "id": "6b0f3c1e-2a4d-4f7e-9b1a-0c2d3e4f5a6b",
|
|
179054
|
+
* "name": "Garantía 6 meses",
|
|
179055
|
+
* "tags": [
|
|
179056
|
+
* "garantia",
|
|
179057
|
+
* "cierre"
|
|
179058
|
+
* ],
|
|
179059
|
+
* "when_to_use": "Cuando el cliente pregunta por la garantía de un seminuevo.",
|
|
179060
|
+
* "expires_at": null,
|
|
179061
|
+
* "expired": false,
|
|
179062
|
+
* "models": [
|
|
179063
|
+
* "iPhone 13",
|
|
179064
|
+
* "iPhone 13 Pro",
|
|
179065
|
+
* "iPhone 14"
|
|
179066
|
+
* ],
|
|
179067
|
+
* "transcript": "Hola, te cuento que todos nuestros equipos tienen seis meses de garantía.",
|
|
179068
|
+
* "mime_type": "audio/ogg",
|
|
179069
|
+
* "byte_size": 48213,
|
|
179070
|
+
* "duration_ms": 12480,
|
|
179071
|
+
* "original_filename": "garantia.ogg",
|
|
179072
|
+
* "created_by": "2f1e0d9c-8b7a-4c6d-9e5f-1a2b3c4d5e6f",
|
|
179073
|
+
* "created_at": "2026-10-28T15:04:05.000Z",
|
|
179074
|
+
* "updated_at": "2026-10-28T15:04:05.000Z"
|
|
179075
|
+
* }
|
|
179076
|
+
*/
|
|
179077
|
+
"application/json": {
|
|
179078
|
+
data?: unknown;
|
|
179079
|
+
};
|
|
179080
|
+
};
|
|
179081
|
+
};
|
|
179082
|
+
/** @description Validation error */
|
|
179083
|
+
400: {
|
|
179084
|
+
headers: {
|
|
179085
|
+
[name: string]: unknown;
|
|
179086
|
+
};
|
|
179087
|
+
content: {
|
|
179088
|
+
"application/json": components["schemas"]["Error"];
|
|
179089
|
+
};
|
|
179090
|
+
};
|
|
179091
|
+
/** @description Unauthorized */
|
|
179092
|
+
401: {
|
|
179093
|
+
headers: {
|
|
179094
|
+
[name: string]: unknown;
|
|
179095
|
+
};
|
|
179096
|
+
content: {
|
|
179097
|
+
"application/json": components["schemas"]["Error"];
|
|
179098
|
+
};
|
|
179099
|
+
};
|
|
179100
|
+
/** @description Forbidden */
|
|
179101
|
+
403: {
|
|
179102
|
+
headers: {
|
|
179103
|
+
[name: string]: unknown;
|
|
179104
|
+
};
|
|
179105
|
+
content: {
|
|
179106
|
+
"application/json": components["schemas"]["Error"];
|
|
179107
|
+
};
|
|
179108
|
+
};
|
|
179109
|
+
/** @description Not found */
|
|
179110
|
+
404: {
|
|
179111
|
+
headers: {
|
|
179112
|
+
[name: string]: unknown;
|
|
179113
|
+
};
|
|
179114
|
+
content: {
|
|
179115
|
+
"application/json": components["schemas"]["Error"];
|
|
179116
|
+
};
|
|
179117
|
+
};
|
|
179118
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
179119
|
+
409: {
|
|
179120
|
+
headers: {
|
|
179121
|
+
[name: string]: unknown;
|
|
179122
|
+
};
|
|
179123
|
+
content: {
|
|
179124
|
+
"application/json": components["schemas"]["Error"];
|
|
179125
|
+
};
|
|
179126
|
+
};
|
|
179127
|
+
/** @description Rate limited */
|
|
179128
|
+
429: {
|
|
179129
|
+
headers: {
|
|
179130
|
+
[name: string]: unknown;
|
|
179131
|
+
};
|
|
179132
|
+
content: {
|
|
179133
|
+
"application/json": components["schemas"]["Error"];
|
|
179134
|
+
};
|
|
179135
|
+
};
|
|
179136
|
+
};
|
|
179137
|
+
};
|
|
179138
|
+
delete?: never;
|
|
179139
|
+
options?: never;
|
|
179140
|
+
head?: never;
|
|
179141
|
+
patch?: never;
|
|
179142
|
+
trace?: never;
|
|
179143
|
+
};
|
|
179144
|
+
"/voice-clips/{id}": {
|
|
179145
|
+
parameters: {
|
|
179146
|
+
query?: never;
|
|
179147
|
+
header?: never;
|
|
179148
|
+
path?: never;
|
|
179149
|
+
cookie?: never;
|
|
179150
|
+
};
|
|
179151
|
+
/**
|
|
179152
|
+
* Fetch one voice clip
|
|
179153
|
+
* @description The clip with its details, transcript and `expired` state.
|
|
179154
|
+
*/
|
|
179155
|
+
get: {
|
|
179156
|
+
parameters: {
|
|
179157
|
+
query?: never;
|
|
179158
|
+
header?: never;
|
|
179159
|
+
path: {
|
|
179160
|
+
id: string;
|
|
179161
|
+
};
|
|
179162
|
+
cookie?: never;
|
|
179163
|
+
};
|
|
179164
|
+
requestBody?: never;
|
|
179165
|
+
responses: {
|
|
179166
|
+
/** @description The clip */
|
|
179167
|
+
200: {
|
|
179168
|
+
headers: {
|
|
179169
|
+
[name: string]: unknown;
|
|
179170
|
+
};
|
|
179171
|
+
content: {
|
|
179172
|
+
/**
|
|
179173
|
+
* @example {
|
|
179174
|
+
* "id": "6b0f3c1e-2a4d-4f7e-9b1a-0c2d3e4f5a6b",
|
|
179175
|
+
* "name": "Garantía 6 meses",
|
|
179176
|
+
* "tags": [
|
|
179177
|
+
* "garantia",
|
|
179178
|
+
* "cierre"
|
|
179179
|
+
* ],
|
|
179180
|
+
* "when_to_use": "Cuando el cliente pregunta por la garantía de un seminuevo.",
|
|
179181
|
+
* "expires_at": null,
|
|
179182
|
+
* "expired": false,
|
|
179183
|
+
* "models": [
|
|
179184
|
+
* "iPhone 13",
|
|
179185
|
+
* "iPhone 13 Pro",
|
|
179186
|
+
* "iPhone 14"
|
|
179187
|
+
* ],
|
|
179188
|
+
* "transcript": "Hola, te cuento que todos nuestros equipos tienen seis meses de garantía.",
|
|
179189
|
+
* "mime_type": "audio/ogg",
|
|
179190
|
+
* "byte_size": 48213,
|
|
179191
|
+
* "duration_ms": 12480,
|
|
179192
|
+
* "original_filename": "garantia.ogg",
|
|
179193
|
+
* "created_by": "2f1e0d9c-8b7a-4c6d-9e5f-1a2b3c4d5e6f",
|
|
179194
|
+
* "created_at": "2026-10-28T15:04:05.000Z",
|
|
179195
|
+
* "updated_at": "2026-10-28T15:04:05.000Z"
|
|
179196
|
+
* }
|
|
179197
|
+
*/
|
|
179198
|
+
"application/json": {
|
|
179199
|
+
data?: unknown;
|
|
179200
|
+
meta?: {
|
|
179201
|
+
[key: string]: unknown;
|
|
179202
|
+
};
|
|
179203
|
+
};
|
|
179204
|
+
};
|
|
179205
|
+
};
|
|
179206
|
+
/** @description Validation error */
|
|
179207
|
+
400: {
|
|
179208
|
+
headers: {
|
|
179209
|
+
[name: string]: unknown;
|
|
179210
|
+
};
|
|
179211
|
+
content: {
|
|
179212
|
+
"application/json": components["schemas"]["Error"];
|
|
179213
|
+
};
|
|
179214
|
+
};
|
|
179215
|
+
/** @description Unauthorized */
|
|
179216
|
+
401: {
|
|
179217
|
+
headers: {
|
|
179218
|
+
[name: string]: unknown;
|
|
179219
|
+
};
|
|
179220
|
+
content: {
|
|
179221
|
+
"application/json": components["schemas"]["Error"];
|
|
179222
|
+
};
|
|
179223
|
+
};
|
|
179224
|
+
/** @description Forbidden */
|
|
179225
|
+
403: {
|
|
179226
|
+
headers: {
|
|
179227
|
+
[name: string]: unknown;
|
|
179228
|
+
};
|
|
179229
|
+
content: {
|
|
179230
|
+
"application/json": components["schemas"]["Error"];
|
|
179231
|
+
};
|
|
179232
|
+
};
|
|
179233
|
+
/** @description Not found */
|
|
179234
|
+
404: {
|
|
179235
|
+
headers: {
|
|
179236
|
+
[name: string]: unknown;
|
|
179237
|
+
};
|
|
179238
|
+
content: {
|
|
179239
|
+
"application/json": components["schemas"]["Error"];
|
|
179240
|
+
};
|
|
179241
|
+
};
|
|
179242
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
179243
|
+
409: {
|
|
179244
|
+
headers: {
|
|
179245
|
+
[name: string]: unknown;
|
|
179246
|
+
};
|
|
179247
|
+
content: {
|
|
179248
|
+
"application/json": components["schemas"]["Error"];
|
|
179249
|
+
};
|
|
179250
|
+
};
|
|
179251
|
+
/** @description Rate limited */
|
|
179252
|
+
429: {
|
|
179253
|
+
headers: {
|
|
179254
|
+
[name: string]: unknown;
|
|
179255
|
+
};
|
|
179256
|
+
content: {
|
|
179257
|
+
"application/json": components["schemas"]["Error"];
|
|
179258
|
+
};
|
|
179259
|
+
};
|
|
179260
|
+
};
|
|
179261
|
+
};
|
|
179262
|
+
put?: never;
|
|
179263
|
+
post?: never;
|
|
179264
|
+
/**
|
|
179265
|
+
* Delete a voice clip
|
|
179266
|
+
* @description Removes the clip and its audio from the library. Voice notes already sent in conversations stay there. To stop offering a clip without losing it, set `expires_at` instead.
|
|
179267
|
+
*/
|
|
179268
|
+
delete: {
|
|
179269
|
+
parameters: {
|
|
179270
|
+
query?: never;
|
|
179271
|
+
header?: never;
|
|
179272
|
+
path: {
|
|
179273
|
+
id: string;
|
|
179274
|
+
};
|
|
179275
|
+
cookie?: never;
|
|
179276
|
+
};
|
|
179277
|
+
requestBody?: never;
|
|
179278
|
+
responses: {
|
|
179279
|
+
/** @description No content */
|
|
179280
|
+
204: {
|
|
179281
|
+
headers: {
|
|
179282
|
+
[name: string]: unknown;
|
|
179283
|
+
};
|
|
179284
|
+
content?: never;
|
|
179285
|
+
};
|
|
179286
|
+
/** @description Validation error */
|
|
179287
|
+
400: {
|
|
179288
|
+
headers: {
|
|
179289
|
+
[name: string]: unknown;
|
|
179290
|
+
};
|
|
179291
|
+
content: {
|
|
179292
|
+
"application/json": components["schemas"]["Error"];
|
|
179293
|
+
};
|
|
179294
|
+
};
|
|
179295
|
+
/** @description Unauthorized */
|
|
179296
|
+
401: {
|
|
179297
|
+
headers: {
|
|
179298
|
+
[name: string]: unknown;
|
|
179299
|
+
};
|
|
179300
|
+
content: {
|
|
179301
|
+
"application/json": components["schemas"]["Error"];
|
|
179302
|
+
};
|
|
179303
|
+
};
|
|
179304
|
+
/** @description Forbidden */
|
|
179305
|
+
403: {
|
|
179306
|
+
headers: {
|
|
179307
|
+
[name: string]: unknown;
|
|
179308
|
+
};
|
|
179309
|
+
content: {
|
|
179310
|
+
"application/json": components["schemas"]["Error"];
|
|
179311
|
+
};
|
|
179312
|
+
};
|
|
179313
|
+
/** @description Not found */
|
|
179314
|
+
404: {
|
|
179315
|
+
headers: {
|
|
179316
|
+
[name: string]: unknown;
|
|
179317
|
+
};
|
|
179318
|
+
content: {
|
|
179319
|
+
"application/json": components["schemas"]["Error"];
|
|
179320
|
+
};
|
|
179321
|
+
};
|
|
179322
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
179323
|
+
409: {
|
|
179324
|
+
headers: {
|
|
179325
|
+
[name: string]: unknown;
|
|
179326
|
+
};
|
|
179327
|
+
content: {
|
|
179328
|
+
"application/json": components["schemas"]["Error"];
|
|
179329
|
+
};
|
|
179330
|
+
};
|
|
179331
|
+
/** @description Rate limited */
|
|
179332
|
+
429: {
|
|
179333
|
+
headers: {
|
|
179334
|
+
[name: string]: unknown;
|
|
179335
|
+
};
|
|
179336
|
+
content: {
|
|
179337
|
+
"application/json": components["schemas"]["Error"];
|
|
179338
|
+
};
|
|
179339
|
+
};
|
|
179340
|
+
};
|
|
179341
|
+
};
|
|
179342
|
+
options?: never;
|
|
179343
|
+
head?: never;
|
|
179344
|
+
/**
|
|
179345
|
+
* Edit a voice clip
|
|
179346
|
+
* @description Changes the details and the transcript; the audio itself is replaced by uploading a new clip. `tags` and `models` are replaced wholesale. `expires_at: null` removes the expiry (an expired clip becomes sendable again). At least one field is required.
|
|
179347
|
+
*/
|
|
179348
|
+
patch: {
|
|
179349
|
+
parameters: {
|
|
179350
|
+
query?: never;
|
|
179351
|
+
header?: never;
|
|
179352
|
+
path: {
|
|
179353
|
+
id: string;
|
|
179354
|
+
};
|
|
179355
|
+
cookie?: never;
|
|
179356
|
+
};
|
|
179357
|
+
requestBody?: {
|
|
179358
|
+
content: {
|
|
179359
|
+
/**
|
|
179360
|
+
* @example {
|
|
179361
|
+
* "transcript": "Hola, te cuento que todos nuestros equipos tienen seis meses de garantía.",
|
|
179362
|
+
* "expires_at": "2026-11-30T23:59:59-03:00"
|
|
179363
|
+
* }
|
|
179364
|
+
*/
|
|
179365
|
+
"application/json": {
|
|
179366
|
+
name?: string;
|
|
179367
|
+
/** @description Labels for finding the clip (stored lower-cased). Multipart: repeat the field, or send a comma-separated or JSON-array string. */
|
|
179368
|
+
tags?: string[];
|
|
179369
|
+
when_to_use?: string;
|
|
179370
|
+
/**
|
|
179371
|
+
* Format: date-time
|
|
179372
|
+
* @description When the clip stops being offered for sending (ISO 8601). Null = never. An expired clip stays in the library, marked `expired`.
|
|
179373
|
+
*/
|
|
179374
|
+
expires_at?: string | null;
|
|
179375
|
+
/** @description Model filter: the model names the clip applies to, spelled as in the catalog (`product.model`, e.g. "iPhone 13 Pro"). Empty = any model. Matched case- and whitespace-insensitively. */
|
|
179376
|
+
models?: string[];
|
|
179377
|
+
/** @description The corrected transcript. Empty or null clears it. */
|
|
179378
|
+
transcript?: string | null;
|
|
179379
|
+
};
|
|
179380
|
+
};
|
|
179381
|
+
};
|
|
179382
|
+
responses: {
|
|
179383
|
+
/** @description The updated clip */
|
|
179384
|
+
200: {
|
|
179385
|
+
headers: {
|
|
179386
|
+
[name: string]: unknown;
|
|
179387
|
+
};
|
|
179388
|
+
content: {
|
|
179389
|
+
/**
|
|
179390
|
+
* @example {
|
|
179391
|
+
* "id": "6b0f3c1e-2a4d-4f7e-9b1a-0c2d3e4f5a6b",
|
|
179392
|
+
* "name": "Garantía 6 meses",
|
|
179393
|
+
* "tags": [
|
|
179394
|
+
* "garantia",
|
|
179395
|
+
* "cierre"
|
|
179396
|
+
* ],
|
|
179397
|
+
* "when_to_use": "Cuando el cliente pregunta por la garantía de un seminuevo.",
|
|
179398
|
+
* "expires_at": null,
|
|
179399
|
+
* "expired": false,
|
|
179400
|
+
* "models": [
|
|
179401
|
+
* "iPhone 13",
|
|
179402
|
+
* "iPhone 13 Pro",
|
|
179403
|
+
* "iPhone 14"
|
|
179404
|
+
* ],
|
|
179405
|
+
* "transcript": "Hola, te cuento que todos nuestros equipos tienen seis meses de garantía.",
|
|
179406
|
+
* "mime_type": "audio/ogg",
|
|
179407
|
+
* "byte_size": 48213,
|
|
179408
|
+
* "duration_ms": 12480,
|
|
179409
|
+
* "original_filename": "garantia.ogg",
|
|
179410
|
+
* "created_by": "2f1e0d9c-8b7a-4c6d-9e5f-1a2b3c4d5e6f",
|
|
179411
|
+
* "created_at": "2026-10-28T15:04:05.000Z",
|
|
179412
|
+
* "updated_at": "2026-10-28T15:04:05.000Z"
|
|
179413
|
+
* }
|
|
179414
|
+
*/
|
|
179415
|
+
"application/json": {
|
|
179416
|
+
data?: unknown;
|
|
179417
|
+
meta?: {
|
|
179418
|
+
[key: string]: unknown;
|
|
179419
|
+
};
|
|
179420
|
+
};
|
|
179421
|
+
};
|
|
179422
|
+
};
|
|
179423
|
+
/** @description Validation error */
|
|
179424
|
+
400: {
|
|
179425
|
+
headers: {
|
|
179426
|
+
[name: string]: unknown;
|
|
179427
|
+
};
|
|
179428
|
+
content: {
|
|
179429
|
+
"application/json": components["schemas"]["Error"];
|
|
179430
|
+
};
|
|
179431
|
+
};
|
|
179432
|
+
/** @description Unauthorized */
|
|
179433
|
+
401: {
|
|
179434
|
+
headers: {
|
|
179435
|
+
[name: string]: unknown;
|
|
179436
|
+
};
|
|
179437
|
+
content: {
|
|
179438
|
+
"application/json": components["schemas"]["Error"];
|
|
179439
|
+
};
|
|
179440
|
+
};
|
|
179441
|
+
/** @description Forbidden */
|
|
179442
|
+
403: {
|
|
179443
|
+
headers: {
|
|
179444
|
+
[name: string]: unknown;
|
|
179445
|
+
};
|
|
179446
|
+
content: {
|
|
179447
|
+
"application/json": components["schemas"]["Error"];
|
|
179448
|
+
};
|
|
179449
|
+
};
|
|
179450
|
+
/** @description Not found */
|
|
179451
|
+
404: {
|
|
179452
|
+
headers: {
|
|
179453
|
+
[name: string]: unknown;
|
|
179454
|
+
};
|
|
179455
|
+
content: {
|
|
179456
|
+
"application/json": components["schemas"]["Error"];
|
|
179457
|
+
};
|
|
179458
|
+
};
|
|
179459
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
179460
|
+
409: {
|
|
179461
|
+
headers: {
|
|
179462
|
+
[name: string]: unknown;
|
|
179463
|
+
};
|
|
179464
|
+
content: {
|
|
179465
|
+
"application/json": components["schemas"]["Error"];
|
|
179466
|
+
};
|
|
179467
|
+
};
|
|
179468
|
+
/** @description Rate limited */
|
|
179469
|
+
429: {
|
|
179470
|
+
headers: {
|
|
179471
|
+
[name: string]: unknown;
|
|
179472
|
+
};
|
|
179473
|
+
content: {
|
|
179474
|
+
"application/json": components["schemas"]["Error"];
|
|
179475
|
+
};
|
|
179476
|
+
};
|
|
179477
|
+
};
|
|
179478
|
+
};
|
|
179479
|
+
trace?: never;
|
|
179480
|
+
};
|
|
179481
|
+
"/voice-clips/{id}/play-url": {
|
|
179482
|
+
parameters: {
|
|
179483
|
+
query?: never;
|
|
179484
|
+
header?: never;
|
|
179485
|
+
path?: never;
|
|
179486
|
+
cookie?: never;
|
|
179487
|
+
};
|
|
179488
|
+
/**
|
|
179489
|
+
* Get a play URL for a voice clip
|
|
179490
|
+
* @description A short-lived signed URL (15 minutes) to stream or download the audio. Ask for a new one when it expires; do not store it.
|
|
179491
|
+
*/
|
|
179492
|
+
get: {
|
|
179493
|
+
parameters: {
|
|
179494
|
+
query?: never;
|
|
179495
|
+
header?: never;
|
|
179496
|
+
path: {
|
|
179497
|
+
id: string;
|
|
179498
|
+
};
|
|
179499
|
+
cookie?: never;
|
|
179500
|
+
};
|
|
179501
|
+
requestBody?: never;
|
|
179502
|
+
responses: {
|
|
179503
|
+
/** @description `{ url, expires_at, mime_type }` */
|
|
179504
|
+
200: {
|
|
179505
|
+
headers: {
|
|
179506
|
+
[name: string]: unknown;
|
|
179507
|
+
};
|
|
179508
|
+
content: {
|
|
179509
|
+
/**
|
|
179510
|
+
* @example {
|
|
179511
|
+
* "url": "https://storage.example.com/tenants/…/voice-clips/6b0f….ogg?X-Amz-Signature=…",
|
|
179512
|
+
* "expires_at": "2026-10-28T15:19:05.000Z",
|
|
179513
|
+
* "mime_type": "audio/ogg"
|
|
179514
|
+
* }
|
|
179515
|
+
*/
|
|
179516
|
+
"application/json": {
|
|
179517
|
+
data?: unknown;
|
|
179518
|
+
meta?: {
|
|
179519
|
+
[key: string]: unknown;
|
|
179520
|
+
};
|
|
179521
|
+
};
|
|
179522
|
+
};
|
|
179523
|
+
};
|
|
179524
|
+
/** @description Validation error */
|
|
179525
|
+
400: {
|
|
179526
|
+
headers: {
|
|
179527
|
+
[name: string]: unknown;
|
|
179528
|
+
};
|
|
179529
|
+
content: {
|
|
179530
|
+
"application/json": components["schemas"]["Error"];
|
|
179531
|
+
};
|
|
179532
|
+
};
|
|
179533
|
+
/** @description Unauthorized */
|
|
179534
|
+
401: {
|
|
179535
|
+
headers: {
|
|
179536
|
+
[name: string]: unknown;
|
|
179537
|
+
};
|
|
179538
|
+
content: {
|
|
179539
|
+
"application/json": components["schemas"]["Error"];
|
|
179540
|
+
};
|
|
179541
|
+
};
|
|
179542
|
+
/** @description Forbidden */
|
|
179543
|
+
403: {
|
|
179544
|
+
headers: {
|
|
179545
|
+
[name: string]: unknown;
|
|
179546
|
+
};
|
|
179547
|
+
content: {
|
|
179548
|
+
"application/json": components["schemas"]["Error"];
|
|
179549
|
+
};
|
|
179550
|
+
};
|
|
179551
|
+
/** @description Not found */
|
|
179552
|
+
404: {
|
|
179553
|
+
headers: {
|
|
179554
|
+
[name: string]: unknown;
|
|
179555
|
+
};
|
|
179556
|
+
content: {
|
|
179557
|
+
"application/json": components["schemas"]["Error"];
|
|
179558
|
+
};
|
|
179559
|
+
};
|
|
179560
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
179561
|
+
409: {
|
|
179562
|
+
headers: {
|
|
179563
|
+
[name: string]: unknown;
|
|
179564
|
+
};
|
|
179565
|
+
content: {
|
|
179566
|
+
"application/json": components["schemas"]["Error"];
|
|
179567
|
+
};
|
|
179568
|
+
};
|
|
179569
|
+
/** @description Rate limited */
|
|
179570
|
+
429: {
|
|
179571
|
+
headers: {
|
|
179572
|
+
[name: string]: unknown;
|
|
179573
|
+
};
|
|
179574
|
+
content: {
|
|
179575
|
+
"application/json": components["schemas"]["Error"];
|
|
179576
|
+
};
|
|
179577
|
+
};
|
|
179578
|
+
};
|
|
179579
|
+
};
|
|
179580
|
+
put?: never;
|
|
179581
|
+
post?: never;
|
|
179582
|
+
delete?: never;
|
|
179583
|
+
options?: never;
|
|
179584
|
+
head?: never;
|
|
179585
|
+
patch?: never;
|
|
179586
|
+
trace?: never;
|
|
179587
|
+
};
|
|
178555
179588
|
"/marketplaces": {
|
|
178556
179589
|
parameters: {
|
|
178557
179590
|
query?: never;
|
|
@@ -235875,6 +236908,8 @@ interface components {
|
|
|
235875
236908
|
last_fired_at: string | null;
|
|
235876
236909
|
recommended: boolean;
|
|
235877
236910
|
}[];
|
|
236911
|
+
/** @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. */
|
|
236912
|
+
can_create_pixel: boolean;
|
|
235878
236913
|
};
|
|
235879
236914
|
/** @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. */
|
|
235880
236915
|
instagram: {
|