@vitrina/api 17.13.2 → 17.14.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
@@ -76551,7 +76551,16 @@ interface paths {
76551
76551
  * "on": "2026-09-30"
76552
76552
  * },
76553
76553
  * "opening_balance_editable": true,
76554
- * "movement_count": 312
76554
+ * "movement_count": 312,
76555
+ * "agent_sharing": {
76556
+ * "shared": true,
76557
+ * "alias": "Banco de Chile ··4821",
76558
+ * "holder_name": "Clínica Ejemplo SpA",
76559
+ * "holder_rut": "76123456-7",
76560
+ * "holder_email": null,
76561
+ * "account_type": "corriente"
76562
+ * },
76563
+ * "can_share_with_agent": true
76555
76564
  * }
76556
76565
  * ],
76557
76566
  * "total_clp": 8450000,
@@ -76811,7 +76820,16 @@ interface paths {
76811
76820
  * "on": "2026-09-30"
76812
76821
  * },
76813
76822
  * "opening_balance_editable": true,
76814
- * "movement_count": 312
76823
+ * "movement_count": 312,
76824
+ * "agent_sharing": {
76825
+ * "shared": true,
76826
+ * "alias": "Banco de Chile ··4821",
76827
+ * "holder_name": "Clínica Ejemplo SpA",
76828
+ * "holder_rut": "76123456-7",
76829
+ * "holder_email": null,
76830
+ * "account_type": "corriente"
76831
+ * },
76832
+ * "can_share_with_agent": true
76815
76833
  * }
76816
76834
  * }
76817
76835
  */
@@ -76878,6 +76896,146 @@ interface paths {
76878
76896
  };
76879
76897
  trace?: never;
76880
76898
  };
76899
+ "/finanzas/bank-accounts/{id}/agent-sharing": {
76900
+ parameters: {
76901
+ query?: never;
76902
+ header?: never;
76903
+ path?: never;
76904
+ cookie?: never;
76905
+ };
76906
+ get?: never;
76907
+ /**
76908
+ * Share a bank account with the AI agent (or stop)
76909
+ * @description One bank-account registry (Finanzas 33): the Finanzas bank accounts are the workspace's accounts, and «el agente comparte esta cuenta» is a flag on one of them. `shared: true` makes the AI agent dictate this account for transfers and matches abonos into it (the same registry `GET /tenant-bank-accounts` lists); `false` stops it, keeping the row. The first share needs `holder_name` (400 `VALIDATION_ERROR`, `details.reason = agent_sharing_holder_required`); `holder_rut` defaults to the workspace's SII RUT. 409 `CONFLICT` with `details.reason = agent_sharing_not_supported` for a card, a credit line, a USD account or a number known only by its last digits. Audited. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
76910
+ */
76911
+ put: {
76912
+ parameters: {
76913
+ query?: never;
76914
+ header?: never;
76915
+ path: {
76916
+ id: string;
76917
+ };
76918
+ cookie?: never;
76919
+ };
76920
+ requestBody?: {
76921
+ content: {
76922
+ /**
76923
+ * @example {
76924
+ * "shared": true,
76925
+ * "holder_name": "Clínica Ejemplo SpA"
76926
+ * }
76927
+ */
76928
+ "application/json": components["schemas"]["FinanzasAgentSharingBody"];
76929
+ };
76930
+ };
76931
+ responses: {
76932
+ /** @description The account */
76933
+ 200: {
76934
+ headers: {
76935
+ [name: string]: unknown;
76936
+ };
76937
+ content: {
76938
+ /**
76939
+ * @example {
76940
+ * "data": {
76941
+ * "id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4a6c",
76942
+ * "name": "Cuenta corriente",
76943
+ * "institution_name": "Banco de Chile",
76944
+ * "number_masked": "****4821",
76945
+ * "type": "cuenta_corriente",
76946
+ * "currency": "CLP",
76947
+ * "source": "manual",
76948
+ * "has_feed": false,
76949
+ * "balance_clp": 8450000,
76950
+ * "balance_original": null,
76951
+ * "balance_as_of": "2026-10-30T08:00:00.000Z",
76952
+ * "balance_source": "computed",
76953
+ * "opening_balance": {
76954
+ * "amount_minor": 5000000,
76955
+ * "on": "2026-09-30"
76956
+ * },
76957
+ * "opening_balance_editable": true,
76958
+ * "movement_count": 312,
76959
+ * "agent_sharing": {
76960
+ * "shared": true,
76961
+ * "alias": "Banco de Chile ··4821",
76962
+ * "holder_name": "Clínica Ejemplo SpA",
76963
+ * "holder_rut": "76123456-7",
76964
+ * "holder_email": null,
76965
+ * "account_type": "corriente"
76966
+ * },
76967
+ * "can_share_with_agent": true
76968
+ * }
76969
+ * }
76970
+ */
76971
+ "application/json": {
76972
+ data: components["schemas"]["FinanzasBankAccount"];
76973
+ };
76974
+ };
76975
+ };
76976
+ /** @description Validation error */
76977
+ 400: {
76978
+ headers: {
76979
+ [name: string]: unknown;
76980
+ };
76981
+ content: {
76982
+ "application/json": components["schemas"]["Error"];
76983
+ };
76984
+ };
76985
+ /** @description Unauthorized */
76986
+ 401: {
76987
+ headers: {
76988
+ [name: string]: unknown;
76989
+ };
76990
+ content: {
76991
+ "application/json": components["schemas"]["Error"];
76992
+ };
76993
+ };
76994
+ /** @description Forbidden */
76995
+ 403: {
76996
+ headers: {
76997
+ [name: string]: unknown;
76998
+ };
76999
+ content: {
77000
+ "application/json": components["schemas"]["Error"];
77001
+ };
77002
+ };
77003
+ /** @description Not found */
77004
+ 404: {
77005
+ headers: {
77006
+ [name: string]: unknown;
77007
+ };
77008
+ content: {
77009
+ "application/json": components["schemas"]["Error"];
77010
+ };
77011
+ };
77012
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
77013
+ 409: {
77014
+ headers: {
77015
+ [name: string]: unknown;
77016
+ };
77017
+ content: {
77018
+ "application/json": components["schemas"]["Error"];
77019
+ };
77020
+ };
77021
+ /** @description Rate limited */
77022
+ 429: {
77023
+ headers: {
77024
+ [name: string]: unknown;
77025
+ };
77026
+ content: {
77027
+ "application/json": components["schemas"]["Error"];
77028
+ };
77029
+ };
77030
+ };
77031
+ };
77032
+ post?: never;
77033
+ delete?: never;
77034
+ options?: never;
77035
+ head?: never;
77036
+ patch?: never;
77037
+ trace?: never;
77038
+ };
76881
77039
  "/finanzas/documents": {
76882
77040
  parameters: {
76883
77041
  query?: never;
@@ -82891,7 +83049,7 @@ interface paths {
82891
83049
  };
82892
83050
  /**
82893
83051
  * The «Por resolver» inbox: open cases, biggest first
82894
- * @description A case is the open money of one Contraparte that Vitrina could not resolve on its own: bank movements nothing explains, cost documents with no account, and money out classified with no document («Falta documento»). Cases are recomputed after every bank, Mercado Pago and SII sync and before every read; only cases whose inputs changed are rewritten. Sorted by the money at stake (`order=needs_person`: the cases a person must answer first). `kind` and `period` (`recent` = this month and last month, `history` = older) filter; `total` and `amount_at_stake_clp` cover every open case of that filter, `counts` splits them (recent / history, needs_person / ready) and `waiting` lists the payments «esperando factura» (no case yet). Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
83052
+ * @description A case is the open money of one Contraparte that Vitrina could not resolve on its own: bank movements nothing explains, cost documents with no account, and money out classified with no document («Falta documento»). Cases are recomputed after every bank, Mercado Pago and SII sync and before every read; only cases whose inputs changed are rewritten. Sorted by the money at stake (`order=needs_person`: the cases a person must answer first). `kind`, `month` (`YYYY-MM`: a case belongs to ONE month, its oldest item's) and `period` (deprecated: `recent` / `history`) filter; `total` and `amount_at_stake_clp` cover every open case of that filter, `counts_by_month` lists every month with open cases (the month filter's options; months «Cerrado en Chipax» hold none), `counts` splits them (needs_person / ready) and `waiting` lists the payments «esperando factura» (no case yet). Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
82895
83053
  */
82896
83054
  get: {
82897
83055
  parameters: {
@@ -82900,6 +83058,7 @@ interface paths {
82900
83058
  limit?: number;
82901
83059
  offset?: number | null;
82902
83060
  period?: "recent" | "history" | "all";
83061
+ month?: string;
82903
83062
  order?: "amount" | "needs_person";
82904
83063
  };
82905
83064
  header?: never;
@@ -82956,6 +83115,13 @@ interface paths {
82956
83115
  * "total": 2,
82957
83116
  * "amount_at_stake_clp": 855290,
82958
83117
  * "since": "2026-09-01",
83118
+ * "counts_by_month": [
83119
+ * {
83120
+ * "month": "2026-10",
83121
+ * "open": 2,
83122
+ * "amount_clp": 855290
83123
+ * }
83124
+ * ],
82959
83125
  * "counts": {
82960
83126
  * "recent": 2,
82961
83127
  * "history": 0,
@@ -84403,7 +84569,7 @@ interface paths {
84403
84569
  };
84404
84570
  /**
84405
84571
  * Cierre de mes: each month and its state
84406
- * @description The month selector, newest first: `open` (a «Por resolver» case touches the month, or it has not ended), `ready_to_close` (ended, nothing open) or `closed`. A case touches a month when one of its movements falls in it or a document it needs classified was issued in it. Default: the current month and the 11 before; at most 24. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
84572
+ * @description The month selector, newest first: `open` (a «Por resolver» case belongs to the month, or it has not ended), `ready_to_close` (ended, nothing open), `closed` (a person closed it) or `closed_imported` («Cerrado en Chipax»: the import closed it; it raises no cases and a change asks for a reason; `closed_source` `chipax`, `imported_at`). A case belongs to ONE month: the one of its oldest item (a movement, or a document to classify). Default: the current month and the 11 before; at most 24. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
84407
84573
  */
84408
84574
  get: {
84409
84575
  parameters: {
@@ -84436,6 +84602,8 @@ interface paths {
84436
84602
  * "open_cases": 7,
84437
84603
  * "closed_at": null,
84438
84604
  * "closed_by": null,
84605
+ * "closed_source": null,
84606
+ * "imported_at": null,
84439
84607
  * "adjustment_count": 0
84440
84608
  * },
84441
84609
  * {
@@ -84446,6 +84614,8 @@ interface paths {
84446
84614
  * "open_cases": 0,
84447
84615
  * "closed_at": "2026-10-03T14:20:00.000Z",
84448
84616
  * "closed_by": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4f01",
84617
+ * "closed_source": "person",
84618
+ * "imported_at": null,
84449
84619
  * "adjustment_count": 1
84450
84620
  * },
84451
84621
  * {
@@ -84456,6 +84626,8 @@ interface paths {
84456
84626
  * "open_cases": 0,
84457
84627
  * "closed_at": null,
84458
84628
  * "closed_by": null,
84629
+ * "closed_source": null,
84630
+ * "imported_at": null,
84459
84631
  * "adjustment_count": 0
84460
84632
  * }
84461
84633
  * ]
@@ -84571,6 +84743,8 @@ interface paths {
84571
84743
  * "open_cases": 0,
84572
84744
  * "closed_at": "2026-10-03T14:20:00.000Z",
84573
84745
  * "closed_by": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4f01",
84746
+ * "closed_source": "person",
84747
+ * "imported_at": null,
84574
84748
  * "closed_by_name": "Ana Pérez",
84575
84749
  * "adjustment_count": 1,
84576
84750
  * "can_close": false,
@@ -84772,6 +84946,8 @@ interface paths {
84772
84946
  * "open_cases": 0,
84773
84947
  * "closed_at": "2026-10-03T14:20:00.000Z",
84774
84948
  * "closed_by": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4f01",
84949
+ * "closed_source": "person",
84950
+ * "imported_at": null,
84775
84951
  * "closed_by_name": "Ana Pérez",
84776
84952
  * "adjustment_count": 0,
84777
84953
  * "can_close": false,
@@ -90531,7 +90707,7 @@ interface paths {
90531
90707
  put?: never;
90532
90708
  /**
90533
90709
  * Vitrina's mandato for the representante legal to sign (step 3)
90534
- * @description Renders Vitrina's mandato (`GET /legal/documents/sii_mandato`, version + SHA-256) for this razón social and opens it in Vitrina's signing service. Returns the representante legal's `signing_url` (also mailed to them unless `send_email: false`). A new request replaces an unsigned one; a signed mandato cannot be replaced. Once signed it is registered at the SII automatically (`sii.mandato.phase`: `connecting` → `connected`). Requires the `finanzas` add-on (402 `ENTITLEMENT_NOT_ACTIVE` otherwise). Requires `finanzas_admin:write`.
90710
+ * @description Renders Vitrina's mandato (`GET /legal/documents/{key}` with key `sii_mandato`, version + SHA-256) for this razón social and opens it in Vitrina's signing service. Returns the representante legal's `signing_url` (also mailed to them unless `send_email: false`). A new request replaces an unsigned one; a signed mandato cannot be replaced. Once signed it is registered at the SII automatically (`sii.mandato.phase`: `connecting` → `connected`). Requires the `finanzas` add-on (402 `ENTITLEMENT_NOT_ACTIVE` otherwise). Requires `finanzas_admin:write`.
90535
90711
  */
90536
90712
  post: {
90537
90713
  parameters: {
@@ -278902,9 +279078,21 @@ interface components {
278902
279078
  last_sync_at: string | null;
278903
279079
  last_successful_sync_at: string | null;
278904
279080
  last_sync_error: string | null;
278905
- /** @enum {string} */
278906
- status: "ok" | "pending" | "stale" | "error" | "login_required" | "disconnected";
279081
+ /**
279082
+ * @description `first_sync`: connected, first read not landed yet (a (re)connect resets it; an empty first read stays `first_sync` for 24 h before it counts as a confirmed empty window). Show «Primera lectura en curso», never «Al día». `pending` is the old name of `first_sync`: never sent any more, kept so existing clients still validate.
279083
+ * @enum {string}
279084
+ */
279085
+ status: "ok" | "first_sync" | "pending" | "stale" | "error" | "login_required" | "disconnected";
278907
279086
  next_refresh_at: string | null;
279087
+ /** @description SII only: the first successful read of documents; null otherwise. */
279088
+ first_read_done_at: string | null;
279089
+ /** @description SII only: every month of the first-sync window was read once; null otherwise. */
279090
+ backfill_done_at: string | null;
279091
+ /**
279092
+ * @description SII only: the emission step, apart from reading. `in_certification` while the certificate / mandato step is pending; `not_needed` when no emission was set up; null for banks and Mercado Pago.
279093
+ * @enum {string|null}
279094
+ */
279095
+ emission_status: "certified" | "in_certification" | "not_needed" | null;
278908
279096
  actions: {
278909
279097
  sync_now: boolean;
278910
279098
  reconnect: boolean;
@@ -278915,6 +279103,15 @@ interface components {
278915
279103
  };
278916
279104
  FinanzasConnections: {
278917
279105
  connections: components["schemas"]["FinanzasConnection"][];
279106
+ /** @description Sources with imported data but no live connection (ODM Mercado Pago): «Sin conexión · datos hasta el {día}». */
279107
+ unconnected_sources: {
279108
+ /** @enum {string} */
279109
+ kind: "mercado_pago";
279110
+ institution_name: string;
279111
+ /** @description Santiago day (YYYY-MM-DD) of the newest imported movement. */
279112
+ data_until: string;
279113
+ movement_count: number;
279114
+ }[];
278918
279115
  fintoc: {
278919
279116
  configured: boolean;
278920
279117
  entitled: boolean;
@@ -279457,6 +279654,19 @@ interface components {
279457
279654
  } | null;
279458
279655
  opening_balance_editable: boolean;
279459
279656
  movement_count: number;
279657
+ /** @description Finanzas 33: «el agente comparte esta cuenta», with the holder details the agent dictates. Null = never shared. */
279658
+ agent_sharing: {
279659
+ /** @description true = the AI agent dictates this account for transfers and abonos into it are matched; false = it stopped sharing it. */
279660
+ shared: boolean;
279661
+ alias: string;
279662
+ holder_name: string;
279663
+ holder_rut: string;
279664
+ holder_email: string | null;
279665
+ /** @enum {string} */
279666
+ account_type: "corriente" | "vista" | "ahorro";
279667
+ } | null;
279668
+ /** @description Whether the agent can share it: a CLP corriente / vista / ahorro / Mercado Pago account with its full number (not a card, a credit line, a USD account or a last-4 number). */
279669
+ can_share_with_agent: boolean;
279460
279670
  };
279461
279671
  FinanzasBankAccounts: {
279462
279672
  accounts: components["schemas"]["FinanzasBankAccount"][];
@@ -279469,6 +279679,23 @@ interface components {
279469
279679
  amount_minor: number | null;
279470
279680
  on?: string;
279471
279681
  };
279682
+ FinanzasAgentSharingBody: {
279683
+ /** @description true = the AI agent shares this account for transfers (and abonos into it are matched); false = stop sharing it (the row is kept, never deleted). */
279684
+ shared: boolean;
279685
+ /** @description The label the agent and Ajustes show. Default «‹banco› ··‹últimos 4›». */
279686
+ alias?: string;
279687
+ /** @description Account holder as the bank shows it. Required the first time the account is shared. */
279688
+ holder_name?: string;
279689
+ /** @description Holder RUT (any formatting, check digit validated). Default: the workspace's SII RUT. */
279690
+ holder_rut?: string;
279691
+ /** Format: email */
279692
+ holder_email?: string | null;
279693
+ /**
279694
+ * @description What the agent dictates. Default from the account type (Mercado Pago = vista).
279695
+ * @enum {string}
279696
+ */
279697
+ account_type?: "corriente" | "vista" | "ahorro";
279698
+ };
279472
279699
  FinanzasF29Overview: {
279473
279700
  from: string;
279474
279701
  to: string;
@@ -280314,6 +280541,13 @@ interface components {
280314
280541
  amount_at_stake_clp: number;
280315
280542
  /** @description First day of last month: `period=recent` keeps the cases touching it or later; older ones are «Historial». */
280316
280543
  since: string;
280544
+ /** @description Open cases per month, newest first, all kinds, ignoring `kind`/`month`/`period`: the month filter’s options (the sum is the open total every surface shows). Months «Cerrado en Chipax» are never listed: they hold no case. */
280545
+ counts_by_month: {
280546
+ /** @description `YYYY-MM`. */
280547
+ month: string;
280548
+ open: number;
280549
+ amount_clp: number;
280550
+ }[];
280317
280551
  /** @description Open cases by period (every period) and, within the `period` asked, how many need a person vs are ready to confirm. */
280318
280552
  counts: {
280319
280553
  recent: number;
@@ -280361,7 +280595,7 @@ interface components {
280361
280595
  /** @enum {string} */
280362
280596
  status: "open" | "resolved";
280363
280597
  /** @enum {string|null} */
280364
- resolution: "confirmed" | "cleared" | null;
280598
+ resolution: "confirmed" | "cleared" | "closed_imported" | null;
280365
280599
  resolved_at: string | null;
280366
280600
  contraparte: {
280367
280601
  id: string;
@@ -280683,14 +280917,21 @@ interface components {
280683
280917
  /** @description «septiembre 2026». */
280684
280918
  label: string;
280685
280919
  /**
280686
- * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado.
280920
+ * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado por una persona; closed_imported = «Cerrado en Chipax» (the import closed it: it raises no cases, a change asks for a reason, there is nothing to close).
280687
280921
  * @enum {string}
280688
280922
  */
280689
- state: "open" | "ready_to_close" | "closed";
280923
+ state: "open" | "ready_to_close" | "closed" | "closed_imported";
280690
280924
  ended: boolean;
280691
280925
  open_cases: number;
280692
280926
  closed_at: string | null;
280693
280927
  closed_by: string | null;
280928
+ /**
280929
+ * @description Who closed the month: `person` («Cerrar mes») or `chipax` (the import: «Cerrado en Chipax»). Null while open.
280930
+ * @enum {string|null}
280931
+ */
280932
+ closed_source: "person" | "chipax" | null;
280933
+ /** @description When the import closed it. Null unless `closed_source` is `chipax`. */
280934
+ imported_at: string | null;
280694
280935
  /** @description Ajustes posteriores al cierre logged so far. */
280695
280936
  adjustment_count: number;
280696
280937
  };
@@ -280703,14 +280944,21 @@ interface components {
280703
280944
  /** @description «septiembre 2026». */
280704
280945
  label: string;
280705
280946
  /**
280706
- * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado.
280947
+ * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado por una persona; closed_imported = «Cerrado en Chipax» (the import closed it: it raises no cases, a change asks for a reason, there is nothing to close).
280707
280948
  * @enum {string}
280708
280949
  */
280709
- state: "open" | "ready_to_close" | "closed";
280950
+ state: "open" | "ready_to_close" | "closed" | "closed_imported";
280710
280951
  ended: boolean;
280711
280952
  open_cases: number;
280712
280953
  closed_at: string | null;
280713
280954
  closed_by: string | null;
280955
+ /**
280956
+ * @description Who closed the month: `person` («Cerrar mes») or `chipax` (the import: «Cerrado en Chipax»). Null while open.
280957
+ * @enum {string|null}
280958
+ */
280959
+ closed_source: "person" | "chipax" | null;
280960
+ /** @description When the import closed it. Null unless `closed_source` is `chipax`. */
280961
+ imported_at: string | null;
280714
280962
  /** @description Ajustes posteriores al cierre logged so far. */
280715
280963
  adjustment_count: number;
280716
280964
  from: string;
@@ -280907,7 +281155,11 @@ interface components {
280907
281155
  id: string;
280908
281156
  path: string;
280909
281157
  }[];
281158
+ /** @description true = an owner-withdrawals account (name «Retiros…»): imported as non-operating onto the system «Retiros» account, shown below the resultado, never as a gasto. Absent on runs before 2026-11-08. */
281159
+ retiros?: boolean;
280910
281160
  }[];
281161
+ /** @description Chipax accounts named «Retiros…» filed below the resultado as non-operating (not a gasto). Absent on runs before 2026-11-08. */
281162
+ retiros?: number;
280911
281163
  };
280912
281164
  contrapartes: {
280913
281165
  /** @description New in Vitrina (dry run: would be created). */
@@ -282093,7 +282345,7 @@ interface components {
282093
282345
  connection_id: string;
282094
282346
  institution_name: string | null;
282095
282347
  /** @enum {string} */
282096
- status: "ok" | "pending" | "stale" | "error" | "login_required" | "disconnected";
282348
+ status: "ok" | "first_sync" | "pending" | "stale" | "error" | "login_required" | "disconnected";
282097
282349
  } | null;
282098
282350
  cash: components["schemas"]["FinanzasResumenCash"];
282099
282351
  result: components["schemas"]["FinanzasResumenResult"];
@@ -282103,7 +282355,7 @@ interface components {
282103
282355
  month: string;
282104
282356
  label: string;
282105
282357
  /** @enum {string} */
282106
- state: "open" | "ready_to_close" | "closed";
282358
+ state: "open" | "ready_to_close" | "closed" | "closed_imported";
282107
282359
  open_cases: number;
282108
282360
  } | null;
282109
282361
  };
package/dist/index.d.ts CHANGED
@@ -76551,7 +76551,16 @@ interface paths {
76551
76551
  * "on": "2026-09-30"
76552
76552
  * },
76553
76553
  * "opening_balance_editable": true,
76554
- * "movement_count": 312
76554
+ * "movement_count": 312,
76555
+ * "agent_sharing": {
76556
+ * "shared": true,
76557
+ * "alias": "Banco de Chile ··4821",
76558
+ * "holder_name": "Clínica Ejemplo SpA",
76559
+ * "holder_rut": "76123456-7",
76560
+ * "holder_email": null,
76561
+ * "account_type": "corriente"
76562
+ * },
76563
+ * "can_share_with_agent": true
76555
76564
  * }
76556
76565
  * ],
76557
76566
  * "total_clp": 8450000,
@@ -76811,7 +76820,16 @@ interface paths {
76811
76820
  * "on": "2026-09-30"
76812
76821
  * },
76813
76822
  * "opening_balance_editable": true,
76814
- * "movement_count": 312
76823
+ * "movement_count": 312,
76824
+ * "agent_sharing": {
76825
+ * "shared": true,
76826
+ * "alias": "Banco de Chile ··4821",
76827
+ * "holder_name": "Clínica Ejemplo SpA",
76828
+ * "holder_rut": "76123456-7",
76829
+ * "holder_email": null,
76830
+ * "account_type": "corriente"
76831
+ * },
76832
+ * "can_share_with_agent": true
76815
76833
  * }
76816
76834
  * }
76817
76835
  */
@@ -76878,6 +76896,146 @@ interface paths {
76878
76896
  };
76879
76897
  trace?: never;
76880
76898
  };
76899
+ "/finanzas/bank-accounts/{id}/agent-sharing": {
76900
+ parameters: {
76901
+ query?: never;
76902
+ header?: never;
76903
+ path?: never;
76904
+ cookie?: never;
76905
+ };
76906
+ get?: never;
76907
+ /**
76908
+ * Share a bank account with the AI agent (or stop)
76909
+ * @description One bank-account registry (Finanzas 33): the Finanzas bank accounts are the workspace's accounts, and «el agente comparte esta cuenta» is a flag on one of them. `shared: true` makes the AI agent dictate this account for transfers and matches abonos into it (the same registry `GET /tenant-bank-accounts` lists); `false` stops it, keeping the row. The first share needs `holder_name` (400 `VALIDATION_ERROR`, `details.reason = agent_sharing_holder_required`); `holder_rut` defaults to the workspace's SII RUT. 409 `CONFLICT` with `details.reason = agent_sharing_not_supported` for a card, a credit line, a USD account or a number known only by its last digits. Audited. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
76910
+ */
76911
+ put: {
76912
+ parameters: {
76913
+ query?: never;
76914
+ header?: never;
76915
+ path: {
76916
+ id: string;
76917
+ };
76918
+ cookie?: never;
76919
+ };
76920
+ requestBody?: {
76921
+ content: {
76922
+ /**
76923
+ * @example {
76924
+ * "shared": true,
76925
+ * "holder_name": "Clínica Ejemplo SpA"
76926
+ * }
76927
+ */
76928
+ "application/json": components["schemas"]["FinanzasAgentSharingBody"];
76929
+ };
76930
+ };
76931
+ responses: {
76932
+ /** @description The account */
76933
+ 200: {
76934
+ headers: {
76935
+ [name: string]: unknown;
76936
+ };
76937
+ content: {
76938
+ /**
76939
+ * @example {
76940
+ * "data": {
76941
+ * "id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4a6c",
76942
+ * "name": "Cuenta corriente",
76943
+ * "institution_name": "Banco de Chile",
76944
+ * "number_masked": "****4821",
76945
+ * "type": "cuenta_corriente",
76946
+ * "currency": "CLP",
76947
+ * "source": "manual",
76948
+ * "has_feed": false,
76949
+ * "balance_clp": 8450000,
76950
+ * "balance_original": null,
76951
+ * "balance_as_of": "2026-10-30T08:00:00.000Z",
76952
+ * "balance_source": "computed",
76953
+ * "opening_balance": {
76954
+ * "amount_minor": 5000000,
76955
+ * "on": "2026-09-30"
76956
+ * },
76957
+ * "opening_balance_editable": true,
76958
+ * "movement_count": 312,
76959
+ * "agent_sharing": {
76960
+ * "shared": true,
76961
+ * "alias": "Banco de Chile ··4821",
76962
+ * "holder_name": "Clínica Ejemplo SpA",
76963
+ * "holder_rut": "76123456-7",
76964
+ * "holder_email": null,
76965
+ * "account_type": "corriente"
76966
+ * },
76967
+ * "can_share_with_agent": true
76968
+ * }
76969
+ * }
76970
+ */
76971
+ "application/json": {
76972
+ data: components["schemas"]["FinanzasBankAccount"];
76973
+ };
76974
+ };
76975
+ };
76976
+ /** @description Validation error */
76977
+ 400: {
76978
+ headers: {
76979
+ [name: string]: unknown;
76980
+ };
76981
+ content: {
76982
+ "application/json": components["schemas"]["Error"];
76983
+ };
76984
+ };
76985
+ /** @description Unauthorized */
76986
+ 401: {
76987
+ headers: {
76988
+ [name: string]: unknown;
76989
+ };
76990
+ content: {
76991
+ "application/json": components["schemas"]["Error"];
76992
+ };
76993
+ };
76994
+ /** @description Forbidden */
76995
+ 403: {
76996
+ headers: {
76997
+ [name: string]: unknown;
76998
+ };
76999
+ content: {
77000
+ "application/json": components["schemas"]["Error"];
77001
+ };
77002
+ };
77003
+ /** @description Not found */
77004
+ 404: {
77005
+ headers: {
77006
+ [name: string]: unknown;
77007
+ };
77008
+ content: {
77009
+ "application/json": components["schemas"]["Error"];
77010
+ };
77011
+ };
77012
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
77013
+ 409: {
77014
+ headers: {
77015
+ [name: string]: unknown;
77016
+ };
77017
+ content: {
77018
+ "application/json": components["schemas"]["Error"];
77019
+ };
77020
+ };
77021
+ /** @description Rate limited */
77022
+ 429: {
77023
+ headers: {
77024
+ [name: string]: unknown;
77025
+ };
77026
+ content: {
77027
+ "application/json": components["schemas"]["Error"];
77028
+ };
77029
+ };
77030
+ };
77031
+ };
77032
+ post?: never;
77033
+ delete?: never;
77034
+ options?: never;
77035
+ head?: never;
77036
+ patch?: never;
77037
+ trace?: never;
77038
+ };
76881
77039
  "/finanzas/documents": {
76882
77040
  parameters: {
76883
77041
  query?: never;
@@ -82891,7 +83049,7 @@ interface paths {
82891
83049
  };
82892
83050
  /**
82893
83051
  * The «Por resolver» inbox: open cases, biggest first
82894
- * @description A case is the open money of one Contraparte that Vitrina could not resolve on its own: bank movements nothing explains, cost documents with no account, and money out classified with no document («Falta documento»). Cases are recomputed after every bank, Mercado Pago and SII sync and before every read; only cases whose inputs changed are rewritten. Sorted by the money at stake (`order=needs_person`: the cases a person must answer first). `kind` and `period` (`recent` = this month and last month, `history` = older) filter; `total` and `amount_at_stake_clp` cover every open case of that filter, `counts` splits them (recent / history, needs_person / ready) and `waiting` lists the payments «esperando factura» (no case yet). Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
83052
+ * @description A case is the open money of one Contraparte that Vitrina could not resolve on its own: bank movements nothing explains, cost documents with no account, and money out classified with no document («Falta documento»). Cases are recomputed after every bank, Mercado Pago and SII sync and before every read; only cases whose inputs changed are rewritten. Sorted by the money at stake (`order=needs_person`: the cases a person must answer first). `kind`, `month` (`YYYY-MM`: a case belongs to ONE month, its oldest item's) and `period` (deprecated: `recent` / `history`) filter; `total` and `amount_at_stake_clp` cover every open case of that filter, `counts_by_month` lists every month with open cases (the month filter's options; months «Cerrado en Chipax» hold none), `counts` splits them (needs_person / ready) and `waiting` lists the payments «esperando factura» (no case yet). Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
82895
83053
  */
82896
83054
  get: {
82897
83055
  parameters: {
@@ -82900,6 +83058,7 @@ interface paths {
82900
83058
  limit?: number;
82901
83059
  offset?: number | null;
82902
83060
  period?: "recent" | "history" | "all";
83061
+ month?: string;
82903
83062
  order?: "amount" | "needs_person";
82904
83063
  };
82905
83064
  header?: never;
@@ -82956,6 +83115,13 @@ interface paths {
82956
83115
  * "total": 2,
82957
83116
  * "amount_at_stake_clp": 855290,
82958
83117
  * "since": "2026-09-01",
83118
+ * "counts_by_month": [
83119
+ * {
83120
+ * "month": "2026-10",
83121
+ * "open": 2,
83122
+ * "amount_clp": 855290
83123
+ * }
83124
+ * ],
82959
83125
  * "counts": {
82960
83126
  * "recent": 2,
82961
83127
  * "history": 0,
@@ -84403,7 +84569,7 @@ interface paths {
84403
84569
  };
84404
84570
  /**
84405
84571
  * Cierre de mes: each month and its state
84406
- * @description The month selector, newest first: `open` (a «Por resolver» case touches the month, or it has not ended), `ready_to_close` (ended, nothing open) or `closed`. A case touches a month when one of its movements falls in it or a document it needs classified was issued in it. Default: the current month and the 11 before; at most 24. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
84572
+ * @description The month selector, newest first: `open` (a «Por resolver» case belongs to the month, or it has not ended), `ready_to_close` (ended, nothing open), `closed` (a person closed it) or `closed_imported` («Cerrado en Chipax»: the import closed it; it raises no cases and a change asks for a reason; `closed_source` `chipax`, `imported_at`). A case belongs to ONE month: the one of its oldest item (a movement, or a document to classify). Default: the current month and the 11 before; at most 24. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas:read`.
84407
84573
  */
84408
84574
  get: {
84409
84575
  parameters: {
@@ -84436,6 +84602,8 @@ interface paths {
84436
84602
  * "open_cases": 7,
84437
84603
  * "closed_at": null,
84438
84604
  * "closed_by": null,
84605
+ * "closed_source": null,
84606
+ * "imported_at": null,
84439
84607
  * "adjustment_count": 0
84440
84608
  * },
84441
84609
  * {
@@ -84446,6 +84614,8 @@ interface paths {
84446
84614
  * "open_cases": 0,
84447
84615
  * "closed_at": "2026-10-03T14:20:00.000Z",
84448
84616
  * "closed_by": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4f01",
84617
+ * "closed_source": "person",
84618
+ * "imported_at": null,
84449
84619
  * "adjustment_count": 1
84450
84620
  * },
84451
84621
  * {
@@ -84456,6 +84626,8 @@ interface paths {
84456
84626
  * "open_cases": 0,
84457
84627
  * "closed_at": null,
84458
84628
  * "closed_by": null,
84629
+ * "closed_source": null,
84630
+ * "imported_at": null,
84459
84631
  * "adjustment_count": 0
84460
84632
  * }
84461
84633
  * ]
@@ -84571,6 +84743,8 @@ interface paths {
84571
84743
  * "open_cases": 0,
84572
84744
  * "closed_at": "2026-10-03T14:20:00.000Z",
84573
84745
  * "closed_by": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4f01",
84746
+ * "closed_source": "person",
84747
+ * "imported_at": null,
84574
84748
  * "closed_by_name": "Ana Pérez",
84575
84749
  * "adjustment_count": 1,
84576
84750
  * "can_close": false,
@@ -84772,6 +84946,8 @@ interface paths {
84772
84946
  * "open_cases": 0,
84773
84947
  * "closed_at": "2026-10-03T14:20:00.000Z",
84774
84948
  * "closed_by": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4f01",
84949
+ * "closed_source": "person",
84950
+ * "imported_at": null,
84775
84951
  * "closed_by_name": "Ana Pérez",
84776
84952
  * "adjustment_count": 0,
84777
84953
  * "can_close": false,
@@ -90531,7 +90707,7 @@ interface paths {
90531
90707
  put?: never;
90532
90708
  /**
90533
90709
  * Vitrina's mandato for the representante legal to sign (step 3)
90534
- * @description Renders Vitrina's mandato (`GET /legal/documents/sii_mandato`, version + SHA-256) for this razón social and opens it in Vitrina's signing service. Returns the representante legal's `signing_url` (also mailed to them unless `send_email: false`). A new request replaces an unsigned one; a signed mandato cannot be replaced. Once signed it is registered at the SII automatically (`sii.mandato.phase`: `connecting` → `connected`). Requires the `finanzas` add-on (402 `ENTITLEMENT_NOT_ACTIVE` otherwise). Requires `finanzas_admin:write`.
90710
+ * @description Renders Vitrina's mandato (`GET /legal/documents/{key}` with key `sii_mandato`, version + SHA-256) for this razón social and opens it in Vitrina's signing service. Returns the representante legal's `signing_url` (also mailed to them unless `send_email: false`). A new request replaces an unsigned one; a signed mandato cannot be replaced. Once signed it is registered at the SII automatically (`sii.mandato.phase`: `connecting` → `connected`). Requires the `finanzas` add-on (402 `ENTITLEMENT_NOT_ACTIVE` otherwise). Requires `finanzas_admin:write`.
90535
90711
  */
90536
90712
  post: {
90537
90713
  parameters: {
@@ -278902,9 +279078,21 @@ interface components {
278902
279078
  last_sync_at: string | null;
278903
279079
  last_successful_sync_at: string | null;
278904
279080
  last_sync_error: string | null;
278905
- /** @enum {string} */
278906
- status: "ok" | "pending" | "stale" | "error" | "login_required" | "disconnected";
279081
+ /**
279082
+ * @description `first_sync`: connected, first read not landed yet (a (re)connect resets it; an empty first read stays `first_sync` for 24 h before it counts as a confirmed empty window). Show «Primera lectura en curso», never «Al día». `pending` is the old name of `first_sync`: never sent any more, kept so existing clients still validate.
279083
+ * @enum {string}
279084
+ */
279085
+ status: "ok" | "first_sync" | "pending" | "stale" | "error" | "login_required" | "disconnected";
278907
279086
  next_refresh_at: string | null;
279087
+ /** @description SII only: the first successful read of documents; null otherwise. */
279088
+ first_read_done_at: string | null;
279089
+ /** @description SII only: every month of the first-sync window was read once; null otherwise. */
279090
+ backfill_done_at: string | null;
279091
+ /**
279092
+ * @description SII only: the emission step, apart from reading. `in_certification` while the certificate / mandato step is pending; `not_needed` when no emission was set up; null for banks and Mercado Pago.
279093
+ * @enum {string|null}
279094
+ */
279095
+ emission_status: "certified" | "in_certification" | "not_needed" | null;
278908
279096
  actions: {
278909
279097
  sync_now: boolean;
278910
279098
  reconnect: boolean;
@@ -278915,6 +279103,15 @@ interface components {
278915
279103
  };
278916
279104
  FinanzasConnections: {
278917
279105
  connections: components["schemas"]["FinanzasConnection"][];
279106
+ /** @description Sources with imported data but no live connection (ODM Mercado Pago): «Sin conexión · datos hasta el {día}». */
279107
+ unconnected_sources: {
279108
+ /** @enum {string} */
279109
+ kind: "mercado_pago";
279110
+ institution_name: string;
279111
+ /** @description Santiago day (YYYY-MM-DD) of the newest imported movement. */
279112
+ data_until: string;
279113
+ movement_count: number;
279114
+ }[];
278918
279115
  fintoc: {
278919
279116
  configured: boolean;
278920
279117
  entitled: boolean;
@@ -279457,6 +279654,19 @@ interface components {
279457
279654
  } | null;
279458
279655
  opening_balance_editable: boolean;
279459
279656
  movement_count: number;
279657
+ /** @description Finanzas 33: «el agente comparte esta cuenta», with the holder details the agent dictates. Null = never shared. */
279658
+ agent_sharing: {
279659
+ /** @description true = the AI agent dictates this account for transfers and abonos into it are matched; false = it stopped sharing it. */
279660
+ shared: boolean;
279661
+ alias: string;
279662
+ holder_name: string;
279663
+ holder_rut: string;
279664
+ holder_email: string | null;
279665
+ /** @enum {string} */
279666
+ account_type: "corriente" | "vista" | "ahorro";
279667
+ } | null;
279668
+ /** @description Whether the agent can share it: a CLP corriente / vista / ahorro / Mercado Pago account with its full number (not a card, a credit line, a USD account or a last-4 number). */
279669
+ can_share_with_agent: boolean;
279460
279670
  };
279461
279671
  FinanzasBankAccounts: {
279462
279672
  accounts: components["schemas"]["FinanzasBankAccount"][];
@@ -279469,6 +279679,23 @@ interface components {
279469
279679
  amount_minor: number | null;
279470
279680
  on?: string;
279471
279681
  };
279682
+ FinanzasAgentSharingBody: {
279683
+ /** @description true = the AI agent shares this account for transfers (and abonos into it are matched); false = stop sharing it (the row is kept, never deleted). */
279684
+ shared: boolean;
279685
+ /** @description The label the agent and Ajustes show. Default «‹banco› ··‹últimos 4›». */
279686
+ alias?: string;
279687
+ /** @description Account holder as the bank shows it. Required the first time the account is shared. */
279688
+ holder_name?: string;
279689
+ /** @description Holder RUT (any formatting, check digit validated). Default: the workspace's SII RUT. */
279690
+ holder_rut?: string;
279691
+ /** Format: email */
279692
+ holder_email?: string | null;
279693
+ /**
279694
+ * @description What the agent dictates. Default from the account type (Mercado Pago = vista).
279695
+ * @enum {string}
279696
+ */
279697
+ account_type?: "corriente" | "vista" | "ahorro";
279698
+ };
279472
279699
  FinanzasF29Overview: {
279473
279700
  from: string;
279474
279701
  to: string;
@@ -280314,6 +280541,13 @@ interface components {
280314
280541
  amount_at_stake_clp: number;
280315
280542
  /** @description First day of last month: `period=recent` keeps the cases touching it or later; older ones are «Historial». */
280316
280543
  since: string;
280544
+ /** @description Open cases per month, newest first, all kinds, ignoring `kind`/`month`/`period`: the month filter’s options (the sum is the open total every surface shows). Months «Cerrado en Chipax» are never listed: they hold no case. */
280545
+ counts_by_month: {
280546
+ /** @description `YYYY-MM`. */
280547
+ month: string;
280548
+ open: number;
280549
+ amount_clp: number;
280550
+ }[];
280317
280551
  /** @description Open cases by period (every period) and, within the `period` asked, how many need a person vs are ready to confirm. */
280318
280552
  counts: {
280319
280553
  recent: number;
@@ -280361,7 +280595,7 @@ interface components {
280361
280595
  /** @enum {string} */
280362
280596
  status: "open" | "resolved";
280363
280597
  /** @enum {string|null} */
280364
- resolution: "confirmed" | "cleared" | null;
280598
+ resolution: "confirmed" | "cleared" | "closed_imported" | null;
280365
280599
  resolved_at: string | null;
280366
280600
  contraparte: {
280367
280601
  id: string;
@@ -280683,14 +280917,21 @@ interface components {
280683
280917
  /** @description «septiembre 2026». */
280684
280918
  label: string;
280685
280919
  /**
280686
- * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado.
280920
+ * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado por una persona; closed_imported = «Cerrado en Chipax» (the import closed it: it raises no cases, a change asks for a reason, there is nothing to close).
280687
280921
  * @enum {string}
280688
280922
  */
280689
- state: "open" | "ready_to_close" | "closed";
280923
+ state: "open" | "ready_to_close" | "closed" | "closed_imported";
280690
280924
  ended: boolean;
280691
280925
  open_cases: number;
280692
280926
  closed_at: string | null;
280693
280927
  closed_by: string | null;
280928
+ /**
280929
+ * @description Who closed the month: `person` («Cerrar mes») or `chipax` (the import: «Cerrado en Chipax»). Null while open.
280930
+ * @enum {string|null}
280931
+ */
280932
+ closed_source: "person" | "chipax" | null;
280933
+ /** @description When the import closed it. Null unless `closed_source` is `chipax`. */
280934
+ imported_at: string | null;
280694
280935
  /** @description Ajustes posteriores al cierre logged so far. */
280695
280936
  adjustment_count: number;
280696
280937
  };
@@ -280703,14 +280944,21 @@ interface components {
280703
280944
  /** @description «septiembre 2026». */
280704
280945
  label: string;
280705
280946
  /**
280706
- * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado.
280947
+ * @description open = abierto (cases touch it, or it has not ended); ready_to_close = listo para cerrar; closed = cerrado por una persona; closed_imported = «Cerrado en Chipax» (the import closed it: it raises no cases, a change asks for a reason, there is nothing to close).
280707
280948
  * @enum {string}
280708
280949
  */
280709
- state: "open" | "ready_to_close" | "closed";
280950
+ state: "open" | "ready_to_close" | "closed" | "closed_imported";
280710
280951
  ended: boolean;
280711
280952
  open_cases: number;
280712
280953
  closed_at: string | null;
280713
280954
  closed_by: string | null;
280955
+ /**
280956
+ * @description Who closed the month: `person` («Cerrar mes») or `chipax` (the import: «Cerrado en Chipax»). Null while open.
280957
+ * @enum {string|null}
280958
+ */
280959
+ closed_source: "person" | "chipax" | null;
280960
+ /** @description When the import closed it. Null unless `closed_source` is `chipax`. */
280961
+ imported_at: string | null;
280714
280962
  /** @description Ajustes posteriores al cierre logged so far. */
280715
280963
  adjustment_count: number;
280716
280964
  from: string;
@@ -280907,7 +281155,11 @@ interface components {
280907
281155
  id: string;
280908
281156
  path: string;
280909
281157
  }[];
281158
+ /** @description true = an owner-withdrawals account (name «Retiros…»): imported as non-operating onto the system «Retiros» account, shown below the resultado, never as a gasto. Absent on runs before 2026-11-08. */
281159
+ retiros?: boolean;
280910
281160
  }[];
281161
+ /** @description Chipax accounts named «Retiros…» filed below the resultado as non-operating (not a gasto). Absent on runs before 2026-11-08. */
281162
+ retiros?: number;
280911
281163
  };
280912
281164
  contrapartes: {
280913
281165
  /** @description New in Vitrina (dry run: would be created). */
@@ -282093,7 +282345,7 @@ interface components {
282093
282345
  connection_id: string;
282094
282346
  institution_name: string | null;
282095
282347
  /** @enum {string} */
282096
- status: "ok" | "pending" | "stale" | "error" | "login_required" | "disconnected";
282348
+ status: "ok" | "first_sync" | "pending" | "stale" | "error" | "login_required" | "disconnected";
282097
282349
  } | null;
282098
282350
  cash: components["schemas"]["FinanzasResumenCash"];
282099
282351
  result: components["schemas"]["FinanzasResumenResult"];
@@ -282103,7 +282355,7 @@ interface components {
282103
282355
  month: string;
282104
282356
  label: string;
282105
282357
  /** @enum {string} */
282106
- state: "open" | "ready_to_close" | "closed";
282358
+ state: "open" | "ready_to_close" | "closed" | "closed_imported";
282107
282359
  open_cases: number;
282108
282360
  } | null;
282109
282361
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.13.2",
3
+ "version": "17.14.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",