@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
@@ -16,7 +16,7 @@ type BlindpaySuccessResponse<T> = {
16
16
 
17
17
  type CurrencyType = "sender" | "receiver";
18
18
 
19
- type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron"
19
+ type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron" | "solana" | "solana_devnet";
20
20
 
21
21
  type StablecoinToken = "USDC" | "USDT" | "USDB"
22
22
 
@@ -296,42 +296,117 @@ type PaginationMetadata = {
296
296
  prev_page: string;
297
297
  }
298
298
 
299
- type TrackingTransaction = {
300
- step: string;
301
- status: string;
302
- transaction_hash: string;
303
- completed_at: string;
304
- };
299
+ type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
305
300
 
306
- type TrackingPayment = {
307
- step: string;
308
- provider_name: string;
309
- provider_transaction_id: string;
310
- provider_status: string;
311
- estimated_time_of_arrival: string;
312
- completed_at: string;
313
- };
301
+ type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
314
302
 
315
- type TrackingLiquidity = {
316
- step: string;
317
- provider_transaction_id: string;
318
- provider_status: string;
319
- estimated_time_of_arrival: string;
320
- completed_at: string;
321
- };
303
+ type PayinTrackingTransaction = {
304
+ step: TrackingStatus
305
+ status?: 'failed' | 'completed' | null;
306
+ external_id: string | null;
307
+ completed_at?: string | null;
308
+ sender_name?: string | null;
309
+ sender_tax_id?: string | null;
310
+ sender_bank_code?: string | null;
311
+ sender_account_number?: string | null;
312
+ trace_number?: string | null;
313
+ transaction_reference?: string | null;
314
+ description?: string | null;
315
+ pse_instruction?: {
316
+ payment_link: string;
317
+ fid: string;
318
+ full_name: string;
319
+ tax_id: string;
320
+ document_type: Extract<AchCopDocument, 'CC' | 'NIT'>;
321
+ phone: string;
322
+ email: string;
323
+ bank_code?: string | null;
324
+ } | null
325
+ transfers_instruction?: {
326
+ account: string;
327
+ type: ArgentinaTransfers;
328
+ tax_id?: string | null;
329
+ } | null
330
+ };
331
+
332
+ type PayinTrackingPayment = {
333
+ step: TrackingStatus
334
+ provider_name?: string | null
335
+ completed_at?: string | null
336
+ };
337
+
338
+ type PayinTrackingComplete = {
339
+ step: TrackingStatus
340
+ transaction_hash?: string | null;
341
+ completed_at?: string | null;
342
+ };
343
+
344
+ type PayinTrackingPartnerFee = {
345
+ step: TrackingStatus
346
+ transaction_hash?: string | null
347
+ completed_at?: string | null
348
+ }
322
349
 
323
- type TrackingComplete = {
324
- step: string;
325
- status: string;
326
- transaction_hash: string;
327
- completed_at: string;
328
- };
350
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse"
329
351
 
330
- type TrackingPartnerFee = {
331
- step: string;
332
- transaction_hash: string;
333
- completed_at: string;
334
- };
352
+ type PayerRules = {
353
+ pix_allowed_tax_ids?: string[] | null;
354
+ transfers_allowed_tax_id?: string | null;
355
+ pse_allowed_tax_ids?: string[] | null;
356
+ pse_full_name?: string | null;
357
+ pse_document_type?: Extract<AchCopDocument, 'CC' | 'NIT'> | null;
358
+ pse_document_number?: string | null;
359
+ pse_email?: string | null;
360
+ pse_phone?: string | null;
361
+ pse_bank_code?: string | null;
362
+ }
363
+
364
+ type TrackingStatus = 'processing' | 'on_hold' | 'completed';
365
+
366
+ type EstimatedTimeOfArrival = '5_min' | '30_min' | '2_hours' | '1_business_day' | '2_business_days' | '5_business_days';
367
+
368
+ type PayoutTrackingTransaction = {
369
+ step: TrackingStatus
370
+ status: 'failed' | 'found';
371
+ transaction_hash: string | null
372
+ completed_at: string | null
373
+ };
374
+
375
+ type PayoutTrackingPayment = {
376
+ step: TrackingStatus
377
+ provider_name: string | null ;
378
+ provider_transaction_id: string | null ;
379
+ provider_status: 'canceled' | 'failed' | 'returned' | 'sent' | null
380
+ recipient_name: string | null ;
381
+ recipient_tax_id: string | null ;
382
+ recipient_bank_code: string | null ;
383
+ recipient_branch_code: string | null ;
384
+ recipient_account_number: string | null ;
385
+ recipient_account_type: string | null ;
386
+ estimated_time_of_arrival: EstimatedTimeOfArrival | null ;
387
+ completed_at: string | null ;
388
+ };
389
+
390
+ type PayoutTrackingLiquidity = {
391
+ step: TrackingStatus
392
+ provider_transaction_id: string | null ;
393
+ provider_status: 'deposited' | 'converted' | 'withdrawn' | null;
394
+ estimated_time_of_arrival: EstimatedTimeOfArrival | null;
395
+ completed_at: string | null ;
396
+ }
397
+
398
+ type PayoutTrackingComplete = {
399
+ step: TrackingStatus
400
+ status: 'tokens_refunded' | 'paid' | null;
401
+ transaction_hash: string | null;
402
+ completed_at: string | null;
403
+ };
404
+
405
+ type PayoutTrackingPartnerFee = {
406
+ step: TrackingStatus
407
+ transaction_hash: string | null;
408
+ completed_at: string | null;
409
+ }
335
410
 
336
411
  /**
337
412
  *
@@ -346,4 +421,4 @@ interface InternalApiClient {
346
421
  delete: <T>(path: string, body?: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
347
422
  }
348
423
 
349
- export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, TrackingTransaction as b, TrackingPayment as c, TrackingComplete as d, TrackingPartnerFee as e, PaginationMetadata as f, CurrencyType as g, Currency as h, TrackingLiquidity as i, TransactionDocumentType as j };
424
+ export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, PayinTrackingTransaction as d, PayinTrackingPayment as e, PayinTrackingComplete as f, PayinTrackingPartnerFee as g, PayinPaymentMethod as h, Currency as i, PayerRules as j, PaginationMetadata as k, CurrencyType as l, PayoutTrackingTransaction as m, PayoutTrackingPayment as n, PayoutTrackingLiquidity as o, PayoutTrackingComplete as p, PayoutTrackingPartnerFee as q, TransactionDocumentType as r };
@@ -16,7 +16,7 @@ type BlindpaySuccessResponse<T> = {
16
16
 
17
17
  type CurrencyType = "sender" | "receiver";
18
18
 
19
- type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron"
19
+ type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron" | "solana" | "solana_devnet";
20
20
 
21
21
  type StablecoinToken = "USDC" | "USDT" | "USDB"
22
22
 
@@ -296,42 +296,117 @@ type PaginationMetadata = {
296
296
  prev_page: string;
297
297
  }
298
298
 
299
- type TrackingTransaction = {
300
- step: string;
301
- status: string;
302
- transaction_hash: string;
303
- completed_at: string;
304
- };
299
+ type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
305
300
 
306
- type TrackingPayment = {
307
- step: string;
308
- provider_name: string;
309
- provider_transaction_id: string;
310
- provider_status: string;
311
- estimated_time_of_arrival: string;
312
- completed_at: string;
313
- };
301
+ type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
314
302
 
315
- type TrackingLiquidity = {
316
- step: string;
317
- provider_transaction_id: string;
318
- provider_status: string;
319
- estimated_time_of_arrival: string;
320
- completed_at: string;
321
- };
303
+ type PayinTrackingTransaction = {
304
+ step: TrackingStatus
305
+ status?: 'failed' | 'completed' | null;
306
+ external_id: string | null;
307
+ completed_at?: string | null;
308
+ sender_name?: string | null;
309
+ sender_tax_id?: string | null;
310
+ sender_bank_code?: string | null;
311
+ sender_account_number?: string | null;
312
+ trace_number?: string | null;
313
+ transaction_reference?: string | null;
314
+ description?: string | null;
315
+ pse_instruction?: {
316
+ payment_link: string;
317
+ fid: string;
318
+ full_name: string;
319
+ tax_id: string;
320
+ document_type: Extract<AchCopDocument, 'CC' | 'NIT'>;
321
+ phone: string;
322
+ email: string;
323
+ bank_code?: string | null;
324
+ } | null
325
+ transfers_instruction?: {
326
+ account: string;
327
+ type: ArgentinaTransfers;
328
+ tax_id?: string | null;
329
+ } | null
330
+ };
331
+
332
+ type PayinTrackingPayment = {
333
+ step: TrackingStatus
334
+ provider_name?: string | null
335
+ completed_at?: string | null
336
+ };
337
+
338
+ type PayinTrackingComplete = {
339
+ step: TrackingStatus
340
+ transaction_hash?: string | null;
341
+ completed_at?: string | null;
342
+ };
343
+
344
+ type PayinTrackingPartnerFee = {
345
+ step: TrackingStatus
346
+ transaction_hash?: string | null
347
+ completed_at?: string | null
348
+ }
322
349
 
323
- type TrackingComplete = {
324
- step: string;
325
- status: string;
326
- transaction_hash: string;
327
- completed_at: string;
328
- };
350
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse"
329
351
 
330
- type TrackingPartnerFee = {
331
- step: string;
332
- transaction_hash: string;
333
- completed_at: string;
334
- };
352
+ type PayerRules = {
353
+ pix_allowed_tax_ids?: string[] | null;
354
+ transfers_allowed_tax_id?: string | null;
355
+ pse_allowed_tax_ids?: string[] | null;
356
+ pse_full_name?: string | null;
357
+ pse_document_type?: Extract<AchCopDocument, 'CC' | 'NIT'> | null;
358
+ pse_document_number?: string | null;
359
+ pse_email?: string | null;
360
+ pse_phone?: string | null;
361
+ pse_bank_code?: string | null;
362
+ }
363
+
364
+ type TrackingStatus = 'processing' | 'on_hold' | 'completed';
365
+
366
+ type EstimatedTimeOfArrival = '5_min' | '30_min' | '2_hours' | '1_business_day' | '2_business_days' | '5_business_days';
367
+
368
+ type PayoutTrackingTransaction = {
369
+ step: TrackingStatus
370
+ status: 'failed' | 'found';
371
+ transaction_hash: string | null
372
+ completed_at: string | null
373
+ };
374
+
375
+ type PayoutTrackingPayment = {
376
+ step: TrackingStatus
377
+ provider_name: string | null ;
378
+ provider_transaction_id: string | null ;
379
+ provider_status: 'canceled' | 'failed' | 'returned' | 'sent' | null
380
+ recipient_name: string | null ;
381
+ recipient_tax_id: string | null ;
382
+ recipient_bank_code: string | null ;
383
+ recipient_branch_code: string | null ;
384
+ recipient_account_number: string | null ;
385
+ recipient_account_type: string | null ;
386
+ estimated_time_of_arrival: EstimatedTimeOfArrival | null ;
387
+ completed_at: string | null ;
388
+ };
389
+
390
+ type PayoutTrackingLiquidity = {
391
+ step: TrackingStatus
392
+ provider_transaction_id: string | null ;
393
+ provider_status: 'deposited' | 'converted' | 'withdrawn' | null;
394
+ estimated_time_of_arrival: EstimatedTimeOfArrival | null;
395
+ completed_at: string | null ;
396
+ }
397
+
398
+ type PayoutTrackingComplete = {
399
+ step: TrackingStatus
400
+ status: 'tokens_refunded' | 'paid' | null;
401
+ transaction_hash: string | null;
402
+ completed_at: string | null;
403
+ };
404
+
405
+ type PayoutTrackingPartnerFee = {
406
+ step: TrackingStatus
407
+ transaction_hash: string | null;
408
+ completed_at: string | null;
409
+ }
335
410
 
336
411
  /**
337
412
  *
@@ -346,4 +421,4 @@ interface InternalApiClient {
346
421
  delete: <T>(path: string, body?: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
347
422
  }
348
423
 
349
- export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, TrackingTransaction as b, TrackingPayment as c, TrackingComplete as d, TrackingPartnerFee as e, PaginationMetadata as f, CurrencyType as g, Currency as h, TrackingLiquidity as i, TransactionDocumentType as j };
424
+ export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, PayinTrackingTransaction as d, PayinTrackingPayment as e, PayinTrackingComplete as f, PayinTrackingPartnerFee as g, PayinPaymentMethod as h, Currency as i, PayerRules as j, PaginationMetadata as k, CurrencyType as l, PayoutTrackingTransaction as m, PayoutTrackingPayment as n, PayoutTrackingLiquidity as o, PayoutTrackingComplete as p, PayoutTrackingPartnerFee as q, TransactionDocumentType as r };
@@ -13,13 +13,6 @@ function createPayinQuotesResource(instanceId, client) {
13
13
  getFxRate(_b) {
14
14
  var data = __objRest(_b, []);
15
15
  return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
16
- },
17
- get(id) {
18
- return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
19
- },
20
- list(params) {
21
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
22
- return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
23
16
  }
24
17
  };
25
18
  }
@@ -6,30 +6,40 @@ import {
6
6
  // src/resources/virtual-accounts/index.ts
7
7
  function createVirtualAccountsResource(instanceId, client) {
8
8
  return {
9
- update(_a) {
9
+ list(receiver_id) {
10
+ return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
11
+ },
12
+ get({
13
+ receiver_id,
14
+ id
15
+ }) {
16
+ return client.get(
17
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
18
+ );
19
+ },
20
+ create(_a) {
10
21
  var _b = _a, {
11
22
  receiver_id
12
23
  } = _b, data = __objRest(_b, [
13
24
  "receiver_id"
14
25
  ]);
15
- return client.put(
26
+ return client.post(
16
27
  `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
17
28
  data
18
29
  );
19
30
  },
20
- create(_c) {
31
+ update(_c) {
21
32
  var _d = _c, {
22
- receiver_id
33
+ receiver_id,
34
+ id
23
35
  } = _d, data = __objRest(_d, [
24
- "receiver_id"
36
+ "receiver_id",
37
+ "id"
25
38
  ]);
26
- return client.post(
27
- `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
39
+ return client.put(
40
+ `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
28
41
  data
29
42
  );
30
- },
31
- get(receiver_id) {
32
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
33
43
  }
34
44
  };
35
45
  }
@@ -1,7 +1,3 @@
1
- import {
2
- createWebhookEndpointsResource,
3
- init_webhooks
4
- } from "./chunk-UC57SCKQ.mjs";
5
1
  import {
6
2
  createBlockchainWalletsResource,
7
3
  init_blockchain
@@ -10,6 +6,10 @@ import {
10
6
  createOfframpWalletsResource,
11
7
  init_offramp
12
8
  } from "./chunk-QGNLMN6Z.mjs";
9
+ import {
10
+ createWebhookEndpointsResource,
11
+ init_webhooks
12
+ } from "./chunk-UC57SCKQ.mjs";
13
13
  import {
14
14
  createQuotesResource,
15
15
  init_quotes as init_quotes2
@@ -25,31 +25,31 @@ import {
25
25
  import {
26
26
  createVirtualAccountsResource,
27
27
  init_virtual_accounts
28
- } from "./chunk-5XJJKYXE.mjs";
29
- import {
30
- createAvailableResource,
31
- init_available
32
- } from "./chunk-U7CKUUO7.mjs";
33
- import {
34
- createPartnerFeesResource,
35
- init_partner_fees
36
- } from "./chunk-RC5NN5UF.mjs";
28
+ } from "./chunk-LEPGLH7Q.mjs";
37
29
  import {
38
30
  createPayinsResource,
39
31
  init_payins
40
- } from "./chunk-W7NJUABI.mjs";
32
+ } from "./chunk-VGU72ZNI.mjs";
41
33
  import {
42
34
  createPayinQuotesResource,
43
35
  init_quotes
44
- } from "./chunk-VRA5HP7F.mjs";
36
+ } from "./chunk-E7M4CJKR.mjs";
45
37
  import {
46
38
  createPayoutsResource,
47
39
  init_payouts
48
- } from "./chunk-3QQCDR3E.mjs";
40
+ } from "./chunk-VOB7TMKL.mjs";
41
+ import {
42
+ createPartnerFeesResource,
43
+ init_partner_fees
44
+ } from "./chunk-RC5NN5UF.mjs";
49
45
  import {
50
46
  createApiKeysResource,
51
47
  init_api_keys
52
48
  } from "./chunk-LRHWT4JU.mjs";
49
+ import {
50
+ createAvailableResource,
51
+ init_available
52
+ } from "./chunk-U7CKUUO7.mjs";
53
53
  import {
54
54
  createBankAccountsResource,
55
55
  init_bank_accounts
@@ -69,7 +69,7 @@ import {
69
69
  var version;
70
70
  var init_package = __esm({
71
71
  "package.json"() {
72
- version = "2.5.0";
72
+ version = "3.1.0";
73
73
  }
74
74
  });
75
75
 
@@ -1,6 +1,5 @@
1
1
  import {
2
- __esm,
3
- __objRest
2
+ __esm
4
3
  } from "./chunk-OBKEW4AQ.mjs";
5
4
 
6
5
  // src/resources/payins/index.ts
@@ -16,11 +15,6 @@ function createPayinsResource(instanceId, client) {
16
15
  getTrack(payinId) {
17
16
  return client.get(`/e/payins/${payinId}`);
18
17
  },
19
- export(_a) {
20
- var params = __objRest(_a, []);
21
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
22
- return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
23
- },
24
18
  createEvm(payin_quote_id) {
25
19
  return client.post(`/instances/${instanceId}/payins/evm`, {
26
20
  payin_quote_id
@@ -10,10 +10,6 @@ function createPayoutsResource(instanceId, client) {
10
10
  const queryParams = params ? `?${new URLSearchParams(params)}` : "";
11
11
  return client.get(`/instances/${instanceId}/payouts${queryParams}`);
12
12
  },
13
- export(params) {
14
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
15
- return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
16
- },
17
13
  get(payoutId) {
18
14
  return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
19
15
  },
@@ -31,6 +27,10 @@ function createPayoutsResource(instanceId, client) {
31
27
  createEvm(_c) {
32
28
  var data = __objRest(_c, []);
33
29
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
30
+ },
31
+ createSolana(_d) {
32
+ var data = __objRest(_d, []);
33
+ return client.post(`/instances/${instanceId}/payouts/solana`, data);
34
34
  }
35
35
  };
36
36
  }
package/dist/index.d.mts CHANGED
@@ -3,31 +3,31 @@ export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyIn
3
3
  import { createAvailableResource } from './resources/available/index.mjs';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.mjs';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.mjs';
6
- export { AchCopDocument, ArgentinaTransfers, CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.mjs';
6
+ export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.mjs';
7
7
  import { createInstancesResource } from './resources/instances/index.mjs';
8
8
  export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.mjs';
9
9
  import { createPartnerFeesResource } from './resources/partner-fees/index.mjs';
10
10
  export { CreatePartnerFeeInput, CreatePartnerFeeResponse, DeletePartnerFeeInput, GetPartnerFeeInput, GetPartnerFeeResponse, ListPartnerFeesResponse } from './resources/partner-fees/index.mjs';
11
11
  import { createPayinsResource } from './resources/payins/index.mjs';
12
- export { CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, ExportPayinsInput, ExportPayinsResponse, GetPayinInput, GetPayinResponse, GetPayinTrackInput, GetPayinTrackResponse, ListPayinsInput, ListPayinsResponse, Payin } from './resources/payins/index.mjs';
12
+ export { BlindpayBankDetails, CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, GetPayinInput, GetPayinResponse, GetPayinTrackInput, GetPayinTrackResponse, ListPayinsInput, ListPayinsResponse, Payin } from './resources/payins/index.mjs';
13
13
  import { createPayinQuotesResource } from './resources/payins/quotes.mjs';
14
- export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse, GetPayinQuoteInput, GetPayinQuoteResponse, ListPayinQuotesInput, ListPayinQuotesResponse, PayinPaymentMethod } from './resources/payins/quotes.mjs';
14
+ export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse } from './resources/payins/quotes.mjs';
15
15
  import { createPayoutsResource } from './resources/payouts/index.mjs';
16
- export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.mjs';
16
+ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateSolanaPayoutInput, CreateSolanaPayoutResponse, CreateStellarPayoutInput, CreateStellarPayoutResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.mjs';
17
17
  import { createQuotesResource } from './resources/quotes/index.mjs';
18
18
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
19
19
  import { createReceiversResource } from './resources/receivers/index.mjs';
20
20
  export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.mjs';
21
21
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.mjs';
22
22
  import { createVirtualAccountsResource } from './resources/virtual-accounts/index.mjs';
23
- export { CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.mjs';
23
+ export { BankingPartner, CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, ListVirtualAccountsInput, ListVirtualAccountsResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.mjs';
24
24
  import { createBlockchainWalletsResource } from './resources/wallets/blockchain.mjs';
25
25
  export { CreateAssetTrustlineInput, CreateAssetTrustlineResponse, CreateBlockchainWalletResponse, CreateBlockchainWalletWithAddressInput, CreateBlockchainWalletWithHashInput, DeleteBlockchainWalletInput, GetBlockchainWalletInput, GetBlockchainWalletMessage, GetBlockchainWalletMessageResponse, GetBlockchainWalletResponse, ListBlockchainWalletsInput, ListBlockchainWalletsResponse, MintUsdbSolanaInput, MintUsdbSolanaResponse, MintUsdbStellarInput, PrepareSolanaDelegationTransactionInput, PrepareSolanaDelegationTransactionResponse } from './resources/wallets/blockchain.mjs';
26
26
  import { createOfframpWalletsResource } from './resources/wallets/offramp.mjs';
27
27
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet } from './resources/wallets/offramp.mjs';
28
28
  import { createWebhookEndpointsResource } from './resources/webhooks/index.mjs';
29
29
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.mjs';
30
- import './api-client-Drd7alfK.mjs';
30
+ import './api-client-DhY5DFpq.mjs';
31
31
 
32
32
  declare class BlindPay {
33
33
  private readonly baseUrl;
package/dist/index.d.ts CHANGED
@@ -3,31 +3,31 @@ export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyIn
3
3
  import { createAvailableResource } from './resources/available/index.js';
4
4
  export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.js';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.js';
6
- export { AchCopDocument, ArgentinaTransfers, CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.js';
6
+ export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.js';
7
7
  import { createInstancesResource } from './resources/instances/index.js';
8
8
  export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.js';
9
9
  import { createPartnerFeesResource } from './resources/partner-fees/index.js';
10
10
  export { CreatePartnerFeeInput, CreatePartnerFeeResponse, DeletePartnerFeeInput, GetPartnerFeeInput, GetPartnerFeeResponse, ListPartnerFeesResponse } from './resources/partner-fees/index.js';
11
11
  import { createPayinsResource } from './resources/payins/index.js';
12
- export { CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, ExportPayinsInput, ExportPayinsResponse, GetPayinInput, GetPayinResponse, GetPayinTrackInput, GetPayinTrackResponse, ListPayinsInput, ListPayinsResponse, Payin } from './resources/payins/index.js';
12
+ export { BlindpayBankDetails, CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, GetPayinInput, GetPayinResponse, GetPayinTrackInput, GetPayinTrackResponse, ListPayinsInput, ListPayinsResponse, Payin } from './resources/payins/index.js';
13
13
  import { createPayinQuotesResource } from './resources/payins/quotes.js';
14
- export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse, GetPayinQuoteInput, GetPayinQuoteResponse, ListPayinQuotesInput, ListPayinQuotesResponse, PayinPaymentMethod } from './resources/payins/quotes.js';
14
+ export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse } from './resources/payins/quotes.js';
15
15
  import { createPayoutsResource } from './resources/payouts/index.js';
16
- export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.js';
16
+ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateSolanaPayoutInput, CreateSolanaPayoutResponse, CreateStellarPayoutInput, CreateStellarPayoutResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.js';
17
17
  import { createQuotesResource } from './resources/quotes/index.js';
18
18
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.js';
19
19
  import { createReceiversResource } from './resources/receivers/index.js';
20
20
  export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.js';
21
21
  import { createTermsOfServiceResource } from './resources/terms-of-service/index.js';
22
22
  import { createVirtualAccountsResource } from './resources/virtual-accounts/index.js';
23
- export { CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.js';
23
+ export { BankingPartner, CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, ListVirtualAccountsInput, ListVirtualAccountsResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.js';
24
24
  import { createBlockchainWalletsResource } from './resources/wallets/blockchain.js';
25
25
  export { CreateAssetTrustlineInput, CreateAssetTrustlineResponse, CreateBlockchainWalletResponse, CreateBlockchainWalletWithAddressInput, CreateBlockchainWalletWithHashInput, DeleteBlockchainWalletInput, GetBlockchainWalletInput, GetBlockchainWalletMessage, GetBlockchainWalletMessageResponse, GetBlockchainWalletResponse, ListBlockchainWalletsInput, ListBlockchainWalletsResponse, MintUsdbSolanaInput, MintUsdbSolanaResponse, MintUsdbStellarInput, PrepareSolanaDelegationTransactionInput, PrepareSolanaDelegationTransactionResponse } from './resources/wallets/blockchain.js';
26
26
  import { createOfframpWalletsResource } from './resources/wallets/offramp.js';
27
27
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet } from './resources/wallets/offramp.js';
28
28
  import { createWebhookEndpointsResource } from './resources/webhooks/index.js';
29
29
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.js';
30
- import './api-client-Drd7alfK.js';
30
+ import './api-client-DhY5DFpq.js';
31
31
 
32
32
  declare class BlindPay {
33
33
  private readonly baseUrl;