@blindpay/node 3.5.0 → 3.8.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 (91) hide show
  1. package/dist/{api-client-Bklw4zQi.d.ts → api-client-B9lW57MD.d.ts} +1 -1
  2. package/dist/{api-client-BlkRiojB.d.mts → api-client-Ct0AsDO5.d.mts} +1 -1
  3. package/dist/{chunk-IHFM6NYO.mjs → chunk-57QRKKXM.mjs} +22 -16
  4. package/dist/chunk-Z6EYX4D3.mjs +29 -0
  5. package/dist/{index.d-Gvol1faW.d.ts → index.d-CxmQ6ci9.d.mts} +2 -2
  6. package/dist/{index.d-Gvol1faW.d.mts → index.d-CxmQ6ci9.d.ts} +2 -2
  7. package/dist/index.d.mts +4 -2
  8. package/dist/index.d.ts +4 -2
  9. package/dist/index.js +20 -2
  10. package/dist/index.mjs +17 -16
  11. package/dist/resources/api-keys/api-keys.test.js +20 -2
  12. package/dist/resources/api-keys/api-keys.test.mjs +6 -5
  13. package/dist/resources/api-keys/index.d.mts +2 -2
  14. package/dist/resources/api-keys/index.d.ts +2 -2
  15. package/dist/resources/available/available.test.js +20 -2
  16. package/dist/resources/available/available.test.mjs +6 -5
  17. package/dist/resources/available/index.d.mts +2 -2
  18. package/dist/resources/available/index.d.ts +2 -2
  19. package/dist/resources/bank-accounts/bank-accounts.test.js +20 -2
  20. package/dist/resources/bank-accounts/bank-accounts.test.mjs +6 -5
  21. package/dist/resources/bank-accounts/index.d.mts +2 -2
  22. package/dist/resources/bank-accounts/index.d.ts +2 -2
  23. package/dist/resources/fees/fees.test.js +20 -2
  24. package/dist/resources/fees/fees.test.mjs +6 -5
  25. package/dist/resources/fees/index.d.mts +2 -2
  26. package/dist/resources/fees/index.d.ts +2 -2
  27. package/dist/resources/instances/index.d.mts +2 -2
  28. package/dist/resources/instances/index.d.ts +2 -2
  29. package/dist/resources/instances/instances.test.js +20 -2
  30. package/dist/resources/instances/instances.test.mjs +6 -5
  31. package/dist/resources/partner-fees/index.d.mts +2 -2
  32. package/dist/resources/partner-fees/index.d.ts +2 -2
  33. package/dist/resources/partner-fees/partner-fees.test.js +20 -2
  34. package/dist/resources/partner-fees/partner-fees.test.mjs +6 -5
  35. package/dist/resources/payins/index.d.mts +13 -2
  36. package/dist/resources/payins/index.d.ts +13 -2
  37. package/dist/resources/payins/payins-quotes.test.js +22 -4
  38. package/dist/resources/payins/payins-quotes.test.mjs +8 -7
  39. package/dist/resources/payins/payins.test.js +40 -2
  40. package/dist/resources/payins/payins.test.mjs +26 -5
  41. package/dist/resources/payins/quotes.d.mts +4 -4
  42. package/dist/resources/payins/quotes.d.ts +4 -4
  43. package/dist/resources/payouts/index.d.mts +3 -3
  44. package/dist/resources/payouts/index.d.ts +3 -3
  45. package/dist/resources/payouts/payouts.test.js +20 -2
  46. package/dist/resources/payouts/payouts.test.mjs +6 -5
  47. package/dist/resources/quotes/index.d.mts +2 -2
  48. package/dist/resources/quotes/index.d.ts +2 -2
  49. package/dist/resources/quotes/quotes.test.js +20 -2
  50. package/dist/resources/quotes/quotes.test.mjs +6 -5
  51. package/dist/resources/receivers/index.d.mts +2 -2
  52. package/dist/resources/receivers/index.d.ts +2 -2
  53. package/dist/resources/receivers/receivers.test.js +20 -2
  54. package/dist/resources/receivers/receivers.test.mjs +6 -5
  55. package/dist/resources/terms-of-service/index.d.mts +16 -0
  56. package/dist/resources/terms-of-service/index.d.ts +16 -0
  57. package/dist/resources/terms-of-service/index.js +44 -0
  58. package/dist/resources/terms-of-service/index.mjs +9 -0
  59. package/dist/resources/terms-of-service/terms-of-service.test.d.mts +2 -0
  60. package/dist/resources/terms-of-service/terms-of-service.test.d.ts +2 -0
  61. package/dist/resources/terms-of-service/terms-of-service.test.js +19824 -0
  62. package/dist/resources/terms-of-service/terms-of-service.test.mjs +64 -0
  63. package/dist/resources/transfers/index.d.mts +2 -2
  64. package/dist/resources/transfers/index.d.ts +2 -2
  65. package/dist/resources/transfers/transfers.test.js +20 -2
  66. package/dist/resources/transfers/transfers.test.mjs +6 -5
  67. package/dist/resources/upload/index.d.mts +1 -1
  68. package/dist/resources/upload/index.d.ts +1 -1
  69. package/dist/resources/upload/upload.test.js +20 -2
  70. package/dist/resources/upload/upload.test.mjs +6 -5
  71. package/dist/resources/virtual-accounts/index.d.mts +2 -2
  72. package/dist/resources/virtual-accounts/index.d.ts +2 -2
  73. package/dist/resources/virtual-accounts/virtual-accounts.test.js +20 -2
  74. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +6 -5
  75. package/dist/resources/wallets/blockchain.d.mts +2 -2
  76. package/dist/resources/wallets/blockchain.d.ts +2 -2
  77. package/dist/resources/wallets/blockchain.test.js +20 -2
  78. package/dist/resources/wallets/blockchain.test.mjs +6 -5
  79. package/dist/resources/wallets/custodial.d.mts +2 -2
  80. package/dist/resources/wallets/custodial.d.ts +2 -2
  81. package/dist/resources/wallets/custodial.test.js +20 -2
  82. package/dist/resources/wallets/custodial.test.mjs +6 -5
  83. package/dist/resources/wallets/offramp.d.mts +2 -2
  84. package/dist/resources/wallets/offramp.d.ts +2 -2
  85. package/dist/resources/wallets/offramp.test.js +20 -2
  86. package/dist/resources/wallets/offramp.test.mjs +6 -5
  87. package/dist/resources/webhooks/index.d.mts +2 -2
  88. package/dist/resources/webhooks/index.d.ts +2 -2
  89. package/dist/resources/webhooks/webhooks.test.js +20 -2
  90. package/dist/resources/webhooks/webhooks.test.mjs +6 -5
  91. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { B as BlindpayApiResponse } from './index.d-Gvol1faW.js';
1
+ import { B as BlindpayApiResponse } from './index.d-CxmQ6ci9.js';
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
- import { B as BlindpayApiResponse } from './index.d-Gvol1faW.mjs';
1
+ import { B as BlindpayApiResponse } from './index.d-CxmQ6ci9.mjs';
2
2
 
3
3
  /**
4
4
  *
@@ -10,6 +10,14 @@ import {
10
10
  createOfframpWalletsResource,
11
11
  init_offramp
12
12
  } from "./chunk-QGNLMN6Z.mjs";
13
+ import {
14
+ createWebhookEndpointsResource,
15
+ init_webhooks
16
+ } from "./chunk-UC57SCKQ.mjs";
17
+ import {
18
+ createTransfersResource,
19
+ init_transfers
20
+ } from "./chunk-ISHZTBAN.mjs";
13
21
  import {
14
22
  createUploadResource,
15
23
  init_upload
@@ -18,10 +26,6 @@ import {
18
26
  createVirtualAccountsResource,
19
27
  init_virtual_accounts
20
28
  } from "./chunk-LEPGLH7Q.mjs";
21
- import {
22
- createWebhookEndpointsResource,
23
- init_webhooks
24
- } from "./chunk-UC57SCKQ.mjs";
25
29
  import {
26
30
  createPayinQuotesResource,
27
31
  init_quotes
@@ -39,13 +43,13 @@ import {
39
43
  init_receivers
40
44
  } from "./chunk-YIZJM2GU.mjs";
41
45
  import {
42
- createTransfersResource,
43
- init_transfers
44
- } from "./chunk-ISHZTBAN.mjs";
46
+ createTermsOfServiceResource,
47
+ init_terms_of_service
48
+ } from "./chunk-Z6EYX4D3.mjs";
45
49
  import {
46
- createFeesResource,
47
- init_fees
48
- } from "./chunk-ALHMJWQN.mjs";
50
+ createBankAccountsResource,
51
+ init_bank_accounts
52
+ } from "./chunk-UOAM7SX3.mjs";
49
53
  import {
50
54
  createInstancesResource,
51
55
  init_instances
@@ -62,14 +66,14 @@ import {
62
66
  createApiKeysResource,
63
67
  init_api_keys
64
68
  } from "./chunk-LRHWT4JU.mjs";
65
- import {
66
- createBankAccountsResource,
67
- init_bank_accounts
68
- } from "./chunk-UOAM7SX3.mjs";
69
69
  import {
70
70
  createAvailableResource,
71
71
  init_available
72
72
  } from "./chunk-WE73MTQL.mjs";
73
+ import {
74
+ createFeesResource,
75
+ init_fees
76
+ } from "./chunk-ALHMJWQN.mjs";
73
77
  import {
74
78
  __async,
75
79
  __esm,
@@ -81,7 +85,7 @@ import {
81
85
  var version;
82
86
  var init_package = __esm({
83
87
  "package.json"() {
84
- version = "3.5.0";
88
+ version = "3.8.0";
85
89
  }
86
90
  });
87
91
 
@@ -118,6 +122,7 @@ var init_client = __esm({
118
122
  init_payouts();
119
123
  init_quotes2();
120
124
  init_receivers();
125
+ init_terms_of_service();
121
126
  init_transfers();
122
127
  init_upload();
123
128
  init_virtual_accounts();
@@ -158,7 +163,8 @@ var init_client = __esm({
158
163
  this.available = createAvailableResource(this.api);
159
164
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
160
165
  apiKeys: createApiKeysResource(this.instanceId, this.api),
161
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
166
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
167
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
162
168
  });
163
169
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
164
170
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -0,0 +1,29 @@
1
+ import {
2
+ __esm
3
+ } from "./chunk-OBKEW4AQ.mjs";
4
+
5
+ // src/resources/terms-of-service/index.ts
6
+ function createTermsOfServiceResource(instanceId, client) {
7
+ return {
8
+ initiate({
9
+ idempotency_key,
10
+ receiver_id,
11
+ redirect_url
12
+ }) {
13
+ return client.post(`/e/instances/${instanceId}/tos`, {
14
+ idempotency_key,
15
+ receiver_id,
16
+ redirect_url
17
+ });
18
+ }
19
+ };
20
+ }
21
+ var init_terms_of_service = __esm({
22
+ "src/resources/terms-of-service/index.ts"() {
23
+ }
24
+ });
25
+
26
+ export {
27
+ createTermsOfServiceResource,
28
+ init_terms_of_service
29
+ };
@@ -18,7 +18,7 @@ type CurrencyType = "sender" | "receiver";
18
18
 
19
19
  type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron" | "solana" | "solana_devnet";
20
20
 
21
- type StablecoinToken = "USDC" | "USDT" | "USDB"
21
+ type StablecoinToken = "USDC" | "USDT" | "USDB";
22
22
 
23
23
  type TransactionDocumentType = "invoice" | "purchase_order" | "delivery_slip" | "contract" | "customs_declaration" | "bill_of_lading" | "others";
24
24
 
@@ -347,7 +347,7 @@ type PayinTrackingPartnerFee = {
347
347
  completed_at?: string | null
348
348
  }
349
349
 
350
- type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift"
350
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift" | "rtp"
351
351
 
352
352
  type BusinessIndustry =
353
353
  | "111998"
@@ -18,7 +18,7 @@ type CurrencyType = "sender" | "receiver";
18
18
 
19
19
  type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron" | "solana" | "solana_devnet";
20
20
 
21
- type StablecoinToken = "USDC" | "USDT" | "USDB"
21
+ type StablecoinToken = "USDC" | "USDT" | "USDB";
22
22
 
23
23
  type TransactionDocumentType = "invoice" | "purchase_order" | "delivery_slip" | "contract" | "customs_declaration" | "bill_of_lading" | "others";
24
24
 
@@ -347,7 +347,7 @@ type PayinTrackingPartnerFee = {
347
347
  completed_at?: string | null
348
348
  }
349
349
 
350
- type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift"
350
+ type PayinPaymentMethod = "ach" | "wire" | "pix" | "spei" | "transfers" | "pse" | "international_swift" | "rtp"
351
351
 
352
352
  type BusinessIndustry =
353
353
  | "111998"
package/dist/index.d.mts CHANGED
@@ -20,6 +20,7 @@ import { createQuotesResource } from './resources/quotes/index.mjs';
20
20
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
21
21
  import { createReceiversResource } from './resources/receivers/index.mjs';
22
22
  export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, ReceiverKycStatus, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.mjs';
23
+ import { createTermsOfServiceResource } from './resources/terms-of-service/index.mjs';
23
24
  import { createTransfersResource } from './resources/transfers/index.mjs';
24
25
  export { CreateTransferInput, CreateTransferQuoteInput, CreateTransferQuoteResponse, CreateTransferResponse, GetTransferInput, GetTransferResponse, GetTransferTrackInput, GetTransferTrackResponse, ListTransfersInput, ListTransfersResponse, Transfer, TransferTrackingStep, TransferTrackingTransactionMonitoring } from './resources/transfers/index.mjs';
25
26
  import { createUploadResource } from './resources/upload/index.mjs';
@@ -34,8 +35,8 @@ import { createOfframpWalletsResource } from './resources/wallets/offramp.mjs';
34
35
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet, OfframpWalletNetwork } from './resources/wallets/offramp.mjs';
35
36
  import { createWebhookEndpointsResource } from './resources/webhooks/index.mjs';
36
37
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.mjs';
37
- import './index.d-Gvol1faW.mjs';
38
- import './api-client-BlkRiojB.mjs';
38
+ import './index.d-CxmQ6ci9.mjs';
39
+ import './api-client-Ct0AsDO5.mjs';
39
40
 
40
41
  declare class BlindPay {
41
42
  private readonly baseUrl;
@@ -60,6 +61,7 @@ declare class BlindPay {
60
61
  readonly instances: ReturnType<typeof createInstancesResource> & {
61
62
  apiKeys: ReturnType<typeof createApiKeysResource>;
62
63
  webhookEndpoints: ReturnType<typeof createWebhookEndpointsResource>;
64
+ tos: ReturnType<typeof createTermsOfServiceResource>;
63
65
  };
64
66
  readonly wallets: {
65
67
  blockchain: ReturnType<typeof createBlockchainWalletsResource>;
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ import { createQuotesResource } from './resources/quotes/index.js';
20
20
  export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.js';
21
21
  import { createReceiversResource } from './resources/receivers/index.js';
22
22
  export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, ReceiverKycStatus, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.js';
23
+ import { createTermsOfServiceResource } from './resources/terms-of-service/index.js';
23
24
  import { createTransfersResource } from './resources/transfers/index.js';
24
25
  export { CreateTransferInput, CreateTransferQuoteInput, CreateTransferQuoteResponse, CreateTransferResponse, GetTransferInput, GetTransferResponse, GetTransferTrackInput, GetTransferTrackResponse, ListTransfersInput, ListTransfersResponse, Transfer, TransferTrackingStep, TransferTrackingTransactionMonitoring } from './resources/transfers/index.js';
25
26
  import { createUploadResource } from './resources/upload/index.js';
@@ -34,8 +35,8 @@ import { createOfframpWalletsResource } from './resources/wallets/offramp.js';
34
35
  export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet, OfframpWalletNetwork } from './resources/wallets/offramp.js';
35
36
  import { createWebhookEndpointsResource } from './resources/webhooks/index.js';
36
37
  export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.js';
37
- import './index.d-Gvol1faW.js';
38
- import './api-client-Bklw4zQi.js';
38
+ import './index.d-CxmQ6ci9.js';
39
+ import './api-client-B9lW57MD.js';
39
40
 
40
41
  declare class BlindPay {
41
42
  private readonly baseUrl;
@@ -60,6 +61,7 @@ declare class BlindPay {
60
61
  readonly instances: ReturnType<typeof createInstancesResource> & {
61
62
  apiKeys: ReturnType<typeof createApiKeysResource>;
62
63
  webhookEndpoints: ReturnType<typeof createWebhookEndpointsResource>;
64
+ tos: ReturnType<typeof createTermsOfServiceResource>;
63
65
  };
64
66
  readonly wallets: {
65
67
  blockchain: ReturnType<typeof createBlockchainWalletsResource>;
package/dist/index.js CHANGED
@@ -95,7 +95,7 @@ module.exports = __toCommonJS(index_exports);
95
95
  var import_svix = require("svix");
96
96
 
97
97
  // package.json
98
- var version = "3.5.0";
98
+ var version = "3.8.0";
99
99
 
100
100
  // src/internal/blindpay-error.ts
101
101
  var BlindPayError = class extends Error {
@@ -459,6 +459,23 @@ function createReceiversResource(instanceId, client) {
459
459
  };
460
460
  }
461
461
 
462
+ // src/resources/terms-of-service/index.ts
463
+ function createTermsOfServiceResource(instanceId, client) {
464
+ return {
465
+ initiate({
466
+ idempotency_key,
467
+ receiver_id,
468
+ redirect_url
469
+ }) {
470
+ return client.post(`/e/instances/${instanceId}/tos`, {
471
+ idempotency_key,
472
+ receiver_id,
473
+ redirect_url
474
+ });
475
+ }
476
+ };
477
+ }
478
+
462
479
  // src/resources/transfers/index.ts
463
480
  function createTransfersResource(instanceId, client) {
464
481
  return {
@@ -769,7 +786,8 @@ var BlindPay = class {
769
786
  this.available = createAvailableResource(this.api);
770
787
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
771
788
  apiKeys: createApiKeysResource(this.instanceId, this.api),
772
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
789
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
790
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
773
791
  });
774
792
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
775
793
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlindPay,
3
3
  init_client
4
- } from "./chunk-IHFM6NYO.mjs";
4
+ } from "./chunk-57QRKKXM.mjs";
5
5
  import {
6
6
  createBlockchainWalletsResource,
7
7
  init_blockchain
@@ -14,6 +14,14 @@ import {
14
14
  createOfframpWalletsResource,
15
15
  init_offramp
16
16
  } from "./chunk-QGNLMN6Z.mjs";
17
+ import {
18
+ createWebhookEndpointsResource,
19
+ init_webhooks
20
+ } from "./chunk-UC57SCKQ.mjs";
21
+ import {
22
+ createTransfersResource,
23
+ init_transfers
24
+ } from "./chunk-ISHZTBAN.mjs";
17
25
  import {
18
26
  createUploadResource,
19
27
  init_upload
@@ -22,10 +30,6 @@ import {
22
30
  createVirtualAccountsResource,
23
31
  init_virtual_accounts
24
32
  } from "./chunk-LEPGLH7Q.mjs";
25
- import {
26
- createWebhookEndpointsResource,
27
- init_webhooks
28
- } from "./chunk-UC57SCKQ.mjs";
29
33
  import {
30
34
  createPayinQuotesResource,
31
35
  init_quotes
@@ -42,14 +46,11 @@ import {
42
46
  createReceiversResource,
43
47
  init_receivers
44
48
  } from "./chunk-YIZJM2GU.mjs";
49
+ import "./chunk-Z6EYX4D3.mjs";
45
50
  import {
46
- createTransfersResource,
47
- init_transfers
48
- } from "./chunk-ISHZTBAN.mjs";
49
- import {
50
- createFeesResource,
51
- init_fees
52
- } from "./chunk-ALHMJWQN.mjs";
51
+ createBankAccountsResource,
52
+ init_bank_accounts
53
+ } from "./chunk-UOAM7SX3.mjs";
53
54
  import {
54
55
  createInstancesResource,
55
56
  init_instances
@@ -66,14 +67,14 @@ import {
66
67
  createApiKeysResource,
67
68
  init_api_keys
68
69
  } from "./chunk-LRHWT4JU.mjs";
69
- import {
70
- createBankAccountsResource,
71
- init_bank_accounts
72
- } from "./chunk-UOAM7SX3.mjs";
73
70
  import {
74
71
  createAvailableResource,
75
72
  init_available
76
73
  } from "./chunk-WE73MTQL.mjs";
74
+ import {
75
+ createFeesResource,
76
+ init_fees
77
+ } from "./chunk-ALHMJWQN.mjs";
77
78
  import "./chunk-OBKEW4AQ.mjs";
78
79
 
79
80
  // src/index.ts
@@ -18697,7 +18697,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18697
18697
  var import_svix = require("svix");
18698
18698
 
18699
18699
  // package.json
18700
- var version = "3.5.0";
18700
+ var version = "3.8.0";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -19061,6 +19061,23 @@ function createReceiversResource(instanceId, client) {
19061
19061
  };
19062
19062
  }
19063
19063
 
19064
+ // src/resources/terms-of-service/index.ts
19065
+ function createTermsOfServiceResource(instanceId, client) {
19066
+ return {
19067
+ initiate({
19068
+ idempotency_key,
19069
+ receiver_id,
19070
+ redirect_url
19071
+ }) {
19072
+ return client.post(`/e/instances/${instanceId}/tos`, {
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ });
19077
+ }
19078
+ };
19079
+ }
19080
+
19064
19081
  // src/resources/transfers/index.ts
19065
19082
  function createTransfersResource(instanceId, client) {
19066
19083
  return {
@@ -19371,7 +19388,8 @@ var BlindPay = class {
19371
19388
  this.available = createAvailableResource(this.api);
19372
19389
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19373
19390
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19374
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19391
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19392
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19375
19393
  });
19376
19394
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19377
19395
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -7,25 +7,26 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-IHFM6NYO.mjs";
10
+ } from "../../chunk-57QRKKXM.mjs";
11
11
  import "../../chunk-FG25JHDX.mjs";
12
12
  import "../../chunk-KMU6V4LW.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
+ import "../../chunk-UC57SCKQ.mjs";
15
+ import "../../chunk-ISHZTBAN.mjs";
14
16
  import "../../chunk-UDRMLZWT.mjs";
15
17
  import "../../chunk-LEPGLH7Q.mjs";
16
- import "../../chunk-UC57SCKQ.mjs";
17
18
  import "../../chunk-E7M4CJKR.mjs";
18
19
  import "../../chunk-F5Z45GCA.mjs";
19
20
  import "../../chunk-TBTA7A2P.mjs";
20
21
  import "../../chunk-YIZJM2GU.mjs";
21
- import "../../chunk-ISHZTBAN.mjs";
22
- import "../../chunk-ALHMJWQN.mjs";
22
+ import "../../chunk-Z6EYX4D3.mjs";
23
+ import "../../chunk-UOAM7SX3.mjs";
23
24
  import "../../chunk-BGXC2F73.mjs";
24
25
  import "../../chunk-RC5NN5UF.mjs";
25
26
  import "../../chunk-VGU72ZNI.mjs";
26
27
  import "../../chunk-LRHWT4JU.mjs";
27
- import "../../chunk-UOAM7SX3.mjs";
28
28
  import "../../chunk-WE73MTQL.mjs";
29
+ import "../../chunk-ALHMJWQN.mjs";
29
30
  import {
30
31
  __async,
31
32
  __commonJS
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  id: string;
@@ -1,5 +1,5 @@
1
- import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
3
3
 
4
4
  type ListApiKeysResponse = Array<{
5
5
  id: string;
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "3.5.0";
18705
+ var version = "3.8.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
19066
19066
  };
19067
19067
  }
19068
19068
 
19069
+ // src/resources/terms-of-service/index.ts
19070
+ function createTermsOfServiceResource(instanceId, client) {
19071
+ return {
19072
+ initiate({
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ }) {
19077
+ return client.post(`/e/instances/${instanceId}/tos`, {
19078
+ idempotency_key,
19079
+ receiver_id,
19080
+ redirect_url
19081
+ });
19082
+ }
19083
+ };
19084
+ }
19085
+
19069
19086
  // src/resources/transfers/index.ts
19070
19087
  function createTransfersResource(instanceId, client) {
19071
19088
  return {
@@ -19376,7 +19393,8 @@ var BlindPay = class {
19376
19393
  this.available = createAvailableResource(this.api);
19377
19394
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19378
19395
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19379
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19396
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19397
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19380
19398
  });
19381
19399
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19382
19400
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,25 +8,26 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-IHFM6NYO.mjs";
11
+ } from "../../chunk-57QRKKXM.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
+ import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-ISHZTBAN.mjs";
15
17
  import "../../chunk-UDRMLZWT.mjs";
16
18
  import "../../chunk-LEPGLH7Q.mjs";
17
- import "../../chunk-UC57SCKQ.mjs";
18
19
  import "../../chunk-E7M4CJKR.mjs";
19
20
  import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
22
  import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-ISHZTBAN.mjs";
23
- import "../../chunk-ALHMJWQN.mjs";
23
+ import "../../chunk-Z6EYX4D3.mjs";
24
+ import "../../chunk-UOAM7SX3.mjs";
24
25
  import "../../chunk-BGXC2F73.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
27
  import "../../chunk-VGU72ZNI.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
- import "../../chunk-UOAM7SX3.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
+ import "../../chunk-ALHMJWQN.mjs";
30
31
  import {
31
32
  __async,
32
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { R as Rail, B as BlindpayApiResponse } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { R as Rail, B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
 
4
4
  type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
5
5
  type GetBankDetailsResponse = Array<{
@@ -1,5 +1,5 @@
1
- import { R as Rail, B as BlindpayApiResponse } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { R as Rail, B as BlindpayApiResponse } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
3
3
 
4
4
  type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
5
5
  type GetBankDetailsResponse = Array<{
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_svix = require("svix");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "3.5.0";
18705
+ var version = "3.8.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19066,6 +19066,23 @@ function createReceiversResource(instanceId, client) {
19066
19066
  };
19067
19067
  }
19068
19068
 
19069
+ // src/resources/terms-of-service/index.ts
19070
+ function createTermsOfServiceResource(instanceId, client) {
19071
+ return {
19072
+ initiate({
19073
+ idempotency_key,
19074
+ receiver_id,
19075
+ redirect_url
19076
+ }) {
19077
+ return client.post(`/e/instances/${instanceId}/tos`, {
19078
+ idempotency_key,
19079
+ receiver_id,
19080
+ redirect_url
19081
+ });
19082
+ }
19083
+ };
19084
+ }
19085
+
19069
19086
  // src/resources/transfers/index.ts
19070
19087
  function createTransfersResource(instanceId, client) {
19071
19088
  return {
@@ -19376,7 +19393,8 @@ var BlindPay = class {
19376
19393
  this.available = createAvailableResource(this.api);
19377
19394
  this.instances = __spreadProps(__spreadValues({}, createInstancesResource(this.instanceId, this.api)), {
19378
19395
  apiKeys: createApiKeysResource(this.instanceId, this.api),
19379
- webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api)
19396
+ webhookEndpoints: createWebhookEndpointsResource(this.instanceId, this.api),
19397
+ tos: createTermsOfServiceResource(this.instanceId, this.api)
19380
19398
  });
19381
19399
  this.partnerFees = createPartnerFeesResource(this.instanceId, this.api);
19382
19400
  this.payins = __spreadProps(__spreadValues({}, createPayinsResource(this.instanceId, this.api)), {
@@ -8,25 +8,26 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-IHFM6NYO.mjs";
11
+ } from "../../chunk-57QRKKXM.mjs";
12
12
  import "../../chunk-FG25JHDX.mjs";
13
13
  import "../../chunk-KMU6V4LW.mjs";
14
14
  import "../../chunk-QGNLMN6Z.mjs";
15
+ import "../../chunk-UC57SCKQ.mjs";
16
+ import "../../chunk-ISHZTBAN.mjs";
15
17
  import "../../chunk-UDRMLZWT.mjs";
16
18
  import "../../chunk-LEPGLH7Q.mjs";
17
- import "../../chunk-UC57SCKQ.mjs";
18
19
  import "../../chunk-E7M4CJKR.mjs";
19
20
  import "../../chunk-F5Z45GCA.mjs";
20
21
  import "../../chunk-TBTA7A2P.mjs";
21
22
  import "../../chunk-YIZJM2GU.mjs";
22
- import "../../chunk-ISHZTBAN.mjs";
23
- import "../../chunk-ALHMJWQN.mjs";
23
+ import "../../chunk-Z6EYX4D3.mjs";
24
+ import "../../chunk-UOAM7SX3.mjs";
24
25
  import "../../chunk-BGXC2F73.mjs";
25
26
  import "../../chunk-RC5NN5UF.mjs";
26
27
  import "../../chunk-VGU72ZNI.mjs";
27
28
  import "../../chunk-LRHWT4JU.mjs";
28
- import "../../chunk-UOAM7SX3.mjs";
29
29
  import "../../chunk-WE73MTQL.mjs";
30
+ import "../../chunk-ALHMJWQN.mjs";
30
31
  import {
31
32
  __async,
32
33
  __commonJS
@@ -1,5 +1,5 @@
1
- import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-Gvol1faW.mjs';
2
- import { I as InternalApiClient } from '../../api-client-BlkRiojB.mjs';
1
+ import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-CxmQ6ci9.mjs';
2
+ import { I as InternalApiClient } from '../../api-client-Ct0AsDO5.mjs';
3
3
  import { SpeiProtocol } from '../payouts/index.mjs';
4
4
 
5
5
  type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
@@ -1,5 +1,5 @@
1
- import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-Gvol1faW.js';
2
- import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';
1
+ import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-CxmQ6ci9.js';
2
+ import { I as InternalApiClient } from '../../api-client-B9lW57MD.js';
3
3
  import { SpeiProtocol } from '../payouts/index.js';
4
4
 
5
5
  type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";