@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
@@ -18697,7 +18697,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18697
18697
  var import_svix = require("svix");
18698
18698
 
18699
18699
  // package.json
18700
- var version = "3.10.0";
18700
+ var version = "3.11.0";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -18884,6 +18884,68 @@ function createBankAccountsResource(instanceId, client) {
18884
18884
  };
18885
18885
  }
18886
18886
 
18887
+ // src/resources/customers/index.ts
18888
+ function createCustomersResource(instanceId, client) {
18889
+ return {
18890
+ list(params) {
18891
+ const wireParams = params ? Object.fromEntries(
18892
+ Object.entries(params).map(([k2, v2]) => {
18893
+ if (k2 === "customer_id") return ["receiver_id", v2];
18894
+ if (k2 === "customer_name") return ["receiver_name", v2];
18895
+ return [k2, v2];
18896
+ })
18897
+ ) : void 0;
18898
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
18899
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
18900
+ },
18901
+ createIndividualWithStandardKYC(data) {
18902
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18903
+ kyc_type: "standard",
18904
+ type: "individual"
18905
+ }, data));
18906
+ },
18907
+ createIndividualWithEnhancedKYC(data) {
18908
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18909
+ kyc_type: "enhanced",
18910
+ type: "individual"
18911
+ }, data));
18912
+ },
18913
+ createBusinessWithStandardKYB(data) {
18914
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18915
+ kyc_type: "standard",
18916
+ type: "business"
18917
+ }, data));
18918
+ },
18919
+ get(customer_id) {
18920
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
18921
+ },
18922
+ update(_a3) {
18923
+ var _b = _a3, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
18924
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
18925
+ },
18926
+ delete(customer_id) {
18927
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
18928
+ },
18929
+ getLimits(customer_id) {
18930
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
18931
+ },
18932
+ getLimitIncreaseRequests(customer_id) {
18933
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
18934
+ },
18935
+ requestLimitIncrease(_c) {
18936
+ var _d = _c, {
18937
+ customer_id
18938
+ } = _d, data = __objRest(_d, [
18939
+ "customer_id"
18940
+ ]);
18941
+ return client.post(
18942
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
18943
+ data
18944
+ );
18945
+ }
18946
+ };
18947
+ }
18948
+
18887
18949
  // src/resources/fees/index.ts
18888
18950
  function createFeesResource(instanceId, client) {
18889
18951
  return {
@@ -19033,44 +19095,54 @@ function createQuotesResource(instanceId, client) {
19033
19095
  // src/resources/receivers/index.ts
19034
19096
  function createReceiversResource(instanceId, client) {
19035
19097
  return {
19098
+ /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19036
19099
  list(params) {
19037
19100
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
19038
19101
  return client.get(`/instances/${instanceId}/receivers${queryParams}`);
19039
19102
  },
19103
+ /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19040
19104
  createIndividualWithStandardKYC(data) {
19041
19105
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19042
19106
  kyc_type: "standard",
19043
19107
  type: "individual"
19044
19108
  }, data));
19045
19109
  },
19110
+ /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19046
19111
  createIndividualWithEnhancedKYC(data) {
19047
19112
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19048
19113
  kyc_type: "enhanced",
19049
19114
  type: "individual"
19050
19115
  }, data));
19051
19116
  },
19117
+ /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19052
19118
  createBusinessWithStandardKYB(data) {
19053
19119
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19054
19120
  kyc_type: "standard",
19055
19121
  type: "business"
19056
19122
  }, data));
19057
19123
  },
19124
+ /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19058
19125
  get(receiver_id) {
19059
19126
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
19060
19127
  },
19128
+ /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19061
19129
  update(_a3) {
19062
19130
  var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
19063
19131
  return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
19064
19132
  },
19133
+ /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19065
19134
  delete(receiver_id) {
19066
19135
  return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
19067
19136
  },
19137
+ /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19068
19138
  getLimits(receiver_id) {
19069
19139
  return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
19070
19140
  },
19141
+ /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19071
19142
  getLimitIncreaseRequests(receiver_id) {
19072
19143
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
19073
19144
  },
19145
+ /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19074
19146
  requestLimitIncrease(_c) {
19075
19147
  var _d = _c, {
19076
19148
  receiver_id
@@ -19424,6 +19496,9 @@ var BlindPay = class {
19424
19496
  this.transfers = createTransfersResource(this.instanceId, this.api);
19425
19497
  this.fees = createFeesResource(this.instanceId, this.api);
19426
19498
  this.upload = createUploadResource(this.baseUrl, this.headers);
19499
+ this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
19500
+ bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19501
+ });
19427
19502
  this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
19428
19503
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19429
19504
  });
@@ -7,23 +7,24 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-7PWF4J3Z.mjs";
10
+ } from "../../chunk-IM2L5L4B.mjs";
11
11
  import "../../chunk-FG25JHDX.mjs";
12
12
  import "../../chunk-KMU6V4LW.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
15
+ import "../../chunk-Z6EYX4D3.mjs";
15
16
  import "../../chunk-ISHZTBAN.mjs";
16
17
  import "../../chunk-UDRMLZWT.mjs";
17
18
  import "../../chunk-LEPGLH7Q.mjs";
19
+ import "../../chunk-VGU72ZNI.mjs";
18
20
  import "../../chunk-E7M4CJKR.mjs";
19
- import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
- import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-Z6EYX4D3.mjs";
22
+ import "../../chunk-NAGY6BLL.mjs";
23
+ import "../../chunk-SLKVEQUY.mjs";
23
24
  import "../../chunk-ALHMJWQN.mjs";
24
25
  import "../../chunk-KYOUR4KX.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
- import "../../chunk-VGU72ZNI.mjs";
27
+ import "../../chunk-F5Z45GCA.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
29
  import "../../chunk-WE73MTQL.mjs";
29
30
  import "../../chunk-N4F3FBNB.mjs";
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.mjs';
2
- import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CGeWvXXq.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-DYqrodZr.mjs';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  id: string;
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.js';
2
- import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CGeWvXXq.js';
2
+ import { I as InternalApiClient } from '../../api-client-5N_7-zad.js';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  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.10.0";
18705
+ var version = "3.11.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18889,6 +18889,68 @@ function createBankAccountsResource(instanceId, client) {
18889
18889
  };
18890
18890
  }
18891
18891
 
18892
+ // src/resources/customers/index.ts
18893
+ function createCustomersResource(instanceId, client) {
18894
+ return {
18895
+ list(params) {
18896
+ const wireParams = params ? Object.fromEntries(
18897
+ Object.entries(params).map(([k2, v2]) => {
18898
+ if (k2 === "customer_id") return ["receiver_id", v2];
18899
+ if (k2 === "customer_name") return ["receiver_name", v2];
18900
+ return [k2, v2];
18901
+ })
18902
+ ) : void 0;
18903
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
18904
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
18905
+ },
18906
+ createIndividualWithStandardKYC(data) {
18907
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18908
+ kyc_type: "standard",
18909
+ type: "individual"
18910
+ }, data));
18911
+ },
18912
+ createIndividualWithEnhancedKYC(data) {
18913
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18914
+ kyc_type: "enhanced",
18915
+ type: "individual"
18916
+ }, data));
18917
+ },
18918
+ createBusinessWithStandardKYB(data) {
18919
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18920
+ kyc_type: "standard",
18921
+ type: "business"
18922
+ }, data));
18923
+ },
18924
+ get(customer_id) {
18925
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
18926
+ },
18927
+ update(_a3) {
18928
+ var _b = _a3, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
18929
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
18930
+ },
18931
+ delete(customer_id) {
18932
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
18933
+ },
18934
+ getLimits(customer_id) {
18935
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
18936
+ },
18937
+ getLimitIncreaseRequests(customer_id) {
18938
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
18939
+ },
18940
+ requestLimitIncrease(_c) {
18941
+ var _d = _c, {
18942
+ customer_id
18943
+ } = _d, data = __objRest(_d, [
18944
+ "customer_id"
18945
+ ]);
18946
+ return client.post(
18947
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
18948
+ data
18949
+ );
18950
+ }
18951
+ };
18952
+ }
18953
+
18892
18954
  // src/resources/fees/index.ts
18893
18955
  function createFeesResource(instanceId, client) {
18894
18956
  return {
@@ -19038,44 +19100,54 @@ function createQuotesResource(instanceId, client) {
19038
19100
  // src/resources/receivers/index.ts
19039
19101
  function createReceiversResource(instanceId, client) {
19040
19102
  return {
19103
+ /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19041
19104
  list(params) {
19042
19105
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
19043
19106
  return client.get(`/instances/${instanceId}/receivers${queryParams}`);
19044
19107
  },
19108
+ /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19045
19109
  createIndividualWithStandardKYC(data) {
19046
19110
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19047
19111
  kyc_type: "standard",
19048
19112
  type: "individual"
19049
19113
  }, data));
19050
19114
  },
19115
+ /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19051
19116
  createIndividualWithEnhancedKYC(data) {
19052
19117
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19053
19118
  kyc_type: "enhanced",
19054
19119
  type: "individual"
19055
19120
  }, data));
19056
19121
  },
19122
+ /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19057
19123
  createBusinessWithStandardKYB(data) {
19058
19124
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19059
19125
  kyc_type: "standard",
19060
19126
  type: "business"
19061
19127
  }, data));
19062
19128
  },
19129
+ /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19063
19130
  get(receiver_id) {
19064
19131
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
19065
19132
  },
19133
+ /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19066
19134
  update(_a3) {
19067
19135
  var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
19068
19136
  return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
19069
19137
  },
19138
+ /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19070
19139
  delete(receiver_id) {
19071
19140
  return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
19072
19141
  },
19142
+ /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19073
19143
  getLimits(receiver_id) {
19074
19144
  return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
19075
19145
  },
19146
+ /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19076
19147
  getLimitIncreaseRequests(receiver_id) {
19077
19148
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
19078
19149
  },
19150
+ /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19079
19151
  requestLimitIncrease(_c) {
19080
19152
  var _d = _c, {
19081
19153
  receiver_id
@@ -19429,6 +19501,9 @@ var BlindPay = class {
19429
19501
  this.transfers = createTransfersResource(this.instanceId, this.api);
19430
19502
  this.fees = createFeesResource(this.instanceId, this.api);
19431
19503
  this.upload = createUploadResource(this.baseUrl, this.headers);
19504
+ this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
19505
+ bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19506
+ });
19432
19507
  this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
19433
19508
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19434
19509
  });
@@ -8,23 +8,24 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-7PWF4J3Z.mjs";
11
+ } from "../../chunk-IM2L5L4B.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
15
  import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-Z6EYX4D3.mjs";
16
17
  import "../../chunk-ISHZTBAN.mjs";
17
18
  import "../../chunk-UDRMLZWT.mjs";
18
19
  import "../../chunk-LEPGLH7Q.mjs";
20
+ import "../../chunk-VGU72ZNI.mjs";
19
21
  import "../../chunk-E7M4CJKR.mjs";
20
- import "../../chunk-F5Z45GCA.mjs";
21
22
  import "../../chunk-TBTA7A2P.mjs";
22
- import "../../chunk-YIZJM2GU.mjs";
23
- import "../../chunk-Z6EYX4D3.mjs";
23
+ import "../../chunk-NAGY6BLL.mjs";
24
+ import "../../chunk-SLKVEQUY.mjs";
24
25
  import "../../chunk-ALHMJWQN.mjs";
25
26
  import "../../chunk-KYOUR4KX.mjs";
26
27
  import "../../chunk-RC5NN5UF.mjs";
27
- import "../../chunk-VGU72ZNI.mjs";
28
+ import "../../chunk-F5Z45GCA.mjs";
28
29
  import "../../chunk-LRHWT4JU.mjs";
29
30
  import "../../chunk-WE73MTQL.mjs";
30
31
  import "../../chunk-N4F3FBNB.mjs";
@@ -1,5 +1,5 @@
1
- import { R as Rail, B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.mjs';
2
- import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
1
+ import { R as Rail, B as BlindpayApiResponse } from '../../index.d-CGeWvXXq.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-DYqrodZr.mjs';
3
3
 
4
4
  type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
5
5
  type GetBankDetailsResponse = Array<{
@@ -1,5 +1,5 @@
1
- import { R as Rail, B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.js';
2
- import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
1
+ import { R as Rail, B as BlindpayApiResponse } from '../../index.d-CGeWvXXq.js';
2
+ import { I as InternalApiClient } from '../../api-client-5N_7-zad.js';
3
3
 
4
4
  type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
5
5
  type GetBankDetailsResponse = Array<{
@@ -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.10.0";
18705
+ var version = "3.11.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18889,6 +18889,68 @@ function createBankAccountsResource(instanceId, client) {
18889
18889
  };
18890
18890
  }
18891
18891
 
18892
+ // src/resources/customers/index.ts
18893
+ function createCustomersResource(instanceId, client) {
18894
+ return {
18895
+ list(params) {
18896
+ const wireParams = params ? Object.fromEntries(
18897
+ Object.entries(params).map(([k2, v2]) => {
18898
+ if (k2 === "customer_id") return ["receiver_id", v2];
18899
+ if (k2 === "customer_name") return ["receiver_name", v2];
18900
+ return [k2, v2];
18901
+ })
18902
+ ) : void 0;
18903
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
18904
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
18905
+ },
18906
+ createIndividualWithStandardKYC(data) {
18907
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18908
+ kyc_type: "standard",
18909
+ type: "individual"
18910
+ }, data));
18911
+ },
18912
+ createIndividualWithEnhancedKYC(data) {
18913
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18914
+ kyc_type: "enhanced",
18915
+ type: "individual"
18916
+ }, data));
18917
+ },
18918
+ createBusinessWithStandardKYB(data) {
18919
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
18920
+ kyc_type: "standard",
18921
+ type: "business"
18922
+ }, data));
18923
+ },
18924
+ get(customer_id) {
18925
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
18926
+ },
18927
+ update(_a3) {
18928
+ var _b = _a3, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
18929
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
18930
+ },
18931
+ delete(customer_id) {
18932
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
18933
+ },
18934
+ getLimits(customer_id) {
18935
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
18936
+ },
18937
+ getLimitIncreaseRequests(customer_id) {
18938
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
18939
+ },
18940
+ requestLimitIncrease(_c) {
18941
+ var _d = _c, {
18942
+ customer_id
18943
+ } = _d, data = __objRest(_d, [
18944
+ "customer_id"
18945
+ ]);
18946
+ return client.post(
18947
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
18948
+ data
18949
+ );
18950
+ }
18951
+ };
18952
+ }
18953
+
18892
18954
  // src/resources/fees/index.ts
18893
18955
  function createFeesResource(instanceId, client) {
18894
18956
  return {
@@ -19038,44 +19100,54 @@ function createQuotesResource(instanceId, client) {
19038
19100
  // src/resources/receivers/index.ts
19039
19101
  function createReceiversResource(instanceId, client) {
19040
19102
  return {
19103
+ /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19041
19104
  list(params) {
19042
19105
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
19043
19106
  return client.get(`/instances/${instanceId}/receivers${queryParams}`);
19044
19107
  },
19108
+ /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19045
19109
  createIndividualWithStandardKYC(data) {
19046
19110
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19047
19111
  kyc_type: "standard",
19048
19112
  type: "individual"
19049
19113
  }, data));
19050
19114
  },
19115
+ /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19051
19116
  createIndividualWithEnhancedKYC(data) {
19052
19117
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19053
19118
  kyc_type: "enhanced",
19054
19119
  type: "individual"
19055
19120
  }, data));
19056
19121
  },
19122
+ /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19057
19123
  createBusinessWithStandardKYB(data) {
19058
19124
  return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19059
19125
  kyc_type: "standard",
19060
19126
  type: "business"
19061
19127
  }, data));
19062
19128
  },
19129
+ /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19063
19130
  get(receiver_id) {
19064
19131
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
19065
19132
  },
19133
+ /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19066
19134
  update(_a3) {
19067
19135
  var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
19068
19136
  return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
19069
19137
  },
19138
+ /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19070
19139
  delete(receiver_id) {
19071
19140
  return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
19072
19141
  },
19142
+ /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19073
19143
  getLimits(receiver_id) {
19074
19144
  return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
19075
19145
  },
19146
+ /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19076
19147
  getLimitIncreaseRequests(receiver_id) {
19077
19148
  return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
19078
19149
  },
19150
+ /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19079
19151
  requestLimitIncrease(_c) {
19080
19152
  var _d = _c, {
19081
19153
  receiver_id
@@ -19429,6 +19501,9 @@ var BlindPay = class {
19429
19501
  this.transfers = createTransfersResource(this.instanceId, this.api);
19430
19502
  this.fees = createFeesResource(this.instanceId, this.api);
19431
19503
  this.upload = createUploadResource(this.baseUrl, this.headers);
19504
+ this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
19505
+ bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19506
+ });
19432
19507
  this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
19433
19508
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19434
19509
  });
@@ -8,23 +8,24 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-7PWF4J3Z.mjs";
11
+ } from "../../chunk-IM2L5L4B.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
15
  import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-Z6EYX4D3.mjs";
16
17
  import "../../chunk-ISHZTBAN.mjs";
17
18
  import "../../chunk-UDRMLZWT.mjs";
18
19
  import "../../chunk-LEPGLH7Q.mjs";
20
+ import "../../chunk-VGU72ZNI.mjs";
19
21
  import "../../chunk-E7M4CJKR.mjs";
20
- import "../../chunk-F5Z45GCA.mjs";
21
22
  import "../../chunk-TBTA7A2P.mjs";
22
- import "../../chunk-YIZJM2GU.mjs";
23
- import "../../chunk-Z6EYX4D3.mjs";
23
+ import "../../chunk-NAGY6BLL.mjs";
24
+ import "../../chunk-SLKVEQUY.mjs";
24
25
  import "../../chunk-ALHMJWQN.mjs";
25
26
  import "../../chunk-KYOUR4KX.mjs";
26
27
  import "../../chunk-RC5NN5UF.mjs";
27
- import "../../chunk-VGU72ZNI.mjs";
28
+ import "../../chunk-F5Z45GCA.mjs";
28
29
  import "../../chunk-LRHWT4JU.mjs";
29
30
  import "../../chunk-WE73MTQL.mjs";
30
31
  import "../../chunk-N4F3FBNB.mjs";
@@ -1,5 +1,5 @@
1
- import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-DK8eD9f3.mjs';
2
- import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
1
+ import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-CGeWvXXq.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-DYqrodZr.mjs';
3
3
  import { SpeiProtocol } from '../payouts/index.mjs';
4
4
 
5
5
  type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
@@ -1,5 +1,5 @@
1
- import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-DK8eD9f3.js';
2
- import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
1
+ import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-CGeWvXXq.js';
2
+ import { I as InternalApiClient } from '../../api-client-5N_7-zad.js';
3
3
  import { SpeiProtocol } from '../payouts/index.js';
4
4
 
5
5
  type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }