@blindpay/node 3.10.0 → 4.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.
- package/dist/{chunk-7PWF4J3Z.mjs → chunk-ECYZLQUR.mjs} +12 -12
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/chunk-SLKVEQUY.mjs +76 -0
- package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
- package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
- package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
- package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +148 -141
- package/dist/index.mjs +12 -12
- package/dist/resources/api-keys/api-keys.test.js +146 -139
- package/dist/resources/api-keys/api-keys.test.mjs +7 -7
- package/dist/resources/available/available.test.js +146 -139
- package/dist/resources/available/available.test.mjs +7 -7
- package/dist/resources/bank-accounts/bank-accounts.test.js +173 -166
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +34 -34
- package/dist/resources/bank-accounts/index.d.mts +29 -29
- package/dist/resources/bank-accounts/index.d.ts +29 -29
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/{receivers/receivers.test.js → customers/customers.test.js} +200 -193
- package/dist/resources/{receivers/receivers.test.mjs → customers/customers.test.mjs} +64 -64
- package/dist/resources/{receivers → customers}/index.d.mts +23 -23
- package/dist/resources/{receivers → customers}/index.d.ts +23 -23
- package/dist/resources/{receivers → customers}/index.js +32 -25
- package/dist/resources/customers/index.mjs +9 -0
- package/dist/resources/fees/fees.test.js +146 -139
- package/dist/resources/fees/fees.test.mjs +7 -7
- package/dist/resources/instances/instances.test.js +146 -139
- package/dist/resources/instances/instances.test.mjs +7 -7
- package/dist/resources/partner-fees/partner-fees.test.js +146 -139
- package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
- package/dist/resources/payins/payins-quotes.test.js +146 -139
- package/dist/resources/payins/payins-quotes.test.mjs +7 -7
- package/dist/resources/payins/payins.test.js +146 -139
- package/dist/resources/payins/payins.test.mjs +7 -7
- package/dist/resources/payouts/payouts.test.js +146 -139
- package/dist/resources/payouts/payouts.test.mjs +7 -7
- package/dist/resources/quotes/quotes.test.js +146 -139
- package/dist/resources/quotes/quotes.test.mjs +7 -7
- package/dist/resources/terms-of-service/terms-of-service.test.js +146 -139
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
- package/dist/resources/transfers/transfers.test.js +146 -139
- package/dist/resources/transfers/transfers.test.mjs +7 -7
- package/dist/resources/upload/upload.test.js +146 -139
- package/dist/resources/upload/upload.test.mjs +7 -7
- package/dist/resources/virtual-accounts/index.d.mts +7 -7
- package/dist/resources/virtual-accounts/index.d.ts +7 -7
- package/dist/resources/virtual-accounts/index.js +10 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +150 -143
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +11 -11
- package/dist/resources/wallets/blockchain.d.mts +13 -13
- package/dist/resources/wallets/blockchain.d.ts +13 -13
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +154 -147
- package/dist/resources/wallets/blockchain.test.mjs +15 -15
- package/dist/resources/wallets/custodial.d.mts +9 -9
- package/dist/resources/wallets/custodial.d.ts +9 -9
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +150 -143
- package/dist/resources/wallets/custodial.test.mjs +11 -11
- package/dist/resources/wallets/offramp.d.mts +7 -7
- package/dist/resources/wallets/offramp.d.ts +7 -7
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +152 -145
- package/dist/resources/wallets/offramp.test.mjs +13 -13
- package/dist/resources/webhooks/webhooks.test.js +146 -139
- package/dist/resources/webhooks/webhooks.test.mjs +7 -7
- package/package.json +1 -1
- package/dist/chunk-YIZJM2GU.mjs +0 -69
- package/dist/resources/receivers/index.mjs +0 -9
- /package/dist/resources/{receivers/receivers.test.d.mts → customers/customers.test.d.mts} +0 -0
- /package/dist/resources/{receivers/receivers.test.d.ts → customers/customers.test.d.ts} +0 -0
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-ECYZLQUR.mjs";
|
|
12
|
+
import "../../chunk-VAVDEV6P.mjs";
|
|
13
|
+
import "../../chunk-TVOMVVOO.mjs";
|
|
14
|
+
import "../../chunk-YHI3J2CL.mjs";
|
|
15
15
|
import "../../chunk-UC57SCKQ.mjs";
|
|
16
16
|
import "../../chunk-ISHZTBAN.mjs";
|
|
17
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-SWTOSLUI.mjs";
|
|
19
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
20
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
21
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
22
|
-
import "../../chunk-YIZJM2GU.mjs";
|
|
23
22
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
23
|
+
import "../../chunk-SLKVEQUY.mjs";
|
|
24
24
|
import "../../chunk-ALHMJWQN.mjs";
|
|
25
25
|
import "../../chunk-KYOUR4KX.mjs";
|
|
26
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
27
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
28
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-L23IOSI3.mjs";
|
|
31
31
|
import {
|
|
32
32
|
__async,
|
|
33
33
|
__commonJS
|
|
@@ -167,7 +167,7 @@ var require_virtual_accounts_test = __commonJS({
|
|
|
167
167
|
headers: { "Content-Type": "application/json" }
|
|
168
168
|
});
|
|
169
169
|
const { data, error } = yield blindpay.virtualAccounts.get({
|
|
170
|
-
|
|
170
|
+
customer_id: "re_000000000000",
|
|
171
171
|
id: "va_000000000000"
|
|
172
172
|
});
|
|
173
173
|
globalExpect(error).toBeNull();
|
|
@@ -217,7 +217,7 @@ var require_virtual_accounts_test = __commonJS({
|
|
|
217
217
|
headers: { "Content-Type": "application/json" }
|
|
218
218
|
});
|
|
219
219
|
const { data, error } = yield blindpay.virtualAccounts.create({
|
|
220
|
-
|
|
220
|
+
customer_id: "re_000000000000",
|
|
221
221
|
banking_partner: "jpmorgan",
|
|
222
222
|
blockchain_wallet_id: "bw_000000000000",
|
|
223
223
|
token: "USDC",
|
|
@@ -276,7 +276,7 @@ var require_virtual_accounts_test = __commonJS({
|
|
|
276
276
|
headers: { "Content-Type": "application/json" }
|
|
277
277
|
});
|
|
278
278
|
const { data, error } = yield blindpay.virtualAccounts.create({
|
|
279
|
-
|
|
279
|
+
customer_id: "re_000000000000",
|
|
280
280
|
banking_partner: "cfsb",
|
|
281
281
|
blockchain_wallet_id: "bw_000000000000",
|
|
282
282
|
token: "USDC",
|
|
@@ -293,7 +293,7 @@ var require_virtual_accounts_test = __commonJS({
|
|
|
293
293
|
headers: { "Content-Type": "application/json" }
|
|
294
294
|
});
|
|
295
295
|
const { data, error } = yield blindpay.virtualAccounts.update({
|
|
296
|
-
|
|
296
|
+
customer_id: "re_000000000000",
|
|
297
297
|
id: "va_000000000000",
|
|
298
298
|
blockchain_wallet_id: "bw_000000000001",
|
|
299
299
|
token: "USDT"
|
|
@@ -13,26 +13,26 @@ type ListBlockchainWalletsResponse = Array<{
|
|
|
13
13
|
address?: string;
|
|
14
14
|
signature_tx_hash?: string;
|
|
15
15
|
is_account_abstraction: boolean;
|
|
16
|
-
|
|
16
|
+
customer_id: string;
|
|
17
17
|
}>;
|
|
18
18
|
type CreateBlockchainWalletWithAddressInput = {
|
|
19
|
-
|
|
19
|
+
customer_id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
network: Network;
|
|
22
22
|
address: string;
|
|
23
23
|
};
|
|
24
24
|
type CreateBlockchainWalletWithHashInput = {
|
|
25
|
-
|
|
25
|
+
customer_id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
network: Network;
|
|
28
28
|
signature_tx_hash: string;
|
|
29
29
|
};
|
|
30
30
|
type GetBlockchainWalletInput = {
|
|
31
|
-
|
|
31
|
+
customer_id: string;
|
|
32
32
|
id: string;
|
|
33
33
|
};
|
|
34
34
|
type DeleteBlockchainWalletInput = {
|
|
35
|
-
|
|
35
|
+
customer_id: string;
|
|
36
36
|
id: string;
|
|
37
37
|
};
|
|
38
38
|
type GetBlockchainWalletResponse = {
|
|
@@ -42,7 +42,7 @@ type GetBlockchainWalletResponse = {
|
|
|
42
42
|
address?: string;
|
|
43
43
|
signature_tx_hash?: string;
|
|
44
44
|
is_account_abstraction: boolean;
|
|
45
|
-
|
|
45
|
+
customer_id: string;
|
|
46
46
|
};
|
|
47
47
|
type CreateBlockchainWalletResponse = {
|
|
48
48
|
id: string;
|
|
@@ -51,7 +51,7 @@ type CreateBlockchainWalletResponse = {
|
|
|
51
51
|
address?: string;
|
|
52
52
|
signature_tx_hash?: string;
|
|
53
53
|
is_account_abstraction: boolean;
|
|
54
|
-
|
|
54
|
+
customer_id: string;
|
|
55
55
|
};
|
|
56
56
|
type CreateAssetTrustlineInput = string;
|
|
57
57
|
type CreateAssetTrustlineResponse = {
|
|
@@ -81,12 +81,12 @@ type MintUsdbSolanaResponse = {
|
|
|
81
81
|
error: string;
|
|
82
82
|
};
|
|
83
83
|
declare function createBlockchainWalletsResource(instanceId: string, client: InternalApiClient): {
|
|
84
|
-
list(
|
|
85
|
-
createWithAddress({
|
|
86
|
-
createWithHash({
|
|
87
|
-
getWalletMessage(
|
|
88
|
-
get({
|
|
89
|
-
delete({
|
|
84
|
+
list(customer_id: ListBlockchainWalletsInput): Promise<BlindpayApiResponse<ListBlockchainWalletsResponse>>;
|
|
85
|
+
createWithAddress({ customer_id, ...data }: CreateBlockchainWalletWithAddressInput): Promise<BlindpayApiResponse<CreateBlockchainWalletResponse>>;
|
|
86
|
+
createWithHash({ customer_id, ...data }: CreateBlockchainWalletWithHashInput): Promise<BlindpayApiResponse<CreateBlockchainWalletResponse>>;
|
|
87
|
+
getWalletMessage(customer_id: GetBlockchainWalletMessage): Promise<BlindpayApiResponse<GetBlockchainWalletMessageResponse>>;
|
|
88
|
+
get({ customer_id, id, }: GetBlockchainWalletInput): Promise<BlindpayApiResponse<GetBlockchainWalletResponse>>;
|
|
89
|
+
delete({ customer_id, id, }: DeleteBlockchainWalletInput): Promise<BlindpayApiResponse<void>>;
|
|
90
90
|
createAssetTrustline(address: CreateAssetTrustlineInput): Promise<BlindpayApiResponse<CreateAssetTrustlineResponse>>;
|
|
91
91
|
mintUsdbStellar({ ...data }: MintUsdbStellarInput): Promise<BlindpayApiResponse<void>>;
|
|
92
92
|
mintUsdbSolana({ ...data }: MintUsdbSolanaInput): Promise<BlindpayApiResponse<void>>;
|
|
@@ -13,26 +13,26 @@ type ListBlockchainWalletsResponse = Array<{
|
|
|
13
13
|
address?: string;
|
|
14
14
|
signature_tx_hash?: string;
|
|
15
15
|
is_account_abstraction: boolean;
|
|
16
|
-
|
|
16
|
+
customer_id: string;
|
|
17
17
|
}>;
|
|
18
18
|
type CreateBlockchainWalletWithAddressInput = {
|
|
19
|
-
|
|
19
|
+
customer_id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
network: Network;
|
|
22
22
|
address: string;
|
|
23
23
|
};
|
|
24
24
|
type CreateBlockchainWalletWithHashInput = {
|
|
25
|
-
|
|
25
|
+
customer_id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
network: Network;
|
|
28
28
|
signature_tx_hash: string;
|
|
29
29
|
};
|
|
30
30
|
type GetBlockchainWalletInput = {
|
|
31
|
-
|
|
31
|
+
customer_id: string;
|
|
32
32
|
id: string;
|
|
33
33
|
};
|
|
34
34
|
type DeleteBlockchainWalletInput = {
|
|
35
|
-
|
|
35
|
+
customer_id: string;
|
|
36
36
|
id: string;
|
|
37
37
|
};
|
|
38
38
|
type GetBlockchainWalletResponse = {
|
|
@@ -42,7 +42,7 @@ type GetBlockchainWalletResponse = {
|
|
|
42
42
|
address?: string;
|
|
43
43
|
signature_tx_hash?: string;
|
|
44
44
|
is_account_abstraction: boolean;
|
|
45
|
-
|
|
45
|
+
customer_id: string;
|
|
46
46
|
};
|
|
47
47
|
type CreateBlockchainWalletResponse = {
|
|
48
48
|
id: string;
|
|
@@ -51,7 +51,7 @@ type CreateBlockchainWalletResponse = {
|
|
|
51
51
|
address?: string;
|
|
52
52
|
signature_tx_hash?: string;
|
|
53
53
|
is_account_abstraction: boolean;
|
|
54
|
-
|
|
54
|
+
customer_id: string;
|
|
55
55
|
};
|
|
56
56
|
type CreateAssetTrustlineInput = string;
|
|
57
57
|
type CreateAssetTrustlineResponse = {
|
|
@@ -81,12 +81,12 @@ type MintUsdbSolanaResponse = {
|
|
|
81
81
|
error: string;
|
|
82
82
|
};
|
|
83
83
|
declare function createBlockchainWalletsResource(instanceId: string, client: InternalApiClient): {
|
|
84
|
-
list(
|
|
85
|
-
createWithAddress({
|
|
86
|
-
createWithHash({
|
|
87
|
-
getWalletMessage(
|
|
88
|
-
get({
|
|
89
|
-
delete({
|
|
84
|
+
list(customer_id: ListBlockchainWalletsInput): Promise<BlindpayApiResponse<ListBlockchainWalletsResponse>>;
|
|
85
|
+
createWithAddress({ customer_id, ...data }: CreateBlockchainWalletWithAddressInput): Promise<BlindpayApiResponse<CreateBlockchainWalletResponse>>;
|
|
86
|
+
createWithHash({ customer_id, ...data }: CreateBlockchainWalletWithHashInput): Promise<BlindpayApiResponse<CreateBlockchainWalletResponse>>;
|
|
87
|
+
getWalletMessage(customer_id: GetBlockchainWalletMessage): Promise<BlindpayApiResponse<GetBlockchainWalletMessageResponse>>;
|
|
88
|
+
get({ customer_id, id, }: GetBlockchainWalletInput): Promise<BlindpayApiResponse<GetBlockchainWalletResponse>>;
|
|
89
|
+
delete({ customer_id, id, }: DeleteBlockchainWalletInput): Promise<BlindpayApiResponse<void>>;
|
|
90
90
|
createAssetTrustline(address: CreateAssetTrustlineInput): Promise<BlindpayApiResponse<CreateAssetTrustlineResponse>>;
|
|
91
91
|
mintUsdbStellar({ ...data }: MintUsdbStellarInput): Promise<BlindpayApiResponse<void>>;
|
|
92
92
|
mintUsdbSolana({ ...data }: MintUsdbSolanaInput): Promise<BlindpayApiResponse<void>>;
|
|
@@ -54,19 +54,19 @@ __export(blockchain_exports, {
|
|
|
54
54
|
module.exports = __toCommonJS(blockchain_exports);
|
|
55
55
|
function createBlockchainWalletsResource(instanceId, client) {
|
|
56
56
|
return {
|
|
57
|
-
list(
|
|
57
|
+
list(customer_id) {
|
|
58
58
|
return client.get(
|
|
59
|
-
`/instances/${instanceId}/
|
|
59
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`
|
|
60
60
|
);
|
|
61
61
|
},
|
|
62
62
|
createWithAddress(_a) {
|
|
63
63
|
var _b = _a, {
|
|
64
|
-
|
|
64
|
+
customer_id
|
|
65
65
|
} = _b, data = __objRest(_b, [
|
|
66
|
-
"
|
|
66
|
+
"customer_id"
|
|
67
67
|
]);
|
|
68
68
|
return client.post(
|
|
69
|
-
`/instances/${instanceId}/
|
|
69
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
70
70
|
__spreadProps(__spreadValues({}, data), {
|
|
71
71
|
is_account_abstraction: true
|
|
72
72
|
})
|
|
@@ -74,36 +74,36 @@ function createBlockchainWalletsResource(instanceId, client) {
|
|
|
74
74
|
},
|
|
75
75
|
createWithHash(_c) {
|
|
76
76
|
var _d = _c, {
|
|
77
|
-
|
|
77
|
+
customer_id
|
|
78
78
|
} = _d, data = __objRest(_d, [
|
|
79
|
-
"
|
|
79
|
+
"customer_id"
|
|
80
80
|
]);
|
|
81
81
|
return client.post(
|
|
82
|
-
`/instances/${instanceId}/
|
|
82
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
83
83
|
__spreadProps(__spreadValues({}, data), {
|
|
84
84
|
is_account_abstraction: false
|
|
85
85
|
})
|
|
86
86
|
);
|
|
87
87
|
},
|
|
88
|
-
getWalletMessage(
|
|
88
|
+
getWalletMessage(customer_id) {
|
|
89
89
|
return client.get(
|
|
90
|
-
`/instances/${instanceId}/
|
|
90
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/sign-message`
|
|
91
91
|
);
|
|
92
92
|
},
|
|
93
93
|
get({
|
|
94
|
-
|
|
94
|
+
customer_id,
|
|
95
95
|
id
|
|
96
96
|
}) {
|
|
97
97
|
return client.get(
|
|
98
|
-
`/instances/${instanceId}/
|
|
98
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
99
99
|
);
|
|
100
100
|
},
|
|
101
101
|
delete({
|
|
102
|
-
|
|
102
|
+
customer_id,
|
|
103
103
|
id
|
|
104
104
|
}) {
|
|
105
105
|
return client.delete(
|
|
106
|
-
`/instances/${instanceId}/
|
|
106
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
107
107
|
);
|
|
108
108
|
},
|
|
109
109
|
createAssetTrustline(address) {
|