@vitrina/api 14.108.0 → 14.109.1

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
@@ -18182,7 +18182,7 @@ interface paths {
18182
18182
  /** Format: uuid */
18183
18183
  responsible_user_id?: string | null;
18184
18184
  /**
18185
- * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18185
+ * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`, `yapo_panel`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18186
18186
  * @example [
18187
18187
  * "chileautos",
18188
18188
  * "mercadolibre"
@@ -18843,7 +18843,7 @@ interface paths {
18843
18843
  /** Format: uuid */
18844
18844
  responsible_user_id?: string | null;
18845
18845
  /**
18846
- * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18846
+ * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`, `yapo_panel`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18847
18847
  * @example [
18848
18848
  * "chileautos",
18849
18849
  * "mercadolibre"
@@ -168784,6 +168784,8 @@ interface paths {
168784
168784
  /**
168785
168785
  * List the workspace’s marketplace accounts
168786
168786
  * @description Every connection, with `secrets_preview` and `has_credentials` in place of the stored secrets, plus the current `verification_status`. Unpaginated.
168787
+ *
168788
+ * **`ad_quota`** (Yapo panel connections, `provider: "yapo_panel"`): how many ads the dealer’s Yapo plan allows and how many are active, as the last panel sync or panel publish read them: `{ used, allowed, plan_code, plan_name, checked_at }`. `used` and `allowed` are `null` when Yapo states no number (a free account has no stated allowance; the import plan has no cap); `plan_code` / `plan_name` are Yapo’s own (`U_PA_30` / "Plan automotriz 30"; `allowed` is the plan’s N). The whole field is `null` for every other portal and before the first read. A publish to a full plan is refused before anything is posted, with the publication in `error`: "Tu plan de Yapo permite N avisos activos; quita uno o sube de plan". Vitrina never buys a plan, an extra ad or a highlight.
168787
168789
  */
168788
168790
  get: {
168789
168791
  parameters: {
@@ -168826,6 +168828,7 @@ interface paths {
168826
168828
  * "verification_status": "verified",
168827
168829
  * "verification_checked_at": "2026-10-09T08:00:00.000Z",
168828
168830
  * "verification_error": null,
168831
+ * "ad_quota": null,
168829
168832
  * "created_at": "2026-09-01T12:00:00.000Z",
168830
168833
  * "updated_at": "2026-10-09T08:00:00.000Z"
168831
168834
  * }
@@ -168914,6 +168917,8 @@ interface paths {
168914
168917
  /**
168915
168918
  * Fetch one marketplace account
168916
168919
  * @description The account view: configuration, `verification_status`, and `has_credentials` / `secrets_preview` rather than the secrets themselves (`has_user_login` says whether a Veekls app user is stored). This is what to poll after a 202 from `/verify`.
168920
+ *
168921
+ * **`ad_quota`** (Yapo panel connections, `provider: "yapo_panel"`): how many ads the dealer’s Yapo plan allows and how many are active, as the last panel sync or panel publish read them: `{ used, allowed, plan_code, plan_name, checked_at }`. `used` and `allowed` are `null` when Yapo states no number (a free account has no stated allowance; the import plan has no cap); `plan_code` / `plan_name` are Yapo’s own (`U_PA_30` / "Plan automotriz 30"; `allowed` is the plan’s N). The whole field is `null` for every other portal and before the first read. A publish to a full plan is refused before anything is posted, with the publication in `error`: "Tu plan de Yapo permite N avisos activos; quita uno o sube de plan". Vitrina never buys a plan, an extra ad or a highlight.
168917
168922
  */
168918
168923
  get: {
168919
168924
  parameters: {
@@ -168957,6 +168962,7 @@ interface paths {
168957
168962
  * "verification_status": "verified",
168958
168963
  * "verification_checked_at": "2026-10-09T08:00:00.000Z",
168959
168964
  * "verification_error": null,
168965
+ * "ad_quota": null,
168960
168966
  * "created_at": "2026-09-01T12:00:00.000Z",
168961
168967
  * "updated_at": "2026-10-09T08:00:00.000Z"
168962
168968
  * }
package/dist/index.d.ts CHANGED
@@ -18182,7 +18182,7 @@ interface paths {
18182
18182
  /** Format: uuid */
18183
18183
  responsible_user_id?: string | null;
18184
18184
  /**
18185
- * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18185
+ * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`, `yapo_panel`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18186
18186
  * @example [
18187
18187
  * "chileautos",
18188
18188
  * "mercadolibre"
@@ -18843,7 +18843,7 @@ interface paths {
18843
18843
  /** Format: uuid */
18844
18844
  responsible_user_id?: string | null;
18845
18845
  /**
18846
- * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18846
+ * @description OPTIONAL. Marketplaces to publish this vehicle to right after it is saved — the same effect as a follow-up POST /vehicles/{id}/publish, in one call. Omitted or `[]` means save only and publish nowhere: there is no default and no tenant-level setting. Each entry is either a portal slug (`chileautos`, `chileautos_panel`, `linze`, `mercadolibre`, `veekls`, `yapo`, `yapo_panel`) or a marketplace integration id (the `id` of a row from GET /marketplaces). A portal slug resolves to the connected account the workspace has for that portal, whichever transport it uses (`chileautos` reaches the certified API account or the `chileautos_panel` account). Every entry is validated BEFORE the vehicle is written, and any bad entry answers 422 with nothing saved: a slug with no connected account, a slug matching more than one account (pass the integration id instead), an id that is not one of this workspace's accounts, or a portal that does not accept this vehicle type. Entries resolving to the same account are deduplicated. A portal FAILING to publish never fails the save — see `publications` in the response. On PUT, `publish_to` only ADDS portals: a portal where the vehicle is already live or queued is a no-op (`already_published`), never a second ad, and a portal left out is NOT unpublished — removal is DELETE /vehicles/{id}/publications/{pubId}.
18847
18847
  * @example [
18848
18848
  * "chileautos",
18849
18849
  * "mercadolibre"
@@ -168784,6 +168784,8 @@ interface paths {
168784
168784
  /**
168785
168785
  * List the workspace’s marketplace accounts
168786
168786
  * @description Every connection, with `secrets_preview` and `has_credentials` in place of the stored secrets, plus the current `verification_status`. Unpaginated.
168787
+ *
168788
+ * **`ad_quota`** (Yapo panel connections, `provider: "yapo_panel"`): how many ads the dealer’s Yapo plan allows and how many are active, as the last panel sync or panel publish read them: `{ used, allowed, plan_code, plan_name, checked_at }`. `used` and `allowed` are `null` when Yapo states no number (a free account has no stated allowance; the import plan has no cap); `plan_code` / `plan_name` are Yapo’s own (`U_PA_30` / "Plan automotriz 30"; `allowed` is the plan’s N). The whole field is `null` for every other portal and before the first read. A publish to a full plan is refused before anything is posted, with the publication in `error`: "Tu plan de Yapo permite N avisos activos; quita uno o sube de plan". Vitrina never buys a plan, an extra ad or a highlight.
168787
168789
  */
168788
168790
  get: {
168789
168791
  parameters: {
@@ -168826,6 +168828,7 @@ interface paths {
168826
168828
  * "verification_status": "verified",
168827
168829
  * "verification_checked_at": "2026-10-09T08:00:00.000Z",
168828
168830
  * "verification_error": null,
168831
+ * "ad_quota": null,
168829
168832
  * "created_at": "2026-09-01T12:00:00.000Z",
168830
168833
  * "updated_at": "2026-10-09T08:00:00.000Z"
168831
168834
  * }
@@ -168914,6 +168917,8 @@ interface paths {
168914
168917
  /**
168915
168918
  * Fetch one marketplace account
168916
168919
  * @description The account view: configuration, `verification_status`, and `has_credentials` / `secrets_preview` rather than the secrets themselves (`has_user_login` says whether a Veekls app user is stored). This is what to poll after a 202 from `/verify`.
168920
+ *
168921
+ * **`ad_quota`** (Yapo panel connections, `provider: "yapo_panel"`): how many ads the dealer’s Yapo plan allows and how many are active, as the last panel sync or panel publish read them: `{ used, allowed, plan_code, plan_name, checked_at }`. `used` and `allowed` are `null` when Yapo states no number (a free account has no stated allowance; the import plan has no cap); `plan_code` / `plan_name` are Yapo’s own (`U_PA_30` / "Plan automotriz 30"; `allowed` is the plan’s N). The whole field is `null` for every other portal and before the first read. A publish to a full plan is refused before anything is posted, with the publication in `error`: "Tu plan de Yapo permite N avisos activos; quita uno o sube de plan". Vitrina never buys a plan, an extra ad or a highlight.
168917
168922
  */
168918
168923
  get: {
168919
168924
  parameters: {
@@ -168957,6 +168962,7 @@ interface paths {
168957
168962
  * "verification_status": "verified",
168958
168963
  * "verification_checked_at": "2026-10-09T08:00:00.000Z",
168959
168964
  * "verification_error": null,
168965
+ * "ad_quota": null,
168960
168966
  * "created_at": "2026-09-01T12:00:00.000Z",
168961
168967
  * "updated_at": "2026-10-09T08:00:00.000Z"
168962
168968
  * }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.108.0",
3
+ "version": "14.109.1",
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",