@vitrina/api 17.97.1 → 17.98.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
@@ -51719,7 +51719,7 @@ interface paths {
51719
51719
  };
51720
51720
  /**
51721
51721
  * List the car's papers
51722
- * @description `vehicle_id` is required; there is no tenant-wide list of documents. Newest first. Each paper carries its `kind`, its `label` (an `otro` paper) and its `expires_on` («Vence»), when recorded.
51722
+ * @description `vehicle_id` is required; there is no tenant-wide list of documents. Newest first. Each paper carries its `kind`, its `label` (an `otro` paper) and its `expires_on` («Vence»), when recorded. `meta.kinds` lists every kind with `customer_share_allowed` (may a paper of this kind be sent to customers) and `customer_shareable_default` (is it sendable when the upload does not say) — what an upload form needs before the paper exists.
51723
51723
  *
51724
51724
  * `expiring_within_days` (ADR 0114 §7) narrows to the papers «Vencido» or due within that many days, soonest first, each with `expiry_state`; without `vehicle_id` it covers every car in stock and never returns a cédula or a paper naming a person. The same papers raise the `vehicle_papers_expiring` dealer alert and fill the Stock counts `papers_expired` / `papers_expiring` on `GET /vehicles/stats`.
51725
51725
  */
@@ -51727,7 +51727,7 @@ interface paths {
51727
51727
  parameters: {
51728
51728
  query?: {
51729
51729
  vehicle_id?: string;
51730
- kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "otro";
51730
+ kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "informe_vehiculo" | "otro";
51731
51731
  expiring_within_days?: number;
51732
51732
  };
51733
51733
  header?: never;
@@ -51850,7 +51850,26 @@ interface paths {
51850
51850
  * "customer_shareable": true,
51851
51851
  * "customer_share_allowed": true
51852
51852
  * }
51853
- * ]
51853
+ * ],
51854
+ * "meta": {
51855
+ * "kinds": [
51856
+ * {
51857
+ * "kind": "padron",
51858
+ * "customer_share_allowed": true,
51859
+ * "customer_shareable_default": false
51860
+ * },
51861
+ * {
51862
+ * "kind": "cedula",
51863
+ * "customer_share_allowed": false,
51864
+ * "customer_shareable_default": false
51865
+ * },
51866
+ * {
51867
+ * "kind": "informe_vehiculo",
51868
+ * "customer_share_allowed": true,
51869
+ * "customer_shareable_default": true
51870
+ * }
51871
+ * ]
51872
+ * }
51854
51873
  * }
51855
51874
  */
51856
51875
  "application/json": {
@@ -51922,7 +51941,7 @@ interface paths {
51922
51941
  * File one of the car's papers (multipart/form-data)
51923
51942
  * @description Capped at the configured max size; the file part is required. PDF or an image (JPEG, PNG, WebP, HEIC, TIFF — a phone photo of a paper is fine).
51924
51943
  *
51925
- * THE CAR’S PAPERS (ADR 0114 §7): `kind` names the paper — `permiso_circulacion`, `revision_tecnica`, `soap`, `padron`, `certificado_anotaciones` (CAV), `factura`, `contrato`, `cedula`. Any other paper is `otro` with a `label` that names it («Factura de compra», «Informe mecánico»); a `label` with no `kind` files it as `otro`. `expires_on` records the day the paper stops being valid («Vence»). `replaces_id` supersedes a filed paper of the same kind: the old one is erased once the new one is filed.
51944
+ * THE CAR’S PAPERS (ADR 0114 §7): `kind` names the paper — `permiso_circulacion`, `revision_tecnica`, `soap`, `padron`, `certificado_anotaciones` (CAV), `informe_vehiculo` (the car’s history report — Autofact in Chile — which is filed as sendable to customers unless `customer_shareable` says otherwise), `factura`, `contrato`, `cedula`. Any other paper is `otro` with a `label` that names it («Factura de compra», «Informe mecánico»); a `label` with no `kind` files it as `otro`. `expires_on` records the day the paper stops being valid («Vence»). `replaces_id` supersedes a filed paper of the same kind: the old one is erased once the new one is filed.
51926
51945
  *
51927
51946
  * A SIGNED COPY of one of the car’s documents (ADR 0114 §7) is filed with `signed_document_type` (`purchase_note`, `sale_note`, `compraventa`, `consignment_contract`, `liquidacion`) and `signed_document_id` (the nota de venta’s id for a compraventa, the consignación’s id for a liquidación). The document must be this car’s, and a compraventa must have been printed; `kind` may then be omitted — it is `contrato` for the compraventa and the mandato, `otro` for the rest — and a contradicting `kind` is refused (400). `GET /vehicles/{id}/documents` shows the copy on its document.
51928
51947
  *
@@ -51952,10 +51971,10 @@ interface paths {
51952
51971
  /** Format: uuid */
51953
51972
  vehicle_id: string;
51954
51973
  /**
51955
- * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
51974
+ * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `informe_vehiculo` (informe del vehículo: the car’s history report, Autofact in Chile), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
51956
51975
  * @enum {string}
51957
51976
  */
51958
- kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "otro";
51977
+ kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "informe_vehiculo" | "otro";
51959
51978
  /** Format: uuid */
51960
51979
  subject_contact_id?: string;
51961
51980
  /** @enum {string} */
@@ -51968,7 +51987,7 @@ interface paths {
51968
51987
  */
51969
51988
  label?: string;
51970
51989
  expires_on?: string | "";
51971
- /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
51990
+ /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Omitted on upload, an `informe_vehiculo` is sendable and every other kind is internal (`meta.kinds` on the list says so per kind). Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
51972
51991
  customer_shareable?: boolean | ("true" | "false");
51973
51992
  /**
51974
51993
  * Format: uuid
@@ -52002,10 +52021,10 @@ interface paths {
52002
52021
  /** Format: uuid */
52003
52022
  vehicle_id: string;
52004
52023
  /**
52005
- * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
52024
+ * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `informe_vehiculo` (informe del vehículo: the car’s history report, Autofact in Chile), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
52006
52025
  * @enum {string}
52007
52026
  */
52008
- kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "otro";
52027
+ kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "informe_vehiculo" | "otro";
52009
52028
  /** Format: uuid */
52010
52029
  subject_contact_id?: string;
52011
52030
  /** @enum {string} */
@@ -52018,7 +52037,7 @@ interface paths {
52018
52037
  */
52019
52038
  label?: string;
52020
52039
  expires_on?: string | "";
52021
- /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52040
+ /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Omitted on upload, an `informe_vehiculo` is sendable and every other kind is internal (`meta.kinds` on the list says so per kind). Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52022
52041
  customer_shareable?: boolean | ("true" | "false");
52023
52042
  /**
52024
52043
  * Format: uuid
@@ -52343,7 +52362,7 @@ interface paths {
52343
52362
  * @example 2027-03-31
52344
52363
  */
52345
52364
  expires_on?: string | null;
52346
- /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52365
+ /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Omitted on upload, an `informe_vehiculo` is sendable and every other kind is internal (`meta.kinds` on the list says so per kind). Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52347
52366
  customer_shareable?: boolean;
52348
52367
  };
52349
52368
  };
package/dist/index.d.ts CHANGED
@@ -51719,7 +51719,7 @@ interface paths {
51719
51719
  };
51720
51720
  /**
51721
51721
  * List the car's papers
51722
- * @description `vehicle_id` is required; there is no tenant-wide list of documents. Newest first. Each paper carries its `kind`, its `label` (an `otro` paper) and its `expires_on` («Vence»), when recorded.
51722
+ * @description `vehicle_id` is required; there is no tenant-wide list of documents. Newest first. Each paper carries its `kind`, its `label` (an `otro` paper) and its `expires_on` («Vence»), when recorded. `meta.kinds` lists every kind with `customer_share_allowed` (may a paper of this kind be sent to customers) and `customer_shareable_default` (is it sendable when the upload does not say) — what an upload form needs before the paper exists.
51723
51723
  *
51724
51724
  * `expiring_within_days` (ADR 0114 §7) narrows to the papers «Vencido» or due within that many days, soonest first, each with `expiry_state`; without `vehicle_id` it covers every car in stock and never returns a cédula or a paper naming a person. The same papers raise the `vehicle_papers_expiring` dealer alert and fill the Stock counts `papers_expired` / `papers_expiring` on `GET /vehicles/stats`.
51725
51725
  */
@@ -51727,7 +51727,7 @@ interface paths {
51727
51727
  parameters: {
51728
51728
  query?: {
51729
51729
  vehicle_id?: string;
51730
- kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "otro";
51730
+ kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "informe_vehiculo" | "otro";
51731
51731
  expiring_within_days?: number;
51732
51732
  };
51733
51733
  header?: never;
@@ -51850,7 +51850,26 @@ interface paths {
51850
51850
  * "customer_shareable": true,
51851
51851
  * "customer_share_allowed": true
51852
51852
  * }
51853
- * ]
51853
+ * ],
51854
+ * "meta": {
51855
+ * "kinds": [
51856
+ * {
51857
+ * "kind": "padron",
51858
+ * "customer_share_allowed": true,
51859
+ * "customer_shareable_default": false
51860
+ * },
51861
+ * {
51862
+ * "kind": "cedula",
51863
+ * "customer_share_allowed": false,
51864
+ * "customer_shareable_default": false
51865
+ * },
51866
+ * {
51867
+ * "kind": "informe_vehiculo",
51868
+ * "customer_share_allowed": true,
51869
+ * "customer_shareable_default": true
51870
+ * }
51871
+ * ]
51872
+ * }
51854
51873
  * }
51855
51874
  */
51856
51875
  "application/json": {
@@ -51922,7 +51941,7 @@ interface paths {
51922
51941
  * File one of the car's papers (multipart/form-data)
51923
51942
  * @description Capped at the configured max size; the file part is required. PDF or an image (JPEG, PNG, WebP, HEIC, TIFF — a phone photo of a paper is fine).
51924
51943
  *
51925
- * THE CAR’S PAPERS (ADR 0114 §7): `kind` names the paper — `permiso_circulacion`, `revision_tecnica`, `soap`, `padron`, `certificado_anotaciones` (CAV), `factura`, `contrato`, `cedula`. Any other paper is `otro` with a `label` that names it («Factura de compra», «Informe mecánico»); a `label` with no `kind` files it as `otro`. `expires_on` records the day the paper stops being valid («Vence»). `replaces_id` supersedes a filed paper of the same kind: the old one is erased once the new one is filed.
51944
+ * THE CAR’S PAPERS (ADR 0114 §7): `kind` names the paper — `permiso_circulacion`, `revision_tecnica`, `soap`, `padron`, `certificado_anotaciones` (CAV), `informe_vehiculo` (the car’s history report — Autofact in Chile — which is filed as sendable to customers unless `customer_shareable` says otherwise), `factura`, `contrato`, `cedula`. Any other paper is `otro` with a `label` that names it («Factura de compra», «Informe mecánico»); a `label` with no `kind` files it as `otro`. `expires_on` records the day the paper stops being valid («Vence»). `replaces_id` supersedes a filed paper of the same kind: the old one is erased once the new one is filed.
51926
51945
  *
51927
51946
  * A SIGNED COPY of one of the car’s documents (ADR 0114 §7) is filed with `signed_document_type` (`purchase_note`, `sale_note`, `compraventa`, `consignment_contract`, `liquidacion`) and `signed_document_id` (the nota de venta’s id for a compraventa, the consignación’s id for a liquidación). The document must be this car’s, and a compraventa must have been printed; `kind` may then be omitted — it is `contrato` for the compraventa and the mandato, `otro` for the rest — and a contradicting `kind` is refused (400). `GET /vehicles/{id}/documents` shows the copy on its document.
51928
51947
  *
@@ -51952,10 +51971,10 @@ interface paths {
51952
51971
  /** Format: uuid */
51953
51972
  vehicle_id: string;
51954
51973
  /**
51955
- * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
51974
+ * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `informe_vehiculo` (informe del vehículo: the car’s history report, Autofact in Chile), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
51956
51975
  * @enum {string}
51957
51976
  */
51958
- kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "otro";
51977
+ kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "informe_vehiculo" | "otro";
51959
51978
  /** Format: uuid */
51960
51979
  subject_contact_id?: string;
51961
51980
  /** @enum {string} */
@@ -51968,7 +51987,7 @@ interface paths {
51968
51987
  */
51969
51988
  label?: string;
51970
51989
  expires_on?: string | "";
51971
- /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
51990
+ /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Omitted on upload, an `informe_vehiculo` is sendable and every other kind is internal (`meta.kinds` on the list says so per kind). Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
51972
51991
  customer_shareable?: boolean | ("true" | "false");
51973
51992
  /**
51974
51993
  * Format: uuid
@@ -52002,10 +52021,10 @@ interface paths {
52002
52021
  /** Format: uuid */
52003
52022
  vehicle_id: string;
52004
52023
  /**
52005
- * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
52024
+ * @description Which paper: `padron` (padrón / certificado de inscripción), `certificado_anotaciones` (certificado de anotaciones vigentes, CAV), `permiso_circulacion` (permiso de circulación), `revision_tecnica` (revisión técnica), `soap` (SOAP), `factura`, `contrato` (contrato firmado), `informe_vehiculo` (informe del vehículo: the car’s history report, Autofact in Chile), `cedula` (cédula de identidad del dueño o consignante) or `otro` (any other paper, named by `label`).
52006
52025
  * @enum {string}
52007
52026
  */
52008
- kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "otro";
52027
+ kind?: "padron" | "cedula" | "contrato" | "certificado_anotaciones" | "factura" | "permiso_circulacion" | "revision_tecnica" | "soap" | "informe_vehiculo" | "otro";
52009
52028
  /** Format: uuid */
52010
52029
  subject_contact_id?: string;
52011
52030
  /** @enum {string} */
@@ -52018,7 +52037,7 @@ interface paths {
52018
52037
  */
52019
52038
  label?: string;
52020
52039
  expires_on?: string | "";
52021
- /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52040
+ /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Omitted on upload, an `informe_vehiculo` is sendable and every other kind is internal (`meta.kinds` on the list says so per kind). Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52022
52041
  customer_shareable?: boolean | ("true" | "false");
52023
52042
  /**
52024
52043
  * Format: uuid
@@ -52343,7 +52362,7 @@ interface paths {
52343
52362
  * @example 2027-03-31
52344
52363
  */
52345
52364
  expires_on?: string | null;
52346
- /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52365
+ /** @description «Se puede enviar a clientes»: `true` lets a customer receive this paper in a conversation (the AI agent sends it when asked — an informe Autofact, the revisión técnica, the padrón); `false` keeps it internal. Omitted on upload, an `informe_vehiculo` is sendable and every other kind is internal (`meta.kinds` on the list says so per kind). Refused (400) on a `cedula`, a `contrato`, a `factura`, a paper naming a person (`subject_contact_id`) and a signed copy — each row says so in `customer_share_allowed`. It never publishes the paper to a portal. */
52347
52366
  customer_shareable?: boolean;
52348
52367
  };
52349
52368
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.97.1",
3
+ "version": "17.98.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",