@vitrina/api 17.30.1 → 17.32.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
@@ -37715,6 +37715,10 @@ interface paths {
37715
37715
  /**
37716
37716
  * «Ya pagué por transferencia»: pause automatic charging of a cobro
37717
37717
  * @description The owner says this cobro was already paid by bank transfer (for example without its reference, which the reconciliation cannot match). While the claim is pending nothing charges the cobro automatically — not the scheduled charge, not a retry — and it does not advance in collections; the Vitrina team verifies the transfer and either records the payment or resumes the charge with a fresh heads-up. Idempotent (`created: false` when already pending). 409 when the cobro is no longer open (paid, voided, or a charge is in flight). Requires `billing:write`.
37718
+ *
37719
+ * **Optional comprobante** (#7094): send the proof of the transfer with the claim as a multipart `file` part (or the JSON file variant below). A PDF, JPG or PNG of at most 10 MB, type read from the bytes; a refused file (400 `comprobante_empty`, 413 `comprobante_too_large`, 415 `comprobante_type`) refuses the whole request and nothing is claimed. It is a claim, not proof: it changes nothing on the cobro. `comprobante` in the answer is the file THIS call attached (null without one). If the claim was made but the file could not be stored, the answer is still 200 with `comprobante: null` and `comprobante_error` {reason `comprobante_not_stored`, retryable true}: retry only the file. Add or replace it later with `POST …/transfer-claim/comprobante`.
37720
+ *
37721
+ * **Or a JSON body** (`application/json`) — what an MCP connector sends through `call_operation`, which cannot build multipart: `{ filename, content, content_encoding?, content_type? }` plus the operation's own form fields. `content` is UTF-8 text by default, or base64 when `content_encoding` is `"base64"` (images, PDF, audio, video). The same byte cap applies to the decoded bytes (413 above it); invalid base64 is a 400; the content type defaults from the filename extension.
37718
37722
  */
37719
37723
  post: {
37720
37724
  parameters: {
@@ -37728,7 +37732,38 @@ interface paths {
37728
37732
  };
37729
37733
  cookie?: never;
37730
37734
  };
37731
- requestBody?: never;
37735
+ requestBody?: {
37736
+ content: {
37737
+ /**
37738
+ * @example {
37739
+ * "file": "(binary part)"
37740
+ * }
37741
+ */
37742
+ "multipart/form-data": {
37743
+ file?: unknown;
37744
+ };
37745
+ /**
37746
+ * @example {
37747
+ * "filename": "comprobante.pdf",
37748
+ * "content": "JVBERi0xLjQK…",
37749
+ * "content_encoding": "base64"
37750
+ * }
37751
+ */
37752
+ "application/json": {
37753
+ /** @description File name with extension; the content type defaults from it. */
37754
+ filename: string;
37755
+ /** @description The file. UTF-8 text by default; base64 when `content_encoding` is "base64" (images, PDF, audio, video). */
37756
+ content: string;
37757
+ /**
37758
+ * @description `utf8` (default) for text, `base64` for binary files.
37759
+ * @enum {string}
37760
+ */
37761
+ content_encoding?: "utf8" | "base64";
37762
+ /** @description MIME type. Defaults from the extension (.png → image/png, …). */
37763
+ content_type?: string;
37764
+ };
37765
+ };
37766
+ };
37732
37767
  responses: {
37733
37768
  /** @description The claim */
37734
37769
  200: {
@@ -258702,6 +258737,273 @@ interface paths {
258702
258737
  patch?: never;
258703
258738
  trace?: never;
258704
258739
  };
258740
+ "/billing/invoices/{id}/transfer-claim/comprobante": {
258741
+ parameters: {
258742
+ query?: never;
258743
+ header?: never;
258744
+ path?: never;
258745
+ cookie?: never;
258746
+ };
258747
+ get?: never;
258748
+ put?: never;
258749
+ /**
258750
+ * Attach or replace the comprobante of a pending «Ya pagué»
258751
+ * @description Adds the proof of the transfer to the cobro’s pending «Ya pagué por transferencia» claim, or replaces the one already there (the old file is deleted). A PDF, JPG or PNG of at most 10 MB; the type is read from the bytes, never from the request (415 `comprobante_type`; 413 `comprobante_too_large`; 400 `comprobante_empty` / `comprobante_missing`). It is a claim, not proof: it changes nothing on the cobro, its collection or its automatic charge; the Vitrina team checks the transfer. 409 `no_pending_claim` when the cobro has no pending claim (claim first, or attach the file to the claim itself); 409 `comprobante_frozen` when the claim’s file already went with a recorded payment; 404 for a cobro of another workspace. Requires `billing:write` (owners).
258752
+ *
258753
+ * **Or a JSON body** (`application/json`) — what an MCP connector sends through `call_operation`, which cannot build multipart: `{ filename, content, content_encoding?, content_type? }` plus the operation's own form fields. `content` is UTF-8 text by default, or base64 when `content_encoding` is `"base64"` (images, PDF, audio, video). The same byte cap applies to the decoded bytes (413 above it); invalid base64 is a 400; the content type defaults from the filename extension.
258754
+ */
258755
+ post: {
258756
+ parameters: {
258757
+ query?: never;
258758
+ header?: {
258759
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
258760
+ "Idempotency-Key"?: string;
258761
+ };
258762
+ path: {
258763
+ id: string;
258764
+ };
258765
+ cookie?: never;
258766
+ };
258767
+ requestBody: {
258768
+ content: {
258769
+ /**
258770
+ * @example {
258771
+ * "file": "(binary part)"
258772
+ * }
258773
+ */
258774
+ "multipart/form-data": {
258775
+ file?: unknown;
258776
+ };
258777
+ /**
258778
+ * @example {
258779
+ * "filename": "comprobante.pdf",
258780
+ * "content": "JVBERi0xLjQK…",
258781
+ * "content_encoding": "base64"
258782
+ * }
258783
+ */
258784
+ "application/json": {
258785
+ /** @description File name with extension; the content type defaults from it. */
258786
+ filename: string;
258787
+ /** @description The file. UTF-8 text by default; base64 when `content_encoding` is "base64" (images, PDF, audio, video). */
258788
+ content: string;
258789
+ /**
258790
+ * @description `utf8` (default) for text, `base64` for binary files.
258791
+ * @enum {string}
258792
+ */
258793
+ content_encoding?: "utf8" | "base64";
258794
+ /** @description MIME type. Defaults from the extension (.png → image/png, …). */
258795
+ content_type?: string;
258796
+ };
258797
+ };
258798
+ };
258799
+ responses: {
258800
+ /** @description The file now on the pending claim */
258801
+ 200: {
258802
+ headers: {
258803
+ [name: string]: unknown;
258804
+ };
258805
+ content: {
258806
+ /**
258807
+ * @example {
258808
+ * "data": {
258809
+ * "comprobante": {
258810
+ * "id": "5b0e6c1a-9a7d-4c3e-8f21-0c4d2e1f7a90",
258811
+ * "invoice_id": "9a1bd325-3ab8-47e8-afe1-7b87c550b139",
258812
+ * "claimed_at": "2026-11-05T13:31:00.000Z",
258813
+ * "filename": "comprobante_transferencia.pdf",
258814
+ * "mime": "application/pdf",
258815
+ * "size_bytes": 48211,
258816
+ * "uploaded_at": "2026-11-05T13:31:02.000Z",
258817
+ * "state": "pending",
258818
+ * "rejected_at": null,
258819
+ * "received_payment_id": null
258820
+ * },
258821
+ * "replaced": false
258822
+ * }
258823
+ * }
258824
+ */
258825
+ "application/json": {
258826
+ data: components["schemas"]["ClaimComprobanteUpload"];
258827
+ };
258828
+ };
258829
+ };
258830
+ /** @description Validation error */
258831
+ 400: {
258832
+ headers: {
258833
+ [name: string]: unknown;
258834
+ };
258835
+ content: {
258836
+ "application/json": components["schemas"]["Error"];
258837
+ };
258838
+ };
258839
+ /** @description Unauthorized */
258840
+ 401: {
258841
+ headers: {
258842
+ [name: string]: unknown;
258843
+ };
258844
+ content: {
258845
+ "application/json": components["schemas"]["Error"];
258846
+ };
258847
+ };
258848
+ /** @description Forbidden */
258849
+ 403: {
258850
+ headers: {
258851
+ [name: string]: unknown;
258852
+ };
258853
+ content: {
258854
+ "application/json": components["schemas"]["Error"];
258855
+ };
258856
+ };
258857
+ /** @description Not found */
258858
+ 404: {
258859
+ headers: {
258860
+ [name: string]: unknown;
258861
+ };
258862
+ content: {
258863
+ "application/json": components["schemas"]["Error"];
258864
+ };
258865
+ };
258866
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
258867
+ 409: {
258868
+ headers: {
258869
+ [name: string]: unknown;
258870
+ };
258871
+ content: {
258872
+ "application/json": components["schemas"]["Error"];
258873
+ };
258874
+ };
258875
+ /** @description Rate limited */
258876
+ 429: {
258877
+ headers: {
258878
+ [name: string]: unknown;
258879
+ };
258880
+ content: {
258881
+ "application/json": components["schemas"]["Error"];
258882
+ };
258883
+ };
258884
+ };
258885
+ };
258886
+ delete?: never;
258887
+ options?: never;
258888
+ head?: never;
258889
+ patch?: never;
258890
+ trace?: never;
258891
+ };
258892
+ "/billing/invoices/{id}/transfer-claim/comprobantes": {
258893
+ parameters: {
258894
+ query?: never;
258895
+ header?: never;
258896
+ path?: never;
258897
+ cookie?: never;
258898
+ };
258899
+ /**
258900
+ * The comprobantes attached to a cobro’s «Ya pagué» claims
258901
+ * @description Every file the workspace attached to a «Ya pagué» on this cobro, the newest claim first, with what became of each claim (`state`). A rejected claim’s file stays here as history. Descriptors only; download one with `GET …/comprobantes/{comprobanteId}`. 404 for a cobro of another workspace. Requires `billing:read` (owners and admins).
258902
+ */
258903
+ get: {
258904
+ parameters: {
258905
+ query?: never;
258906
+ header?: never;
258907
+ path: {
258908
+ id: string;
258909
+ };
258910
+ cookie?: never;
258911
+ };
258912
+ requestBody?: never;
258913
+ responses: {
258914
+ /** @description The claim files */
258915
+ 200: {
258916
+ headers: {
258917
+ [name: string]: unknown;
258918
+ };
258919
+ content: {
258920
+ /**
258921
+ * @example {
258922
+ * "data": [
258923
+ * {
258924
+ * "id": "5b0e6c1a-9a7d-4c3e-8f21-0c4d2e1f7a90",
258925
+ * "invoice_id": "9a1bd325-3ab8-47e8-afe1-7b87c550b139",
258926
+ * "claimed_at": "2026-11-05T13:31:00.000Z",
258927
+ * "filename": "comprobante_transferencia.pdf",
258928
+ * "mime": "application/pdf",
258929
+ * "size_bytes": 48211,
258930
+ * "uploaded_at": "2026-11-05T13:31:02.000Z",
258931
+ * "state": "pending",
258932
+ * "rejected_at": null,
258933
+ * "received_payment_id": null
258934
+ * }
258935
+ * ]
258936
+ * }
258937
+ */
258938
+ "application/json": {
258939
+ data: (components["schemas"]["ClaimComprobante"] & Record<string, never>)[];
258940
+ };
258941
+ };
258942
+ };
258943
+ /** @description Validation error */
258944
+ 400: {
258945
+ headers: {
258946
+ [name: string]: unknown;
258947
+ };
258948
+ content: {
258949
+ "application/json": components["schemas"]["Error"];
258950
+ };
258951
+ };
258952
+ /** @description Unauthorized */
258953
+ 401: {
258954
+ headers: {
258955
+ [name: string]: unknown;
258956
+ };
258957
+ content: {
258958
+ "application/json": components["schemas"]["Error"];
258959
+ };
258960
+ };
258961
+ /** @description Forbidden */
258962
+ 403: {
258963
+ headers: {
258964
+ [name: string]: unknown;
258965
+ };
258966
+ content: {
258967
+ "application/json": components["schemas"]["Error"];
258968
+ };
258969
+ };
258970
+ /** @description Not found */
258971
+ 404: {
258972
+ headers: {
258973
+ [name: string]: unknown;
258974
+ };
258975
+ content: {
258976
+ "application/json": components["schemas"]["Error"];
258977
+ };
258978
+ };
258979
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
258980
+ 409: {
258981
+ headers: {
258982
+ [name: string]: unknown;
258983
+ };
258984
+ content: {
258985
+ "application/json": components["schemas"]["Error"];
258986
+ };
258987
+ };
258988
+ /** @description Rate limited */
258989
+ 429: {
258990
+ headers: {
258991
+ [name: string]: unknown;
258992
+ };
258993
+ content: {
258994
+ "application/json": components["schemas"]["Error"];
258995
+ };
258996
+ };
258997
+ };
258998
+ };
258999
+ put?: never;
259000
+ post?: never;
259001
+ delete?: never;
259002
+ options?: never;
259003
+ head?: never;
259004
+ patch?: never;
259005
+ trace?: never;
259006
+ };
258705
259007
  "/sandbox/clinic": {
258706
259008
  parameters: {
258707
259009
  query?: never;
@@ -281054,6 +281356,35 @@ interface components {
281054
281356
  }[];
281055
281357
  next_cursor: string | null;
281056
281358
  };
281359
+ /** @description #7094: the file attached to this claim («comprobante adjunto»), or null. */
281360
+ ClaimComprobante: {
281361
+ /** Format: uuid */
281362
+ id: string;
281363
+ /**
281364
+ * Format: uuid
281365
+ * @description The Cobro the claim is on.
281366
+ */
281367
+ invoice_id: string;
281368
+ /** @description ISO instant of the «Ya pagué» this file belongs to. */
281369
+ claimed_at: string;
281370
+ /** @description Display name (sanitised: spaces and accents become `_`). */
281371
+ filename: string;
281372
+ /** @enum {string} */
281373
+ mime: "application/pdf" | "image/jpeg" | "image/png";
281374
+ size_bytes: number;
281375
+ uploaded_at: string;
281376
+ /**
281377
+ * @description `pending`: the claim waits for Vitrina (the file can still be replaced). `confirmed`: Vitrina confirmed the payment; the file stays with it. `rejected`: Vitrina did not find the transfer; kept as history. `closed`: the cobro was paid another way while the claim waited.
281378
+ * @enum {string}
281379
+ */
281380
+ state: "pending" | "confirmed" | "rejected" | "closed";
281381
+ rejected_at: string | null;
281382
+ /**
281383
+ * Format: uuid
281384
+ * @description The «Pago recibido» a confirmed claim became (it carries this file).
281385
+ */
281386
+ received_payment_id: string | null;
281387
+ } | null;
281057
281388
  BillingHistoryRow: {
281058
281389
  /** @description Stable, unique row key (list key / cursor anchor): the invoice id, or `manual:YYYY-MM`. Not a resource id — use `invoice_id`. */
281059
281390
  row_key: string;
@@ -281610,6 +281941,14 @@ interface components {
281610
281941
  created: boolean;
281611
281942
  claimedAt: string;
281612
281943
  number: string;
281944
+ comprobante: components["schemas"]["ClaimComprobante"] & unknown;
281945
+ /** @description #7094: set only when a file was sent and NOT stored. The claim was still made (and is being verified): offer «reintentar adjuntar» through `POST …/transfer-claim/comprobante` when `retryable`, never a second claim. */
281946
+ comprobante_error: {
281947
+ /** @enum {string} */
281948
+ reason: "comprobante_not_stored" | "no_pending_claim";
281949
+ message: string;
281950
+ retryable: boolean;
281951
+ } | null;
281613
281952
  };
281614
281953
  /** @example 2026-01 */
281615
281954
  OverheadPeriod: string;
@@ -297190,6 +297529,11 @@ interface components {
297190
297529
  region: string | null;
297191
297530
  }[];
297192
297531
  };
297532
+ ClaimComprobanteUpload: {
297533
+ comprobante: components["schemas"]["ClaimComprobante"] & Record<string, never>;
297534
+ /** @description True when it replaced the claim’s previous file. */
297535
+ replaced: boolean;
297536
+ };
297193
297537
  WhatsappTemplateAnalytics: {
297194
297538
  template: {
297195
297539
  /** Format: uuid */
package/dist/index.d.ts CHANGED
@@ -37715,6 +37715,10 @@ interface paths {
37715
37715
  /**
37716
37716
  * «Ya pagué por transferencia»: pause automatic charging of a cobro
37717
37717
  * @description The owner says this cobro was already paid by bank transfer (for example without its reference, which the reconciliation cannot match). While the claim is pending nothing charges the cobro automatically — not the scheduled charge, not a retry — and it does not advance in collections; the Vitrina team verifies the transfer and either records the payment or resumes the charge with a fresh heads-up. Idempotent (`created: false` when already pending). 409 when the cobro is no longer open (paid, voided, or a charge is in flight). Requires `billing:write`.
37718
+ *
37719
+ * **Optional comprobante** (#7094): send the proof of the transfer with the claim as a multipart `file` part (or the JSON file variant below). A PDF, JPG or PNG of at most 10 MB, type read from the bytes; a refused file (400 `comprobante_empty`, 413 `comprobante_too_large`, 415 `comprobante_type`) refuses the whole request and nothing is claimed. It is a claim, not proof: it changes nothing on the cobro. `comprobante` in the answer is the file THIS call attached (null without one). If the claim was made but the file could not be stored, the answer is still 200 with `comprobante: null` and `comprobante_error` {reason `comprobante_not_stored`, retryable true}: retry only the file. Add or replace it later with `POST …/transfer-claim/comprobante`.
37720
+ *
37721
+ * **Or a JSON body** (`application/json`) — what an MCP connector sends through `call_operation`, which cannot build multipart: `{ filename, content, content_encoding?, content_type? }` plus the operation's own form fields. `content` is UTF-8 text by default, or base64 when `content_encoding` is `"base64"` (images, PDF, audio, video). The same byte cap applies to the decoded bytes (413 above it); invalid base64 is a 400; the content type defaults from the filename extension.
37718
37722
  */
37719
37723
  post: {
37720
37724
  parameters: {
@@ -37728,7 +37732,38 @@ interface paths {
37728
37732
  };
37729
37733
  cookie?: never;
37730
37734
  };
37731
- requestBody?: never;
37735
+ requestBody?: {
37736
+ content: {
37737
+ /**
37738
+ * @example {
37739
+ * "file": "(binary part)"
37740
+ * }
37741
+ */
37742
+ "multipart/form-data": {
37743
+ file?: unknown;
37744
+ };
37745
+ /**
37746
+ * @example {
37747
+ * "filename": "comprobante.pdf",
37748
+ * "content": "JVBERi0xLjQK…",
37749
+ * "content_encoding": "base64"
37750
+ * }
37751
+ */
37752
+ "application/json": {
37753
+ /** @description File name with extension; the content type defaults from it. */
37754
+ filename: string;
37755
+ /** @description The file. UTF-8 text by default; base64 when `content_encoding` is "base64" (images, PDF, audio, video). */
37756
+ content: string;
37757
+ /**
37758
+ * @description `utf8` (default) for text, `base64` for binary files.
37759
+ * @enum {string}
37760
+ */
37761
+ content_encoding?: "utf8" | "base64";
37762
+ /** @description MIME type. Defaults from the extension (.png → image/png, …). */
37763
+ content_type?: string;
37764
+ };
37765
+ };
37766
+ };
37732
37767
  responses: {
37733
37768
  /** @description The claim */
37734
37769
  200: {
@@ -258702,6 +258737,273 @@ interface paths {
258702
258737
  patch?: never;
258703
258738
  trace?: never;
258704
258739
  };
258740
+ "/billing/invoices/{id}/transfer-claim/comprobante": {
258741
+ parameters: {
258742
+ query?: never;
258743
+ header?: never;
258744
+ path?: never;
258745
+ cookie?: never;
258746
+ };
258747
+ get?: never;
258748
+ put?: never;
258749
+ /**
258750
+ * Attach or replace the comprobante of a pending «Ya pagué»
258751
+ * @description Adds the proof of the transfer to the cobro’s pending «Ya pagué por transferencia» claim, or replaces the one already there (the old file is deleted). A PDF, JPG or PNG of at most 10 MB; the type is read from the bytes, never from the request (415 `comprobante_type`; 413 `comprobante_too_large`; 400 `comprobante_empty` / `comprobante_missing`). It is a claim, not proof: it changes nothing on the cobro, its collection or its automatic charge; the Vitrina team checks the transfer. 409 `no_pending_claim` when the cobro has no pending claim (claim first, or attach the file to the claim itself); 409 `comprobante_frozen` when the claim’s file already went with a recorded payment; 404 for a cobro of another workspace. Requires `billing:write` (owners).
258752
+ *
258753
+ * **Or a JSON body** (`application/json`) — what an MCP connector sends through `call_operation`, which cannot build multipart: `{ filename, content, content_encoding?, content_type? }` plus the operation's own form fields. `content` is UTF-8 text by default, or base64 when `content_encoding` is `"base64"` (images, PDF, audio, video). The same byte cap applies to the decoded bytes (413 above it); invalid base64 is a 400; the content type defaults from the filename extension.
258754
+ */
258755
+ post: {
258756
+ parameters: {
258757
+ query?: never;
258758
+ header?: {
258759
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
258760
+ "Idempotency-Key"?: string;
258761
+ };
258762
+ path: {
258763
+ id: string;
258764
+ };
258765
+ cookie?: never;
258766
+ };
258767
+ requestBody: {
258768
+ content: {
258769
+ /**
258770
+ * @example {
258771
+ * "file": "(binary part)"
258772
+ * }
258773
+ */
258774
+ "multipart/form-data": {
258775
+ file?: unknown;
258776
+ };
258777
+ /**
258778
+ * @example {
258779
+ * "filename": "comprobante.pdf",
258780
+ * "content": "JVBERi0xLjQK…",
258781
+ * "content_encoding": "base64"
258782
+ * }
258783
+ */
258784
+ "application/json": {
258785
+ /** @description File name with extension; the content type defaults from it. */
258786
+ filename: string;
258787
+ /** @description The file. UTF-8 text by default; base64 when `content_encoding` is "base64" (images, PDF, audio, video). */
258788
+ content: string;
258789
+ /**
258790
+ * @description `utf8` (default) for text, `base64` for binary files.
258791
+ * @enum {string}
258792
+ */
258793
+ content_encoding?: "utf8" | "base64";
258794
+ /** @description MIME type. Defaults from the extension (.png → image/png, …). */
258795
+ content_type?: string;
258796
+ };
258797
+ };
258798
+ };
258799
+ responses: {
258800
+ /** @description The file now on the pending claim */
258801
+ 200: {
258802
+ headers: {
258803
+ [name: string]: unknown;
258804
+ };
258805
+ content: {
258806
+ /**
258807
+ * @example {
258808
+ * "data": {
258809
+ * "comprobante": {
258810
+ * "id": "5b0e6c1a-9a7d-4c3e-8f21-0c4d2e1f7a90",
258811
+ * "invoice_id": "9a1bd325-3ab8-47e8-afe1-7b87c550b139",
258812
+ * "claimed_at": "2026-11-05T13:31:00.000Z",
258813
+ * "filename": "comprobante_transferencia.pdf",
258814
+ * "mime": "application/pdf",
258815
+ * "size_bytes": 48211,
258816
+ * "uploaded_at": "2026-11-05T13:31:02.000Z",
258817
+ * "state": "pending",
258818
+ * "rejected_at": null,
258819
+ * "received_payment_id": null
258820
+ * },
258821
+ * "replaced": false
258822
+ * }
258823
+ * }
258824
+ */
258825
+ "application/json": {
258826
+ data: components["schemas"]["ClaimComprobanteUpload"];
258827
+ };
258828
+ };
258829
+ };
258830
+ /** @description Validation error */
258831
+ 400: {
258832
+ headers: {
258833
+ [name: string]: unknown;
258834
+ };
258835
+ content: {
258836
+ "application/json": components["schemas"]["Error"];
258837
+ };
258838
+ };
258839
+ /** @description Unauthorized */
258840
+ 401: {
258841
+ headers: {
258842
+ [name: string]: unknown;
258843
+ };
258844
+ content: {
258845
+ "application/json": components["schemas"]["Error"];
258846
+ };
258847
+ };
258848
+ /** @description Forbidden */
258849
+ 403: {
258850
+ headers: {
258851
+ [name: string]: unknown;
258852
+ };
258853
+ content: {
258854
+ "application/json": components["schemas"]["Error"];
258855
+ };
258856
+ };
258857
+ /** @description Not found */
258858
+ 404: {
258859
+ headers: {
258860
+ [name: string]: unknown;
258861
+ };
258862
+ content: {
258863
+ "application/json": components["schemas"]["Error"];
258864
+ };
258865
+ };
258866
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
258867
+ 409: {
258868
+ headers: {
258869
+ [name: string]: unknown;
258870
+ };
258871
+ content: {
258872
+ "application/json": components["schemas"]["Error"];
258873
+ };
258874
+ };
258875
+ /** @description Rate limited */
258876
+ 429: {
258877
+ headers: {
258878
+ [name: string]: unknown;
258879
+ };
258880
+ content: {
258881
+ "application/json": components["schemas"]["Error"];
258882
+ };
258883
+ };
258884
+ };
258885
+ };
258886
+ delete?: never;
258887
+ options?: never;
258888
+ head?: never;
258889
+ patch?: never;
258890
+ trace?: never;
258891
+ };
258892
+ "/billing/invoices/{id}/transfer-claim/comprobantes": {
258893
+ parameters: {
258894
+ query?: never;
258895
+ header?: never;
258896
+ path?: never;
258897
+ cookie?: never;
258898
+ };
258899
+ /**
258900
+ * The comprobantes attached to a cobro’s «Ya pagué» claims
258901
+ * @description Every file the workspace attached to a «Ya pagué» on this cobro, the newest claim first, with what became of each claim (`state`). A rejected claim’s file stays here as history. Descriptors only; download one with `GET …/comprobantes/{comprobanteId}`. 404 for a cobro of another workspace. Requires `billing:read` (owners and admins).
258902
+ */
258903
+ get: {
258904
+ parameters: {
258905
+ query?: never;
258906
+ header?: never;
258907
+ path: {
258908
+ id: string;
258909
+ };
258910
+ cookie?: never;
258911
+ };
258912
+ requestBody?: never;
258913
+ responses: {
258914
+ /** @description The claim files */
258915
+ 200: {
258916
+ headers: {
258917
+ [name: string]: unknown;
258918
+ };
258919
+ content: {
258920
+ /**
258921
+ * @example {
258922
+ * "data": [
258923
+ * {
258924
+ * "id": "5b0e6c1a-9a7d-4c3e-8f21-0c4d2e1f7a90",
258925
+ * "invoice_id": "9a1bd325-3ab8-47e8-afe1-7b87c550b139",
258926
+ * "claimed_at": "2026-11-05T13:31:00.000Z",
258927
+ * "filename": "comprobante_transferencia.pdf",
258928
+ * "mime": "application/pdf",
258929
+ * "size_bytes": 48211,
258930
+ * "uploaded_at": "2026-11-05T13:31:02.000Z",
258931
+ * "state": "pending",
258932
+ * "rejected_at": null,
258933
+ * "received_payment_id": null
258934
+ * }
258935
+ * ]
258936
+ * }
258937
+ */
258938
+ "application/json": {
258939
+ data: (components["schemas"]["ClaimComprobante"] & Record<string, never>)[];
258940
+ };
258941
+ };
258942
+ };
258943
+ /** @description Validation error */
258944
+ 400: {
258945
+ headers: {
258946
+ [name: string]: unknown;
258947
+ };
258948
+ content: {
258949
+ "application/json": components["schemas"]["Error"];
258950
+ };
258951
+ };
258952
+ /** @description Unauthorized */
258953
+ 401: {
258954
+ headers: {
258955
+ [name: string]: unknown;
258956
+ };
258957
+ content: {
258958
+ "application/json": components["schemas"]["Error"];
258959
+ };
258960
+ };
258961
+ /** @description Forbidden */
258962
+ 403: {
258963
+ headers: {
258964
+ [name: string]: unknown;
258965
+ };
258966
+ content: {
258967
+ "application/json": components["schemas"]["Error"];
258968
+ };
258969
+ };
258970
+ /** @description Not found */
258971
+ 404: {
258972
+ headers: {
258973
+ [name: string]: unknown;
258974
+ };
258975
+ content: {
258976
+ "application/json": components["schemas"]["Error"];
258977
+ };
258978
+ };
258979
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
258980
+ 409: {
258981
+ headers: {
258982
+ [name: string]: unknown;
258983
+ };
258984
+ content: {
258985
+ "application/json": components["schemas"]["Error"];
258986
+ };
258987
+ };
258988
+ /** @description Rate limited */
258989
+ 429: {
258990
+ headers: {
258991
+ [name: string]: unknown;
258992
+ };
258993
+ content: {
258994
+ "application/json": components["schemas"]["Error"];
258995
+ };
258996
+ };
258997
+ };
258998
+ };
258999
+ put?: never;
259000
+ post?: never;
259001
+ delete?: never;
259002
+ options?: never;
259003
+ head?: never;
259004
+ patch?: never;
259005
+ trace?: never;
259006
+ };
258705
259007
  "/sandbox/clinic": {
258706
259008
  parameters: {
258707
259009
  query?: never;
@@ -281054,6 +281356,35 @@ interface components {
281054
281356
  }[];
281055
281357
  next_cursor: string | null;
281056
281358
  };
281359
+ /** @description #7094: the file attached to this claim («comprobante adjunto»), or null. */
281360
+ ClaimComprobante: {
281361
+ /** Format: uuid */
281362
+ id: string;
281363
+ /**
281364
+ * Format: uuid
281365
+ * @description The Cobro the claim is on.
281366
+ */
281367
+ invoice_id: string;
281368
+ /** @description ISO instant of the «Ya pagué» this file belongs to. */
281369
+ claimed_at: string;
281370
+ /** @description Display name (sanitised: spaces and accents become `_`). */
281371
+ filename: string;
281372
+ /** @enum {string} */
281373
+ mime: "application/pdf" | "image/jpeg" | "image/png";
281374
+ size_bytes: number;
281375
+ uploaded_at: string;
281376
+ /**
281377
+ * @description `pending`: the claim waits for Vitrina (the file can still be replaced). `confirmed`: Vitrina confirmed the payment; the file stays with it. `rejected`: Vitrina did not find the transfer; kept as history. `closed`: the cobro was paid another way while the claim waited.
281378
+ * @enum {string}
281379
+ */
281380
+ state: "pending" | "confirmed" | "rejected" | "closed";
281381
+ rejected_at: string | null;
281382
+ /**
281383
+ * Format: uuid
281384
+ * @description The «Pago recibido» a confirmed claim became (it carries this file).
281385
+ */
281386
+ received_payment_id: string | null;
281387
+ } | null;
281057
281388
  BillingHistoryRow: {
281058
281389
  /** @description Stable, unique row key (list key / cursor anchor): the invoice id, or `manual:YYYY-MM`. Not a resource id — use `invoice_id`. */
281059
281390
  row_key: string;
@@ -281610,6 +281941,14 @@ interface components {
281610
281941
  created: boolean;
281611
281942
  claimedAt: string;
281612
281943
  number: string;
281944
+ comprobante: components["schemas"]["ClaimComprobante"] & unknown;
281945
+ /** @description #7094: set only when a file was sent and NOT stored. The claim was still made (and is being verified): offer «reintentar adjuntar» through `POST …/transfer-claim/comprobante` when `retryable`, never a second claim. */
281946
+ comprobante_error: {
281947
+ /** @enum {string} */
281948
+ reason: "comprobante_not_stored" | "no_pending_claim";
281949
+ message: string;
281950
+ retryable: boolean;
281951
+ } | null;
281613
281952
  };
281614
281953
  /** @example 2026-01 */
281615
281954
  OverheadPeriod: string;
@@ -297190,6 +297529,11 @@ interface components {
297190
297529
  region: string | null;
297191
297530
  }[];
297192
297531
  };
297532
+ ClaimComprobanteUpload: {
297533
+ comprobante: components["schemas"]["ClaimComprobante"] & Record<string, never>;
297534
+ /** @description True when it replaced the claim’s previous file. */
297535
+ replaced: boolean;
297536
+ };
297193
297537
  WhatsappTemplateAnalytics: {
297194
297538
  template: {
297195
297539
  /** Format: uuid */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.30.1",
3
+ "version": "17.32.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",