@vitrina/api 11.27.0 → 11.28.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 CHANGED
@@ -10546,6 +10546,124 @@ interface paths {
10546
10546
  patch?: never;
10547
10547
  trace?: never;
10548
10548
  };
10549
+ "/messaging-accounts/email-sender/mine": {
10550
+ parameters: {
10551
+ query?: never;
10552
+ header?: never;
10553
+ path?: never;
10554
+ cookie?: never;
10555
+ };
10556
+ /**
10557
+ * Mailboxes you can send a new email from
10558
+ * @description Lists the mailboxes the signed-in teammate may send a new email from: their own connected mailbox (the one whose address is their login email) and the workspace principal mailbox. `default_id` is the one used when a send or a draft does not set `from_account_id` — their own mailbox if they have one, otherwise the principal. `can_connect_own` is true when they have no mailbox of their own yet. Pass one of these ids as `from_account_id` to `POST /conversations/email` or to an email draft; any other mailbox is refused.
10559
+ */
10560
+ get: {
10561
+ parameters: {
10562
+ query?: never;
10563
+ header?: never;
10564
+ path?: never;
10565
+ cookie?: never;
10566
+ };
10567
+ requestBody?: never;
10568
+ responses: {
10569
+ /** @description Sendable mailboxes */
10570
+ 200: {
10571
+ headers: {
10572
+ [name: string]: unknown;
10573
+ };
10574
+ content: {
10575
+ /**
10576
+ * @example {
10577
+ * "options": [
10578
+ * {
10579
+ * "id": "0b5f4c2e-7d1a-4e9b-9c3f-2a6d8e1f4b70",
10580
+ * "name": "María",
10581
+ * "address": "maria@ejemplo.cl",
10582
+ * "role": "own"
10583
+ * },
10584
+ * {
10585
+ * "id": "5e2a9d14-3c8b-4f60-a1e7-9b4c2d7f0a35",
10586
+ * "name": "Ventas",
10587
+ * "address": "ventas@ejemplo.cl",
10588
+ * "role": "principal"
10589
+ * }
10590
+ * ],
10591
+ * "default_id": "0b5f4c2e-7d1a-4e9b-9c3f-2a6d8e1f4b70",
10592
+ * "can_connect_own": false
10593
+ * }
10594
+ */
10595
+ "application/json": {
10596
+ data?: unknown;
10597
+ meta?: {
10598
+ [key: string]: unknown;
10599
+ };
10600
+ };
10601
+ };
10602
+ };
10603
+ /** @description Validation error */
10604
+ 400: {
10605
+ headers: {
10606
+ [name: string]: unknown;
10607
+ };
10608
+ content: {
10609
+ "application/json": components["schemas"]["Error"];
10610
+ };
10611
+ };
10612
+ /** @description Unauthorized */
10613
+ 401: {
10614
+ headers: {
10615
+ [name: string]: unknown;
10616
+ };
10617
+ content: {
10618
+ "application/json": components["schemas"]["Error"];
10619
+ };
10620
+ };
10621
+ /** @description Forbidden */
10622
+ 403: {
10623
+ headers: {
10624
+ [name: string]: unknown;
10625
+ };
10626
+ content: {
10627
+ "application/json": components["schemas"]["Error"];
10628
+ };
10629
+ };
10630
+ /** @description Not found */
10631
+ 404: {
10632
+ headers: {
10633
+ [name: string]: unknown;
10634
+ };
10635
+ content: {
10636
+ "application/json": components["schemas"]["Error"];
10637
+ };
10638
+ };
10639
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
10640
+ 409: {
10641
+ headers: {
10642
+ [name: string]: unknown;
10643
+ };
10644
+ content: {
10645
+ "application/json": components["schemas"]["Error"];
10646
+ };
10647
+ };
10648
+ /** @description Rate limited */
10649
+ 429: {
10650
+ headers: {
10651
+ [name: string]: unknown;
10652
+ };
10653
+ content: {
10654
+ "application/json": components["schemas"]["Error"];
10655
+ };
10656
+ };
10657
+ };
10658
+ };
10659
+ put?: never;
10660
+ post?: never;
10661
+ delete?: never;
10662
+ options?: never;
10663
+ head?: never;
10664
+ patch?: never;
10665
+ trace?: never;
10666
+ };
10549
10667
  "/webhooks": {
10550
10668
  parameters: {
10551
10669
  query?: never;
@@ -13577,7 +13695,7 @@ interface paths {
13577
13695
  };
13578
13696
  /**
13579
13697
  * Read tenant-level settings
13580
- * @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`. 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`; writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it.
13698
+ * @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`. 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`: 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.
13581
13699
  */
13582
13700
  get: {
13583
13701
  parameters: {
@@ -13612,7 +13730,8 @@ interface paths {
13612
13730
  * },
13613
13731
  * "goal_at": "2026-09-01T12:00:00.000Z",
13614
13732
  * "goal_by": "20000000-0000-4000-8000-000000000001"
13615
- * }
13733
+ * },
13734
+ * "slack_webhook_configured": false
13616
13735
  * }
13617
13736
  * }
13618
13737
  */
@@ -13679,7 +13798,7 @@ interface paths {
13679
13798
  };
13680
13799
  /**
13681
13800
  * Patch tenant-level settings
13682
- * @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`. 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`; writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it.
13801
+ * @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`. 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`: 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.
13683
13802
  */
13684
13803
  put: {
13685
13804
  parameters: {
@@ -13718,7 +13837,8 @@ interface paths {
13718
13837
  * "ads": {
13719
13838
  * "tag_choice": "site",
13720
13839
  * "tag_choice_at": "2026-09-24T12:00:00.000Z"
13721
- * }
13840
+ * },
13841
+ * "slack_webhook_configured": false
13722
13842
  * }
13723
13843
  * }
13724
13844
  */
@@ -74921,6 +75041,8 @@ interface paths {
74921
75041
  html?: string;
74922
75042
  /** Format: uuid */
74923
75043
  signature_id?: string | null;
75044
+ /** Format: uuid */
75045
+ from_account_id?: string;
74924
75046
  };
74925
75047
  };
74926
75048
  };
@@ -81991,6 +82113,8 @@ interface paths {
81991
82113
  body_text?: string;
81992
82114
  signature_id?: string | "none" | null;
81993
82115
  /** Format: uuid */
82116
+ from_account_id?: string | null;
82117
+ /** Format: uuid */
81994
82118
  conversation_id?: string | null;
81995
82119
  };
81996
82120
  };
@@ -82330,6 +82454,8 @@ interface paths {
82330
82454
  body_html?: string;
82331
82455
  body_text?: string;
82332
82456
  signature_id?: string | "none" | null;
82457
+ /** Format: uuid */
82458
+ from_account_id?: string | null;
82333
82459
  };
82334
82460
  };
82335
82461
  };
package/dist/index.d.ts CHANGED
@@ -10546,6 +10546,124 @@ interface paths {
10546
10546
  patch?: never;
10547
10547
  trace?: never;
10548
10548
  };
10549
+ "/messaging-accounts/email-sender/mine": {
10550
+ parameters: {
10551
+ query?: never;
10552
+ header?: never;
10553
+ path?: never;
10554
+ cookie?: never;
10555
+ };
10556
+ /**
10557
+ * Mailboxes you can send a new email from
10558
+ * @description Lists the mailboxes the signed-in teammate may send a new email from: their own connected mailbox (the one whose address is their login email) and the workspace principal mailbox. `default_id` is the one used when a send or a draft does not set `from_account_id` — their own mailbox if they have one, otherwise the principal. `can_connect_own` is true when they have no mailbox of their own yet. Pass one of these ids as `from_account_id` to `POST /conversations/email` or to an email draft; any other mailbox is refused.
10559
+ */
10560
+ get: {
10561
+ parameters: {
10562
+ query?: never;
10563
+ header?: never;
10564
+ path?: never;
10565
+ cookie?: never;
10566
+ };
10567
+ requestBody?: never;
10568
+ responses: {
10569
+ /** @description Sendable mailboxes */
10570
+ 200: {
10571
+ headers: {
10572
+ [name: string]: unknown;
10573
+ };
10574
+ content: {
10575
+ /**
10576
+ * @example {
10577
+ * "options": [
10578
+ * {
10579
+ * "id": "0b5f4c2e-7d1a-4e9b-9c3f-2a6d8e1f4b70",
10580
+ * "name": "María",
10581
+ * "address": "maria@ejemplo.cl",
10582
+ * "role": "own"
10583
+ * },
10584
+ * {
10585
+ * "id": "5e2a9d14-3c8b-4f60-a1e7-9b4c2d7f0a35",
10586
+ * "name": "Ventas",
10587
+ * "address": "ventas@ejemplo.cl",
10588
+ * "role": "principal"
10589
+ * }
10590
+ * ],
10591
+ * "default_id": "0b5f4c2e-7d1a-4e9b-9c3f-2a6d8e1f4b70",
10592
+ * "can_connect_own": false
10593
+ * }
10594
+ */
10595
+ "application/json": {
10596
+ data?: unknown;
10597
+ meta?: {
10598
+ [key: string]: unknown;
10599
+ };
10600
+ };
10601
+ };
10602
+ };
10603
+ /** @description Validation error */
10604
+ 400: {
10605
+ headers: {
10606
+ [name: string]: unknown;
10607
+ };
10608
+ content: {
10609
+ "application/json": components["schemas"]["Error"];
10610
+ };
10611
+ };
10612
+ /** @description Unauthorized */
10613
+ 401: {
10614
+ headers: {
10615
+ [name: string]: unknown;
10616
+ };
10617
+ content: {
10618
+ "application/json": components["schemas"]["Error"];
10619
+ };
10620
+ };
10621
+ /** @description Forbidden */
10622
+ 403: {
10623
+ headers: {
10624
+ [name: string]: unknown;
10625
+ };
10626
+ content: {
10627
+ "application/json": components["schemas"]["Error"];
10628
+ };
10629
+ };
10630
+ /** @description Not found */
10631
+ 404: {
10632
+ headers: {
10633
+ [name: string]: unknown;
10634
+ };
10635
+ content: {
10636
+ "application/json": components["schemas"]["Error"];
10637
+ };
10638
+ };
10639
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
10640
+ 409: {
10641
+ headers: {
10642
+ [name: string]: unknown;
10643
+ };
10644
+ content: {
10645
+ "application/json": components["schemas"]["Error"];
10646
+ };
10647
+ };
10648
+ /** @description Rate limited */
10649
+ 429: {
10650
+ headers: {
10651
+ [name: string]: unknown;
10652
+ };
10653
+ content: {
10654
+ "application/json": components["schemas"]["Error"];
10655
+ };
10656
+ };
10657
+ };
10658
+ };
10659
+ put?: never;
10660
+ post?: never;
10661
+ delete?: never;
10662
+ options?: never;
10663
+ head?: never;
10664
+ patch?: never;
10665
+ trace?: never;
10666
+ };
10549
10667
  "/webhooks": {
10550
10668
  parameters: {
10551
10669
  query?: never;
@@ -13577,7 +13695,7 @@ interface paths {
13577
13695
  };
13578
13696
  /**
13579
13697
  * Read tenant-level settings
13580
- * @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`. 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`; writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it.
13698
+ * @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`. 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`: 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.
13581
13699
  */
13582
13700
  get: {
13583
13701
  parameters: {
@@ -13612,7 +13730,8 @@ interface paths {
13612
13730
  * },
13613
13731
  * "goal_at": "2026-09-01T12:00:00.000Z",
13614
13732
  * "goal_by": "20000000-0000-4000-8000-000000000001"
13615
- * }
13733
+ * },
13734
+ * "slack_webhook_configured": false
13616
13735
  * }
13617
13736
  * }
13618
13737
  */
@@ -13679,7 +13798,7 @@ interface paths {
13679
13798
  };
13680
13799
  /**
13681
13800
  * Patch tenant-level settings
13682
- * @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`. 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`; writing `••••` back keeps the stored webhook, a new URL replaces it, and `null` or an empty string clears it.
13801
+ * @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`. 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`: 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.
13683
13802
  */
13684
13803
  put: {
13685
13804
  parameters: {
@@ -13718,7 +13837,8 @@ interface paths {
13718
13837
  * "ads": {
13719
13838
  * "tag_choice": "site",
13720
13839
  * "tag_choice_at": "2026-09-24T12:00:00.000Z"
13721
- * }
13840
+ * },
13841
+ * "slack_webhook_configured": false
13722
13842
  * }
13723
13843
  * }
13724
13844
  */
@@ -74921,6 +75041,8 @@ interface paths {
74921
75041
  html?: string;
74922
75042
  /** Format: uuid */
74923
75043
  signature_id?: string | null;
75044
+ /** Format: uuid */
75045
+ from_account_id?: string;
74924
75046
  };
74925
75047
  };
74926
75048
  };
@@ -81991,6 +82113,8 @@ interface paths {
81991
82113
  body_text?: string;
81992
82114
  signature_id?: string | "none" | null;
81993
82115
  /** Format: uuid */
82116
+ from_account_id?: string | null;
82117
+ /** Format: uuid */
81994
82118
  conversation_id?: string | null;
81995
82119
  };
81996
82120
  };
@@ -82330,6 +82454,8 @@ interface paths {
82330
82454
  body_html?: string;
82331
82455
  body_text?: string;
82332
82456
  signature_id?: string | "none" | null;
82457
+ /** Format: uuid */
82458
+ from_account_id?: string | null;
82333
82459
  };
82334
82460
  };
82335
82461
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "11.27.0",
3
+ "version": "11.28.0",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",