@blindpay/node 3.11.0 → 4.0.1

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 (112) hide show
  1. package/dist/{api-client-5N_7-zad.d.ts → api-client-BWImXDBx.d.ts} +1 -1
  2. package/dist/{api-client-DYqrodZr.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
  3. package/dist/{chunk-IM2L5L4B.mjs → chunk-IJSACZHV.mjs} +16 -24
  4. package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
  5. package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
  6. package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
  7. package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
  8. package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
  9. package/dist/{index.d-CGeWvXXq.d.mts → index.d-DK8eD9f3.d.mts} +1 -1
  10. package/dist/{index.d-CGeWvXXq.d.ts → index.d-DK8eD9f3.d.ts} +1 -1
  11. package/dist/index.d.mts +4 -16
  12. package/dist/index.d.ts +4 -16
  13. package/dist/index.js +83 -153
  14. package/dist/index.mjs +14 -20
  15. package/dist/resources/api-keys/api-keys.test.js +83 -151
  16. package/dist/resources/api-keys/api-keys.test.mjs +9 -10
  17. package/dist/resources/api-keys/index.d.mts +2 -2
  18. package/dist/resources/api-keys/index.d.ts +2 -2
  19. package/dist/resources/available/available.test.js +83 -151
  20. package/dist/resources/available/available.test.mjs +9 -10
  21. package/dist/resources/available/index.d.mts +2 -2
  22. package/dist/resources/available/index.d.ts +2 -2
  23. package/dist/resources/bank-accounts/bank-accounts.test.js +171 -241
  24. package/dist/resources/bank-accounts/bank-accounts.test.mjs +97 -100
  25. package/dist/resources/bank-accounts/index.d.mts +100 -102
  26. package/dist/resources/bank-accounts/index.d.ts +100 -102
  27. package/dist/resources/bank-accounts/index.js +40 -40
  28. package/dist/resources/bank-accounts/index.mjs +1 -1
  29. package/dist/resources/customers/customers.test.js +83 -151
  30. package/dist/resources/customers/customers.test.mjs +9 -10
  31. package/dist/resources/customers/index.d.mts +70 -69
  32. package/dist/resources/customers/index.d.ts +70 -69
  33. package/dist/resources/fees/fees.test.js +83 -151
  34. package/dist/resources/fees/fees.test.mjs +9 -10
  35. package/dist/resources/fees/index.d.mts +2 -2
  36. package/dist/resources/fees/index.d.ts +2 -2
  37. package/dist/resources/instances/index.d.mts +2 -2
  38. package/dist/resources/instances/index.d.ts +2 -2
  39. package/dist/resources/instances/instances.test.js +83 -151
  40. package/dist/resources/instances/instances.test.mjs +9 -10
  41. package/dist/resources/partner-fees/index.d.mts +2 -2
  42. package/dist/resources/partner-fees/index.d.ts +2 -2
  43. package/dist/resources/partner-fees/partner-fees.test.js +83 -151
  44. package/dist/resources/partner-fees/partner-fees.test.mjs +9 -10
  45. package/dist/resources/payins/index.d.mts +2 -2
  46. package/dist/resources/payins/index.d.ts +2 -2
  47. package/dist/resources/payins/payins-quotes.test.js +83 -151
  48. package/dist/resources/payins/payins-quotes.test.mjs +9 -10
  49. package/dist/resources/payins/payins.test.js +83 -151
  50. package/dist/resources/payins/payins.test.mjs +9 -10
  51. package/dist/resources/payins/quotes.d.mts +2 -2
  52. package/dist/resources/payins/quotes.d.ts +2 -2
  53. package/dist/resources/payouts/index.d.mts +2 -2
  54. package/dist/resources/payouts/index.d.ts +2 -2
  55. package/dist/resources/payouts/payouts.test.js +83 -151
  56. package/dist/resources/payouts/payouts.test.mjs +9 -10
  57. package/dist/resources/quotes/index.d.mts +2 -2
  58. package/dist/resources/quotes/index.d.ts +2 -2
  59. package/dist/resources/quotes/quotes.test.js +83 -151
  60. package/dist/resources/quotes/quotes.test.mjs +9 -10
  61. package/dist/resources/terms-of-service/index.d.mts +2 -2
  62. package/dist/resources/terms-of-service/index.d.ts +2 -2
  63. package/dist/resources/terms-of-service/terms-of-service.test.js +83 -151
  64. package/dist/resources/terms-of-service/terms-of-service.test.mjs +9 -10
  65. package/dist/resources/transfers/index.d.mts +2 -2
  66. package/dist/resources/transfers/index.d.ts +2 -2
  67. package/dist/resources/transfers/transfers.test.js +83 -151
  68. package/dist/resources/transfers/transfers.test.mjs +9 -10
  69. package/dist/resources/upload/index.d.mts +1 -1
  70. package/dist/resources/upload/index.d.ts +1 -1
  71. package/dist/resources/upload/upload.test.js +83 -151
  72. package/dist/resources/upload/upload.test.mjs +9 -10
  73. package/dist/resources/virtual-accounts/index.d.mts +9 -9
  74. package/dist/resources/virtual-accounts/index.d.ts +9 -9
  75. package/dist/resources/virtual-accounts/index.js +10 -10
  76. package/dist/resources/virtual-accounts/index.mjs +1 -1
  77. package/dist/resources/virtual-accounts/virtual-accounts.test.js +87 -155
  78. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +13 -14
  79. package/dist/resources/wallets/blockchain.d.mts +15 -15
  80. package/dist/resources/wallets/blockchain.d.ts +15 -15
  81. package/dist/resources/wallets/blockchain.js +14 -14
  82. package/dist/resources/wallets/blockchain.mjs +1 -1
  83. package/dist/resources/wallets/blockchain.test.js +91 -159
  84. package/dist/resources/wallets/blockchain.test.mjs +17 -18
  85. package/dist/resources/wallets/custodial.d.mts +11 -11
  86. package/dist/resources/wallets/custodial.d.ts +11 -11
  87. package/dist/resources/wallets/custodial.js +11 -11
  88. package/dist/resources/wallets/custodial.mjs +1 -1
  89. package/dist/resources/wallets/custodial.test.js +87 -155
  90. package/dist/resources/wallets/custodial.test.mjs +13 -14
  91. package/dist/resources/wallets/offramp.d.mts +9 -9
  92. package/dist/resources/wallets/offramp.d.ts +9 -9
  93. package/dist/resources/wallets/offramp.js +7 -7
  94. package/dist/resources/wallets/offramp.mjs +1 -1
  95. package/dist/resources/wallets/offramp.test.js +89 -157
  96. package/dist/resources/wallets/offramp.test.mjs +15 -16
  97. package/dist/resources/webhooks/index.d.mts +2 -2
  98. package/dist/resources/webhooks/index.d.ts +2 -2
  99. package/dist/resources/webhooks/webhooks.test.js +83 -151
  100. package/dist/resources/webhooks/webhooks.test.mjs +9 -10
  101. package/package.json +1 -1
  102. package/dist/chunk-NAGY6BLL.mjs +0 -79
  103. package/dist/resources/receivers/index.d.mts +0 -513
  104. package/dist/resources/receivers/index.d.ts +0 -513
  105. package/dist/resources/receivers/index.js +0 -118
  106. package/dist/resources/receivers/index.mjs +0 -9
  107. package/dist/resources/receivers/receivers.test.d.mts +0 -2
  108. package/dist/resources/receivers/receivers.test.d.ts +0 -2
  109. package/dist/resources/receivers/receivers.test.js +0 -20510
  110. package/dist/resources/receivers/receivers.test.mjs +0 -652
  111. package/dist/strict-omit-ByJhzKNC.d.mts +0 -3
  112. package/dist/strict-omit-ByJhzKNC.d.ts +0 -3
@@ -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.11.0";
18700
+ var version = "4.0.1";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -18749,135 +18749,135 @@ function createBankAccountsResource(instanceId, client) {
18749
18749
  return {
18750
18750
  list(_a3) {
18751
18751
  var _b = _a3, {
18752
- receiver_id
18752
+ customer_id
18753
18753
  } = _b, params = __objRest(_b, [
18754
- "receiver_id"
18754
+ "customer_id"
18755
18755
  ]);
18756
18756
  const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
18757
18757
  return client.get(
18758
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts${queryParams}`
18758
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts${queryParams}`
18759
18759
  );
18760
18760
  },
18761
18761
  get({
18762
- receiver_id,
18762
+ customer_id,
18763
18763
  id
18764
18764
  }) {
18765
18765
  return client.get(
18766
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${id}`
18766
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
18767
18767
  );
18768
18768
  },
18769
- delete({ receiver_id, id }) {
18769
+ delete({ customer_id, id }) {
18770
18770
  return client.delete(
18771
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${id}`
18771
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
18772
18772
  );
18773
18773
  },
18774
18774
  createPix(_c) {
18775
18775
  var _d = _c, {
18776
- receiver_id
18776
+ customer_id
18777
18777
  } = _d, data = __objRest(_d, [
18778
- "receiver_id"
18778
+ "customer_id"
18779
18779
  ]);
18780
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18780
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18781
18781
  type: "pix"
18782
18782
  }, data));
18783
18783
  },
18784
18784
  createPixSafe(_e) {
18785
18785
  var _f = _e, {
18786
- receiver_id
18786
+ customer_id
18787
18787
  } = _f, data = __objRest(_f, [
18788
- "receiver_id"
18788
+ "customer_id"
18789
18789
  ]);
18790
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18790
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18791
18791
  type: "pix_safe"
18792
18792
  }, data));
18793
18793
  },
18794
18794
  createArgentinaTransfers(_g) {
18795
18795
  var _h = _g, {
18796
- receiver_id
18796
+ customer_id
18797
18797
  } = _h, data = __objRest(_h, [
18798
- "receiver_id"
18798
+ "customer_id"
18799
18799
  ]);
18800
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18800
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18801
18801
  type: "transfers_bitso"
18802
18802
  }, data));
18803
18803
  },
18804
18804
  createSpei(_i) {
18805
18805
  var _j = _i, {
18806
- receiver_id
18806
+ customer_id
18807
18807
  } = _j, data = __objRest(_j, [
18808
- "receiver_id"
18808
+ "customer_id"
18809
18809
  ]);
18810
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18810
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18811
18811
  type: "spei_bitso"
18812
18812
  }, data));
18813
18813
  },
18814
18814
  createColombiaAch(_k) {
18815
18815
  var _l = _k, {
18816
- receiver_id
18816
+ customer_id
18817
18817
  } = _l, data = __objRest(_l, [
18818
- "receiver_id"
18818
+ "customer_id"
18819
18819
  ]);
18820
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18820
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18821
18821
  type: "ach_cop_bitso"
18822
18822
  }, data));
18823
18823
  },
18824
18824
  createAch(_m) {
18825
18825
  var _n = _m, {
18826
- receiver_id
18826
+ customer_id
18827
18827
  } = _n, data = __objRest(_n, [
18828
- "receiver_id"
18828
+ "customer_id"
18829
18829
  ]);
18830
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18830
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18831
18831
  type: "ach"
18832
18832
  }, data));
18833
18833
  },
18834
18834
  createWire(_o) {
18835
18835
  var _p = _o, {
18836
- receiver_id
18836
+ customer_id
18837
18837
  } = _p, data = __objRest(_p, [
18838
- "receiver_id"
18838
+ "customer_id"
18839
18839
  ]);
18840
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18840
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18841
18841
  type: "wire"
18842
18842
  }, data));
18843
18843
  },
18844
18844
  createInternationalSwift(_q) {
18845
18845
  var _r = _q, {
18846
- receiver_id
18846
+ customer_id
18847
18847
  } = _r, data = __objRest(_r, [
18848
- "receiver_id"
18848
+ "customer_id"
18849
18849
  ]);
18850
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18850
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18851
18851
  type: "international_swift"
18852
18852
  }, data));
18853
18853
  },
18854
18854
  createRtp(_s) {
18855
18855
  var _t = _s, {
18856
- receiver_id
18856
+ customer_id
18857
18857
  } = _t, data = __objRest(_t, [
18858
- "receiver_id"
18858
+ "customer_id"
18859
18859
  ]);
18860
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18860
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18861
18861
  type: "rtp"
18862
18862
  }, data));
18863
18863
  },
18864
18864
  createTed(_u) {
18865
18865
  var _v = _u, {
18866
- receiver_id
18866
+ customer_id
18867
18867
  } = _v, data = __objRest(_v, [
18868
- "receiver_id"
18868
+ "customer_id"
18869
18869
  ]);
18870
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18870
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18871
18871
  type: "ted"
18872
18872
  }, data));
18873
18873
  },
18874
18874
  createSepa(_w) {
18875
18875
  var _x = _w, {
18876
- receiver_id
18876
+ customer_id
18877
18877
  } = _x, data = __objRest(_x, [
18878
- "receiver_id"
18878
+ "customer_id"
18879
18879
  ]);
18880
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
18880
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
18881
18881
  type: "sepa"
18882
18882
  }, data));
18883
18883
  }
@@ -19092,71 +19092,6 @@ function createQuotesResource(instanceId, client) {
19092
19092
  };
19093
19093
  }
19094
19094
 
19095
- // src/resources/receivers/index.ts
19096
- function createReceiversResource(instanceId, client) {
19097
- return {
19098
- /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19099
- list(params) {
19100
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
19101
- return client.get(`/instances/${instanceId}/receivers${queryParams}`);
19102
- },
19103
- /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19104
- createIndividualWithStandardKYC(data) {
19105
- return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19106
- kyc_type: "standard",
19107
- type: "individual"
19108
- }, data));
19109
- },
19110
- /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19111
- createIndividualWithEnhancedKYC(data) {
19112
- return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19113
- kyc_type: "enhanced",
19114
- type: "individual"
19115
- }, data));
19116
- },
19117
- /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19118
- createBusinessWithStandardKYB(data) {
19119
- return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
19120
- kyc_type: "standard",
19121
- type: "business"
19122
- }, data));
19123
- },
19124
- /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19125
- get(receiver_id) {
19126
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
19127
- },
19128
- /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19129
- update(_a3) {
19130
- var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
19131
- return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
19132
- },
19133
- /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19134
- delete(receiver_id) {
19135
- return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
19136
- },
19137
- /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19138
- getLimits(receiver_id) {
19139
- return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
19140
- },
19141
- /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19142
- getLimitIncreaseRequests(receiver_id) {
19143
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
19144
- },
19145
- /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
19146
- requestLimitIncrease(_c) {
19147
- var _d = _c, {
19148
- receiver_id
19149
- } = _d, data = __objRest(_d, [
19150
- "receiver_id"
19151
- ]);
19152
- return client.post(
19153
- `/instances/${instanceId}/receivers/${receiver_id}/limit-increase`,
19154
- data
19155
- );
19156
- }
19157
- };
19158
- }
19159
-
19160
19095
  // src/resources/terms-of-service/index.ts
19161
19096
  function createTermsOfServiceResource(instanceId, client) {
19162
19097
  return {
@@ -19242,38 +19177,38 @@ function createUploadResource(baseUrl, headers) {
19242
19177
  // src/resources/virtual-accounts/index.ts
19243
19178
  function createVirtualAccountsResource(instanceId, client) {
19244
19179
  return {
19245
- list(receiver_id) {
19246
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19180
+ list(customer_id) {
19181
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`);
19247
19182
  },
19248
19183
  get({
19249
- receiver_id,
19184
+ customer_id,
19250
19185
  id
19251
19186
  }) {
19252
19187
  return client.get(
19253
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
19188
+ `/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`
19254
19189
  );
19255
19190
  },
19256
19191
  create(_a3) {
19257
19192
  var _b = _a3, {
19258
- receiver_id
19193
+ customer_id
19259
19194
  } = _b, data = __objRest(_b, [
19260
- "receiver_id"
19195
+ "customer_id"
19261
19196
  ]);
19262
19197
  return client.post(
19263
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19198
+ `/instances/${instanceId}/customers/${customer_id}/virtual-accounts`,
19264
19199
  data
19265
19200
  );
19266
19201
  },
19267
19202
  update(_c) {
19268
19203
  var _d = _c, {
19269
- receiver_id,
19204
+ customer_id,
19270
19205
  id
19271
19206
  } = _d, data = __objRest(_d, [
19272
- "receiver_id",
19207
+ "customer_id",
19273
19208
  "id"
19274
19209
  ]);
19275
19210
  return client.put(
19276
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
19211
+ `/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`,
19277
19212
  data
19278
19213
  );
19279
19214
  }
@@ -19283,19 +19218,19 @@ function createVirtualAccountsResource(instanceId, client) {
19283
19218
  // src/resources/wallets/blockchain.ts
19284
19219
  function createBlockchainWalletsResource(instanceId, client) {
19285
19220
  return {
19286
- list(receiver_id) {
19221
+ list(customer_id) {
19287
19222
  return client.get(
19288
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets`
19223
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`
19289
19224
  );
19290
19225
  },
19291
19226
  createWithAddress(_a3) {
19292
19227
  var _b = _a3, {
19293
- receiver_id
19228
+ customer_id
19294
19229
  } = _b, data = __objRest(_b, [
19295
- "receiver_id"
19230
+ "customer_id"
19296
19231
  ]);
19297
19232
  return client.post(
19298
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets`,
19233
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
19299
19234
  __spreadProps(__spreadValues({}, data), {
19300
19235
  is_account_abstraction: true
19301
19236
  })
@@ -19303,36 +19238,36 @@ function createBlockchainWalletsResource(instanceId, client) {
19303
19238
  },
19304
19239
  createWithHash(_c) {
19305
19240
  var _d = _c, {
19306
- receiver_id
19241
+ customer_id
19307
19242
  } = _d, data = __objRest(_d, [
19308
- "receiver_id"
19243
+ "customer_id"
19309
19244
  ]);
19310
19245
  return client.post(
19311
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets`,
19246
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
19312
19247
  __spreadProps(__spreadValues({}, data), {
19313
19248
  is_account_abstraction: false
19314
19249
  })
19315
19250
  );
19316
19251
  },
19317
- getWalletMessage(receiver_id) {
19252
+ getWalletMessage(customer_id) {
19318
19253
  return client.get(
19319
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets/sign-message`
19254
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/sign-message`
19320
19255
  );
19321
19256
  },
19322
19257
  get({
19323
- receiver_id,
19258
+ customer_id,
19324
19259
  id
19325
19260
  }) {
19326
19261
  return client.get(
19327
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets/${id}`
19262
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
19328
19263
  );
19329
19264
  },
19330
19265
  delete({
19331
- receiver_id,
19266
+ customer_id,
19332
19267
  id
19333
19268
  }) {
19334
19269
  return client.delete(
19335
- `/instances/${instanceId}/receivers/${receiver_id}/blockchain-wallets/${id}`
19270
+ `/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
19336
19271
  );
19337
19272
  },
19338
19273
  createAssetTrustline(address) {
@@ -19358,36 +19293,36 @@ function createBlockchainWalletsResource(instanceId, client) {
19358
19293
  // src/resources/wallets/custodial.ts
19359
19294
  function createCustodialWalletsResource(instanceId, client) {
19360
19295
  return {
19361
- list(receiver_id) {
19362
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets`);
19296
+ list(customer_id) {
19297
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets`);
19363
19298
  },
19364
19299
  get({
19365
- receiver_id,
19300
+ customer_id,
19366
19301
  id
19367
19302
  }) {
19368
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
19303
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
19369
19304
  },
19370
19305
  create(_a3) {
19371
19306
  var _b = _a3, {
19372
- receiver_id
19307
+ customer_id
19373
19308
  } = _b, data = __objRest(_b, [
19374
- "receiver_id"
19309
+ "customer_id"
19375
19310
  ]);
19376
- return client.post(`/instances/${instanceId}/receivers/${receiver_id}/wallets`, data);
19311
+ return client.post(`/instances/${instanceId}/customers/${customer_id}/wallets`, data);
19377
19312
  },
19378
19313
  getBalance({
19379
- receiver_id,
19314
+ customer_id,
19380
19315
  id
19381
19316
  }) {
19382
19317
  return client.get(
19383
- `/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}/balance`
19318
+ `/instances/${instanceId}/customers/${customer_id}/wallets/${id}/balance`
19384
19319
  );
19385
19320
  },
19386
19321
  delete({
19387
- receiver_id,
19322
+ customer_id,
19388
19323
  id
19389
19324
  }) {
19390
- return client.delete(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
19325
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
19391
19326
  }
19392
19327
  };
19393
19328
  }
@@ -19397,32 +19332,32 @@ function createOfframpWalletsResource(instanceId, client) {
19397
19332
  return {
19398
19333
  list({
19399
19334
  bank_account_id,
19400
- receiver_id
19335
+ customer_id
19401
19336
  }) {
19402
19337
  return client.get(
19403
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${bank_account_id}/offramp-wallets`
19338
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`
19404
19339
  );
19405
19340
  },
19406
19341
  create(_a3) {
19407
19342
  var _b = _a3, {
19408
- receiver_id,
19343
+ customer_id,
19409
19344
  bank_account_id
19410
19345
  } = _b, data = __objRest(_b, [
19411
- "receiver_id",
19346
+ "customer_id",
19412
19347
  "bank_account_id"
19413
19348
  ]);
19414
19349
  return client.post(
19415
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
19350
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
19416
19351
  data
19417
19352
  );
19418
19353
  },
19419
19354
  get({
19420
- receiver_id,
19355
+ customer_id,
19421
19356
  bank_account_id,
19422
19357
  id
19423
19358
  }) {
19424
19359
  return client.get(
19425
- `/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
19360
+ `/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
19426
19361
  );
19427
19362
  }
19428
19363
  };
@@ -19499,9 +19434,6 @@ var BlindPay = class {
19499
19434
  this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
19500
19435
  bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19501
19436
  });
19502
- this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
19503
- bankAccounts: createBankAccountsResource(this.instanceId, this.api)
19504
- });
19505
19437
  this.virtualAccounts = createVirtualAccountsResource(this.instanceId, this.api);
19506
19438
  this.wallets = {
19507
19439
  blockchain: createBlockchainWalletsResource(this.instanceId, this.api),
@@ -7,27 +7,26 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-IM2L5L4B.mjs";
11
- import "../../chunk-FG25JHDX.mjs";
12
- import "../../chunk-KMU6V4LW.mjs";
13
- import "../../chunk-QGNLMN6Z.mjs";
10
+ } from "../../chunk-IJSACZHV.mjs";
11
+ import "../../chunk-VAVDEV6P.mjs";
12
+ import "../../chunk-TVOMVVOO.mjs";
13
+ import "../../chunk-YHI3J2CL.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
15
- import "../../chunk-Z6EYX4D3.mjs";
16
15
  import "../../chunk-ISHZTBAN.mjs";
17
16
  import "../../chunk-UDRMLZWT.mjs";
18
- import "../../chunk-LEPGLH7Q.mjs";
19
- import "../../chunk-VGU72ZNI.mjs";
17
+ import "../../chunk-SWTOSLUI.mjs";
20
18
  import "../../chunk-E7M4CJKR.mjs";
19
+ import "../../chunk-F5Z45GCA.mjs";
21
20
  import "../../chunk-TBTA7A2P.mjs";
22
- import "../../chunk-NAGY6BLL.mjs";
21
+ import "../../chunk-Z6EYX4D3.mjs";
23
22
  import "../../chunk-SLKVEQUY.mjs";
24
23
  import "../../chunk-ALHMJWQN.mjs";
25
24
  import "../../chunk-KYOUR4KX.mjs";
26
25
  import "../../chunk-RC5NN5UF.mjs";
27
- import "../../chunk-F5Z45GCA.mjs";
26
+ import "../../chunk-VGU72ZNI.mjs";
28
27
  import "../../chunk-LRHWT4JU.mjs";
29
28
  import "../../chunk-WE73MTQL.mjs";
30
- import "../../chunk-N4F3FBNB.mjs";
29
+ import "../../chunk-L23IOSI3.mjs";
31
30
  import {
32
31
  __async,
33
32
  __commonJS
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-CGeWvXXq.mjs';
2
- import { I as InternalApiClient } from '../../api-client-DYqrodZr.mjs';
1
+ import { B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  id: string;
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-CGeWvXXq.js';
2
- import { I as InternalApiClient } from '../../api-client-5N_7-zad.js';
1
+ import { B as BlindpayApiResponse } from '../../index.d-DK8eD9f3.js';
2
+ import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  id: string;