@blindpay/node 1.0.0 → 1.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 (104) hide show
  1. package/README.md +24 -37
  2. package/dist/{chunk-HKFAJXJG.mjs → chunk-3QQCDR3E.mjs} +12 -32
  3. package/dist/{chunk-LUDGZPXY.mjs → chunk-5XJJKYXE.mjs} +9 -16
  4. package/dist/chunk-64EFLUS3.mjs +106 -0
  5. package/dist/chunk-B5T7AQLH.mjs +38 -0
  6. package/dist/{chunk-VKN2AMCW.mjs → chunk-BONN6PYB.mjs} +12 -30
  7. package/dist/{chunk-M6IYYMRW.mjs → chunk-E7M4CJKR.mjs} +4 -12
  8. package/dist/chunk-IZYPRCCV.mjs +82 -0
  9. package/dist/{chunk-QVOSGLUO.mjs → chunk-LRHWT4JU.mjs} +6 -10
  10. package/dist/chunk-QGNLMN6Z.mjs +49 -0
  11. package/dist/{chunk-3CZJEDS5.mjs → chunk-RC5NN5UF.mjs} +5 -14
  12. package/dist/{chunk-GNDAATIJ.mjs → chunk-TBTA7A2P.mjs} +4 -12
  13. package/dist/{chunk-CNNEROQ7.mjs → chunk-UC57SCKQ.mjs} +6 -17
  14. package/dist/{chunk-UCAW3RTZ.mjs → chunk-W7NJUABI.mjs} +12 -20
  15. package/dist/{chunk-ES7RXEM7.mjs → chunk-ZPGWM4VJ.mjs} +46 -37
  16. package/dist/index.d.mts +14 -10
  17. package/dist/index.d.ts +14 -10
  18. package/dist/index.js +237 -435
  19. package/dist/index.mjs +19 -19
  20. package/dist/resources/api-keys/api-keys.test.js +238 -445
  21. package/dist/resources/api-keys/api-keys.test.mjs +19 -28
  22. package/dist/resources/api-keys/index.d.mts +20 -20
  23. package/dist/resources/api-keys/index.d.ts +20 -20
  24. package/dist/resources/api-keys/index.js +6 -10
  25. package/dist/resources/api-keys/index.mjs +1 -1
  26. package/dist/resources/available/available.test.js +235 -433
  27. package/dist/resources/available/available.test.mjs +16 -16
  28. package/dist/resources/bank-accounts/bank-accounts.test.js +245 -455
  29. package/dist/resources/bank-accounts/bank-accounts.test.mjs +26 -38
  30. package/dist/resources/bank-accounts/index.d.mts +22 -145
  31. package/dist/resources/bank-accounts/index.d.ts +22 -145
  32. package/dist/resources/bank-accounts/index.js +102 -184
  33. package/dist/resources/bank-accounts/index.mjs +1 -1
  34. package/dist/resources/instances/index.d.mts +9 -20
  35. package/dist/resources/instances/index.d.ts +9 -20
  36. package/dist/resources/instances/index.js +11 -20
  37. package/dist/resources/instances/index.mjs +1 -1
  38. package/dist/resources/instances/instances.test.js +239 -446
  39. package/dist/resources/instances/instances.test.mjs +20 -29
  40. package/dist/resources/partner-fees/index.d.mts +8 -18
  41. package/dist/resources/partner-fees/index.d.ts +8 -18
  42. package/dist/resources/partner-fees/index.js +5 -14
  43. package/dist/resources/partner-fees/index.mjs +1 -1
  44. package/dist/resources/partner-fees/partner-fees.test.js +238 -445
  45. package/dist/resources/partner-fees/partner-fees.test.mjs +19 -28
  46. package/dist/resources/payins/index.d.mts +15 -30
  47. package/dist/resources/payins/index.d.ts +15 -30
  48. package/dist/resources/payins/index.js +12 -20
  49. package/dist/resources/payins/index.mjs +1 -1
  50. package/dist/resources/payins/payins-quotes.test.js +235 -435
  51. package/dist/resources/payins/payins-quotes.test.mjs +16 -18
  52. package/dist/resources/payins/payins.test.js +240 -449
  53. package/dist/resources/payins/payins.test.mjs +21 -32
  54. package/dist/resources/payins/quotes.d.mts +3 -5
  55. package/dist/resources/payins/quotes.d.ts +3 -5
  56. package/dist/resources/payins/quotes.js +4 -12
  57. package/dist/resources/payins/quotes.mjs +1 -1
  58. package/dist/resources/payouts/index.d.mts +13 -28
  59. package/dist/resources/payouts/index.d.ts +13 -28
  60. package/dist/resources/payouts/index.js +12 -32
  61. package/dist/resources/payouts/index.mjs +1 -1
  62. package/dist/resources/payouts/payouts.test.js +239 -449
  63. package/dist/resources/payouts/payouts.test.mjs +20 -32
  64. package/dist/resources/quotes/index.d.mts +3 -5
  65. package/dist/resources/quotes/index.d.ts +3 -5
  66. package/dist/resources/quotes/index.js +4 -12
  67. package/dist/resources/quotes/index.mjs +1 -1
  68. package/dist/resources/quotes/quotes.test.js +235 -435
  69. package/dist/resources/quotes/quotes.test.mjs +16 -18
  70. package/dist/resources/receivers/index.d.mts +13 -27
  71. package/dist/resources/receivers/index.d.ts +13 -27
  72. package/dist/resources/receivers/index.js +12 -30
  73. package/dist/resources/receivers/index.mjs +1 -1
  74. package/dist/resources/receivers/receivers.test.js +241 -452
  75. package/dist/resources/receivers/receivers.test.mjs +22 -35
  76. package/dist/resources/virtual-accounts/index.d.mts +7 -12
  77. package/dist/resources/virtual-accounts/index.d.ts +7 -12
  78. package/dist/resources/virtual-accounts/index.js +9 -16
  79. package/dist/resources/virtual-accounts/index.mjs +1 -1
  80. package/dist/resources/virtual-accounts/virtual-accounts.test.js +238 -441
  81. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +19 -24
  82. package/dist/resources/wallets/blockchain.d.mts +23 -31
  83. package/dist/resources/wallets/blockchain.d.ts +23 -31
  84. package/dist/resources/wallets/blockchain.js +51 -33
  85. package/dist/resources/wallets/blockchain.mjs +1 -1
  86. package/dist/resources/wallets/blockchain.test.js +268 -451
  87. package/dist/resources/wallets/blockchain.test.mjs +49 -34
  88. package/dist/resources/wallets/offramp.d.mts +10 -13
  89. package/dist/resources/wallets/offramp.d.ts +10 -13
  90. package/dist/resources/wallets/offramp.js +14 -14
  91. package/dist/resources/wallets/offramp.mjs +1 -1
  92. package/dist/resources/wallets/offramp.test.js +241 -442
  93. package/dist/resources/wallets/offramp.test.mjs +22 -25
  94. package/dist/resources/webhooks/index.d.mts +9 -22
  95. package/dist/resources/webhooks/index.d.ts +9 -22
  96. package/dist/resources/webhooks/index.js +6 -17
  97. package/dist/resources/webhooks/index.mjs +1 -1
  98. package/dist/resources/webhooks/webhooks.test.js +239 -448
  99. package/dist/resources/webhooks/webhooks.test.mjs +20 -31
  100. package/package.json +2 -4
  101. package/dist/chunk-2DAKB5XK.mjs +0 -212
  102. package/dist/chunk-GEDDLCJY.mjs +0 -77
  103. package/dist/chunk-LK3JPQ6I.mjs +0 -49
  104. package/dist/chunk-LLWEHHKB.mjs +0 -47
@@ -6,23 +6,23 @@ import {
6
6
  it
7
7
  } from "../../chunk-GCCHFONX.mjs";
8
8
  import {
9
- Blindpay,
9
+ BlindPay,
10
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";
11
+ } from "../../chunk-ZPGWM4VJ.mjs";
12
+ import "../../chunk-IZYPRCCV.mjs";
13
+ import "../../chunk-QGNLMN6Z.mjs";
14
+ import "../../chunk-UC57SCKQ.mjs";
15
+ import "../../chunk-TBTA7A2P.mjs";
16
+ import "../../chunk-BONN6PYB.mjs";
17
+ import "../../chunk-5XJJKYXE.mjs";
18
+ import "../../chunk-RC5NN5UF.mjs";
19
+ import "../../chunk-W7NJUABI.mjs";
20
+ import "../../chunk-E7M4CJKR.mjs";
21
+ import "../../chunk-3QQCDR3E.mjs";
22
+ import "../../chunk-LRHWT4JU.mjs";
24
23
  import "../../chunk-QHMIK7U3.mjs";
25
- import "../../chunk-LLWEHHKB.mjs";
24
+ import "../../chunk-64EFLUS3.mjs";
25
+ import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
28
28
  __commonJS
@@ -35,7 +35,7 @@ var require_webhooks_test = __commonJS({
35
35
  init_client();
36
36
  describe("Webhooks", () => {
37
37
  afterEach(() => fetchMock.resetMocks());
38
- const blindpay = new Blindpay("test-key");
38
+ const blindpay = new BlindPay({ apiKey: "test-key", instanceId: "in_000000000000" });
39
39
  describe("Create webhook endpoint", () => {
40
40
  it("should create a webhook endpoint", () => __async(null, null, function* () {
41
41
  const mockedWebhookEndpoint = {
@@ -45,7 +45,6 @@ var require_webhooks_test = __commonJS({
45
45
  headers: { "Content-Type": "application/json" }
46
46
  });
47
47
  const { data, error } = yield blindpay.instances.webhookEndpoints.create({
48
- instanceId: "in_000000000000",
49
48
  url: "https://example.com/webhook",
50
49
  events: ["receiver.new"]
51
50
  });
@@ -69,9 +68,7 @@ var require_webhooks_test = __commonJS({
69
68
  fetchMock.mockResponseOnce(JSON.stringify(mockedWebhookEndpoints), {
70
69
  headers: { "Content-Type": "application/json" }
71
70
  });
72
- const { data, error } = yield blindpay.instances.webhookEndpoints.list({
73
- instanceId: "in_000000000000"
74
- });
71
+ const { data, error } = yield blindpay.instances.webhookEndpoints.list();
75
72
  globalExpect(error).toBeNull();
76
73
  globalExpect(data).toEqual(mockedWebhookEndpoints);
77
74
  }));
@@ -82,10 +79,7 @@ var require_webhooks_test = __commonJS({
82
79
  fetchMock.mockResponseOnce(JSON.stringify(mockedResponse), {
83
80
  headers: { "Content-Type": "application/json" }
84
81
  });
85
- const { data, error } = yield blindpay.instances.webhookEndpoints.delete({
86
- instanceId: "in_000000000000",
87
- id: "we_000000000000"
88
- });
82
+ const { data, error } = yield blindpay.instances.webhookEndpoints.delete("we_000000000000");
89
83
  globalExpect(error).toBeNull();
90
84
  globalExpect(data).toEqual(mockedResponse);
91
85
  }));
@@ -96,10 +90,7 @@ var require_webhooks_test = __commonJS({
96
90
  fetchMock.mockResponseOnce(JSON.stringify(mockedWebhookSecret), {
97
91
  headers: { "Content-Type": "application/json" }
98
92
  });
99
- const { data, error } = yield blindpay.instances.webhookEndpoints.getSecret({
100
- instanceId: "in_000000000000",
101
- id: "we_000000000000"
102
- });
93
+ const { data, error } = yield blindpay.instances.webhookEndpoints.getSecret("we_000000000000");
103
94
  globalExpect(error).toBeNull();
104
95
  globalExpect(data).toEqual(mockedWebhookSecret);
105
96
  }));
@@ -110,9 +101,7 @@ var require_webhooks_test = __commonJS({
110
101
  fetchMock.mockResponseOnce(JSON.stringify(mockedWebhookUrl), {
111
102
  headers: { "Content-Type": "application/json" }
112
103
  });
113
- const { data, error } = yield blindpay.instances.webhookEndpoints.getPortalAccessUrl({
114
- instanceId: "in_000000000000"
115
- });
104
+ const { data, error } = yield blindpay.instances.webhookEndpoints.getPortalAccessUrl();
116
105
  globalExpect(error).toBeNull();
117
106
  globalExpect(data).toEqual(mockedWebhookUrl);
118
107
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blindpay/node",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Official Node.js SDK for Blindpay API - Global payments infrastructure",
5
5
  "keywords": [
6
6
  "blindpay",
@@ -50,9 +50,7 @@
50
50
  "lint:check": "biome check .",
51
51
  "lint:fix": "biome check --write .",
52
52
  "test": "vitest run",
53
- "test:coverage": "vitest run --coverage",
54
- "ci:publish": "npm publish --access public",
55
- "ci:version": "changeset version && bun install --no-frozen-lockfile"
53
+ "test:coverage": "vitest run --coverage"
56
54
  },
57
55
  "exports": {
58
56
  ".": {
@@ -1,212 +0,0 @@
1
- import {
2
- __esm
3
- } from "./chunk-OBKEW4AQ.mjs";
4
-
5
- // src/resources/bank-accounts/index.ts
6
- function createBankAccountsResource(client) {
7
- return {
8
- list({
9
- instanceId,
10
- receiverId
11
- }) {
12
- return client.get(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`);
13
- },
14
- createPix({
15
- instanceId,
16
- receiverId,
17
- name,
18
- pix_key
19
- }) {
20
- return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
21
- type: "pix",
22
- name,
23
- pix_key
24
- });
25
- },
26
- createArgentinaTransfers({
27
- instanceId,
28
- receiverId,
29
- beneficiary_name,
30
- name,
31
- transfers_account,
32
- transfers_type
33
- }) {
34
- return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
35
- type: "transfers_bitso",
36
- beneficiary_name,
37
- name,
38
- transfers_account,
39
- transfers_type
40
- });
41
- },
42
- createSpei({
43
- instanceId,
44
- receiverId,
45
- beneficiary_name,
46
- name,
47
- spei_clabe,
48
- spei_institution_code,
49
- spei_protocol
50
- }) {
51
- return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
52
- type: "spei_bitso",
53
- beneficiary_name,
54
- name,
55
- spei_clabe,
56
- spei_institution_code,
57
- spei_protocol
58
- });
59
- },
60
- createColombiaAch({
61
- instanceId,
62
- receiverId,
63
- name,
64
- account_type,
65
- ach_cop_beneficiary_first_name,
66
- ach_cop_beneficiary_last_name,
67
- ach_cop_document_id,
68
- ach_cop_document_type,
69
- ach_cop_email,
70
- ach_cop_bank_code,
71
- ach_cop_bank_account
72
- }) {
73
- return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
74
- type: "ach_cop_bitso",
75
- name,
76
- account_type,
77
- ach_cop_beneficiary_first_name,
78
- ach_cop_beneficiary_last_name,
79
- ach_cop_document_id,
80
- ach_cop_document_type,
81
- ach_cop_email,
82
- ach_cop_bank_code,
83
- ach_cop_bank_account
84
- });
85
- },
86
- createAch({
87
- instanceId,
88
- receiverId,
89
- name,
90
- account_class,
91
- account_number,
92
- account_type,
93
- beneficiary_name,
94
- routing_number
95
- }) {
96
- return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
97
- type: "ach",
98
- name,
99
- account_class,
100
- account_number,
101
- account_type,
102
- beneficiary_name,
103
- routing_number
104
- });
105
- },
106
- createWire({
107
- instanceId,
108
- receiverId,
109
- name,
110
- account_number,
111
- beneficiary_name,
112
- routing_number,
113
- address_line_1,
114
- address_line_2,
115
- city,
116
- state_province_region,
117
- country,
118
- postal_code
119
- }) {
120
- return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
121
- type: "wire",
122
- name,
123
- account_number,
124
- beneficiary_name,
125
- routing_number,
126
- address_line_1,
127
- address_line_2,
128
- city,
129
- state_province_region,
130
- country,
131
- postal_code
132
- });
133
- },
134
- createInternationalSwift({
135
- instanceId,
136
- receiverId,
137
- name,
138
- swift_account_holder_name,
139
- swift_account_number_iban,
140
- swift_bank_address_line_1,
141
- swift_bank_address_line_2,
142
- swift_bank_city,
143
- swift_bank_country,
144
- swift_bank_name,
145
- swift_bank_postal_code,
146
- swift_bank_state_province_region,
147
- swift_beneficiary_address_line_1,
148
- swift_beneficiary_address_line_2,
149
- swift_beneficiary_city,
150
- swift_beneficiary_country,
151
- swift_beneficiary_postal_code,
152
- swift_beneficiary_state_province_region,
153
- swift_code_bic,
154
- swift_intermediary_bank_account_number_iban,
155
- swift_intermediary_bank_country,
156
- swift_intermediary_bank_name,
157
- swift_intermediary_bank_swift_code_bic
158
- }) {
159
- return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
160
- type: "international_swift",
161
- name,
162
- swift_account_holder_name,
163
- swift_account_number_iban,
164
- swift_bank_address_line_1,
165
- swift_bank_address_line_2,
166
- swift_bank_city,
167
- swift_bank_country,
168
- swift_bank_name,
169
- swift_bank_postal_code,
170
- swift_bank_state_province_region,
171
- swift_beneficiary_address_line_1,
172
- swift_beneficiary_address_line_2,
173
- swift_beneficiary_city,
174
- swift_beneficiary_country,
175
- swift_beneficiary_postal_code,
176
- swift_beneficiary_state_province_region,
177
- swift_code_bic,
178
- swift_intermediary_bank_account_number_iban,
179
- swift_intermediary_bank_country,
180
- swift_intermediary_bank_name,
181
- swift_intermediary_bank_swift_code_bic
182
- });
183
- },
184
- get({
185
- instanceId,
186
- receiverId,
187
- id
188
- }) {
189
- return client.get(
190
- `/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
191
- );
192
- },
193
- delete({
194
- instanceId,
195
- receiverId,
196
- id
197
- }) {
198
- return client.delete(
199
- `/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
200
- );
201
- }
202
- };
203
- }
204
- var init_bank_accounts = __esm({
205
- "src/resources/bank-accounts/index.ts"() {
206
- }
207
- });
208
-
209
- export {
210
- createBankAccountsResource,
211
- init_bank_accounts
212
- };
@@ -1,77 +0,0 @@
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
- };
@@ -1,49 +0,0 @@
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
- };
@@ -1,47 +0,0 @@
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
- };