@blindpay/node 1.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 (139) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/dist/api-client-Cw2mNJeR.d.mts +349 -0
  4. package/dist/api-client-Cw2mNJeR.d.ts +349 -0
  5. package/dist/chunk-2DAKB5XK.mjs +212 -0
  6. package/dist/chunk-3CZJEDS5.mjs +41 -0
  7. package/dist/chunk-CNNEROQ7.mjs +46 -0
  8. package/dist/chunk-ES7RXEM7.mjs +245 -0
  9. package/dist/chunk-GCCHFONX.mjs +17893 -0
  10. package/dist/chunk-GEDDLCJY.mjs +77 -0
  11. package/dist/chunk-GNDAATIJ.mjs +35 -0
  12. package/dist/chunk-HKFAJXJG.mjs +65 -0
  13. package/dist/chunk-LK3JPQ6I.mjs +49 -0
  14. package/dist/chunk-LLWEHHKB.mjs +47 -0
  15. package/dist/chunk-LUDGZPXY.mjs +51 -0
  16. package/dist/chunk-M6IYYMRW.mjs +35 -0
  17. package/dist/chunk-OBKEW4AQ.mjs +91 -0
  18. package/dist/chunk-QHMIK7U3.mjs +24 -0
  19. package/dist/chunk-QVOSGLUO.mjs +36 -0
  20. package/dist/chunk-UCAW3RTZ.mjs +47 -0
  21. package/dist/chunk-VKN2AMCW.mjs +57 -0
  22. package/dist/index.d.mts +81 -0
  23. package/dist/index.d.ts +81 -0
  24. package/dist/index.js +895 -0
  25. package/dist/index.mjs +95 -0
  26. package/dist/magic-string.es-6D2DRE4K.mjs +1325 -0
  27. package/dist/resources/api-keys/api-keys.test.d.mts +2 -0
  28. package/dist/resources/api-keys/api-keys.test.d.ts +2 -0
  29. package/dist/resources/api-keys/api-keys.test.js +19881 -0
  30. package/dist/resources/api-keys/api-keys.test.mjs +130 -0
  31. package/dist/resources/api-keys/index.d.mts +45 -0
  32. package/dist/resources/api-keys/index.d.ts +45 -0
  33. package/dist/resources/api-keys/index.js +64 -0
  34. package/dist/resources/api-keys/index.mjs +9 -0
  35. package/dist/resources/available/available.test.d.mts +2 -0
  36. package/dist/resources/available/available.test.d.ts +2 -0
  37. package/dist/resources/available/available.test.js +19877 -0
  38. package/dist/resources/available/available.test.mjs +122 -0
  39. package/dist/resources/available/index.d.mts +25 -0
  40. package/dist/resources/available/index.d.ts +25 -0
  41. package/dist/resources/available/index.js +39 -0
  42. package/dist/resources/available/index.mjs +9 -0
  43. package/dist/resources/bank-accounts/bank-accounts.test.d.mts +2 -0
  44. package/dist/resources/bank-accounts/bank-accounts.test.d.ts +2 -0
  45. package/dist/resources/bank-accounts/bank-accounts.test.js +20173 -0
  46. package/dist/resources/bank-accounts/bank-accounts.test.mjs +418 -0
  47. package/dist/resources/bank-accounts/index.d.mts +414 -0
  48. package/dist/resources/bank-accounts/index.d.ts +414 -0
  49. package/dist/resources/bank-accounts/index.js +227 -0
  50. package/dist/resources/bank-accounts/index.mjs +9 -0
  51. package/dist/resources/instances/index.d.mts +42 -0
  52. package/dist/resources/instances/index.d.ts +42 -0
  53. package/dist/resources/instances/index.js +75 -0
  54. package/dist/resources/instances/index.mjs +9 -0
  55. package/dist/resources/instances/instances.test.d.mts +2 -0
  56. package/dist/resources/instances/instances.test.d.ts +2 -0
  57. package/dist/resources/instances/instances.test.js +19873 -0
  58. package/dist/resources/instances/instances.test.mjs +118 -0
  59. package/dist/resources/partner-fees/index.d.mts +65 -0
  60. package/dist/resources/partner-fees/index.d.ts +65 -0
  61. package/dist/resources/partner-fees/index.js +69 -0
  62. package/dist/resources/partner-fees/index.mjs +9 -0
  63. package/dist/resources/partner-fees/partner-fees.test.d.mts +2 -0
  64. package/dist/resources/partner-fees/partner-fees.test.d.ts +2 -0
  65. package/dist/resources/partner-fees/partner-fees.test.js +19889 -0
  66. package/dist/resources/partner-fees/partner-fees.test.mjs +134 -0
  67. package/dist/resources/payins/index.d.mts +200 -0
  68. package/dist/resources/payins/index.d.ts +200 -0
  69. package/dist/resources/payins/index.js +75 -0
  70. package/dist/resources/payins/index.mjs +9 -0
  71. package/dist/resources/payins/payins-quotes.test.d.mts +2 -0
  72. package/dist/resources/payins/payins-quotes.test.d.ts +2 -0
  73. package/dist/resources/payins/payins-quotes.test.js +19852 -0
  74. package/dist/resources/payins/payins-quotes.test.mjs +97 -0
  75. package/dist/resources/payins/payins.test.d.mts +2 -0
  76. package/dist/resources/payins/payins.test.d.ts +2 -0
  77. package/dist/resources/payins/payins.test.js +20268 -0
  78. package/dist/resources/payins/payins.test.mjs +513 -0
  79. package/dist/resources/payins/quotes.d.mts +45 -0
  80. package/dist/resources/payins/quotes.d.ts +45 -0
  81. package/dist/resources/payins/quotes.js +63 -0
  82. package/dist/resources/payins/quotes.mjs +9 -0
  83. package/dist/resources/payouts/index.d.mts +155 -0
  84. package/dist/resources/payouts/index.d.ts +155 -0
  85. package/dist/resources/payouts/index.js +93 -0
  86. package/dist/resources/payouts/index.mjs +9 -0
  87. package/dist/resources/payouts/payouts.test.d.mts +2 -0
  88. package/dist/resources/payouts/payouts.test.d.ts +2 -0
  89. package/dist/resources/payouts/payouts.test.js +20346 -0
  90. package/dist/resources/payouts/payouts.test.mjs +591 -0
  91. package/dist/resources/quotes/index.d.mts +59 -0
  92. package/dist/resources/quotes/index.d.ts +59 -0
  93. package/dist/resources/quotes/index.js +63 -0
  94. package/dist/resources/quotes/index.mjs +9 -0
  95. package/dist/resources/quotes/quotes.test.d.mts +2 -0
  96. package/dist/resources/quotes/quotes.test.d.ts +2 -0
  97. package/dist/resources/quotes/quotes.test.js +19866 -0
  98. package/dist/resources/quotes/quotes.test.mjs +111 -0
  99. package/dist/resources/receivers/index.d.mts +205 -0
  100. package/dist/resources/receivers/index.d.ts +205 -0
  101. package/dist/resources/receivers/index.js +85 -0
  102. package/dist/resources/receivers/index.mjs +9 -0
  103. package/dist/resources/receivers/receivers.test.d.mts +2 -0
  104. package/dist/resources/receivers/receivers.test.d.ts +2 -0
  105. package/dist/resources/receivers/receivers.test.js +20145 -0
  106. package/dist/resources/receivers/receivers.test.mjs +390 -0
  107. package/dist/resources/virtual-accounts/index.d.mts +58 -0
  108. package/dist/resources/virtual-accounts/index.d.ts +58 -0
  109. package/dist/resources/virtual-accounts/index.js +79 -0
  110. package/dist/resources/virtual-accounts/index.mjs +9 -0
  111. package/dist/resources/virtual-accounts/virtual-accounts.test.d.mts +2 -0
  112. package/dist/resources/virtual-accounts/virtual-accounts.test.d.ts +2 -0
  113. package/dist/resources/virtual-accounts/virtual-accounts.test.js +19902 -0
  114. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +147 -0
  115. package/dist/resources/wallets/blockchain.d.mts +83 -0
  116. package/dist/resources/wallets/blockchain.d.ts +83 -0
  117. package/dist/resources/wallets/blockchain.js +105 -0
  118. package/dist/resources/wallets/blockchain.mjs +9 -0
  119. package/dist/resources/wallets/blockchain.test.d.mts +2 -0
  120. package/dist/resources/wallets/blockchain.test.d.ts +2 -0
  121. package/dist/resources/wallets/blockchain.test.js +19897 -0
  122. package/dist/resources/wallets/blockchain.test.mjs +142 -0
  123. package/dist/resources/wallets/offramp.d.mts +46 -0
  124. package/dist/resources/wallets/offramp.d.ts +46 -0
  125. package/dist/resources/wallets/offramp.js +77 -0
  126. package/dist/resources/wallets/offramp.mjs +9 -0
  127. package/dist/resources/wallets/offramp.test.d.mts +2 -0
  128. package/dist/resources/wallets/offramp.test.d.ts +2 -0
  129. package/dist/resources/wallets/offramp.test.js +19872 -0
  130. package/dist/resources/wallets/offramp.test.mjs +117 -0
  131. package/dist/resources/webhooks/index.d.mts +49 -0
  132. package/dist/resources/webhooks/index.d.ts +49 -0
  133. package/dist/resources/webhooks/index.js +74 -0
  134. package/dist/resources/webhooks/index.mjs +9 -0
  135. package/dist/resources/webhooks/webhooks.test.d.mts +2 -0
  136. package/dist/resources/webhooks/webhooks.test.d.ts +2 -0
  137. package/dist/resources/webhooks/webhooks.test.js +19878 -0
  138. package/dist/resources/webhooks/webhooks.test.mjs +123 -0
  139. package/package.json +65 -0
@@ -0,0 +1,147 @@
1
+ import {
2
+ afterEach,
3
+ describe,
4
+ globalExpect,
5
+ init_dist,
6
+ it
7
+ } from "../../chunk-GCCHFONX.mjs";
8
+ import {
9
+ Blindpay,
10
+ init_client
11
+ } from "../../chunk-ES7RXEM7.mjs";
12
+ import "../../chunk-GEDDLCJY.mjs";
13
+ import "../../chunk-LK3JPQ6I.mjs";
14
+ import "../../chunk-CNNEROQ7.mjs";
15
+ import "../../chunk-GNDAATIJ.mjs";
16
+ import "../../chunk-VKN2AMCW.mjs";
17
+ import "../../chunk-LUDGZPXY.mjs";
18
+ import "../../chunk-3CZJEDS5.mjs";
19
+ import "../../chunk-UCAW3RTZ.mjs";
20
+ import "../../chunk-M6IYYMRW.mjs";
21
+ import "../../chunk-HKFAJXJG.mjs";
22
+ import "../../chunk-QVOSGLUO.mjs";
23
+ import "../../chunk-2DAKB5XK.mjs";
24
+ import "../../chunk-QHMIK7U3.mjs";
25
+ import "../../chunk-LLWEHHKB.mjs";
26
+ import {
27
+ __async,
28
+ __commonJS
29
+ } from "../../chunk-OBKEW4AQ.mjs";
30
+
31
+ // src/resources/virtual-accounts/virtual-accounts.test.ts
32
+ var require_virtual_accounts_test = __commonJS({
33
+ "src/resources/virtual-accounts/virtual-accounts.test.ts"(exports) {
34
+ init_dist();
35
+ init_client();
36
+ describe("Virtual accounts", () => {
37
+ afterEach(() => fetchMock.resetMocks());
38
+ const blindpay = new Blindpay("test-key");
39
+ describe("Update virtual account", () => {
40
+ it("should update a virtual account", () => __async(null, null, function* () {
41
+ fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
42
+ headers: { "Content-Type": "application/json" }
43
+ });
44
+ const { data, error } = yield blindpay.virtualAccounts.update({
45
+ instanceId: "in_000000000000",
46
+ receiverId: "re_000000000000",
47
+ blockchain_wallet_id: "bw_000000000000",
48
+ token: "USDC"
49
+ });
50
+ globalExpect(error).toBeNull();
51
+ globalExpect(data).toEqual({ data: null });
52
+ }));
53
+ });
54
+ describe("Create virtual account", () => {
55
+ it("should create a virtual account", () => __async(null, null, function* () {
56
+ const mockedVirtualAccount = {
57
+ id: "va_000000000000",
58
+ us: {
59
+ ach: {
60
+ routing_number: "123456789",
61
+ account_number: "123456789"
62
+ },
63
+ wire: {
64
+ routing_number: "123456789",
65
+ account_number: "123456789"
66
+ },
67
+ rtp: {
68
+ routing_number: "123456789",
69
+ account_number: "123456789"
70
+ },
71
+ swift_bic_code: "CHASUS33",
72
+ account_type: "Business checking",
73
+ beneficiary: {
74
+ name: "Receiver Name",
75
+ address_line_1: "8 The Green, #19364",
76
+ address_line_2: "Dover, DE 19901"
77
+ },
78
+ receiving_bank: {
79
+ name: "JPMorgan Chase",
80
+ address_line_1: "270 Park Ave",
81
+ address_line_2: "New York, NY, 10017-2070"
82
+ }
83
+ },
84
+ token: "USDC",
85
+ blockchain_wallet_id: "bw_000000000000"
86
+ };
87
+ fetchMock.mockResponseOnce(JSON.stringify(mockedVirtualAccount), {
88
+ headers: { "Content-Type": "application/json" }
89
+ });
90
+ const { data, error } = yield blindpay.virtualAccounts.create({
91
+ instanceId: "in_000000000000",
92
+ receiverId: "re_000000000000",
93
+ blockchain_wallet_id: "bw_000000000000",
94
+ token: "USDC"
95
+ });
96
+ globalExpect(error).toBeNull();
97
+ globalExpect(data).toEqual(mockedVirtualAccount);
98
+ }));
99
+ });
100
+ describe("Get virtual account", () => {
101
+ it("should get a virtual account", () => __async(null, null, function* () {
102
+ const mockedVirtualAccount = {
103
+ id: "va_000000000000",
104
+ us: {
105
+ ach: {
106
+ routing_number: "123456789",
107
+ account_number: "123456789"
108
+ },
109
+ wire: {
110
+ routing_number: "123456789",
111
+ account_number: "123456789"
112
+ },
113
+ rtp: {
114
+ routing_number: "123456789",
115
+ account_number: "123456789"
116
+ },
117
+ swift_bic_code: "CHASUS33",
118
+ account_type: "Business checking",
119
+ beneficiary: {
120
+ name: "Receiver Name",
121
+ address_line_1: "8 The Green, #19364",
122
+ address_line_2: "Dover, DE 19901"
123
+ },
124
+ receiving_bank: {
125
+ name: "JPMorgan Chase",
126
+ address_line_1: "270 Park Ave",
127
+ address_line_2: "New York, NY, 10017-2070"
128
+ }
129
+ },
130
+ token: "USDC",
131
+ blockchain_wallet_id: "bw_000000000000"
132
+ };
133
+ fetchMock.mockResponseOnce(JSON.stringify(mockedVirtualAccount), {
134
+ headers: { "Content-Type": "application/json" }
135
+ });
136
+ const { data, error } = yield blindpay.virtualAccounts.get({
137
+ instanceId: "in_000000000000",
138
+ receiverId: "re_000000000000"
139
+ });
140
+ globalExpect(error).toBeNull();
141
+ globalExpect(data).toEqual(mockedVirtualAccount);
142
+ }));
143
+ });
144
+ });
145
+ }
146
+ });
147
+ export default require_virtual_accounts_test();
@@ -0,0 +1,83 @@
1
+ import { I as InternalApiClient, B as BlindpayApiResponse, N as Network } from '../../api-client-Cw2mNJeR.mjs';
2
+
3
+ type GetBlockchainWalletMessage = {
4
+ receiverId: string;
5
+ instanceId: string;
6
+ };
7
+ type GetBlockchainWalletMessageResponse = {
8
+ message: string;
9
+ };
10
+ type ListBlockchainWalletsInput = {
11
+ instanceId: string;
12
+ receiverId: string;
13
+ };
14
+ type ListBlockchainWalletsResponse = Array<{
15
+ id: string;
16
+ name: string;
17
+ network: Network;
18
+ address?: string;
19
+ signature_tx_hash?: string;
20
+ is_account_abstraction: boolean;
21
+ receiver_id: string;
22
+ }>;
23
+ type CreateBlockchainWalletInput = {
24
+ instanceId: string;
25
+ receiverId: string;
26
+ name: string;
27
+ network: Network;
28
+ address: string;
29
+ is_account_abstraction?: boolean;
30
+ signature_tx_hash?: string;
31
+ };
32
+ type GetBlockchainWalletInput = {
33
+ instanceId: string;
34
+ receiverId: string;
35
+ id: string;
36
+ };
37
+ type DeleteBlockchainWalletInput = {
38
+ instanceId: string;
39
+ receiverId: string;
40
+ id: string;
41
+ };
42
+ type GetBlockchainWalletResponse = {
43
+ id: string;
44
+ name: string;
45
+ network: Network;
46
+ address?: string;
47
+ signature_tx_hash?: string;
48
+ is_account_abstraction: boolean;
49
+ receiver_id: string;
50
+ };
51
+ type CreateBlockchainWalletResponse = {
52
+ id: string;
53
+ name: string;
54
+ network: Network;
55
+ address?: string;
56
+ signature_tx_hash?: string;
57
+ is_account_abstraction: boolean;
58
+ receiver_id: string;
59
+ };
60
+ type CreateAssetTrustlineInput = {
61
+ instanceId: string;
62
+ address: string;
63
+ };
64
+ type CreateAssetTrustlineResponse = {
65
+ xdr: string;
66
+ };
67
+ type MintUsdbStellarInput = {
68
+ instanceId: string;
69
+ address: string;
70
+ amount: string;
71
+ signedXdr: string;
72
+ };
73
+ declare function createBlockchainWalletsResource(client: InternalApiClient): {
74
+ list({ instanceId, receiverId, }: ListBlockchainWalletsInput): Promise<BlindpayApiResponse<ListBlockchainWalletsResponse>>;
75
+ create({ instanceId, ...data }: CreateBlockchainWalletInput): Promise<BlindpayApiResponse<CreateBlockchainWalletResponse>>;
76
+ getWalletMessage({ receiverId, instanceId, }: GetBlockchainWalletMessage): Promise<BlindpayApiResponse<GetBlockchainWalletMessageResponse>>;
77
+ get({ instanceId, receiverId, id, }: GetBlockchainWalletInput): Promise<BlindpayApiResponse<GetBlockchainWalletResponse>>;
78
+ delete({ instanceId, receiverId, id, }: DeleteBlockchainWalletInput): Promise<BlindpayApiResponse<void>>;
79
+ createAssetTrustline({ instanceId, ...data }: CreateAssetTrustlineInput): Promise<BlindpayApiResponse<CreateAssetTrustlineResponse>>;
80
+ mintUsdbStellar({ instanceId, ...data }: MintUsdbStellarInput): Promise<BlindpayApiResponse<void>>;
81
+ };
82
+
83
+ export { type CreateAssetTrustlineInput, type CreateAssetTrustlineResponse, type CreateBlockchainWalletInput, type CreateBlockchainWalletResponse, type DeleteBlockchainWalletInput, type GetBlockchainWalletInput, type GetBlockchainWalletMessage, type GetBlockchainWalletMessageResponse, type GetBlockchainWalletResponse, type ListBlockchainWalletsInput, type ListBlockchainWalletsResponse, type MintUsdbStellarInput, createBlockchainWalletsResource };
@@ -0,0 +1,83 @@
1
+ import { I as InternalApiClient, B as BlindpayApiResponse, N as Network } from '../../api-client-Cw2mNJeR.js';
2
+
3
+ type GetBlockchainWalletMessage = {
4
+ receiverId: string;
5
+ instanceId: string;
6
+ };
7
+ type GetBlockchainWalletMessageResponse = {
8
+ message: string;
9
+ };
10
+ type ListBlockchainWalletsInput = {
11
+ instanceId: string;
12
+ receiverId: string;
13
+ };
14
+ type ListBlockchainWalletsResponse = Array<{
15
+ id: string;
16
+ name: string;
17
+ network: Network;
18
+ address?: string;
19
+ signature_tx_hash?: string;
20
+ is_account_abstraction: boolean;
21
+ receiver_id: string;
22
+ }>;
23
+ type CreateBlockchainWalletInput = {
24
+ instanceId: string;
25
+ receiverId: string;
26
+ name: string;
27
+ network: Network;
28
+ address: string;
29
+ is_account_abstraction?: boolean;
30
+ signature_tx_hash?: string;
31
+ };
32
+ type GetBlockchainWalletInput = {
33
+ instanceId: string;
34
+ receiverId: string;
35
+ id: string;
36
+ };
37
+ type DeleteBlockchainWalletInput = {
38
+ instanceId: string;
39
+ receiverId: string;
40
+ id: string;
41
+ };
42
+ type GetBlockchainWalletResponse = {
43
+ id: string;
44
+ name: string;
45
+ network: Network;
46
+ address?: string;
47
+ signature_tx_hash?: string;
48
+ is_account_abstraction: boolean;
49
+ receiver_id: string;
50
+ };
51
+ type CreateBlockchainWalletResponse = {
52
+ id: string;
53
+ name: string;
54
+ network: Network;
55
+ address?: string;
56
+ signature_tx_hash?: string;
57
+ is_account_abstraction: boolean;
58
+ receiver_id: string;
59
+ };
60
+ type CreateAssetTrustlineInput = {
61
+ instanceId: string;
62
+ address: string;
63
+ };
64
+ type CreateAssetTrustlineResponse = {
65
+ xdr: string;
66
+ };
67
+ type MintUsdbStellarInput = {
68
+ instanceId: string;
69
+ address: string;
70
+ amount: string;
71
+ signedXdr: string;
72
+ };
73
+ declare function createBlockchainWalletsResource(client: InternalApiClient): {
74
+ list({ instanceId, receiverId, }: ListBlockchainWalletsInput): Promise<BlindpayApiResponse<ListBlockchainWalletsResponse>>;
75
+ create({ instanceId, ...data }: CreateBlockchainWalletInput): Promise<BlindpayApiResponse<CreateBlockchainWalletResponse>>;
76
+ getWalletMessage({ receiverId, instanceId, }: GetBlockchainWalletMessage): Promise<BlindpayApiResponse<GetBlockchainWalletMessageResponse>>;
77
+ get({ instanceId, receiverId, id, }: GetBlockchainWalletInput): Promise<BlindpayApiResponse<GetBlockchainWalletResponse>>;
78
+ delete({ instanceId, receiverId, id, }: DeleteBlockchainWalletInput): Promise<BlindpayApiResponse<void>>;
79
+ createAssetTrustline({ instanceId, ...data }: CreateAssetTrustlineInput): Promise<BlindpayApiResponse<CreateAssetTrustlineResponse>>;
80
+ mintUsdbStellar({ instanceId, ...data }: MintUsdbStellarInput): Promise<BlindpayApiResponse<void>>;
81
+ };
82
+
83
+ export { type CreateAssetTrustlineInput, type CreateAssetTrustlineResponse, type CreateBlockchainWalletInput, type CreateBlockchainWalletResponse, type DeleteBlockchainWalletInput, type GetBlockchainWalletInput, type GetBlockchainWalletMessage, type GetBlockchainWalletMessageResponse, type GetBlockchainWalletResponse, type ListBlockchainWalletsInput, type ListBlockchainWalletsResponse, type MintUsdbStellarInput, createBlockchainWalletsResource };
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __objRest = (source, exclude) => {
9
+ var target = {};
10
+ for (var prop in source)
11
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
12
+ target[prop] = source[prop];
13
+ if (source != null && __getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(source)) {
15
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
16
+ target[prop] = source[prop];
17
+ }
18
+ return target;
19
+ };
20
+ var __export = (target, all) => {
21
+ for (var name in all)
22
+ __defProp(target, name, { get: all[name], enumerable: true });
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") {
26
+ for (let key of __getOwnPropNames(from))
27
+ if (!__hasOwnProp.call(to, key) && key !== except)
28
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
+ }
30
+ return to;
31
+ };
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
+
34
+ // src/resources/wallets/blockchain.ts
35
+ var blockchain_exports = {};
36
+ __export(blockchain_exports, {
37
+ createBlockchainWalletsResource: () => createBlockchainWalletsResource
38
+ });
39
+ module.exports = __toCommonJS(blockchain_exports);
40
+ function createBlockchainWalletsResource(client) {
41
+ return {
42
+ list({
43
+ instanceId,
44
+ receiverId
45
+ }) {
46
+ return client.get(
47
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets`
48
+ );
49
+ },
50
+ create(_a) {
51
+ var _b = _a, {
52
+ instanceId
53
+ } = _b, data = __objRest(_b, [
54
+ "instanceId"
55
+ ]);
56
+ return client.post(`/instances/${instanceId}/blockchain-wallets`, data);
57
+ },
58
+ getWalletMessage({
59
+ receiverId,
60
+ instanceId
61
+ }) {
62
+ return client.get(
63
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/sign-message`
64
+ );
65
+ },
66
+ get({
67
+ instanceId,
68
+ receiverId,
69
+ id
70
+ }) {
71
+ return client.get(
72
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
73
+ );
74
+ },
75
+ delete({
76
+ instanceId,
77
+ receiverId,
78
+ id
79
+ }) {
80
+ return client.delete(
81
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
82
+ );
83
+ },
84
+ createAssetTrustline(_c) {
85
+ var _d = _c, {
86
+ instanceId
87
+ } = _d, data = __objRest(_d, [
88
+ "instanceId"
89
+ ]);
90
+ return client.post(`/instances/${instanceId}/create-asset-trustline`, data);
91
+ },
92
+ mintUsdbStellar(_e) {
93
+ var _f = _e, {
94
+ instanceId
95
+ } = _f, data = __objRest(_f, [
96
+ "instanceId"
97
+ ]);
98
+ return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
99
+ }
100
+ };
101
+ }
102
+ // Annotate the CommonJS export names for ESM import in node:
103
+ 0 && (module.exports = {
104
+ createBlockchainWalletsResource
105
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ createBlockchainWalletsResource,
3
+ init_blockchain
4
+ } from "../../chunk-GEDDLCJY.mjs";
5
+ import "../../chunk-OBKEW4AQ.mjs";
6
+ init_blockchain();
7
+ export {
8
+ createBlockchainWalletsResource
9
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }