@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,77 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/wallets/blockchain.ts
7
+ function createBlockchainWalletsResource(client) {
8
+ return {
9
+ list({
10
+ instanceId,
11
+ receiverId
12
+ }) {
13
+ return client.get(
14
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets`
15
+ );
16
+ },
17
+ create(_a) {
18
+ var _b = _a, {
19
+ instanceId
20
+ } = _b, data = __objRest(_b, [
21
+ "instanceId"
22
+ ]);
23
+ return client.post(`/instances/${instanceId}/blockchain-wallets`, data);
24
+ },
25
+ getWalletMessage({
26
+ receiverId,
27
+ instanceId
28
+ }) {
29
+ return client.get(
30
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/sign-message`
31
+ );
32
+ },
33
+ get({
34
+ instanceId,
35
+ receiverId,
36
+ id
37
+ }) {
38
+ return client.get(
39
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
40
+ );
41
+ },
42
+ delete({
43
+ instanceId,
44
+ receiverId,
45
+ id
46
+ }) {
47
+ return client.delete(
48
+ `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
49
+ );
50
+ },
51
+ createAssetTrustline(_c) {
52
+ var _d = _c, {
53
+ instanceId
54
+ } = _d, data = __objRest(_d, [
55
+ "instanceId"
56
+ ]);
57
+ return client.post(`/instances/${instanceId}/create-asset-trustline`, data);
58
+ },
59
+ mintUsdbStellar(_e) {
60
+ var _f = _e, {
61
+ instanceId
62
+ } = _f, data = __objRest(_f, [
63
+ "instanceId"
64
+ ]);
65
+ return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
66
+ }
67
+ };
68
+ }
69
+ var init_blockchain = __esm({
70
+ "src/resources/wallets/blockchain.ts"() {
71
+ }
72
+ });
73
+
74
+ export {
75
+ createBlockchainWalletsResource,
76
+ init_blockchain
77
+ };
@@ -0,0 +1,35 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/quotes/index.ts
7
+ function createQuotesResource(client) {
8
+ return {
9
+ create(_a) {
10
+ var _b = _a, {
11
+ instanceId
12
+ } = _b, data = __objRest(_b, [
13
+ "instanceId"
14
+ ]);
15
+ return client.post(`/instances/${instanceId}/quotes`, data);
16
+ },
17
+ getFxRate(_c) {
18
+ var _d = _c, {
19
+ instanceId
20
+ } = _d, data = __objRest(_d, [
21
+ "instanceId"
22
+ ]);
23
+ return client.post(`/instances/${instanceId}/quotes/fx`, data);
24
+ }
25
+ };
26
+ }
27
+ var init_quotes = __esm({
28
+ "src/resources/quotes/index.ts"() {
29
+ }
30
+ });
31
+
32
+ export {
33
+ createQuotesResource,
34
+ init_quotes
35
+ };
@@ -0,0 +1,65 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/payouts/index.ts
7
+ function createPayoutsResource(client) {
8
+ return {
9
+ list({
10
+ instanceId,
11
+ params
12
+ }) {
13
+ const queryParams = params ? `?${new URLSearchParams(params)}` : "";
14
+ return client.get(`/instances/${instanceId}/payouts${queryParams}`);
15
+ },
16
+ export({
17
+ instanceId,
18
+ params
19
+ }) {
20
+ const queryParams = params ? `?${new URLSearchParams(params)}` : "";
21
+ return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
22
+ },
23
+ get({ instanceId, id }) {
24
+ return client.get(`/instances/${instanceId}/payouts/${id}`);
25
+ },
26
+ getTrack({
27
+ id
28
+ }) {
29
+ return client.get(`/e/payouts/${id}`);
30
+ },
31
+ authorizeStellarToken(_a) {
32
+ var _b = _a, {
33
+ instanceId
34
+ } = _b, data = __objRest(_b, [
35
+ "instanceId"
36
+ ]);
37
+ return client.post(`/instances/${instanceId}/payouts/stellar/authorize`, data);
38
+ },
39
+ createStellar(_c) {
40
+ var _d = _c, {
41
+ instanceId
42
+ } = _d, data = __objRest(_d, [
43
+ "instanceId"
44
+ ]);
45
+ return client.post(`/instances/${instanceId}/payouts/stellar`, data);
46
+ },
47
+ createEvm(_e) {
48
+ var _f = _e, {
49
+ instanceId
50
+ } = _f, data = __objRest(_f, [
51
+ "instanceId"
52
+ ]);
53
+ return client.post(`/instances/${instanceId}/payouts/evm`, data);
54
+ }
55
+ };
56
+ }
57
+ var init_payouts = __esm({
58
+ "src/resources/payouts/index.ts"() {
59
+ }
60
+ });
61
+
62
+ export {
63
+ createPayoutsResource,
64
+ init_payouts
65
+ };
@@ -0,0 +1,49 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/wallets/offramp.ts
7
+ function createOfframpWalletsResource(client) {
8
+ return {
9
+ list({
10
+ instanceId
11
+ }) {
12
+ return client.get(`/instances/${instanceId}/offramp_wallets`);
13
+ },
14
+ create(_a) {
15
+ var _b = _a, {
16
+ receiverId,
17
+ instanceId,
18
+ bankAccountId
19
+ } = _b, data = __objRest(_b, [
20
+ "receiverId",
21
+ "instanceId",
22
+ "bankAccountId"
23
+ ]);
24
+ return client.post(
25
+ `/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${bankAccountId}/offramp_wallets`,
26
+ data
27
+ );
28
+ },
29
+ get({
30
+ receiverId,
31
+ instanceId,
32
+ bankAccountId,
33
+ id
34
+ }) {
35
+ return client.get(
36
+ `/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${bankAccountId}/offramp_wallets/${id}`
37
+ );
38
+ }
39
+ };
40
+ }
41
+ var init_offramp = __esm({
42
+ "src/resources/wallets/offramp.ts"() {
43
+ }
44
+ });
45
+
46
+ export {
47
+ createOfframpWalletsResource,
48
+ init_offramp
49
+ };
@@ -0,0 +1,47 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/instances/index.ts
7
+ function createInstancesResource(client) {
8
+ return {
9
+ getMembers({
10
+ instanceId
11
+ }) {
12
+ return client.get(`/instances/${instanceId}/members`);
13
+ },
14
+ update(_a) {
15
+ var _b = _a, { instanceId } = _b, data = __objRest(_b, ["instanceId"]);
16
+ return client.put(`/instances/${instanceId}`, data);
17
+ },
18
+ delete({ instanceId }) {
19
+ return client.delete(`/instances/${instanceId}`);
20
+ },
21
+ deleteMember({
22
+ instanceId,
23
+ id
24
+ }) {
25
+ return client.delete(`/instances/${instanceId}/members/${id}`);
26
+ },
27
+ updateMemberRole(_c) {
28
+ var _d = _c, {
29
+ instanceId,
30
+ id
31
+ } = _d, data = __objRest(_d, [
32
+ "instanceId",
33
+ "id"
34
+ ]);
35
+ return client.put(`/instances/${instanceId}/members/${id}`, data);
36
+ }
37
+ };
38
+ }
39
+ var init_instances = __esm({
40
+ "src/resources/instances/index.ts"() {
41
+ }
42
+ });
43
+
44
+ export {
45
+ createInstancesResource,
46
+ init_instances
47
+ };
@@ -0,0 +1,51 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/virtual-accounts/index.ts
7
+ function createVirtualAccountsResource(client) {
8
+ return {
9
+ update(_a) {
10
+ var _b = _a, {
11
+ instanceId,
12
+ receiverId
13
+ } = _b, data = __objRest(_b, [
14
+ "instanceId",
15
+ "receiverId"
16
+ ]);
17
+ return client.put(
18
+ `/instances/${instanceId}/receivers/${receiverId}/virtual-accounts`,
19
+ data
20
+ );
21
+ },
22
+ create(_c) {
23
+ var _d = _c, {
24
+ instanceId,
25
+ receiverId
26
+ } = _d, data = __objRest(_d, [
27
+ "instanceId",
28
+ "receiverId"
29
+ ]);
30
+ return client.post(
31
+ `/instances/${instanceId}/receivers/${receiverId}/virtual-accounts`,
32
+ data
33
+ );
34
+ },
35
+ get({
36
+ instanceId,
37
+ receiverId
38
+ }) {
39
+ return client.get(`/instances/${instanceId}/receivers/${receiverId}/virtual-accounts`);
40
+ }
41
+ };
42
+ }
43
+ var init_virtual_accounts = __esm({
44
+ "src/resources/virtual-accounts/index.ts"() {
45
+ }
46
+ });
47
+
48
+ export {
49
+ createVirtualAccountsResource,
50
+ init_virtual_accounts
51
+ };
@@ -0,0 +1,35 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/payins/quotes.ts
7
+ function createPayinQuotesResource(client) {
8
+ return {
9
+ create(_a) {
10
+ var _b = _a, {
11
+ instanceId
12
+ } = _b, data = __objRest(_b, [
13
+ "instanceId"
14
+ ]);
15
+ return client.post(`/instances/${instanceId}/payin-quotes`, data);
16
+ },
17
+ getFxRate(_c) {
18
+ var _d = _c, {
19
+ instanceId
20
+ } = _d, data = __objRest(_d, [
21
+ "instanceId"
22
+ ]);
23
+ return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
24
+ }
25
+ };
26
+ }
27
+ var init_quotes = __esm({
28
+ "src/resources/payins/quotes.ts"() {
29
+ }
30
+ });
31
+
32
+ export {
33
+ createPayinQuotesResource,
34
+ init_quotes
35
+ };
@@ -0,0 +1,91 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __pow = Math.pow;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __esm = (fn, res) => function __init() {
38
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
39
+ };
40
+ var __commonJS = (cb, mod) => function __require() {
41
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
42
+ };
43
+ var __copyProps = (to, from, except, desc) => {
44
+ if (from && typeof from === "object" || typeof from === "function") {
45
+ for (let key of __getOwnPropNames(from))
46
+ if (!__hasOwnProp.call(to, key) && key !== except)
47
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
48
+ }
49
+ return to;
50
+ };
51
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
52
+ // If the importer is in node compatibility mode or this is not an ESM
53
+ // file that has been converted to a CommonJS file using a Babel-
54
+ // compatible transform (i.e. "__esModule" has not been set), then set
55
+ // "default" to the CommonJS "module.exports" for node compatibility.
56
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
57
+ mod
58
+ ));
59
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
60
+ var __async = (__this, __arguments, generator) => {
61
+ return new Promise((resolve, reject) => {
62
+ var fulfilled = (value) => {
63
+ try {
64
+ step(generator.next(value));
65
+ } catch (e) {
66
+ reject(e);
67
+ }
68
+ };
69
+ var rejected = (value) => {
70
+ try {
71
+ step(generator.throw(value));
72
+ } catch (e) {
73
+ reject(e);
74
+ }
75
+ };
76
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
77
+ step((generator = generator.apply(__this, __arguments)).next());
78
+ });
79
+ };
80
+
81
+ export {
82
+ __pow,
83
+ __spreadValues,
84
+ __spreadProps,
85
+ __objRest,
86
+ __esm,
87
+ __commonJS,
88
+ __toESM,
89
+ __publicField,
90
+ __async
91
+ };
@@ -0,0 +1,24 @@
1
+ import {
2
+ __esm
3
+ } from "./chunk-OBKEW4AQ.mjs";
4
+
5
+ // src/resources/available/index.ts
6
+ function createAvailableResource(client) {
7
+ return {
8
+ getBankDetails(rail) {
9
+ return client.get(`/available/bank-details?rail=${rail}`);
10
+ },
11
+ getRails() {
12
+ return client.get("/available/rails");
13
+ }
14
+ };
15
+ }
16
+ var init_available = __esm({
17
+ "src/resources/available/index.ts"() {
18
+ }
19
+ });
20
+
21
+ export {
22
+ createAvailableResource,
23
+ init_available
24
+ };
@@ -0,0 +1,36 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/api-keys/index.ts
7
+ function createApiKeysResource(client) {
8
+ return {
9
+ list({ instanceId }) {
10
+ return client.get(`/instances/${instanceId}/api-keys`);
11
+ },
12
+ create(_a) {
13
+ var _b = _a, {
14
+ instanceId
15
+ } = _b, data = __objRest(_b, [
16
+ "instanceId"
17
+ ]);
18
+ return client.post(`/instances/${instanceId}/api-keys`, data);
19
+ },
20
+ get({ instanceId, id }) {
21
+ return client.get(`/instances/${instanceId}/api_keys/${id}`);
22
+ },
23
+ delete({ instanceId, id }) {
24
+ return client.delete(`/instances/${instanceId}/api-keys/${id}`);
25
+ }
26
+ };
27
+ }
28
+ var init_api_keys = __esm({
29
+ "src/resources/api-keys/index.ts"() {
30
+ }
31
+ });
32
+
33
+ export {
34
+ createApiKeysResource,
35
+ init_api_keys
36
+ };
@@ -0,0 +1,47 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/payins/index.ts
7
+ function createPayinsResource(client) {
8
+ return {
9
+ list({
10
+ instanceId,
11
+ params
12
+ }) {
13
+ const queryParams = params ? `?${new URLSearchParams(params)}` : "";
14
+ return client.get(`/instances/${instanceId}/payins${queryParams}`);
15
+ },
16
+ get({ instanceId, id }) {
17
+ return client.get(`/instances/${instanceId}/payins/${id}`);
18
+ },
19
+ getTrack({ id }) {
20
+ return client.get(`/e/payins/${id}`);
21
+ },
22
+ export({
23
+ instanceId,
24
+ params
25
+ }) {
26
+ const queryParams = params ? `?${new URLSearchParams(params)}` : "";
27
+ return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
28
+ },
29
+ createEvm(_a) {
30
+ var _b = _a, {
31
+ instanceId
32
+ } = _b, data = __objRest(_b, [
33
+ "instanceId"
34
+ ]);
35
+ return client.post(`/instances/${instanceId}/payins/evm`, data);
36
+ }
37
+ };
38
+ }
39
+ var init_payins = __esm({
40
+ "src/resources/payins/index.ts"() {
41
+ }
42
+ });
43
+
44
+ export {
45
+ createPayinsResource,
46
+ init_payins
47
+ };
@@ -0,0 +1,57 @@
1
+ import {
2
+ __esm,
3
+ __objRest
4
+ } from "./chunk-OBKEW4AQ.mjs";
5
+
6
+ // src/resources/receivers/index.ts
7
+ function createReceiversResource(client) {
8
+ return {
9
+ list({
10
+ instanceId
11
+ }) {
12
+ return client.get(`/instances/${instanceId}/receivers`);
13
+ },
14
+ create(_a) {
15
+ var _b = _a, {
16
+ instanceId
17
+ } = _b, data = __objRest(_b, [
18
+ "instanceId"
19
+ ]);
20
+ return client.post(`/instances/${instanceId}/receivers`, data);
21
+ },
22
+ get({
23
+ instanceId,
24
+ id
25
+ }) {
26
+ return client.get(`/instances/${instanceId}/receivers/${id}`);
27
+ },
28
+ update(_c) {
29
+ var _d = _c, {
30
+ instanceId,
31
+ id
32
+ } = _d, data = __objRest(_d, [
33
+ "instanceId",
34
+ "id"
35
+ ]);
36
+ return client.patch(`/instances/${instanceId}/receivers/${id}`, data);
37
+ },
38
+ delete({ instanceId, id }) {
39
+ return client.delete(`/instances/${instanceId}/receivers/${id}`);
40
+ },
41
+ getLimits({
42
+ instanceId,
43
+ id
44
+ }) {
45
+ return client.get(`/instances/${instanceId}/limits/receivers/${id}`);
46
+ }
47
+ };
48
+ }
49
+ var init_receivers = __esm({
50
+ "src/resources/receivers/index.ts"() {
51
+ }
52
+ });
53
+
54
+ export {
55
+ createReceiversResource,
56
+ init_receivers
57
+ };