@vitrina/api 17.91.1 → 17.92.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 +12 -2
- package/dist/index.d.ts +12 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -16462,7 +16462,7 @@ interface paths {
|
|
|
16462
16462
|
};
|
|
16463
16463
|
/**
|
|
16464
16464
|
* Read tenant-level settings
|
|
16465
|
-
* @description The stored settings object, as saved through `PUT /tenant/settings`. Among its keys, `ads` holds the Vitrina Ads wizard choice: `{ tag_choice: "site" | "no_site" | null, tag_choice_at: string | null }` (`tag_choice_at` is stamped by the server on every write); absent when the workspace never answered the «Instalar el tag» step. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language` and `
|
|
16465
|
+
* @description The stored settings object, as saved through `PUT /tenant/settings`. Among its keys, `ads` holds the Vitrina Ads wizard choice: `{ tag_choice: "site" | "no_site" | null, tag_choice_at: string | null }` (`tag_choice_at` is stamped by the server on every write); absent when the workspace never answered the «Instalar el tag» step. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state), and when the assigned seller is notified (`staff_notice_schedule`). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language`, `notifications` and `staff_notice_schedule` (among others documented here): any other key, `slack_webhook_url` included, is refused with 403, so a connected app cannot send the mask back either. For a workspace's own API key or personal token with `tenant:write`, writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it. The webhook receives only the workspace's own alerts (pricing alerts and digests, reminders about its listings, consignments, credit applications and post-sale obligations, SLA breaches and safety holds); Vitrina never posts its internal alerts to it.
|
|
16466
16466
|
*/
|
|
16467
16467
|
get: {
|
|
16468
16468
|
parameters: {
|
|
@@ -16565,7 +16565,7 @@ interface paths {
|
|
|
16565
16565
|
};
|
|
16566
16566
|
/**
|
|
16567
16567
|
* Patch tenant-level settings
|
|
16568
|
-
* @description Shallow-merges the body into the stored settings and answers the result. `ads` is merged key by key (a write that sends only `ads.tag_choice` keeps `ads.goal`), and the server stamps `tag_choice_at` / `goal_at` / `goal_by` — a client never sends them (400). A connected app may write only `ads`; any other key is refused with 403 and nothing is written. Requires `tenant:write`, or `ads:write` for a body that carries only `ads`. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language` and `
|
|
16568
|
+
* @description Shallow-merges the body into the stored settings and answers the result. `ads` is merged key by key (a write that sends only `ads.tag_choice` keeps `ads.goal`), and the server stamps `tag_choice_at` / `goal_at` / `goal_by` — a client never sends them (400). A connected app may write only `ads`; any other key is refused with 403 and nothing is written. Requires `tenant:write`, or `ads:write` for a body that carries only `ads`. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state), and when the assigned seller is notified (`staff_notice_schedule`). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language`, `notifications` and `staff_notice_schedule` (among others documented here): any other key, `slack_webhook_url` included, is refused with 403, so a connected app cannot send the mask back either. For a workspace's own API key or personal token with `tenant:write`, writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it. The webhook receives only the workspace's own alerts (pricing alerts and digests, reminders about its listings, consignments, credit applications and post-sale obligations, SLA breaches and safety holds); Vitrina never posts its internal alerts to it.
|
|
16569
16569
|
*/
|
|
16570
16570
|
put: {
|
|
16571
16571
|
parameters: {
|
|
@@ -322628,6 +322628,11 @@ interface components {
|
|
|
322628
322628
|
}[];
|
|
322629
322629
|
};
|
|
322630
322630
|
};
|
|
322631
|
+
/**
|
|
322632
|
+
* @description When the assigned seller is notified. `business_hours` (default, null): the new-assignment notice and the «sin respuesta» alerts and reminders wait for the opening of the Horario de atención, and the staff WhatsApp keeps 08:30–22:00. `always`: the assigned seller gets them at any hour, every day, on every channel the workspace has on (in-app, push, email, staff WhatsApp). Owners and admins are never woken: their copy still arrives in the opening summary.
|
|
322633
|
+
* @enum {string|null}
|
|
322634
|
+
*/
|
|
322635
|
+
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
322631
322636
|
/** @description Workspace display name. */
|
|
322632
322637
|
name?: string;
|
|
322633
322638
|
/** @description The workspace country, ISO 3166-1 alpha-2 (e.g. `CL`, `MX`, `CO`, `AR`). It supplies the defaults for time zone, currency, phone parsing, national holidays, form of address and patient document whenever those are not set explicitly. Absent until set; `locale_resolved` gives what applies. */
|
|
@@ -322914,6 +322919,11 @@ interface components {
|
|
|
322914
322919
|
stage_ids: string[];
|
|
322915
322920
|
};
|
|
322916
322921
|
};
|
|
322922
|
+
/**
|
|
322923
|
+
* @description When the assigned seller is notified. `business_hours` (default, null): the new-assignment notice and the «sin respuesta» alerts and reminders wait for the opening of the Horario de atención, and the staff WhatsApp keeps 08:30–22:00. `always`: the assigned seller gets them at any hour, every day, on every channel the workspace has on (in-app, push, email, staff WhatsApp). Owners and admins are never woken: their copy still arrives in the opening summary.
|
|
322924
|
+
* @enum {string|null}
|
|
322925
|
+
*/
|
|
322926
|
+
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
322917
322927
|
/** @description Turn the «Servicio de vehículos» workshop board on (creates it; automotive only) or off (removes it only while it never held a ticket). */
|
|
322918
322928
|
manage_workshop?: boolean;
|
|
322919
322929
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -16462,7 +16462,7 @@ interface paths {
|
|
|
16462
16462
|
};
|
|
16463
16463
|
/**
|
|
16464
16464
|
* Read tenant-level settings
|
|
16465
|
-
* @description The stored settings object, as saved through `PUT /tenant/settings`. Among its keys, `ads` holds the Vitrina Ads wizard choice: `{ tag_choice: "site" | "no_site" | null, tag_choice_at: string | null }` (`tag_choice_at` is stamped by the server on every write); absent when the workspace never answered the «Instalar el tag» step. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language` and `
|
|
16465
|
+
* @description The stored settings object, as saved through `PUT /tenant/settings`. Among its keys, `ads` holds the Vitrina Ads wizard choice: `{ tag_choice: "site" | "no_site" | null, tag_choice_at: string | null }` (`tag_choice_at` is stamped by the server on every write); absent when the workspace never answered the «Instalar el tag» step. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state), and when the assigned seller is notified (`staff_notice_schedule`). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language`, `notifications` and `staff_notice_schedule` (among others documented here): any other key, `slack_webhook_url` included, is refused with 403, so a connected app cannot send the mask back either. For a workspace's own API key or personal token with `tenant:write`, writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it. The webhook receives only the workspace's own alerts (pricing alerts and digests, reminders about its listings, consignments, credit applications and post-sale obligations, SLA breaches and safety holds); Vitrina never posts its internal alerts to it.
|
|
16466
16466
|
*/
|
|
16467
16467
|
get: {
|
|
16468
16468
|
parameters: {
|
|
@@ -16565,7 +16565,7 @@ interface paths {
|
|
|
16565
16565
|
};
|
|
16566
16566
|
/**
|
|
16567
16567
|
* Patch tenant-level settings
|
|
16568
|
-
* @description Shallow-merges the body into the stored settings and answers the result. `ads` is merged key by key (a write that sends only `ads.tag_choice` keeps `ads.goal`), and the server stamps `tag_choice_at` / `goal_at` / `goal_by` — a client never sends them (400). A connected app may write only `ads`; any other key is refused with 403 and nothing is written. Requires `tenant:write`, or `ads:write` for a body that carries only `ads`. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language` and `
|
|
16568
|
+
* @description Shallow-merges the body into the stored settings and answers the result. `ads` is merged key by key (a write that sends only `ads.tag_choice` keeps `ads.goal`), and the server stamps `tag_choice_at` / `goal_at` / `goal_by` — a client never sends them (400). A connected app may write only `ads`; any other key is refused with 403 and nothing is written. Requires `tenant:write`, or `ads:write` for a body that carries only `ads`. Only the keys documented here are part of the API pública: the workspace's general identity (`name`, `timezone`, `language`, `currency`, `date_format`, `website`) and the Vitrina Ads choices under `ads`, the template voice under `voice`, the AI agent's banned terms under `agent_language`, and the notification rails under `notifications` (arming a staff WhatsApp rail submits its template to Meta and wires it on approval; the read-only `staff_rails` reports each rail template state), and when the assigned seller is notified (`staff_notice_schedule`). Every API credential (API key, personal token, connected app, and the MCP) receives exactly those keys. Secrets are write-only: `slack_webhook_url` is never returned — a read answers `••••` plus `slack_webhook_configured`. Connected apps write only `ads`, `voice`, `agent_language`, `notifications` and `staff_notice_schedule` (among others documented here): any other key, `slack_webhook_url` included, is refused with 403, so a connected app cannot send the mask back either. For a workspace's own API key or personal token with `tenant:write`, writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it. The webhook receives only the workspace's own alerts (pricing alerts and digests, reminders about its listings, consignments, credit applications and post-sale obligations, SLA breaches and safety holds); Vitrina never posts its internal alerts to it.
|
|
16569
16569
|
*/
|
|
16570
16570
|
put: {
|
|
16571
16571
|
parameters: {
|
|
@@ -322628,6 +322628,11 @@ interface components {
|
|
|
322628
322628
|
}[];
|
|
322629
322629
|
};
|
|
322630
322630
|
};
|
|
322631
|
+
/**
|
|
322632
|
+
* @description When the assigned seller is notified. `business_hours` (default, null): the new-assignment notice and the «sin respuesta» alerts and reminders wait for the opening of the Horario de atención, and the staff WhatsApp keeps 08:30–22:00. `always`: the assigned seller gets them at any hour, every day, on every channel the workspace has on (in-app, push, email, staff WhatsApp). Owners and admins are never woken: their copy still arrives in the opening summary.
|
|
322633
|
+
* @enum {string|null}
|
|
322634
|
+
*/
|
|
322635
|
+
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
322631
322636
|
/** @description Workspace display name. */
|
|
322632
322637
|
name?: string;
|
|
322633
322638
|
/** @description The workspace country, ISO 3166-1 alpha-2 (e.g. `CL`, `MX`, `CO`, `AR`). It supplies the defaults for time zone, currency, phone parsing, national holidays, form of address and patient document whenever those are not set explicitly. Absent until set; `locale_resolved` gives what applies. */
|
|
@@ -322914,6 +322919,11 @@ interface components {
|
|
|
322914
322919
|
stage_ids: string[];
|
|
322915
322920
|
};
|
|
322916
322921
|
};
|
|
322922
|
+
/**
|
|
322923
|
+
* @description When the assigned seller is notified. `business_hours` (default, null): the new-assignment notice and the «sin respuesta» alerts and reminders wait for the opening of the Horario de atención, and the staff WhatsApp keeps 08:30–22:00. `always`: the assigned seller gets them at any hour, every day, on every channel the workspace has on (in-app, push, email, staff WhatsApp). Owners and admins are never woken: their copy still arrives in the opening summary.
|
|
322924
|
+
* @enum {string|null}
|
|
322925
|
+
*/
|
|
322926
|
+
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
322917
322927
|
/** @description Turn the «Servicio de vehículos» workshop board on (creates it; automotive only) or off (removes it only while it never held a ticket). */
|
|
322918
322928
|
manage_workshop?: boolean;
|
|
322919
322929
|
};
|
package/package.json
CHANGED