@blindpay/node 3.8.0 → 3.10.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.
Files changed (92) hide show
  1. package/dist/{api-client-B9lW57MD.d.ts → api-client-BWImXDBx.d.ts} +1 -1
  2. package/dist/{api-client-Ct0AsDO5.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
  3. package/dist/{chunk-57QRKKXM.mjs → chunk-7PWF4J3Z.mjs} +8 -8
  4. package/dist/{chunk-BGXC2F73.mjs → chunk-KYOUR4KX.mjs} +4 -0
  5. package/dist/{chunk-UOAM7SX3.mjs → chunk-N4F3FBNB.mjs} +20 -0
  6. package/dist/{index.d-CxmQ6ci9.d.mts → index.d-DK8eD9f3.d.mts} +5 -3
  7. package/dist/{index.d-CxmQ6ci9.d.ts → index.d-DK8eD9f3.d.ts} +5 -3
  8. package/dist/index.d.mts +5 -5
  9. package/dist/index.d.ts +5 -5
  10. package/dist/index.js +25 -1
  11. package/dist/index.mjs +8 -8
  12. package/dist/resources/api-keys/api-keys.test.js +25 -1
  13. package/dist/resources/api-keys/api-keys.test.mjs +4 -4
  14. package/dist/resources/api-keys/index.d.mts +2 -2
  15. package/dist/resources/api-keys/index.d.ts +2 -2
  16. package/dist/resources/available/available.test.js +25 -1
  17. package/dist/resources/available/available.test.mjs +4 -4
  18. package/dist/resources/available/index.d.mts +2 -2
  19. package/dist/resources/available/index.d.ts +2 -2
  20. package/dist/resources/bank-accounts/bank-accounts.test.js +63 -1
  21. package/dist/resources/bank-accounts/bank-accounts.test.mjs +42 -4
  22. package/dist/resources/bank-accounts/index.d.mts +59 -3
  23. package/dist/resources/bank-accounts/index.d.ts +59 -3
  24. package/dist/resources/bank-accounts/index.js +20 -0
  25. package/dist/resources/bank-accounts/index.mjs +1 -1
  26. package/dist/resources/fees/fees.test.js +26 -1
  27. package/dist/resources/fees/fees.test.mjs +5 -4
  28. package/dist/resources/fees/index.d.mts +3 -2
  29. package/dist/resources/fees/index.d.ts +3 -2
  30. package/dist/resources/instances/index.d.mts +10 -3
  31. package/dist/resources/instances/index.d.ts +10 -3
  32. package/dist/resources/instances/index.js +4 -0
  33. package/dist/resources/instances/index.mjs +1 -1
  34. package/dist/resources/instances/instances.test.js +25 -1
  35. package/dist/resources/instances/instances.test.mjs +4 -4
  36. package/dist/resources/partner-fees/index.d.mts +2 -2
  37. package/dist/resources/partner-fees/index.d.ts +2 -2
  38. package/dist/resources/partner-fees/partner-fees.test.js +25 -1
  39. package/dist/resources/partner-fees/partner-fees.test.mjs +4 -4
  40. package/dist/resources/payins/index.d.mts +3 -2
  41. package/dist/resources/payins/index.d.ts +3 -2
  42. package/dist/resources/payins/payins-quotes.test.js +25 -1
  43. package/dist/resources/payins/payins-quotes.test.mjs +4 -4
  44. package/dist/resources/payins/payins.test.js +25 -1
  45. package/dist/resources/payins/payins.test.mjs +4 -4
  46. package/dist/resources/payins/quotes.d.mts +2 -2
  47. package/dist/resources/payins/quotes.d.ts +2 -2
  48. package/dist/resources/payouts/index.d.mts +8 -3
  49. package/dist/resources/payouts/index.d.ts +8 -3
  50. package/dist/resources/payouts/payouts.test.js +25 -1
  51. package/dist/resources/payouts/payouts.test.mjs +4 -4
  52. package/dist/resources/quotes/index.d.mts +3 -6
  53. package/dist/resources/quotes/index.d.ts +3 -6
  54. package/dist/resources/quotes/quotes.test.js +26 -5
  55. package/dist/resources/quotes/quotes.test.mjs +5 -8
  56. package/dist/resources/receivers/index.d.mts +6 -7
  57. package/dist/resources/receivers/index.d.ts +6 -7
  58. package/dist/resources/receivers/receivers.test.js +26 -2
  59. package/dist/resources/receivers/receivers.test.mjs +5 -5
  60. package/dist/resources/terms-of-service/index.d.mts +2 -2
  61. package/dist/resources/terms-of-service/index.d.ts +2 -2
  62. package/dist/resources/terms-of-service/terms-of-service.test.js +25 -1
  63. package/dist/resources/terms-of-service/terms-of-service.test.mjs +4 -4
  64. package/dist/resources/transfers/index.d.mts +2 -2
  65. package/dist/resources/transfers/index.d.ts +2 -2
  66. package/dist/resources/transfers/transfers.test.js +25 -1
  67. package/dist/resources/transfers/transfers.test.mjs +4 -4
  68. package/dist/resources/upload/index.d.mts +1 -1
  69. package/dist/resources/upload/index.d.ts +1 -1
  70. package/dist/resources/upload/upload.test.js +25 -1
  71. package/dist/resources/upload/upload.test.mjs +4 -4
  72. package/dist/resources/virtual-accounts/index.d.mts +3 -3
  73. package/dist/resources/virtual-accounts/index.d.ts +3 -3
  74. package/dist/resources/virtual-accounts/virtual-accounts.test.js +25 -1
  75. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +4 -4
  76. package/dist/resources/wallets/blockchain.d.mts +2 -2
  77. package/dist/resources/wallets/blockchain.d.ts +2 -2
  78. package/dist/resources/wallets/blockchain.test.js +25 -1
  79. package/dist/resources/wallets/blockchain.test.mjs +4 -4
  80. package/dist/resources/wallets/custodial.d.mts +2 -2
  81. package/dist/resources/wallets/custodial.d.ts +2 -2
  82. package/dist/resources/wallets/custodial.test.js +25 -1
  83. package/dist/resources/wallets/custodial.test.mjs +4 -4
  84. package/dist/resources/wallets/offramp.d.mts +3 -3
  85. package/dist/resources/wallets/offramp.d.ts +3 -3
  86. package/dist/resources/wallets/offramp.test.js +25 -1
  87. package/dist/resources/wallets/offramp.test.mjs +4 -4
  88. package/dist/resources/webhooks/index.d.mts +3 -3
  89. package/dist/resources/webhooks/index.d.ts +3 -3
  90. package/dist/resources/webhooks/webhooks.test.js +25 -1
  91. package/dist/resources/webhooks/webhooks.test.mjs +4 -4
  92. package/package.json +1 -1
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-57QRKKXM.mjs";
11
+ } from "../../chunk-7PWF4J3Z.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
@@ -21,13 +21,13 @@ import "../../chunk-F5Z45GCA.mjs";
21
21
  import "../../chunk-TBTA7A2P.mjs";
22
22
  import "../../chunk-YIZJM2GU.mjs";
23
23
  import "../../chunk-Z6EYX4D3.mjs";
24
- import "../../chunk-UOAM7SX3.mjs";
25
- import "../../chunk-BGXC2F73.mjs";
24
+ import "../../chunk-ALHMJWQN.mjs";
25
+ import "../../chunk-KYOUR4KX.mjs";
26
26
  import "../../chunk-RC5NN5UF.mjs";
27
27
  import "../../chunk-VGU72ZNI.mjs";
28
28
  import "../../chunk-LRHWT4JU.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-ALHMJWQN.mjs";
30
+ import "../../chunk-N4F3FBNB.mjs";
31
31
  import {
32
32
  __async,
33
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
1
+ import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type BlindpayBankDetails = {
5
5
  routing_number: string;
@@ -59,6 +59,7 @@ type Payin = {
59
59
  sender_amount: number;
60
60
  receiver_amount: number;
61
61
  token: StablecoinToken;
62
+ partner_fee_id?: string | null;
62
63
  partner_fee_amount?: number | null;
63
64
  total_fee_amount?: number | null;
64
65
  commercial_quotation: number;
@@ -1,5 +1,5 @@
1
- import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
1
+ import { P as PaginationParams, T as TransactionStatus, B as BlindpayApiResponse, e as PayinTrackingTransaction, f as PayinTrackingPayment, g as PayinTrackingComplete, h as PayinTrackingPartnerFee, A as AccountClass, i as PayinPaymentMethod, S as StablecoinToken, j as Currency, k as PayerRules, N as Network, b as AchCopDocument, l as PaginationMetadata } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type BlindpayBankDetails = {
5
5
  routing_number: string;
@@ -59,6 +59,7 @@ type Payin = {
59
59
  sender_amount: number;
60
60
  receiver_amount: number;
61
61
  token: StablecoinToken;
62
+ partner_fee_id?: string | null;
62
63
  partner_fee_amount?: number | null;
63
64
  total_fee_amount?: number | null;
64
65
  commercial_quotation: number;
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "3.8.0";
18705
+ var version = "3.10.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18865,6 +18865,26 @@ function createBankAccountsResource(instanceId, client) {
18865
18865
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18866
18866
  type: "rtp"
18867
18867
  }, data));
18868
+ },
18869
+ createTed(_u) {
18870
+ var _v = _u, {
18871
+ receiver_id
18872
+ } = _v, data = __objRest(_v, [
18873
+ "receiver_id"
18874
+ ]);
18875
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18876
+ type: "ted"
18877
+ }, data));
18878
+ },
18879
+ createSepa(_w) {
18880
+ var _x = _w, {
18881
+ receiver_id
18882
+ } = _x, data = __objRest(_x, [
18883
+ "receiver_id"
18884
+ ]);
18885
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18886
+ type: "sepa"
18887
+ }, data));
18868
18888
  }
18869
18889
  };
18870
18890
  }
@@ -18899,6 +18919,10 @@ function createInstancesResource(instanceId, client) {
18899
18919
  role
18900
18920
  }) {
18901
18921
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18922
+ },
18923
+ migrateOwnership(_b) {
18924
+ var data = __objRest(_b, []);
18925
+ return client.post(`/instances/${instanceId}/ownership`, data);
18902
18926
  }
18903
18927
  };
18904
18928
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-57QRKKXM.mjs";
11
+ } from "../../chunk-7PWF4J3Z.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
@@ -21,13 +21,13 @@ import "../../chunk-F5Z45GCA.mjs";
21
21
  import "../../chunk-TBTA7A2P.mjs";
22
22
  import "../../chunk-YIZJM2GU.mjs";
23
23
  import "../../chunk-Z6EYX4D3.mjs";
24
- import "../../chunk-UOAM7SX3.mjs";
25
- import "../../chunk-BGXC2F73.mjs";
24
+ import "../../chunk-ALHMJWQN.mjs";
25
+ import "../../chunk-KYOUR4KX.mjs";
26
26
  import "../../chunk-RC5NN5UF.mjs";
27
27
  import "../../chunk-VGU72ZNI.mjs";
28
28
  import "../../chunk-LRHWT4JU.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-ALHMJWQN.mjs";
30
+ import "../../chunk-N4F3FBNB.mjs";
31
31
  import {
32
32
  __async,
33
33
  __commonJS
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "3.8.0";
18705
+ var version = "3.10.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18865,6 +18865,26 @@ function createBankAccountsResource(instanceId, client) {
18865
18865
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18866
18866
  type: "rtp"
18867
18867
  }, data));
18868
+ },
18869
+ createTed(_u) {
18870
+ var _v = _u, {
18871
+ receiver_id
18872
+ } = _v, data = __objRest(_v, [
18873
+ "receiver_id"
18874
+ ]);
18875
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18876
+ type: "ted"
18877
+ }, data));
18878
+ },
18879
+ createSepa(_w) {
18880
+ var _x = _w, {
18881
+ receiver_id
18882
+ } = _x, data = __objRest(_x, [
18883
+ "receiver_id"
18884
+ ]);
18885
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18886
+ type: "sepa"
18887
+ }, data));
18868
18888
  }
18869
18889
  };
18870
18890
  }
@@ -18899,6 +18919,10 @@ function createInstancesResource(instanceId, client) {
18899
18919
  role
18900
18920
  }) {
18901
18921
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18922
+ },
18923
+ migrateOwnership(_b) {
18924
+ var data = __objRest(_b, []);
18925
+ return client.post(`/instances/${instanceId}/ownership`, data);
18902
18926
  }
18903
18927
  };
18904
18928
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-57QRKKXM.mjs";
11
+ } from "../../chunk-7PWF4J3Z.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
@@ -21,13 +21,13 @@ import "../../chunk-F5Z45GCA.mjs";
21
21
  import "../../chunk-TBTA7A2P.mjs";
22
22
  import "../../chunk-YIZJM2GU.mjs";
23
23
  import "../../chunk-Z6EYX4D3.mjs";
24
- import "../../chunk-UOAM7SX3.mjs";
25
- import "../../chunk-BGXC2F73.mjs";
24
+ import "../../chunk-ALHMJWQN.mjs";
25
+ import "../../chunk-KYOUR4KX.mjs";
26
26
  import "../../chunk-RC5NN5UF.mjs";
27
27
  import "../../chunk-VGU72ZNI.mjs";
28
28
  import "../../chunk-LRHWT4JU.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-ALHMJWQN.mjs";
30
+ import "../../chunk-N4F3FBNB.mjs";
31
31
  import {
32
32
  __async,
33
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
1
+ import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type CreatePayinQuoteInput = {
5
5
  blockchain_wallet_id: string;
@@ -1,5 +1,5 @@
1
- import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
1
+ import { m as CurrencyType, i as PayinPaymentMethod, S as StablecoinToken, k as PayerRules, B as BlindpayApiResponse, j as Currency } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type CreatePayinQuoteInput = {
5
5
  blockchain_wallet_id: string;
@@ -1,5 +1,5 @@
1
- import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
1
+ import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
5
5
  type Payout = {
@@ -26,6 +26,7 @@ type Payout = {
26
26
  description: string;
27
27
  sender_amount: number;
28
28
  receiver_amount: number;
29
+ partner_fee_id?: string | null;
29
30
  partner_fee_amount: number;
30
31
  commercial_quotation: number;
31
32
  blindpay_quotation: number;
@@ -66,8 +67,12 @@ type Payout = {
66
67
  transfers_account?: string;
67
68
  transfers_type: "CVU" | "CBU" | "ALIAS";
68
69
  has_virtual_account: boolean;
69
- billing_fee_amount?: string | null;
70
+ billing_fee_amount?: number | null;
71
+ cpn_payment_id?: string | null;
70
72
  jpm_track_data?: Record<string, unknown> | string | null;
73
+ ted_bank_code?: string | null;
74
+ ted_branch_code?: string | null;
75
+ ted_cpf_cnpj?: string | null;
71
76
  };
72
77
  type ListPayoutsInput = PaginationParams & {
73
78
  receiver_id?: string;
@@ -1,5 +1,5 @@
1
- import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
1
+ import { P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, n as PayoutTrackingTransaction, o as PayoutTrackingPayment, p as PayoutTrackingLiquidity, q as PayoutTrackingComplete, r as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, s as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, l as PaginationMetadata } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
5
5
  type Payout = {
@@ -26,6 +26,7 @@ type Payout = {
26
26
  description: string;
27
27
  sender_amount: number;
28
28
  receiver_amount: number;
29
+ partner_fee_id?: string | null;
29
30
  partner_fee_amount: number;
30
31
  commercial_quotation: number;
31
32
  blindpay_quotation: number;
@@ -66,8 +67,12 @@ type Payout = {
66
67
  transfers_account?: string;
67
68
  transfers_type: "CVU" | "CBU" | "ALIAS";
68
69
  has_virtual_account: boolean;
69
- billing_fee_amount?: string | null;
70
+ billing_fee_amount?: number | null;
71
+ cpn_payment_id?: string | null;
70
72
  jpm_track_data?: Record<string, unknown> | string | null;
73
+ ted_bank_code?: string | null;
74
+ ted_branch_code?: string | null;
75
+ ted_cpf_cnpj?: string | null;
71
76
  };
72
77
  type ListPayoutsInput = PaginationParams & {
73
78
  receiver_id?: string;
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "3.8.0";
18705
+ var version = "3.10.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18865,6 +18865,26 @@ function createBankAccountsResource(instanceId, client) {
18865
18865
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18866
18866
  type: "rtp"
18867
18867
  }, data));
18868
+ },
18869
+ createTed(_u) {
18870
+ var _v = _u, {
18871
+ receiver_id
18872
+ } = _v, data = __objRest(_v, [
18873
+ "receiver_id"
18874
+ ]);
18875
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18876
+ type: "ted"
18877
+ }, data));
18878
+ },
18879
+ createSepa(_w) {
18880
+ var _x = _w, {
18881
+ receiver_id
18882
+ } = _x, data = __objRest(_x, [
18883
+ "receiver_id"
18884
+ ]);
18885
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18886
+ type: "sepa"
18887
+ }, data));
18868
18888
  }
18869
18889
  };
18870
18890
  }
@@ -18899,6 +18919,10 @@ function createInstancesResource(instanceId, client) {
18899
18919
  role
18900
18920
  }) {
18901
18921
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18922
+ },
18923
+ migrateOwnership(_b) {
18924
+ var data = __objRest(_b, []);
18925
+ return client.post(`/instances/${instanceId}/ownership`, data);
18902
18926
  }
18903
18927
  };
18904
18928
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-57QRKKXM.mjs";
11
+ } from "../../chunk-7PWF4J3Z.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
@@ -21,13 +21,13 @@ import "../../chunk-F5Z45GCA.mjs";
21
21
  import "../../chunk-TBTA7A2P.mjs";
22
22
  import "../../chunk-YIZJM2GU.mjs";
23
23
  import "../../chunk-Z6EYX4D3.mjs";
24
- import "../../chunk-UOAM7SX3.mjs";
25
- import "../../chunk-BGXC2F73.mjs";
24
+ import "../../chunk-ALHMJWQN.mjs";
25
+ import "../../chunk-KYOUR4KX.mjs";
26
26
  import "../../chunk-RC5NN5UF.mjs";
27
27
  import "../../chunk-VGU72ZNI.mjs";
28
28
  import "../../chunk-LRHWT4JU.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-ALHMJWQN.mjs";
30
+ import "../../chunk-N4F3FBNB.mjs";
31
31
  import {
32
32
  __async,
33
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { m as CurrencyType, N as Network, S as StablecoinToken, s as TransactionDocumentType, B as BlindpayApiResponse, j as Currency } from '../../index.d-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
1
+ import { m as CurrencyType, N as Network, S as StablecoinToken, B as BlindpayApiResponse, j as Currency } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type CreateQuoteInput = {
5
5
  bank_account_id: string;
@@ -7,12 +7,9 @@ type CreateQuoteInput = {
7
7
  cover_fees: boolean;
8
8
  request_amount: number;
9
9
  network: Network;
10
- token?: StablecoinToken | null;
10
+ token: StablecoinToken;
11
11
  description?: string | null;
12
12
  partner_fee_id?: string | null;
13
- transaction_document_file: string | null;
14
- transaction_document_id?: string | null;
15
- transaction_document_type?: TransactionDocumentType | null;
16
13
  };
17
14
  type CreateQuoteResponse = {
18
15
  id: string;
@@ -1,5 +1,5 @@
1
- import { m as CurrencyType, N as Network, S as StablecoinToken, s as TransactionDocumentType, B as BlindpayApiResponse, j as Currency } from '../../index.d-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
1
+ import { m as CurrencyType, N as Network, S as StablecoinToken, B as BlindpayApiResponse, j as Currency } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type CreateQuoteInput = {
5
5
  bank_account_id: string;
@@ -7,12 +7,9 @@ type CreateQuoteInput = {
7
7
  cover_fees: boolean;
8
8
  request_amount: number;
9
9
  network: Network;
10
- token?: StablecoinToken | null;
10
+ token: StablecoinToken;
11
11
  description?: string | null;
12
12
  partner_fee_id?: string | null;
13
- transaction_document_file: string | null;
14
- transaction_document_id?: string | null;
15
- transaction_document_type?: TransactionDocumentType | null;
16
13
  };
17
14
  type CreateQuoteResponse = {
18
15
  id: string;
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "3.8.0";
18705
+ var version = "3.10.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18865,6 +18865,26 @@ function createBankAccountsResource(instanceId, client) {
18865
18865
  return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18866
18866
  type: "rtp"
18867
18867
  }, data));
18868
+ },
18869
+ createTed(_u) {
18870
+ var _v = _u, {
18871
+ receiver_id
18872
+ } = _v, data = __objRest(_v, [
18873
+ "receiver_id"
18874
+ ]);
18875
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18876
+ type: "ted"
18877
+ }, data));
18878
+ },
18879
+ createSepa(_w) {
18880
+ var _x = _w, {
18881
+ receiver_id
18882
+ } = _x, data = __objRest(_x, [
18883
+ "receiver_id"
18884
+ ]);
18885
+ return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18886
+ type: "sepa"
18887
+ }, data));
18868
18888
  }
18869
18889
  };
18870
18890
  }
@@ -18899,6 +18919,10 @@ function createInstancesResource(instanceId, client) {
18899
18919
  role
18900
18920
  }) {
18901
18921
  return client.put(`/instances/${instanceId}/members/${memberId}`, { user_role: role });
18922
+ },
18923
+ migrateOwnership(_b) {
18924
+ var data = __objRest(_b, []);
18925
+ return client.post(`/instances/${instanceId}/ownership`, data);
18902
18926
  }
18903
18927
  };
18904
18928
  }
@@ -19549,10 +19573,7 @@ describe("Quotes", () => {
19549
19573
  token: "USDC",
19550
19574
  cover_fees: true,
19551
19575
  description: "Memo code or description, only works with USD and BRL",
19552
- partner_fee_id: "pf_000000000000",
19553
- transaction_document_file: null,
19554
- transaction_document_id: null,
19555
- transaction_document_type: "invoice"
19576
+ partner_fee_id: "pf_000000000000"
19556
19577
  });
19557
19578
  globalExpect(error).toBeNull();
19558
19579
  globalExpect(data).toEqual(mockedQuote);
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-57QRKKXM.mjs";
11
+ } from "../../chunk-7PWF4J3Z.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
@@ -21,13 +21,13 @@ import "../../chunk-F5Z45GCA.mjs";
21
21
  import "../../chunk-TBTA7A2P.mjs";
22
22
  import "../../chunk-YIZJM2GU.mjs";
23
23
  import "../../chunk-Z6EYX4D3.mjs";
24
- import "../../chunk-UOAM7SX3.mjs";
25
- import "../../chunk-BGXC2F73.mjs";
24
+ import "../../chunk-ALHMJWQN.mjs";
25
+ import "../../chunk-KYOUR4KX.mjs";
26
26
  import "../../chunk-RC5NN5UF.mjs";
27
27
  import "../../chunk-VGU72ZNI.mjs";
28
28
  import "../../chunk-LRHWT4JU.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-ALHMJWQN.mjs";
30
+ import "../../chunk-N4F3FBNB.mjs";
31
31
  import {
32
32
  __async,
33
33
  __commonJS
@@ -77,10 +77,7 @@ var require_quotes_test = __commonJS({
77
77
  token: "USDC",
78
78
  cover_fees: true,
79
79
  description: "Memo code or description, only works with USD and BRL",
80
- partner_fee_id: "pf_000000000000",
81
- transaction_document_file: null,
82
- transaction_document_id: null,
83
- transaction_document_type: "invoice"
80
+ partner_fee_id: "pf_000000000000"
84
81
  });
85
82
  globalExpect(error).toBeNull();
86
83
  globalExpect(data).toEqual(mockedQuote);
@@ -1,11 +1,10 @@
1
- import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, u as AccountPurpose, v as SourceOfFundsDocType, d as BusinessIndustry, E as EstimatedAnnualRevenue, w as SourceOfWealth, x as RecipientRelationship, y as SoleProprietorDocType, z as PurposeOfTransactions, l as PaginationMetadata, D as BusinessType } from '../../index.d-CxmQ6ci9.mjs';
2
- import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
1
+ import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, K as KycStatus, u as AccountPurpose, v as SourceOfFundsDocType, d as BusinessIndustry, E as EstimatedAnnualRevenue, w as SourceOfWealth, x as RecipientRelationship, y as SoleProprietorDocType, z as PurposeOfTransactions, l as PaginationMetadata, D as BusinessType } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type StrictOmit<T, K extends keyof T> = Omit<T, K>;
5
5
 
6
6
  type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
7
7
  type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
8
- type ReceiverKycStatus = "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
9
8
  type AmlStatus = "clear" | "hit" | "error";
10
9
  type AmlHits = {
11
10
  has_sanction_match: boolean;
@@ -53,7 +52,7 @@ type IndividualWithStandardKYC = {
53
52
  is_tos_accepted: boolean;
54
53
  type: Extract<AccountClass, "individual">;
55
54
  kyc_type: Extract<KycType, "standard">;
56
- kyc_status: string;
55
+ kyc_status: KycStatus;
57
56
  kyc_warnings: Array<{
58
57
  code: string | null;
59
58
  message: string | null;
@@ -114,7 +113,7 @@ type IndividualWithEnhancedKYC = {
114
113
  is_tos_accepted: boolean;
115
114
  type: Extract<AccountClass, "individual">;
116
115
  kyc_type: Extract<KycType, "enhanced">;
117
- kyc_status: string;
116
+ kyc_status: KycStatus;
118
117
  kyc_warnings: Array<{
119
118
  code: string | null;
120
119
  message: string | null;
@@ -179,7 +178,7 @@ type BusinessWithStandardKYB = {
179
178
  is_fbo: boolean;
180
179
  type: Extract<AccountClass, "business">;
181
180
  kyc_type: Extract<KycType, "standard">;
182
- kyc_status: string;
181
+ kyc_status: KycStatus;
183
182
  kyc_warnings: Array<{
184
183
  code: string | null;
185
184
  message: string | null;
@@ -465,4 +464,4 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
465
464
  requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
466
465
  };
467
466
 
468
- export { type AmlHits, type AmlStatus, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type FraudWarning, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversInput, type ListReceiversResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type ReceiverKycStatus, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type UpdateReceiverInput, createReceiversResource };
467
+ export { type AmlHits, type AmlStatus, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type FraudWarning, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversInput, type ListReceiversResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type UpdateReceiverInput, createReceiversResource };
@@ -1,11 +1,10 @@
1
- import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, u as AccountPurpose, v as SourceOfFundsDocType, d as BusinessIndustry, E as EstimatedAnnualRevenue, w as SourceOfWealth, x as RecipientRelationship, y as SoleProprietorDocType, z as PurposeOfTransactions, l as PaginationMetadata, D as BusinessType } from '../../index.d-CxmQ6ci9.js';
2
- import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
1
+ import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, K as KycStatus, u as AccountPurpose, v as SourceOfFundsDocType, d as BusinessIndustry, E as EstimatedAnnualRevenue, w as SourceOfWealth, x as RecipientRelationship, y as SoleProprietorDocType, z as PurposeOfTransactions, l as PaginationMetadata, D as BusinessType } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type StrictOmit<T, K extends keyof T> = Omit<T, K>;
5
5
 
6
6
  type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
7
7
  type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
8
- type ReceiverKycStatus = "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
9
8
  type AmlStatus = "clear" | "hit" | "error";
10
9
  type AmlHits = {
11
10
  has_sanction_match: boolean;
@@ -53,7 +52,7 @@ type IndividualWithStandardKYC = {
53
52
  is_tos_accepted: boolean;
54
53
  type: Extract<AccountClass, "individual">;
55
54
  kyc_type: Extract<KycType, "standard">;
56
- kyc_status: string;
55
+ kyc_status: KycStatus;
57
56
  kyc_warnings: Array<{
58
57
  code: string | null;
59
58
  message: string | null;
@@ -114,7 +113,7 @@ type IndividualWithEnhancedKYC = {
114
113
  is_tos_accepted: boolean;
115
114
  type: Extract<AccountClass, "individual">;
116
115
  kyc_type: Extract<KycType, "enhanced">;
117
- kyc_status: string;
116
+ kyc_status: KycStatus;
118
117
  kyc_warnings: Array<{
119
118
  code: string | null;
120
119
  message: string | null;
@@ -179,7 +178,7 @@ type BusinessWithStandardKYB = {
179
178
  is_fbo: boolean;
180
179
  type: Extract<AccountClass, "business">;
181
180
  kyc_type: Extract<KycType, "standard">;
182
- kyc_status: string;
181
+ kyc_status: KycStatus;
183
182
  kyc_warnings: Array<{
184
183
  code: string | null;
185
184
  message: string | null;
@@ -465,4 +464,4 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
465
464
  requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
466
465
  };
467
466
 
468
- export { type AmlHits, type AmlStatus, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type FraudWarning, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversInput, type ListReceiversResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type ReceiverKycStatus, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type UpdateReceiverInput, createReceiversResource };
467
+ export { type AmlHits, type AmlStatus, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type FraudWarning, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversInput, type ListReceiversResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type UpdateReceiverInput, createReceiversResource };