@blindpay/node 2.5.0 → 3.1.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 (80) hide show
  1. package/dist/{api-client-Drd7alfK.d.mts → api-client-DhY5DFpq.d.mts} +109 -34
  2. package/dist/{api-client-Drd7alfK.d.ts → api-client-DhY5DFpq.d.ts} +109 -34
  3. package/dist/{chunk-VRA5HP7F.mjs → chunk-E7M4CJKR.mjs} +0 -7
  4. package/dist/{chunk-5XJJKYXE.mjs → chunk-LEPGLH7Q.mjs} +20 -10
  5. package/dist/{chunk-CEJF5Y4K.mjs → chunk-V4V47AUC.mjs} +17 -17
  6. package/dist/{chunk-W7NJUABI.mjs → chunk-VGU72ZNI.mjs} +1 -7
  7. package/dist/{chunk-3QQCDR3E.mjs → chunk-VOB7TMKL.mjs} +4 -4
  8. package/dist/index.d.mts +6 -6
  9. package/dist/index.d.ts +6 -6
  10. package/dist/index.js +25 -27
  11. package/dist/index.mjs +17 -17
  12. package/dist/resources/api-keys/api-keys.test.js +25 -27
  13. package/dist/resources/api-keys/api-keys.test.mjs +7 -7
  14. package/dist/resources/api-keys/index.d.mts +1 -1
  15. package/dist/resources/api-keys/index.d.ts +1 -1
  16. package/dist/resources/available/available.test.js +25 -27
  17. package/dist/resources/available/available.test.mjs +7 -7
  18. package/dist/resources/available/index.d.mts +1 -1
  19. package/dist/resources/available/index.d.ts +1 -1
  20. package/dist/resources/bank-accounts/bank-accounts.test.js +25 -27
  21. package/dist/resources/bank-accounts/bank-accounts.test.mjs +7 -7
  22. package/dist/resources/bank-accounts/index.d.mts +2 -4
  23. package/dist/resources/bank-accounts/index.d.ts +2 -4
  24. package/dist/resources/instances/index.d.mts +1 -1
  25. package/dist/resources/instances/index.d.ts +1 -1
  26. package/dist/resources/instances/instances.test.js +25 -27
  27. package/dist/resources/instances/instances.test.mjs +7 -7
  28. package/dist/resources/partner-fees/index.d.mts +1 -1
  29. package/dist/resources/partner-fees/index.d.ts +1 -1
  30. package/dist/resources/partner-fees/partner-fees.test.js +25 -27
  31. package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
  32. package/dist/resources/payins/index.d.mts +61 -148
  33. package/dist/resources/payins/index.d.ts +61 -148
  34. package/dist/resources/payins/index.js +0 -19
  35. package/dist/resources/payins/index.mjs +1 -1
  36. package/dist/resources/payins/payins-quotes.test.js +25 -113
  37. package/dist/resources/payins/payins-quotes.test.mjs +7 -93
  38. package/dist/resources/payins/payins.test.js +113 -163
  39. package/dist/resources/payins/payins.test.mjs +95 -143
  40. package/dist/resources/payins/quotes.d.mts +7 -72
  41. package/dist/resources/payins/quotes.d.ts +7 -72
  42. package/dist/resources/payins/quotes.js +0 -7
  43. package/dist/resources/payins/quotes.mjs +1 -1
  44. package/dist/resources/payouts/index.d.mts +34 -20
  45. package/dist/resources/payouts/index.d.ts +34 -20
  46. package/dist/resources/payouts/index.js +4 -4
  47. package/dist/resources/payouts/index.mjs +1 -1
  48. package/dist/resources/payouts/payouts.test.js +113 -131
  49. package/dist/resources/payouts/payouts.test.mjs +95 -111
  50. package/dist/resources/quotes/index.d.mts +16 -16
  51. package/dist/resources/quotes/index.d.ts +16 -16
  52. package/dist/resources/quotes/quotes.test.js +26 -28
  53. package/dist/resources/quotes/quotes.test.mjs +8 -8
  54. package/dist/resources/receivers/index.d.mts +9 -7
  55. package/dist/resources/receivers/index.d.ts +9 -7
  56. package/dist/resources/receivers/receivers.test.js +32 -35
  57. package/dist/resources/receivers/receivers.test.mjs +14 -15
  58. package/dist/resources/terms-of-service/index.d.mts +1 -1
  59. package/dist/resources/terms-of-service/index.d.ts +1 -1
  60. package/dist/resources/terms-of-service/terms-of-service.test.js +25 -27
  61. package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
  62. package/dist/resources/virtual-accounts/index.d.mts +22 -7
  63. package/dist/resources/virtual-accounts/index.d.ts +22 -7
  64. package/dist/resources/virtual-accounts/index.js +20 -10
  65. package/dist/resources/virtual-accounts/index.mjs +1 -1
  66. package/dist/resources/virtual-accounts/virtual-accounts.test.js +144 -46
  67. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +126 -26
  68. package/dist/resources/wallets/blockchain.d.mts +1 -1
  69. package/dist/resources/wallets/blockchain.d.ts +1 -1
  70. package/dist/resources/wallets/blockchain.test.js +25 -27
  71. package/dist/resources/wallets/blockchain.test.mjs +7 -7
  72. package/dist/resources/wallets/offramp.d.mts +1 -1
  73. package/dist/resources/wallets/offramp.d.ts +1 -1
  74. package/dist/resources/wallets/offramp.test.js +25 -27
  75. package/dist/resources/wallets/offramp.test.mjs +7 -7
  76. package/dist/resources/webhooks/index.d.mts +1 -1
  77. package/dist/resources/webhooks/index.d.ts +1 -1
  78. package/dist/resources/webhooks/webhooks.test.js +25 -27
  79. package/dist/resources/webhooks/webhooks.test.mjs +7 -7
  80. package/package.json +2 -1
@@ -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 = "2.5.0";
18705
+ var version = "3.1.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18905,11 +18905,6 @@ function createPayinsResource(instanceId, client) {
18905
18905
  getTrack(payinId) {
18906
18906
  return client.get(`/e/payins/${payinId}`);
18907
18907
  },
18908
- export(_a3) {
18909
- var params = __objRest(_a3, []);
18910
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18911
- return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
18912
- },
18913
18908
  createEvm(payin_quote_id) {
18914
18909
  return client.post(`/instances/${instanceId}/payins/evm`, {
18915
18910
  payin_quote_id
@@ -18928,13 +18923,6 @@ function createPayinQuotesResource(instanceId, client) {
18928
18923
  getFxRate(_b) {
18929
18924
  var data = __objRest(_b, []);
18930
18925
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
- },
18932
- get(id) {
18933
- return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18934
- },
18935
- list(params) {
18936
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18937
- return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
18938
18926
  }
18939
18927
  };
18940
18928
  }
@@ -18946,10 +18934,6 @@ function createPayoutsResource(instanceId, client) {
18946
18934
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18947
18935
  return client.get(`/instances/${instanceId}/payouts${queryParams}`);
18948
18936
  },
18949
- export(params) {
18950
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18951
- return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
18952
- },
18953
18937
  get(payoutId) {
18954
18938
  return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
18955
18939
  },
@@ -18967,6 +18951,10 @@ function createPayoutsResource(instanceId, client) {
18967
18951
  createEvm(_c) {
18968
18952
  var data = __objRest(_c, []);
18969
18953
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
18954
+ },
18955
+ createSolana(_d) {
18956
+ var data = __objRest(_d, []);
18957
+ return client.post(`/instances/${instanceId}/payouts/solana`, data);
18970
18958
  }
18971
18959
  };
18972
18960
  }
@@ -19059,30 +19047,40 @@ function createTermsOfServiceResource(instanceId, client) {
19059
19047
  // src/resources/virtual-accounts/index.ts
19060
19048
  function createVirtualAccountsResource(instanceId, client) {
19061
19049
  return {
19062
- update(_a3) {
19050
+ list(receiver_id) {
19051
+ return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19052
+ },
19053
+ get({
19054
+ receiver_id,
19055
+ id
19056
+ }) {
19057
+ return client.get(
19058
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
19059
+ );
19060
+ },
19061
+ create(_a3) {
19063
19062
  var _b = _a3, {
19064
19063
  receiver_id
19065
19064
  } = _b, data = __objRest(_b, [
19066
19065
  "receiver_id"
19067
19066
  ]);
19068
- return client.put(
19067
+ return client.post(
19069
19068
  `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19070
19069
  data
19071
19070
  );
19072
19071
  },
19073
- create(_c) {
19072
+ update(_c) {
19074
19073
  var _d = _c, {
19075
- receiver_id
19074
+ receiver_id,
19075
+ id
19076
19076
  } = _d, data = __objRest(_d, [
19077
- "receiver_id"
19077
+ "receiver_id",
19078
+ "id"
19078
19079
  ]);
19079
- return client.post(
19080
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19080
+ return client.put(
19081
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
19081
19082
  data
19082
19083
  );
19083
- },
19084
- get(receiver_id) {
19085
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19086
19084
  }
19087
19085
  };
19088
19086
  }
@@ -8,20 +8,20 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CEJF5Y4K.mjs";
12
- import "../../chunk-UC57SCKQ.mjs";
11
+ } from "../../chunk-V4V47AUC.mjs";
13
12
  import "../../chunk-FG25JHDX.mjs";
14
13
  import "../../chunk-QGNLMN6Z.mjs";
14
+ import "../../chunk-UC57SCKQ.mjs";
15
15
  import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
17
  import "../../chunk-Z6EYX4D3.mjs";
18
- import "../../chunk-5XJJKYXE.mjs";
19
- import "../../chunk-U7CKUUO7.mjs";
18
+ import "../../chunk-LEPGLH7Q.mjs";
19
+ import "../../chunk-VGU72ZNI.mjs";
20
+ import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-VOB7TMKL.mjs";
20
22
  import "../../chunk-RC5NN5UF.mjs";
21
- import "../../chunk-W7NJUABI.mjs";
22
- import "../../chunk-VRA5HP7F.mjs";
23
- import "../../chunk-3QQCDR3E.mjs";
24
23
  import "../../chunk-LRHWT4JU.mjs";
24
+ import "../../chunk-U7CKUUO7.mjs";
25
25
  import "../../chunk-CPOSU35L.mjs";
26
26
  import "../../chunk-B5T7AQLH.mjs";
27
27
  import {
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.mjs';
2
2
 
3
3
  type WebhookEvents = "receiver.new" | "receiver.update" | "bankAccount.new" | "payout.new" | "payout.update" | "payout.complete" | "payout.partnerFee" | "blockchainWallet.new" | "payin.new" | "payin.update" | "payin.complete" | "payin.partnerFee" | "tos.accept";
4
4
  type CreateWebhookEndpointInput = {
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.js';
2
2
 
3
3
  type WebhookEvents = "receiver.new" | "receiver.update" | "bankAccount.new" | "payout.new" | "payout.update" | "payout.complete" | "payout.partnerFee" | "blockchainWallet.new" | "payin.new" | "payin.update" | "payin.complete" | "payin.partnerFee" | "tos.accept";
4
4
  type CreateWebhookEndpointInput = {
@@ -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 = "2.5.0";
18705
+ var version = "3.1.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18905,11 +18905,6 @@ function createPayinsResource(instanceId, client) {
18905
18905
  getTrack(payinId) {
18906
18906
  return client.get(`/e/payins/${payinId}`);
18907
18907
  },
18908
- export(_a3) {
18909
- var params = __objRest(_a3, []);
18910
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18911
- return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
18912
- },
18913
18908
  createEvm(payin_quote_id) {
18914
18909
  return client.post(`/instances/${instanceId}/payins/evm`, {
18915
18910
  payin_quote_id
@@ -18928,13 +18923,6 @@ function createPayinQuotesResource(instanceId, client) {
18928
18923
  getFxRate(_b) {
18929
18924
  var data = __objRest(_b, []);
18930
18925
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
18931
- },
18932
- get(id) {
18933
- return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
18934
- },
18935
- list(params) {
18936
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18937
- return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
18938
18926
  }
18939
18927
  };
18940
18928
  }
@@ -18946,10 +18934,6 @@ function createPayoutsResource(instanceId, client) {
18946
18934
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18947
18935
  return client.get(`/instances/${instanceId}/payouts${queryParams}`);
18948
18936
  },
18949
- export(params) {
18950
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
18951
- return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
18952
- },
18953
18937
  get(payoutId) {
18954
18938
  return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
18955
18939
  },
@@ -18967,6 +18951,10 @@ function createPayoutsResource(instanceId, client) {
18967
18951
  createEvm(_c) {
18968
18952
  var data = __objRest(_c, []);
18969
18953
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
18954
+ },
18955
+ createSolana(_d) {
18956
+ var data = __objRest(_d, []);
18957
+ return client.post(`/instances/${instanceId}/payouts/solana`, data);
18970
18958
  }
18971
18959
  };
18972
18960
  }
@@ -19059,30 +19047,40 @@ function createTermsOfServiceResource(instanceId, client) {
19059
19047
  // src/resources/virtual-accounts/index.ts
19060
19048
  function createVirtualAccountsResource(instanceId, client) {
19061
19049
  return {
19062
- update(_a3) {
19050
+ list(receiver_id) {
19051
+ return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19052
+ },
19053
+ get({
19054
+ receiver_id,
19055
+ id
19056
+ }) {
19057
+ return client.get(
19058
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
19059
+ );
19060
+ },
19061
+ create(_a3) {
19063
19062
  var _b = _a3, {
19064
19063
  receiver_id
19065
19064
  } = _b, data = __objRest(_b, [
19066
19065
  "receiver_id"
19067
19066
  ]);
19068
- return client.put(
19067
+ return client.post(
19069
19068
  `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19070
19069
  data
19071
19070
  );
19072
19071
  },
19073
- create(_c) {
19072
+ update(_c) {
19074
19073
  var _d = _c, {
19075
- receiver_id
19074
+ receiver_id,
19075
+ id
19076
19076
  } = _d, data = __objRest(_d, [
19077
- "receiver_id"
19077
+ "receiver_id",
19078
+ "id"
19078
19079
  ]);
19079
- return client.post(
19080
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19080
+ return client.put(
19081
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
19081
19082
  data
19082
19083
  );
19083
- },
19084
- get(receiver_id) {
19085
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19086
19084
  }
19087
19085
  };
19088
19086
  }
@@ -8,20 +8,20 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CEJF5Y4K.mjs";
12
- import "../../chunk-UC57SCKQ.mjs";
11
+ } from "../../chunk-V4V47AUC.mjs";
13
12
  import "../../chunk-FG25JHDX.mjs";
14
13
  import "../../chunk-QGNLMN6Z.mjs";
14
+ import "../../chunk-UC57SCKQ.mjs";
15
15
  import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
17
  import "../../chunk-Z6EYX4D3.mjs";
18
- import "../../chunk-5XJJKYXE.mjs";
19
- import "../../chunk-U7CKUUO7.mjs";
18
+ import "../../chunk-LEPGLH7Q.mjs";
19
+ import "../../chunk-VGU72ZNI.mjs";
20
+ import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-VOB7TMKL.mjs";
20
22
  import "../../chunk-RC5NN5UF.mjs";
21
- import "../../chunk-W7NJUABI.mjs";
22
- import "../../chunk-VRA5HP7F.mjs";
23
- import "../../chunk-3QQCDR3E.mjs";
24
23
  import "../../chunk-LRHWT4JU.mjs";
24
+ import "../../chunk-U7CKUUO7.mjs";
25
25
  import "../../chunk-CPOSU35L.mjs";
26
26
  import "../../chunk-B5T7AQLH.mjs";
27
27
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blindpay/node",
3
- "version": "2.5.0",
3
+ "version": "3.1.0",
4
4
  "description": "Official Node.js SDK for Blindpay API - Global payments infrastructure",
5
5
  "keywords": [
6
6
  "blindpay",
@@ -47,6 +47,7 @@
47
47
  ],
48
48
  "scripts": {
49
49
  "build": "tsup src/index.ts src/resources/ --format cjs,esm --dts",
50
+ "check-types": "tsc --noEmit",
50
51
  "lint:check": "biome check .",
51
52
  "lint:fix": "biome check --write .",
52
53
  "test": "vitest run",