@vitrina/api 14.97.10 → 14.97.12

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
@@ -136103,10 +136103,10 @@ interface paths {
136103
136103
  * "rule": "R1",
136104
136104
  * "on": false,
136105
136105
  * "value": null,
136106
- * "text": "si no responde a un seguimiento, los otros caminos esperan — días"
136106
+ * "text": "si no responde a un seguimiento, los otros caminos esperan N días (apagado)"
136107
136107
  * }
136108
136108
  * ],
136109
- * "limits_sentence": "Nunca son infinitos: cada camino termina (dejó de responder: 2 mensajes, perdido a los 7 días; nunca respondió: 2 mensajes, perdido a los 7 días; ya perdido: 1 más y fin), como máximo 3 caminos por persona cada 90 días, 4 recordatorios en el chat por conversación, hasta 200 revisiones al día en total y nunca dos mensajes automáticos a la misma persona con menos de 1 hora.",
136109
+ * "limits_sentence": "Nunca son infinitos: cada camino termina (dejó de responder: 4 mensajes, perdido a los 12 días; nunca respondió: 4 mensajes, perdido a los 12 días; ya perdido: 1 más y fin), como máximo 3 caminos por persona cada 90 días, 4 recordatorios en el chat por conversación, hasta 200 mensajes automáticos por día y nunca dos mensajes automáticos a la misma persona con menos de 1 hora.",
136110
136110
  * "guards_summary": "Siempre se respeta · horario 09:00–21:00, no contactar, ventana de WhatsApp y 15 reglas más",
136111
136111
  * "guards": [
136112
136112
  * {
@@ -136228,6 +136228,135 @@ interface paths {
136228
136228
  patch?: never;
136229
136229
  trace?: never;
136230
136230
  };
136231
+ "/followups/recontacto/next-steps": {
136232
+ parameters: {
136233
+ query?: never;
136234
+ header?: never;
136235
+ path?: never;
136236
+ cookie?: never;
136237
+ };
136238
+ /**
136239
+ * What happens next for each of a contact’s leads
136240
+ * @description The contact page’s «Próximo seguimiento»: for each open or lost lead of `contact_id` (or the one `lead_id`), newest first, the next thing the Recontacto engine does, computed by the same ladder walk and decision the sweep runs (contact hours, the night deferral, R12, the answer-debt gate). `state` is `message` (a follow-up is planned: `step` of `steps_total`, `at`, `channel`, `what`, `autonomy`, `deferred_from_label` when contact hours moved it, `due_now` when the next sweep takes it), `lose` (no more messages; marked lost at `at`), `answer_debt` (the customer wrote last), `path_cap` (R12), `paused` (the master switch is off) or `none`. `sentence` is the whole answer in one line, in `lang` (default the workspace’s). Drafts already waiting for approval or in the backlog queue are the ledger’s (`GET /followups/recontacto/attempts?contact_id=`).
136241
+ */
136242
+ get: {
136243
+ parameters: {
136244
+ query?: {
136245
+ contact_id?: string;
136246
+ lead_id?: string;
136247
+ lang?: "es" | "en";
136248
+ };
136249
+ header?: never;
136250
+ path?: never;
136251
+ cookie?: never;
136252
+ };
136253
+ requestBody?: never;
136254
+ responses: {
136255
+ /** @description Next step per lead */
136256
+ 200: {
136257
+ headers: {
136258
+ [name: string]: unknown;
136259
+ };
136260
+ content: {
136261
+ /**
136262
+ * @example {
136263
+ * "data": {
136264
+ * "timezone": "America/Santiago",
136265
+ * "leads": [
136266
+ * {
136267
+ * "lead_id": "d0125f39-6f0a-4c1e-9b7a-2a4f1c3e8b10",
136268
+ * "state": "message",
136269
+ * "situation": "never_replied",
136270
+ * "step": 2,
136271
+ * "steps_total": 4,
136272
+ * "at": "2026-10-23T20:12:00-03:00",
136273
+ * "at_label": "vie 23 oct · 20:12",
136274
+ * "elapsed_label": "8 horas",
136275
+ * "due_now": false,
136276
+ * "deferred_from_label": null,
136277
+ * "deferred_reason": null,
136278
+ * "channel": "whatsapp",
136279
+ * "what": "WhatsApp",
136280
+ * "autonomy": "auto",
136281
+ * "autonomy_label": "Automático",
136282
+ * "sentence": "Próximo seguimiento: paso 2 de 4 · WhatsApp · vie 23 oct · 20:12"
136283
+ * }
136284
+ * ]
136285
+ * }
136286
+ * }
136287
+ */
136288
+ "application/json": {
136289
+ data?: unknown;
136290
+ meta?: {
136291
+ [key: string]: unknown;
136292
+ };
136293
+ };
136294
+ };
136295
+ };
136296
+ /** @description Validation error */
136297
+ 400: {
136298
+ headers: {
136299
+ [name: string]: unknown;
136300
+ };
136301
+ content: {
136302
+ "application/json": components["schemas"]["Error"];
136303
+ };
136304
+ };
136305
+ /** @description Unauthorized */
136306
+ 401: {
136307
+ headers: {
136308
+ [name: string]: unknown;
136309
+ };
136310
+ content: {
136311
+ "application/json": components["schemas"]["Error"];
136312
+ };
136313
+ };
136314
+ /** @description Forbidden */
136315
+ 403: {
136316
+ headers: {
136317
+ [name: string]: unknown;
136318
+ };
136319
+ content: {
136320
+ "application/json": components["schemas"]["Error"];
136321
+ };
136322
+ };
136323
+ /** @description Not found */
136324
+ 404: {
136325
+ headers: {
136326
+ [name: string]: unknown;
136327
+ };
136328
+ content: {
136329
+ "application/json": components["schemas"]["Error"];
136330
+ };
136331
+ };
136332
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
136333
+ 409: {
136334
+ headers: {
136335
+ [name: string]: unknown;
136336
+ };
136337
+ content: {
136338
+ "application/json": components["schemas"]["Error"];
136339
+ };
136340
+ };
136341
+ /** @description Rate limited */
136342
+ 429: {
136343
+ headers: {
136344
+ [name: string]: unknown;
136345
+ };
136346
+ content: {
136347
+ "application/json": components["schemas"]["Error"];
136348
+ };
136349
+ };
136350
+ };
136351
+ };
136352
+ put?: never;
136353
+ post?: never;
136354
+ delete?: never;
136355
+ options?: never;
136356
+ head?: never;
136357
+ patch?: never;
136358
+ trace?: never;
136359
+ };
136231
136360
  "/followups/write-first": {
136232
136361
  parameters: {
136233
136362
  query?: never;
package/dist/index.d.ts CHANGED
@@ -136103,10 +136103,10 @@ interface paths {
136103
136103
  * "rule": "R1",
136104
136104
  * "on": false,
136105
136105
  * "value": null,
136106
- * "text": "si no responde a un seguimiento, los otros caminos esperan — días"
136106
+ * "text": "si no responde a un seguimiento, los otros caminos esperan N días (apagado)"
136107
136107
  * }
136108
136108
  * ],
136109
- * "limits_sentence": "Nunca son infinitos: cada camino termina (dejó de responder: 2 mensajes, perdido a los 7 días; nunca respondió: 2 mensajes, perdido a los 7 días; ya perdido: 1 más y fin), como máximo 3 caminos por persona cada 90 días, 4 recordatorios en el chat por conversación, hasta 200 revisiones al día en total y nunca dos mensajes automáticos a la misma persona con menos de 1 hora.",
136109
+ * "limits_sentence": "Nunca son infinitos: cada camino termina (dejó de responder: 4 mensajes, perdido a los 12 días; nunca respondió: 4 mensajes, perdido a los 12 días; ya perdido: 1 más y fin), como máximo 3 caminos por persona cada 90 días, 4 recordatorios en el chat por conversación, hasta 200 mensajes automáticos por día y nunca dos mensajes automáticos a la misma persona con menos de 1 hora.",
136110
136110
  * "guards_summary": "Siempre se respeta · horario 09:00–21:00, no contactar, ventana de WhatsApp y 15 reglas más",
136111
136111
  * "guards": [
136112
136112
  * {
@@ -136228,6 +136228,135 @@ interface paths {
136228
136228
  patch?: never;
136229
136229
  trace?: never;
136230
136230
  };
136231
+ "/followups/recontacto/next-steps": {
136232
+ parameters: {
136233
+ query?: never;
136234
+ header?: never;
136235
+ path?: never;
136236
+ cookie?: never;
136237
+ };
136238
+ /**
136239
+ * What happens next for each of a contact’s leads
136240
+ * @description The contact page’s «Próximo seguimiento»: for each open or lost lead of `contact_id` (or the one `lead_id`), newest first, the next thing the Recontacto engine does, computed by the same ladder walk and decision the sweep runs (contact hours, the night deferral, R12, the answer-debt gate). `state` is `message` (a follow-up is planned: `step` of `steps_total`, `at`, `channel`, `what`, `autonomy`, `deferred_from_label` when contact hours moved it, `due_now` when the next sweep takes it), `lose` (no more messages; marked lost at `at`), `answer_debt` (the customer wrote last), `path_cap` (R12), `paused` (the master switch is off) or `none`. `sentence` is the whole answer in one line, in `lang` (default the workspace’s). Drafts already waiting for approval or in the backlog queue are the ledger’s (`GET /followups/recontacto/attempts?contact_id=`).
136241
+ */
136242
+ get: {
136243
+ parameters: {
136244
+ query?: {
136245
+ contact_id?: string;
136246
+ lead_id?: string;
136247
+ lang?: "es" | "en";
136248
+ };
136249
+ header?: never;
136250
+ path?: never;
136251
+ cookie?: never;
136252
+ };
136253
+ requestBody?: never;
136254
+ responses: {
136255
+ /** @description Next step per lead */
136256
+ 200: {
136257
+ headers: {
136258
+ [name: string]: unknown;
136259
+ };
136260
+ content: {
136261
+ /**
136262
+ * @example {
136263
+ * "data": {
136264
+ * "timezone": "America/Santiago",
136265
+ * "leads": [
136266
+ * {
136267
+ * "lead_id": "d0125f39-6f0a-4c1e-9b7a-2a4f1c3e8b10",
136268
+ * "state": "message",
136269
+ * "situation": "never_replied",
136270
+ * "step": 2,
136271
+ * "steps_total": 4,
136272
+ * "at": "2026-10-23T20:12:00-03:00",
136273
+ * "at_label": "vie 23 oct · 20:12",
136274
+ * "elapsed_label": "8 horas",
136275
+ * "due_now": false,
136276
+ * "deferred_from_label": null,
136277
+ * "deferred_reason": null,
136278
+ * "channel": "whatsapp",
136279
+ * "what": "WhatsApp",
136280
+ * "autonomy": "auto",
136281
+ * "autonomy_label": "Automático",
136282
+ * "sentence": "Próximo seguimiento: paso 2 de 4 · WhatsApp · vie 23 oct · 20:12"
136283
+ * }
136284
+ * ]
136285
+ * }
136286
+ * }
136287
+ */
136288
+ "application/json": {
136289
+ data?: unknown;
136290
+ meta?: {
136291
+ [key: string]: unknown;
136292
+ };
136293
+ };
136294
+ };
136295
+ };
136296
+ /** @description Validation error */
136297
+ 400: {
136298
+ headers: {
136299
+ [name: string]: unknown;
136300
+ };
136301
+ content: {
136302
+ "application/json": components["schemas"]["Error"];
136303
+ };
136304
+ };
136305
+ /** @description Unauthorized */
136306
+ 401: {
136307
+ headers: {
136308
+ [name: string]: unknown;
136309
+ };
136310
+ content: {
136311
+ "application/json": components["schemas"]["Error"];
136312
+ };
136313
+ };
136314
+ /** @description Forbidden */
136315
+ 403: {
136316
+ headers: {
136317
+ [name: string]: unknown;
136318
+ };
136319
+ content: {
136320
+ "application/json": components["schemas"]["Error"];
136321
+ };
136322
+ };
136323
+ /** @description Not found */
136324
+ 404: {
136325
+ headers: {
136326
+ [name: string]: unknown;
136327
+ };
136328
+ content: {
136329
+ "application/json": components["schemas"]["Error"];
136330
+ };
136331
+ };
136332
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
136333
+ 409: {
136334
+ headers: {
136335
+ [name: string]: unknown;
136336
+ };
136337
+ content: {
136338
+ "application/json": components["schemas"]["Error"];
136339
+ };
136340
+ };
136341
+ /** @description Rate limited */
136342
+ 429: {
136343
+ headers: {
136344
+ [name: string]: unknown;
136345
+ };
136346
+ content: {
136347
+ "application/json": components["schemas"]["Error"];
136348
+ };
136349
+ };
136350
+ };
136351
+ };
136352
+ put?: never;
136353
+ post?: never;
136354
+ delete?: never;
136355
+ options?: never;
136356
+ head?: never;
136357
+ patch?: never;
136358
+ trace?: never;
136359
+ };
136231
136360
  "/followups/write-first": {
136232
136361
  parameters: {
136233
136362
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.97.10",
3
+ "version": "14.97.12",
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",