@vitrina/api 14.103.7 → 14.104.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
@@ -135716,7 +135716,7 @@ interface paths {
135716
135716
  };
135717
135717
  /**
135718
135718
  * Get the Recontacto cadence configuration
135719
- * @description Situations are code (`never_replied`, `stalled`, `lost`, plus the seen-without-reply nudge); everything inside one is editable. A rung waits `after_hours` since the PREVIOUS rung (rung 1: since the silence) and rides one of `whatsapp | instagram | email | voice`; `unit` is the editor’s display preference and the engine never reads it. There is no per-lead cap — the rails are the cap; `daily_cap` is the volume control. `max_evaluations_per_step` bounds how many times a rung may be reconsidered without contacting anyone. `pacing` is «Ritmo» (every pacing rule, off by default except `entry_max_silence_days` 45, `max_paths_per_lead` 3 and `max_messages_per_person_90d` 12): `min_gap_hours` (R2), `max_per_day` (R5; a healthcare workspace reads 1 when none is stored, and null keeps 1), `pause_after_unanswered_days` (R1), `approval_after_silence_days` (R9), `approval_fallback_hours` (R11), `entry_max_silence_days` (R10), `hot_leads_faster` (R6), `max_paths_per_lead` (R12, per person across all their leads and chat rows), `max_messages_per_person_90d` (R13: unanswered Recontacto messages one person may get in any 90 days, every rail together). `unanswered_message.template_after_window` is R7 (on). `min_hours_between_touches` is an alias of `pacing.min_gap_hours`. `after_handoff` is «Después de pasarlo a una persona», for a conversation the AI handed to a person until it is returned to the AI: `followups` `draft_for_owner` (default: each step a draft for whoever handles it), `automatic` or `off`; `auto_send_after_hours` (default 24, null = never) sends an unreviewed draft by itself inside contact hours (a teammate’s promised time wins); `ai_answers_waiting_after_hours` (default 2, null = only the 30-minute reminder) lets the AI answer a customer nobody answered. Only a handoff the AI could have followed up (a missing fact, an unfinished turn) gets drafts or an AI answer; after a complaint, a request for a person or a step only a person can do (pay, receive the device, confirm stock or a price) the AI writes nothing on its own (G50). A person whose lead is in a bottom-funnel stage gets no follow-ups at all (G52).
135719
+ * @description Situations are code (`never_replied`, `stalled`, `lost`, plus the seen-without-reply nudge); everything inside one is editable. A rung waits `after_hours` since the PREVIOUS rung (rung 1: since the silence) and rides one of `whatsapp | instagram | email | voice`; `unit` is the editor’s display preference and the engine never reads it. There is no per-lead cap — the rails are the cap; `daily_cap` is the volume control. `max_evaluations_per_step` bounds how many times a rung may be reconsidered without contacting anyone. `pacing` is «Ritmo» (every pacing rule, off by default except `entry_max_silence_days` 45, `max_paths_per_lead` 3 and `max_messages_per_person_90d` 12): `min_gap_hours` (R2), `max_per_day` (R5; a healthcare workspace reads 1 when none is stored, and null keeps 1), `pause_after_unanswered_days` (R1), `approval_after_silence_days` (R9), `approval_fallback_hours` (R11), `entry_max_silence_days` (R10), `hot_leads_faster` (R6), `max_paths_per_lead` (R12, per person across all their leads and chat rows), `max_messages_per_person_90d` (R13: unanswered Recontacto messages one person may get in any 90 days, every rail together). `unanswered_message.template_after_window` is R7 (on). `min_hours_between_touches` is an alias of `pacing.min_gap_hours`. `after_handoff` is «Después de pasarlo a una persona» (A9.2): a conversation is silent from an AI handoff of any kind or a teammate takeover until «Devolver a la IA» or the close. `while_silent` (stored as `followups` + `auto_send_after_hours`): `draft_and_remind` (default: each due step a draft for whoever handles it, sent by hand), `draft_auto_send` (the draft sends itself after `auto_send_after_hours`, 1 to 144, inside contact hours; a teammate’s promised time wins), `remind_only` (no draft; whoever handles it is reminded) or `nothing`. `ai_answers_waiting`: `never` (default: whoever handles it is reminded at 30 minutes, then an admin), `after_minutes` (the AI answers after `ai_answers_waiting_after_minutes`, 5 to 720) or `after_quiet_days` (only a customer back after 7 quiet days). `ai_answers_waiting_after_hours` is the older spelling (N = `after_minutes` with N × 60, null = `never`). A person whose lead is in a late stage (visit scheduled or done, a sale under way) gets no follow-ups for 14 days after entering it or their last message (G52); then the ladder resumes through the backlog queue.
135720
135720
  */
135721
135721
  get: {
135722
135722
  parameters: {
@@ -135821,8 +135821,11 @@ interface paths {
135821
135821
  * },
135822
135822
  * "after_handoff": {
135823
135823
  * "followups": "draft_for_owner",
135824
- * "auto_send_after_hours": 24,
135825
- * "ai_answers_waiting_after_hours": 2
135824
+ * "auto_send_after_hours": null,
135825
+ * "while_silent": "draft_and_remind",
135826
+ * "ai_answers_waiting": "never",
135827
+ * "ai_answers_waiting_after_minutes": 30,
135828
+ * "ai_answers_waiting_after_hours": null
135826
135829
  * },
135827
135830
  * "last_run_at": null
135828
135831
  * }
@@ -135894,7 +135897,7 @@ interface paths {
135894
135897
  };
135895
135898
  /**
135896
135899
  * Update the Recontacto cadence configuration
135897
- * @description Partial patch. A patch that LOOSENS outbound additionally requires `campaigns:write`: enabling Recontacto or the chat rail; any step set to `auto` or `assignee`; setting `pacing.approval_fallback_hours`; clearing or raising `pacing.max_per_day`, `pacing.min_gap_hours` (or `min_hours_between_touches`), `pacing.pause_after_unanswered_days` or `pacing.approval_after_silence_days`; raising `pacing.max_paths_per_lead`, `pacing.max_messages_per_person_90d` or `pacing.entry_max_silence_days`; turning `unanswered_message.template_after_window` or `pacing.hot_leads_faster` on; `after_handoff.followups` set to `automatic` (or back to drafts from `off` while they send themselves), or `after_handoff.auto_send_after_hours` / `ai_answers_waiting_after_hours` set where they were off or made shorter. Tightening needs only `followups:write`. `min_hours_between_touches` and `pacing.min_gap_hours` are one setting; `pacing.min_gap_hours` wins when both are sent.
135900
+ * @description Partial patch. A patch that LOOSENS outbound additionally requires `campaigns:write`: enabling Recontacto or the chat rail; any step set to `auto` or `assignee`; setting `pacing.approval_fallback_hours`; clearing or raising `pacing.max_per_day`, `pacing.min_gap_hours` (or `min_hours_between_touches`), `pacing.pause_after_unanswered_days` or `pacing.approval_after_silence_days`; raising `pacing.max_paths_per_lead`, `pacing.max_messages_per_person_90d` or `pacing.entry_max_silence_days`; turning `unanswered_message.template_after_window` or `pacing.hot_leads_faster` on; `after_handoff` letting the draft send itself where it did not (or sooner), or the AI answer a waiting customer where it did not (`never` → `after_quiet_days` → `after_minutes`, or fewer minutes). Tightening needs only `followups:write`. `min_hours_between_touches` and `pacing.min_gap_hours` are one setting; `pacing.min_gap_hours` wins when both are sent.
135898
135901
  */
135899
135902
  put: {
135900
135903
  parameters: {
@@ -135990,8 +135993,13 @@ interface paths {
135990
135993
  };
135991
135994
  after_handoff?: {
135992
135995
  /** @enum {string} */
135993
- followups?: "draft_for_owner" | "automatic" | "off";
135996
+ while_silent?: "draft_and_remind" | "draft_auto_send" | "remind_only" | "nothing";
135997
+ /** @enum {string} */
135998
+ followups?: "draft_for_owner" | "remind_only" | "off" | "automatic";
135994
135999
  auto_send_after_hours?: number | null;
136000
+ /** @enum {string} */
136001
+ ai_answers_waiting?: "never" | "after_minutes" | "after_quiet_days";
136002
+ ai_answers_waiting_after_minutes?: number;
135995
136003
  ai_answers_waiting_after_hours?: number | null;
135996
136004
  };
135997
136005
  };
@@ -136092,8 +136100,11 @@ interface paths {
136092
136100
  * },
136093
136101
  * "after_handoff": {
136094
136102
  * "followups": "draft_for_owner",
136095
- * "auto_send_after_hours": 24,
136096
- * "ai_answers_waiting_after_hours": 2
136103
+ * "auto_send_after_hours": null,
136104
+ * "while_silent": "draft_and_remind",
136105
+ * "ai_answers_waiting": "never",
136106
+ * "ai_answers_waiting_after_minutes": 30,
136107
+ * "ai_answers_waiting_after_hours": null
136097
136108
  * },
136098
136109
  * "last_run_at": null
136099
136110
  * }
@@ -136762,15 +136773,20 @@ interface paths {
136762
136773
  * },
136763
136774
  * "after_handoff": {
136764
136775
  * "followups": "draft_for_owner",
136765
- * "auto_send_after_hours": 24,
136766
- * "ai_answers_waiting_after_hours": 2,
136776
+ * "auto_send_after_hours": null,
136777
+ * "while_silent": "draft_and_remind",
136778
+ * "ai_answers_waiting": "never",
136779
+ * "ai_answers_waiting_after_minutes": 30,
136780
+ * "ai_answers_waiting_after_hours": null,
136767
136781
  * "reminder_minutes": 30,
136768
136782
  * "controls": {
136769
136783
  * "followups": true,
136770
136784
  * "auto_send_after_hours": true,
136771
- * "ai_answers_waiting_after_hours": true
136785
+ * "ai_answers_waiting_after_hours": true,
136786
+ * "while_silent": true,
136787
+ * "ai_answers_waiting": true
136772
136788
  * },
136773
- * "summary": "Después de pasarlo a una persona · borrador para quien lo atiende, se envía solo a las 24 horas si nadie lo revisa; si el cliente espera, responde la IA a las 2 horas. Si fue por un reclamo, porque pidió una persona o por algo que solo puede hacer el equipo, la IA no escribe sola.",
136789
+ * "summary": "Después de pasarlo a una persona · borrador para quien lo atiende, sale solo si lo envía; si el cliente espera, le avisamos a quien lo atiende. La IA no le escribe a una conversación que atiende una persona hasta que alguien la devuelve a la IA.",
136774
136790
  * "now": {
136775
136791
  * "conversations": 2,
136776
136792
  * "by_class": {
package/dist/index.d.ts CHANGED
@@ -135716,7 +135716,7 @@ interface paths {
135716
135716
  };
135717
135717
  /**
135718
135718
  * Get the Recontacto cadence configuration
135719
- * @description Situations are code (`never_replied`, `stalled`, `lost`, plus the seen-without-reply nudge); everything inside one is editable. A rung waits `after_hours` since the PREVIOUS rung (rung 1: since the silence) and rides one of `whatsapp | instagram | email | voice`; `unit` is the editor’s display preference and the engine never reads it. There is no per-lead cap — the rails are the cap; `daily_cap` is the volume control. `max_evaluations_per_step` bounds how many times a rung may be reconsidered without contacting anyone. `pacing` is «Ritmo» (every pacing rule, off by default except `entry_max_silence_days` 45, `max_paths_per_lead` 3 and `max_messages_per_person_90d` 12): `min_gap_hours` (R2), `max_per_day` (R5; a healthcare workspace reads 1 when none is stored, and null keeps 1), `pause_after_unanswered_days` (R1), `approval_after_silence_days` (R9), `approval_fallback_hours` (R11), `entry_max_silence_days` (R10), `hot_leads_faster` (R6), `max_paths_per_lead` (R12, per person across all their leads and chat rows), `max_messages_per_person_90d` (R13: unanswered Recontacto messages one person may get in any 90 days, every rail together). `unanswered_message.template_after_window` is R7 (on). `min_hours_between_touches` is an alias of `pacing.min_gap_hours`. `after_handoff` is «Después de pasarlo a una persona», for a conversation the AI handed to a person until it is returned to the AI: `followups` `draft_for_owner` (default: each step a draft for whoever handles it), `automatic` or `off`; `auto_send_after_hours` (default 24, null = never) sends an unreviewed draft by itself inside contact hours (a teammate’s promised time wins); `ai_answers_waiting_after_hours` (default 2, null = only the 30-minute reminder) lets the AI answer a customer nobody answered. Only a handoff the AI could have followed up (a missing fact, an unfinished turn) gets drafts or an AI answer; after a complaint, a request for a person or a step only a person can do (pay, receive the device, confirm stock or a price) the AI writes nothing on its own (G50). A person whose lead is in a bottom-funnel stage gets no follow-ups at all (G52).
135719
+ * @description Situations are code (`never_replied`, `stalled`, `lost`, plus the seen-without-reply nudge); everything inside one is editable. A rung waits `after_hours` since the PREVIOUS rung (rung 1: since the silence) and rides one of `whatsapp | instagram | email | voice`; `unit` is the editor’s display preference and the engine never reads it. There is no per-lead cap — the rails are the cap; `daily_cap` is the volume control. `max_evaluations_per_step` bounds how many times a rung may be reconsidered without contacting anyone. `pacing` is «Ritmo» (every pacing rule, off by default except `entry_max_silence_days` 45, `max_paths_per_lead` 3 and `max_messages_per_person_90d` 12): `min_gap_hours` (R2), `max_per_day` (R5; a healthcare workspace reads 1 when none is stored, and null keeps 1), `pause_after_unanswered_days` (R1), `approval_after_silence_days` (R9), `approval_fallback_hours` (R11), `entry_max_silence_days` (R10), `hot_leads_faster` (R6), `max_paths_per_lead` (R12, per person across all their leads and chat rows), `max_messages_per_person_90d` (R13: unanswered Recontacto messages one person may get in any 90 days, every rail together). `unanswered_message.template_after_window` is R7 (on). `min_hours_between_touches` is an alias of `pacing.min_gap_hours`. `after_handoff` is «Después de pasarlo a una persona» (A9.2): a conversation is silent from an AI handoff of any kind or a teammate takeover until «Devolver a la IA» or the close. `while_silent` (stored as `followups` + `auto_send_after_hours`): `draft_and_remind` (default: each due step a draft for whoever handles it, sent by hand), `draft_auto_send` (the draft sends itself after `auto_send_after_hours`, 1 to 144, inside contact hours; a teammate’s promised time wins), `remind_only` (no draft; whoever handles it is reminded) or `nothing`. `ai_answers_waiting`: `never` (default: whoever handles it is reminded at 30 minutes, then an admin), `after_minutes` (the AI answers after `ai_answers_waiting_after_minutes`, 5 to 720) or `after_quiet_days` (only a customer back after 7 quiet days). `ai_answers_waiting_after_hours` is the older spelling (N = `after_minutes` with N × 60, null = `never`). A person whose lead is in a late stage (visit scheduled or done, a sale under way) gets no follow-ups for 14 days after entering it or their last message (G52); then the ladder resumes through the backlog queue.
135720
135720
  */
135721
135721
  get: {
135722
135722
  parameters: {
@@ -135821,8 +135821,11 @@ interface paths {
135821
135821
  * },
135822
135822
  * "after_handoff": {
135823
135823
  * "followups": "draft_for_owner",
135824
- * "auto_send_after_hours": 24,
135825
- * "ai_answers_waiting_after_hours": 2
135824
+ * "auto_send_after_hours": null,
135825
+ * "while_silent": "draft_and_remind",
135826
+ * "ai_answers_waiting": "never",
135827
+ * "ai_answers_waiting_after_minutes": 30,
135828
+ * "ai_answers_waiting_after_hours": null
135826
135829
  * },
135827
135830
  * "last_run_at": null
135828
135831
  * }
@@ -135894,7 +135897,7 @@ interface paths {
135894
135897
  };
135895
135898
  /**
135896
135899
  * Update the Recontacto cadence configuration
135897
- * @description Partial patch. A patch that LOOSENS outbound additionally requires `campaigns:write`: enabling Recontacto or the chat rail; any step set to `auto` or `assignee`; setting `pacing.approval_fallback_hours`; clearing or raising `pacing.max_per_day`, `pacing.min_gap_hours` (or `min_hours_between_touches`), `pacing.pause_after_unanswered_days` or `pacing.approval_after_silence_days`; raising `pacing.max_paths_per_lead`, `pacing.max_messages_per_person_90d` or `pacing.entry_max_silence_days`; turning `unanswered_message.template_after_window` or `pacing.hot_leads_faster` on; `after_handoff.followups` set to `automatic` (or back to drafts from `off` while they send themselves), or `after_handoff.auto_send_after_hours` / `ai_answers_waiting_after_hours` set where they were off or made shorter. Tightening needs only `followups:write`. `min_hours_between_touches` and `pacing.min_gap_hours` are one setting; `pacing.min_gap_hours` wins when both are sent.
135900
+ * @description Partial patch. A patch that LOOSENS outbound additionally requires `campaigns:write`: enabling Recontacto or the chat rail; any step set to `auto` or `assignee`; setting `pacing.approval_fallback_hours`; clearing or raising `pacing.max_per_day`, `pacing.min_gap_hours` (or `min_hours_between_touches`), `pacing.pause_after_unanswered_days` or `pacing.approval_after_silence_days`; raising `pacing.max_paths_per_lead`, `pacing.max_messages_per_person_90d` or `pacing.entry_max_silence_days`; turning `unanswered_message.template_after_window` or `pacing.hot_leads_faster` on; `after_handoff` letting the draft send itself where it did not (or sooner), or the AI answer a waiting customer where it did not (`never` → `after_quiet_days` → `after_minutes`, or fewer minutes). Tightening needs only `followups:write`. `min_hours_between_touches` and `pacing.min_gap_hours` are one setting; `pacing.min_gap_hours` wins when both are sent.
135898
135901
  */
135899
135902
  put: {
135900
135903
  parameters: {
@@ -135990,8 +135993,13 @@ interface paths {
135990
135993
  };
135991
135994
  after_handoff?: {
135992
135995
  /** @enum {string} */
135993
- followups?: "draft_for_owner" | "automatic" | "off";
135996
+ while_silent?: "draft_and_remind" | "draft_auto_send" | "remind_only" | "nothing";
135997
+ /** @enum {string} */
135998
+ followups?: "draft_for_owner" | "remind_only" | "off" | "automatic";
135994
135999
  auto_send_after_hours?: number | null;
136000
+ /** @enum {string} */
136001
+ ai_answers_waiting?: "never" | "after_minutes" | "after_quiet_days";
136002
+ ai_answers_waiting_after_minutes?: number;
135995
136003
  ai_answers_waiting_after_hours?: number | null;
135996
136004
  };
135997
136005
  };
@@ -136092,8 +136100,11 @@ interface paths {
136092
136100
  * },
136093
136101
  * "after_handoff": {
136094
136102
  * "followups": "draft_for_owner",
136095
- * "auto_send_after_hours": 24,
136096
- * "ai_answers_waiting_after_hours": 2
136103
+ * "auto_send_after_hours": null,
136104
+ * "while_silent": "draft_and_remind",
136105
+ * "ai_answers_waiting": "never",
136106
+ * "ai_answers_waiting_after_minutes": 30,
136107
+ * "ai_answers_waiting_after_hours": null
136097
136108
  * },
136098
136109
  * "last_run_at": null
136099
136110
  * }
@@ -136762,15 +136773,20 @@ interface paths {
136762
136773
  * },
136763
136774
  * "after_handoff": {
136764
136775
  * "followups": "draft_for_owner",
136765
- * "auto_send_after_hours": 24,
136766
- * "ai_answers_waiting_after_hours": 2,
136776
+ * "auto_send_after_hours": null,
136777
+ * "while_silent": "draft_and_remind",
136778
+ * "ai_answers_waiting": "never",
136779
+ * "ai_answers_waiting_after_minutes": 30,
136780
+ * "ai_answers_waiting_after_hours": null,
136767
136781
  * "reminder_minutes": 30,
136768
136782
  * "controls": {
136769
136783
  * "followups": true,
136770
136784
  * "auto_send_after_hours": true,
136771
- * "ai_answers_waiting_after_hours": true
136785
+ * "ai_answers_waiting_after_hours": true,
136786
+ * "while_silent": true,
136787
+ * "ai_answers_waiting": true
136772
136788
  * },
136773
- * "summary": "Después de pasarlo a una persona · borrador para quien lo atiende, se envía solo a las 24 horas si nadie lo revisa; si el cliente espera, responde la IA a las 2 horas. Si fue por un reclamo, porque pidió una persona o por algo que solo puede hacer el equipo, la IA no escribe sola.",
136789
+ * "summary": "Después de pasarlo a una persona · borrador para quien lo atiende, sale solo si lo envía; si el cliente espera, le avisamos a quien lo atiende. La IA no le escribe a una conversación que atiende una persona hasta que alguien la devuelve a la IA.",
136774
136790
  * "now": {
136775
136791
  * "conversations": 2,
136776
136792
  * "by_class": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.103.7",
3
+ "version": "14.104.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",