@cobo/cobo-waas2 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +78 -30
  2. package/dist/ApiClient.js +11 -1
  3. package/dist/api/AddressBooksApi.js +1 -1
  4. package/dist/api/DevelopersApi.js +3 -3
  5. package/dist/api/DevelopersWebhooksApi.js +8 -8
  6. package/dist/api/PrimeBrokerApi.js +317 -0
  7. package/dist/api/StakingsApi.js +12 -12
  8. package/dist/api/TransactionsApi.js +60 -16
  9. package/dist/api/TravelRuleApi.js +18 -18
  10. package/dist/api/WalletsApi.js +84 -13
  11. package/dist/api/WalletsExchangeWalletApi.js +1 -1
  12. package/dist/api/WalletsMPCWalletsApi.js +151 -39
  13. package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
  14. package/dist/index.js +112 -7
  15. package/dist/model/ActivityExtra.js +5 -5
  16. package/dist/model/AddressBalance.js +129 -0
  17. package/dist/model/AddressTransferDestination.js +36 -0
  18. package/dist/model/ApprovalStatementStatus.js +81 -0
  19. package/dist/model/AssetBalance.js +6 -6
  20. package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
  21. package/dist/model/BabylonStakingActivityDetailExtra.js +1 -1
  22. package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
  23. package/dist/model/ChangeGuardPubkey200Response.js +110 -0
  24. package/dist/model/ContractCallParams.js +36 -0
  25. package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
  26. package/dist/model/CreateAddressRequest.js +28 -2
  27. package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
  28. package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
  29. package/dist/model/DeleteGuardPubkey201Response.js +110 -0
  30. package/dist/model/EthStakeEstimatedFee.js +1 -1
  31. package/dist/model/EthStakingActivityDetailExtra.js +1 -1
  32. package/dist/model/GetStakingEstimationFee201Response.js +1 -1
  33. package/dist/model/GetTransactionLimitation200Response.js +4 -4
  34. package/dist/model/GuardPubkeyStatus.js +91 -0
  35. package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
  36. package/dist/model/ListKeyShareHolders200Response.js +123 -0
  37. package/dist/model/MessageSignDestination.js +70 -8
  38. package/dist/model/MessageSignDestinationType.js +12 -2
  39. package/dist/model/OrgInfo.js +3 -3
  40. package/dist/model/QueryApprovalStatement200Response.js +122 -0
  41. package/dist/model/QueryGuardPubkey200Response.js +129 -0
  42. package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
  43. package/dist/model/RootPubkey.js +1 -1
  44. package/dist/model/SelfCustodyWallet.js +7 -7
  45. package/dist/model/SubWalletAssetBalance.js +6 -6
  46. package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
  47. package/dist/model/TSSGroups.js +1 -1
  48. package/dist/model/TokenBalance.js +6 -6
  49. package/dist/model/TransactionDepositToAddressDestination.js +16 -0
  50. package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
  51. package/dist/model/TransactionDestination.js +6 -0
  52. package/dist/model/TransactionRawTxInfo.js +13 -0
  53. package/dist/model/TransactionSubStatus.js +5 -0
  54. package/dist/model/TransactionUserApprovalDetail.js +3 -3
  55. package/dist/model/TransferDestination.js +6 -0
  56. package/dist/model/TransferParams.js +36 -0
  57. package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -4
  58. package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +7 -7
  59. package/dist/model/TravelRuleDepositLegalEntity.js +5 -5
  60. package/dist/model/TravelRuleDepositNaturalEntity.js +9 -9
  61. package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -5
  62. package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +3 -3
  63. package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -5
  64. package/dist/model/TravelRuleWithdrawLegalEntity.js +2 -2
  65. package/dist/model/TravelRuleWithdrawNaturalEntity.js +7 -7
  66. package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +4 -4
  67. package/dist/model/Vasp.js +7 -7
  68. package/docs/ActivityExtra.md +5 -5
  69. package/docs/AddressBalance.md +10 -0
  70. package/docs/AddressBooksApi.md +1 -1
  71. package/docs/AddressTransferDestination.md +14 -0
  72. package/docs/ApprovalStatementStatus.md +20 -0
  73. package/docs/AssetBalance.md +1 -1
  74. package/docs/BTCEIP191MessageSignDestination.md +10 -0
  75. package/docs/BabylonStakingActivityDetailExtra.md +1 -1
  76. package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
  77. package/docs/ChangeGuardPubkey200Response.md +9 -0
  78. package/docs/ContractCallParams.md +14 -0
  79. package/docs/CoreStakingActivityDetailExtra.md +3 -3
  80. package/docs/CreateAddressRequest.md +3 -1
  81. package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
  82. package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
  83. package/docs/DeleteGuardPubkey201Response.md +9 -0
  84. package/docs/DevelopersApi.md +3 -3
  85. package/docs/DevelopersWebhooksApi.md +8 -8
  86. package/docs/EthStakeEstimatedFee.md +1 -1
  87. package/docs/EthStakingActivityDetailExtra.md +1 -1
  88. package/docs/GetStakingEstimationFee201Response.md +1 -1
  89. package/docs/GetTransactionLimitation200Response.md +4 -4
  90. package/docs/GuardPubkeyStatus.md +24 -0
  91. package/docs/ListAddressBalancesByToken200Response.md +10 -0
  92. package/docs/ListKeyShareHolders200Response.md +10 -0
  93. package/docs/MessageSignDestination.md +1 -0
  94. package/docs/MessageSignDestinationType.md +6 -2
  95. package/docs/OrgInfo.md +1 -1
  96. package/docs/PrimeBrokerApi.md +318 -0
  97. package/docs/QueryApprovalStatement200Response.md +12 -0
  98. package/docs/QueryGuardPubkey200Response.md +11 -0
  99. package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
  100. package/docs/RootPubkey.md +1 -1
  101. package/docs/SelfCustodyWallet.md +3 -3
  102. package/docs/StakingsApi.md +12 -12
  103. package/docs/SubWalletAssetBalance.md +1 -1
  104. package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
  105. package/docs/TSSGroups.md +1 -1
  106. package/docs/TokenBalance.md +1 -1
  107. package/docs/TransactionDepositToAddressDestination.md +1 -0
  108. package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
  109. package/docs/TransactionDestination.md +1 -0
  110. package/docs/TransactionRawTxInfo.md +1 -0
  111. package/docs/TransactionSubStatus.md +2 -0
  112. package/docs/TransactionUserApprovalDetail.md +3 -3
  113. package/docs/TransactionsApi.md +66 -15
  114. package/docs/TransferDestination.md +14 -0
  115. package/docs/TransferParams.md +14 -0
  116. package/docs/TravelRuleApi.md +13 -13
  117. package/docs/TravelRuleDepositExchangesOrVASP.md +2 -2
  118. package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +7 -7
  119. package/docs/TravelRuleDepositLegalEntity.md +3 -3
  120. package/docs/TravelRuleDepositNaturalEntity.md +5 -5
  121. package/docs/TravelRuleDepositRequestTravelRuleInfo.md +5 -5
  122. package/docs/TravelRuleWithdrawExchangesOrVASP.md +1 -1
  123. package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +5 -5
  124. package/docs/TravelRuleWithdrawLegalEntity.md +1 -1
  125. package/docs/TravelRuleWithdrawNaturalEntity.md +4 -4
  126. package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +4 -4
  127. package/docs/Vasp.md +3 -3
  128. package/docs/WalletsApi.md +78 -13
  129. package/docs/WalletsExchangeWalletApi.md +1 -1
  130. package/docs/WalletsMPCWalletsApi.md +141 -27
  131. package/docs/WalletsSmartContractWalletsApi.md +1 -1
  132. package/package.json +1 -1
@@ -0,0 +1,107 @@
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 _QueryGuardPubkey200ResponseAddressesInner = _interopRequireDefault(require("./QueryGuardPubkey200ResponseAddressesInner"));
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 CreatePrimeBrokerAddressRequest model module.
30
+ * @module model/CreatePrimeBrokerAddressRequest
31
+ */
32
+ var CreatePrimeBrokerAddressRequest = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>CreatePrimeBrokerAddressRequest</code>.
35
+ * @alias module:model/CreatePrimeBrokerAddressRequest
36
+ */
37
+ function CreatePrimeBrokerAddressRequest() {
38
+ _classCallCheck(this, CreatePrimeBrokerAddressRequest);
39
+ CreatePrimeBrokerAddressRequest.initialize(this);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(CreatePrimeBrokerAddressRequest, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj) {}
50
+
51
+ /**
52
+ * Constructs a <code>CreatePrimeBrokerAddressRequest</code> from a plain JavaScript object, optionally creating a new instance.
53
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
55
+ * @param {module:model/CreatePrimeBrokerAddressRequest} obj Optional instance to populate.
56
+ * @return {module:model/CreatePrimeBrokerAddressRequest} The populated <code>CreatePrimeBrokerAddressRequest</code> instance.
57
+ */
58
+ }, {
59
+ key: "constructFromObject",
60
+ value: function constructFromObject(data, obj) {
61
+ if (data) {
62
+ obj = obj || new CreatePrimeBrokerAddressRequest();
63
+ if (data.hasOwnProperty('addresses')) {
64
+ obj['addresses'] = _ApiClient["default"].convertToType(data['addresses'], [_QueryGuardPubkey200ResponseAddressesInner["default"]]);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+
70
+ /**
71
+ * Validates the JSON data with respect to <code>CreatePrimeBrokerAddressRequest</code>.
72
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
73
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreatePrimeBrokerAddressRequest</code>.
74
+ */
75
+ }, {
76
+ key: "validateJSON",
77
+ value: function validateJSON(data) {
78
+ if (data['addresses']) {
79
+ // data not null
80
+ // ensure the json data is an array
81
+ if (!Array.isArray(data['addresses'])) {
82
+ throw new Error("Expected the field `addresses` to be an array in the JSON data but got " + data['addresses']);
83
+ }
84
+ // validate the optional field `addresses` (array)
85
+ var _iterator = _createForOfIteratorHelper(data['addresses']),
86
+ _step;
87
+ try {
88
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
89
+ var item = _step.value;
90
+ _QueryGuardPubkey200ResponseAddressesInner["default"].validateJSON(item);
91
+ }
92
+ } catch (err) {
93
+ _iterator.e(err);
94
+ } finally {
95
+ _iterator.f();
96
+ }
97
+ ;
98
+ }
99
+ return true;
100
+ }
101
+ }]);
102
+ }();
103
+ /**
104
+ * @member {Array.<module:model/QueryGuardPubkey200ResponseAddressesInner>} addresses
105
+ */
106
+ CreatePrimeBrokerAddressRequest.prototype['addresses'] = undefined;
107
+ var _default = exports["default"] = CreatePrimeBrokerAddressRequest;
@@ -0,0 +1,110 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ 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; } } }; }
11
+ 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; } }
12
+ 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; }
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
+ * The DeleteGuardPubkey201Response model module.
29
+ * @module model/DeleteGuardPubkey201Response
30
+ */
31
+ var DeleteGuardPubkey201Response = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>DeleteGuardPubkey201Response</code>.
34
+ * @alias module:model/DeleteGuardPubkey201Response
35
+ * @param statement_id {String} The deleted Cobo Guard binding statement ID.
36
+ */
37
+ function DeleteGuardPubkey201Response(statement_id) {
38
+ _classCallCheck(this, DeleteGuardPubkey201Response);
39
+ DeleteGuardPubkey201Response.initialize(this, statement_id);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(DeleteGuardPubkey201Response, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj, statement_id) {
50
+ obj['statement_id'] = statement_id;
51
+ }
52
+
53
+ /**
54
+ * Constructs a <code>DeleteGuardPubkey201Response</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/DeleteGuardPubkey201Response} obj Optional instance to populate.
58
+ * @return {module:model/DeleteGuardPubkey201Response} The populated <code>DeleteGuardPubkey201Response</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new DeleteGuardPubkey201Response();
65
+ if (data.hasOwnProperty('statement_id')) {
66
+ obj['statement_id'] = _ApiClient["default"].convertToType(data['statement_id'], 'String');
67
+ }
68
+ }
69
+ return obj;
70
+ }
71
+
72
+ /**
73
+ * Validates the JSON data with respect to <code>DeleteGuardPubkey201Response</code>.
74
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
75
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DeleteGuardPubkey201Response</code>.
76
+ */
77
+ }, {
78
+ key: "validateJSON",
79
+ value: function validateJSON(data) {
80
+ // check to make sure all required properties are present in the JSON string
81
+ var _iterator = _createForOfIteratorHelper(DeleteGuardPubkey201Response.RequiredProperties),
82
+ _step;
83
+ try {
84
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
85
+ var property = _step.value;
86
+ if (!data.hasOwnProperty(property)) {
87
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
88
+ }
89
+ }
90
+ // ensure the json data is a string
91
+ } catch (err) {
92
+ _iterator.e(err);
93
+ } finally {
94
+ _iterator.f();
95
+ }
96
+ if (data['statement_id'] && !(typeof data['statement_id'] === 'string' || data['statement_id'] instanceof String)) {
97
+ throw new Error("Expected the field `statement_id` to be a primitive type in the JSON string but got " + data['statement_id']);
98
+ }
99
+ return true;
100
+ }
101
+ }]);
102
+ }();
103
+ DeleteGuardPubkey201Response.RequiredProperties = ["statement_id"];
104
+
105
+ /**
106
+ * The deleted Cobo Guard binding statement ID.
107
+ * @member {String} statement_id
108
+ */
109
+ DeleteGuardPubkey201Response.prototype['statement_id'] = undefined;
110
+ var _default = exports["default"] = DeleteGuardPubkey201Response;
@@ -118,7 +118,7 @@ EthStakeEstimatedFee.prototype['fee'] = undefined;
118
118
  EthStakeEstimatedFee.prototype['validator_pubkeys'] = undefined;
119
119
 
120
120
  /**
121
- * P2WSH address generated for this staking operation(If the estimated fee is for core BTC staking).
121
+ * The P2WSH address generated for this staking operation (only applicable if the estimated fee is for CORE staking).
122
122
  * @member {String} core_btc_staking_address
123
123
  */
124
124
  EthStakeEstimatedFee.prototype['core_btc_staking_address'] = undefined;
@@ -129,7 +129,7 @@ EthStakingActivityDetailExtra.prototype['pool_type'] = undefined;
129
129
  EthStakingActivityDetailExtra.prototype['provider_name'] = undefined;
130
130
 
131
131
  /**
132
- * A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain.
132
+ * A list of public keys associated with the Ethereum validators for this unstaking operation.
133
133
  * @member {Array.<String>} validator_pubkeys
134
134
  */
135
135
  EthStakingActivityDetailExtra.prototype['validator_pubkeys'] = undefined;
@@ -191,7 +191,7 @@ GetStakingEstimationFee201Response.prototype['fee'] = undefined;
191
191
  GetStakingEstimationFee201Response.prototype['validator_pubkeys'] = undefined;
192
192
 
193
193
  /**
194
- * P2WSH address generated for this staking operation(If the estimated fee is for core BTC staking).
194
+ * The P2WSH address generated for this staking operation (only applicable if the estimated fee is for CORE staking).
195
195
  * @member {String} core_btc_staking_address
196
196
  */
197
197
  GetStakingEstimationFee201Response.prototype['core_btc_staking_address'] = undefined;
@@ -118,25 +118,25 @@ var GetTransactionLimitation200Response = /*#__PURE__*/function () {
118
118
  }]);
119
119
  }();
120
120
  /**
121
- * A list of VASPs (Virtual Asset Service Providers) associated with the token.
121
+ * A list of virtual asset service providers (VASP) you can select as the transaction source or destination.
122
122
  * @member {Array.<module:model/Vasp>} vasp_list
123
123
  */
124
124
  GetTransactionLimitation200Response.prototype['vasp_list'] = undefined;
125
125
 
126
126
  /**
127
- * Indicates whether the transaction amount exceeds a predefined threshold. - **If `true`**: Additional information is required when filling Travel Rule details: - For deposits: `date_of_incorporation` and `place_of_incorporation`. - **If `false`**: No extra fields are required.
127
+ * Indicates whether the transaction amount exceeds a predefined threshold. If exceeded, additional information is required when filling Travel Rule details. - `true`: Threshold exceeded. - `false`: Threshold not exceeded.
128
128
  * @member {Boolean} is_threshold_reached
129
129
  */
130
130
  GetTransactionLimitation200Response.prototype['is_threshold_reached'] = undefined;
131
131
 
132
132
  /**
133
- * A human-readable, time-sensitive message to be signed by the wallet owner. The message contains key details including the wallet address, a unique nonce, and a timestamp. Signing this message confirms ownership of the wallet and allows the operation to proceed.
133
+ * A human-readable, time-sensitive message to be signed by the wallet owner. The message contains key information including the wallet address, a unique nonce, and a timestamp. Signing this message confirms ownership of the wallet and allows the operation to proceed.
134
134
  * @member {String} self_custody_wallet_challenge
135
135
  */
136
136
  GetTransactionLimitation200Response.prototype['self_custody_wallet_challenge'] = undefined;
137
137
 
138
138
  /**
139
- * A list of wallets connected to the system for transactions.
139
+ * A list of self-custody wallet providers you can select as the transaction source or destination.
140
140
  * @member {Array.<String>} connect_wallet_list
141
141
  */
142
142
  GetTransactionLimitation200Response.prototype['connect_wallet_list'] = undefined;
@@ -0,0 +1,91 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class GuardPubkeyStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var GuardPubkeyStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function GuardPubkeyStatus() {
32
+ _classCallCheck(this, GuardPubkeyStatus);
33
+ /**
34
+ * value: "New"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "New", "New");
38
+ /**
39
+ * value: "ChangeNew"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "ChangeNew", "ChangeNew");
43
+ /**
44
+ * value: "WaitSelfConfirm"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "WaitSelfConfirm", "WaitSelfConfirm");
48
+ /**
49
+ * value: "WaitConfirm"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "WaitConfirm", "WaitConfirm");
53
+ /**
54
+ * value: "WaitActive"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "WaitActive", "WaitActive");
58
+ /**
59
+ * value: "Active"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "Active", "Active");
63
+ /**
64
+ * value: "Freeze"
65
+ * @const
66
+ */
67
+ _defineProperty(this, "Freeze", "Freeze");
68
+ /**
69
+ * value: "Invalid"
70
+ * @const
71
+ */
72
+ _defineProperty(this, "Invalid", "Invalid");
73
+ /**
74
+ * value: "unknown_default_open_api"
75
+ * @const
76
+ */
77
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
78
+ }
79
+ return _createClass(GuardPubkeyStatus, null, [{
80
+ key: "constructFromObject",
81
+ value:
82
+ /**
83
+ * Returns a <code>GuardPubkeyStatus</code> enum value from a Javascript object name.
84
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
85
+ * @return {module:model/GuardPubkeyStatus} The enum <code>GuardPubkeyStatus</code> value.
86
+ */
87
+ function constructFromObject(object) {
88
+ return object;
89
+ }
90
+ }]);
91
+ }();
@@ -0,0 +1,123 @@
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 _AddressBalance = _interopRequireDefault(require("./AddressBalance"));
9
+ var _Pagination = _interopRequireDefault(require("./Pagination"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ 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); }
12
+ 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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The ListAddressBalancesByToken200Response model module.
31
+ * @module model/ListAddressBalancesByToken200Response
32
+ */
33
+ var ListAddressBalancesByToken200Response = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>ListAddressBalancesByToken200Response</code>.
36
+ * @alias module:model/ListAddressBalancesByToken200Response
37
+ */
38
+ function ListAddressBalancesByToken200Response() {
39
+ _classCallCheck(this, ListAddressBalancesByToken200Response);
40
+ ListAddressBalancesByToken200Response.initialize(this);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(ListAddressBalancesByToken200Response, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj) {}
51
+
52
+ /**
53
+ * Constructs a <code>ListAddressBalancesByToken200Response</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
55
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
56
+ * @param {module:model/ListAddressBalancesByToken200Response} obj Optional instance to populate.
57
+ * @return {module:model/ListAddressBalancesByToken200Response} The populated <code>ListAddressBalancesByToken200Response</code> instance.
58
+ */
59
+ }, {
60
+ key: "constructFromObject",
61
+ value: function constructFromObject(data, obj) {
62
+ if (data) {
63
+ obj = obj || new ListAddressBalancesByToken200Response();
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_AddressBalance["default"]]);
66
+ }
67
+ if (data.hasOwnProperty('pagination')) {
68
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
69
+ }
70
+ }
71
+ return obj;
72
+ }
73
+
74
+ /**
75
+ * Validates the JSON data with respect to <code>ListAddressBalancesByToken200Response</code>.
76
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
77
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListAddressBalancesByToken200Response</code>.
78
+ */
79
+ }, {
80
+ key: "validateJSON",
81
+ value: function validateJSON(data) {
82
+ if (data['data']) {
83
+ // data not null
84
+ // ensure the json data is an array
85
+ if (!Array.isArray(data['data'])) {
86
+ throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
87
+ }
88
+ // validate the optional field `data` (array)
89
+ var _iterator = _createForOfIteratorHelper(data['data']),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var item = _step.value;
94
+ _AddressBalance["default"].validateJSON(item);
95
+ }
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ ;
102
+ }
103
+ // validate the optional field `pagination`
104
+ if (data['pagination']) {
105
+ // data not null
106
+ if (!!_Pagination["default"].validateJSON) {
107
+ _Pagination["default"].validateJSON(data['pagination']);
108
+ }
109
+ }
110
+ return true;
111
+ }
112
+ }]);
113
+ }();
114
+ /**
115
+ * @member {Array.<module:model/AddressBalance>} data
116
+ */
117
+ ListAddressBalancesByToken200Response.prototype['data'] = undefined;
118
+
119
+ /**
120
+ * @member {module:model/Pagination} pagination
121
+ */
122
+ ListAddressBalancesByToken200Response.prototype['pagination'] = undefined;
123
+ var _default = exports["default"] = ListAddressBalancesByToken200Response;
@@ -0,0 +1,123 @@
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 _KeyShareHolder = _interopRequireDefault(require("./KeyShareHolder"));
9
+ var _Pagination = _interopRequireDefault(require("./Pagination"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ 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); }
12
+ 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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The ListKeyShareHolders200Response model module.
31
+ * @module model/ListKeyShareHolders200Response
32
+ */
33
+ var ListKeyShareHolders200Response = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>ListKeyShareHolders200Response</code>.
36
+ * @alias module:model/ListKeyShareHolders200Response
37
+ */
38
+ function ListKeyShareHolders200Response() {
39
+ _classCallCheck(this, ListKeyShareHolders200Response);
40
+ ListKeyShareHolders200Response.initialize(this);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(ListKeyShareHolders200Response, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj) {}
51
+
52
+ /**
53
+ * Constructs a <code>ListKeyShareHolders200Response</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
55
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
56
+ * @param {module:model/ListKeyShareHolders200Response} obj Optional instance to populate.
57
+ * @return {module:model/ListKeyShareHolders200Response} The populated <code>ListKeyShareHolders200Response</code> instance.
58
+ */
59
+ }, {
60
+ key: "constructFromObject",
61
+ value: function constructFromObject(data, obj) {
62
+ if (data) {
63
+ obj = obj || new ListKeyShareHolders200Response();
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_KeyShareHolder["default"]]);
66
+ }
67
+ if (data.hasOwnProperty('pagination')) {
68
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
69
+ }
70
+ }
71
+ return obj;
72
+ }
73
+
74
+ /**
75
+ * Validates the JSON data with respect to <code>ListKeyShareHolders200Response</code>.
76
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
77
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListKeyShareHolders200Response</code>.
78
+ */
79
+ }, {
80
+ key: "validateJSON",
81
+ value: function validateJSON(data) {
82
+ if (data['data']) {
83
+ // data not null
84
+ // ensure the json data is an array
85
+ if (!Array.isArray(data['data'])) {
86
+ throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
87
+ }
88
+ // validate the optional field `data` (array)
89
+ var _iterator = _createForOfIteratorHelper(data['data']),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var item = _step.value;
94
+ _KeyShareHolder["default"].validateJSON(item);
95
+ }
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ ;
102
+ }
103
+ // validate the optional field `pagination`
104
+ if (data['pagination']) {
105
+ // data not null
106
+ if (!!_Pagination["default"].validateJSON) {
107
+ _Pagination["default"].validateJSON(data['pagination']);
108
+ }
109
+ }
110
+ return true;
111
+ }
112
+ }]);
113
+ }();
114
+ /**
115
+ * @member {Array.<module:model/KeyShareHolder>} data
116
+ */
117
+ ListKeyShareHolders200Response.prototype['data'] = undefined;
118
+
119
+ /**
120
+ * @member {module:model/Pagination} pagination
121
+ */
122
+ ListKeyShareHolders200Response.prototype['pagination'] = undefined;
123
+ var _default = exports["default"] = ListKeyShareHolders200Response;