@cobo/cobo-waas2 1.4.0 → 1.5.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/README.md +19 -8
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +105 -0
- package/dist/api/DevelopersWebhooksApi.js +43 -0
- package/dist/api/OAuthApi.js +6 -6
- package/dist/api/TransactionsApi.js +12 -12
- package/dist/api/WalletsApi.js +2 -2
- package/dist/api/WalletsExchangeWalletApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +8 -8
- package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
- package/dist/index.js +101 -31
- package/dist/model/AddressBook.js +25 -10
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/ApiLogDetails.js +238 -0
- package/dist/model/ApiLogSummary.js +161 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
- package/dist/model/CoboSafeDelegate.js +2 -2
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +2 -2
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/ExchangeId.js +10 -0
- package/dist/model/ExtendedTokenInfo.js +17 -4
- package/dist/model/ListAddressBooks200Response.js +123 -0
- package/dist/model/MPCDelegate.js +4 -4
- package/dist/model/{RefreshToken200Response.js → RefreshToken201Response.js} +21 -21
- package/dist/model/SafeWalletDelegates.js +210 -0
- package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
- package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
- package/dist/model/TokenAssetModelType.js +61 -0
- package/dist/model/TokenBalanceBalance.js +6 -6
- package/dist/model/TokenInfo.js +11 -2
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDestination.js +50 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionEvmCalldataInfo.js +177 -0
- package/dist/model/TransactionEvmContractDestination.js +16 -0
- package/dist/model/TransactionEvmContractMethod.js +136 -0
- package/dist/model/TransactionRawMessageSignDestination.js +120 -0
- package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
- package/dist/model/TransactionTokeApproval.js +17 -4
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +2 -2
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
- package/dist/model/{WalletBalanceSnapshot.js → TriggerTestWebhookEventRequest.js} +31 -36
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/AddressBook.md +8 -7
- package/docs/AddressBooksApi.md +71 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/ApiLogDetails.md +18 -0
- package/docs/ApiLogSummary.md +13 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
- package/docs/CoboSafeDelegate.md +2 -2
- package/docs/DevelopersWebhooksApi.md +53 -0
- package/docs/ErrorResponse.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/ExchangeId.md +4 -0
- package/docs/ExtendedTokenInfo.md +3 -2
- package/docs/ListAddressBooks200Response.md +10 -0
- package/docs/MPCDelegate.md +2 -2
- package/docs/OAuthApi.md +3 -3
- package/docs/{RefreshToken200Response.md → RefreshToken201Response.md} +1 -1
- package/docs/SafeWalletDelegates.md +14 -0
- package/docs/SafeWalletDelegatesContractCall.md +12 -0
- package/docs/SafeWalletDelegatesTransfer.md +12 -0
- package/docs/TokenAssetModelType.md +12 -0
- package/docs/TokenBalanceBalance.md +4 -4
- package/docs/TokenInfo.md +3 -2
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDestination.md +4 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionEvmCalldataInfo.md +16 -0
- package/docs/TransactionEvmContractDestination.md +1 -0
- package/docs/TransactionEvmContractMethod.md +13 -0
- package/docs/TransactionRawMessageSignDestination.md +10 -0
- package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
- package/docs/TransactionSource.md +1 -1
- package/docs/TransactionTokeApproval.md +3 -2
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +7 -7
- package/docs/TransferDestination.md +2 -2
- package/docs/TriggerTestWebhookEvent201Response.md +9 -0
- package/docs/TriggerTestWebhookEventRequest.md +10 -0
- package/docs/WalletsApi.md +1 -1
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +4 -4
- package/docs/WalletsSmartContractWalletsApi.md +63 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +2 -2
- package/dist/model/BookkeepingRecord.js +0 -243
- package/docs/BookkeepingRecord.md +0 -19
- package/docs/BookkeepingSummary.md +0 -12
- package/docs/WalletBalanceSnapshot.md +0 -10
- package/docs/WalletBalanceSnapshotRecord.md +0 -13
|
@@ -201,7 +201,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* Create vault
|
|
204
|
-
* This operation creates a vault.
|
|
204
|
+
* This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
205
205
|
* @param {Object} opts Optional parameters
|
|
206
206
|
* @param {module:model/CreateMpcVaultRequest} [CreateMpcVaultRequest] The request body to create a vault.
|
|
207
207
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCVault} and HTTP response
|
|
@@ -227,7 +227,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* Create vault
|
|
230
|
-
* This operation creates a vault.
|
|
230
|
+
* This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
231
231
|
* @param {Object} opts Optional parameters
|
|
232
232
|
* @param {module:model/CreateMpcVaultRequest} opts.CreateMpcVaultRequest The request body to create a vault.
|
|
233
233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCVault}
|
|
@@ -437,7 +437,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
439
|
* Get vault information
|
|
440
|
-
* This operation retrieves detailed information about a vault.
|
|
440
|
+
* This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
441
441
|
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
|
|
442
442
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCVault} and HTTP response
|
|
443
443
|
*/
|
|
@@ -467,7 +467,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
467
467
|
|
|
468
468
|
/**
|
|
469
469
|
* Get vault information
|
|
470
|
-
* This operation retrieves detailed information about a vault.
|
|
470
|
+
* This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
471
471
|
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
|
|
472
472
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCVault}
|
|
473
473
|
*/
|
|
@@ -677,7 +677,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
679
|
* List all vaults
|
|
680
|
-
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`.
|
|
680
|
+
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
681
681
|
* @param {module:model/MPCVaultType} vault_type The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets).
|
|
682
682
|
* @param {Object} opts Optional parameters
|
|
683
683
|
* @param {String} [project_id] The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
@@ -717,7 +717,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
717
717
|
|
|
718
718
|
/**
|
|
719
719
|
* List all vaults
|
|
720
|
-
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`.
|
|
720
|
+
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
721
721
|
* @param {module:model/MPCVaultType} vault_type The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets).
|
|
722
722
|
* @param {Object} opts Optional parameters
|
|
723
723
|
* @param {String} opts.project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
@@ -905,7 +905,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
905
905
|
|
|
906
906
|
/**
|
|
907
907
|
* Update vault name
|
|
908
|
-
* This operation updates a vault's name.
|
|
908
|
+
* This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
909
909
|
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
|
|
910
910
|
* @param {Object} opts Optional parameters
|
|
911
911
|
* @param {module:model/UpdateMpcVaultByIdRequest} [UpdateMpcVaultByIdRequest] The request body to update a vault's name.
|
|
@@ -938,7 +938,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
938
938
|
|
|
939
939
|
/**
|
|
940
940
|
* Update vault name
|
|
941
|
-
* This operation updates a vault's name.
|
|
941
|
+
* This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
942
942
|
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
|
|
943
943
|
* @param {Object} opts Optional parameters
|
|
944
944
|
* @param {module:model/UpdateMpcVaultByIdRequest} opts.UpdateMpcVaultByIdRequest The request body to update a vault's name.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _CoboSafeDelegate = _interopRequireDefault(require("../model/CoboSafeDelegate"));
|
|
9
|
+
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
10
|
+
var _SafeWalletDelegates = _interopRequireDefault(require("../model/SafeWalletDelegates"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Cobo Wallet as a Service 2.0
|
|
19
|
+
*
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* WalletsSmartContractWallets service.
|
|
29
|
+
* @module api/WalletsSmartContractWalletsApi
|
|
30
|
+
*/
|
|
31
|
+
var WalletsSmartContractWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new WalletsSmartContractWalletsApi.
|
|
34
|
+
* @alias module:api/WalletsSmartContractWalletsApi
|
|
35
|
+
* @class
|
|
36
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
37
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
38
|
+
*/
|
|
39
|
+
function WalletsSmartContractWalletsApi(apiClient) {
|
|
40
|
+
_classCallCheck(this, WalletsSmartContractWalletsApi);
|
|
41
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* List Delegates
|
|
46
|
+
* This operation retrieves all available Delegates of a Safe\\{Wallet\\} for a given transfer or contract call request.
|
|
47
|
+
* @param {String} wallet_id The wallet ID.
|
|
48
|
+
* @param {Object} opts Optional parameters
|
|
49
|
+
* @param {module:model/SafeWalletDelegates} [SafeWalletDelegates] The request body to query the Delegates of a Safe{Wallet}.
|
|
50
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CoboSafeDelegate>} and HTTP response
|
|
51
|
+
*/
|
|
52
|
+
return _createClass(WalletsSmartContractWalletsApi, [{
|
|
53
|
+
key: "listSafeWalletDelegatesWithHttpInfo",
|
|
54
|
+
value: function listSafeWalletDelegatesWithHttpInfo(wallet_id, opts) {
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
var postBody = opts['SafeWalletDelegates'];
|
|
57
|
+
if (postBody && postBody.toJSON) {
|
|
58
|
+
postBody = postBody.toJSON();
|
|
59
|
+
}
|
|
60
|
+
// verify the required parameter 'wallet_id' is set
|
|
61
|
+
if (wallet_id === undefined || wallet_id === null) {
|
|
62
|
+
throw new Error("Missing the required parameter 'wallet_id' when calling listSafeWalletDelegates");
|
|
63
|
+
}
|
|
64
|
+
var pathParams = {
|
|
65
|
+
'wallet_id': wallet_id
|
|
66
|
+
};
|
|
67
|
+
var queryParams = {};
|
|
68
|
+
var headerParams = {};
|
|
69
|
+
var formParams = {};
|
|
70
|
+
var authNames = ['CoboAuth'];
|
|
71
|
+
var contentTypes = ['application/json'];
|
|
72
|
+
var accepts = ['application/json'];
|
|
73
|
+
var returnType = [_CoboSafeDelegate["default"]];
|
|
74
|
+
return this.apiClient.callApi('/wallets/{wallet_id}/smart_contracts/delegates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* List Delegates
|
|
79
|
+
* This operation retrieves all available Delegates of a Safe\\{Wallet\\} for a given transfer or contract call request.
|
|
80
|
+
* @param {String} wallet_id The wallet ID.
|
|
81
|
+
* @param {Object} opts Optional parameters
|
|
82
|
+
* @param {module:model/SafeWalletDelegates} opts.SafeWalletDelegates The request body to query the Delegates of a Safe{Wallet}.
|
|
83
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CoboSafeDelegate>}
|
|
84
|
+
*/
|
|
85
|
+
}, {
|
|
86
|
+
key: "listSafeWalletDelegates",
|
|
87
|
+
value: function listSafeWalletDelegates(wallet_id, opts) {
|
|
88
|
+
return this.listSafeWalletDelegatesWithHttpInfo(wallet_id, opts).then(function (response_and_data) {
|
|
89
|
+
return response_and_data.data;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}]);
|
|
93
|
+
}();
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "AddressBook", {
|
|
|
45
45
|
return _AddressBook["default"];
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "AddressBooksApi", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _AddressBooksApi["default"];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
Object.defineProperty(exports, "AddressEncoding", {
|
|
49
55
|
enumerable: true,
|
|
50
56
|
get: function get() {
|
|
@@ -93,6 +99,18 @@ Object.defineProperty(exports, "ApiClient", {
|
|
|
93
99
|
return _ApiClient["default"];
|
|
94
100
|
}
|
|
95
101
|
});
|
|
102
|
+
Object.defineProperty(exports, "ApiLogDetails", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _ApiLogDetails["default"];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "ApiLogSummary", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _ApiLogSummary["default"];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
96
114
|
Object.defineProperty(exports, "AssetBalance", {
|
|
97
115
|
enumerable: true,
|
|
98
116
|
get: function get() {
|
|
@@ -147,18 +165,6 @@ Object.defineProperty(exports, "BaseStakeSource", {
|
|
|
147
165
|
return _BaseStakeSource["default"];
|
|
148
166
|
}
|
|
149
167
|
});
|
|
150
|
-
Object.defineProperty(exports, "BookkeepingRecord", {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function get() {
|
|
153
|
-
return _BookkeepingRecord["default"];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "BookkeepingSummary", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function get() {
|
|
159
|
-
return _BookkeepingSummary["default"];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
168
|
Object.defineProperty(exports, "BroadcastSignedTransactions201ResponseInner", {
|
|
163
169
|
enumerable: true,
|
|
164
170
|
get: function get() {
|
|
@@ -693,6 +699,12 @@ Object.defineProperty(exports, "KeyShareHolderType", {
|
|
|
693
699
|
return _KeyShareHolderType["default"];
|
|
694
700
|
}
|
|
695
701
|
});
|
|
702
|
+
Object.defineProperty(exports, "ListAddressBooks200Response", {
|
|
703
|
+
enumerable: true,
|
|
704
|
+
get: function get() {
|
|
705
|
+
return _ListAddressBooks200Response["default"];
|
|
706
|
+
}
|
|
707
|
+
});
|
|
696
708
|
Object.defineProperty(exports, "ListAddresses200Response", {
|
|
697
709
|
enumerable: true,
|
|
698
710
|
get: function get() {
|
|
@@ -975,10 +987,10 @@ Object.defineProperty(exports, "RawMessageSignDestination", {
|
|
|
975
987
|
return _RawMessageSignDestination["default"];
|
|
976
988
|
}
|
|
977
989
|
});
|
|
978
|
-
Object.defineProperty(exports, "
|
|
990
|
+
Object.defineProperty(exports, "RefreshToken201Response", {
|
|
979
991
|
enumerable: true,
|
|
980
992
|
get: function get() {
|
|
981
|
-
return
|
|
993
|
+
return _RefreshToken201Response["default"];
|
|
982
994
|
}
|
|
983
995
|
});
|
|
984
996
|
Object.defineProperty(exports, "RefreshTokenRequest", {
|
|
@@ -1023,6 +1035,24 @@ Object.defineProperty(exports, "SafeWallet", {
|
|
|
1023
1035
|
return _SafeWallet["default"];
|
|
1024
1036
|
}
|
|
1025
1037
|
});
|
|
1038
|
+
Object.defineProperty(exports, "SafeWalletDelegates", {
|
|
1039
|
+
enumerable: true,
|
|
1040
|
+
get: function get() {
|
|
1041
|
+
return _SafeWalletDelegates["default"];
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
Object.defineProperty(exports, "SafeWalletDelegatesContractCall", {
|
|
1045
|
+
enumerable: true,
|
|
1046
|
+
get: function get() {
|
|
1047
|
+
return _SafeWalletDelegatesContractCall["default"];
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
Object.defineProperty(exports, "SafeWalletDelegatesTransfer", {
|
|
1051
|
+
enumerable: true,
|
|
1052
|
+
get: function get() {
|
|
1053
|
+
return _SafeWalletDelegatesTransfer["default"];
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1026
1056
|
Object.defineProperty(exports, "SmartContractInitiator", {
|
|
1027
1057
|
enumerable: true,
|
|
1028
1058
|
get: function get() {
|
|
@@ -1131,6 +1161,12 @@ Object.defineProperty(exports, "TSSRequestWebhookEventData", {
|
|
|
1131
1161
|
return _TSSRequestWebhookEventData["default"];
|
|
1132
1162
|
}
|
|
1133
1163
|
});
|
|
1164
|
+
Object.defineProperty(exports, "TokenAssetModelType", {
|
|
1165
|
+
enumerable: true,
|
|
1166
|
+
get: function get() {
|
|
1167
|
+
return _TokenAssetModelType["default"];
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1134
1170
|
Object.defineProperty(exports, "TokenBalance", {
|
|
1135
1171
|
enumerable: true,
|
|
1136
1172
|
get: function get() {
|
|
@@ -1227,12 +1263,24 @@ Object.defineProperty(exports, "TransactionDetails", {
|
|
|
1227
1263
|
return _TransactionDetails["default"];
|
|
1228
1264
|
}
|
|
1229
1265
|
});
|
|
1266
|
+
Object.defineProperty(exports, "TransactionEvmCalldataInfo", {
|
|
1267
|
+
enumerable: true,
|
|
1268
|
+
get: function get() {
|
|
1269
|
+
return _TransactionEvmCalldataInfo["default"];
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1230
1272
|
Object.defineProperty(exports, "TransactionEvmContractDestination", {
|
|
1231
1273
|
enumerable: true,
|
|
1232
1274
|
get: function get() {
|
|
1233
1275
|
return _TransactionEvmContractDestination["default"];
|
|
1234
1276
|
}
|
|
1235
1277
|
});
|
|
1278
|
+
Object.defineProperty(exports, "TransactionEvmContractMethod", {
|
|
1279
|
+
enumerable: true,
|
|
1280
|
+
get: function get() {
|
|
1281
|
+
return _TransactionEvmContractMethod["default"];
|
|
1282
|
+
}
|
|
1283
|
+
});
|
|
1236
1284
|
Object.defineProperty(exports, "TransactionEvmEip1559Fee", {
|
|
1237
1285
|
enumerable: true,
|
|
1238
1286
|
get: function get() {
|
|
@@ -1293,6 +1341,12 @@ Object.defineProperty(exports, "TransactionMessageSignEIP712Destination", {
|
|
|
1293
1341
|
return _TransactionMessageSignEIP712Destination["default"];
|
|
1294
1342
|
}
|
|
1295
1343
|
});
|
|
1344
|
+
Object.defineProperty(exports, "TransactionRawMessageSignDestination", {
|
|
1345
|
+
enumerable: true,
|
|
1346
|
+
get: function get() {
|
|
1347
|
+
return _TransactionRawMessageSignDestination["default"];
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
1296
1350
|
Object.defineProperty(exports, "TransactionRawTxInfo", {
|
|
1297
1351
|
enumerable: true,
|
|
1298
1352
|
get: function get() {
|
|
@@ -1503,6 +1557,18 @@ Object.defineProperty(exports, "TransferSource", {
|
|
|
1503
1557
|
return _TransferSource["default"];
|
|
1504
1558
|
}
|
|
1505
1559
|
});
|
|
1560
|
+
Object.defineProperty(exports, "TriggerTestWebhookEvent201Response", {
|
|
1561
|
+
enumerable: true,
|
|
1562
|
+
get: function get() {
|
|
1563
|
+
return _TriggerTestWebhookEvent201Response["default"];
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
Object.defineProperty(exports, "TriggerTestWebhookEventRequest", {
|
|
1567
|
+
enumerable: true,
|
|
1568
|
+
get: function get() {
|
|
1569
|
+
return _TriggerTestWebhookEventRequest["default"];
|
|
1570
|
+
}
|
|
1571
|
+
});
|
|
1506
1572
|
Object.defineProperty(exports, "UTXO", {
|
|
1507
1573
|
enumerable: true,
|
|
1508
1574
|
get: function get() {
|
|
@@ -1581,18 +1647,6 @@ Object.defineProperty(exports, "UtxoFeeRate", {
|
|
|
1581
1647
|
return _UtxoFeeRate["default"];
|
|
1582
1648
|
}
|
|
1583
1649
|
});
|
|
1584
|
-
Object.defineProperty(exports, "WalletBalanceSnapshot", {
|
|
1585
|
-
enumerable: true,
|
|
1586
|
-
get: function get() {
|
|
1587
|
-
return _WalletBalanceSnapshot["default"];
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1590
|
-
Object.defineProperty(exports, "WalletBalanceSnapshotRecord", {
|
|
1591
|
-
enumerable: true,
|
|
1592
|
-
get: function get() {
|
|
1593
|
-
return _WalletBalanceSnapshotRecord["default"];
|
|
1594
|
-
}
|
|
1595
|
-
});
|
|
1596
1650
|
Object.defineProperty(exports, "WalletInfo", {
|
|
1597
1651
|
enumerable: true,
|
|
1598
1652
|
get: function get() {
|
|
@@ -1629,6 +1683,12 @@ Object.defineProperty(exports, "WalletsMPCWalletsApi", {
|
|
|
1629
1683
|
return _WalletsMPCWalletsApi["default"];
|
|
1630
1684
|
}
|
|
1631
1685
|
});
|
|
1686
|
+
Object.defineProperty(exports, "WalletsSmartContractWalletsApi", {
|
|
1687
|
+
enumerable: true,
|
|
1688
|
+
get: function get() {
|
|
1689
|
+
return _WalletsSmartContractWalletsApi["default"];
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1632
1692
|
Object.defineProperty(exports, "WebhookEndpoint", {
|
|
1633
1693
|
enumerable: true,
|
|
1634
1694
|
get: function get() {
|
|
@@ -1693,6 +1753,8 @@ var _AddressTransferDestinationAccountOutput = _interopRequireDefault(require(".
|
|
|
1693
1753
|
var _AddressTransferDestinationUtxoOutputsInner = _interopRequireDefault(require("./model/AddressTransferDestinationUtxoOutputsInner"));
|
|
1694
1754
|
var _AmountDetailsInner = _interopRequireDefault(require("./model/AmountDetailsInner"));
|
|
1695
1755
|
var _AmountStatus = _interopRequireDefault(require("./model/AmountStatus"));
|
|
1756
|
+
var _ApiLogDetails = _interopRequireDefault(require("./model/ApiLogDetails"));
|
|
1757
|
+
var _ApiLogSummary = _interopRequireDefault(require("./model/ApiLogSummary"));
|
|
1696
1758
|
var _AssetBalance = _interopRequireDefault(require("./model/AssetBalance"));
|
|
1697
1759
|
var _AssetInfo = _interopRequireDefault(require("./model/AssetInfo"));
|
|
1698
1760
|
var _BabylonStakeExtra = _interopRequireDefault(require("./model/BabylonStakeExtra"));
|
|
@@ -1702,8 +1764,6 @@ var _BaseContractCallSource = _interopRequireDefault(require("./model/BaseContra
|
|
|
1702
1764
|
var _BaseEstimateStakingFee = _interopRequireDefault(require("./model/BaseEstimateStakingFee"));
|
|
1703
1765
|
var _BaseStakeExtra = _interopRequireDefault(require("./model/BaseStakeExtra"));
|
|
1704
1766
|
var _BaseStakeSource = _interopRequireDefault(require("./model/BaseStakeSource"));
|
|
1705
|
-
var _BookkeepingRecord = _interopRequireDefault(require("./model/BookkeepingRecord"));
|
|
1706
|
-
var _BookkeepingSummary = _interopRequireDefault(require("./model/BookkeepingSummary"));
|
|
1707
1767
|
var _BroadcastSignedTransactions201ResponseInner = _interopRequireDefault(require("./model/BroadcastSignedTransactions201ResponseInner"));
|
|
1708
1768
|
var _BroadcastSignedTransactionsRequest = _interopRequireDefault(require("./model/BroadcastSignedTransactionsRequest"));
|
|
1709
1769
|
var _ChainInfo = _interopRequireDefault(require("./model/ChainInfo"));
|
|
@@ -1791,6 +1851,7 @@ var _KeyShareHolderGroupStatus = _interopRequireDefault(require("./model/KeyShar
|
|
|
1791
1851
|
var _KeyShareHolderGroupType = _interopRequireDefault(require("./model/KeyShareHolderGroupType"));
|
|
1792
1852
|
var _KeyShareHolderStatus = _interopRequireDefault(require("./model/KeyShareHolderStatus"));
|
|
1793
1853
|
var _KeyShareHolderType = _interopRequireDefault(require("./model/KeyShareHolderType"));
|
|
1854
|
+
var _ListAddressBooks200Response = _interopRequireDefault(require("./model/ListAddressBooks200Response"));
|
|
1794
1855
|
var _ListAddresses200Response = _interopRequireDefault(require("./model/ListAddresses200Response"));
|
|
1795
1856
|
var _ListAssetBalancesForExchangeWallet200Response = _interopRequireDefault(require("./model/ListAssetBalancesForExchangeWallet200Response"));
|
|
1796
1857
|
var _ListExchanges200ResponseInner = _interopRequireDefault(require("./model/ListExchanges200ResponseInner"));
|
|
@@ -1837,7 +1898,7 @@ var _PoolDetails = _interopRequireDefault(require("./model/PoolDetails"));
|
|
|
1837
1898
|
var _PoolDetailsAllOfValidatorsInfo = _interopRequireDefault(require("./model/PoolDetailsAllOfValidatorsInfo"));
|
|
1838
1899
|
var _PoolSummary = _interopRequireDefault(require("./model/PoolSummary"));
|
|
1839
1900
|
var _RawMessageSignDestination = _interopRequireDefault(require("./model/RawMessageSignDestination"));
|
|
1840
|
-
var
|
|
1901
|
+
var _RefreshToken201Response = _interopRequireDefault(require("./model/RefreshToken201Response"));
|
|
1841
1902
|
var _RefreshTokenRequest = _interopRequireDefault(require("./model/RefreshTokenRequest"));
|
|
1842
1903
|
var _ReplaceType = _interopRequireDefault(require("./model/ReplaceType"));
|
|
1843
1904
|
var _RetryWebhookEventById201Response = _interopRequireDefault(require("./model/RetryWebhookEventById201Response"));
|
|
@@ -1845,6 +1906,9 @@ var _RootPubkey = _interopRequireDefault(require("./model/RootPubkey"));
|
|
|
1845
1906
|
var _SafeContractCallSource = _interopRequireDefault(require("./model/SafeContractCallSource"));
|
|
1846
1907
|
var _SafeTransferSource = _interopRequireDefault(require("./model/SafeTransferSource"));
|
|
1847
1908
|
var _SafeWallet = _interopRequireDefault(require("./model/SafeWallet"));
|
|
1909
|
+
var _SafeWalletDelegates = _interopRequireDefault(require("./model/SafeWalletDelegates"));
|
|
1910
|
+
var _SafeWalletDelegatesContractCall = _interopRequireDefault(require("./model/SafeWalletDelegatesContractCall"));
|
|
1911
|
+
var _SafeWalletDelegatesTransfer = _interopRequireDefault(require("./model/SafeWalletDelegatesTransfer"));
|
|
1848
1912
|
var _SmartContractInitiator = _interopRequireDefault(require("./model/SmartContractInitiator"));
|
|
1849
1913
|
var _SmartContractWalletInfo = _interopRequireDefault(require("./model/SmartContractWalletInfo"));
|
|
1850
1914
|
var _SmartContractWalletOperationType = _interopRequireDefault(require("./model/SmartContractWalletOperationType"));
|
|
@@ -1862,6 +1926,7 @@ var _TSSRequest = _interopRequireDefault(require("./model/TSSRequest"));
|
|
|
1862
1926
|
var _TSSRequestStatus = _interopRequireDefault(require("./model/TSSRequestStatus"));
|
|
1863
1927
|
var _TSSRequestType = _interopRequireDefault(require("./model/TSSRequestType"));
|
|
1864
1928
|
var _TSSRequestWebhookEventData = _interopRequireDefault(require("./model/TSSRequestWebhookEventData"));
|
|
1929
|
+
var _TokenAssetModelType = _interopRequireDefault(require("./model/TokenAssetModelType"));
|
|
1865
1930
|
var _TokenBalance = _interopRequireDefault(require("./model/TokenBalance"));
|
|
1866
1931
|
var _TokenBalanceBalance = _interopRequireDefault(require("./model/TokenBalanceBalance"));
|
|
1867
1932
|
var _TokenInfo = _interopRequireDefault(require("./model/TokenInfo"));
|
|
@@ -1878,7 +1943,9 @@ var _TransactionDestination = _interopRequireDefault(require("./model/Transactio
|
|
|
1878
1943
|
var _TransactionDestinationType = _interopRequireDefault(require("./model/TransactionDestinationType"));
|
|
1879
1944
|
var _TransactionDetail = _interopRequireDefault(require("./model/TransactionDetail"));
|
|
1880
1945
|
var _TransactionDetails = _interopRequireDefault(require("./model/TransactionDetails"));
|
|
1946
|
+
var _TransactionEvmCalldataInfo = _interopRequireDefault(require("./model/TransactionEvmCalldataInfo"));
|
|
1881
1947
|
var _TransactionEvmContractDestination = _interopRequireDefault(require("./model/TransactionEvmContractDestination"));
|
|
1948
|
+
var _TransactionEvmContractMethod = _interopRequireDefault(require("./model/TransactionEvmContractMethod"));
|
|
1882
1949
|
var _TransactionEvmEip1559Fee = _interopRequireDefault(require("./model/TransactionEvmEip1559Fee"));
|
|
1883
1950
|
var _TransactionEvmLegacyFee = _interopRequireDefault(require("./model/TransactionEvmLegacyFee"));
|
|
1884
1951
|
var _TransactionExchangeWalletSource = _interopRequireDefault(require("./model/TransactionExchangeWalletSource"));
|
|
@@ -1889,6 +1956,7 @@ var _TransactionInitiatorType = _interopRequireDefault(require("./model/Transact
|
|
|
1889
1956
|
var _TransactionMPCWalletSource = _interopRequireDefault(require("./model/TransactionMPCWalletSource"));
|
|
1890
1957
|
var _TransactionMessageSignEIP191Destination = _interopRequireDefault(require("./model/TransactionMessageSignEIP191Destination"));
|
|
1891
1958
|
var _TransactionMessageSignEIP712Destination = _interopRequireDefault(require("./model/TransactionMessageSignEIP712Destination"));
|
|
1959
|
+
var _TransactionRawMessageSignDestination = _interopRequireDefault(require("./model/TransactionRawMessageSignDestination"));
|
|
1892
1960
|
var _TransactionRawTxInfo = _interopRequireDefault(require("./model/TransactionRawTxInfo"));
|
|
1893
1961
|
var _TransactionRbf = _interopRequireDefault(require("./model/TransactionRbf"));
|
|
1894
1962
|
var _TransactionRbfSource = _interopRequireDefault(require("./model/TransactionRbfSource"));
|
|
@@ -1923,6 +1991,8 @@ var _TransferDestination = _interopRequireDefault(require("./model/TransferDesti
|
|
|
1923
1991
|
var _TransferDestinationType = _interopRequireDefault(require("./model/TransferDestinationType"));
|
|
1924
1992
|
var _TransferParams = _interopRequireDefault(require("./model/TransferParams"));
|
|
1925
1993
|
var _TransferSource = _interopRequireDefault(require("./model/TransferSource"));
|
|
1994
|
+
var _TriggerTestWebhookEvent201Response = _interopRequireDefault(require("./model/TriggerTestWebhookEvent201Response"));
|
|
1995
|
+
var _TriggerTestWebhookEventRequest = _interopRequireDefault(require("./model/TriggerTestWebhookEventRequest"));
|
|
1926
1996
|
var _UTXO = _interopRequireDefault(require("./model/UTXO"));
|
|
1927
1997
|
var _UpdateCustodialWalletParams = _interopRequireDefault(require("./model/UpdateCustodialWalletParams"));
|
|
1928
1998
|
var _UpdateExchangeWalletParams = _interopRequireDefault(require("./model/UpdateExchangeWalletParams"));
|
|
@@ -1936,8 +2006,6 @@ var _UpdateWalletParams = _interopRequireDefault(require("./model/UpdateWalletPa
|
|
|
1936
2006
|
var _UpdateWebhookEndpointByIdRequest = _interopRequireDefault(require("./model/UpdateWebhookEndpointByIdRequest"));
|
|
1937
2007
|
var _UtxoFeeBasePrice = _interopRequireDefault(require("./model/UtxoFeeBasePrice"));
|
|
1938
2008
|
var _UtxoFeeRate = _interopRequireDefault(require("./model/UtxoFeeRate"));
|
|
1939
|
-
var _WalletBalanceSnapshot = _interopRequireDefault(require("./model/WalletBalanceSnapshot"));
|
|
1940
|
-
var _WalletBalanceSnapshotRecord = _interopRequireDefault(require("./model/WalletBalanceSnapshotRecord"));
|
|
1941
2009
|
var _WalletInfo = _interopRequireDefault(require("./model/WalletInfo"));
|
|
1942
2010
|
var _WalletSubtype = _interopRequireDefault(require("./model/WalletSubtype"));
|
|
1943
2011
|
var _WalletType = _interopRequireDefault(require("./model/WalletType"));
|
|
@@ -1949,6 +2017,7 @@ var _WebhookEventDataType = _interopRequireDefault(require("./model/WebhookEvent
|
|
|
1949
2017
|
var _WebhookEventLog = _interopRequireDefault(require("./model/WebhookEventLog"));
|
|
1950
2018
|
var _WebhookEventStatus = _interopRequireDefault(require("./model/WebhookEventStatus"));
|
|
1951
2019
|
var _WebhookEventType = _interopRequireDefault(require("./model/WebhookEventType"));
|
|
2020
|
+
var _AddressBooksApi = _interopRequireDefault(require("./api/AddressBooksApi"));
|
|
1952
2021
|
var _DevelopersWebhooksApi = _interopRequireDefault(require("./api/DevelopersWebhooksApi"));
|
|
1953
2022
|
var _OAuthApi = _interopRequireDefault(require("./api/OAuthApi"));
|
|
1954
2023
|
var _StakingsApi = _interopRequireDefault(require("./api/StakingsApi"));
|
|
@@ -1956,4 +2025,5 @@ var _TransactionsApi = _interopRequireDefault(require("./api/TransactionsApi"));
|
|
|
1956
2025
|
var _WalletsApi = _interopRequireDefault(require("./api/WalletsApi"));
|
|
1957
2026
|
var _WalletsExchangeWalletApi = _interopRequireDefault(require("./api/WalletsExchangeWalletApi"));
|
|
1958
2027
|
var _WalletsMPCWalletsApi = _interopRequireDefault(require("./api/WalletsMPCWalletsApi"));
|
|
2028
|
+
var _WalletsSmartContractWalletsApi = _interopRequireDefault(require("./api/WalletsSmartContractWalletsApi"));
|
|
1959
2029
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -32,12 +32,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var AddressBook = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>AddressBook</code>.
|
|
35
|
-
* The
|
|
35
|
+
* The information of an address book entry.
|
|
36
36
|
* @alias module:model/AddressBook
|
|
37
|
-
* @param org_id {String}
|
|
38
|
-
* @param entry_id {String}
|
|
39
|
-
* @param address {String} address.
|
|
40
|
-
* @param label {String} The label
|
|
37
|
+
* @param org_id {String} The organization ID.
|
|
38
|
+
* @param entry_id {String} The entry ID.
|
|
39
|
+
* @param address {String} The wallet address.
|
|
40
|
+
* @param label {String} The address label.
|
|
41
41
|
*/
|
|
42
42
|
function AddressBook(org_id, entry_id, address, label) {
|
|
43
43
|
_classCallCheck(this, AddressBook);
|
|
@@ -91,6 +91,9 @@ var AddressBook = /*#__PURE__*/function () {
|
|
|
91
91
|
if (data.hasOwnProperty('label')) {
|
|
92
92
|
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
93
93
|
}
|
|
94
|
+
if (data.hasOwnProperty('chain_ids')) {
|
|
95
|
+
obj['chain_ids'] = _ApiClient["default"].convertToType(data['chain_ids'], ['String']);
|
|
96
|
+
}
|
|
94
97
|
if (data.hasOwnProperty('email')) {
|
|
95
98
|
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
96
99
|
}
|
|
@@ -145,6 +148,10 @@ var AddressBook = /*#__PURE__*/function () {
|
|
|
145
148
|
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
146
149
|
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
147
150
|
}
|
|
151
|
+
// ensure the json data is an array
|
|
152
|
+
if (!Array.isArray(data['chain_ids'])) {
|
|
153
|
+
throw new Error("Expected the field `chain_ids` to be an array in the JSON data but got " + data['chain_ids']);
|
|
154
|
+
}
|
|
148
155
|
// ensure the json data is a string
|
|
149
156
|
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
150
157
|
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
@@ -156,29 +163,31 @@ var AddressBook = /*#__PURE__*/function () {
|
|
|
156
163
|
AddressBook.RequiredProperties = ["org_id", "entry_id", "address", "label"];
|
|
157
164
|
|
|
158
165
|
/**
|
|
166
|
+
* The organization ID.
|
|
159
167
|
* @member {String} org_id
|
|
160
168
|
*/
|
|
161
169
|
AddressBook.prototype['org_id'] = undefined;
|
|
162
170
|
|
|
163
171
|
/**
|
|
172
|
+
* The entry ID.
|
|
164
173
|
* @member {String} entry_id
|
|
165
174
|
*/
|
|
166
175
|
AddressBook.prototype['entry_id'] = undefined;
|
|
167
176
|
|
|
168
177
|
/**
|
|
169
|
-
* address.
|
|
178
|
+
* The wallet address.
|
|
170
179
|
* @member {String} address
|
|
171
180
|
*/
|
|
172
181
|
AddressBook.prototype['address'] = undefined;
|
|
173
182
|
|
|
174
183
|
/**
|
|
175
|
-
* memo.
|
|
184
|
+
* The memo.
|
|
176
185
|
* @member {String} memo
|
|
177
186
|
*/
|
|
178
187
|
AddressBook.prototype['memo'] = undefined;
|
|
179
188
|
|
|
180
189
|
/**
|
|
181
|
-
* wallet name.
|
|
190
|
+
* The wallet name.
|
|
182
191
|
* @member {String} wallet_name
|
|
183
192
|
*/
|
|
184
193
|
AddressBook.prototype['wallet_name'] = undefined;
|
|
@@ -189,13 +198,19 @@ AddressBook.prototype['wallet_name'] = undefined;
|
|
|
189
198
|
AddressBook.prototype['wallet_type'] = undefined;
|
|
190
199
|
|
|
191
200
|
/**
|
|
192
|
-
* The label
|
|
201
|
+
* The address label.
|
|
193
202
|
* @member {String} label
|
|
194
203
|
*/
|
|
195
204
|
AddressBook.prototype['label'] = undefined;
|
|
196
205
|
|
|
197
206
|
/**
|
|
198
|
-
*
|
|
207
|
+
* A list of chain IDs.
|
|
208
|
+
* @member {Array.<String>} chain_ids
|
|
209
|
+
*/
|
|
210
|
+
AddressBook.prototype['chain_ids'] = undefined;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The email of the address owner.
|
|
199
214
|
* @member {String} email
|
|
200
215
|
*/
|
|
201
216
|
AddressBook.prototype['email'] = undefined;
|
|
@@ -171,13 +171,13 @@ AddressTransferDestination.prototype['utxo_outputs'] = undefined;
|
|
|
171
171
|
AddressTransferDestination.prototype['change_address'] = undefined;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* Whether the transaction request must be executed as a
|
|
174
|
+
* Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
|
|
175
175
|
* @member {Boolean} force_internal
|
|
176
176
|
*/
|
|
177
177
|
AddressTransferDestination.prototype['force_internal'] = undefined;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Whether the transaction request must not be executed as a
|
|
180
|
+
* Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
|
|
181
181
|
* @member {Boolean} force_external
|
|
182
182
|
*/
|
|
183
183
|
AddressTransferDestination.prototype['force_external'] = undefined;
|