@vitrina/api 17.40.1 → 17.41.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
@@ -73748,6 +73748,11 @@ interface paths {
73748
73748
  * "price_clp_per_bank_month": 15000,
73749
73749
  * "widget_public_key": "pk_test_ejemplo"
73750
73750
  * },
73751
+ * "bank_aggregator": {
73752
+ * "provider": "fintoc",
73753
+ * "configured": true,
73754
+ * "banks": []
73755
+ * },
73751
73756
  * "stale_after_hours": 48,
73752
73757
  * "manual_sync_min_interval_minutes": 60
73753
73758
  * }
@@ -74070,6 +74075,259 @@ interface paths {
74070
74075
  patch?: never;
74071
74076
  trace?: never;
74072
74077
  };
74078
+ "/finanzas/connections/emisso/link-session": {
74079
+ parameters: {
74080
+ query?: never;
74081
+ header?: never;
74082
+ path?: never;
74083
+ cookie?: never;
74084
+ };
74085
+ get?: never;
74086
+ put?: never;
74087
+ /**
74088
+ * Start a bank link (Emisso page)
74089
+ * @description For a workspace whose `bank_aggregator.provider` is `emisso` (see `GET /finanzas/connections`). Returns a one-use page on `connect.emisso.ai` where the account holder enters the credentials of the chosen bank; they never reach Vitrina. Show the page with its full domain and say why it is asked. When the holder is done, call `POST /finanzas/connections/emisso/claim`. With `connection_id` the page renews the credential of that existing bank connection. Reads no bank. Requires the `bank_feed_fintoc` add-on (`402 ENTITLEMENT_NOT_ACTIVE` otherwise); `503 BANK_FEED_NOT_CONFIGURED` when this deployment has no Emisso key. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
74090
+ *
74091
+ * **Connected apps:** refused with `403 CONNECTED_APP_EXCLUDED_OPERATION` and absent from the MCP catalogue, whatever write pack was granted — the «Agentes de IA» pack promises not to include this act. An API key or a personal token of the workspace holding the scope reaches it as usual.
74092
+ */
74093
+ post: {
74094
+ parameters: {
74095
+ query?: never;
74096
+ header?: {
74097
+ /** @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. */
74098
+ "Idempotency-Key"?: string;
74099
+ };
74100
+ path?: never;
74101
+ cookie?: never;
74102
+ };
74103
+ requestBody?: {
74104
+ content: {
74105
+ /**
74106
+ * @example {
74107
+ * "bank": "bch_empresas"
74108
+ * }
74109
+ */
74110
+ "application/json": components["schemas"]["FinanzasEmissoLinkSessionBody"];
74111
+ };
74112
+ };
74113
+ responses: {
74114
+ /** @description The bank-link page */
74115
+ 201: {
74116
+ headers: {
74117
+ [name: string]: unknown;
74118
+ };
74119
+ content: {
74120
+ /**
74121
+ * @example {
74122
+ * "data": {
74123
+ * "url": "https://connect.emisso.ai/c/connect_cs_ejemplo",
74124
+ * "expires_at": "2026-11-15T15:43:57.205Z",
74125
+ * "bank": "bch_empresas"
74126
+ * }
74127
+ * }
74128
+ */
74129
+ "application/json": {
74130
+ data: components["schemas"]["FinanzasEmissoLinkSession"];
74131
+ };
74132
+ };
74133
+ };
74134
+ /** @description Validation error */
74135
+ 400: {
74136
+ headers: {
74137
+ [name: string]: unknown;
74138
+ };
74139
+ content: {
74140
+ "application/json": components["schemas"]["Error"];
74141
+ };
74142
+ };
74143
+ /** @description Unauthorized */
74144
+ 401: {
74145
+ headers: {
74146
+ [name: string]: unknown;
74147
+ };
74148
+ content: {
74149
+ "application/json": components["schemas"]["Error"];
74150
+ };
74151
+ };
74152
+ /** @description Forbidden */
74153
+ 403: {
74154
+ headers: {
74155
+ [name: string]: unknown;
74156
+ };
74157
+ content: {
74158
+ "application/json": components["schemas"]["Error"];
74159
+ };
74160
+ };
74161
+ /** @description Not found */
74162
+ 404: {
74163
+ headers: {
74164
+ [name: string]: unknown;
74165
+ };
74166
+ content: {
74167
+ "application/json": components["schemas"]["Error"];
74168
+ };
74169
+ };
74170
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
74171
+ 409: {
74172
+ headers: {
74173
+ [name: string]: unknown;
74174
+ };
74175
+ content: {
74176
+ "application/json": components["schemas"]["Error"];
74177
+ };
74178
+ };
74179
+ /** @description Rate limited */
74180
+ 429: {
74181
+ headers: {
74182
+ [name: string]: unknown;
74183
+ };
74184
+ content: {
74185
+ "application/json": components["schemas"]["Error"];
74186
+ };
74187
+ };
74188
+ };
74189
+ };
74190
+ delete?: never;
74191
+ options?: never;
74192
+ head?: never;
74193
+ patch?: never;
74194
+ trace?: never;
74195
+ };
74196
+ "/finanzas/connections/emisso/claim": {
74197
+ parameters: {
74198
+ query?: never;
74199
+ header?: never;
74200
+ path?: never;
74201
+ cookie?: never;
74202
+ };
74203
+ get?: never;
74204
+ put?: never;
74205
+ /**
74206
+ * Add the banks connected on the Emisso page
74207
+ * @description Call it after the holder finishes the page from `…/emisso/link-session` (poll every few seconds while that page is open). Every bank connected for this workspace that Vitrina does not hold yet becomes a bank connection and its first read is queued; a renewed credential reactivates its connection. Idempotent: an empty `connections` means nothing new was ready. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
74208
+ *
74209
+ * **Connected apps:** refused with `403 CONNECTED_APP_EXCLUDED_OPERATION` and absent from the MCP catalogue, whatever write pack was granted — the «Agentes de IA» pack promises not to include this act. An API key or a personal token of the workspace holding the scope reaches it as usual.
74210
+ */
74211
+ post: {
74212
+ parameters: {
74213
+ query?: never;
74214
+ header?: {
74215
+ /** @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. */
74216
+ "Idempotency-Key"?: string;
74217
+ };
74218
+ path?: never;
74219
+ cookie?: never;
74220
+ };
74221
+ requestBody?: never;
74222
+ responses: {
74223
+ /** @description What was added */
74224
+ 200: {
74225
+ headers: {
74226
+ [name: string]: unknown;
74227
+ };
74228
+ content: {
74229
+ /**
74230
+ * @example {
74231
+ * "data": {
74232
+ * "connections": [
74233
+ * {
74234
+ * "id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4a5b",
74235
+ * "kind": "bank",
74236
+ * "provider": "fintoc",
74237
+ * "institution_name": "Banco de Chile",
74238
+ * "holder_name": "Clínica Ejemplo SpA",
74239
+ * "accounts": [
74240
+ * {
74241
+ * "id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4a6c",
74242
+ * "number_masked": "****4821",
74243
+ * "type": "cuenta_corriente",
74244
+ * "currency": "CLP"
74245
+ * }
74246
+ * ],
74247
+ * "movement_count": 1284,
74248
+ * "connected_at": "2026-10-01T14:03:00.000Z",
74249
+ * "last_sync_at": "2026-10-30T08:00:00.000Z",
74250
+ * "last_successful_sync_at": "2026-10-30T08:00:00.000Z",
74251
+ * "last_sync_error": null,
74252
+ * "status": "ok",
74253
+ * "next_refresh_at": "2026-10-30T09:00:00.000Z",
74254
+ * "actions": {
74255
+ * "sync_now": true,
74256
+ * "reconnect": false,
74257
+ * "disconnect": true
74258
+ * }
74259
+ * }
74260
+ * ]
74261
+ * }
74262
+ * }
74263
+ */
74264
+ "application/json": {
74265
+ data: components["schemas"]["FinanzasEmissoClaim"];
74266
+ };
74267
+ };
74268
+ };
74269
+ /** @description Validation error */
74270
+ 400: {
74271
+ headers: {
74272
+ [name: string]: unknown;
74273
+ };
74274
+ content: {
74275
+ "application/json": components["schemas"]["Error"];
74276
+ };
74277
+ };
74278
+ /** @description Unauthorized */
74279
+ 401: {
74280
+ headers: {
74281
+ [name: string]: unknown;
74282
+ };
74283
+ content: {
74284
+ "application/json": components["schemas"]["Error"];
74285
+ };
74286
+ };
74287
+ /** @description Forbidden */
74288
+ 403: {
74289
+ headers: {
74290
+ [name: string]: unknown;
74291
+ };
74292
+ content: {
74293
+ "application/json": components["schemas"]["Error"];
74294
+ };
74295
+ };
74296
+ /** @description Not found */
74297
+ 404: {
74298
+ headers: {
74299
+ [name: string]: unknown;
74300
+ };
74301
+ content: {
74302
+ "application/json": components["schemas"]["Error"];
74303
+ };
74304
+ };
74305
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
74306
+ 409: {
74307
+ headers: {
74308
+ [name: string]: unknown;
74309
+ };
74310
+ content: {
74311
+ "application/json": components["schemas"]["Error"];
74312
+ };
74313
+ };
74314
+ /** @description Rate limited */
74315
+ 429: {
74316
+ headers: {
74317
+ [name: string]: unknown;
74318
+ };
74319
+ content: {
74320
+ "application/json": components["schemas"]["Error"];
74321
+ };
74322
+ };
74323
+ };
74324
+ };
74325
+ delete?: never;
74326
+ options?: never;
74327
+ head?: never;
74328
+ patch?: never;
74329
+ trace?: never;
74330
+ };
74073
74331
  "/finanzas/connections/sync": {
74074
74332
  parameters: {
74075
74333
  query?: never;
@@ -283288,7 +283546,7 @@ interface components {
283288
283546
  BankFeedConnection: {
283289
283547
  id: string;
283290
283548
  /** @enum {string} */
283291
- provider: "fintoc" | "bci_api_market";
283549
+ provider: "fintoc" | "emisso" | "bci_api_market";
283292
283550
  institution_name: string | null;
283293
283551
  holder_name: string | null;
283294
283552
  accounts: {
@@ -283438,7 +283696,7 @@ interface components {
283438
283696
  /** @enum {string} */
283439
283697
  kind: "bank" | "mercado_pago" | "sii";
283440
283698
  /** @enum {string} */
283441
- provider: "fintoc" | "bci_api_market" | "mercadopago" | "sii";
283699
+ provider: "fintoc" | "emisso" | "bci_api_market" | "mercadopago" | "sii";
283442
283700
  institution_name: string | null;
283443
283701
  holder_name: string | null;
283444
283702
  accounts: {
@@ -283495,6 +283753,16 @@ interface components {
283495
283753
  price_clp_per_bank_month: number | null;
283496
283754
  widget_public_key: string | null;
283497
283755
  };
283756
+ /** @description Which provider a NEW direct bank link goes through. `fintoc`: open its widget (`…/fintoc/link-intent`). `emisso`: let the user pick one of `banks`, then open the page from `…/emisso/link-session`. */
283757
+ bank_aggregator: {
283758
+ /** @enum {string} */
283759
+ provider: "fintoc" | "emisso";
283760
+ configured: boolean;
283761
+ banks: {
283762
+ code: string;
283763
+ name: string;
283764
+ }[];
283765
+ };
283498
283766
  stale_after_hours: number;
283499
283767
  manual_sync_min_interval_minutes: number;
283500
283768
  };
@@ -283506,6 +283774,19 @@ interface components {
283506
283774
  exchange_token?: string;
283507
283775
  link_token?: string;
283508
283776
  };
283777
+ FinanzasEmissoLinkSession: {
283778
+ url: string;
283779
+ expires_at: string;
283780
+ bank: string;
283781
+ };
283782
+ FinanzasEmissoLinkSessionBody: {
283783
+ bank?: string;
283784
+ /** Format: uuid */
283785
+ connection_id?: string;
283786
+ };
283787
+ FinanzasEmissoClaim: {
283788
+ connections: components["schemas"]["FinanzasConnection"][];
283789
+ };
283509
283790
  FinanzasBankPullLink: {
283510
283791
  /** Format: uuid */
283511
283792
  id: string;
@@ -284163,7 +284444,7 @@ interface components {
284163
284444
  /** @enum {string} */
284164
284445
  currency: "CLP" | "USD";
284165
284446
  /** @enum {string} */
284166
- source: "fintoc" | "mercado_pago" | "manual";
284447
+ source: "fintoc" | "emisso" | "mercado_pago" | "manual";
284167
284448
  has_feed: boolean;
284168
284449
  balance_clp: number | null;
284169
284450
  balance_original: {
package/dist/index.d.ts CHANGED
@@ -73748,6 +73748,11 @@ interface paths {
73748
73748
  * "price_clp_per_bank_month": 15000,
73749
73749
  * "widget_public_key": "pk_test_ejemplo"
73750
73750
  * },
73751
+ * "bank_aggregator": {
73752
+ * "provider": "fintoc",
73753
+ * "configured": true,
73754
+ * "banks": []
73755
+ * },
73751
73756
  * "stale_after_hours": 48,
73752
73757
  * "manual_sync_min_interval_minutes": 60
73753
73758
  * }
@@ -74070,6 +74075,259 @@ interface paths {
74070
74075
  patch?: never;
74071
74076
  trace?: never;
74072
74077
  };
74078
+ "/finanzas/connections/emisso/link-session": {
74079
+ parameters: {
74080
+ query?: never;
74081
+ header?: never;
74082
+ path?: never;
74083
+ cookie?: never;
74084
+ };
74085
+ get?: never;
74086
+ put?: never;
74087
+ /**
74088
+ * Start a bank link (Emisso page)
74089
+ * @description For a workspace whose `bank_aggregator.provider` is `emisso` (see `GET /finanzas/connections`). Returns a one-use page on `connect.emisso.ai` where the account holder enters the credentials of the chosen bank; they never reach Vitrina. Show the page with its full domain and say why it is asked. When the holder is done, call `POST /finanzas/connections/emisso/claim`. With `connection_id` the page renews the credential of that existing bank connection. Reads no bank. Requires the `bank_feed_fintoc` add-on (`402 ENTITLEMENT_NOT_ACTIVE` otherwise); `503 BANK_FEED_NOT_CONFIGURED` when this deployment has no Emisso key. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
74090
+ *
74091
+ * **Connected apps:** refused with `403 CONNECTED_APP_EXCLUDED_OPERATION` and absent from the MCP catalogue, whatever write pack was granted — the «Agentes de IA» pack promises not to include this act. An API key or a personal token of the workspace holding the scope reaches it as usual.
74092
+ */
74093
+ post: {
74094
+ parameters: {
74095
+ query?: never;
74096
+ header?: {
74097
+ /** @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. */
74098
+ "Idempotency-Key"?: string;
74099
+ };
74100
+ path?: never;
74101
+ cookie?: never;
74102
+ };
74103
+ requestBody?: {
74104
+ content: {
74105
+ /**
74106
+ * @example {
74107
+ * "bank": "bch_empresas"
74108
+ * }
74109
+ */
74110
+ "application/json": components["schemas"]["FinanzasEmissoLinkSessionBody"];
74111
+ };
74112
+ };
74113
+ responses: {
74114
+ /** @description The bank-link page */
74115
+ 201: {
74116
+ headers: {
74117
+ [name: string]: unknown;
74118
+ };
74119
+ content: {
74120
+ /**
74121
+ * @example {
74122
+ * "data": {
74123
+ * "url": "https://connect.emisso.ai/c/connect_cs_ejemplo",
74124
+ * "expires_at": "2026-11-15T15:43:57.205Z",
74125
+ * "bank": "bch_empresas"
74126
+ * }
74127
+ * }
74128
+ */
74129
+ "application/json": {
74130
+ data: components["schemas"]["FinanzasEmissoLinkSession"];
74131
+ };
74132
+ };
74133
+ };
74134
+ /** @description Validation error */
74135
+ 400: {
74136
+ headers: {
74137
+ [name: string]: unknown;
74138
+ };
74139
+ content: {
74140
+ "application/json": components["schemas"]["Error"];
74141
+ };
74142
+ };
74143
+ /** @description Unauthorized */
74144
+ 401: {
74145
+ headers: {
74146
+ [name: string]: unknown;
74147
+ };
74148
+ content: {
74149
+ "application/json": components["schemas"]["Error"];
74150
+ };
74151
+ };
74152
+ /** @description Forbidden */
74153
+ 403: {
74154
+ headers: {
74155
+ [name: string]: unknown;
74156
+ };
74157
+ content: {
74158
+ "application/json": components["schemas"]["Error"];
74159
+ };
74160
+ };
74161
+ /** @description Not found */
74162
+ 404: {
74163
+ headers: {
74164
+ [name: string]: unknown;
74165
+ };
74166
+ content: {
74167
+ "application/json": components["schemas"]["Error"];
74168
+ };
74169
+ };
74170
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
74171
+ 409: {
74172
+ headers: {
74173
+ [name: string]: unknown;
74174
+ };
74175
+ content: {
74176
+ "application/json": components["schemas"]["Error"];
74177
+ };
74178
+ };
74179
+ /** @description Rate limited */
74180
+ 429: {
74181
+ headers: {
74182
+ [name: string]: unknown;
74183
+ };
74184
+ content: {
74185
+ "application/json": components["schemas"]["Error"];
74186
+ };
74187
+ };
74188
+ };
74189
+ };
74190
+ delete?: never;
74191
+ options?: never;
74192
+ head?: never;
74193
+ patch?: never;
74194
+ trace?: never;
74195
+ };
74196
+ "/finanzas/connections/emisso/claim": {
74197
+ parameters: {
74198
+ query?: never;
74199
+ header?: never;
74200
+ path?: never;
74201
+ cookie?: never;
74202
+ };
74203
+ get?: never;
74204
+ put?: never;
74205
+ /**
74206
+ * Add the banks connected on the Emisso page
74207
+ * @description Call it after the holder finishes the page from `…/emisso/link-session` (poll every few seconds while that page is open). Every bank connected for this workspace that Vitrina does not hold yet becomes a bank connection and its first read is queued; a renewed credential reactivates its connection. Idempotent: an empty `connections` means nothing new was ready. Requires the `finanzas` add-on — without it every Finanzas operation answers `402 ENTITLEMENT_NOT_ACTIVE` (`details.required = ["finanzas"]`). Requires `finanzas_admin:write`.
74208
+ *
74209
+ * **Connected apps:** refused with `403 CONNECTED_APP_EXCLUDED_OPERATION` and absent from the MCP catalogue, whatever write pack was granted — the «Agentes de IA» pack promises not to include this act. An API key or a personal token of the workspace holding the scope reaches it as usual.
74210
+ */
74211
+ post: {
74212
+ parameters: {
74213
+ query?: never;
74214
+ header?: {
74215
+ /** @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. */
74216
+ "Idempotency-Key"?: string;
74217
+ };
74218
+ path?: never;
74219
+ cookie?: never;
74220
+ };
74221
+ requestBody?: never;
74222
+ responses: {
74223
+ /** @description What was added */
74224
+ 200: {
74225
+ headers: {
74226
+ [name: string]: unknown;
74227
+ };
74228
+ content: {
74229
+ /**
74230
+ * @example {
74231
+ * "data": {
74232
+ * "connections": [
74233
+ * {
74234
+ * "id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4a5b",
74235
+ * "kind": "bank",
74236
+ * "provider": "fintoc",
74237
+ * "institution_name": "Banco de Chile",
74238
+ * "holder_name": "Clínica Ejemplo SpA",
74239
+ * "accounts": [
74240
+ * {
74241
+ * "id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4a6c",
74242
+ * "number_masked": "****4821",
74243
+ * "type": "cuenta_corriente",
74244
+ * "currency": "CLP"
74245
+ * }
74246
+ * ],
74247
+ * "movement_count": 1284,
74248
+ * "connected_at": "2026-10-01T14:03:00.000Z",
74249
+ * "last_sync_at": "2026-10-30T08:00:00.000Z",
74250
+ * "last_successful_sync_at": "2026-10-30T08:00:00.000Z",
74251
+ * "last_sync_error": null,
74252
+ * "status": "ok",
74253
+ * "next_refresh_at": "2026-10-30T09:00:00.000Z",
74254
+ * "actions": {
74255
+ * "sync_now": true,
74256
+ * "reconnect": false,
74257
+ * "disconnect": true
74258
+ * }
74259
+ * }
74260
+ * ]
74261
+ * }
74262
+ * }
74263
+ */
74264
+ "application/json": {
74265
+ data: components["schemas"]["FinanzasEmissoClaim"];
74266
+ };
74267
+ };
74268
+ };
74269
+ /** @description Validation error */
74270
+ 400: {
74271
+ headers: {
74272
+ [name: string]: unknown;
74273
+ };
74274
+ content: {
74275
+ "application/json": components["schemas"]["Error"];
74276
+ };
74277
+ };
74278
+ /** @description Unauthorized */
74279
+ 401: {
74280
+ headers: {
74281
+ [name: string]: unknown;
74282
+ };
74283
+ content: {
74284
+ "application/json": components["schemas"]["Error"];
74285
+ };
74286
+ };
74287
+ /** @description Forbidden */
74288
+ 403: {
74289
+ headers: {
74290
+ [name: string]: unknown;
74291
+ };
74292
+ content: {
74293
+ "application/json": components["schemas"]["Error"];
74294
+ };
74295
+ };
74296
+ /** @description Not found */
74297
+ 404: {
74298
+ headers: {
74299
+ [name: string]: unknown;
74300
+ };
74301
+ content: {
74302
+ "application/json": components["schemas"]["Error"];
74303
+ };
74304
+ };
74305
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
74306
+ 409: {
74307
+ headers: {
74308
+ [name: string]: unknown;
74309
+ };
74310
+ content: {
74311
+ "application/json": components["schemas"]["Error"];
74312
+ };
74313
+ };
74314
+ /** @description Rate limited */
74315
+ 429: {
74316
+ headers: {
74317
+ [name: string]: unknown;
74318
+ };
74319
+ content: {
74320
+ "application/json": components["schemas"]["Error"];
74321
+ };
74322
+ };
74323
+ };
74324
+ };
74325
+ delete?: never;
74326
+ options?: never;
74327
+ head?: never;
74328
+ patch?: never;
74329
+ trace?: never;
74330
+ };
74073
74331
  "/finanzas/connections/sync": {
74074
74332
  parameters: {
74075
74333
  query?: never;
@@ -283288,7 +283546,7 @@ interface components {
283288
283546
  BankFeedConnection: {
283289
283547
  id: string;
283290
283548
  /** @enum {string} */
283291
- provider: "fintoc" | "bci_api_market";
283549
+ provider: "fintoc" | "emisso" | "bci_api_market";
283292
283550
  institution_name: string | null;
283293
283551
  holder_name: string | null;
283294
283552
  accounts: {
@@ -283438,7 +283696,7 @@ interface components {
283438
283696
  /** @enum {string} */
283439
283697
  kind: "bank" | "mercado_pago" | "sii";
283440
283698
  /** @enum {string} */
283441
- provider: "fintoc" | "bci_api_market" | "mercadopago" | "sii";
283699
+ provider: "fintoc" | "emisso" | "bci_api_market" | "mercadopago" | "sii";
283442
283700
  institution_name: string | null;
283443
283701
  holder_name: string | null;
283444
283702
  accounts: {
@@ -283495,6 +283753,16 @@ interface components {
283495
283753
  price_clp_per_bank_month: number | null;
283496
283754
  widget_public_key: string | null;
283497
283755
  };
283756
+ /** @description Which provider a NEW direct bank link goes through. `fintoc`: open its widget (`…/fintoc/link-intent`). `emisso`: let the user pick one of `banks`, then open the page from `…/emisso/link-session`. */
283757
+ bank_aggregator: {
283758
+ /** @enum {string} */
283759
+ provider: "fintoc" | "emisso";
283760
+ configured: boolean;
283761
+ banks: {
283762
+ code: string;
283763
+ name: string;
283764
+ }[];
283765
+ };
283498
283766
  stale_after_hours: number;
283499
283767
  manual_sync_min_interval_minutes: number;
283500
283768
  };
@@ -283506,6 +283774,19 @@ interface components {
283506
283774
  exchange_token?: string;
283507
283775
  link_token?: string;
283508
283776
  };
283777
+ FinanzasEmissoLinkSession: {
283778
+ url: string;
283779
+ expires_at: string;
283780
+ bank: string;
283781
+ };
283782
+ FinanzasEmissoLinkSessionBody: {
283783
+ bank?: string;
283784
+ /** Format: uuid */
283785
+ connection_id?: string;
283786
+ };
283787
+ FinanzasEmissoClaim: {
283788
+ connections: components["schemas"]["FinanzasConnection"][];
283789
+ };
283509
283790
  FinanzasBankPullLink: {
283510
283791
  /** Format: uuid */
283511
283792
  id: string;
@@ -284163,7 +284444,7 @@ interface components {
284163
284444
  /** @enum {string} */
284164
284445
  currency: "CLP" | "USD";
284165
284446
  /** @enum {string} */
284166
- source: "fintoc" | "mercado_pago" | "manual";
284447
+ source: "fintoc" | "emisso" | "mercado_pago" | "manual";
284167
284448
  has_feed: boolean;
284168
284449
  balance_clp: number | null;
284169
284450
  balance_original: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.40.1",
3
+ "version": "17.41.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",