@blindpay/node 3.10.0 → 3.11.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 (100) hide show
  1. package/dist/{api-client-BWImXDBx.d.ts → api-client-5N_7-zad.d.ts} +1 -1
  2. package/dist/{api-client-L9eGwH1U.d.mts → api-client-DYqrodZr.d.mts} +1 -1
  3. package/dist/{chunk-7PWF4J3Z.mjs → chunk-IM2L5L4B.mjs} +20 -12
  4. package/dist/{chunk-YIZJM2GU.mjs → chunk-NAGY6BLL.mjs} +10 -0
  5. package/dist/chunk-SLKVEQUY.mjs +76 -0
  6. package/dist/{index.d-DK8eD9f3.d.mts → index.d-CGeWvXXq.d.mts} +1 -1
  7. package/dist/{index.d-DK8eD9f3.d.ts → index.d-CGeWvXXq.d.ts} +1 -1
  8. package/dist/index.d.mts +15 -3
  9. package/dist/index.d.ts +15 -3
  10. package/dist/index.js +78 -1
  11. package/dist/index.mjs +16 -10
  12. package/dist/resources/api-keys/api-keys.test.js +76 -1
  13. package/dist/resources/api-keys/api-keys.test.mjs +6 -5
  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 +76 -1
  17. package/dist/resources/available/available.test.mjs +6 -5
  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 +76 -1
  21. package/dist/resources/bank-accounts/bank-accounts.test.mjs +6 -5
  22. package/dist/resources/bank-accounts/index.d.mts +2 -2
  23. package/dist/resources/bank-accounts/index.d.ts +2 -2
  24. package/dist/resources/customers/customers.test.d.mts +2 -0
  25. package/dist/resources/customers/customers.test.d.ts +2 -0
  26. package/dist/resources/customers/customers.test.js +20510 -0
  27. package/dist/resources/customers/customers.test.mjs +652 -0
  28. package/dist/resources/customers/index.d.mts +466 -0
  29. package/dist/resources/customers/index.d.ts +466 -0
  30. package/dist/resources/customers/index.js +115 -0
  31. package/dist/resources/customers/index.mjs +9 -0
  32. package/dist/resources/fees/fees.test.js +76 -1
  33. package/dist/resources/fees/fees.test.mjs +6 -5
  34. package/dist/resources/fees/index.d.mts +2 -2
  35. package/dist/resources/fees/index.d.ts +2 -2
  36. package/dist/resources/instances/index.d.mts +2 -2
  37. package/dist/resources/instances/index.d.ts +2 -2
  38. package/dist/resources/instances/instances.test.js +76 -1
  39. package/dist/resources/instances/instances.test.mjs +6 -5
  40. package/dist/resources/partner-fees/index.d.mts +2 -2
  41. package/dist/resources/partner-fees/index.d.ts +2 -2
  42. package/dist/resources/partner-fees/partner-fees.test.js +76 -1
  43. package/dist/resources/partner-fees/partner-fees.test.mjs +6 -5
  44. package/dist/resources/payins/index.d.mts +2 -2
  45. package/dist/resources/payins/index.d.ts +2 -2
  46. package/dist/resources/payins/payins-quotes.test.js +76 -1
  47. package/dist/resources/payins/payins-quotes.test.mjs +6 -5
  48. package/dist/resources/payins/payins.test.js +76 -1
  49. package/dist/resources/payins/payins.test.mjs +6 -5
  50. package/dist/resources/payins/quotes.d.mts +2 -2
  51. package/dist/resources/payins/quotes.d.ts +2 -2
  52. package/dist/resources/payouts/index.d.mts +2 -2
  53. package/dist/resources/payouts/index.d.ts +2 -2
  54. package/dist/resources/payouts/payouts.test.js +76 -1
  55. package/dist/resources/payouts/payouts.test.mjs +6 -5
  56. package/dist/resources/quotes/index.d.mts +2 -2
  57. package/dist/resources/quotes/index.d.ts +2 -2
  58. package/dist/resources/quotes/quotes.test.js +76 -1
  59. package/dist/resources/quotes/quotes.test.mjs +6 -5
  60. package/dist/resources/receivers/index.d.mts +50 -4
  61. package/dist/resources/receivers/index.d.ts +50 -4
  62. package/dist/resources/receivers/index.js +10 -0
  63. package/dist/resources/receivers/index.mjs +1 -1
  64. package/dist/resources/receivers/receivers.test.js +76 -1
  65. package/dist/resources/receivers/receivers.test.mjs +6 -5
  66. package/dist/resources/terms-of-service/index.d.mts +2 -2
  67. package/dist/resources/terms-of-service/index.d.ts +2 -2
  68. package/dist/resources/terms-of-service/terms-of-service.test.js +76 -1
  69. package/dist/resources/terms-of-service/terms-of-service.test.mjs +6 -5
  70. package/dist/resources/transfers/index.d.mts +2 -2
  71. package/dist/resources/transfers/index.d.ts +2 -2
  72. package/dist/resources/transfers/transfers.test.js +76 -1
  73. package/dist/resources/transfers/transfers.test.mjs +6 -5
  74. package/dist/resources/upload/index.d.mts +1 -1
  75. package/dist/resources/upload/index.d.ts +1 -1
  76. package/dist/resources/upload/upload.test.js +76 -1
  77. package/dist/resources/upload/upload.test.mjs +6 -5
  78. package/dist/resources/virtual-accounts/index.d.mts +2 -2
  79. package/dist/resources/virtual-accounts/index.d.ts +2 -2
  80. package/dist/resources/virtual-accounts/virtual-accounts.test.js +76 -1
  81. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +6 -5
  82. package/dist/resources/wallets/blockchain.d.mts +2 -2
  83. package/dist/resources/wallets/blockchain.d.ts +2 -2
  84. package/dist/resources/wallets/blockchain.test.js +76 -1
  85. package/dist/resources/wallets/blockchain.test.mjs +6 -5
  86. package/dist/resources/wallets/custodial.d.mts +2 -2
  87. package/dist/resources/wallets/custodial.d.ts +2 -2
  88. package/dist/resources/wallets/custodial.test.js +76 -1
  89. package/dist/resources/wallets/custodial.test.mjs +6 -5
  90. package/dist/resources/wallets/offramp.d.mts +2 -2
  91. package/dist/resources/wallets/offramp.d.ts +2 -2
  92. package/dist/resources/wallets/offramp.test.js +76 -1
  93. package/dist/resources/wallets/offramp.test.mjs +6 -5
  94. package/dist/resources/webhooks/index.d.mts +2 -2
  95. package/dist/resources/webhooks/index.d.ts +2 -2
  96. package/dist/resources/webhooks/webhooks.test.js +76 -1
  97. package/dist/resources/webhooks/webhooks.test.mjs +6 -5
  98. package/dist/strict-omit-ByJhzKNC.d.mts +3 -0
  99. package/dist/strict-omit-ByJhzKNC.d.ts +3 -0
  100. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { B as BlindpayApiResponse } from './index.d-DK8eD9f3.js';
1
+ import { B as BlindpayApiResponse } from './index.d-CGeWvXXq.js';
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
- import { B as BlindpayApiResponse } from './index.d-DK8eD9f3.mjs';
1
+ import { B as BlindpayApiResponse } from './index.d-CGeWvXXq.mjs';
2
2
 
3
3
  /**
4
4
  *
@@ -14,6 +14,10 @@ import {
14
14
  createWebhookEndpointsResource,
15
15
  init_webhooks
16
16
  } from "./chunk-UC57SCKQ.mjs";
17
+ import {
18
+ createTermsOfServiceResource,
19
+ init_terms_of_service
20
+ } from "./chunk-Z6EYX4D3.mjs";
17
21
  import {
18
22
  createTransfersResource,
19
23
  init_transfers
@@ -26,14 +30,14 @@ import {
26
30
  createVirtualAccountsResource,
27
31
  init_virtual_accounts
28
32
  } from "./chunk-LEPGLH7Q.mjs";
33
+ import {
34
+ createPayinsResource,
35
+ init_payins
36
+ } from "./chunk-VGU72ZNI.mjs";
29
37
  import {
30
38
  createPayinQuotesResource,
31
39
  init_quotes
32
40
  } from "./chunk-E7M4CJKR.mjs";
33
- import {
34
- createPayoutsResource,
35
- init_payouts
36
- } from "./chunk-F5Z45GCA.mjs";
37
41
  import {
38
42
  createQuotesResource,
39
43
  init_quotes as init_quotes2
@@ -41,11 +45,11 @@ import {
41
45
  import {
42
46
  createReceiversResource,
43
47
  init_receivers
44
- } from "./chunk-YIZJM2GU.mjs";
48
+ } from "./chunk-NAGY6BLL.mjs";
45
49
  import {
46
- createTermsOfServiceResource,
47
- init_terms_of_service
48
- } from "./chunk-Z6EYX4D3.mjs";
50
+ createCustomersResource,
51
+ init_customers
52
+ } from "./chunk-SLKVEQUY.mjs";
49
53
  import {
50
54
  createFeesResource,
51
55
  init_fees
@@ -59,9 +63,9 @@ import {
59
63
  init_partner_fees
60
64
  } from "./chunk-RC5NN5UF.mjs";
61
65
  import {
62
- createPayinsResource,
63
- init_payins
64
- } from "./chunk-VGU72ZNI.mjs";
66
+ createPayoutsResource,
67
+ init_payouts
68
+ } from "./chunk-F5Z45GCA.mjs";
65
69
  import {
66
70
  createApiKeysResource,
67
71
  init_api_keys
@@ -85,7 +89,7 @@ import {
85
89
  var version;
86
90
  var init_package = __esm({
87
91
  "package.json"() {
88
- version = "3.10.0";
92
+ version = "3.11.0";
89
93
  }
90
94
  });
91
95
 
@@ -114,6 +118,7 @@ var init_client = __esm({
114
118
  init_api_keys();
115
119
  init_available();
116
120
  init_bank_accounts();
121
+ init_customers();
117
122
  init_fees();
118
123
  init_instances();
119
124
  init_partner_fees();
@@ -175,6 +180,9 @@ var init_client = __esm({
175
180
  this.transfers = createTransfersResource(this.instanceId, this.api);
176
181
  this.fees = createFeesResource(this.instanceId, this.api);
177
182
  this.upload = createUploadResource(this.baseUrl, this.headers);
183
+ this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
184
+ bankAccounts: createBankAccountsResource(this.instanceId, this.api)
185
+ });
178
186
  this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
179
187
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
180
188
  });
@@ -7,44 +7,54 @@ import {
7
7
  // src/resources/receivers/index.ts
8
8
  function createReceiversResource(instanceId, client) {
9
9
  return {
10
+ /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
10
11
  list(params) {
11
12
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
12
13
  return client.get(`/instances/${instanceId}/receivers${queryParams}`);
13
14
  },
15
+ /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
14
16
  createIndividualWithStandardKYC(data) {
15
17
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
16
18
  kyc_type: "standard",
17
19
  type: "individual"
18
20
  }, data));
19
21
  },
22
+ /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
20
23
  createIndividualWithEnhancedKYC(data) {
21
24
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
22
25
  kyc_type: "enhanced",
23
26
  type: "individual"
24
27
  }, data));
25
28
  },
29
+ /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
26
30
  createBusinessWithStandardKYB(data) {
27
31
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
28
32
  kyc_type: "standard",
29
33
  type: "business"
30
34
  }, data));
31
35
  },
36
+ /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
32
37
  get(receiver_id) {
33
38
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
34
39
  },
40
+ /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
35
41
  update(_a) {
36
42
  var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
37
43
  return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
38
44
  },
45
+ /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
39
46
  delete(receiver_id) {
40
47
  return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
41
48
  },
49
+ /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
42
50
  getLimits(receiver_id) {
43
51
  return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
44
52
  },
53
+ /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
45
54
  getLimitIncreaseRequests(receiver_id) {
46
55
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
47
56
  },
57
+ /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
48
58
  requestLimitIncrease(_c) {
49
59
  var _d = _c, {
50
60
  receiver_id
@@ -0,0 +1,76 @@
1
+ import {
2
+ __esm,
3
+ __objRest,
4
+ __spreadValues
5
+ } from "./chunk-OBKEW4AQ.mjs";
6
+
7
+ // src/resources/customers/index.ts
8
+ function createCustomersResource(instanceId, client) {
9
+ return {
10
+ list(params) {
11
+ const wireParams = params ? Object.fromEntries(
12
+ Object.entries(params).map(([k, v]) => {
13
+ if (k === "customer_id") return ["receiver_id", v];
14
+ if (k === "customer_name") return ["receiver_name", v];
15
+ return [k, v];
16
+ })
17
+ ) : void 0;
18
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
19
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
20
+ },
21
+ createIndividualWithStandardKYC(data) {
22
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
23
+ kyc_type: "standard",
24
+ type: "individual"
25
+ }, data));
26
+ },
27
+ createIndividualWithEnhancedKYC(data) {
28
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
29
+ kyc_type: "enhanced",
30
+ type: "individual"
31
+ }, data));
32
+ },
33
+ createBusinessWithStandardKYB(data) {
34
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
35
+ kyc_type: "standard",
36
+ type: "business"
37
+ }, data));
38
+ },
39
+ get(customer_id) {
40
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
41
+ },
42
+ update(_a) {
43
+ var _b = _a, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
44
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
45
+ },
46
+ delete(customer_id) {
47
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
48
+ },
49
+ getLimits(customer_id) {
50
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
51
+ },
52
+ getLimitIncreaseRequests(customer_id) {
53
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
54
+ },
55
+ requestLimitIncrease(_c) {
56
+ var _d = _c, {
57
+ customer_id
58
+ } = _d, data = __objRest(_d, [
59
+ "customer_id"
60
+ ]);
61
+ return client.post(
62
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
63
+ data
64
+ );
65
+ }
66
+ };
67
+ }
68
+ var init_customers = __esm({
69
+ "src/resources/customers/index.ts"() {
70
+ }
71
+ });
72
+
73
+ export {
74
+ createCustomersResource,
75
+ init_customers
76
+ };
@@ -653,4 +653,4 @@ type PayoutTrackingPartnerFee = {
653
653
 
654
654
  type KycStatus = "awaiting_contract" | "compliance_request" | "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
655
655
 
656
- export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
656
+ export type { AccountClass as A, BlindpayApiResponse as B, Country as C, TrackingStatus as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, SourceOfFundsDocType as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, AccountPurpose as e, SourceOfWealth as f, RecipientRelationship as g, SoleProprietorDocType as h, PurposeOfTransactions as i, PaginationMetadata as j, BusinessType as k, PayoutTrackingTransaction as l, PayoutTrackingPayment as m, PayoutTrackingLiquidity as n, PayoutTrackingComplete as o, PayoutTrackingPartnerFee as p, StablecoinToken as q, Currency as r, TransactionDocumentType as s, PayinTrackingTransaction as t, PayinTrackingPayment as u, PayinTrackingComplete as v, PayinTrackingPartnerFee as w, PayinPaymentMethod as x, PayerRules as y, CurrencyType as z };
@@ -653,4 +653,4 @@ type PayoutTrackingPartnerFee = {
653
653
 
654
654
  type KycStatus = "awaiting_contract" | "compliance_request" | "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
655
655
 
656
- export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
656
+ export type { AccountClass as A, BlindpayApiResponse as B, Country as C, TrackingStatus as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, SourceOfFundsDocType as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, AccountPurpose as e, SourceOfWealth as f, RecipientRelationship as g, SoleProprietorDocType as h, PurposeOfTransactions as i, PaginationMetadata as j, BusinessType as k, PayoutTrackingTransaction as l, PayoutTrackingPayment as m, PayoutTrackingLiquidity as n, PayoutTrackingComplete as o, PayoutTrackingPartnerFee as p, StablecoinToken as q, Currency as r, TransactionDocumentType as s, PayinTrackingTransaction as t, PayinTrackingPayment as u, PayinTrackingComplete as v, PayinTrackingPartnerFee as w, PayinPaymentMethod as x, PayerRules as y, CurrencyType as z };
package/dist/index.d.mts CHANGED
@@ -4,6 +4,8 @@ import { createAvailableResource } from './resources/available/index.mjs';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetNaicsCodesResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.mjs';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.mjs';
6
6
  export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSepaInput, CreateSepaResponse, CreateSpeiInput, CreateSpeiResponse, CreateTedInput, CreateTedResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.mjs';
7
+ import { createCustomersResource } from './resources/customers/index.mjs';
8
+ export { CreateCustomerBusinessWithStandardKYBInput, CreateCustomerBusinessWithStandardKYBResponse, CreateCustomerIndividualWithEnhancedKYCInput, CreateCustomerIndividualWithEnhancedKYCResponse, CreateCustomerIndividualWithStandardKYCInput, CreateCustomerIndividualWithStandardKYCResponse, CustomerAmlHits, CustomerAmlStatus, CustomerBusinessWithStandardKYB, CustomerFraudWarning, CustomerIdentificationDocument, CustomerIndividualWithEnhancedKYC, CustomerIndividualWithStandardKYC, CustomerKycType, CustomerLimitIncreaseRequestStatus, CustomerLimitIncreaseRequestSupportingDocumentType, CustomerOwner, CustomerOwnerRole, CustomerOwnerTaxType, CustomerProofOfAddressDocType, DeleteCustomerInput, GetCustomerInput, GetCustomerLimitIncreaseRequestsInput, GetCustomerLimitIncreaseRequestsResponse, GetCustomerLimitsInput, GetCustomerLimitsResponse, GetCustomerResponse, ListCustomersInput, ListCustomersResponse, RequestCustomerLimitIncreaseInput, RequestCustomerLimitIncreaseResponse, UpdateCustomerInput } from './resources/customers/index.mjs';
7
9
  import { createFeesResource } from './resources/fees/index.mjs';
8
10
  export { FeeOptions, GetFeesResponse } from './resources/fees/index.mjs';
9
11
  import { createInstancesResource } from './resources/instances/index.mjs';
@@ -35,8 +37,9 @@ import { createOfframpWalletsResource } from './resources/wallets/offramp.mjs';
35
37
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet, OfframpWalletNetwork } from './resources/wallets/offramp.mjs';
36
38
  import { createWebhookEndpointsResource } from './resources/webhooks/index.mjs';
37
39
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.mjs';
38
- import './index.d-DK8eD9f3.mjs';
39
- import './api-client-L9eGwH1U.mjs';
40
+ import './index.d-CGeWvXXq.mjs';
41
+ import './api-client-DYqrodZr.mjs';
42
+ import './strict-omit-ByJhzKNC.mjs';
40
43
 
41
44
  declare class BlindPay {
42
45
  private readonly baseUrl;
@@ -55,6 +58,15 @@ declare class BlindPay {
55
58
  readonly fees: ReturnType<typeof createFeesResource>;
56
59
  readonly upload: ReturnType<typeof createUploadResource>;
57
60
  readonly virtualAccounts: ReturnType<typeof createVirtualAccountsResource>;
61
+ readonly customers: ReturnType<typeof createCustomersResource> & {
62
+ bankAccounts: ReturnType<typeof createBankAccountsResource>;
63
+ };
64
+ /**
65
+ * @deprecated Use `customers` instead. The `/receivers` API surface is
66
+ * being renamed to `/customers` and will be removed in v4.0.0. See the
67
+ * migration changelog for details:
68
+ * https://www.blindpay.com/changelog/2026-06-04-customers-rename
69
+ */
58
70
  readonly receivers: ReturnType<typeof createReceiversResource> & {
59
71
  bankAccounts: ReturnType<typeof createBankAccountsResource>;
60
72
  };
@@ -97,4 +109,4 @@ declare class BlindPay {
97
109
  }): boolean;
98
110
  }
99
111
 
100
- export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createReceiversResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
112
+ export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createCustomersResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createReceiversResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,8 @@ import { createAvailableResource } from './resources/available/index.js';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetNaicsCodesResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.js';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.js';
6
6
  export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSepaInput, CreateSepaResponse, CreateSpeiInput, CreateSpeiResponse, CreateTedInput, CreateTedResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.js';
7
+ import { createCustomersResource } from './resources/customers/index.js';
8
+ export { CreateCustomerBusinessWithStandardKYBInput, CreateCustomerBusinessWithStandardKYBResponse, CreateCustomerIndividualWithEnhancedKYCInput, CreateCustomerIndividualWithEnhancedKYCResponse, CreateCustomerIndividualWithStandardKYCInput, CreateCustomerIndividualWithStandardKYCResponse, CustomerAmlHits, CustomerAmlStatus, CustomerBusinessWithStandardKYB, CustomerFraudWarning, CustomerIdentificationDocument, CustomerIndividualWithEnhancedKYC, CustomerIndividualWithStandardKYC, CustomerKycType, CustomerLimitIncreaseRequestStatus, CustomerLimitIncreaseRequestSupportingDocumentType, CustomerOwner, CustomerOwnerRole, CustomerOwnerTaxType, CustomerProofOfAddressDocType, DeleteCustomerInput, GetCustomerInput, GetCustomerLimitIncreaseRequestsInput, GetCustomerLimitIncreaseRequestsResponse, GetCustomerLimitsInput, GetCustomerLimitsResponse, GetCustomerResponse, ListCustomersInput, ListCustomersResponse, RequestCustomerLimitIncreaseInput, RequestCustomerLimitIncreaseResponse, UpdateCustomerInput } from './resources/customers/index.js';
7
9
  import { createFeesResource } from './resources/fees/index.js';
8
10
  export { FeeOptions, GetFeesResponse } from './resources/fees/index.js';
9
11
  import { createInstancesResource } from './resources/instances/index.js';
@@ -35,8 +37,9 @@ import { createOfframpWalletsResource } from './resources/wallets/offramp.js';
35
37
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet, OfframpWalletNetwork } from './resources/wallets/offramp.js';
36
38
  import { createWebhookEndpointsResource } from './resources/webhooks/index.js';
37
39
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.js';
38
- import './index.d-DK8eD9f3.js';
39
- import './api-client-BWImXDBx.js';
40
+ import './index.d-CGeWvXXq.js';
41
+ import './api-client-5N_7-zad.js';
42
+ import './strict-omit-ByJhzKNC.js';
40
43
 
41
44
  declare class BlindPay {
42
45
  private readonly baseUrl;
@@ -55,6 +58,15 @@ declare class BlindPay {
55
58
  readonly fees: ReturnType<typeof createFeesResource>;
56
59
  readonly upload: ReturnType<typeof createUploadResource>;
57
60
  readonly virtualAccounts: ReturnType<typeof createVirtualAccountsResource>;
61
+ readonly customers: ReturnType<typeof createCustomersResource> & {
62
+ bankAccounts: ReturnType<typeof createBankAccountsResource>;
63
+ };
64
+ /**
65
+ * @deprecated Use `customers` instead. The `/receivers` API surface is
66
+ * being renamed to `/customers` and will be removed in v4.0.0. See the
67
+ * migration changelog for details:
68
+ * https://www.blindpay.com/changelog/2026-06-04-customers-rename
69
+ */
58
70
  readonly receivers: ReturnType<typeof createReceiversResource> & {
59
71
  bankAccounts: ReturnType<typeof createBankAccountsResource>;
60
72
  };
@@ -97,4 +109,4 @@ declare class BlindPay {
97
109
  }): boolean;
98
110
  }
99
111
 
100
- export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createReceiversResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
112
+ export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createCustomersResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createReceiversResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
package/dist/index.js CHANGED
@@ -75,6 +75,7 @@ __export(index_exports, {
75
75
  createBankAccountsResource: () => createBankAccountsResource,
76
76
  createBlockchainWalletsResource: () => createBlockchainWalletsResource,
77
77
  createCustodialWalletsResource: () => createCustodialWalletsResource,
78
+ createCustomersResource: () => createCustomersResource,
78
79
  createFeesResource: () => createFeesResource,
79
80
  createInstancesResource: () => createInstancesResource,
80
81
  createOfframpWalletsResource: () => createOfframpWalletsResource,
@@ -95,7 +96,7 @@ module.exports = __toCommonJS(index_exports);
95
96
  var import_svix = require("svix");
96
97
 
97
98
  // package.json
98
- var version = "3.10.0";
99
+ var version = "3.11.0";
99
100
 
100
101
  // src/internal/blindpay-error.ts
101
102
  var BlindPayError = class extends Error {
@@ -282,6 +283,68 @@ function createBankAccountsResource(instanceId, client) {
282
283
  };
283
284
  }
284
285
 
286
+ // src/resources/customers/index.ts
287
+ function createCustomersResource(instanceId, client) {
288
+ return {
289
+ list(params) {
290
+ const wireParams = params ? Object.fromEntries(
291
+ Object.entries(params).map(([k, v]) => {
292
+ if (k === "customer_id") return ["receiver_id", v];
293
+ if (k === "customer_name") return ["receiver_name", v];
294
+ return [k, v];
295
+ })
296
+ ) : void 0;
297
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
298
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
299
+ },
300
+ createIndividualWithStandardKYC(data) {
301
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
302
+ kyc_type: "standard",
303
+ type: "individual"
304
+ }, data));
305
+ },
306
+ createIndividualWithEnhancedKYC(data) {
307
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
308
+ kyc_type: "enhanced",
309
+ type: "individual"
310
+ }, data));
311
+ },
312
+ createBusinessWithStandardKYB(data) {
313
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
314
+ kyc_type: "standard",
315
+ type: "business"
316
+ }, data));
317
+ },
318
+ get(customer_id) {
319
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
320
+ },
321
+ update(_a) {
322
+ var _b = _a, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
323
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
324
+ },
325
+ delete(customer_id) {
326
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
327
+ },
328
+ getLimits(customer_id) {
329
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
330
+ },
331
+ getLimitIncreaseRequests(customer_id) {
332
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
333
+ },
334
+ requestLimitIncrease(_c) {
335
+ var _d = _c, {
336
+ customer_id
337
+ } = _d, data = __objRest(_d, [
338
+ "customer_id"
339
+ ]);
340
+ return client.post(
341
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
342
+ data
343
+ );
344
+ }
345
+ };
346
+ }
347
+
285
348
  // src/resources/fees/index.ts
286
349
  function createFeesResource(instanceId, client) {
287
350
  return {
@@ -431,44 +494,54 @@ function createQuotesResource(instanceId, client) {
431
494
  // src/resources/receivers/index.ts
432
495
  function createReceiversResource(instanceId, client) {
433
496
  return {
497
+ /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
434
498
  list(params) {
435
499
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
436
500
  return client.get(`/instances/${instanceId}/receivers${queryParams}`);
437
501
  },
502
+ /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
438
503
  createIndividualWithStandardKYC(data) {
439
504
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
440
505
  kyc_type: "standard",
441
506
  type: "individual"
442
507
  }, data));
443
508
  },
509
+ /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
444
510
  createIndividualWithEnhancedKYC(data) {
445
511
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
446
512
  kyc_type: "enhanced",
447
513
  type: "individual"
448
514
  }, data));
449
515
  },
516
+ /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
450
517
  createBusinessWithStandardKYB(data) {
451
518
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
452
519
  kyc_type: "standard",
453
520
  type: "business"
454
521
  }, data));
455
522
  },
523
+ /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
456
524
  get(receiver_id) {
457
525
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
458
526
  },
527
+ /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
459
528
  update(_a) {
460
529
  var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
461
530
  return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
462
531
  },
532
+ /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
463
533
  delete(receiver_id) {
464
534
  return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
465
535
  },
536
+ /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
466
537
  getLimits(receiver_id) {
467
538
  return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
468
539
  },
540
+ /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
469
541
  getLimitIncreaseRequests(receiver_id) {
470
542
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
471
543
  },
544
+ /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
472
545
  requestLimitIncrease(_c) {
473
546
  var _d = _c, {
474
547
  receiver_id
@@ -822,6 +895,9 @@ var BlindPay = class {
822
895
  this.transfers = createTransfersResource(this.instanceId, this.api);
823
896
  this.fees = createFeesResource(this.instanceId, this.api);
824
897
  this.upload = createUploadResource(this.baseUrl, this.headers);
898
+ this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
899
+ bankAccounts: createBankAccountsResource(this.instanceId, this.api)
900
+ });
825
901
  this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
826
902
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
827
903
  });
@@ -933,6 +1009,7 @@ var BlindPay = class {
933
1009
  createBankAccountsResource,
934
1010
  createBlockchainWalletsResource,
935
1011
  createCustodialWalletsResource,
1012
+ createCustomersResource,
936
1013
  createFeesResource,
937
1014
  createInstancesResource,
938
1015
  createOfframpWalletsResource,
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlindPay,
3
3
  init_client
4
- } from "./chunk-7PWF4J3Z.mjs";
4
+ } from "./chunk-IM2L5L4B.mjs";
5
5
  import {
6
6
  createBlockchainWalletsResource,
7
7
  init_blockchain
@@ -18,6 +18,7 @@ import {
18
18
  createWebhookEndpointsResource,
19
19
  init_webhooks
20
20
  } from "./chunk-UC57SCKQ.mjs";
21
+ import "./chunk-Z6EYX4D3.mjs";
21
22
  import {
22
23
  createTransfersResource,
23
24
  init_transfers
@@ -30,14 +31,14 @@ import {
30
31
  createVirtualAccountsResource,
31
32
  init_virtual_accounts
32
33
  } from "./chunk-LEPGLH7Q.mjs";
34
+ import {
35
+ createPayinsResource,
36
+ init_payins
37
+ } from "./chunk-VGU72ZNI.mjs";
33
38
  import {
34
39
  createPayinQuotesResource,
35
40
  init_quotes
36
41
  } from "./chunk-E7M4CJKR.mjs";
37
- import {
38
- createPayoutsResource,
39
- init_payouts
40
- } from "./chunk-F5Z45GCA.mjs";
41
42
  import {
42
43
  createQuotesResource,
43
44
  init_quotes as init_quotes2
@@ -45,8 +46,11 @@ import {
45
46
  import {
46
47
  createReceiversResource,
47
48
  init_receivers
48
- } from "./chunk-YIZJM2GU.mjs";
49
- import "./chunk-Z6EYX4D3.mjs";
49
+ } from "./chunk-NAGY6BLL.mjs";
50
+ import {
51
+ createCustomersResource,
52
+ init_customers
53
+ } from "./chunk-SLKVEQUY.mjs";
50
54
  import {
51
55
  createFeesResource,
52
56
  init_fees
@@ -60,9 +64,9 @@ import {
60
64
  init_partner_fees
61
65
  } from "./chunk-RC5NN5UF.mjs";
62
66
  import {
63
- createPayinsResource,
64
- init_payins
65
- } from "./chunk-VGU72ZNI.mjs";
67
+ createPayoutsResource,
68
+ init_payouts
69
+ } from "./chunk-F5Z45GCA.mjs";
66
70
  import {
67
71
  createApiKeysResource,
68
72
  init_api_keys
@@ -82,6 +86,7 @@ init_client();
82
86
  init_api_keys();
83
87
  init_available();
84
88
  init_bank_accounts();
89
+ init_customers();
85
90
  init_fees();
86
91
  init_instances();
87
92
  init_partner_fees();
@@ -104,6 +109,7 @@ export {
104
109
  createBankAccountsResource,
105
110
  createBlockchainWalletsResource,
106
111
  createCustodialWalletsResource,
112
+ createCustomersResource,
107
113
  createFeesResource,
108
114
  createInstancesResource,
109
115
  createOfframpWalletsResource,