@vitrina/api 17.4.0 → 17.6.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 +8 -6
- package/dist/index.d.ts +8 -6
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -252996,7 +252996,7 @@ interface paths {
|
|
|
252996
252996
|
};
|
|
252997
252997
|
/**
|
|
252998
252998
|
* List proactive messages waiting on a person
|
|
252999
|
-
* @description Every composed outbound message this workspace is holding for a human decision, oldest OBLIGATION first — ordered by `due_at` rather than by when the draft was written, because what is running out of time is the obligation, not the proposal. Each entry carries the draft exactly as it would be sent, the model's operator-facing `reason` (never shown to a customer), who was asked, and `expired: true` once the obligation passed its lateness bound — those stay in the list on purpose, so a reviewer sees that one ran out of time rather than finding it silently gone. Filter by `rail` for one rail's queue, or by `assignee_user_id` for one person's. An entry with a null `assignee_user_id` was routed to the workspace admins, which is a real answer and not a missing one. Rail `api` holds the sends a CONNECTED APP made past its fan-out limit (ADR 0106 §3.2); those entries carry `via: { kind, name }` — the app that wrote them («vía Claude») — and `via` is null on every other rail. `whyNow` is the owner-facing reason, in the product's register (null when the composer wrote none; `reason` stays audit material). Rail `recontacto` entries carry `recontacto: { attempt_id, step_label, auto_send_at, auto_send_at_label, template, window_closes_at, window_note }`: the step as «Si no responde» names it and, for a handed-off conversation's draft, when it sends itself if nobody reviews it («mañana 18:00», the conversation strip's own words), and whether the draft rides an approved WhatsApp template; for a free-text WhatsApp or Instagram draft, when its 24 h window closes (`window_closes_at`, tenant clock) and that in the owner’s words (`window_note`: «Envíalo antes de mañana 14:05; después sale como plantilla aprobada»). Approving a WhatsApp draft past its window re-composes it as an approved template (outcome `deferred` when it must wait for one); an Instagram one past its window is dropped (outcome `stale`, G53). `due_at` is not that moment. Null on every other rail.
|
|
252999
|
+
* @description Every composed outbound message this workspace is holding for a human decision, oldest OBLIGATION first — ordered by `due_at` rather than by when the draft was written, because what is running out of time is the obligation, not the proposal. Each entry carries the draft exactly as it would be sent, the model's operator-facing `reason` (never shown to a customer), who was asked, and `expired: true` once the obligation passed its lateness bound — those stay in the list on purpose, so a reviewer sees that one ran out of time rather than finding it silently gone. `expiresAt` is that bound: `dueAt` plus the action’s maximum lateness, as an ISO timestamp, or null when the action has no limit and never expires. Filter by `rail` for one rail's queue, or by `assignee_user_id` for one person's. An entry with a null `assignee_user_id` was routed to the workspace admins, which is a real answer and not a missing one. Rail `api` holds the sends a CONNECTED APP made past its fan-out limit (ADR 0106 §3.2); those entries carry `via: { kind, name }` — the app that wrote them («vía Claude») — and `via` is null on every other rail. `whyNow` is the owner-facing reason, in the product's register (null when the composer wrote none; `reason` stays audit material). Rail `recontacto` entries carry `recontacto: { attempt_id, step_label, auto_send_at, auto_send_at_label, template, window_closes_at, window_note }`: the step as «Si no responde» names it and, for a handed-off conversation's draft, when it sends itself if nobody reviews it («mañana 18:00», the conversation strip's own words), and whether the draft rides an approved WhatsApp template; for a free-text WhatsApp or Instagram draft, when its 24 h window closes (`window_closes_at`, tenant clock) and that in the owner’s words (`window_note`: «Envíalo antes de mañana 14:05; después sale como plantilla aprobada»). Approving a WhatsApp draft past its window re-composes it as an approved template (outcome `deferred` when it must wait for one); an Instagram one past its window is dropped (outcome `stale`, G53). `due_at` is not that moment. Null on every other rail.
|
|
253000
253000
|
*/
|
|
253001
253001
|
get: {
|
|
253002
253002
|
parameters: {
|
|
@@ -253050,7 +253050,8 @@ interface paths {
|
|
|
253050
253050
|
* "channel": "whatsapp",
|
|
253051
253051
|
* "via": null,
|
|
253052
253052
|
* "decisionVersion": 1,
|
|
253053
|
-
* "expired": false
|
|
253053
|
+
* "expired": false,
|
|
253054
|
+
* "expiresAt": "2026-11-10T13:00:00.000Z"
|
|
253054
253055
|
* }
|
|
253055
253056
|
* ],
|
|
253056
253057
|
* "total": 1
|
|
@@ -253188,7 +253189,8 @@ interface paths {
|
|
|
253188
253189
|
* "channel": "whatsapp",
|
|
253189
253190
|
* "via": null,
|
|
253190
253191
|
* "decisionVersion": 1,
|
|
253191
|
-
* "expired": false
|
|
253192
|
+
* "expired": false,
|
|
253193
|
+
* "expiresAt": "2026-11-10T13:00:00.000Z"
|
|
253192
253194
|
* }
|
|
253193
253195
|
* }
|
|
253194
253196
|
*/
|
|
@@ -275876,7 +275878,7 @@ interface components {
|
|
|
275876
275878
|
/** @enum {string} */
|
|
275877
275879
|
kind: "page";
|
|
275878
275880
|
/** @enum {string} */
|
|
275879
|
-
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275881
|
+
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "settings.payment_methods" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275880
275882
|
params?: {
|
|
275881
275883
|
[key: string]: string | number | boolean;
|
|
275882
275884
|
};
|
|
@@ -275918,7 +275920,7 @@ interface components {
|
|
|
275918
275920
|
/** @enum {string} */
|
|
275919
275921
|
kind: "page";
|
|
275920
275922
|
/** @enum {string} */
|
|
275921
|
-
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275923
|
+
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "settings.payment_methods" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275922
275924
|
params?: {
|
|
275923
275925
|
[key: string]: string | number | boolean;
|
|
275924
275926
|
};
|
|
@@ -275945,7 +275947,7 @@ interface components {
|
|
|
275945
275947
|
/** @enum {string} */
|
|
275946
275948
|
kind: "page";
|
|
275947
275949
|
/** @enum {string} */
|
|
275948
|
-
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275950
|
+
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "settings.payment_methods" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275949
275951
|
params?: {
|
|
275950
275952
|
[key: string]: string | number | boolean;
|
|
275951
275953
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -252996,7 +252996,7 @@ interface paths {
|
|
|
252996
252996
|
};
|
|
252997
252997
|
/**
|
|
252998
252998
|
* List proactive messages waiting on a person
|
|
252999
|
-
* @description Every composed outbound message this workspace is holding for a human decision, oldest OBLIGATION first — ordered by `due_at` rather than by when the draft was written, because what is running out of time is the obligation, not the proposal. Each entry carries the draft exactly as it would be sent, the model's operator-facing `reason` (never shown to a customer), who was asked, and `expired: true` once the obligation passed its lateness bound — those stay in the list on purpose, so a reviewer sees that one ran out of time rather than finding it silently gone. Filter by `rail` for one rail's queue, or by `assignee_user_id` for one person's. An entry with a null `assignee_user_id` was routed to the workspace admins, which is a real answer and not a missing one. Rail `api` holds the sends a CONNECTED APP made past its fan-out limit (ADR 0106 §3.2); those entries carry `via: { kind, name }` — the app that wrote them («vía Claude») — and `via` is null on every other rail. `whyNow` is the owner-facing reason, in the product's register (null when the composer wrote none; `reason` stays audit material). Rail `recontacto` entries carry `recontacto: { attempt_id, step_label, auto_send_at, auto_send_at_label, template, window_closes_at, window_note }`: the step as «Si no responde» names it and, for a handed-off conversation's draft, when it sends itself if nobody reviews it («mañana 18:00», the conversation strip's own words), and whether the draft rides an approved WhatsApp template; for a free-text WhatsApp or Instagram draft, when its 24 h window closes (`window_closes_at`, tenant clock) and that in the owner’s words (`window_note`: «Envíalo antes de mañana 14:05; después sale como plantilla aprobada»). Approving a WhatsApp draft past its window re-composes it as an approved template (outcome `deferred` when it must wait for one); an Instagram one past its window is dropped (outcome `stale`, G53). `due_at` is not that moment. Null on every other rail.
|
|
252999
|
+
* @description Every composed outbound message this workspace is holding for a human decision, oldest OBLIGATION first — ordered by `due_at` rather than by when the draft was written, because what is running out of time is the obligation, not the proposal. Each entry carries the draft exactly as it would be sent, the model's operator-facing `reason` (never shown to a customer), who was asked, and `expired: true` once the obligation passed its lateness bound — those stay in the list on purpose, so a reviewer sees that one ran out of time rather than finding it silently gone. `expiresAt` is that bound: `dueAt` plus the action’s maximum lateness, as an ISO timestamp, or null when the action has no limit and never expires. Filter by `rail` for one rail's queue, or by `assignee_user_id` for one person's. An entry with a null `assignee_user_id` was routed to the workspace admins, which is a real answer and not a missing one. Rail `api` holds the sends a CONNECTED APP made past its fan-out limit (ADR 0106 §3.2); those entries carry `via: { kind, name }` — the app that wrote them («vía Claude») — and `via` is null on every other rail. `whyNow` is the owner-facing reason, in the product's register (null when the composer wrote none; `reason` stays audit material). Rail `recontacto` entries carry `recontacto: { attempt_id, step_label, auto_send_at, auto_send_at_label, template, window_closes_at, window_note }`: the step as «Si no responde» names it and, for a handed-off conversation's draft, when it sends itself if nobody reviews it («mañana 18:00», the conversation strip's own words), and whether the draft rides an approved WhatsApp template; for a free-text WhatsApp or Instagram draft, when its 24 h window closes (`window_closes_at`, tenant clock) and that in the owner’s words (`window_note`: «Envíalo antes de mañana 14:05; después sale como plantilla aprobada»). Approving a WhatsApp draft past its window re-composes it as an approved template (outcome `deferred` when it must wait for one); an Instagram one past its window is dropped (outcome `stale`, G53). `due_at` is not that moment. Null on every other rail.
|
|
253000
253000
|
*/
|
|
253001
253001
|
get: {
|
|
253002
253002
|
parameters: {
|
|
@@ -253050,7 +253050,8 @@ interface paths {
|
|
|
253050
253050
|
* "channel": "whatsapp",
|
|
253051
253051
|
* "via": null,
|
|
253052
253052
|
* "decisionVersion": 1,
|
|
253053
|
-
* "expired": false
|
|
253053
|
+
* "expired": false,
|
|
253054
|
+
* "expiresAt": "2026-11-10T13:00:00.000Z"
|
|
253054
253055
|
* }
|
|
253055
253056
|
* ],
|
|
253056
253057
|
* "total": 1
|
|
@@ -253188,7 +253189,8 @@ interface paths {
|
|
|
253188
253189
|
* "channel": "whatsapp",
|
|
253189
253190
|
* "via": null,
|
|
253190
253191
|
* "decisionVersion": 1,
|
|
253191
|
-
* "expired": false
|
|
253192
|
+
* "expired": false,
|
|
253193
|
+
* "expiresAt": "2026-11-10T13:00:00.000Z"
|
|
253192
253194
|
* }
|
|
253193
253195
|
* }
|
|
253194
253196
|
*/
|
|
@@ -275876,7 +275878,7 @@ interface components {
|
|
|
275876
275878
|
/** @enum {string} */
|
|
275877
275879
|
kind: "page";
|
|
275878
275880
|
/** @enum {string} */
|
|
275879
|
-
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275881
|
+
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "settings.payment_methods" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275880
275882
|
params?: {
|
|
275881
275883
|
[key: string]: string | number | boolean;
|
|
275882
275884
|
};
|
|
@@ -275918,7 +275920,7 @@ interface components {
|
|
|
275918
275920
|
/** @enum {string} */
|
|
275919
275921
|
kind: "page";
|
|
275920
275922
|
/** @enum {string} */
|
|
275921
|
-
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275923
|
+
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "settings.payment_methods" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275922
275924
|
params?: {
|
|
275923
275925
|
[key: string]: string | number | boolean;
|
|
275924
275926
|
};
|
|
@@ -275945,7 +275947,7 @@ interface components {
|
|
|
275945
275947
|
/** @enum {string} */
|
|
275946
275948
|
kind: "page";
|
|
275947
275949
|
/** @enum {string} */
|
|
275948
|
-
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275950
|
+
page: "settings.channels" | "settings.channel" | "settings.webhooks" | "finanzas.bancos" | "finanzas.flujo_de_caja" | "finanzas.f29" | "finanzas.contraparte" | "settings.api_keys" | "settings.billing" | "settings.seguimientos" | "settings.templates" | "settings.marketplaces" | "settings.notifications" | "settings.payment_methods" | "ai_agents" | "ads" | "onboarding" | "vehicles.marketplaces" | "calendar";
|
|
275949
275951
|
params?: {
|
|
275950
275952
|
[key: string]: string | number | boolean;
|
|
275951
275953
|
};
|
package/package.json
CHANGED