@binance/wallet 13.0.0 → 14.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.
- package/dist/index.d.mts +114 -10
- package/dist/index.d.ts +114 -10
- package/dist/index.js +59 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +59 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenE
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/wallet";
|
|
6
|
-
var version = "
|
|
6
|
+
var version = "14.0.0";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -763,8 +763,6 @@ var AssetApi = class {
|
|
|
763
763
|
/**
|
|
764
764
|
* Query User Delegation History
|
|
765
765
|
*
|
|
766
|
-
* You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint
|
|
767
|
-
*
|
|
768
766
|
* Weight: 60
|
|
769
767
|
*
|
|
770
768
|
* @summary Query User Delegation History(For Master Account)(USER_DATA)
|
|
@@ -1544,6 +1542,23 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1544
1542
|
timeUnit: _timeUnit
|
|
1545
1543
|
};
|
|
1546
1544
|
},
|
|
1545
|
+
submitDepositQuestionnaireV2: async (depositId, questionnaire) => {
|
|
1546
|
+
assertParamExists("submitDepositQuestionnaireV2", "depositId", depositId);
|
|
1547
|
+
assertParamExists("submitDepositQuestionnaireV2", "questionnaire", questionnaire);
|
|
1548
|
+
const localVarQueryParameter = {};
|
|
1549
|
+
const localVarBodyParameter = {};
|
|
1550
|
+
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1551
|
+
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1552
|
+
let _timeUnit;
|
|
1553
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1554
|
+
return {
|
|
1555
|
+
endpoint: "/sapi/v2/localentity/deposit/provide-info",
|
|
1556
|
+
method: "PUT",
|
|
1557
|
+
queryParams: localVarQueryParameter,
|
|
1558
|
+
bodyParams: localVarBodyParameter,
|
|
1559
|
+
timeUnit: _timeUnit
|
|
1560
|
+
};
|
|
1561
|
+
},
|
|
1547
1562
|
vaspList: async (recvWindow) => {
|
|
1548
1563
|
const localVarQueryParameter = {};
|
|
1549
1564
|
const localVarBodyParameter = {};
|
|
@@ -1779,6 +1794,27 @@ var TravelRuleApi = class {
|
|
|
1779
1794
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1780
1795
|
}
|
|
1781
1796
|
/**
|
|
1797
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
1798
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
1799
|
+
* yet onboarded with GTR.
|
|
1800
|
+
*
|
|
1801
|
+
* Questionnaire is different for each local entity, please refer
|
|
1802
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
1803
|
+
*
|
|
1804
|
+
* Weight: 600
|
|
1805
|
+
*
|
|
1806
|
+
* @summary Submit Deposit Questionnaire V2 (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
1807
|
+
* @param {SubmitDepositQuestionnaireV2Request} requestParameters Request parameters.
|
|
1808
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireV2Response>>}
|
|
1809
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1810
|
+
* @memberof TravelRuleApi
|
|
1811
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info-v2 Binance API Documentation}
|
|
1812
|
+
*/
|
|
1813
|
+
async submitDepositQuestionnaireV2(requestParameters) {
|
|
1814
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireV2(requestParameters?.depositId, requestParameters?.questionnaire);
|
|
1815
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1782
1818
|
* Fetch the VASP list for local entities.
|
|
1783
1819
|
*
|
|
1784
1820
|
* Weight: 1
|
|
@@ -2190,8 +2226,6 @@ var RestAPI = class {
|
|
|
2190
2226
|
/**
|
|
2191
2227
|
* Query User Delegation History
|
|
2192
2228
|
*
|
|
2193
|
-
* You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint
|
|
2194
|
-
*
|
|
2195
2229
|
* Weight: 60
|
|
2196
2230
|
*
|
|
2197
2231
|
* @summary Query User Delegation History(For Master Account)(USER_DATA)
|
|
@@ -2656,6 +2690,26 @@ var RestAPI = class {
|
|
|
2656
2690
|
return this.travelRuleApi.submitDepositQuestionnaireTravelRule(requestParameters);
|
|
2657
2691
|
}
|
|
2658
2692
|
/**
|
|
2693
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
2694
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
2695
|
+
* yet onboarded with GTR.
|
|
2696
|
+
*
|
|
2697
|
+
* Questionnaire is different for each local entity, please refer
|
|
2698
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2699
|
+
*
|
|
2700
|
+
* Weight: 600
|
|
2701
|
+
*
|
|
2702
|
+
* @summary Submit Deposit Questionnaire V2 (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2703
|
+
* @param {SubmitDepositQuestionnaireV2Request} requestParameters Request parameters.
|
|
2704
|
+
*
|
|
2705
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireV2Response>>}
|
|
2706
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2707
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info-v2 Binance API Documentation}
|
|
2708
|
+
*/
|
|
2709
|
+
submitDepositQuestionnaireV2(requestParameters) {
|
|
2710
|
+
return this.travelRuleApi.submitDepositQuestionnaireV2(requestParameters);
|
|
2711
|
+
}
|
|
2712
|
+
/**
|
|
2659
2713
|
* Fetch the VASP list for local entities.
|
|
2660
2714
|
*
|
|
2661
2715
|
* Weight: 1
|