@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,
@@ -53,20 +53,38 @@ var require_payins_test = __commonJS({
53
53
  tracking_transaction: {
54
54
  step: "processing",
55
55
  status: "failed",
56
- transaction_hash: "0x123...890",
57
- completed_at: "2011-10-05T14:48:00.000Z"
56
+ external_id: "12345678",
57
+ completed_at: "2011-10-05T14:48:00.000Z",
58
+ sender_name: "John Doe Smith",
59
+ sender_tax_id: "123.456.789-10",
60
+ sender_bank_code: "00416968",
61
+ sender_account_number: "1234567890",
62
+ trace_number: "1234567890",
63
+ transaction_reference: "1234567890",
64
+ description: "Payment from John Doe Smith",
65
+ pse_instruction: {
66
+ payment_link: "https://pse.example.com/payment/abc123",
67
+ fid: "fid_abc123",
68
+ full_name: "Juan P\xE9rez Garc\xEDa",
69
+ tax_id: "1234567890",
70
+ document_type: "CC",
71
+ phone: "+573001234567",
72
+ email: "juan@example.com",
73
+ bank_code: "1007"
74
+ },
75
+ transfers_instruction: {
76
+ account: "0000003100012389237485",
77
+ type: "CVU",
78
+ tax_id: "20123456783"
79
+ }
58
80
  },
59
81
  tracking_payment: {
60
82
  step: "on_hold",
61
83
  provider_name: "blockchain",
62
- provider_transaction_id: "tx_123456789",
63
- provider_status: "confirmed",
64
- estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
65
84
  completed_at: "2011-10-05T14:48:00.000Z"
66
85
  },
67
86
  tracking_complete: {
68
87
  step: "on_hold",
69
- status: "completed",
70
88
  transaction_hash: "0x123...890",
71
89
  completed_at: "2011-10-05T14:48:00.000Z"
72
90
  },
@@ -153,20 +171,38 @@ var require_payins_test = __commonJS({
153
171
  tracking_transaction: {
154
172
  step: "processing",
155
173
  status: "failed",
156
- transaction_hash: "0x123...890",
157
- completed_at: "2011-10-05T14:48:00.000Z"
174
+ external_id: "12345678",
175
+ completed_at: "2011-10-05T14:48:00.000Z",
176
+ sender_name: "John Doe Smith",
177
+ sender_tax_id: "123.456.789-10",
178
+ sender_bank_code: "00416968",
179
+ sender_account_number: "1234567890",
180
+ trace_number: "1234567890",
181
+ transaction_reference: "1234567890",
182
+ description: "Payment from John Doe Smith",
183
+ pse_instruction: {
184
+ payment_link: "https://pse.example.com/payment/abc123",
185
+ fid: "fid_abc123",
186
+ full_name: "Juan P\xE9rez Garc\xEDa",
187
+ tax_id: "1234567890",
188
+ document_type: "CC",
189
+ phone: "+573001234567",
190
+ email: "juan@example.com",
191
+ bank_code: "1007"
192
+ },
193
+ transfers_instruction: {
194
+ account: "0000003100012389237485",
195
+ type: "CVU",
196
+ tax_id: "20123456783"
197
+ }
158
198
  },
159
199
  tracking_payment: {
160
200
  step: "on_hold",
161
201
  provider_name: "blockchain",
162
- provider_transaction_id: "tx_123456789",
163
- provider_status: "confirmed",
164
- estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
165
202
  completed_at: "2011-10-05T14:48:00.000Z"
166
203
  },
167
204
  tracking_complete: {
168
205
  step: "on_hold",
169
- status: "completed",
170
206
  transaction_hash: "0x123...890",
171
207
  completed_at: "2011-10-05T14:48:00.000Z"
172
208
  },
@@ -254,7 +290,22 @@ var require_payins_test = __commonJS({
254
290
  sender_account_number: "1234567890",
255
291
  trace_number: "1234567890",
256
292
  transaction_reference: "1234567890",
257
- description: "Payment from John Doe Smith"
293
+ description: "Payment from John Doe Smith",
294
+ pse_instruction: {
295
+ payment_link: "https://pse.example.com/payment/abc123",
296
+ fid: "fid_abc123",
297
+ full_name: "Juan P\xE9rez Garc\xEDa",
298
+ tax_id: "1234567890",
299
+ document_type: "CC",
300
+ phone: "+573001234567",
301
+ email: "juan@example.com",
302
+ bank_code: "1007"
303
+ },
304
+ transfers_instruction: {
305
+ account: "0000003100012389237485",
306
+ type: "CVU",
307
+ tax_id: "20123456783"
308
+ }
258
309
  },
259
310
  tracking_payment: {
260
311
  step: "on_hold",
@@ -343,20 +394,38 @@ var require_payins_test = __commonJS({
343
394
  tracking_transaction: {
344
395
  step: "processing",
345
396
  status: "failed",
346
- transaction_hash: "0x123...890",
347
- completed_at: "2011-10-05T14:48:00.000Z"
397
+ external_id: "12345678",
398
+ completed_at: "2011-10-05T14:48:00.000Z",
399
+ sender_name: "John Doe Smith",
400
+ sender_tax_id: "123.456.789-10",
401
+ sender_bank_code: "00416968",
402
+ sender_account_number: "1234567890",
403
+ trace_number: "1234567890",
404
+ transaction_reference: "1234567890",
405
+ description: "Payment from John Doe Smith",
406
+ pse_instruction: {
407
+ payment_link: "https://pse.example.com/payment/abc123",
408
+ fid: "fid_abc123",
409
+ full_name: "Juan P\xE9rez Garc\xEDa",
410
+ tax_id: "1234567890",
411
+ document_type: "CC",
412
+ phone: "+573001234567",
413
+ email: "juan@example.com",
414
+ bank_code: "1007"
415
+ },
416
+ transfers_instruction: {
417
+ account: "0000003100012389237485",
418
+ type: "CVU",
419
+ tax_id: "20123456783"
420
+ }
348
421
  },
349
422
  tracking_payment: {
350
423
  step: "on_hold",
351
424
  provider_name: "blockchain",
352
- provider_transaction_id: "tx_123456789",
353
- provider_status: "confirmed",
354
- estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
355
425
  completed_at: "2011-10-05T14:48:00.000Z"
356
426
  },
357
427
  tracking_complete: {
358
428
  step: "on_hold",
359
- status: "completed",
360
429
  transaction_hash: "0x123...890",
361
430
  completed_at: "2011-10-05T14:48:00.000Z"
362
431
  },
@@ -435,23 +504,41 @@ var require_payins_test = __commonJS({
435
504
  clabe: "014027000000000008",
436
505
  tracking_complete: {
437
506
  step: "on_hold",
438
- status: "completed",
439
507
  transaction_hash: "0x123...890",
440
508
  completed_at: "2011-10-05T14:48:00.000Z"
441
509
  },
442
510
  tracking_payment: {
443
511
  step: "on_hold",
444
512
  provider_name: "blockchain",
445
- provider_transaction_id: "tx_123456789",
446
- provider_status: "confirmed",
447
- estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
448
513
  completed_at: "2011-10-05T14:48:00.000Z"
449
514
  },
450
515
  tracking_transaction: {
451
516
  step: "processing",
452
517
  status: "failed",
453
- transaction_hash: "0x123...890",
454
- completed_at: "2011-10-05T14:48:00.000Z"
518
+ external_id: "12345678",
519
+ completed_at: "2011-10-05T14:48:00.000Z",
520
+ sender_name: "John Doe Smith",
521
+ sender_tax_id: "123.456.789-10",
522
+ sender_bank_code: "00416968",
523
+ sender_account_number: "1234567890",
524
+ trace_number: "1234567890",
525
+ transaction_reference: "1234567890",
526
+ description: "Payment from John Doe Smith",
527
+ pse_instruction: {
528
+ payment_link: "https://pse.example.com/payment/abc123",
529
+ fid: "fid_abc123",
530
+ full_name: "Juan P\xE9rez Garc\xEDa",
531
+ tax_id: "1234567890",
532
+ document_type: "CC",
533
+ phone: "+573001234567",
534
+ email: "juan@example.com",
535
+ bank_code: "1007"
536
+ },
537
+ transfers_instruction: {
538
+ account: "0000003100012389237485",
539
+ type: "CVU",
540
+ tax_id: "20123456783"
541
+ }
455
542
  },
456
543
  tracking_partner_fee: {
457
544
  step: "on_hold",
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, g as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, h as Currency, P as PaginationParams, f as PaginationMetadata } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, i as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, j as Currency, P as PaginationParams, h as PaginationMetadata } from '../../api-client-B7VQkM_4.mjs';
2
2
 
3
3
  type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
4
4
  type CreatePayinQuoteInput = {
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, g as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, h as Currency, P as PaginationParams, f as PaginationMetadata } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, i as CurrencyType, S as StablecoinToken, B as BlindpayApiResponse, j as Currency, P as PaginationParams, h as PaginationMetadata } from '../../api-client-B7VQkM_4.js';
2
2
 
3
3
  type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei";
4
4
  type CreatePayinQuoteInput = {
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, b as TrackingTransaction, c as TrackingPayment, i as TrackingLiquidity, d as TrackingComplete, e as TrackingPartnerFee, N as Network, S as StablecoinToken, h as Currency, j as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, f as PaginationMetadata } from '../../api-client-Drd7alfK.mjs';
1
+ import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, k as PayoutTrackingTransaction, l as PayoutTrackingPayment, m as PayoutTrackingLiquidity, n as PayoutTrackingComplete, o as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, p as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, h as PaginationMetadata } from '../../api-client-B7VQkM_4.mjs';
2
2
 
3
3
  type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
4
4
  type Payout = {
@@ -9,11 +9,11 @@ type Payout = {
9
9
  signed_transaction: string;
10
10
  quote_id: string;
11
11
  instance_id: string;
12
- tracking_transaction: TrackingTransaction;
13
- tracking_payment: TrackingPayment;
14
- tracking_liquidity: TrackingLiquidity;
15
- tracking_complete: TrackingComplete;
16
- tracking_partner_fee: TrackingPartnerFee;
12
+ tracking_transaction: PayoutTrackingTransaction;
13
+ tracking_payment: PayoutTrackingPayment;
14
+ tracking_liquidity: PayoutTrackingLiquidity;
15
+ tracking_complete: PayoutTrackingComplete;
16
+ tracking_partner_fee: PayoutTrackingPartnerFee;
17
17
  created_at: string;
18
18
  updated_at: string;
19
19
  image_url: string;
@@ -105,11 +105,11 @@ type CreateStellarPayoutResponse = {
105
105
  id: string;
106
106
  status: TransactionStatus;
107
107
  sender_wallet_address: string;
108
- tracking_complete?: TrackingComplete;
109
- tracking_payment?: TrackingPayment;
110
- tracking_transaction?: TrackingTransaction;
111
- tracking_partner_fee?: TrackingPartnerFee;
112
- tracking_liquidity?: TrackingLiquidity;
108
+ tracking_complete?: PayoutTrackingComplete;
109
+ tracking_payment?: PayoutTrackingPayment;
110
+ tracking_transaction?: PayoutTrackingTransaction;
111
+ tracking_partner_fee?: PayoutTrackingPartnerFee;
112
+ tracking_liquidity?: PayoutTrackingLiquidity;
113
113
  receiver_id: string;
114
114
  };
115
115
  type CreateEvmPayoutInput = {
@@ -120,13 +120,36 @@ type CreateEvmPayoutResponse = {
120
120
  id: string;
121
121
  status: TransactionStatus;
122
122
  sender_wallet_address: string;
123
- tracking_complete?: TrackingComplete;
124
- tracking_payment?: TrackingPayment;
125
- tracking_transaction?: TrackingTransaction;
126
- tracking_partner_fee?: TrackingPartnerFee;
127
- tracking_liquidity?: TrackingLiquidity;
123
+ tracking_complete?: PayoutTrackingComplete;
124
+ tracking_payment?: PayoutTrackingPayment;
125
+ tracking_transaction?: PayoutTrackingTransaction;
126
+ tracking_partner_fee?: PayoutTrackingPartnerFee;
127
+ tracking_liquidity?: PayoutTrackingLiquidity;
128
128
  receiver_id: string;
129
129
  };
130
+ type AuthorizeSolanaInput = {
131
+ quote_id: string;
132
+ sender_wallet_address: string;
133
+ };
134
+ type AuthorizeSolanaResponse = {
135
+ serialized_transaction: string;
136
+ };
137
+ type CreateSolanaPayoutInput = {
138
+ quote_id: string;
139
+ sender_wallet_address: string;
140
+ signed_transaction: string | null;
141
+ };
142
+ type CreateSolanaPayoutResponse = {
143
+ id: string;
144
+ status: TransactionStatus;
145
+ sender_wallet_address: string;
146
+ tracking_complete: PayoutTrackingComplete;
147
+ tracking_payment: PayoutTrackingPayment;
148
+ tracking_transaction: PayoutTrackingTransaction;
149
+ tracking_partner_fee?: PayoutTrackingPartnerFee | null;
150
+ tracking_liquidity?: PayoutTrackingLiquidity | null;
151
+ receiver_id: string | null;
152
+ };
130
153
  declare function createPayoutsResource(instanceId: string, client: InternalApiClient): {
131
154
  list(params?: ListPayoutsInput): Promise<BlindpayApiResponse<ListPayoutsResponse>>;
132
155
  export(params?: ExportPayoutsInput): Promise<BlindpayApiResponse<ExportPayoutsResponse>>;
@@ -135,6 +158,8 @@ declare function createPayoutsResource(instanceId: string, client: InternalApiCl
135
158
  authorizeStellarToken({ ...data }: AuthorizeStellarTokenInput): Promise<BlindpayApiResponse<AuthorizeStellarTokenResponse>>;
136
159
  createStellar({ ...data }: CreateStellarPayoutInput): Promise<BlindpayApiResponse<CreateStellarPayoutResponse>>;
137
160
  createEvm({ ...data }: CreateEvmPayoutInput): Promise<BlindpayApiResponse<CreateEvmPayoutResponse>>;
161
+ authorizeSolana({ ...data }: AuthorizeSolanaInput): Promise<BlindpayApiResponse<AuthorizeSolanaResponse>>;
162
+ createSolana({ ...data }: CreateSolanaPayoutInput): Promise<BlindpayApiResponse<CreateSolanaPayoutResponse>>;
138
163
  };
139
164
 
140
- export { type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
165
+ export { type AuthorizeSolanaInput, type AuthorizeSolanaResponse, type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateSolanaPayoutInput, type CreateSolanaPayoutResponse, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
@@ -1,4 +1,4 @@
1
- import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, b as TrackingTransaction, c as TrackingPayment, i as TrackingLiquidity, d as TrackingComplete, e as TrackingPartnerFee, N as Network, S as StablecoinToken, h as Currency, j as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, f as PaginationMetadata } from '../../api-client-Drd7alfK.js';
1
+ import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, k as PayoutTrackingTransaction, l as PayoutTrackingPayment, m as PayoutTrackingLiquidity, n as PayoutTrackingComplete, o as PayoutTrackingPartnerFee, N as Network, S as StablecoinToken, j as Currency, p as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, h as PaginationMetadata } from '../../api-client-B7VQkM_4.js';
2
2
 
3
3
  type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
4
4
  type Payout = {
@@ -9,11 +9,11 @@ type Payout = {
9
9
  signed_transaction: string;
10
10
  quote_id: string;
11
11
  instance_id: string;
12
- tracking_transaction: TrackingTransaction;
13
- tracking_payment: TrackingPayment;
14
- tracking_liquidity: TrackingLiquidity;
15
- tracking_complete: TrackingComplete;
16
- tracking_partner_fee: TrackingPartnerFee;
12
+ tracking_transaction: PayoutTrackingTransaction;
13
+ tracking_payment: PayoutTrackingPayment;
14
+ tracking_liquidity: PayoutTrackingLiquidity;
15
+ tracking_complete: PayoutTrackingComplete;
16
+ tracking_partner_fee: PayoutTrackingPartnerFee;
17
17
  created_at: string;
18
18
  updated_at: string;
19
19
  image_url: string;
@@ -105,11 +105,11 @@ type CreateStellarPayoutResponse = {
105
105
  id: string;
106
106
  status: TransactionStatus;
107
107
  sender_wallet_address: string;
108
- tracking_complete?: TrackingComplete;
109
- tracking_payment?: TrackingPayment;
110
- tracking_transaction?: TrackingTransaction;
111
- tracking_partner_fee?: TrackingPartnerFee;
112
- tracking_liquidity?: TrackingLiquidity;
108
+ tracking_complete?: PayoutTrackingComplete;
109
+ tracking_payment?: PayoutTrackingPayment;
110
+ tracking_transaction?: PayoutTrackingTransaction;
111
+ tracking_partner_fee?: PayoutTrackingPartnerFee;
112
+ tracking_liquidity?: PayoutTrackingLiquidity;
113
113
  receiver_id: string;
114
114
  };
115
115
  type CreateEvmPayoutInput = {
@@ -120,13 +120,36 @@ type CreateEvmPayoutResponse = {
120
120
  id: string;
121
121
  status: TransactionStatus;
122
122
  sender_wallet_address: string;
123
- tracking_complete?: TrackingComplete;
124
- tracking_payment?: TrackingPayment;
125
- tracking_transaction?: TrackingTransaction;
126
- tracking_partner_fee?: TrackingPartnerFee;
127
- tracking_liquidity?: TrackingLiquidity;
123
+ tracking_complete?: PayoutTrackingComplete;
124
+ tracking_payment?: PayoutTrackingPayment;
125
+ tracking_transaction?: PayoutTrackingTransaction;
126
+ tracking_partner_fee?: PayoutTrackingPartnerFee;
127
+ tracking_liquidity?: PayoutTrackingLiquidity;
128
128
  receiver_id: string;
129
129
  };
130
+ type AuthorizeSolanaInput = {
131
+ quote_id: string;
132
+ sender_wallet_address: string;
133
+ };
134
+ type AuthorizeSolanaResponse = {
135
+ serialized_transaction: string;
136
+ };
137
+ type CreateSolanaPayoutInput = {
138
+ quote_id: string;
139
+ sender_wallet_address: string;
140
+ signed_transaction: string | null;
141
+ };
142
+ type CreateSolanaPayoutResponse = {
143
+ id: string;
144
+ status: TransactionStatus;
145
+ sender_wallet_address: string;
146
+ tracking_complete: PayoutTrackingComplete;
147
+ tracking_payment: PayoutTrackingPayment;
148
+ tracking_transaction: PayoutTrackingTransaction;
149
+ tracking_partner_fee?: PayoutTrackingPartnerFee | null;
150
+ tracking_liquidity?: PayoutTrackingLiquidity | null;
151
+ receiver_id: string | null;
152
+ };
130
153
  declare function createPayoutsResource(instanceId: string, client: InternalApiClient): {
131
154
  list(params?: ListPayoutsInput): Promise<BlindpayApiResponse<ListPayoutsResponse>>;
132
155
  export(params?: ExportPayoutsInput): Promise<BlindpayApiResponse<ExportPayoutsResponse>>;
@@ -135,6 +158,8 @@ declare function createPayoutsResource(instanceId: string, client: InternalApiCl
135
158
  authorizeStellarToken({ ...data }: AuthorizeStellarTokenInput): Promise<BlindpayApiResponse<AuthorizeStellarTokenResponse>>;
136
159
  createStellar({ ...data }: CreateStellarPayoutInput): Promise<BlindpayApiResponse<CreateStellarPayoutResponse>>;
137
160
  createEvm({ ...data }: CreateEvmPayoutInput): Promise<BlindpayApiResponse<CreateEvmPayoutResponse>>;
161
+ authorizeSolana({ ...data }: AuthorizeSolanaInput): Promise<BlindpayApiResponse<AuthorizeSolanaResponse>>;
162
+ createSolana({ ...data }: CreateSolanaPayoutInput): Promise<BlindpayApiResponse<CreateSolanaPayoutResponse>>;
138
163
  };
139
164
 
140
- export { type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
165
+ export { type AuthorizeSolanaInput, type AuthorizeSolanaResponse, type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateSolanaPayoutInput, type CreateSolanaPayoutResponse, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
@@ -64,6 +64,14 @@ function createPayoutsResource(instanceId, client) {
64
64
  createEvm(_c) {
65
65
  var data = __objRest(_c, []);
66
66
  return client.post(`/instances/${instanceId}/payouts/evm`, data);
67
+ },
68
+ authorizeSolana(_d) {
69
+ var data = __objRest(_d, []);
70
+ return client.post(`/instances/${instanceId}/payouts/solana/authorize`, data);
71
+ },
72
+ createSolana(_e) {
73
+ var data = __objRest(_e, []);
74
+ return client.post(`/instances/${instanceId}/payouts/solana`, data);
67
75
  }
68
76
  };
69
77
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPayoutsResource,
3
3
  init_payouts
4
- } from "../../chunk-3QQCDR3E.mjs";
4
+ } from "../../chunk-VBZHAPK7.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_payouts();
7
7
  export {