@vitrina/api 14.103.7 → 14.105.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 +85 -13
- package/dist/index.d.ts +85 -13
- 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} */
|
|
@@ -135716,7 +135746,7 @@ interface paths {
|
|
|
135716
135746
|
};
|
|
135717
135747
|
/**
|
|
135718
135748
|
* 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
|
|
135749
|
+
* @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
135750
|
*/
|
|
135721
135751
|
get: {
|
|
135722
135752
|
parameters: {
|
|
@@ -135821,8 +135851,11 @@ interface paths {
|
|
|
135821
135851
|
* },
|
|
135822
135852
|
* "after_handoff": {
|
|
135823
135853
|
* "followups": "draft_for_owner",
|
|
135824
|
-
* "auto_send_after_hours":
|
|
135825
|
-
* "
|
|
135854
|
+
* "auto_send_after_hours": null,
|
|
135855
|
+
* "while_silent": "draft_and_remind",
|
|
135856
|
+
* "ai_answers_waiting": "never",
|
|
135857
|
+
* "ai_answers_waiting_after_minutes": 30,
|
|
135858
|
+
* "ai_answers_waiting_after_hours": null
|
|
135826
135859
|
* },
|
|
135827
135860
|
* "last_run_at": null
|
|
135828
135861
|
* }
|
|
@@ -135894,7 +135927,7 @@ interface paths {
|
|
|
135894
135927
|
};
|
|
135895
135928
|
/**
|
|
135896
135929
|
* 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
|
|
135930
|
+
* @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
135931
|
*/
|
|
135899
135932
|
put: {
|
|
135900
135933
|
parameters: {
|
|
@@ -135990,8 +136023,13 @@ interface paths {
|
|
|
135990
136023
|
};
|
|
135991
136024
|
after_handoff?: {
|
|
135992
136025
|
/** @enum {string} */
|
|
135993
|
-
|
|
136026
|
+
while_silent?: "draft_and_remind" | "draft_auto_send" | "remind_only" | "nothing";
|
|
136027
|
+
/** @enum {string} */
|
|
136028
|
+
followups?: "draft_for_owner" | "remind_only" | "off" | "automatic";
|
|
135994
136029
|
auto_send_after_hours?: number | null;
|
|
136030
|
+
/** @enum {string} */
|
|
136031
|
+
ai_answers_waiting?: "never" | "after_minutes" | "after_quiet_days";
|
|
136032
|
+
ai_answers_waiting_after_minutes?: number;
|
|
135995
136033
|
ai_answers_waiting_after_hours?: number | null;
|
|
135996
136034
|
};
|
|
135997
136035
|
};
|
|
@@ -136092,8 +136130,11 @@ interface paths {
|
|
|
136092
136130
|
* },
|
|
136093
136131
|
* "after_handoff": {
|
|
136094
136132
|
* "followups": "draft_for_owner",
|
|
136095
|
-
* "auto_send_after_hours":
|
|
136096
|
-
* "
|
|
136133
|
+
* "auto_send_after_hours": null,
|
|
136134
|
+
* "while_silent": "draft_and_remind",
|
|
136135
|
+
* "ai_answers_waiting": "never",
|
|
136136
|
+
* "ai_answers_waiting_after_minutes": 30,
|
|
136137
|
+
* "ai_answers_waiting_after_hours": null
|
|
136097
136138
|
* },
|
|
136098
136139
|
* "last_run_at": null
|
|
136099
136140
|
* }
|
|
@@ -136605,7 +136646,7 @@ interface paths {
|
|
|
136605
136646
|
};
|
|
136606
136647
|
/**
|
|
136607
136648
|
* What a customer who stops answering receives (simulated)
|
|
136608
|
-
* @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).
|
|
136609
136650
|
*/
|
|
136610
136651
|
get: {
|
|
136611
136652
|
parameters: {
|
|
@@ -136762,22 +136803,29 @@ interface paths {
|
|
|
136762
136803
|
* },
|
|
136763
136804
|
* "after_handoff": {
|
|
136764
136805
|
* "followups": "draft_for_owner",
|
|
136765
|
-
* "auto_send_after_hours":
|
|
136766
|
-
* "
|
|
136806
|
+
* "auto_send_after_hours": null,
|
|
136807
|
+
* "while_silent": "draft_and_remind",
|
|
136808
|
+
* "ai_answers_waiting": "never",
|
|
136809
|
+
* "ai_answers_waiting_after_minutes": 30,
|
|
136810
|
+
* "ai_answers_waiting_after_hours": null,
|
|
136767
136811
|
* "reminder_minutes": 30,
|
|
136768
136812
|
* "controls": {
|
|
136769
136813
|
* "followups": true,
|
|
136770
136814
|
* "auto_send_after_hours": true,
|
|
136771
|
-
* "ai_answers_waiting_after_hours": true
|
|
136815
|
+
* "ai_answers_waiting_after_hours": true,
|
|
136816
|
+
* "while_silent": true,
|
|
136817
|
+
* "ai_answers_waiting": true
|
|
136772
136818
|
* },
|
|
136773
|
-
* "summary": "Después de pasarlo a una persona · borrador para quien lo atiende,
|
|
136819
|
+
* "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
136820
|
* "now": {
|
|
136775
136821
|
* "conversations": 2,
|
|
136776
136822
|
* "by_class": {
|
|
136777
136823
|
* "informational": 1,
|
|
136778
136824
|
* "operational": 1,
|
|
136779
|
-
* "sensitive": 0
|
|
136825
|
+
* "sensitive": 0,
|
|
136826
|
+
* "takeover": 0
|
|
136780
136827
|
* },
|
|
136828
|
+
* "drafts": 1,
|
|
136781
136829
|
* "drafts_self_sending": 1,
|
|
136782
136830
|
* "customers_waiting": 0,
|
|
136783
136831
|
* "sentence": "Ahora: 2 conversaciones con el equipo · 1 borrador por enviarse solo",
|
|
@@ -136790,6 +136838,8 @@ interface paths {
|
|
|
136790
136838
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136791
136839
|
* "owner_name": "Diego Navarrete",
|
|
136792
136840
|
* "class": "informational",
|
|
136841
|
+
* "trigger": "ai_handoff",
|
|
136842
|
+
* "has_draft": true,
|
|
136793
136843
|
* "draft_auto_send_at": "2026-10-25T16:30:00-03:00",
|
|
136794
136844
|
* "draft_auto_send_at_label": "mañana 16:30",
|
|
136795
136845
|
* "waiting_since": null,
|
|
@@ -136812,6 +136862,8 @@ interface paths {
|
|
|
136812
136862
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136813
136863
|
* "owner_name": "Diego Navarrete",
|
|
136814
136864
|
* "class": "operational",
|
|
136865
|
+
* "trigger": "ai_handoff",
|
|
136866
|
+
* "has_draft": false,
|
|
136815
136867
|
* "draft_auto_send_at": null,
|
|
136816
136868
|
* "draft_auto_send_at_label": null,
|
|
136817
136869
|
* "waiting_since": null,
|
|
@@ -221663,6 +221715,16 @@ interface components {
|
|
|
221663
221715
|
* @enum {string}
|
|
221664
221716
|
*/
|
|
221665
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";
|
|
221666
221728
|
};
|
|
221667
221729
|
/** @description The AI agent's vocabulary: the workspace's banned terms; absent until set. */
|
|
221668
221730
|
agent_language?: {
|
|
@@ -221759,6 +221821,16 @@ interface components {
|
|
|
221759
221821
|
* @enum {string}
|
|
221760
221822
|
*/
|
|
221761
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";
|
|
221762
221834
|
} | null;
|
|
221763
221835
|
agent_language?: {
|
|
221764
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} */
|
|
@@ -135716,7 +135746,7 @@ interface paths {
|
|
|
135716
135746
|
};
|
|
135717
135747
|
/**
|
|
135718
135748
|
* 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
|
|
135749
|
+
* @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
135750
|
*/
|
|
135721
135751
|
get: {
|
|
135722
135752
|
parameters: {
|
|
@@ -135821,8 +135851,11 @@ interface paths {
|
|
|
135821
135851
|
* },
|
|
135822
135852
|
* "after_handoff": {
|
|
135823
135853
|
* "followups": "draft_for_owner",
|
|
135824
|
-
* "auto_send_after_hours":
|
|
135825
|
-
* "
|
|
135854
|
+
* "auto_send_after_hours": null,
|
|
135855
|
+
* "while_silent": "draft_and_remind",
|
|
135856
|
+
* "ai_answers_waiting": "never",
|
|
135857
|
+
* "ai_answers_waiting_after_minutes": 30,
|
|
135858
|
+
* "ai_answers_waiting_after_hours": null
|
|
135826
135859
|
* },
|
|
135827
135860
|
* "last_run_at": null
|
|
135828
135861
|
* }
|
|
@@ -135894,7 +135927,7 @@ interface paths {
|
|
|
135894
135927
|
};
|
|
135895
135928
|
/**
|
|
135896
135929
|
* 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
|
|
135930
|
+
* @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
135931
|
*/
|
|
135899
135932
|
put: {
|
|
135900
135933
|
parameters: {
|
|
@@ -135990,8 +136023,13 @@ interface paths {
|
|
|
135990
136023
|
};
|
|
135991
136024
|
after_handoff?: {
|
|
135992
136025
|
/** @enum {string} */
|
|
135993
|
-
|
|
136026
|
+
while_silent?: "draft_and_remind" | "draft_auto_send" | "remind_only" | "nothing";
|
|
136027
|
+
/** @enum {string} */
|
|
136028
|
+
followups?: "draft_for_owner" | "remind_only" | "off" | "automatic";
|
|
135994
136029
|
auto_send_after_hours?: number | null;
|
|
136030
|
+
/** @enum {string} */
|
|
136031
|
+
ai_answers_waiting?: "never" | "after_minutes" | "after_quiet_days";
|
|
136032
|
+
ai_answers_waiting_after_minutes?: number;
|
|
135995
136033
|
ai_answers_waiting_after_hours?: number | null;
|
|
135996
136034
|
};
|
|
135997
136035
|
};
|
|
@@ -136092,8 +136130,11 @@ interface paths {
|
|
|
136092
136130
|
* },
|
|
136093
136131
|
* "after_handoff": {
|
|
136094
136132
|
* "followups": "draft_for_owner",
|
|
136095
|
-
* "auto_send_after_hours":
|
|
136096
|
-
* "
|
|
136133
|
+
* "auto_send_after_hours": null,
|
|
136134
|
+
* "while_silent": "draft_and_remind",
|
|
136135
|
+
* "ai_answers_waiting": "never",
|
|
136136
|
+
* "ai_answers_waiting_after_minutes": 30,
|
|
136137
|
+
* "ai_answers_waiting_after_hours": null
|
|
136097
136138
|
* },
|
|
136098
136139
|
* "last_run_at": null
|
|
136099
136140
|
* }
|
|
@@ -136605,7 +136646,7 @@ interface paths {
|
|
|
136605
136646
|
};
|
|
136606
136647
|
/**
|
|
136607
136648
|
* What a customer who stops answering receives (simulated)
|
|
136608
|
-
* @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).
|
|
136609
136650
|
*/
|
|
136610
136651
|
get: {
|
|
136611
136652
|
parameters: {
|
|
@@ -136762,22 +136803,29 @@ interface paths {
|
|
|
136762
136803
|
* },
|
|
136763
136804
|
* "after_handoff": {
|
|
136764
136805
|
* "followups": "draft_for_owner",
|
|
136765
|
-
* "auto_send_after_hours":
|
|
136766
|
-
* "
|
|
136806
|
+
* "auto_send_after_hours": null,
|
|
136807
|
+
* "while_silent": "draft_and_remind",
|
|
136808
|
+
* "ai_answers_waiting": "never",
|
|
136809
|
+
* "ai_answers_waiting_after_minutes": 30,
|
|
136810
|
+
* "ai_answers_waiting_after_hours": null,
|
|
136767
136811
|
* "reminder_minutes": 30,
|
|
136768
136812
|
* "controls": {
|
|
136769
136813
|
* "followups": true,
|
|
136770
136814
|
* "auto_send_after_hours": true,
|
|
136771
|
-
* "ai_answers_waiting_after_hours": true
|
|
136815
|
+
* "ai_answers_waiting_after_hours": true,
|
|
136816
|
+
* "while_silent": true,
|
|
136817
|
+
* "ai_answers_waiting": true
|
|
136772
136818
|
* },
|
|
136773
|
-
* "summary": "Después de pasarlo a una persona · borrador para quien lo atiende,
|
|
136819
|
+
* "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
136820
|
* "now": {
|
|
136775
136821
|
* "conversations": 2,
|
|
136776
136822
|
* "by_class": {
|
|
136777
136823
|
* "informational": 1,
|
|
136778
136824
|
* "operational": 1,
|
|
136779
|
-
* "sensitive": 0
|
|
136825
|
+
* "sensitive": 0,
|
|
136826
|
+
* "takeover": 0
|
|
136780
136827
|
* },
|
|
136828
|
+
* "drafts": 1,
|
|
136781
136829
|
* "drafts_self_sending": 1,
|
|
136782
136830
|
* "customers_waiting": 0,
|
|
136783
136831
|
* "sentence": "Ahora: 2 conversaciones con el equipo · 1 borrador por enviarse solo",
|
|
@@ -136790,6 +136838,8 @@ interface paths {
|
|
|
136790
136838
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136791
136839
|
* "owner_name": "Diego Navarrete",
|
|
136792
136840
|
* "class": "informational",
|
|
136841
|
+
* "trigger": "ai_handoff",
|
|
136842
|
+
* "has_draft": true,
|
|
136793
136843
|
* "draft_auto_send_at": "2026-10-25T16:30:00-03:00",
|
|
136794
136844
|
* "draft_auto_send_at_label": "mañana 16:30",
|
|
136795
136845
|
* "waiting_since": null,
|
|
@@ -136812,6 +136862,8 @@ interface paths {
|
|
|
136812
136862
|
* "owner_user_id": "829e61ea-2cb9-43dc-80fd-18baf78eaaed",
|
|
136813
136863
|
* "owner_name": "Diego Navarrete",
|
|
136814
136864
|
* "class": "operational",
|
|
136865
|
+
* "trigger": "ai_handoff",
|
|
136866
|
+
* "has_draft": false,
|
|
136815
136867
|
* "draft_auto_send_at": null,
|
|
136816
136868
|
* "draft_auto_send_at_label": null,
|
|
136817
136869
|
* "waiting_since": null,
|
|
@@ -221663,6 +221715,16 @@ interface components {
|
|
|
221663
221715
|
* @enum {string}
|
|
221664
221716
|
*/
|
|
221665
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";
|
|
221666
221728
|
};
|
|
221667
221729
|
/** @description The AI agent's vocabulary: the workspace's banned terms; absent until set. */
|
|
221668
221730
|
agent_language?: {
|
|
@@ -221759,6 +221821,16 @@ interface components {
|
|
|
221759
221821
|
* @enum {string}
|
|
221760
221822
|
*/
|
|
221761
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";
|
|
221762
221834
|
} | null;
|
|
221763
221835
|
agent_language?: {
|
|
221764
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