@vitrina/api 14.90.0 → 14.91.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 +246 -2
- package/dist/index.d.ts +246 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -135195,7 +135195,8 @@ interface paths {
|
|
|
135195
135195
|
* "S",
|
|
135196
135196
|
* "Row"
|
|
135197
135197
|
* ],
|
|
135198
|
-
* "emphasis": "normal"
|
|
135198
|
+
* "emphasis": "normal",
|
|
135199
|
+
* "note": null
|
|
135199
135200
|
* },
|
|
135200
135201
|
* {
|
|
135201
135202
|
* "guard": "G3",
|
|
@@ -135208,7 +135209,8 @@ interface paths {
|
|
|
135208
135209
|
* "S",
|
|
135209
135210
|
* "Log"
|
|
135210
135211
|
* ],
|
|
135211
|
-
* "emphasis": "normal"
|
|
135212
|
+
* "emphasis": "normal",
|
|
135213
|
+
* "note": null
|
|
135212
135214
|
* }
|
|
135213
135215
|
* ],
|
|
135214
135216
|
* "log": [
|
|
@@ -135308,6 +135310,248 @@ interface paths {
|
|
|
135308
135310
|
patch?: never;
|
|
135309
135311
|
trace?: never;
|
|
135310
135312
|
};
|
|
135313
|
+
"/followups/recontacto/plan": {
|
|
135314
|
+
parameters: {
|
|
135315
|
+
query?: never;
|
|
135316
|
+
header?: never;
|
|
135317
|
+
path?: never;
|
|
135318
|
+
cookie?: never;
|
|
135319
|
+
};
|
|
135320
|
+
/**
|
|
135321
|
+
* What a customer who stops answering receives (simulated)
|
|
135322
|
+
* @description The «Si no responde» ladder, computed by the engine itself: a synthetic lead is stepped along the sweeps’ clocks (hourly for the lead rails, every 15 minutes for the chat rows, only inside contact hours) through the real decision function and pacing holds, so every row’s `at` is when the engine would actually send it. `scenarios` holds `conversed` («Conversó y dejó de responder»: chat rows, then the WhatsApp/email/call rows, both counted from t0), `never_replied` («Nunca respondió nuestro primer mensaje»: t0 is our first message; the lost rail is never reached) and `lost` («Ya está perdido», counted from the loss); `?scenario=` returns just one. `start` is t0 (default now); `start_options` are the example clock’s picks. A moved row carries `deferred_code` (`outside_contact_hours`, `previous_late`, `unanswered_hold`, `min_gap`, `automated_gap`) with its sentence; a drawn step the engine never sends has `sends: false` and `not_sent_reason`. Also: `header_sentence`, each scenario’s hero `sentence`, `pacing_summary` and `pacing` (every live pacing rule with its value), `guards` from the registry (G21 `highlight` when a sweep hit its candidate ceiling in the last 24 h), `approval_fallback.available` (false for a clinic whose clinical response times are undeclared), `today` (sent, not sent, went to approval, awaiting approval) and `queue` (each queued backlog step’s estimated release day, 10 per tenant per day; `contact_id` or `lead_id` narrows it). All copy is in `lang` (default the workspace’s).
|
|
135323
|
+
*/
|
|
135324
|
+
get: {
|
|
135325
|
+
parameters: {
|
|
135326
|
+
query?: {
|
|
135327
|
+
scenario?: "conversed" | "never_replied" | "lost";
|
|
135328
|
+
start?: string;
|
|
135329
|
+
lang?: "es" | "en";
|
|
135330
|
+
contact_id?: string;
|
|
135331
|
+
lead_id?: string;
|
|
135332
|
+
};
|
|
135333
|
+
header?: never;
|
|
135334
|
+
path?: never;
|
|
135335
|
+
cookie?: never;
|
|
135336
|
+
};
|
|
135337
|
+
requestBody?: never;
|
|
135338
|
+
responses: {
|
|
135339
|
+
/** @description The simulated plan */
|
|
135340
|
+
200: {
|
|
135341
|
+
headers: {
|
|
135342
|
+
[name: string]: unknown;
|
|
135343
|
+
};
|
|
135344
|
+
content: {
|
|
135345
|
+
/**
|
|
135346
|
+
* @example {
|
|
135347
|
+
* "data": {
|
|
135348
|
+
* "header_sentence": "4 mensajes en 5 días; a los 12 días se marca perdido y a los 42 días, uno más con tu aprobación.",
|
|
135349
|
+
* "start": "2026-10-21T16:00:00-03:00",
|
|
135350
|
+
* "start_options": [
|
|
135351
|
+
* {
|
|
135352
|
+
* "start": "2026-10-21T16:00:00-03:00",
|
|
135353
|
+
* "label": "mié 21 oct · 16:00"
|
|
135354
|
+
* },
|
|
135355
|
+
* {
|
|
135356
|
+
* "start": "2026-10-21T20:00:00-03:00",
|
|
135357
|
+
* "label": "mié 21 oct · 20:00"
|
|
135358
|
+
* }
|
|
135359
|
+
* ],
|
|
135360
|
+
* "timezone": "America/Santiago",
|
|
135361
|
+
* "contact_hours": {
|
|
135362
|
+
* "start_hour": 9,
|
|
135363
|
+
* "end_hour": 21
|
|
135364
|
+
* },
|
|
135365
|
+
* "enabled": true,
|
|
135366
|
+
* "scenarios": [
|
|
135367
|
+
* {
|
|
135368
|
+
* "scenario": "conversed",
|
|
135369
|
+
* "title": "Conversó y dejó de responder",
|
|
135370
|
+
* "enabled": true,
|
|
135371
|
+
* "sentence": "Le escribimos 3 horas y 8 horas después de nuestro último mensaje, por el mismo chat (si cae fuera del horario, a las 09:00 siguientes). Después, por WhatsApp, a los 2 y a los 5 días. Si sigue sin responder, a los 12 días lo marcamos perdido, y a los 42 días le escribimos una última vez, con tu aprobación.",
|
|
135372
|
+
* "start_label": "Si nuestro último mensaje sale",
|
|
135373
|
+
* "items": [
|
|
135374
|
+
* {
|
|
135375
|
+
* "kind": "message",
|
|
135376
|
+
* "n": 2,
|
|
135377
|
+
* "rail": "unanswered_message",
|
|
135378
|
+
* "step": 2,
|
|
135379
|
+
* "elapsed_hours": 8,
|
|
135380
|
+
* "elapsed_label": "8 horas",
|
|
135381
|
+
* "at": "2026-10-22T09:00:00-03:00",
|
|
135382
|
+
* "at_label": "jue 22 oct · 09:00",
|
|
135383
|
+
* "deferred_from": "2026-10-22T00:00:00-03:00",
|
|
135384
|
+
* "deferred_from_label": "jue 00:00",
|
|
135385
|
+
* "deferred_reason": "fuera de horario",
|
|
135386
|
+
* "deferred_code": "outside_contact_hours",
|
|
135387
|
+
* "deferred_detail": "Fuera de horario: sale a las 09:00. Las horas de noche no cuentan como atraso.",
|
|
135388
|
+
* "sends": true,
|
|
135389
|
+
* "not_sent_reason": null,
|
|
135390
|
+
* "channel": "same_chat",
|
|
135391
|
+
* "what": "Recordatorio en el mismo chat",
|
|
135392
|
+
* "detail": "La IA retoma lo que quedó pendiente; si no queda nada pendiente, no sale. Solo en chats abiertos de WhatsApp o Instagram.",
|
|
135393
|
+
* "autonomy_effective": "auto",
|
|
135394
|
+
* "autonomy_label": "Automático",
|
|
135395
|
+
* "autonomy_reason": null,
|
|
135396
|
+
* "needs_template": false,
|
|
135397
|
+
* "warnings": [],
|
|
135398
|
+
* "gap_label": "5 horas después del anterior"
|
|
135399
|
+
* },
|
|
135400
|
+
* {
|
|
135401
|
+
* "kind": "window_marker",
|
|
135402
|
+
* "elapsed_label": "≈ 24 horas",
|
|
135403
|
+
* "text": "se cierra la ventana de WhatsApp (se cuenta desde el último mensaje del cliente): desde aquí, solo plantillas aprobadas"
|
|
135404
|
+
* },
|
|
135405
|
+
* {
|
|
135406
|
+
* "kind": "lost",
|
|
135407
|
+
* "elapsed_hours": 288,
|
|
135408
|
+
* "elapsed_label": "12 días",
|
|
135409
|
+
* "at": "2026-11-02T16:00:00-03:00",
|
|
135410
|
+
* "at_label": "lun 2 nov · 16:00",
|
|
135411
|
+
* "title": "Lo marcamos perdido",
|
|
135412
|
+
* "detail": "Si sigue sin responder 7 días después del último mensaje.",
|
|
135413
|
+
* "lose_after_days": 7
|
|
135414
|
+
* },
|
|
135415
|
+
* {
|
|
135416
|
+
* "kind": "end",
|
|
135417
|
+
* "elapsed_hours": null,
|
|
135418
|
+
* "elapsed_label": null,
|
|
135419
|
+
* "at": null,
|
|
135420
|
+
* "at_label": null,
|
|
135421
|
+
* "title": "Fin de este camino.",
|
|
135422
|
+
* "detail": "Si vuelve a escribir y después se queda en silencio, empieza otro.",
|
|
135423
|
+
* "lose_after_days": null
|
|
135424
|
+
* }
|
|
135425
|
+
* ],
|
|
135426
|
+
* "footnote": "Los mensajes por día salen en la revisión de cada hora (hasta 1 hora después); los del chat, hasta 15 minutos después."
|
|
135427
|
+
* }
|
|
135428
|
+
* ],
|
|
135429
|
+
* "pacing_summary": "Ritmo · hasta 3 caminos por persona cada 90 días; no empezamos con silencios de más de 45 días; después de 24 horas, plantilla aprobada.",
|
|
135430
|
+
* "pacing": [
|
|
135431
|
+
* {
|
|
135432
|
+
* "rule": "R12",
|
|
135433
|
+
* "on": true,
|
|
135434
|
+
* "text": "hasta 3 caminos por persona cada 90 días"
|
|
135435
|
+
* }
|
|
135436
|
+
* ],
|
|
135437
|
+
* "guards_summary": "Siempre se respeta · horario 09:00–21:00, no contactar, ventana de WhatsApp y 15 reglas más",
|
|
135438
|
+
* "guards": [
|
|
135439
|
+
* {
|
|
135440
|
+
* "guard": "G21",
|
|
135441
|
+
* "text": "Revisamos hasta **2000** oportunidades por vuelta, primero las de silencio más reciente.",
|
|
135442
|
+
* "link": null,
|
|
135443
|
+
* "shown_as": [
|
|
135444
|
+
* "S"
|
|
135445
|
+
* ],
|
|
135446
|
+
* "emphasis": "highlight",
|
|
135447
|
+
* "note": "La última vuelta llegó al tope: revisamos **2000** de **2340** oportunidades; el resto espera las siguientes."
|
|
135448
|
+
* }
|
|
135449
|
+
* ],
|
|
135450
|
+
* "approval_fallback": {
|
|
135451
|
+
* "available": true,
|
|
135452
|
+
* "reason": null
|
|
135453
|
+
* },
|
|
135454
|
+
* "today": {
|
|
135455
|
+
* "since": "2026-10-21T03:00:00.000Z",
|
|
135456
|
+
* "sent": 66,
|
|
135457
|
+
* "not_sent": 31,
|
|
135458
|
+
* "went_to_approval": 0,
|
|
135459
|
+
* "awaiting_approval": 0
|
|
135460
|
+
* },
|
|
135461
|
+
* "queue": {
|
|
135462
|
+
* "per_day": 10,
|
|
135463
|
+
* "released_today": 4,
|
|
135464
|
+
* "waiting": 1,
|
|
135465
|
+
* "steps": [
|
|
135466
|
+
* {
|
|
135467
|
+
* "attempt_id": "7a7a7a7a-0000-4000-8000-0000000000a0",
|
|
135468
|
+
* "lead_id": "7a7a7a7a-0000-4000-8000-000000000050",
|
|
135469
|
+
* "contact_id": "7a7a7a7a-0000-4000-8000-000000000030",
|
|
135470
|
+
* "situation": "stalled",
|
|
135471
|
+
* "step": 2,
|
|
135472
|
+
* "due_at": "2026-10-12T19:00:00.000Z",
|
|
135473
|
+
* "position": 0,
|
|
135474
|
+
* "release_on": "2026-10-29",
|
|
135475
|
+
* "release_at": "2026-10-29T09:00:00-03:00",
|
|
135476
|
+
* "label": "En cola: sale el jue 29 oct"
|
|
135477
|
+
* }
|
|
135478
|
+
* ]
|
|
135479
|
+
* }
|
|
135480
|
+
* }
|
|
135481
|
+
* }
|
|
135482
|
+
*/
|
|
135483
|
+
"application/json": {
|
|
135484
|
+
data?: unknown;
|
|
135485
|
+
meta?: {
|
|
135486
|
+
[key: string]: unknown;
|
|
135487
|
+
};
|
|
135488
|
+
};
|
|
135489
|
+
};
|
|
135490
|
+
};
|
|
135491
|
+
/** @description Validation error */
|
|
135492
|
+
400: {
|
|
135493
|
+
headers: {
|
|
135494
|
+
[name: string]: unknown;
|
|
135495
|
+
};
|
|
135496
|
+
content: {
|
|
135497
|
+
"application/json": components["schemas"]["Error"];
|
|
135498
|
+
};
|
|
135499
|
+
};
|
|
135500
|
+
/** @description Unauthorized */
|
|
135501
|
+
401: {
|
|
135502
|
+
headers: {
|
|
135503
|
+
[name: string]: unknown;
|
|
135504
|
+
};
|
|
135505
|
+
content: {
|
|
135506
|
+
"application/json": components["schemas"]["Error"];
|
|
135507
|
+
};
|
|
135508
|
+
};
|
|
135509
|
+
/** @description Forbidden */
|
|
135510
|
+
403: {
|
|
135511
|
+
headers: {
|
|
135512
|
+
[name: string]: unknown;
|
|
135513
|
+
};
|
|
135514
|
+
content: {
|
|
135515
|
+
"application/json": components["schemas"]["Error"];
|
|
135516
|
+
};
|
|
135517
|
+
};
|
|
135518
|
+
/** @description Not found */
|
|
135519
|
+
404: {
|
|
135520
|
+
headers: {
|
|
135521
|
+
[name: string]: unknown;
|
|
135522
|
+
};
|
|
135523
|
+
content: {
|
|
135524
|
+
"application/json": components["schemas"]["Error"];
|
|
135525
|
+
};
|
|
135526
|
+
};
|
|
135527
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
135528
|
+
409: {
|
|
135529
|
+
headers: {
|
|
135530
|
+
[name: string]: unknown;
|
|
135531
|
+
};
|
|
135532
|
+
content: {
|
|
135533
|
+
"application/json": components["schemas"]["Error"];
|
|
135534
|
+
};
|
|
135535
|
+
};
|
|
135536
|
+
/** @description Rate limited */
|
|
135537
|
+
429: {
|
|
135538
|
+
headers: {
|
|
135539
|
+
[name: string]: unknown;
|
|
135540
|
+
};
|
|
135541
|
+
content: {
|
|
135542
|
+
"application/json": components["schemas"]["Error"];
|
|
135543
|
+
};
|
|
135544
|
+
};
|
|
135545
|
+
};
|
|
135546
|
+
};
|
|
135547
|
+
put?: never;
|
|
135548
|
+
post?: never;
|
|
135549
|
+
delete?: never;
|
|
135550
|
+
options?: never;
|
|
135551
|
+
head?: never;
|
|
135552
|
+
patch?: never;
|
|
135553
|
+
trace?: never;
|
|
135554
|
+
};
|
|
135311
135555
|
"/followups/recontacto/readiness": {
|
|
135312
135556
|
parameters: {
|
|
135313
135557
|
query?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -135195,7 +135195,8 @@ interface paths {
|
|
|
135195
135195
|
* "S",
|
|
135196
135196
|
* "Row"
|
|
135197
135197
|
* ],
|
|
135198
|
-
* "emphasis": "normal"
|
|
135198
|
+
* "emphasis": "normal",
|
|
135199
|
+
* "note": null
|
|
135199
135200
|
* },
|
|
135200
135201
|
* {
|
|
135201
135202
|
* "guard": "G3",
|
|
@@ -135208,7 +135209,8 @@ interface paths {
|
|
|
135208
135209
|
* "S",
|
|
135209
135210
|
* "Log"
|
|
135210
135211
|
* ],
|
|
135211
|
-
* "emphasis": "normal"
|
|
135212
|
+
* "emphasis": "normal",
|
|
135213
|
+
* "note": null
|
|
135212
135214
|
* }
|
|
135213
135215
|
* ],
|
|
135214
135216
|
* "log": [
|
|
@@ -135308,6 +135310,248 @@ interface paths {
|
|
|
135308
135310
|
patch?: never;
|
|
135309
135311
|
trace?: never;
|
|
135310
135312
|
};
|
|
135313
|
+
"/followups/recontacto/plan": {
|
|
135314
|
+
parameters: {
|
|
135315
|
+
query?: never;
|
|
135316
|
+
header?: never;
|
|
135317
|
+
path?: never;
|
|
135318
|
+
cookie?: never;
|
|
135319
|
+
};
|
|
135320
|
+
/**
|
|
135321
|
+
* What a customer who stops answering receives (simulated)
|
|
135322
|
+
* @description The «Si no responde» ladder, computed by the engine itself: a synthetic lead is stepped along the sweeps’ clocks (hourly for the lead rails, every 15 minutes for the chat rows, only inside contact hours) through the real decision function and pacing holds, so every row’s `at` is when the engine would actually send it. `scenarios` holds `conversed` («Conversó y dejó de responder»: chat rows, then the WhatsApp/email/call rows, both counted from t0), `never_replied` («Nunca respondió nuestro primer mensaje»: t0 is our first message; the lost rail is never reached) and `lost` («Ya está perdido», counted from the loss); `?scenario=` returns just one. `start` is t0 (default now); `start_options` are the example clock’s picks. A moved row carries `deferred_code` (`outside_contact_hours`, `previous_late`, `unanswered_hold`, `min_gap`, `automated_gap`) with its sentence; a drawn step the engine never sends has `sends: false` and `not_sent_reason`. Also: `header_sentence`, each scenario’s hero `sentence`, `pacing_summary` and `pacing` (every live pacing rule with its value), `guards` from the registry (G21 `highlight` when a sweep hit its candidate ceiling in the last 24 h), `approval_fallback.available` (false for a clinic whose clinical response times are undeclared), `today` (sent, not sent, went to approval, awaiting approval) and `queue` (each queued backlog step’s estimated release day, 10 per tenant per day; `contact_id` or `lead_id` narrows it). All copy is in `lang` (default the workspace’s).
|
|
135323
|
+
*/
|
|
135324
|
+
get: {
|
|
135325
|
+
parameters: {
|
|
135326
|
+
query?: {
|
|
135327
|
+
scenario?: "conversed" | "never_replied" | "lost";
|
|
135328
|
+
start?: string;
|
|
135329
|
+
lang?: "es" | "en";
|
|
135330
|
+
contact_id?: string;
|
|
135331
|
+
lead_id?: string;
|
|
135332
|
+
};
|
|
135333
|
+
header?: never;
|
|
135334
|
+
path?: never;
|
|
135335
|
+
cookie?: never;
|
|
135336
|
+
};
|
|
135337
|
+
requestBody?: never;
|
|
135338
|
+
responses: {
|
|
135339
|
+
/** @description The simulated plan */
|
|
135340
|
+
200: {
|
|
135341
|
+
headers: {
|
|
135342
|
+
[name: string]: unknown;
|
|
135343
|
+
};
|
|
135344
|
+
content: {
|
|
135345
|
+
/**
|
|
135346
|
+
* @example {
|
|
135347
|
+
* "data": {
|
|
135348
|
+
* "header_sentence": "4 mensajes en 5 días; a los 12 días se marca perdido y a los 42 días, uno más con tu aprobación.",
|
|
135349
|
+
* "start": "2026-10-21T16:00:00-03:00",
|
|
135350
|
+
* "start_options": [
|
|
135351
|
+
* {
|
|
135352
|
+
* "start": "2026-10-21T16:00:00-03:00",
|
|
135353
|
+
* "label": "mié 21 oct · 16:00"
|
|
135354
|
+
* },
|
|
135355
|
+
* {
|
|
135356
|
+
* "start": "2026-10-21T20:00:00-03:00",
|
|
135357
|
+
* "label": "mié 21 oct · 20:00"
|
|
135358
|
+
* }
|
|
135359
|
+
* ],
|
|
135360
|
+
* "timezone": "America/Santiago",
|
|
135361
|
+
* "contact_hours": {
|
|
135362
|
+
* "start_hour": 9,
|
|
135363
|
+
* "end_hour": 21
|
|
135364
|
+
* },
|
|
135365
|
+
* "enabled": true,
|
|
135366
|
+
* "scenarios": [
|
|
135367
|
+
* {
|
|
135368
|
+
* "scenario": "conversed",
|
|
135369
|
+
* "title": "Conversó y dejó de responder",
|
|
135370
|
+
* "enabled": true,
|
|
135371
|
+
* "sentence": "Le escribimos 3 horas y 8 horas después de nuestro último mensaje, por el mismo chat (si cae fuera del horario, a las 09:00 siguientes). Después, por WhatsApp, a los 2 y a los 5 días. Si sigue sin responder, a los 12 días lo marcamos perdido, y a los 42 días le escribimos una última vez, con tu aprobación.",
|
|
135372
|
+
* "start_label": "Si nuestro último mensaje sale",
|
|
135373
|
+
* "items": [
|
|
135374
|
+
* {
|
|
135375
|
+
* "kind": "message",
|
|
135376
|
+
* "n": 2,
|
|
135377
|
+
* "rail": "unanswered_message",
|
|
135378
|
+
* "step": 2,
|
|
135379
|
+
* "elapsed_hours": 8,
|
|
135380
|
+
* "elapsed_label": "8 horas",
|
|
135381
|
+
* "at": "2026-10-22T09:00:00-03:00",
|
|
135382
|
+
* "at_label": "jue 22 oct · 09:00",
|
|
135383
|
+
* "deferred_from": "2026-10-22T00:00:00-03:00",
|
|
135384
|
+
* "deferred_from_label": "jue 00:00",
|
|
135385
|
+
* "deferred_reason": "fuera de horario",
|
|
135386
|
+
* "deferred_code": "outside_contact_hours",
|
|
135387
|
+
* "deferred_detail": "Fuera de horario: sale a las 09:00. Las horas de noche no cuentan como atraso.",
|
|
135388
|
+
* "sends": true,
|
|
135389
|
+
* "not_sent_reason": null,
|
|
135390
|
+
* "channel": "same_chat",
|
|
135391
|
+
* "what": "Recordatorio en el mismo chat",
|
|
135392
|
+
* "detail": "La IA retoma lo que quedó pendiente; si no queda nada pendiente, no sale. Solo en chats abiertos de WhatsApp o Instagram.",
|
|
135393
|
+
* "autonomy_effective": "auto",
|
|
135394
|
+
* "autonomy_label": "Automático",
|
|
135395
|
+
* "autonomy_reason": null,
|
|
135396
|
+
* "needs_template": false,
|
|
135397
|
+
* "warnings": [],
|
|
135398
|
+
* "gap_label": "5 horas después del anterior"
|
|
135399
|
+
* },
|
|
135400
|
+
* {
|
|
135401
|
+
* "kind": "window_marker",
|
|
135402
|
+
* "elapsed_label": "≈ 24 horas",
|
|
135403
|
+
* "text": "se cierra la ventana de WhatsApp (se cuenta desde el último mensaje del cliente): desde aquí, solo plantillas aprobadas"
|
|
135404
|
+
* },
|
|
135405
|
+
* {
|
|
135406
|
+
* "kind": "lost",
|
|
135407
|
+
* "elapsed_hours": 288,
|
|
135408
|
+
* "elapsed_label": "12 días",
|
|
135409
|
+
* "at": "2026-11-02T16:00:00-03:00",
|
|
135410
|
+
* "at_label": "lun 2 nov · 16:00",
|
|
135411
|
+
* "title": "Lo marcamos perdido",
|
|
135412
|
+
* "detail": "Si sigue sin responder 7 días después del último mensaje.",
|
|
135413
|
+
* "lose_after_days": 7
|
|
135414
|
+
* },
|
|
135415
|
+
* {
|
|
135416
|
+
* "kind": "end",
|
|
135417
|
+
* "elapsed_hours": null,
|
|
135418
|
+
* "elapsed_label": null,
|
|
135419
|
+
* "at": null,
|
|
135420
|
+
* "at_label": null,
|
|
135421
|
+
* "title": "Fin de este camino.",
|
|
135422
|
+
* "detail": "Si vuelve a escribir y después se queda en silencio, empieza otro.",
|
|
135423
|
+
* "lose_after_days": null
|
|
135424
|
+
* }
|
|
135425
|
+
* ],
|
|
135426
|
+
* "footnote": "Los mensajes por día salen en la revisión de cada hora (hasta 1 hora después); los del chat, hasta 15 minutos después."
|
|
135427
|
+
* }
|
|
135428
|
+
* ],
|
|
135429
|
+
* "pacing_summary": "Ritmo · hasta 3 caminos por persona cada 90 días; no empezamos con silencios de más de 45 días; después de 24 horas, plantilla aprobada.",
|
|
135430
|
+
* "pacing": [
|
|
135431
|
+
* {
|
|
135432
|
+
* "rule": "R12",
|
|
135433
|
+
* "on": true,
|
|
135434
|
+
* "text": "hasta 3 caminos por persona cada 90 días"
|
|
135435
|
+
* }
|
|
135436
|
+
* ],
|
|
135437
|
+
* "guards_summary": "Siempre se respeta · horario 09:00–21:00, no contactar, ventana de WhatsApp y 15 reglas más",
|
|
135438
|
+
* "guards": [
|
|
135439
|
+
* {
|
|
135440
|
+
* "guard": "G21",
|
|
135441
|
+
* "text": "Revisamos hasta **2000** oportunidades por vuelta, primero las de silencio más reciente.",
|
|
135442
|
+
* "link": null,
|
|
135443
|
+
* "shown_as": [
|
|
135444
|
+
* "S"
|
|
135445
|
+
* ],
|
|
135446
|
+
* "emphasis": "highlight",
|
|
135447
|
+
* "note": "La última vuelta llegó al tope: revisamos **2000** de **2340** oportunidades; el resto espera las siguientes."
|
|
135448
|
+
* }
|
|
135449
|
+
* ],
|
|
135450
|
+
* "approval_fallback": {
|
|
135451
|
+
* "available": true,
|
|
135452
|
+
* "reason": null
|
|
135453
|
+
* },
|
|
135454
|
+
* "today": {
|
|
135455
|
+
* "since": "2026-10-21T03:00:00.000Z",
|
|
135456
|
+
* "sent": 66,
|
|
135457
|
+
* "not_sent": 31,
|
|
135458
|
+
* "went_to_approval": 0,
|
|
135459
|
+
* "awaiting_approval": 0
|
|
135460
|
+
* },
|
|
135461
|
+
* "queue": {
|
|
135462
|
+
* "per_day": 10,
|
|
135463
|
+
* "released_today": 4,
|
|
135464
|
+
* "waiting": 1,
|
|
135465
|
+
* "steps": [
|
|
135466
|
+
* {
|
|
135467
|
+
* "attempt_id": "7a7a7a7a-0000-4000-8000-0000000000a0",
|
|
135468
|
+
* "lead_id": "7a7a7a7a-0000-4000-8000-000000000050",
|
|
135469
|
+
* "contact_id": "7a7a7a7a-0000-4000-8000-000000000030",
|
|
135470
|
+
* "situation": "stalled",
|
|
135471
|
+
* "step": 2,
|
|
135472
|
+
* "due_at": "2026-10-12T19:00:00.000Z",
|
|
135473
|
+
* "position": 0,
|
|
135474
|
+
* "release_on": "2026-10-29",
|
|
135475
|
+
* "release_at": "2026-10-29T09:00:00-03:00",
|
|
135476
|
+
* "label": "En cola: sale el jue 29 oct"
|
|
135477
|
+
* }
|
|
135478
|
+
* ]
|
|
135479
|
+
* }
|
|
135480
|
+
* }
|
|
135481
|
+
* }
|
|
135482
|
+
*/
|
|
135483
|
+
"application/json": {
|
|
135484
|
+
data?: unknown;
|
|
135485
|
+
meta?: {
|
|
135486
|
+
[key: string]: unknown;
|
|
135487
|
+
};
|
|
135488
|
+
};
|
|
135489
|
+
};
|
|
135490
|
+
};
|
|
135491
|
+
/** @description Validation error */
|
|
135492
|
+
400: {
|
|
135493
|
+
headers: {
|
|
135494
|
+
[name: string]: unknown;
|
|
135495
|
+
};
|
|
135496
|
+
content: {
|
|
135497
|
+
"application/json": components["schemas"]["Error"];
|
|
135498
|
+
};
|
|
135499
|
+
};
|
|
135500
|
+
/** @description Unauthorized */
|
|
135501
|
+
401: {
|
|
135502
|
+
headers: {
|
|
135503
|
+
[name: string]: unknown;
|
|
135504
|
+
};
|
|
135505
|
+
content: {
|
|
135506
|
+
"application/json": components["schemas"]["Error"];
|
|
135507
|
+
};
|
|
135508
|
+
};
|
|
135509
|
+
/** @description Forbidden */
|
|
135510
|
+
403: {
|
|
135511
|
+
headers: {
|
|
135512
|
+
[name: string]: unknown;
|
|
135513
|
+
};
|
|
135514
|
+
content: {
|
|
135515
|
+
"application/json": components["schemas"]["Error"];
|
|
135516
|
+
};
|
|
135517
|
+
};
|
|
135518
|
+
/** @description Not found */
|
|
135519
|
+
404: {
|
|
135520
|
+
headers: {
|
|
135521
|
+
[name: string]: unknown;
|
|
135522
|
+
};
|
|
135523
|
+
content: {
|
|
135524
|
+
"application/json": components["schemas"]["Error"];
|
|
135525
|
+
};
|
|
135526
|
+
};
|
|
135527
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
135528
|
+
409: {
|
|
135529
|
+
headers: {
|
|
135530
|
+
[name: string]: unknown;
|
|
135531
|
+
};
|
|
135532
|
+
content: {
|
|
135533
|
+
"application/json": components["schemas"]["Error"];
|
|
135534
|
+
};
|
|
135535
|
+
};
|
|
135536
|
+
/** @description Rate limited */
|
|
135537
|
+
429: {
|
|
135538
|
+
headers: {
|
|
135539
|
+
[name: string]: unknown;
|
|
135540
|
+
};
|
|
135541
|
+
content: {
|
|
135542
|
+
"application/json": components["schemas"]["Error"];
|
|
135543
|
+
};
|
|
135544
|
+
};
|
|
135545
|
+
};
|
|
135546
|
+
};
|
|
135547
|
+
put?: never;
|
|
135548
|
+
post?: never;
|
|
135549
|
+
delete?: never;
|
|
135550
|
+
options?: never;
|
|
135551
|
+
head?: never;
|
|
135552
|
+
patch?: never;
|
|
135553
|
+
trace?: never;
|
|
135554
|
+
};
|
|
135311
135555
|
"/followups/recontacto/readiness": {
|
|
135312
135556
|
parameters: {
|
|
135313
135557
|
query?: never;
|
package/package.json
CHANGED