@vitrina/api 14.104.0 → 14.105.1
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 +58 -2
- package/dist/index.d.ts +58 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2062,6 +2062,16 @@ 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
|
+
/**
|
|
2066
|
+
* @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
|
+
* @enum {string}
|
|
2068
|
+
*/
|
|
2069
|
+
opening_marks?: "inherit" | "none" | "keep";
|
|
2070
|
+
/**
|
|
2071
|
+
* @description «Trato» for this agent. `inherit` (default): the workspace's `voice.agent_register`. `tu`, `usted`, or `mirror` (tú until the customer uses usted); wins over the agent's instructions.
|
|
2072
|
+
* @enum {string}
|
|
2073
|
+
*/
|
|
2074
|
+
register?: "inherit" | "tu" | "usted" | "mirror";
|
|
2065
2075
|
};
|
|
2066
2076
|
/** @description The `draft_version` version you last read (the `X-Config-Version` response header, or the version field in the body). If it is no longer current the write is refused with 409 `VERSION_CONFLICT` and nothing is written; the error carries the current version and a diff hint. Optional for backward compatibility (an omitted value is accepted and logged), but send it: without it two editors silently overwrite each other. The `If-Match` header is accepted as an alternative. */
|
|
2067
2077
|
expected_version?: number | null;
|
|
@@ -2303,6 +2313,16 @@ interface paths {
|
|
|
2303
2313
|
urgency_slots: boolean;
|
|
2304
2314
|
/** @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. */
|
|
2305
2315
|
specialist_fallback: boolean;
|
|
2316
|
+
/**
|
|
2317
|
+
* @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
|
+
* @enum {string}
|
|
2319
|
+
*/
|
|
2320
|
+
opening_marks?: "inherit" | "none" | "keep";
|
|
2321
|
+
/**
|
|
2322
|
+
* @description «Trato» for this agent. `inherit` (default): the workspace's `voice.agent_register`. `tu`, `usted`, or `mirror` (tú until the customer uses usted); wins over the agent's instructions.
|
|
2323
|
+
* @enum {string}
|
|
2324
|
+
*/
|
|
2325
|
+
register?: "inherit" | "tu" | "usted" | "mirror";
|
|
2306
2326
|
};
|
|
2307
2327
|
draft: {
|
|
2308
2328
|
/**
|
|
@@ -2316,6 +2336,16 @@ interface paths {
|
|
|
2316
2336
|
urgency_slots: boolean;
|
|
2317
2337
|
/** @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. */
|
|
2318
2338
|
specialist_fallback: boolean;
|
|
2339
|
+
/**
|
|
2340
|
+
* @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
|
+
* @enum {string}
|
|
2342
|
+
*/
|
|
2343
|
+
opening_marks?: "inherit" | "none" | "keep";
|
|
2344
|
+
/**
|
|
2345
|
+
* @description «Trato» for this agent. `inherit` (default): the workspace's `voice.agent_register`. `tu`, `usted`, or `mirror` (tú until the customer uses usted); wins over the agent's instructions.
|
|
2346
|
+
* @enum {string}
|
|
2347
|
+
*/
|
|
2348
|
+
register?: "inherit" | "tu" | "usted" | "mirror";
|
|
2319
2349
|
} | null;
|
|
2320
2350
|
price_policy_conflicts: {
|
|
2321
2351
|
/** @enum {string} */
|
|
@@ -136616,7 +136646,7 @@ interface paths {
|
|
|
136616
136646
|
};
|
|
136617
136647
|
/**
|
|
136618
136648
|
* What a customer who stops answering receives (simulated)
|
|
136619
|
-
* @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`, `max_per_day`, `automated_gap`, `person_ceiling`, `daily_cap`) with its sentence, and `deferred_codes` lists every reason that moved it, and `hot_at` when R6 moves it for a hot lead; a drawn step the engine never sends has `sends: false` and `not_sent_reason`. Also: `header_sentence`, each scenario’s hero `sentence`, `pacing_summary` (the collapsed «Ritmo» line: the rules that are on) and `pacing` (every «Ritmo» rule R1–R13 with `on` and `value`), `limits_sentence` (every bound on what one person can receive, with the workspace values), row `warnings` for the editor (a first contact under 12 h, approval rows’ real send rate, Instagram past 24 h), `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; `hours` is R11), `today` (sent, not sent, went to approval, awaiting approval, and the R8 counter `would_need_approval` of `due`, `failed` (follow-ups sent today that did not arrive) and `failed_actionable` (of those, the ones a person can retry or fix; never a number WhatsApp cannot deliver to), and `cap`: what the day used of the daily cap and the AI review budget, the spent one in `reached` with its `sentence` and `resumes_at`; while one is spent, rows at «now» that fall today move to tomorrow with `deferred_code: daily_cap`; and `backlog`, the whole queue’s drain: `queued`, `per_day`, `days` (first to last estimated release, inclusive), `last_release_on` and `sentence` «En cola: N, se reparte en ~D días (hasta el …)», null when nothing is queued) and `queue` (each queued backlog step’s estimated release day, 10 per tenant per day; `contact_id` or `lead_id` narrows it), and `after_handoff` («Después de pasarlo a una persona»: `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours`, `reminder_minutes` and the block’s collapsed line `summary`, `controls` (which of `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours` do anything here: the AI-answer control is false at a clinic, where D73 and the teammate-reply resume run instead), and `now`, the live state: `conversations` with the team after an AI handoff, `by_class` (`informational`, `operational`, `sensitive`), `drafts_self_sending`, `customers_waiting`, the fact line `sentence` and `people` (one per conversation: `contact_id`, `contact_name`, `conversation_id`, `conversation_display_id`, `owner_user_id`, `owner_name`, `class`, `draft_auto_send_at`, `draft_auto_send_at_label`, `waiting_since`, `waited_hours`, `waited_label`, `promise_overdue`, `promise_label`, `next` (`kind` `draft` | `step` | `held` | `none`, `at_label`, `label`: the next step as one short fact, from the same facts as `sentence`), `sentence`; a broken promise sorts first), `truncated`; null when the read failed). `today.not_sent` counts people with a step that ended without a send today and no send at all today. All copy is in `lang` (default the workspace’s).
|
|
136649
|
+
* @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`, `max_per_day`, `automated_gap`, `person_ceiling`, `daily_cap`) with its sentence, and `deferred_codes` lists every reason that moved it, and `hot_at` when R6 moves it for a hot lead; a drawn step the engine never sends has `sends: false` and `not_sent_reason`. Also: `header_sentence`, each scenario’s hero `sentence`, `pacing_summary` (the collapsed «Ritmo» line: the rules that are on) and `pacing` (every «Ritmo» rule R1–R13 with `on` and `value`), `limits_sentence` (every bound on what one person can receive, with the workspace values), row `warnings` for the editor (a first contact under 12 h, approval rows’ real send rate, Instagram past 24 h), `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; `hours` is R11), `today` (sent, not sent, went to approval, awaiting approval, and the R8 counter `would_need_approval` of `due`, `failed` (follow-ups sent today that did not arrive) and `failed_actionable` (of those, the ones a person can retry or fix; never a number WhatsApp cannot deliver to), and `cap`: what the day used of the daily cap and the AI review budget, the spent one in `reached` with its `sentence` and `resumes_at`; while one is spent, rows at «now» that fall today move to tomorrow with `deferred_code: daily_cap`; and `backlog`, the whole queue’s drain: `queued`, `per_day`, `days` (first to last estimated release, inclusive), `last_release_on` and `sentence` «En cola: N, se reparte en ~D días (hasta el …)», null when nothing is queued) and `queue` (each queued backlog step’s estimated release day, 10 per tenant per day; `contact_id` or `lead_id` narrows it), and `after_handoff` («Después de pasarlo a una persona»: `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours`, `reminder_minutes` and the block’s collapsed line `summary`, `controls` (which of `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours` do anything here: the AI-answer control is false at a clinic, where D73 and the teammate-reply resume run instead), and `now`, the live state: `conversations` with the team after an AI handoff or a teammate takeover, `by_class` (`informational`, `operational`, `sensitive`, and `takeover` for chats a teammate took without a handoff), `drafts` (waiting in «Por aprobar»), `drafts_self_sending`, `customers_waiting`, the fact line `sentence` and `people` (one per conversation: `contact_id`, `contact_name`, `conversation_id`, `conversation_display_id`, `owner_user_id`, `owner_name`, `class`, `trigger` (`ai_handoff` | `teammate`), `has_draft`, `draft_auto_send_at`, `draft_auto_send_at_label`, `waiting_since`, `waited_hours`, `waited_label`, `promise_overdue`, `promise_label`, `next` (`kind` `draft` | `step` | `held` | `none`, `at_label`, `label`: the next step as one short fact, from the same facts as `sentence`), `sentence`; a broken promise sorts first), `truncated`; null when the read failed). `today.not_sent` counts people with a step that ended without a send today and no send at all today. All copy is in `lang` (default the workspace’s).
|
|
136620
136650
|
*/
|
|
136621
136651
|
get: {
|
|
136622
136652
|
parameters: {
|
|
@@ -136792,8 +136822,10 @@ interface paths {
|
|
|
136792
136822
|
* "by_class": {
|
|
136793
136823
|
* "informational": 1,
|
|
136794
136824
|
* "operational": 1,
|
|
136795
|
-
* "sensitive": 0
|
|
136825
|
+
* "sensitive": 0,
|
|
136826
|
+
* "takeover": 0
|
|
136796
136827
|
* },
|
|
136828
|
+
* "drafts": 1,
|
|
136797
136829
|
* "drafts_self_sending": 1,
|
|
136798
136830
|
* "customers_waiting": 0,
|
|
136799
136831
|
* "sentence": "Ahora: 2 conversaciones con el equipo · 1 borrador por enviarse solo",
|
|
@@ -136806,6 +136838,8 @@ interface paths {
|
|
|
136806
136838
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136807
136839
|
* "owner_name": "Diego Navarrete",
|
|
136808
136840
|
* "class": "informational",
|
|
136841
|
+
* "trigger": "ai_handoff",
|
|
136842
|
+
* "has_draft": true,
|
|
136809
136843
|
* "draft_auto_send_at": "2026-10-25T16:30:00-03:00",
|
|
136810
136844
|
* "draft_auto_send_at_label": "mañana 16:30",
|
|
136811
136845
|
* "waiting_since": null,
|
|
@@ -136828,6 +136862,8 @@ interface paths {
|
|
|
136828
136862
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136829
136863
|
* "owner_name": "Diego Navarrete",
|
|
136830
136864
|
* "class": "operational",
|
|
136865
|
+
* "trigger": "ai_handoff",
|
|
136866
|
+
* "has_draft": false,
|
|
136831
136867
|
* "draft_auto_send_at": null,
|
|
136832
136868
|
* "draft_auto_send_at_label": null,
|
|
136833
136869
|
* "waiting_since": null,
|
|
@@ -221679,6 +221715,16 @@ interface components {
|
|
|
221679
221715
|
* @enum {string}
|
|
221680
221716
|
*/
|
|
221681
221717
|
register?: "tu" | "usted";
|
|
221718
|
+
/**
|
|
221719
|
+
* @description «Signos de apertura» in the AI's chat replies and follow-ups. `none` (default when absent): no opening «¿» «¡», the way people type in a Chilean chat; removed at send time from every AI message. `keep`: the agent writes them. An agent can override it (`behavior_policies.opening_marks`).
|
|
221720
|
+
* @enum {string}
|
|
221721
|
+
*/
|
|
221722
|
+
opening_marks?: "none" | "keep";
|
|
221723
|
+
/**
|
|
221724
|
+
* @description «Trato» of the AI agents: `tu`, `usted`, or `mirror` (tú until the customer uses usted). Absent: each agent's own instructions decide. Wins over the agent's instructions; an agent can override it (`behavior_policies.register`).
|
|
221725
|
+
* @enum {string}
|
|
221726
|
+
*/
|
|
221727
|
+
agent_register?: "tu" | "usted" | "mirror";
|
|
221682
221728
|
};
|
|
221683
221729
|
/** @description The AI agent's vocabulary: the workspace's banned terms; absent until set. */
|
|
221684
221730
|
agent_language?: {
|
|
@@ -221775,6 +221821,16 @@ interface components {
|
|
|
221775
221821
|
* @enum {string}
|
|
221776
221822
|
*/
|
|
221777
221823
|
register?: "tu" | "usted";
|
|
221824
|
+
/**
|
|
221825
|
+
* @description «Signos de apertura» in the AI's chat replies and follow-ups. `none` (default when absent): no opening «¿» «¡», the way people type in a Chilean chat; removed at send time from every AI message. `keep`: the agent writes them. An agent can override it (`behavior_policies.opening_marks`).
|
|
221826
|
+
* @enum {string}
|
|
221827
|
+
*/
|
|
221828
|
+
opening_marks?: "none" | "keep";
|
|
221829
|
+
/**
|
|
221830
|
+
* @description «Trato» of the AI agents: `tu`, `usted`, or `mirror` (tú until the customer uses usted). Absent: each agent's own instructions decide. Wins over the agent's instructions; an agent can override it (`behavior_policies.register`).
|
|
221831
|
+
* @enum {string}
|
|
221832
|
+
*/
|
|
221833
|
+
agent_register?: "tu" | "usted" | "mirror";
|
|
221778
221834
|
} | null;
|
|
221779
221835
|
agent_language?: {
|
|
221780
221836
|
/** @description Words the AI agent must never write to customers (case- and accent-insensitive, whole words), merged with the platform es-CL list. A reply that uses one is rewritten without it before it is sent. Up to 100 terms of 2 to 60 characters. */
|
package/dist/index.d.ts
CHANGED
|
@@ -2062,6 +2062,16 @@ 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
|
+
/**
|
|
2066
|
+
* @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
|
+
* @enum {string}
|
|
2068
|
+
*/
|
|
2069
|
+
opening_marks?: "inherit" | "none" | "keep";
|
|
2070
|
+
/**
|
|
2071
|
+
* @description «Trato» for this agent. `inherit` (default): the workspace's `voice.agent_register`. `tu`, `usted`, or `mirror` (tú until the customer uses usted); wins over the agent's instructions.
|
|
2072
|
+
* @enum {string}
|
|
2073
|
+
*/
|
|
2074
|
+
register?: "inherit" | "tu" | "usted" | "mirror";
|
|
2065
2075
|
};
|
|
2066
2076
|
/** @description The `draft_version` version you last read (the `X-Config-Version` response header, or the version field in the body). If it is no longer current the write is refused with 409 `VERSION_CONFLICT` and nothing is written; the error carries the current version and a diff hint. Optional for backward compatibility (an omitted value is accepted and logged), but send it: without it two editors silently overwrite each other. The `If-Match` header is accepted as an alternative. */
|
|
2067
2077
|
expected_version?: number | null;
|
|
@@ -2303,6 +2313,16 @@ interface paths {
|
|
|
2303
2313
|
urgency_slots: boolean;
|
|
2304
2314
|
/** @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. */
|
|
2305
2315
|
specialist_fallback: boolean;
|
|
2316
|
+
/**
|
|
2317
|
+
* @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
|
+
* @enum {string}
|
|
2319
|
+
*/
|
|
2320
|
+
opening_marks?: "inherit" | "none" | "keep";
|
|
2321
|
+
/**
|
|
2322
|
+
* @description «Trato» for this agent. `inherit` (default): the workspace's `voice.agent_register`. `tu`, `usted`, or `mirror` (tú until the customer uses usted); wins over the agent's instructions.
|
|
2323
|
+
* @enum {string}
|
|
2324
|
+
*/
|
|
2325
|
+
register?: "inherit" | "tu" | "usted" | "mirror";
|
|
2306
2326
|
};
|
|
2307
2327
|
draft: {
|
|
2308
2328
|
/**
|
|
@@ -2316,6 +2336,16 @@ interface paths {
|
|
|
2316
2336
|
urgency_slots: boolean;
|
|
2317
2337
|
/** @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. */
|
|
2318
2338
|
specialist_fallback: boolean;
|
|
2339
|
+
/**
|
|
2340
|
+
* @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
|
+
* @enum {string}
|
|
2342
|
+
*/
|
|
2343
|
+
opening_marks?: "inherit" | "none" | "keep";
|
|
2344
|
+
/**
|
|
2345
|
+
* @description «Trato» for this agent. `inherit` (default): the workspace's `voice.agent_register`. `tu`, `usted`, or `mirror` (tú until the customer uses usted); wins over the agent's instructions.
|
|
2346
|
+
* @enum {string}
|
|
2347
|
+
*/
|
|
2348
|
+
register?: "inherit" | "tu" | "usted" | "mirror";
|
|
2319
2349
|
} | null;
|
|
2320
2350
|
price_policy_conflicts: {
|
|
2321
2351
|
/** @enum {string} */
|
|
@@ -136616,7 +136646,7 @@ interface paths {
|
|
|
136616
136646
|
};
|
|
136617
136647
|
/**
|
|
136618
136648
|
* What a customer who stops answering receives (simulated)
|
|
136619
|
-
* @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`, `max_per_day`, `automated_gap`, `person_ceiling`, `daily_cap`) with its sentence, and `deferred_codes` lists every reason that moved it, and `hot_at` when R6 moves it for a hot lead; a drawn step the engine never sends has `sends: false` and `not_sent_reason`. Also: `header_sentence`, each scenario’s hero `sentence`, `pacing_summary` (the collapsed «Ritmo» line: the rules that are on) and `pacing` (every «Ritmo» rule R1–R13 with `on` and `value`), `limits_sentence` (every bound on what one person can receive, with the workspace values), row `warnings` for the editor (a first contact under 12 h, approval rows’ real send rate, Instagram past 24 h), `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; `hours` is R11), `today` (sent, not sent, went to approval, awaiting approval, and the R8 counter `would_need_approval` of `due`, `failed` (follow-ups sent today that did not arrive) and `failed_actionable` (of those, the ones a person can retry or fix; never a number WhatsApp cannot deliver to), and `cap`: what the day used of the daily cap and the AI review budget, the spent one in `reached` with its `sentence` and `resumes_at`; while one is spent, rows at «now» that fall today move to tomorrow with `deferred_code: daily_cap`; and `backlog`, the whole queue’s drain: `queued`, `per_day`, `days` (first to last estimated release, inclusive), `last_release_on` and `sentence` «En cola: N, se reparte en ~D días (hasta el …)», null when nothing is queued) and `queue` (each queued backlog step’s estimated release day, 10 per tenant per day; `contact_id` or `lead_id` narrows it), and `after_handoff` («Después de pasarlo a una persona»: `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours`, `reminder_minutes` and the block’s collapsed line `summary`, `controls` (which of `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours` do anything here: the AI-answer control is false at a clinic, where D73 and the teammate-reply resume run instead), and `now`, the live state: `conversations` with the team after an AI handoff, `by_class` (`informational`, `operational`, `sensitive`), `drafts_self_sending`, `customers_waiting`, the fact line `sentence` and `people` (one per conversation: `contact_id`, `contact_name`, `conversation_id`, `conversation_display_id`, `owner_user_id`, `owner_name`, `class`, `draft_auto_send_at`, `draft_auto_send_at_label`, `waiting_since`, `waited_hours`, `waited_label`, `promise_overdue`, `promise_label`, `next` (`kind` `draft` | `step` | `held` | `none`, `at_label`, `label`: the next step as one short fact, from the same facts as `sentence`), `sentence`; a broken promise sorts first), `truncated`; null when the read failed). `today.not_sent` counts people with a step that ended without a send today and no send at all today. All copy is in `lang` (default the workspace’s).
|
|
136649
|
+
* @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`, `max_per_day`, `automated_gap`, `person_ceiling`, `daily_cap`) with its sentence, and `deferred_codes` lists every reason that moved it, and `hot_at` when R6 moves it for a hot lead; a drawn step the engine never sends has `sends: false` and `not_sent_reason`. Also: `header_sentence`, each scenario’s hero `sentence`, `pacing_summary` (the collapsed «Ritmo» line: the rules that are on) and `pacing` (every «Ritmo» rule R1–R13 with `on` and `value`), `limits_sentence` (every bound on what one person can receive, with the workspace values), row `warnings` for the editor (a first contact under 12 h, approval rows’ real send rate, Instagram past 24 h), `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; `hours` is R11), `today` (sent, not sent, went to approval, awaiting approval, and the R8 counter `would_need_approval` of `due`, `failed` (follow-ups sent today that did not arrive) and `failed_actionable` (of those, the ones a person can retry or fix; never a number WhatsApp cannot deliver to), and `cap`: what the day used of the daily cap and the AI review budget, the spent one in `reached` with its `sentence` and `resumes_at`; while one is spent, rows at «now» that fall today move to tomorrow with `deferred_code: daily_cap`; and `backlog`, the whole queue’s drain: `queued`, `per_day`, `days` (first to last estimated release, inclusive), `last_release_on` and `sentence` «En cola: N, se reparte en ~D días (hasta el …)», null when nothing is queued) and `queue` (each queued backlog step’s estimated release day, 10 per tenant per day; `contact_id` or `lead_id` narrows it), and `after_handoff` («Después de pasarlo a una persona»: `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours`, `reminder_minutes` and the block’s collapsed line `summary`, `controls` (which of `followups`, `auto_send_after_hours`, `ai_answers_waiting_after_hours` do anything here: the AI-answer control is false at a clinic, where D73 and the teammate-reply resume run instead), and `now`, the live state: `conversations` with the team after an AI handoff or a teammate takeover, `by_class` (`informational`, `operational`, `sensitive`, and `takeover` for chats a teammate took without a handoff), `drafts` (waiting in «Por aprobar»), `drafts_self_sending`, `customers_waiting`, the fact line `sentence` and `people` (one per conversation: `contact_id`, `contact_name`, `conversation_id`, `conversation_display_id`, `owner_user_id`, `owner_name`, `class`, `trigger` (`ai_handoff` | `teammate`), `has_draft`, `draft_auto_send_at`, `draft_auto_send_at_label`, `waiting_since`, `waited_hours`, `waited_label`, `promise_overdue`, `promise_label`, `next` (`kind` `draft` | `step` | `held` | `none`, `at_label`, `label`: the next step as one short fact, from the same facts as `sentence`), `sentence`; a broken promise sorts first), `truncated`; null when the read failed). `today.not_sent` counts people with a step that ended without a send today and no send at all today. All copy is in `lang` (default the workspace’s).
|
|
136620
136650
|
*/
|
|
136621
136651
|
get: {
|
|
136622
136652
|
parameters: {
|
|
@@ -136792,8 +136822,10 @@ interface paths {
|
|
|
136792
136822
|
* "by_class": {
|
|
136793
136823
|
* "informational": 1,
|
|
136794
136824
|
* "operational": 1,
|
|
136795
|
-
* "sensitive": 0
|
|
136825
|
+
* "sensitive": 0,
|
|
136826
|
+
* "takeover": 0
|
|
136796
136827
|
* },
|
|
136828
|
+
* "drafts": 1,
|
|
136797
136829
|
* "drafts_self_sending": 1,
|
|
136798
136830
|
* "customers_waiting": 0,
|
|
136799
136831
|
* "sentence": "Ahora: 2 conversaciones con el equipo · 1 borrador por enviarse solo",
|
|
@@ -136806,6 +136838,8 @@ interface paths {
|
|
|
136806
136838
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136807
136839
|
* "owner_name": "Diego Navarrete",
|
|
136808
136840
|
* "class": "informational",
|
|
136841
|
+
* "trigger": "ai_handoff",
|
|
136842
|
+
* "has_draft": true,
|
|
136809
136843
|
* "draft_auto_send_at": "2026-10-25T16:30:00-03:00",
|
|
136810
136844
|
* "draft_auto_send_at_label": "mañana 16:30",
|
|
136811
136845
|
* "waiting_since": null,
|
|
@@ -136828,6 +136862,8 @@ interface paths {
|
|
|
136828
136862
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136829
136863
|
* "owner_name": "Diego Navarrete",
|
|
136830
136864
|
* "class": "operational",
|
|
136865
|
+
* "trigger": "ai_handoff",
|
|
136866
|
+
* "has_draft": false,
|
|
136831
136867
|
* "draft_auto_send_at": null,
|
|
136832
136868
|
* "draft_auto_send_at_label": null,
|
|
136833
136869
|
* "waiting_since": null,
|
|
@@ -221679,6 +221715,16 @@ interface components {
|
|
|
221679
221715
|
* @enum {string}
|
|
221680
221716
|
*/
|
|
221681
221717
|
register?: "tu" | "usted";
|
|
221718
|
+
/**
|
|
221719
|
+
* @description «Signos de apertura» in the AI's chat replies and follow-ups. `none` (default when absent): no opening «¿» «¡», the way people type in a Chilean chat; removed at send time from every AI message. `keep`: the agent writes them. An agent can override it (`behavior_policies.opening_marks`).
|
|
221720
|
+
* @enum {string}
|
|
221721
|
+
*/
|
|
221722
|
+
opening_marks?: "none" | "keep";
|
|
221723
|
+
/**
|
|
221724
|
+
* @description «Trato» of the AI agents: `tu`, `usted`, or `mirror` (tú until the customer uses usted). Absent: each agent's own instructions decide. Wins over the agent's instructions; an agent can override it (`behavior_policies.register`).
|
|
221725
|
+
* @enum {string}
|
|
221726
|
+
*/
|
|
221727
|
+
agent_register?: "tu" | "usted" | "mirror";
|
|
221682
221728
|
};
|
|
221683
221729
|
/** @description The AI agent's vocabulary: the workspace's banned terms; absent until set. */
|
|
221684
221730
|
agent_language?: {
|
|
@@ -221775,6 +221821,16 @@ interface components {
|
|
|
221775
221821
|
* @enum {string}
|
|
221776
221822
|
*/
|
|
221777
221823
|
register?: "tu" | "usted";
|
|
221824
|
+
/**
|
|
221825
|
+
* @description «Signos de apertura» in the AI's chat replies and follow-ups. `none` (default when absent): no opening «¿» «¡», the way people type in a Chilean chat; removed at send time from every AI message. `keep`: the agent writes them. An agent can override it (`behavior_policies.opening_marks`).
|
|
221826
|
+
* @enum {string}
|
|
221827
|
+
*/
|
|
221828
|
+
opening_marks?: "none" | "keep";
|
|
221829
|
+
/**
|
|
221830
|
+
* @description «Trato» of the AI agents: `tu`, `usted`, or `mirror` (tú until the customer uses usted). Absent: each agent's own instructions decide. Wins over the agent's instructions; an agent can override it (`behavior_policies.register`).
|
|
221831
|
+
* @enum {string}
|
|
221832
|
+
*/
|
|
221833
|
+
agent_register?: "tu" | "usted" | "mirror";
|
|
221778
221834
|
} | null;
|
|
221779
221835
|
agent_language?: {
|
|
221780
221836
|
/** @description Words the AI agent must never write to customers (case- and accent-insensitive, whole words), merged with the platform es-CL list. A reply that uses one is rewritten without it before it is sent. Up to 100 terms of 2 to 60 characters. */
|
package/package.json
CHANGED