@blindpay/node 2.2.0 → 2.3.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 (48) hide show
  1. package/dist/{chunk-QCRVXYWF.mjs → chunk-DZ4K6K32.mjs} +9 -3
  2. package/dist/{chunk-IZYPRCCV.mjs → chunk-FG25JHDX.mjs} +8 -0
  3. package/dist/chunk-Z6EYX4D3.mjs +29 -0
  4. package/dist/index.d.mts +3 -1
  5. package/dist/index.d.ts +3 -1
  6. package/dist/index.js +28 -2
  7. package/dist/index.mjs +3 -2
  8. package/dist/resources/api-keys/api-keys.test.js +28 -2
  9. package/dist/resources/api-keys/api-keys.test.mjs +3 -2
  10. package/dist/resources/available/available.test.js +28 -2
  11. package/dist/resources/available/available.test.mjs +3 -2
  12. package/dist/resources/bank-accounts/bank-accounts.test.js +28 -2
  13. package/dist/resources/bank-accounts/bank-accounts.test.mjs +3 -2
  14. package/dist/resources/instances/instances.test.js +28 -2
  15. package/dist/resources/instances/instances.test.mjs +3 -2
  16. package/dist/resources/partner-fees/partner-fees.test.js +28 -2
  17. package/dist/resources/partner-fees/partner-fees.test.mjs +3 -2
  18. package/dist/resources/payins/payins-quotes.test.js +28 -2
  19. package/dist/resources/payins/payins-quotes.test.mjs +3 -2
  20. package/dist/resources/payins/payins.test.js +28 -2
  21. package/dist/resources/payins/payins.test.mjs +3 -2
  22. package/dist/resources/payouts/payouts.test.js +28 -2
  23. package/dist/resources/payouts/payouts.test.mjs +3 -2
  24. package/dist/resources/quotes/quotes.test.js +28 -2
  25. package/dist/resources/quotes/quotes.test.mjs +3 -2
  26. package/dist/resources/receivers/receivers.test.js +28 -2
  27. package/dist/resources/receivers/receivers.test.mjs +3 -2
  28. package/dist/resources/terms-of-service/index.d.mts +15 -0
  29. package/dist/resources/terms-of-service/index.d.ts +15 -0
  30. package/dist/resources/terms-of-service/index.js +44 -0
  31. package/dist/resources/terms-of-service/index.mjs +9 -0
  32. package/dist/resources/terms-of-service/terms-of-service.test.d.mts +2 -0
  33. package/dist/resources/terms-of-service/terms-of-service.test.d.ts +2 -0
  34. package/dist/resources/terms-of-service/terms-of-service.test.js +19671 -0
  35. package/dist/resources/terms-of-service/terms-of-service.test.mjs +60 -0
  36. package/dist/resources/virtual-accounts/virtual-accounts.test.js +28 -2
  37. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +3 -2
  38. package/dist/resources/wallets/blockchain.d.mts +21 -1
  39. package/dist/resources/wallets/blockchain.d.ts +21 -1
  40. package/dist/resources/wallets/blockchain.js +8 -0
  41. package/dist/resources/wallets/blockchain.mjs +1 -1
  42. package/dist/resources/wallets/blockchain.test.js +93 -2
  43. package/dist/resources/wallets/blockchain.test.mjs +68 -2
  44. package/dist/resources/wallets/offramp.test.js +28 -2
  45. package/dist/resources/wallets/offramp.test.mjs +3 -2
  46. package/dist/resources/webhooks/webhooks.test.js +28 -2
  47. package/dist/resources/webhooks/webhooks.test.mjs +3 -2
  48. package/package.json +1 -1
@@ -8,12 +8,13 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-QCRVXYWF.mjs";
12
- import "../../chunk-IZYPRCCV.mjs";
11
+ } from "../../chunk-DZ4K6K32.mjs";
12
+ import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
15
15
  import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
+ import "../../chunk-Z6EYX4D3.mjs";
17
18
  import "../../chunk-5XJJKYXE.mjs";
18
19
  import "../../chunk-RC5NN5UF.mjs";
19
20
  import "../../chunk-W7NJUABI.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.2.0";
18705
+ var version = "2.3.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19032,6 +19032,23 @@ function createReceiversResource(instanceId, client) {
19032
19032
  };
19033
19033
  }
19034
19034
 
19035
+ // src/resources/terms-of-service/index.ts
19036
+ function createTermsOfServiceResource(instanceId, client) {
19037
+ return {
19038
+ initiate({
19039
+ idempotency_key,
19040
+ receiver_id,
19041
+ redirect_url
19042
+ }) {
19043
+ return client.post(`/e/instances/${instanceId}/tos`, {
19044
+ idempotency_key,
19045
+ receiver_id,
19046
+ redirect_url
19047
+ });
19048
+ }
19049
+ };
19050
+ }
19051
+
19035
19052
  // src/resources/virtual-accounts/index.ts
19036
19053
  function createVirtualAccountsResource(instanceId, client) {
19037
19054
  return {
@@ -19126,6 +19143,14 @@ function createBlockchainWalletsResource(instanceId, client) {
19126
19143
  mintUsdbStellar(_e) {
19127
19144
  var data = __objRest(_e, []);
19128
19145
  return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
19146
+ },
19147
+ mintUsdbSolana(_f) {
19148
+ var data = __objRest(_f, []);
19149
+ return client.post(`/instances/${instanceId}/mint-usdb-solana`, data);
19150
+ },
19151
+ prepareSolanaDelegationTransaction(_g) {
19152
+ var data = __objRest(_g, []);
19153
+ return client.post(`/instances/${instanceId}/prepare-delegate-solana`, data);
19129
19154
  }
19130
19155
  };
19131
19156
  }
@@ -19222,7 +19247,8 @@ var BlindPay = class {
19222
19247
  this.available = createAvailableResource(this.api);
19223
19248
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19224
19249
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19225
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19250
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19251
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19226
19252
  });
19227
19253
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19228
19254
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,12 +8,13 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-QCRVXYWF.mjs";
12
- import "../../chunk-IZYPRCCV.mjs";
11
+ } from "../../chunk-DZ4K6K32.mjs";
12
+ import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
15
15
  import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
+ import "../../chunk-Z6EYX4D3.mjs";
17
18
  import "../../chunk-5XJJKYXE.mjs";
18
19
  import "../../chunk-RC5NN5UF.mjs";
19
20
  import "../../chunk-W7NJUABI.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.2.0";
18705
+ var version = "2.3.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19032,6 +19032,23 @@ function createReceiversResource(instanceId, client) {
19032
19032
  };
19033
19033
  }
19034
19034
 
19035
+ // src/resources/terms-of-service/index.ts
19036
+ function createTermsOfServiceResource(instanceId, client) {
19037
+ return {
19038
+ initiate({
19039
+ idempotency_key,
19040
+ receiver_id,
19041
+ redirect_url
19042
+ }) {
19043
+ return client.post(`/e/instances/${instanceId}/tos`, {
19044
+ idempotency_key,
19045
+ receiver_id,
19046
+ redirect_url
19047
+ });
19048
+ }
19049
+ };
19050
+ }
19051
+
19035
19052
  // src/resources/virtual-accounts/index.ts
19036
19053
  function createVirtualAccountsResource(instanceId, client) {
19037
19054
  return {
@@ -19126,6 +19143,14 @@ function createBlockchainWalletsResource(instanceId, client) {
19126
19143
  mintUsdbStellar(_e) {
19127
19144
  var data = __objRest(_e, []);
19128
19145
  return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
19146
+ },
19147
+ mintUsdbSolana(_f) {
19148
+ var data = __objRest(_f, []);
19149
+ return client.post(`/instances/${instanceId}/mint-usdb-solana`, data);
19150
+ },
19151
+ prepareSolanaDelegationTransaction(_g) {
19152
+ var data = __objRest(_g, []);
19153
+ return client.post(`/instances/${instanceId}/prepare-delegate-solana`, data);
19129
19154
  }
19130
19155
  };
19131
19156
  }
@@ -19222,7 +19247,8 @@ var BlindPay = class {
19222
19247
  this.available = createAvailableResource(this.api);
19223
19248
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19224
19249
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19225
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19250
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19251
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19226
19252
  });
19227
19253
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19228
19254
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,12 +8,13 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-QCRVXYWF.mjs";
12
- import "../../chunk-IZYPRCCV.mjs";
11
+ } from "../../chunk-DZ4K6K32.mjs";
12
+ import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
15
15
  import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
+ import "../../chunk-Z6EYX4D3.mjs";
17
18
  import "../../chunk-5XJJKYXE.mjs";
18
19
  import "../../chunk-RC5NN5UF.mjs";
19
20
  import "../../chunk-W7NJUABI.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.2.0";
18705
+ var version = "2.3.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19032,6 +19032,23 @@ function createReceiversResource(instanceId, client) {
19032
19032
  };
19033
19033
  }
19034
19034
 
19035
+ // src/resources/terms-of-service/index.ts
19036
+ function createTermsOfServiceResource(instanceId, client) {
19037
+ return {
19038
+ initiate({
19039
+ idempotency_key,
19040
+ receiver_id,
19041
+ redirect_url
19042
+ }) {
19043
+ return client.post(`/e/instances/${instanceId}/tos`, {
19044
+ idempotency_key,
19045
+ receiver_id,
19046
+ redirect_url
19047
+ });
19048
+ }
19049
+ };
19050
+ }
19051
+
19035
19052
  // src/resources/virtual-accounts/index.ts
19036
19053
  function createVirtualAccountsResource(instanceId, client) {
19037
19054
  return {
@@ -19126,6 +19143,14 @@ function createBlockchainWalletsResource(instanceId, client) {
19126
19143
  mintUsdbStellar(_e) {
19127
19144
  var data = __objRest(_e, []);
19128
19145
  return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
19146
+ },
19147
+ mintUsdbSolana(_f) {
19148
+ var data = __objRest(_f, []);
19149
+ return client.post(`/instances/${instanceId}/mint-usdb-solana`, data);
19150
+ },
19151
+ prepareSolanaDelegationTransaction(_g) {
19152
+ var data = __objRest(_g, []);
19153
+ return client.post(`/instances/${instanceId}/prepare-delegate-solana`, data);
19129
19154
  }
19130
19155
  };
19131
19156
  }
@@ -19222,7 +19247,8 @@ var BlindPay = class {
19222
19247
  this.available = createAvailableResource(this.api);
19223
19248
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19224
19249
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19225
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19250
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19251
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19226
19252
  });
19227
19253
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19228
19254
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,12 +8,13 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-QCRVXYWF.mjs";
12
- import "../../chunk-IZYPRCCV.mjs";
11
+ } from "../../chunk-DZ4K6K32.mjs";
12
+ import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
15
15
  import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
+ import "../../chunk-Z6EYX4D3.mjs";
17
18
  import "../../chunk-5XJJKYXE.mjs";
18
19
  import "../../chunk-RC5NN5UF.mjs";
19
20
  import "../../chunk-W7NJUABI.mjs";
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.2.0";
18705
+ var version = "2.3.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19032,6 +19032,23 @@ function createReceiversResource(instanceId, client) {
19032
19032
  };
19033
19033
  }
19034
19034
 
19035
+ // src/resources/terms-of-service/index.ts
19036
+ function createTermsOfServiceResource(instanceId, client) {
19037
+ return {
19038
+ initiate({
19039
+ idempotency_key,
19040
+ receiver_id,
19041
+ redirect_url
19042
+ }) {
19043
+ return client.post(`/e/instances/${instanceId}/tos`, {
19044
+ idempotency_key,
19045
+ receiver_id,
19046
+ redirect_url
19047
+ });
19048
+ }
19049
+ };
19050
+ }
19051
+
19035
19052
  // src/resources/virtual-accounts/index.ts
19036
19053
  function createVirtualAccountsResource(instanceId, client) {
19037
19054
  return {
@@ -19126,6 +19143,14 @@ function createBlockchainWalletsResource(instanceId, client) {
19126
19143
  mintUsdbStellar(_e) {
19127
19144
  var data = __objRest(_e, []);
19128
19145
  return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
19146
+ },
19147
+ mintUsdbSolana(_f) {
19148
+ var data = __objRest(_f, []);
19149
+ return client.post(`/instances/${instanceId}/mint-usdb-solana`, data);
19150
+ },
19151
+ prepareSolanaDelegationTransaction(_g) {
19152
+ var data = __objRest(_g, []);
19153
+ return client.post(`/instances/${instanceId}/prepare-delegate-solana`, data);
19129
19154
  }
19130
19155
  };
19131
19156
  }
@@ -19222,7 +19247,8 @@ var BlindPay = class {
19222
19247
  this.available = createAvailableResource(this.api);
19223
19248
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19224
19249
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19225
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19250
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19251
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19226
19252
  });
19227
19253
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19228
19254
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,12 +8,13 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-QCRVXYWF.mjs";
12
- import "../../chunk-IZYPRCCV.mjs";
11
+ } from "../../chunk-DZ4K6K32.mjs";
12
+ import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
15
15
  import "../../chunk-TBTA7A2P.mjs";
16
16
  import "../../chunk-67XECGMJ.mjs";
17
+ import "../../chunk-Z6EYX4D3.mjs";
17
18
  import "../../chunk-5XJJKYXE.mjs";
18
19
  import "../../chunk-RC5NN5UF.mjs";
19
20
  import "../../chunk-W7NJUABI.mjs";
@@ -0,0 +1,15 @@
1
+ import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Cw2mNJeR.mjs';
2
+
3
+ type InitiateInput = {
4
+ idempotency_key: string;
5
+ receiver_id: string | null;
6
+ redirect_url: string | null;
7
+ };
8
+ type InitiateResponse = {
9
+ url: string;
10
+ };
11
+ declare function createTermsOfServiceResource(instanceId: string, client: InternalApiClient): {
12
+ initiate({ idempotency_key, receiver_id, redirect_url, }: InitiateInput): Promise<BlindpayApiResponse<InitiateResponse>>;
13
+ };
14
+
15
+ export { type InitiateInput, type InitiateResponse, createTermsOfServiceResource };
@@ -0,0 +1,15 @@
1
+ import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Cw2mNJeR.js';
2
+
3
+ type InitiateInput = {
4
+ idempotency_key: string;
5
+ receiver_id: string | null;
6
+ redirect_url: string | null;
7
+ };
8
+ type InitiateResponse = {
9
+ url: string;
10
+ };
11
+ declare function createTermsOfServiceResource(instanceId: string, client: InternalApiClient): {
12
+ initiate({ idempotency_key, receiver_id, redirect_url, }: InitiateInput): Promise<BlindpayApiResponse<InitiateResponse>>;
13
+ };
14
+
15
+ export { type InitiateInput, type InitiateResponse, createTermsOfServiceResource };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/resources/terms-of-service/index.ts
21
+ var terms_of_service_exports = {};
22
+ __export(terms_of_service_exports, {
23
+ createTermsOfServiceResource: () => createTermsOfServiceResource
24
+ });
25
+ module.exports = __toCommonJS(terms_of_service_exports);
26
+ function createTermsOfServiceResource(instanceId, client) {
27
+ return {
28
+ initiate({
29
+ idempotency_key,
30
+ receiver_id,
31
+ redirect_url
32
+ }) {
33
+ return client.post(`/e/instances/${instanceId}/tos`, {
34
+ idempotency_key,
35
+ receiver_id,
36
+ redirect_url
37
+ });
38
+ }
39
+ };
40
+ }
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ createTermsOfServiceResource
44
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ createTermsOfServiceResource,
3
+ init_terms_of_service
4
+ } from "../../chunk-Z6EYX4D3.mjs";
5
+ import "../../chunk-OBKEW4AQ.mjs";
6
+ init_terms_of_service();
7
+ export {
8
+ createTermsOfServiceResource
9
+ };