@vitrina/api 17.12.2 → 17.12.4

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
@@ -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;
@@ -278793,6 +278899,10 @@ interface components {
278793
278899
  stale_after_hours: number;
278794
278900
  manual_sync_min_interval_minutes: number;
278795
278901
  };
278902
+ FinanzasFintocLinkIntent: {
278903
+ widget_token: string;
278904
+ external_id: string;
278905
+ };
278796
278906
  FinanzasFintocConnectBody: {
278797
278907
  exchange_token?: string;
278798
278908
  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;
@@ -278793,6 +278899,10 @@ interface components {
278793
278899
  stale_after_hours: number;
278794
278900
  manual_sync_min_interval_minutes: number;
278795
278901
  };
278902
+ FinanzasFintocLinkIntent: {
278903
+ widget_token: string;
278904
+ external_id: string;
278905
+ };
278796
278906
  FinanzasFintocConnectBody: {
278797
278907
  exchange_token?: string;
278798
278908
  link_token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.12.2",
3
+ "version": "17.12.4",
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",