@cobo/cobo-waas2 1.3.0 → 1.4.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 +4 -3
- package/dist/ApiClient.js +1 -1
- package/dist/api/OAuthApi.js +14 -14
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/WalletsApi.js +2 -2
- package/dist/api/WalletsMPCWalletsApi.js +2 -2
- package/dist/index.js +7 -0
- package/dist/model/AddressBook.js +202 -0
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/ContractCallSource.js +0 -6
- package/dist/model/CreateKeyShareHolder.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/GetToken200Response.js +4 -4
- package/dist/model/KeyShareHolder.js +1 -1
- package/dist/model/MessageSignParams.js +1 -1
- package/dist/model/MpcContractCallSource.js +0 -9
- package/dist/model/RefreshToken200Response.js +4 -4
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/TSSRequestStatus.js +5 -0
- package/dist/model/TransactionSignatureResult.js +1 -1
- package/dist/model/TransactionStatus.js +0 -5
- package/dist/model/TransactionSubStatus.js +40 -5
- package/dist/model/TransferDestination.js +2 -2
- package/docs/AddressBook.md +16 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/ContractCallSource.md +0 -1
- package/docs/CreateKeyShareHolder.md +2 -2
- package/docs/GetToken200Response.md +4 -4
- package/docs/KeyShareHolder.md +1 -1
- package/docs/MessageSignParams.md +1 -1
- package/docs/MpcContractCallSource.md +0 -1
- package/docs/OAuthApi.md +9 -9
- package/docs/RefreshToken200Response.md +4 -4
- package/docs/RefreshTokenRequest.md +2 -2
- package/docs/TSSRequestStatus.md +2 -0
- package/docs/TransactionStatus.md +0 -2
- package/docs/TransactionSubStatus.md +16 -2
- package/docs/TransactionsApi.md +1 -1
- package/docs/TransferDestination.md +2 -2
- package/docs/WalletsApi.md +1 -1
- package/docs/WalletsMPCWalletsApi.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: v2
|
|
18
|
-
- Package version: 1.
|
|
18
|
+
- Package version: 1.4.0
|
|
19
19
|
- Generator version: 7.6.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
21
21
|
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
|
|
@@ -70,8 +70,8 @@ Class | Method | HTTP request | Description
|
|
|
70
70
|
*CoboWaas2.DevelopersWebhooksApi* | [**listWebhookEvents**](docs/DevelopersWebhooksApi.md#listWebhookEvents) | **GET** /webhooks/endpoints/{endpoint_id}/events | List all webhook events
|
|
71
71
|
*CoboWaas2.DevelopersWebhooksApi* | [**retryWebhookEventById**](docs/DevelopersWebhooksApi.md#retryWebhookEventById) | **POST** /webhooks/endpoints/{endpoint_id}/events/{event_id}/retry | Retry event
|
|
72
72
|
*CoboWaas2.DevelopersWebhooksApi* | [**updateWebhookEndpointById**](docs/DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
|
|
73
|
-
*CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get
|
|
74
|
-
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh
|
|
73
|
+
*CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
|
|
74
|
+
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
|
|
75
75
|
*CoboWaas2.StakingsApi* | [**createStakeActivity**](docs/StakingsApi.md#createStakeActivity) | **POST** /stakings/activities/stake | Create stake activity
|
|
76
76
|
*CoboWaas2.StakingsApi* | [**createUnstakeActivity**](docs/StakingsApi.md#createUnstakeActivity) | **POST** /stakings/activities/unstake | Create unstake activity
|
|
77
77
|
*CoboWaas2.StakingsApi* | [**createWithdrawActivity**](docs/StakingsApi.md#createWithdrawActivity) | **POST** /stakings/activities/withdraw | Create withdraw activity
|
|
@@ -148,6 +148,7 @@ Class | Method | HTTP request | Description
|
|
|
148
148
|
- [CoboWaas2.ActivityStatus](docs/ActivityStatus.md)
|
|
149
149
|
- [CoboWaas2.ActivityTimeline](docs/ActivityTimeline.md)
|
|
150
150
|
- [CoboWaas2.ActivityType](docs/ActivityType.md)
|
|
151
|
+
- [CoboWaas2.AddressBook](docs/AddressBook.md)
|
|
151
152
|
- [CoboWaas2.AddressEncoding](docs/AddressEncoding.md)
|
|
152
153
|
- [CoboWaas2.AddressInfo](docs/AddressInfo.md)
|
|
153
154
|
- [CoboWaas2.AddressTransferDestination](docs/AddressTransferDestination.md)
|
package/dist/ApiClient.js
CHANGED
package/dist/api/OAuthApi.js
CHANGED
|
@@ -44,10 +44,10 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* Get
|
|
48
|
-
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an
|
|
49
|
-
* @param {String} client_id The
|
|
50
|
-
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the
|
|
47
|
+
* Get Org Access Token
|
|
48
|
+
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an Org Access Token and a Refresh Token with a specified client ID, organization ID, and grant type. Access tokens allow the app to signal to the WaaS service that it has received permission to access specific resources of the app user's [organization](https://manuals.cobo.com/en/portal/organization/introduction). Once the app has been granted permission by the organization's admin, it can use this operation to obtain both an Org Access Token and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-access-token) to get a new Org Access Token and a new Refresh Token.
|
|
49
|
+
* @param {String} client_id The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app.
|
|
50
|
+
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the organization ID from the callback message sent to the URL that was configured in the manifest file.
|
|
51
51
|
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetToken200Response} and HTTP response
|
|
53
53
|
*/
|
|
@@ -86,10 +86,10 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Get
|
|
90
|
-
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an
|
|
91
|
-
* @param {String} client_id The
|
|
92
|
-
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the
|
|
89
|
+
* Get Org Access Token
|
|
90
|
+
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an Org Access Token and a Refresh Token with a specified client ID, organization ID, and grant type. Access tokens allow the app to signal to the WaaS service that it has received permission to access specific resources of the app user's [organization](https://manuals.cobo.com/en/portal/organization/introduction). Once the app has been granted permission by the organization's admin, it can use this operation to obtain both an Org Access Token and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-access-token) to get a new Org Access Token and a new Refresh Token.
|
|
91
|
+
* @param {String} client_id The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app.
|
|
92
|
+
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the organization ID from the callback message sent to the URL that was configured in the manifest file.
|
|
93
93
|
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
|
|
94
94
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetToken200Response}
|
|
95
95
|
*/
|
|
@@ -102,9 +102,9 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Refresh
|
|
106
|
-
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new
|
|
107
|
-
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an
|
|
105
|
+
* Refresh Org Access Token
|
|
106
|
+
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new Org Access Token with a specified client ID, grant type and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new Org Access Token and a new Refresh Token.
|
|
107
|
+
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an Org Access Token.
|
|
108
108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshToken200Response} and HTTP response
|
|
109
109
|
*/
|
|
110
110
|
}, {
|
|
@@ -130,9 +130,9 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* Refresh
|
|
134
|
-
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new
|
|
135
|
-
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an
|
|
133
|
+
* Refresh Org Access Token
|
|
134
|
+
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new Org Access Token with a specified client ID, grant type and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new Org Access Token and a new Refresh Token.
|
|
135
|
+
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an Org Access Token.
|
|
136
136
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshToken200Response}
|
|
137
137
|
*/
|
|
138
138
|
}, {
|
|
@@ -240,7 +240,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
240
240
|
* Sign message
|
|
241
241
|
* This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information). <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
242
242
|
* @param {Object} opts Optional parameters
|
|
243
|
-
* @param {module:model/MessageSignParams} [MessageSignParams] The request body to create a message
|
|
243
|
+
* @param {module:model/MessageSignParams} [MessageSignParams] The request body to create a message signing transaction
|
|
244
244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
245
245
|
*/
|
|
246
246
|
}, {
|
|
@@ -266,7 +266,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
266
266
|
* Sign message
|
|
267
267
|
* This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information). <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
268
268
|
* @param {Object} opts Optional parameters
|
|
269
|
-
* @param {module:model/MessageSignParams} opts.MessageSignParams The request body to create a message
|
|
269
|
+
* @param {module:model/MessageSignParams} opts.MessageSignParams The request body to create a message signing transaction
|
|
270
270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
271
271
|
*/
|
|
272
272
|
}, {
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -1043,7 +1043,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1043
1043
|
|
|
1044
1044
|
/**
|
|
1045
1045
|
* List all wallets
|
|
1046
|
-
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1046
|
+
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1047
1047
|
* @param {Object} opts Optional parameters
|
|
1048
1048
|
* @param {module:model/WalletType} [wallet_type] The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
1049
1049
|
* @param {module:model/WalletSubtype} [wallet_subtype] The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|
|
@@ -1083,7 +1083,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1083
1083
|
|
|
1084
1084
|
/**
|
|
1085
1085
|
* List all wallets
|
|
1086
|
-
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1086
|
+
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1087
1087
|
* @param {Object} opts Optional parameters
|
|
1088
1088
|
* @param {module:model/WalletType} opts.wallet_type The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
1089
1089
|
* @param {module:model/WalletSubtype} opts.wallet_subtype The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|
|
@@ -111,7 +111,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* Create key share holder group
|
|
114
|
-
* This operation creates a key share holder group for a specified vault.
|
|
114
|
+
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
115
115
|
* @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).
|
|
116
116
|
* @param {Object} opts Optional parameters
|
|
117
117
|
* @param {module:model/CreateKeyShareHolderGroupRequest} [CreateKeyShareHolderGroupRequest] The request body to create a key share holder group.
|
|
@@ -144,7 +144,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Create key share holder group
|
|
147
|
-
* This operation creates a key share holder group for a specified vault.
|
|
147
|
+
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
148
148
|
* @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).
|
|
149
149
|
* @param {Object} opts Optional parameters
|
|
150
150
|
* @param {module:model/CreateKeyShareHolderGroupRequest} opts.CreateKeyShareHolderGroupRequest The request body to create a key share holder group.
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,12 @@ Object.defineProperty(exports, "ActivityType", {
|
|
|
39
39
|
return _ActivityType["default"];
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
+
Object.defineProperty(exports, "AddressBook", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _AddressBook["default"];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
42
48
|
Object.defineProperty(exports, "AddressEncoding", {
|
|
43
49
|
enumerable: true,
|
|
44
50
|
get: function get() {
|
|
@@ -1679,6 +1685,7 @@ var _ActivityInitiator = _interopRequireDefault(require("./model/ActivityInitiat
|
|
|
1679
1685
|
var _ActivityStatus = _interopRequireDefault(require("./model/ActivityStatus"));
|
|
1680
1686
|
var _ActivityTimeline = _interopRequireDefault(require("./model/ActivityTimeline"));
|
|
1681
1687
|
var _ActivityType = _interopRequireDefault(require("./model/ActivityType"));
|
|
1688
|
+
var _AddressBook = _interopRequireDefault(require("./model/AddressBook"));
|
|
1682
1689
|
var _AddressEncoding = _interopRequireDefault(require("./model/AddressEncoding"));
|
|
1683
1690
|
var _AddressInfo = _interopRequireDefault(require("./model/AddressInfo"));
|
|
1684
1691
|
var _AddressTransferDestination = _interopRequireDefault(require("./model/AddressTransferDestination"));
|
|
@@ -0,0 +1,202 @@
|
|
|
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 _WalletType = _interopRequireDefault(require("./WalletType"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
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); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
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); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The AddressBook model module.
|
|
30
|
+
* @module model/AddressBook
|
|
31
|
+
*/
|
|
32
|
+
var AddressBook = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>AddressBook</code>.
|
|
35
|
+
* The data for address book entry information.
|
|
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 to address.
|
|
41
|
+
*/
|
|
42
|
+
function AddressBook(org_id, entry_id, address, label) {
|
|
43
|
+
_classCallCheck(this, AddressBook);
|
|
44
|
+
AddressBook.initialize(this, org_id, entry_id, address, label);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Initializes the fields of this object.
|
|
49
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
|
+
* Only for internal use.
|
|
51
|
+
*/
|
|
52
|
+
return _createClass(AddressBook, null, [{
|
|
53
|
+
key: "initialize",
|
|
54
|
+
value: function initialize(obj, org_id, entry_id, address, label) {
|
|
55
|
+
obj['org_id'] = org_id;
|
|
56
|
+
obj['entry_id'] = entry_id;
|
|
57
|
+
obj['address'] = address;
|
|
58
|
+
obj['label'] = label;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a <code>AddressBook</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
+
* @param {module:model/AddressBook} obj Optional instance to populate.
|
|
66
|
+
* @return {module:model/AddressBook} The populated <code>AddressBook</code> instance.
|
|
67
|
+
*/
|
|
68
|
+
}, {
|
|
69
|
+
key: "constructFromObject",
|
|
70
|
+
value: function constructFromObject(data, obj) {
|
|
71
|
+
if (data) {
|
|
72
|
+
obj = obj || new AddressBook();
|
|
73
|
+
if (data.hasOwnProperty('org_id')) {
|
|
74
|
+
obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('entry_id')) {
|
|
77
|
+
obj['entry_id'] = _ApiClient["default"].convertToType(data['entry_id'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('address')) {
|
|
80
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('memo')) {
|
|
83
|
+
obj['memo'] = _ApiClient["default"].convertToType(data['memo'], 'String');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('wallet_name')) {
|
|
86
|
+
obj['wallet_name'] = _ApiClient["default"].convertToType(data['wallet_name'], 'String');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('wallet_type')) {
|
|
89
|
+
obj['wallet_type'] = _WalletType["default"].constructFromObject(data['wallet_type']);
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('label')) {
|
|
92
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('email')) {
|
|
95
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return obj;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Validates the JSON data with respect to <code>AddressBook</code>.
|
|
103
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
104
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AddressBook</code>.
|
|
105
|
+
*/
|
|
106
|
+
}, {
|
|
107
|
+
key: "validateJSON",
|
|
108
|
+
value: function validateJSON(data) {
|
|
109
|
+
// check to make sure all required properties are present in the JSON string
|
|
110
|
+
var _iterator = _createForOfIteratorHelper(AddressBook.RequiredProperties),
|
|
111
|
+
_step;
|
|
112
|
+
try {
|
|
113
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
114
|
+
var property = _step.value;
|
|
115
|
+
if (!data.hasOwnProperty(property)) {
|
|
116
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
// ensure the json data is a string
|
|
120
|
+
} catch (err) {
|
|
121
|
+
_iterator.e(err);
|
|
122
|
+
} finally {
|
|
123
|
+
_iterator.f();
|
|
124
|
+
}
|
|
125
|
+
if (data['org_id'] && !(typeof data['org_id'] === 'string' || data['org_id'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `org_id` to be a primitive type in the JSON string but got " + data['org_id']);
|
|
127
|
+
}
|
|
128
|
+
// ensure the json data is a string
|
|
129
|
+
if (data['entry_id'] && !(typeof data['entry_id'] === 'string' || data['entry_id'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `entry_id` to be a primitive type in the JSON string but got " + data['entry_id']);
|
|
131
|
+
}
|
|
132
|
+
// ensure the json data is a string
|
|
133
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
135
|
+
}
|
|
136
|
+
// ensure the json data is a string
|
|
137
|
+
if (data['memo'] && !(typeof data['memo'] === 'string' || data['memo'] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `memo` to be a primitive type in the JSON string but got " + data['memo']);
|
|
139
|
+
}
|
|
140
|
+
// ensure the json data is a string
|
|
141
|
+
if (data['wallet_name'] && !(typeof data['wallet_name'] === 'string' || data['wallet_name'] instanceof String)) {
|
|
142
|
+
throw new Error("Expected the field `wallet_name` to be a primitive type in the JSON string but got " + data['wallet_name']);
|
|
143
|
+
}
|
|
144
|
+
// ensure the json data is a string
|
|
145
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
146
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
147
|
+
}
|
|
148
|
+
// ensure the json data is a string
|
|
149
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
150
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
151
|
+
}
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
}]);
|
|
155
|
+
}();
|
|
156
|
+
AddressBook.RequiredProperties = ["org_id", "entry_id", "address", "label"];
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @member {String} org_id
|
|
160
|
+
*/
|
|
161
|
+
AddressBook.prototype['org_id'] = undefined;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @member {String} entry_id
|
|
165
|
+
*/
|
|
166
|
+
AddressBook.prototype['entry_id'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* address.
|
|
170
|
+
* @member {String} address
|
|
171
|
+
*/
|
|
172
|
+
AddressBook.prototype['address'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* memo.
|
|
176
|
+
* @member {String} memo
|
|
177
|
+
*/
|
|
178
|
+
AddressBook.prototype['memo'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* wallet name.
|
|
182
|
+
* @member {String} wallet_name
|
|
183
|
+
*/
|
|
184
|
+
AddressBook.prototype['wallet_name'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @member {module:model/WalletType} wallet_type
|
|
188
|
+
*/
|
|
189
|
+
AddressBook.prototype['wallet_type'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The label to address.
|
|
193
|
+
* @member {String} label
|
|
194
|
+
*/
|
|
195
|
+
AddressBook.prototype['label'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* email.
|
|
199
|
+
* @member {String} email
|
|
200
|
+
*/
|
|
201
|
+
AddressBook.prototype['email'] = undefined;
|
|
202
|
+
var _default = exports["default"] = AddressBook;
|
|
@@ -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 Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer.
|
|
174
|
+
* Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a 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 Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer.
|
|
180
|
+
* Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a 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;
|
|
@@ -194,12 +194,6 @@ ContractCallSource.prototype['wallet_id'] = undefined;
|
|
|
194
194
|
*/
|
|
195
195
|
ContractCallSource.prototype['address'] = undefined;
|
|
196
196
|
|
|
197
|
-
/**
|
|
198
|
-
* The transaction nonce.
|
|
199
|
-
* @member {Number} nonce
|
|
200
|
-
*/
|
|
201
|
-
ContractCallSource.prototype['nonce'] = undefined;
|
|
202
|
-
|
|
203
197
|
/**
|
|
204
198
|
* @member {module:model/CoboSafeDelegate} delegate
|
|
205
199
|
*/
|
|
@@ -106,13 +106,13 @@ CreateKeyShareHolder.prototype['name'] = undefined;
|
|
|
106
106
|
CreateKeyShareHolder.prototype['type'] = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* Key share holder's TSS Node ID.
|
|
109
|
+
* Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or API co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group).
|
|
110
110
|
* @member {String} tss_node_id
|
|
111
111
|
*/
|
|
112
112
|
CreateKeyShareHolder.prototype['tss_node_id'] = undefined;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* Whether the key share holder
|
|
115
|
+
* Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer.
|
|
116
116
|
* @member {Boolean} signer
|
|
117
117
|
*/
|
|
118
118
|
CreateKeyShareHolder.prototype['signer'] = undefined;
|
|
@@ -58,7 +58,7 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
58
58
|
var discriminatorValue = instance["request_type"];
|
|
59
59
|
if (discriminatorValue) {
|
|
60
60
|
switch (discriminatorValue) {
|
|
61
|
-
case "
|
|
61
|
+
case "ContractCall":
|
|
62
62
|
this.actualInstance = _EstimateContractCallFeeParams["default"].constructFromObject(instance);
|
|
63
63
|
match++;
|
|
64
64
|
break;
|
|
@@ -104,7 +104,7 @@ var GetToken200Response = /*#__PURE__*/function () {
|
|
|
104
104
|
}]);
|
|
105
105
|
}();
|
|
106
106
|
/**
|
|
107
|
-
* The
|
|
107
|
+
* The Org Access Token.
|
|
108
108
|
* @member {String} access_token
|
|
109
109
|
*/
|
|
110
110
|
GetToken200Response.prototype['access_token'] = undefined;
|
|
@@ -116,19 +116,19 @@ GetToken200Response.prototype['access_token'] = undefined;
|
|
|
116
116
|
GetToken200Response.prototype['token_type'] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* The scope of the
|
|
119
|
+
* The scope of the Org Access Token to limit the app's access to the organization's resources. **Note**: Currently this property value is empty. The scope of the Org Access Token is based on the permissions granted when the app user installs the app.
|
|
120
120
|
* @member {String} scope
|
|
121
121
|
*/
|
|
122
122
|
GetToken200Response.prototype['scope'] = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* The time in seconds in which the
|
|
125
|
+
* The time in seconds in which the Org Access Token expires.
|
|
126
126
|
* @member {Number} expires_in
|
|
127
127
|
*/
|
|
128
128
|
GetToken200Response.prototype['expires_in'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* The
|
|
131
|
+
* The Refresh Token, used to obtain a new Org Access Token when the current Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change.
|
|
132
132
|
* @member {String} refresh_token
|
|
133
133
|
*/
|
|
134
134
|
GetToken200Response.prototype['refresh_token'] = undefined;
|
|
@@ -132,7 +132,7 @@ KeyShareHolder.prototype['tss_node_id'] = undefined;
|
|
|
132
132
|
KeyShareHolder.prototype['online'] = undefined;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* Whether the key share holder
|
|
135
|
+
* Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer.
|
|
136
136
|
* @member {Boolean} signer
|
|
137
137
|
*/
|
|
138
138
|
KeyShareHolder.prototype['signer'] = undefined;
|
|
@@ -175,7 +175,7 @@ MessageSignParams.prototype['source'] = undefined;
|
|
|
175
175
|
MessageSignParams.prototype['destination'] = undefined;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* The description of the message
|
|
178
|
+
* The description of the message signing transaction.
|
|
179
179
|
* @member {String} description
|
|
180
180
|
*/
|
|
181
181
|
MessageSignParams.prototype['description'] = undefined;
|
|
@@ -80,9 +80,6 @@ var MpcContractCallSource = /*#__PURE__*/function () {
|
|
|
80
80
|
if (data.hasOwnProperty('address')) {
|
|
81
81
|
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty('nonce')) {
|
|
84
|
-
obj['nonce'] = _ApiClient["default"].convertToType(data['nonce'], 'Number');
|
|
85
|
-
}
|
|
86
83
|
}
|
|
87
84
|
return obj;
|
|
88
85
|
}
|
|
@@ -141,12 +138,6 @@ MpcContractCallSource.prototype['wallet_id'] = undefined;
|
|
|
141
138
|
*/
|
|
142
139
|
MpcContractCallSource.prototype['address'] = undefined;
|
|
143
140
|
|
|
144
|
-
/**
|
|
145
|
-
* The transaction nonce.
|
|
146
|
-
* @member {Number} nonce
|
|
147
|
-
*/
|
|
148
|
-
MpcContractCallSource.prototype['nonce'] = undefined;
|
|
149
|
-
|
|
150
141
|
// Implement BaseContractCallSource interface:
|
|
151
142
|
/**
|
|
152
143
|
* @member {module:model/ContractCallSourceType} source_type
|
|
@@ -104,7 +104,7 @@ var RefreshToken200Response = /*#__PURE__*/function () {
|
|
|
104
104
|
}]);
|
|
105
105
|
}();
|
|
106
106
|
/**
|
|
107
|
-
* The new
|
|
107
|
+
* The new Org Access Token.
|
|
108
108
|
* @member {String} access_token
|
|
109
109
|
*/
|
|
110
110
|
RefreshToken200Response.prototype['access_token'] = undefined;
|
|
@@ -116,19 +116,19 @@ RefreshToken200Response.prototype['access_token'] = undefined;
|
|
|
116
116
|
RefreshToken200Response.prototype['token_type'] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* The scope of the
|
|
119
|
+
* The scope of the Org Access Token to limit the app's access to the organization's resources. **Note**: Currently this property value is empty. The scope of the Org Access Token is based on the permissions granted when the app user installs the app.
|
|
120
120
|
* @member {String} scope
|
|
121
121
|
*/
|
|
122
122
|
RefreshToken200Response.prototype['scope'] = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* The time in seconds in which the new
|
|
125
|
+
* The time in seconds in which the new Org Access Token expires.
|
|
126
126
|
* @member {Number} expires_in
|
|
127
127
|
*/
|
|
128
128
|
RefreshToken200Response.prototype['expires_in'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* The
|
|
131
|
+
* The Refresh Token, used to obtain another Org Access Token when the new Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change.
|
|
132
132
|
* @member {String} refresh_token
|
|
133
133
|
*/
|
|
134
134
|
RefreshToken200Response.prototype['refresh_token'] = undefined;
|
|
@@ -94,7 +94,7 @@ var RefreshTokenRequest = /*#__PURE__*/function () {
|
|
|
94
94
|
}]);
|
|
95
95
|
}();
|
|
96
96
|
/**
|
|
97
|
-
* The
|
|
97
|
+
* The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app.
|
|
98
98
|
* @member {String} client_id
|
|
99
99
|
*/
|
|
100
100
|
RefreshTokenRequest.prototype['client_id'] = undefined;
|
|
@@ -106,7 +106,7 @@ RefreshTokenRequest.prototype['client_id'] = undefined;
|
|
|
106
106
|
RefreshTokenRequest.prototype['grant_type'] = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* The
|
|
109
|
+
* The Refresh Token of the current Org Access Token.
|
|
110
110
|
* @member {String} refresh_token
|
|
111
111
|
*/
|
|
112
112
|
RefreshTokenRequest.prototype['refresh_token'] = undefined;
|
|
@@ -45,6 +45,11 @@ var TSSRequestStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
* @const
|
|
46
46
|
*/
|
|
47
47
|
_defineProperty(this, "KeyGenerating", "KeyGenerating");
|
|
48
|
+
/**
|
|
49
|
+
* value: "MPCProcessing"
|
|
50
|
+
* @const
|
|
51
|
+
*/
|
|
52
|
+
_defineProperty(this, "MPCProcessing", "MPCProcessing");
|
|
48
53
|
/**
|
|
49
54
|
* value: "KeyGeneratingFailed"
|
|
50
55
|
* @const
|
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var TransactionSignatureResult = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>TransactionSignatureResult</code>.
|
|
35
|
-
* The result of a message
|
|
35
|
+
* The result of a message signing transaction.
|
|
36
36
|
* @alias module:model/TransactionSignatureResult
|
|
37
37
|
* @param signature {String} The raw data of the signature.
|
|
38
38
|
*/
|
|
@@ -45,11 +45,6 @@ var TransactionStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
* @const
|
|
46
46
|
*/
|
|
47
47
|
_defineProperty(this, "PendingAuthorization", "PendingAuthorization");
|
|
48
|
-
/**
|
|
49
|
-
* value: "Queued"
|
|
50
|
-
* @const
|
|
51
|
-
*/
|
|
52
|
-
_defineProperty(this, "Queued", "Queued");
|
|
53
48
|
/**
|
|
54
49
|
* value: "PendingSignature"
|
|
55
50
|
* @const
|
|
@@ -35,11 +35,6 @@ var TransactionSubStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
35
35
|
* @const
|
|
36
36
|
*/
|
|
37
37
|
_defineProperty(this, "RejectedKYT", "RejectedKYT");
|
|
38
|
-
/**
|
|
39
|
-
* value: "RejectedTravelRule"
|
|
40
|
-
* @const
|
|
41
|
-
*/
|
|
42
|
-
_defineProperty(this, "RejectedTravelRule", "RejectedTravelRule");
|
|
43
38
|
/**
|
|
44
39
|
* value: "PendingDoubleCheck"
|
|
45
40
|
* @const
|
|
@@ -120,6 +115,11 @@ var TransactionSubStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
120
115
|
* @const
|
|
121
116
|
*/
|
|
122
117
|
_defineProperty(this, "FailedOnChain", "FailedOnChain");
|
|
118
|
+
/**
|
|
119
|
+
* value: "Reverting"
|
|
120
|
+
* @const
|
|
121
|
+
*/
|
|
122
|
+
_defineProperty(this, "Reverting", "Reverting");
|
|
123
123
|
/**
|
|
124
124
|
* value: "Queue"
|
|
125
125
|
* @const
|
|
@@ -150,6 +150,41 @@ var TransactionSubStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
150
150
|
* @const
|
|
151
151
|
*/
|
|
152
152
|
_defineProperty(this, "OnchainRejection", "OnchainRejection");
|
|
153
|
+
/**
|
|
154
|
+
* value: "RejectedTravelRule"
|
|
155
|
+
* @const
|
|
156
|
+
*/
|
|
157
|
+
_defineProperty(this, "RejectedTravelRule", "RejectedTravelRule");
|
|
158
|
+
/**
|
|
159
|
+
* value: "RejectedTravelRuleDueToCompliance"
|
|
160
|
+
* @const
|
|
161
|
+
*/
|
|
162
|
+
_defineProperty(this, "RejectedTravelRuleDueToCompliance", "RejectedTravelRuleDueToCompliance");
|
|
163
|
+
/**
|
|
164
|
+
* value: "PendingTravelRuleInfo"
|
|
165
|
+
* @const
|
|
166
|
+
*/
|
|
167
|
+
_defineProperty(this, "PendingTravelRuleInfo", "PendingTravelRuleInfo");
|
|
168
|
+
/**
|
|
169
|
+
* value: "PendingTravelRuleCheck"
|
|
170
|
+
* @const
|
|
171
|
+
*/
|
|
172
|
+
_defineProperty(this, "PendingTravelRuleCheck", "PendingTravelRuleCheck");
|
|
173
|
+
/**
|
|
174
|
+
* value: "RejectedTravelRuleDueToUnsupportedToken"
|
|
175
|
+
* @const
|
|
176
|
+
*/
|
|
177
|
+
_defineProperty(this, "RejectedTravelRuleDueToUnsupportedToken", "RejectedTravelRuleDueToUnsupportedToken");
|
|
178
|
+
/**
|
|
179
|
+
* value: "SignatureVerificationSuccess"
|
|
180
|
+
* @const
|
|
181
|
+
*/
|
|
182
|
+
_defineProperty(this, "SignatureVerificationSuccess", "SignatureVerificationSuccess");
|
|
183
|
+
/**
|
|
184
|
+
* value: "SignatureVerificationFailed"
|
|
185
|
+
* @const
|
|
186
|
+
*/
|
|
187
|
+
_defineProperty(this, "SignatureVerificationFailed", "SignatureVerificationFailed");
|
|
153
188
|
/**
|
|
154
189
|
* value: "unknown_default_open_api"
|
|
155
190
|
* @const
|
|
@@ -196,13 +196,13 @@ TransferDestination.prototype['utxo_outputs'] = undefined;
|
|
|
196
196
|
TransferDestination.prototype['change_address'] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer.
|
|
199
|
+
* Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
|
|
200
200
|
* @member {Boolean} force_internal
|
|
201
201
|
*/
|
|
202
202
|
TransferDestination.prototype['force_internal'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer.
|
|
205
|
+
* Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
|
|
206
206
|
* @member {Boolean} force_external
|
|
207
207
|
*/
|
|
208
208
|
TransferDestination.prototype['force_external'] = undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CoboWaas2.AddressBook
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**org_id** | **String** | |
|
|
8
|
+
**entry_id** | **String** | |
|
|
9
|
+
**address** | **String** | address. |
|
|
10
|
+
**memo** | **String** | memo. | [optional]
|
|
11
|
+
**wallet_name** | **String** | wallet name. | [optional]
|
|
12
|
+
**wallet_type** | [**WalletType**](WalletType.md) | | [optional]
|
|
13
|
+
**label** | **String** | The label to address. |
|
|
14
|
+
**email** | **String** | email. | [optional]
|
|
15
|
+
|
|
16
|
+
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
|
|
9
9
|
**utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
|
|
10
10
|
**change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
|
|
11
|
-
**force_internal** | **Boolean** | Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer.
|
|
12
|
-
**force_external** | **Boolean** | Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer.
|
|
11
|
+
**force_internal** | **Boolean** | Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
|
|
12
|
+
**force_external** | **Boolean** | Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
|
|
13
13
|
|
|
14
14
|
|
|
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**source_type** | [**ContractCallSourceType**](ContractCallSourceType.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
9
|
**address** | **String** | The wallet address. |
|
|
10
|
-
**nonce** | **Number** | The transaction nonce. | [optional]
|
|
11
10
|
**delegate** | [**CoboSafeDelegate**](CoboSafeDelegate.md) | |
|
|
12
11
|
|
|
13
12
|
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**name** | **String** | Key share holder's name. | [optional]
|
|
8
8
|
**type** | [**KeyShareHolderType**](KeyShareHolderType.md) | | [optional]
|
|
9
|
-
**tss_node_id** | **String** | Key share holder's TSS Node ID. | [optional]
|
|
10
|
-
**signer** | **Boolean** | Whether the key share holder
|
|
9
|
+
**tss_node_id** | **String** | Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or API co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group). | [optional]
|
|
10
|
+
**signer** | **Boolean** | Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer. | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**access_token** | **String** | The
|
|
7
|
+
**access_token** | **String** | The Org Access Token. | [optional]
|
|
8
8
|
**token_type** | **String** | The type of the tokens, which is Bearer. | [optional]
|
|
9
|
-
**scope** | **String** | The scope of the
|
|
10
|
-
**expires_in** | **Number** | The time in seconds in which the
|
|
11
|
-
**refresh_token** | **String** | The
|
|
9
|
+
**scope** | **String** | The scope of the Org Access Token to limit the app's access to the organization's resources. **Note**: Currently this property value is empty. The scope of the Org Access Token is based on the permissions granted when the app user installs the app. | [optional]
|
|
10
|
+
**expires_in** | **Number** | The time in seconds in which the Org Access Token expires. | [optional]
|
|
11
|
+
**refresh_token** | **String** | The Refresh Token, used to obtain a new Org Access Token when the current Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change. | [optional]
|
|
12
12
|
|
|
13
13
|
|
package/docs/KeyShareHolder.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**type** | [**KeyShareHolderType**](KeyShareHolderType.md) | | [optional]
|
|
9
9
|
**tss_node_id** | **String** | The key share holder's TSS Node ID. | [optional]
|
|
10
10
|
**online** | **Boolean** | Whether the key share holder's TSS Node is online. - `true`: The TSS Node is online. - `false`: The TSS Node is offline. | [optional]
|
|
11
|
-
**signer** | **Boolean** | Whether the key share holder
|
|
11
|
+
**signer** | **Boolean** | Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer. | [optional]
|
|
12
12
|
**status** | [**KeyShareHolderStatus**](KeyShareHolderStatus.md) | | [optional]
|
|
13
13
|
**account_id** | **String** | The key share holder's Cobo Portal account ID. | [optional]
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
|
|
9
9
|
**source** | [**MessageSignSource**](MessageSignSource.md) | |
|
|
10
10
|
**destination** | [**MessageSignDestination**](MessageSignDestination.md) | |
|
|
11
|
-
**description** | **String** | The description of the message
|
|
11
|
+
**description** | **String** | The description of the message signing transaction. | [optional]
|
|
12
12
|
**category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
|
|
13
13
|
|
|
14
14
|
|
|
@@ -7,6 +7,5 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**source_type** | [**ContractCallSourceType**](ContractCallSourceType.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
9
|
**address** | **String** | The wallet address. |
|
|
10
|
-
**nonce** | **Number** | The transaction nonce. | [optional]
|
|
11
10
|
|
|
12
11
|
|
package/docs/OAuthApi.md
CHANGED
|
@@ -4,8 +4,8 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**getToken**](OAuthApi.md#getToken) | **GET** /oauth/token | Get
|
|
8
|
-
[**refreshToken**](OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh
|
|
7
|
+
[**getToken**](OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
|
|
8
|
+
[**refreshToken**](OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,9 +13,9 @@ Method | HTTP request | Description
|
|
|
13
13
|
|
|
14
14
|
> GetToken200Response getToken(client_id, org_id, grant_type)
|
|
15
15
|
|
|
16
|
-
Get
|
|
16
|
+
Get Org Access Token
|
|
17
17
|
|
|
18
|
-
<Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an
|
|
18
|
+
<Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an Org Access Token and a Refresh Token with a specified client ID, organization ID, and grant type. Access tokens allow the app to signal to the WaaS service that it has received permission to access specific resources of the app user's [organization](https://manuals.cobo.com/en/portal/organization/introduction). Once the app has been granted permission by the organization's admin, it can use this operation to obtain both an Org Access Token and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-access-token) to get a new Org Access Token and a new Refresh Token.
|
|
19
19
|
|
|
20
20
|
### Example
|
|
21
21
|
|
|
@@ -45,8 +45,8 @@ apiInstance.getToken(client_id, org_id, grant_type).then((data) => {
|
|
|
45
45
|
|
|
46
46
|
Name | Type | Description | Notes
|
|
47
47
|
------------- | ------------- | ------------- | -------------
|
|
48
|
-
**client_id** | **String**| The
|
|
49
|
-
**org_id** | **String**| Organization ID, a unique identifier to distinguish different organizations. You can get the
|
|
48
|
+
**client_id** | **String**| The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app. |
|
|
49
|
+
**org_id** | **String**| Organization ID, a unique identifier to distinguish different organizations. You can get the organization ID from the callback message sent to the URL that was configured in the manifest file. |
|
|
50
50
|
**grant_type** | **String**| The OAuth grant type. Set the value as `org_implicit`. |
|
|
51
51
|
|
|
52
52
|
### Return type
|
|
@@ -67,9 +67,9 @@ Name | Type | Description | Notes
|
|
|
67
67
|
|
|
68
68
|
> RefreshToken200Response refreshToken(RefreshTokenRequest)
|
|
69
69
|
|
|
70
|
-
Refresh
|
|
70
|
+
Refresh Org Access Token
|
|
71
71
|
|
|
72
|
-
<Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new
|
|
72
|
+
<Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new Org Access Token with a specified client ID, grant type and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new Org Access Token and a new Refresh Token.
|
|
73
73
|
|
|
74
74
|
### Example
|
|
75
75
|
|
|
@@ -97,7 +97,7 @@ apiInstance.refreshToken(RefreshTokenRequest).then((data) => {
|
|
|
97
97
|
|
|
98
98
|
Name | Type | Description | Notes
|
|
99
99
|
------------- | ------------- | ------------- | -------------
|
|
100
|
-
**RefreshTokenRequest** | [**RefreshTokenRequest**](RefreshTokenRequest.md)| The request body for refreshing an
|
|
100
|
+
**RefreshTokenRequest** | [**RefreshTokenRequest**](RefreshTokenRequest.md)| The request body for refreshing an Org Access Token. |
|
|
101
101
|
|
|
102
102
|
### Return type
|
|
103
103
|
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**access_token** | **String** | The new
|
|
7
|
+
**access_token** | **String** | The new Org Access Token. | [optional]
|
|
8
8
|
**token_type** | **String** | The type of the tokens, which is Bearer. | [optional]
|
|
9
|
-
**scope** | **String** | The scope of the
|
|
10
|
-
**expires_in** | **Number** | The time in seconds in which the new
|
|
11
|
-
**refresh_token** | **String** | The
|
|
9
|
+
**scope** | **String** | The scope of the Org Access Token to limit the app's access to the organization's resources. **Note**: Currently this property value is empty. The scope of the Org Access Token is based on the permissions granted when the app user installs the app. | [optional]
|
|
10
|
+
**expires_in** | **Number** | The time in seconds in which the new Org Access Token expires. | [optional]
|
|
11
|
+
**refresh_token** | **String** | The Refresh Token, used to obtain another Org Access Token when the new Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change. | [optional]
|
|
12
12
|
|
|
13
13
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**client_id** | **String** | The
|
|
7
|
+
**client_id** | **String** | The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app. | [optional]
|
|
8
8
|
**grant_type** | **String** | The OAuth grant type. Set the value as `refresh_token`. | [optional]
|
|
9
|
-
**refresh_token** | **String** | The
|
|
9
|
+
**refresh_token** | **String** | The Refresh Token of the current Org Access Token. | [optional]
|
|
10
10
|
|
|
11
11
|
|
package/docs/TSSRequestStatus.md
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
* `RejectedKYT` (value: `"RejectedKYT"`)
|
|
7
7
|
|
|
8
|
-
* `RejectedTravelRule` (value: `"RejectedTravelRule"`)
|
|
9
|
-
|
|
10
8
|
* `PendingDoubleCheck` (value: `"PendingDoubleCheck"`)
|
|
11
9
|
|
|
12
10
|
* `PendingSpenderCheck` (value: `"PendingSpenderCheck"`)
|
|
@@ -39,6 +37,8 @@
|
|
|
39
37
|
|
|
40
38
|
* `FailedOnChain` (value: `"FailedOnChain"`)
|
|
41
39
|
|
|
40
|
+
* `Reverting` (value: `"Reverting"`)
|
|
41
|
+
|
|
42
42
|
* `Queue` (value: `"Queue"`)
|
|
43
43
|
|
|
44
44
|
* `PendingBlockConfirmations` (value: `"PendingBlockConfirmations"`)
|
|
@@ -51,6 +51,20 @@
|
|
|
51
51
|
|
|
52
52
|
* `OnchainRejection` (value: `"OnchainRejection"`)
|
|
53
53
|
|
|
54
|
+
* `RejectedTravelRule` (value: `"RejectedTravelRule"`)
|
|
55
|
+
|
|
56
|
+
* `RejectedTravelRuleDueToCompliance` (value: `"RejectedTravelRuleDueToCompliance"`)
|
|
57
|
+
|
|
58
|
+
* `PendingTravelRuleInfo` (value: `"PendingTravelRuleInfo"`)
|
|
59
|
+
|
|
60
|
+
* `PendingTravelRuleCheck` (value: `"PendingTravelRuleCheck"`)
|
|
61
|
+
|
|
62
|
+
* `RejectedTravelRuleDueToUnsupportedToken` (value: `"RejectedTravelRuleDueToUnsupportedToken"`)
|
|
63
|
+
|
|
64
|
+
* `SignatureVerificationSuccess` (value: `"SignatureVerificationSuccess"`)
|
|
65
|
+
|
|
66
|
+
* `SignatureVerificationFailed` (value: `"SignatureVerificationFailed"`)
|
|
67
|
+
|
|
54
68
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
55
69
|
|
|
56
70
|
|
package/docs/TransactionsApi.md
CHANGED
|
@@ -263,7 +263,7 @@ apiInstance.createMessageSignTransaction(opts).then((data) => {
|
|
|
263
263
|
|
|
264
264
|
Name | Type | Description | Notes
|
|
265
265
|
------------- | ------------- | ------------- | -------------
|
|
266
|
-
**MessageSignParams** | [**MessageSignParams**](MessageSignParams.md)| The request body to create a message
|
|
266
|
+
**MessageSignParams** | [**MessageSignParams**](MessageSignParams.md)| The request body to create a message signing transaction | [optional]
|
|
267
267
|
|
|
268
268
|
### Return type
|
|
269
269
|
|
|
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
|
|
9
9
|
**utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
|
|
10
10
|
**change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
|
|
11
|
-
**force_internal** | **Boolean** | Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer.
|
|
12
|
-
**force_external** | **Boolean** | Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer.
|
|
11
|
+
**force_internal** | **Boolean** | Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
|
|
12
|
+
**force_external** | **Boolean** | Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
|
|
13
13
|
**wallet_id** | **String** | The wallet ID. |
|
|
14
14
|
**trading_account_type** | **String** | The trading account type. |
|
|
15
15
|
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
package/docs/WalletsApi.md
CHANGED
|
@@ -1051,7 +1051,7 @@ Name | Type | Description | Notes
|
|
|
1051
1051
|
|
|
1052
1052
|
List all wallets
|
|
1053
1053
|
|
|
1054
|
-
This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1054
|
+
This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1055
1055
|
|
|
1056
1056
|
### Example
|
|
1057
1057
|
|
|
@@ -83,7 +83,7 @@ Name | Type | Description | Notes
|
|
|
83
83
|
|
|
84
84
|
Create key share holder group
|
|
85
85
|
|
|
86
|
-
This operation creates a key share holder group for a specified vault.
|
|
86
|
+
This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
87
87
|
|
|
88
88
|
### Example
|
|
89
89
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobo/cobo-waas2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo’s WaaS API offering. It enables you to access Cobo’s full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo’s [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction). ",
|
|
5
5
|
"license": "GPL 2.0",
|
|
6
6
|
"main": "dist/index.js",
|