@blindpay/node 2.5.0 → 3.0.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 (74) hide show
  1. package/dist/{api-client-Drd7alfK.d.mts → api-client-B7VQkM_4.d.mts} +94 -33
  2. package/dist/{api-client-Drd7alfK.d.ts → api-client-B7VQkM_4.d.ts} +94 -33
  3. package/dist/{chunk-5XJJKYXE.mjs → chunk-LEPGLH7Q.mjs} +20 -10
  4. package/dist/{chunk-3QQCDR3E.mjs → chunk-VBZHAPK7.mjs} +8 -0
  5. package/dist/{chunk-CEJF5Y4K.mjs → chunk-WH2VNZE7.mjs} +11 -11
  6. package/dist/index.d.mts +4 -4
  7. package/dist/index.d.ts +4 -4
  8. package/dist/index.js +29 -11
  9. package/dist/index.mjs +11 -11
  10. package/dist/resources/api-keys/api-keys.test.js +29 -11
  11. package/dist/resources/api-keys/api-keys.test.mjs +5 -5
  12. package/dist/resources/api-keys/index.d.mts +1 -1
  13. package/dist/resources/api-keys/index.d.ts +1 -1
  14. package/dist/resources/available/available.test.js +29 -11
  15. package/dist/resources/available/available.test.mjs +5 -5
  16. package/dist/resources/available/index.d.mts +1 -1
  17. package/dist/resources/available/index.d.ts +1 -1
  18. package/dist/resources/bank-accounts/bank-accounts.test.js +29 -11
  19. package/dist/resources/bank-accounts/bank-accounts.test.mjs +5 -5
  20. package/dist/resources/bank-accounts/index.d.mts +2 -4
  21. package/dist/resources/bank-accounts/index.d.ts +2 -4
  22. package/dist/resources/instances/index.d.mts +1 -1
  23. package/dist/resources/instances/index.d.ts +1 -1
  24. package/dist/resources/instances/instances.test.js +29 -11
  25. package/dist/resources/instances/instances.test.mjs +5 -5
  26. package/dist/resources/partner-fees/index.d.mts +1 -1
  27. package/dist/resources/partner-fees/index.d.ts +1 -1
  28. package/dist/resources/partner-fees/partner-fees.test.js +29 -11
  29. package/dist/resources/partner-fees/partner-fees.test.mjs +5 -5
  30. package/dist/resources/payins/index.d.mts +9 -33
  31. package/dist/resources/payins/index.d.ts +9 -33
  32. package/dist/resources/payins/payins-quotes.test.js +29 -11
  33. package/dist/resources/payins/payins-quotes.test.mjs +5 -5
  34. package/dist/resources/payins/payins.test.js +141 -36
  35. package/dist/resources/payins/payins.test.mjs +117 -30
  36. package/dist/resources/payins/quotes.d.mts +1 -1
  37. package/dist/resources/payins/quotes.d.ts +1 -1
  38. package/dist/resources/payouts/index.d.mts +42 -17
  39. package/dist/resources/payouts/index.d.ts +42 -17
  40. package/dist/resources/payouts/index.js +8 -0
  41. package/dist/resources/payouts/index.mjs +1 -1
  42. package/dist/resources/payouts/payouts.test.js +139 -11
  43. package/dist/resources/payouts/payouts.test.mjs +115 -5
  44. package/dist/resources/quotes/index.d.mts +1 -1
  45. package/dist/resources/quotes/index.d.ts +1 -1
  46. package/dist/resources/quotes/quotes.test.js +29 -11
  47. package/dist/resources/quotes/quotes.test.mjs +5 -5
  48. package/dist/resources/receivers/index.d.mts +9 -7
  49. package/dist/resources/receivers/index.d.ts +9 -7
  50. package/dist/resources/receivers/receivers.test.js +36 -19
  51. package/dist/resources/receivers/receivers.test.mjs +12 -13
  52. package/dist/resources/terms-of-service/index.d.mts +1 -1
  53. package/dist/resources/terms-of-service/index.d.ts +1 -1
  54. package/dist/resources/terms-of-service/terms-of-service.test.js +29 -11
  55. package/dist/resources/terms-of-service/terms-of-service.test.mjs +5 -5
  56. package/dist/resources/virtual-accounts/index.d.mts +22 -7
  57. package/dist/resources/virtual-accounts/index.d.ts +22 -7
  58. package/dist/resources/virtual-accounts/index.js +20 -10
  59. package/dist/resources/virtual-accounts/index.mjs +1 -1
  60. package/dist/resources/virtual-accounts/virtual-accounts.test.js +148 -30
  61. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +124 -24
  62. package/dist/resources/wallets/blockchain.d.mts +1 -1
  63. package/dist/resources/wallets/blockchain.d.ts +1 -1
  64. package/dist/resources/wallets/blockchain.test.js +29 -11
  65. package/dist/resources/wallets/blockchain.test.mjs +5 -5
  66. package/dist/resources/wallets/offramp.d.mts +1 -1
  67. package/dist/resources/wallets/offramp.d.ts +1 -1
  68. package/dist/resources/wallets/offramp.test.js +29 -11
  69. package/dist/resources/wallets/offramp.test.mjs +5 -5
  70. package/dist/resources/webhooks/index.d.mts +1 -1
  71. package/dist/resources/webhooks/index.d.ts +1 -1
  72. package/dist/resources/webhooks/webhooks.test.js +29 -11
  73. package/dist/resources/webhooks/webhooks.test.mjs +5 -5
  74. package/package.json +2 -1
@@ -8,21 +8,21 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CEJF5Y4K.mjs";
12
- import "../../chunk-UC57SCKQ.mjs";
11
+ } from "../../chunk-WH2VNZE7.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";
20
19
  import "../../chunk-RC5NN5UF.mjs";
21
20
  import "../../chunk-W7NJUABI.mjs";
22
21
  import "../../chunk-VRA5HP7F.mjs";
23
- import "../../chunk-3QQCDR3E.mjs";
22
+ import "../../chunk-VBZHAPK7.mjs";
24
23
  import "../../chunk-LRHWT4JU.mjs";
25
24
  import "../../chunk-CPOSU35L.mjs";
25
+ import "../../chunk-U7CKUUO7.mjs";
26
26
  import "../../chunk-B5T7AQLH.mjs";
27
27
  import {
28
28
  __async,
@@ -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-B7VQkM_4.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-B7VQkM_4.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.0.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18967,6 +18967,14 @@ function createPayoutsResource(instanceId, client) {
18967
18967
  createEvm(_c) {
18968
18968
  var data = __objRest(_c, []);
18969
18969
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
18970
+ },
18971
+ authorizeSolana(_d) {
18972
+ var data = __objRest(_d, []);
18973
+ return client.post(`/instances/${instanceId}/payouts/solana/authorize`, data);
18974
+ },
18975
+ createSolana(_e) {
18976
+ var data = __objRest(_e, []);
18977
+ return client.post(`/instances/${instanceId}/payouts/solana`, data);
18970
18978
  }
18971
18979
  };
18972
18980
  }
@@ -19059,30 +19067,40 @@ function createTermsOfServiceResource(instanceId, client) {
19059
19067
  // src/resources/virtual-accounts/index.ts
19060
19068
  function createVirtualAccountsResource(instanceId, client) {
19061
19069
  return {
19062
- update(_a3) {
19070
+ list(receiver_id) {
19071
+ return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19072
+ },
19073
+ get({
19074
+ receiver_id,
19075
+ id
19076
+ }) {
19077
+ return client.get(
19078
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
19079
+ );
19080
+ },
19081
+ create(_a3) {
19063
19082
  var _b = _a3, {
19064
19083
  receiver_id
19065
19084
  } = _b, data = __objRest(_b, [
19066
19085
  "receiver_id"
19067
19086
  ]);
19068
- return client.put(
19087
+ return client.post(
19069
19088
  `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19070
19089
  data
19071
19090
  );
19072
19091
  },
19073
- create(_c) {
19092
+ update(_c) {
19074
19093
  var _d = _c, {
19075
- receiver_id
19094
+ receiver_id,
19095
+ id
19076
19096
  } = _d, data = __objRest(_d, [
19077
- "receiver_id"
19097
+ "receiver_id",
19098
+ "id"
19078
19099
  ]);
19079
- return client.post(
19080
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
19100
+ return client.put(
19101
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
19081
19102
  data
19082
19103
  );
19083
- },
19084
- get(receiver_id) {
19085
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
19086
19104
  }
19087
19105
  };
19088
19106
  }
@@ -8,21 +8,21 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CEJF5Y4K.mjs";
12
- import "../../chunk-UC57SCKQ.mjs";
11
+ } from "../../chunk-WH2VNZE7.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";
20
19
  import "../../chunk-RC5NN5UF.mjs";
21
20
  import "../../chunk-W7NJUABI.mjs";
22
21
  import "../../chunk-VRA5HP7F.mjs";
23
- import "../../chunk-3QQCDR3E.mjs";
22
+ import "../../chunk-VBZHAPK7.mjs";
24
23
  import "../../chunk-LRHWT4JU.mjs";
25
24
  import "../../chunk-CPOSU35L.mjs";
25
+ import "../../chunk-U7CKUUO7.mjs";
26
26
  import "../../chunk-B5T7AQLH.mjs";
27
27
  import {
28
28
  __async,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blindpay/node",
3
- "version": "2.5.0",
3
+ "version": "3.0.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",