@vitrina/api 17.12.3 → 17.13.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 +137 -0
- package/dist/index.d.ts +137 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -73287,6 +73287,112 @@ interface paths {
|
|
|
73287
73287
|
patch?: never;
|
|
73288
73288
|
trace?: never;
|
|
73289
73289
|
};
|
|
73290
|
+
"/finanzas/connections/fintoc/link-intent": {
|
|
73291
|
+
parameters: {
|
|
73292
|
+
query?: never;
|
|
73293
|
+
header?: never;
|
|
73294
|
+
path?: never;
|
|
73295
|
+
cookie?: never;
|
|
73296
|
+
};
|
|
73297
|
+
get?: never;
|
|
73298
|
+
put?: never;
|
|
73299
|
+
/**
|
|
73300
|
+
* Start a bank link (Fintoc widget token)
|
|
73301
|
+
* @description Opens one bank-link attempt: creates a Fintoc link intent (business holder, movements) and returns its `widget_token`, which opens Fintoc's widget (`Fintoc.create({ publicKey, widgetToken })`). Fintoc returns the token only once, so request a fresh one each time the widget opens. On success the widget hands back an `exchange_token`: send it to `POST /finanzas/connections/fintoc` (or `…/{id}/reconnect`). Reads no bank and costs nothing. Requires the `bank_feed_fintoc` add-on (`402 ENTITLEMENT_NOT_ACTIVE` otherwise). Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
|
|
73302
|
+
*/
|
|
73303
|
+
post: {
|
|
73304
|
+
parameters: {
|
|
73305
|
+
query?: never;
|
|
73306
|
+
header?: {
|
|
73307
|
+
/** @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. */
|
|
73308
|
+
"Idempotency-Key"?: string;
|
|
73309
|
+
};
|
|
73310
|
+
path?: never;
|
|
73311
|
+
cookie?: never;
|
|
73312
|
+
};
|
|
73313
|
+
requestBody?: never;
|
|
73314
|
+
responses: {
|
|
73315
|
+
/** @description The link intent */
|
|
73316
|
+
201: {
|
|
73317
|
+
headers: {
|
|
73318
|
+
[name: string]: unknown;
|
|
73319
|
+
};
|
|
73320
|
+
content: {
|
|
73321
|
+
/**
|
|
73322
|
+
* @example {
|
|
73323
|
+
* "data": {
|
|
73324
|
+
* "widget_token": "widget_token_ejemplo_123",
|
|
73325
|
+
* "external_id": "li_ejemplo123"
|
|
73326
|
+
* }
|
|
73327
|
+
* }
|
|
73328
|
+
*/
|
|
73329
|
+
"application/json": {
|
|
73330
|
+
data: components["schemas"]["FinanzasFintocLinkIntent"];
|
|
73331
|
+
};
|
|
73332
|
+
};
|
|
73333
|
+
};
|
|
73334
|
+
/** @description Validation error */
|
|
73335
|
+
400: {
|
|
73336
|
+
headers: {
|
|
73337
|
+
[name: string]: unknown;
|
|
73338
|
+
};
|
|
73339
|
+
content: {
|
|
73340
|
+
"application/json": components["schemas"]["Error"];
|
|
73341
|
+
};
|
|
73342
|
+
};
|
|
73343
|
+
/** @description Unauthorized */
|
|
73344
|
+
401: {
|
|
73345
|
+
headers: {
|
|
73346
|
+
[name: string]: unknown;
|
|
73347
|
+
};
|
|
73348
|
+
content: {
|
|
73349
|
+
"application/json": components["schemas"]["Error"];
|
|
73350
|
+
};
|
|
73351
|
+
};
|
|
73352
|
+
/** @description Forbidden */
|
|
73353
|
+
403: {
|
|
73354
|
+
headers: {
|
|
73355
|
+
[name: string]: unknown;
|
|
73356
|
+
};
|
|
73357
|
+
content: {
|
|
73358
|
+
"application/json": components["schemas"]["Error"];
|
|
73359
|
+
};
|
|
73360
|
+
};
|
|
73361
|
+
/** @description Not found */
|
|
73362
|
+
404: {
|
|
73363
|
+
headers: {
|
|
73364
|
+
[name: string]: unknown;
|
|
73365
|
+
};
|
|
73366
|
+
content: {
|
|
73367
|
+
"application/json": components["schemas"]["Error"];
|
|
73368
|
+
};
|
|
73369
|
+
};
|
|
73370
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
73371
|
+
409: {
|
|
73372
|
+
headers: {
|
|
73373
|
+
[name: string]: unknown;
|
|
73374
|
+
};
|
|
73375
|
+
content: {
|
|
73376
|
+
"application/json": components["schemas"]["Error"];
|
|
73377
|
+
};
|
|
73378
|
+
};
|
|
73379
|
+
/** @description Rate limited */
|
|
73380
|
+
429: {
|
|
73381
|
+
headers: {
|
|
73382
|
+
[name: string]: unknown;
|
|
73383
|
+
};
|
|
73384
|
+
content: {
|
|
73385
|
+
"application/json": components["schemas"]["Error"];
|
|
73386
|
+
};
|
|
73387
|
+
};
|
|
73388
|
+
};
|
|
73389
|
+
};
|
|
73390
|
+
delete?: never;
|
|
73391
|
+
options?: never;
|
|
73392
|
+
head?: never;
|
|
73393
|
+
patch?: never;
|
|
73394
|
+
trace?: never;
|
|
73395
|
+
};
|
|
73290
73396
|
"/finanzas/connections/fintoc": {
|
|
73291
73397
|
parameters: {
|
|
73292
73398
|
query?: never;
|
|
@@ -90011,6 +90117,15 @@ interface paths {
|
|
|
90011
90117
|
*/
|
|
90012
90118
|
feed: "direct" | "email" | "statement" | "none";
|
|
90013
90119
|
};
|
|
90120
|
+
/** @description The optional Mercado Pago row. `done` = a live connection; `problem` = its pull is failing or late; `todo` = not connected (connect it with POST /payment-settings/mercadopago/connect). */
|
|
90121
|
+
mercado_pago: {
|
|
90122
|
+
/** @enum {string} */
|
|
90123
|
+
state: "todo" | "done" | "problem";
|
|
90124
|
+
/** @description The workspace keeps a Mercado Pago account (e.g. from a Chipax import) or has a Mercado Pago connection: only then is the optional «Mercado Pago» row shown and counted. Never part of `onboarding.mode` `done`. */
|
|
90125
|
+
relevant: boolean;
|
|
90126
|
+
nickname: string | null;
|
|
90127
|
+
connected_at: string | null;
|
|
90128
|
+
};
|
|
90014
90129
|
sii: {
|
|
90015
90130
|
connection: {
|
|
90016
90131
|
/** Format: uuid */
|
|
@@ -90770,6 +90885,15 @@ interface paths {
|
|
|
90770
90885
|
*/
|
|
90771
90886
|
feed: "direct" | "email" | "statement" | "none";
|
|
90772
90887
|
};
|
|
90888
|
+
/** @description The optional Mercado Pago row. `done` = a live connection; `problem` = its pull is failing or late; `todo` = not connected (connect it with POST /payment-settings/mercadopago/connect). */
|
|
90889
|
+
mercado_pago: {
|
|
90890
|
+
/** @enum {string} */
|
|
90891
|
+
state: "todo" | "done" | "problem";
|
|
90892
|
+
/** @description The workspace keeps a Mercado Pago account (e.g. from a Chipax import) or has a Mercado Pago connection: only then is the optional «Mercado Pago» row shown and counted. Never part of `onboarding.mode` `done`. */
|
|
90893
|
+
relevant: boolean;
|
|
90894
|
+
nickname: string | null;
|
|
90895
|
+
connected_at: string | null;
|
|
90896
|
+
};
|
|
90773
90897
|
sii: {
|
|
90774
90898
|
connection: {
|
|
90775
90899
|
/** Format: uuid */
|
|
@@ -91015,6 +91139,15 @@ interface paths {
|
|
|
91015
91139
|
*/
|
|
91016
91140
|
feed: "direct" | "email" | "statement" | "none";
|
|
91017
91141
|
};
|
|
91142
|
+
/** @description The optional Mercado Pago row. `done` = a live connection; `problem` = its pull is failing or late; `todo` = not connected (connect it with POST /payment-settings/mercadopago/connect). */
|
|
91143
|
+
mercado_pago: {
|
|
91144
|
+
/** @enum {string} */
|
|
91145
|
+
state: "todo" | "done" | "problem";
|
|
91146
|
+
/** @description The workspace keeps a Mercado Pago account (e.g. from a Chipax import) or has a Mercado Pago connection: only then is the optional «Mercado Pago» row shown and counted. Never part of `onboarding.mode` `done`. */
|
|
91147
|
+
relevant: boolean;
|
|
91148
|
+
nickname: string | null;
|
|
91149
|
+
connected_at: string | null;
|
|
91150
|
+
};
|
|
91018
91151
|
sii: {
|
|
91019
91152
|
connection: {
|
|
91020
91153
|
/** Format: uuid */
|
|
@@ -278793,6 +278926,10 @@ interface components {
|
|
|
278793
278926
|
stale_after_hours: number;
|
|
278794
278927
|
manual_sync_min_interval_minutes: number;
|
|
278795
278928
|
};
|
|
278929
|
+
FinanzasFintocLinkIntent: {
|
|
278930
|
+
widget_token: string;
|
|
278931
|
+
external_id: string;
|
|
278932
|
+
};
|
|
278796
278933
|
FinanzasFintocConnectBody: {
|
|
278797
278934
|
exchange_token?: string;
|
|
278798
278935
|
link_token?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -73287,6 +73287,112 @@ interface paths {
|
|
|
73287
73287
|
patch?: never;
|
|
73288
73288
|
trace?: never;
|
|
73289
73289
|
};
|
|
73290
|
+
"/finanzas/connections/fintoc/link-intent": {
|
|
73291
|
+
parameters: {
|
|
73292
|
+
query?: never;
|
|
73293
|
+
header?: never;
|
|
73294
|
+
path?: never;
|
|
73295
|
+
cookie?: never;
|
|
73296
|
+
};
|
|
73297
|
+
get?: never;
|
|
73298
|
+
put?: never;
|
|
73299
|
+
/**
|
|
73300
|
+
* Start a bank link (Fintoc widget token)
|
|
73301
|
+
* @description Opens one bank-link attempt: creates a Fintoc link intent (business holder, movements) and returns its `widget_token`, which opens Fintoc's widget (`Fintoc.create({ publicKey, widgetToken })`). Fintoc returns the token only once, so request a fresh one each time the widget opens. On success the widget hands back an `exchange_token`: send it to `POST /finanzas/connections/fintoc` (or `…/{id}/reconnect`). Reads no bank and costs nothing. Requires the `bank_feed_fintoc` add-on (`402 ENTITLEMENT_NOT_ACTIVE` otherwise). Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
|
|
73302
|
+
*/
|
|
73303
|
+
post: {
|
|
73304
|
+
parameters: {
|
|
73305
|
+
query?: never;
|
|
73306
|
+
header?: {
|
|
73307
|
+
/** @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. */
|
|
73308
|
+
"Idempotency-Key"?: string;
|
|
73309
|
+
};
|
|
73310
|
+
path?: never;
|
|
73311
|
+
cookie?: never;
|
|
73312
|
+
};
|
|
73313
|
+
requestBody?: never;
|
|
73314
|
+
responses: {
|
|
73315
|
+
/** @description The link intent */
|
|
73316
|
+
201: {
|
|
73317
|
+
headers: {
|
|
73318
|
+
[name: string]: unknown;
|
|
73319
|
+
};
|
|
73320
|
+
content: {
|
|
73321
|
+
/**
|
|
73322
|
+
* @example {
|
|
73323
|
+
* "data": {
|
|
73324
|
+
* "widget_token": "widget_token_ejemplo_123",
|
|
73325
|
+
* "external_id": "li_ejemplo123"
|
|
73326
|
+
* }
|
|
73327
|
+
* }
|
|
73328
|
+
*/
|
|
73329
|
+
"application/json": {
|
|
73330
|
+
data: components["schemas"]["FinanzasFintocLinkIntent"];
|
|
73331
|
+
};
|
|
73332
|
+
};
|
|
73333
|
+
};
|
|
73334
|
+
/** @description Validation error */
|
|
73335
|
+
400: {
|
|
73336
|
+
headers: {
|
|
73337
|
+
[name: string]: unknown;
|
|
73338
|
+
};
|
|
73339
|
+
content: {
|
|
73340
|
+
"application/json": components["schemas"]["Error"];
|
|
73341
|
+
};
|
|
73342
|
+
};
|
|
73343
|
+
/** @description Unauthorized */
|
|
73344
|
+
401: {
|
|
73345
|
+
headers: {
|
|
73346
|
+
[name: string]: unknown;
|
|
73347
|
+
};
|
|
73348
|
+
content: {
|
|
73349
|
+
"application/json": components["schemas"]["Error"];
|
|
73350
|
+
};
|
|
73351
|
+
};
|
|
73352
|
+
/** @description Forbidden */
|
|
73353
|
+
403: {
|
|
73354
|
+
headers: {
|
|
73355
|
+
[name: string]: unknown;
|
|
73356
|
+
};
|
|
73357
|
+
content: {
|
|
73358
|
+
"application/json": components["schemas"]["Error"];
|
|
73359
|
+
};
|
|
73360
|
+
};
|
|
73361
|
+
/** @description Not found */
|
|
73362
|
+
404: {
|
|
73363
|
+
headers: {
|
|
73364
|
+
[name: string]: unknown;
|
|
73365
|
+
};
|
|
73366
|
+
content: {
|
|
73367
|
+
"application/json": components["schemas"]["Error"];
|
|
73368
|
+
};
|
|
73369
|
+
};
|
|
73370
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
73371
|
+
409: {
|
|
73372
|
+
headers: {
|
|
73373
|
+
[name: string]: unknown;
|
|
73374
|
+
};
|
|
73375
|
+
content: {
|
|
73376
|
+
"application/json": components["schemas"]["Error"];
|
|
73377
|
+
};
|
|
73378
|
+
};
|
|
73379
|
+
/** @description Rate limited */
|
|
73380
|
+
429: {
|
|
73381
|
+
headers: {
|
|
73382
|
+
[name: string]: unknown;
|
|
73383
|
+
};
|
|
73384
|
+
content: {
|
|
73385
|
+
"application/json": components["schemas"]["Error"];
|
|
73386
|
+
};
|
|
73387
|
+
};
|
|
73388
|
+
};
|
|
73389
|
+
};
|
|
73390
|
+
delete?: never;
|
|
73391
|
+
options?: never;
|
|
73392
|
+
head?: never;
|
|
73393
|
+
patch?: never;
|
|
73394
|
+
trace?: never;
|
|
73395
|
+
};
|
|
73290
73396
|
"/finanzas/connections/fintoc": {
|
|
73291
73397
|
parameters: {
|
|
73292
73398
|
query?: never;
|
|
@@ -90011,6 +90117,15 @@ interface paths {
|
|
|
90011
90117
|
*/
|
|
90012
90118
|
feed: "direct" | "email" | "statement" | "none";
|
|
90013
90119
|
};
|
|
90120
|
+
/** @description The optional Mercado Pago row. `done` = a live connection; `problem` = its pull is failing or late; `todo` = not connected (connect it with POST /payment-settings/mercadopago/connect). */
|
|
90121
|
+
mercado_pago: {
|
|
90122
|
+
/** @enum {string} */
|
|
90123
|
+
state: "todo" | "done" | "problem";
|
|
90124
|
+
/** @description The workspace keeps a Mercado Pago account (e.g. from a Chipax import) or has a Mercado Pago connection: only then is the optional «Mercado Pago» row shown and counted. Never part of `onboarding.mode` `done`. */
|
|
90125
|
+
relevant: boolean;
|
|
90126
|
+
nickname: string | null;
|
|
90127
|
+
connected_at: string | null;
|
|
90128
|
+
};
|
|
90014
90129
|
sii: {
|
|
90015
90130
|
connection: {
|
|
90016
90131
|
/** Format: uuid */
|
|
@@ -90770,6 +90885,15 @@ interface paths {
|
|
|
90770
90885
|
*/
|
|
90771
90886
|
feed: "direct" | "email" | "statement" | "none";
|
|
90772
90887
|
};
|
|
90888
|
+
/** @description The optional Mercado Pago row. `done` = a live connection; `problem` = its pull is failing or late; `todo` = not connected (connect it with POST /payment-settings/mercadopago/connect). */
|
|
90889
|
+
mercado_pago: {
|
|
90890
|
+
/** @enum {string} */
|
|
90891
|
+
state: "todo" | "done" | "problem";
|
|
90892
|
+
/** @description The workspace keeps a Mercado Pago account (e.g. from a Chipax import) or has a Mercado Pago connection: only then is the optional «Mercado Pago» row shown and counted. Never part of `onboarding.mode` `done`. */
|
|
90893
|
+
relevant: boolean;
|
|
90894
|
+
nickname: string | null;
|
|
90895
|
+
connected_at: string | null;
|
|
90896
|
+
};
|
|
90773
90897
|
sii: {
|
|
90774
90898
|
connection: {
|
|
90775
90899
|
/** Format: uuid */
|
|
@@ -91015,6 +91139,15 @@ interface paths {
|
|
|
91015
91139
|
*/
|
|
91016
91140
|
feed: "direct" | "email" | "statement" | "none";
|
|
91017
91141
|
};
|
|
91142
|
+
/** @description The optional Mercado Pago row. `done` = a live connection; `problem` = its pull is failing or late; `todo` = not connected (connect it with POST /payment-settings/mercadopago/connect). */
|
|
91143
|
+
mercado_pago: {
|
|
91144
|
+
/** @enum {string} */
|
|
91145
|
+
state: "todo" | "done" | "problem";
|
|
91146
|
+
/** @description The workspace keeps a Mercado Pago account (e.g. from a Chipax import) or has a Mercado Pago connection: only then is the optional «Mercado Pago» row shown and counted. Never part of `onboarding.mode` `done`. */
|
|
91147
|
+
relevant: boolean;
|
|
91148
|
+
nickname: string | null;
|
|
91149
|
+
connected_at: string | null;
|
|
91150
|
+
};
|
|
91018
91151
|
sii: {
|
|
91019
91152
|
connection: {
|
|
91020
91153
|
/** Format: uuid */
|
|
@@ -278793,6 +278926,10 @@ interface components {
|
|
|
278793
278926
|
stale_after_hours: number;
|
|
278794
278927
|
manual_sync_min_interval_minutes: number;
|
|
278795
278928
|
};
|
|
278929
|
+
FinanzasFintocLinkIntent: {
|
|
278930
|
+
widget_token: string;
|
|
278931
|
+
external_id: string;
|
|
278932
|
+
};
|
|
278796
278933
|
FinanzasFintocConnectBody: {
|
|
278797
278934
|
exchange_token?: string;
|
|
278798
278935
|
link_token?: string;
|
package/package.json
CHANGED