@vitrina/api 17.100.0 → 17.101.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 +6 -2
- package/dist/index.d.ts +6 -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), 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 `
|
|
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`), and whether the chats the AI answers are assigned to the lead owner (`chat_follows_lead_owner`). 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`, `staff_notice_schedule` and `chat_follows_lead_owner` (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: {
|
|
@@ -16566,7 +16566,7 @@ interface paths {
|
|
|
16566
16566
|
};
|
|
16567
16567
|
/**
|
|
16568
16568
|
* Patch tenant-level settings
|
|
16569
|
-
* @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`. On a clinic workspace that already has prices, presupuestos, deposit rules or payments, a write that would change the effective currency (an explicit `currency`, or a `country` whose default currency differs while none is stored) is refused with 422 `WORKSPACE_CURRENCY_LOCKED` (`details.reason` `workspace_currency_locked`, `currency`, `requested_currency`) and nothing is written; Vitrina support changes it. 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 `
|
|
16569
|
+
* @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`. On a clinic workspace that already has prices, presupuestos, deposit rules or payments, a write that would change the effective currency (an explicit `currency`, or a `country` whose default currency differs while none is stored) is refused with 422 `WORKSPACE_CURRENCY_LOCKED` (`details.reason` `workspace_currency_locked`, `currency`, `requested_currency`) and nothing is written; Vitrina support changes it. 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`), and whether the chats the AI answers are assigned to the lead owner (`chat_follows_lead_owner`). 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`, `staff_notice_schedule` and `chat_follows_lead_owner` (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.
|
|
16570
16570
|
*/
|
|
16571
16571
|
put: {
|
|
16572
16572
|
parameters: {
|
|
@@ -322909,6 +322909,8 @@ interface components {
|
|
|
322909
322909
|
* @enum {string|null}
|
|
322910
322910
|
*/
|
|
322911
322911
|
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
322912
|
+
/** @description Assign the AI's chats to the lead owner. `true`: an open chat the AI is answering takes the owner of the contact's open lead as its assignee, silently (no notification; the seller is notified at handoff as before), so a seller who sees only their own records sees the chat the AI is handling for their lead. A chat a person handles is never taken. `false` / null (default): chats the AI answers keep today's assignment. */
|
|
322913
|
+
chat_follows_lead_owner?: boolean | null;
|
|
322912
322914
|
/** @description Workspace display name. */
|
|
322913
322915
|
name?: string;
|
|
322914
322916
|
/** @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. */
|
|
@@ -323207,6 +323209,8 @@ interface components {
|
|
|
323207
323209
|
* @enum {string|null}
|
|
323208
323210
|
*/
|
|
323209
323211
|
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
323212
|
+
/** @description Assign the AI's chats to the lead owner. `true`: an open chat the AI is answering takes the owner of the contact's open lead as its assignee, silently (no notification; the seller is notified at handoff as before), so a seller who sees only their own records sees the chat the AI is handling for their lead. A chat a person handles is never taken. `false` / null (default): chats the AI answers keep today's assignment. */
|
|
323213
|
+
chat_follows_lead_owner?: boolean | null;
|
|
323210
323214
|
/** @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). */
|
|
323211
323215
|
manage_workshop?: boolean;
|
|
323212
323216
|
};
|
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), 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 `
|
|
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`), and whether the chats the AI answers are assigned to the lead owner (`chat_follows_lead_owner`). 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`, `staff_notice_schedule` and `chat_follows_lead_owner` (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: {
|
|
@@ -16566,7 +16566,7 @@ interface paths {
|
|
|
16566
16566
|
};
|
|
16567
16567
|
/**
|
|
16568
16568
|
* Patch tenant-level settings
|
|
16569
|
-
* @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`. On a clinic workspace that already has prices, presupuestos, deposit rules or payments, a write that would change the effective currency (an explicit `currency`, or a `country` whose default currency differs while none is stored) is refused with 422 `WORKSPACE_CURRENCY_LOCKED` (`details.reason` `workspace_currency_locked`, `currency`, `requested_currency`) and nothing is written; Vitrina support changes it. 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 `
|
|
16569
|
+
* @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`. On a clinic workspace that already has prices, presupuestos, deposit rules or payments, a write that would change the effective currency (an explicit `currency`, or a `country` whose default currency differs while none is stored) is refused with 422 `WORKSPACE_CURRENCY_LOCKED` (`details.reason` `workspace_currency_locked`, `currency`, `requested_currency`) and nothing is written; Vitrina support changes it. 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`), and whether the chats the AI answers are assigned to the lead owner (`chat_follows_lead_owner`). 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`, `staff_notice_schedule` and `chat_follows_lead_owner` (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.
|
|
16570
16570
|
*/
|
|
16571
16571
|
put: {
|
|
16572
16572
|
parameters: {
|
|
@@ -322909,6 +322909,8 @@ interface components {
|
|
|
322909
322909
|
* @enum {string|null}
|
|
322910
322910
|
*/
|
|
322911
322911
|
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
322912
|
+
/** @description Assign the AI's chats to the lead owner. `true`: an open chat the AI is answering takes the owner of the contact's open lead as its assignee, silently (no notification; the seller is notified at handoff as before), so a seller who sees only their own records sees the chat the AI is handling for their lead. A chat a person handles is never taken. `false` / null (default): chats the AI answers keep today's assignment. */
|
|
322913
|
+
chat_follows_lead_owner?: boolean | null;
|
|
322912
322914
|
/** @description Workspace display name. */
|
|
322913
322915
|
name?: string;
|
|
322914
322916
|
/** @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. */
|
|
@@ -323207,6 +323209,8 @@ interface components {
|
|
|
323207
323209
|
* @enum {string|null}
|
|
323208
323210
|
*/
|
|
323209
323211
|
staff_notice_schedule?: "business_hours" | "always" | null;
|
|
323212
|
+
/** @description Assign the AI's chats to the lead owner. `true`: an open chat the AI is answering takes the owner of the contact's open lead as its assignee, silently (no notification; the seller is notified at handoff as before), so a seller who sees only their own records sees the chat the AI is handling for their lead. A chat a person handles is never taken. `false` / null (default): chats the AI answers keep today's assignment. */
|
|
323213
|
+
chat_follows_lead_owner?: boolean | null;
|
|
323210
323214
|
/** @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). */
|
|
323211
323215
|
manage_workshop?: boolean;
|
|
323212
323216
|
};
|
package/package.json
CHANGED