@cobo/cobo-waas2 1.11.0 → 1.12.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 (101) hide show
  1. package/README.md +24 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +282 -0
  4. package/dist/api/TransactionsApi.js +55 -5
  5. package/dist/api/WalletsApi.js +58 -0
  6. package/dist/index.js +126 -0
  7. package/dist/model/ActivityExtra.js +11 -0
  8. package/dist/model/AddressTransferDestination.js +1 -1
  9. package/dist/model/AddressesEventData.js +13 -3
  10. package/dist/model/BabylonStakingActivityDetailExtra.js +21 -0
  11. package/dist/model/BaseContractCallSource.js +1 -1
  12. package/dist/model/ChainsEventData.js +202 -0
  13. package/dist/model/ContractCallParams.js +3 -30
  14. package/dist/model/ContractCallSource.js +36 -8
  15. package/dist/model/ContractCallSourceType.js +5 -0
  16. package/dist/model/CustodialTransferSource.js +1 -1
  17. package/dist/model/CustodialWeb3ContractCallSource.js +156 -0
  18. package/dist/model/CustodialWeb3MessageSignSource.js +136 -0
  19. package/dist/model/CustodialWeb3TransferSource.js +194 -0
  20. package/dist/model/FeeStationTransactionType.js +61 -0
  21. package/dist/model/ListTransactionApprovalDetails200Response.js +107 -0
  22. package/dist/model/MPCVaultEventData.js +13 -3
  23. package/dist/model/MessageSignSource.js +36 -8
  24. package/dist/model/MessageSignSourceType.js +5 -0
  25. package/dist/model/RefreshAddressBalancesByToken200Response.js +106 -0
  26. package/dist/model/RefreshAddressBalancesByTokenRequest.js +111 -0
  27. package/dist/model/SafeTxDecodedData.js +122 -0
  28. package/dist/model/SafeTxDecodedDataParameters.js +148 -0
  29. package/dist/model/SafeTxExtraData.js +339 -0
  30. package/dist/model/SafeTxSubTransaction.js +169 -0
  31. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  32. package/dist/model/TokensEventData.js +202 -0
  33. package/dist/model/Transaction.js +29 -0
  34. package/dist/model/TransactionApprovalDetail.js +39 -0
  35. package/dist/model/TransactionCoboCategory.js +91 -0
  36. package/dist/model/TransactionCustodialWeb3WalletSource.js +194 -0
  37. package/dist/model/TransactionDestination.js +12 -0
  38. package/dist/model/TransactionDetail.js +38 -0
  39. package/dist/model/TransactionDetails.js +38 -0
  40. package/dist/model/TransactionFuelingInfo.js +101 -0
  41. package/dist/model/TransactionMessageSignEIP712Destination.js +29 -0
  42. package/dist/model/TransactionProcessType.js +61 -0
  43. package/dist/model/TransactionRequestUtxoFee.js +4 -6
  44. package/dist/model/TransactionSelectedUtxo.js +26 -0
  45. package/dist/model/TransactionSolContractDestination.js +1 -1
  46. package/dist/model/TransactionSource.js +36 -8
  47. package/dist/model/TransactionSourceType.js +5 -0
  48. package/dist/model/TransactionUserApprovalDetail.js +26 -0
  49. package/dist/model/TransactionWebhookEventData.js +51 -3
  50. package/dist/model/TransferParams.js +3 -30
  51. package/dist/model/TransferSource.js +36 -8
  52. package/dist/model/WalletInfoEventData.js +13 -3
  53. package/dist/model/WebhookEventData.js +91 -9
  54. package/dist/model/WebhookEventDataType.js +12 -2
  55. package/dist/model/WebhookEventType.js +30 -0
  56. package/docs/ActivityExtra.md +2 -0
  57. package/docs/AddressesEventData.md +5 -1
  58. package/docs/BabylonStakingActivityDetailExtra.md +2 -0
  59. package/docs/ChainsEventData.md +33 -0
  60. package/docs/ContractCallParams.md +1 -14
  61. package/docs/ContractCallSourceType.md +2 -0
  62. package/docs/CustodialWeb3ContractCallSource.md +11 -0
  63. package/docs/CustodialWeb3MessageSignSource.md +11 -0
  64. package/docs/CustodialWeb3TransferSource.md +13 -0
  65. package/docs/FeeStationApi.md +260 -0
  66. package/docs/FeeStationTransactionType.md +12 -0
  67. package/docs/ListTransactionApprovalDetails200Response.md +9 -0
  68. package/docs/MPCVaultEventData.md +5 -1
  69. package/docs/MessageSignSourceType.md +2 -0
  70. package/docs/RefreshAddressBalancesByToken200Response.md +9 -0
  71. package/docs/RefreshAddressBalancesByTokenRequest.md +9 -0
  72. package/docs/SafeTxDecodedData.md +10 -0
  73. package/docs/SafeTxDecodedDataParameters.md +12 -0
  74. package/docs/SafeTxExtraData.md +26 -0
  75. package/docs/SafeTxSubTransaction.md +15 -0
  76. package/docs/TSSRequestWebhookEventData.md +5 -1
  77. package/docs/TokensEventData.md +33 -0
  78. package/docs/Transaction.md +2 -0
  79. package/docs/TransactionApprovalDetail.md +3 -0
  80. package/docs/TransactionCoboCategory.md +24 -0
  81. package/docs/TransactionCustodialWeb3WalletSource.md +13 -0
  82. package/docs/TransactionDestination.md +2 -0
  83. package/docs/TransactionDetail.md +2 -0
  84. package/docs/TransactionDetails.md +2 -0
  85. package/docs/TransactionFuelingInfo.md +10 -0
  86. package/docs/TransactionMessageSignEIP712Destination.md +2 -0
  87. package/docs/TransactionProcessType.md +12 -0
  88. package/docs/TransactionRequestFee.md +1 -1
  89. package/docs/TransactionRequestUtxoFee.md +1 -1
  90. package/docs/TransactionSelectedUtxo.md +2 -0
  91. package/docs/TransactionSourceType.md +2 -0
  92. package/docs/TransactionUserApprovalDetail.md +2 -0
  93. package/docs/TransactionWebhookEventData.md +7 -1
  94. package/docs/TransactionsApi.md +60 -3
  95. package/docs/TransferParams.md +1 -14
  96. package/docs/WalletInfoEventData.md +5 -1
  97. package/docs/WalletsApi.md +57 -0
  98. package/docs/WebhookEventData.md +9 -1
  99. package/docs/WebhookEventDataType.md +5 -1
  100. package/docs/WebhookEventType.md +12 -0
  101. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -285,6 +285,12 @@ Object.defineProperty(exports, "ChainInfo", {
285
285
  return _ChainInfo["default"];
286
286
  }
287
287
  });
288
+ Object.defineProperty(exports, "ChainsEventData", {
289
+ enumerable: true,
290
+ get: function get() {
291
+ return _ChainsEventData["default"];
292
+ }
293
+ });
288
294
  Object.defineProperty(exports, "ChangeGuardPubkey200Response", {
289
295
  enumerable: true,
290
296
  get: function get() {
@@ -603,6 +609,24 @@ Object.defineProperty(exports, "CustodialWalletInfo", {
603
609
  return _CustodialWalletInfo["default"];
604
610
  }
605
611
  });
612
+ Object.defineProperty(exports, "CustodialWeb3ContractCallSource", {
613
+ enumerable: true,
614
+ get: function get() {
615
+ return _CustodialWeb3ContractCallSource["default"];
616
+ }
617
+ });
618
+ Object.defineProperty(exports, "CustodialWeb3MessageSignSource", {
619
+ enumerable: true,
620
+ get: function get() {
621
+ return _CustodialWeb3MessageSignSource["default"];
622
+ }
623
+ });
624
+ Object.defineProperty(exports, "CustodialWeb3TransferSource", {
625
+ enumerable: true,
626
+ get: function get() {
627
+ return _CustodialWeb3TransferSource["default"];
628
+ }
629
+ });
606
630
  Object.defineProperty(exports, "DeleteGuardPubkey201Response", {
607
631
  enumerable: true,
608
632
  get: function get() {
@@ -903,6 +927,18 @@ Object.defineProperty(exports, "FeeReserved", {
903
927
  return _FeeReserved["default"];
904
928
  }
905
929
  });
930
+ Object.defineProperty(exports, "FeeStationApi", {
931
+ enumerable: true,
932
+ get: function get() {
933
+ return _FeeStationApi["default"];
934
+ }
935
+ });
936
+ Object.defineProperty(exports, "FeeStationTransactionType", {
937
+ enumerable: true,
938
+ get: function get() {
939
+ return _FeeStationTransactionType["default"];
940
+ }
941
+ });
906
942
  Object.defineProperty(exports, "FeeType", {
907
943
  enumerable: true,
908
944
  get: function get() {
@@ -1143,6 +1179,12 @@ Object.defineProperty(exports, "ListTokenBalancesForAddress200Response", {
1143
1179
  return _ListTokenBalancesForAddress200Response["default"];
1144
1180
  }
1145
1181
  });
1182
+ Object.defineProperty(exports, "ListTransactionApprovalDetails200Response", {
1183
+ enumerable: true,
1184
+ get: function get() {
1185
+ return _ListTransactionApprovalDetails200Response["default"];
1186
+ }
1187
+ });
1146
1188
  Object.defineProperty(exports, "ListTransactions200Response", {
1147
1189
  enumerable: true,
1148
1190
  get: function get() {
@@ -1383,6 +1425,18 @@ Object.defineProperty(exports, "RawMessageSignDestination", {
1383
1425
  return _RawMessageSignDestination["default"];
1384
1426
  }
1385
1427
  });
1428
+ Object.defineProperty(exports, "RefreshAddressBalancesByToken200Response", {
1429
+ enumerable: true,
1430
+ get: function get() {
1431
+ return _RefreshAddressBalancesByToken200Response["default"];
1432
+ }
1433
+ });
1434
+ Object.defineProperty(exports, "RefreshAddressBalancesByTokenRequest", {
1435
+ enumerable: true,
1436
+ get: function get() {
1437
+ return _RefreshAddressBalancesByTokenRequest["default"];
1438
+ }
1439
+ });
1386
1440
  Object.defineProperty(exports, "RefreshToken2XXResponse", {
1387
1441
  enumerable: true,
1388
1442
  get: function get() {
@@ -1437,6 +1491,30 @@ Object.defineProperty(exports, "SafeTransferSource", {
1437
1491
  return _SafeTransferSource["default"];
1438
1492
  }
1439
1493
  });
1494
+ Object.defineProperty(exports, "SafeTxDecodedData", {
1495
+ enumerable: true,
1496
+ get: function get() {
1497
+ return _SafeTxDecodedData["default"];
1498
+ }
1499
+ });
1500
+ Object.defineProperty(exports, "SafeTxDecodedDataParameters", {
1501
+ enumerable: true,
1502
+ get: function get() {
1503
+ return _SafeTxDecodedDataParameters["default"];
1504
+ }
1505
+ });
1506
+ Object.defineProperty(exports, "SafeTxExtraData", {
1507
+ enumerable: true,
1508
+ get: function get() {
1509
+ return _SafeTxExtraData["default"];
1510
+ }
1511
+ });
1512
+ Object.defineProperty(exports, "SafeTxSubTransaction", {
1513
+ enumerable: true,
1514
+ get: function get() {
1515
+ return _SafeTxSubTransaction["default"];
1516
+ }
1517
+ });
1440
1518
  Object.defineProperty(exports, "SafeWallet", {
1441
1519
  enumerable: true,
1442
1520
  get: function get() {
@@ -1659,6 +1737,12 @@ Object.defineProperty(exports, "TokenInfo", {
1659
1737
  return _TokenInfo["default"];
1660
1738
  }
1661
1739
  });
1740
+ Object.defineProperty(exports, "TokensEventData", {
1741
+ enumerable: true,
1742
+ get: function get() {
1743
+ return _TokensEventData["default"];
1744
+ }
1745
+ });
1662
1746
  Object.defineProperty(exports, "Transaction", {
1663
1747
  enumerable: true,
1664
1748
  get: function get() {
@@ -1689,12 +1773,24 @@ Object.defineProperty(exports, "TransactionBlockInfo", {
1689
1773
  return _TransactionBlockInfo["default"];
1690
1774
  }
1691
1775
  });
1776
+ Object.defineProperty(exports, "TransactionCoboCategory", {
1777
+ enumerable: true,
1778
+ get: function get() {
1779
+ return _TransactionCoboCategory["default"];
1780
+ }
1781
+ });
1692
1782
  Object.defineProperty(exports, "TransactionCustodialAssetWalletSource", {
1693
1783
  enumerable: true,
1694
1784
  get: function get() {
1695
1785
  return _TransactionCustodialAssetWalletSource["default"];
1696
1786
  }
1697
1787
  });
1788
+ Object.defineProperty(exports, "TransactionCustodialWeb3WalletSource", {
1789
+ enumerable: true,
1790
+ get: function get() {
1791
+ return _TransactionCustodialWeb3WalletSource["default"];
1792
+ }
1793
+ });
1698
1794
  Object.defineProperty(exports, "TransactionDepositFromAddressSource", {
1699
1795
  enumerable: true,
1700
1796
  get: function get() {
@@ -1809,6 +1905,12 @@ Object.defineProperty(exports, "TransactionFixedFee", {
1809
1905
  return _TransactionFixedFee["default"];
1810
1906
  }
1811
1907
  });
1908
+ Object.defineProperty(exports, "TransactionFuelingInfo", {
1909
+ enumerable: true,
1910
+ get: function get() {
1911
+ return _TransactionFuelingInfo["default"];
1912
+ }
1913
+ });
1812
1914
  Object.defineProperty(exports, "TransactionInitiatorType", {
1813
1915
  enumerable: true,
1814
1916
  get: function get() {
@@ -1833,6 +1935,12 @@ Object.defineProperty(exports, "TransactionMessageSignEIP712Destination", {
1833
1935
  return _TransactionMessageSignEIP712Destination["default"];
1834
1936
  }
1835
1937
  });
1938
+ Object.defineProperty(exports, "TransactionProcessType", {
1939
+ enumerable: true,
1940
+ get: function get() {
1941
+ return _TransactionProcessType["default"];
1942
+ }
1943
+ });
1836
1944
  Object.defineProperty(exports, "TransactionRawMessageSignDestination", {
1837
1945
  enumerable: true,
1838
1946
  get: function get() {
@@ -2410,6 +2518,7 @@ var _BroadcastSignedTransactions201ResponseInner = _interopRequireDefault(requir
2410
2518
  var _BroadcastSignedTransactionsRequest = _interopRequireDefault(require("./model/BroadcastSignedTransactionsRequest"));
2411
2519
  var _CallbackMessage = _interopRequireDefault(require("./model/CallbackMessage"));
2412
2520
  var _ChainInfo = _interopRequireDefault(require("./model/ChainInfo"));
2521
+ var _ChainsEventData = _interopRequireDefault(require("./model/ChainsEventData"));
2413
2522
  var _ChangeGuardPubkey200Response = _interopRequireDefault(require("./model/ChangeGuardPubkey200Response"));
2414
2523
  var _CheckAddressChainsValidity200ResponseInner = _interopRequireDefault(require("./model/CheckAddressChainsValidity200ResponseInner"));
2415
2524
  var _CheckAddressValidity200Response = _interopRequireDefault(require("./model/CheckAddressValidity200Response"));
@@ -2463,6 +2572,9 @@ var _CreatedWalletInfo = _interopRequireDefault(require("./model/CreatedWalletIn
2463
2572
  var _CurveType = _interopRequireDefault(require("./model/CurveType"));
2464
2573
  var _CustodialTransferSource = _interopRequireDefault(require("./model/CustodialTransferSource"));
2465
2574
  var _CustodialWalletInfo = _interopRequireDefault(require("./model/CustodialWalletInfo"));
2575
+ var _CustodialWeb3ContractCallSource = _interopRequireDefault(require("./model/CustodialWeb3ContractCallSource"));
2576
+ var _CustodialWeb3MessageSignSource = _interopRequireDefault(require("./model/CustodialWeb3MessageSignSource"));
2577
+ var _CustodialWeb3TransferSource = _interopRequireDefault(require("./model/CustodialWeb3TransferSource"));
2466
2578
  var _DeleteGuardPubkey201Response = _interopRequireDefault(require("./model/DeleteGuardPubkey201Response"));
2467
2579
  var _DeleteKeyShareHolderGroupById201Response = _interopRequireDefault(require("./model/DeleteKeyShareHolderGroupById201Response"));
2468
2580
  var _DeleteWalletById201Response = _interopRequireDefault(require("./model/DeleteWalletById201Response"));
@@ -2509,6 +2621,7 @@ var _FeeAmount = _interopRequireDefault(require("./model/FeeAmount"));
2509
2621
  var _FeeGasLimit = _interopRequireDefault(require("./model/FeeGasLimit"));
2510
2622
  var _FeeRate = _interopRequireDefault(require("./model/FeeRate"));
2511
2623
  var _FeeReserved = _interopRequireDefault(require("./model/FeeReserved"));
2624
+ var _FeeStationTransactionType = _interopRequireDefault(require("./model/FeeStationTransactionType"));
2512
2625
  var _FeeType = _interopRequireDefault(require("./model/FeeType"));
2513
2626
  var _FixedFeeRate = _interopRequireDefault(require("./model/FixedFeeRate"));
2514
2627
  var _GetApiKeyInfo200Response = _interopRequireDefault(require("./model/GetApiKeyInfo200Response"));
@@ -2549,6 +2662,7 @@ var _ListSupportedCountries200ResponseInner = _interopRequireDefault(require("./
2549
2662
  var _ListSupportedTokens200Response = _interopRequireDefault(require("./model/ListSupportedTokens200Response"));
2550
2663
  var _ListSwapActivities200Response = _interopRequireDefault(require("./model/ListSwapActivities200Response"));
2551
2664
  var _ListTokenBalancesForAddress200Response = _interopRequireDefault(require("./model/ListTokenBalancesForAddress200Response"));
2665
+ var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("./model/ListTransactionApprovalDetails200Response"));
2552
2666
  var _ListTransactions200Response = _interopRequireDefault(require("./model/ListTransactions200Response"));
2553
2667
  var _ListTssRequests200Response = _interopRequireDefault(require("./model/ListTssRequests200Response"));
2554
2668
  var _ListUtxos200Response = _interopRequireDefault(require("./model/ListUtxos200Response"));
@@ -2587,6 +2701,8 @@ var _QueryApprovalStatement200Response = _interopRequireDefault(require("./model
2587
2701
  var _QueryGuardPubkey200Response = _interopRequireDefault(require("./model/QueryGuardPubkey200Response"));
2588
2702
  var _QueryGuardPubkey200ResponseAddressesInner = _interopRequireDefault(require("./model/QueryGuardPubkey200ResponseAddressesInner"));
2589
2703
  var _RawMessageSignDestination = _interopRequireDefault(require("./model/RawMessageSignDestination"));
2704
+ var _RefreshAddressBalancesByToken200Response = _interopRequireDefault(require("./model/RefreshAddressBalancesByToken200Response"));
2705
+ var _RefreshAddressBalancesByTokenRequest = _interopRequireDefault(require("./model/RefreshAddressBalancesByTokenRequest"));
2590
2706
  var _RefreshToken2XXResponse = _interopRequireDefault(require("./model/RefreshToken2XXResponse"));
2591
2707
  var _RefreshTokenRequest = _interopRequireDefault(require("./model/RefreshTokenRequest"));
2592
2708
  var _ReplaceType = _interopRequireDefault(require("./model/ReplaceType"));
@@ -2596,6 +2712,10 @@ var _RoleScopes = _interopRequireDefault(require("./model/RoleScopes"));
2596
2712
  var _RootPubkey = _interopRequireDefault(require("./model/RootPubkey"));
2597
2713
  var _SafeContractCallSource = _interopRequireDefault(require("./model/SafeContractCallSource"));
2598
2714
  var _SafeTransferSource = _interopRequireDefault(require("./model/SafeTransferSource"));
2715
+ var _SafeTxDecodedData = _interopRequireDefault(require("./model/SafeTxDecodedData"));
2716
+ var _SafeTxDecodedDataParameters = _interopRequireDefault(require("./model/SafeTxDecodedDataParameters"));
2717
+ var _SafeTxExtraData = _interopRequireDefault(require("./model/SafeTxExtraData"));
2718
+ var _SafeTxSubTransaction = _interopRequireDefault(require("./model/SafeTxSubTransaction"));
2599
2719
  var _SafeWallet = _interopRequireDefault(require("./model/SafeWallet"));
2600
2720
  var _SafeWalletDelegates = _interopRequireDefault(require("./model/SafeWalletDelegates"));
2601
2721
  var _SafeWalletDelegatesContractCall = _interopRequireDefault(require("./model/SafeWalletDelegatesContractCall"));
@@ -2630,12 +2750,15 @@ var _TSSRequestWebhookEventData = _interopRequireDefault(require("./model/TSSReq
2630
2750
  var _TokenAssetModelType = _interopRequireDefault(require("./model/TokenAssetModelType"));
2631
2751
  var _TokenBalance = _interopRequireDefault(require("./model/TokenBalance"));
2632
2752
  var _TokenInfo = _interopRequireDefault(require("./model/TokenInfo"));
2753
+ var _TokensEventData = _interopRequireDefault(require("./model/TokensEventData"));
2633
2754
  var _Transaction = _interopRequireDefault(require("./model/Transaction"));
2634
2755
  var _TransactionApprovalDetail = _interopRequireDefault(require("./model/TransactionApprovalDetail"));
2635
2756
  var _TransactionApprovalResult = _interopRequireDefault(require("./model/TransactionApprovalResult"));
2636
2757
  var _TransactionApprover = _interopRequireDefault(require("./model/TransactionApprover"));
2637
2758
  var _TransactionBlockInfo = _interopRequireDefault(require("./model/TransactionBlockInfo"));
2759
+ var _TransactionCoboCategory = _interopRequireDefault(require("./model/TransactionCoboCategory"));
2638
2760
  var _TransactionCustodialAssetWalletSource = _interopRequireDefault(require("./model/TransactionCustodialAssetWalletSource"));
2761
+ var _TransactionCustodialWeb3WalletSource = _interopRequireDefault(require("./model/TransactionCustodialWeb3WalletSource"));
2639
2762
  var _TransactionDepositFromAddressSource = _interopRequireDefault(require("./model/TransactionDepositFromAddressSource"));
2640
2763
  var _TransactionDepositFromLoopSource = _interopRequireDefault(require("./model/TransactionDepositFromLoopSource"));
2641
2764
  var _TransactionDepositFromWalletSource = _interopRequireDefault(require("./model/TransactionDepositFromWalletSource"));
@@ -2655,10 +2778,12 @@ var _TransactionExchangeWalletSource = _interopRequireDefault(require("./model/T
2655
2778
  var _TransactionFee = _interopRequireDefault(require("./model/TransactionFee"));
2656
2779
  var _TransactionFeeStationWalletSource = _interopRequireDefault(require("./model/TransactionFeeStationWalletSource"));
2657
2780
  var _TransactionFixedFee = _interopRequireDefault(require("./model/TransactionFixedFee"));
2781
+ var _TransactionFuelingInfo = _interopRequireDefault(require("./model/TransactionFuelingInfo"));
2658
2782
  var _TransactionInitiatorType = _interopRequireDefault(require("./model/TransactionInitiatorType"));
2659
2783
  var _TransactionMPCWalletSource = _interopRequireDefault(require("./model/TransactionMPCWalletSource"));
2660
2784
  var _TransactionMessageSignEIP191Destination = _interopRequireDefault(require("./model/TransactionMessageSignEIP191Destination"));
2661
2785
  var _TransactionMessageSignEIP712Destination = _interopRequireDefault(require("./model/TransactionMessageSignEIP712Destination"));
2786
+ var _TransactionProcessType = _interopRequireDefault(require("./model/TransactionProcessType"));
2662
2787
  var _TransactionRawMessageSignDestination = _interopRequireDefault(require("./model/TransactionRawMessageSignDestination"));
2663
2788
  var _TransactionRawTxInfo = _interopRequireDefault(require("./model/TransactionRawTxInfo"));
2664
2789
  var _TransactionRbf = _interopRequireDefault(require("./model/TransactionRbf"));
@@ -2744,6 +2869,7 @@ var _WebhookEventType = _interopRequireDefault(require("./model/WebhookEventType
2744
2869
  var _AddressBooksApi = _interopRequireDefault(require("./api/AddressBooksApi"));
2745
2870
  var _DevelopersApi = _interopRequireDefault(require("./api/DevelopersApi"));
2746
2871
  var _DevelopersWebhooksApi = _interopRequireDefault(require("./api/DevelopersWebhooksApi"));
2872
+ var _FeeStationApi = _interopRequireDefault(require("./api/FeeStationApi"));
2747
2873
  var _OAuthApi = _interopRequireDefault(require("./api/OAuthApi"));
2748
2874
  var _PrimeBrokerApi = _interopRequireDefault(require("./api/PrimeBrokerApi"));
2749
2875
  var _StakingsApi = _interopRequireDefault(require("./api/StakingsApi"));
@@ -235,6 +235,17 @@ ActivityExtra.prototype['param_version'] = undefined;
235
235
  */
236
236
  ActivityExtra.prototype['withdraw_from_type'] = undefined;
237
237
 
238
+ /**
239
+ * @member {module:model/ActivityType} slash_from_type
240
+ */
241
+ ActivityExtra.prototype['slash_from_type'] = undefined;
242
+
243
+ /**
244
+ * The origin staking amount.
245
+ * @member {String} stake_amount
246
+ */
247
+ ActivityExtra.prototype['stake_amount'] = undefined;
248
+
238
249
  /**
239
250
  * The name of the provider.
240
251
  * @member {String} provider_name
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
34
34
  var AddressTransferDestination = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>AddressTransferDestination</code>.
37
- * The information about the transaction destination type &#x60;Address&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Specify either the &#x60;account_output&#x60; property or the &#x60;utxo_outputs&#x60; property. You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the &#x60;utxo_outputs&#x60; property to specify the destination addresses. Switch between the tabs to display the properties for different transaction destinations.
37
+ * The information about the transaction destination type &#x60;Address&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. **You need to specify either the &#x60;account_output&#x60; property or the &#x60;utxo_outputs&#x60; property.** You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. To do this, you should use the &#x60;utxo_outputs&#x60; property to specify the destination addresses. Switch between the tabs to display the properties for different transaction destinations.
38
38
  * @alias module:model/AddressTransferDestination
39
39
  * @param destination_type {module:model/TransferDestinationType}
40
40
  */
@@ -35,7 +35,7 @@ var AddressesEventData = /*#__PURE__*/function () {
35
35
  * Constructs a new <code>AddressesEventData</code>.
36
36
  * @alias module:model/AddressesEventData
37
37
  * @implements module:model/WebhookEventDataType
38
- * @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
38
+ * @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
39
39
  */
40
40
  function AddressesEventData(data_type) {
41
41
  _classCallCheck(this, AddressesEventData);
@@ -132,7 +132,7 @@ var AddressesEventData = /*#__PURE__*/function () {
132
132
  AddressesEventData.RequiredProperties = ["data_type"];
133
133
 
134
134
  /**
135
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
135
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
136
136
  * @member {module:model/AddressesEventData.DataTypeEnum} data_type
137
137
  */
138
138
  AddressesEventData.prototype['data_type'] = undefined;
@@ -145,7 +145,7 @@ AddressesEventData.prototype['addresses'] = undefined;
145
145
 
146
146
  // Implement WebhookEventDataType interface:
147
147
  /**
148
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
148
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
149
149
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
150
150
  */
151
151
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -181,6 +181,16 @@ AddressesEventData['DataTypeEnum'] = {
181
181
  * @const
182
182
  */
183
183
  "MPCVault": "MPCVault",
184
+ /**
185
+ * value: "Chains"
186
+ * @const
187
+ */
188
+ "Chains": "Chains",
189
+ /**
190
+ * value: "Tokens"
191
+ * @const
192
+ */
193
+ "Tokens": "Tokens",
184
194
  /**
185
195
  * value: "unknown_default_open_api"
186
196
  * @const
@@ -86,6 +86,12 @@ var BabylonStakingActivityDetailExtra = /*#__PURE__*/function () {
86
86
  if (data.hasOwnProperty('withdraw_from_type')) {
87
87
  obj['withdraw_from_type'] = _ActivityType["default"].constructFromObject(data['withdraw_from_type']);
88
88
  }
89
+ if (data.hasOwnProperty('slash_from_type')) {
90
+ obj['slash_from_type'] = _ActivityType["default"].constructFromObject(data['slash_from_type']);
91
+ }
92
+ if (data.hasOwnProperty('stake_amount')) {
93
+ obj['stake_amount'] = _ApiClient["default"].convertToType(data['stake_amount'], 'String');
94
+ }
89
95
  }
90
96
  return obj;
91
97
  }
@@ -117,6 +123,10 @@ var BabylonStakingActivityDetailExtra = /*#__PURE__*/function () {
117
123
  if (data['finality_provider_public_key'] && !(typeof data['finality_provider_public_key'] === 'string' || data['finality_provider_public_key'] instanceof String)) {
118
124
  throw new Error("Expected the field `finality_provider_public_key` to be a primitive type in the JSON string but got " + data['finality_provider_public_key']);
119
125
  }
126
+ // ensure the json data is a string
127
+ if (data['stake_amount'] && !(typeof data['stake_amount'] === 'string' || data['stake_amount'] instanceof String)) {
128
+ throw new Error("Expected the field `stake_amount` to be a primitive type in the JSON string but got " + data['stake_amount']);
129
+ }
120
130
  return true;
121
131
  }
122
132
  }]);
@@ -157,6 +167,17 @@ BabylonStakingActivityDetailExtra.prototype['param_version'] = undefined;
157
167
  */
158
168
  BabylonStakingActivityDetailExtra.prototype['withdraw_from_type'] = undefined;
159
169
 
170
+ /**
171
+ * @member {module:model/ActivityType} slash_from_type
172
+ */
173
+ BabylonStakingActivityDetailExtra.prototype['slash_from_type'] = undefined;
174
+
175
+ /**
176
+ * The origin staking amount.
177
+ * @member {String} stake_amount
178
+ */
179
+ BabylonStakingActivityDetailExtra.prototype['stake_amount'] = undefined;
180
+
160
181
  // Implement BaseStakeExtra interface:
161
182
  /**
162
183
  * @member {module:model/StakingPoolType} pool_type
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var BaseContractCallSource = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>BaseContractCallSource</code>.
35
- * The information about the transaction source type &#x60;Org-Controlled&#x60; and &#x60;User-Controlled&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
35
+ * The information about the transaction source type. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
36
36
  * @alias module:model/BaseContractCallSource
37
37
  * @param source_type {module:model/ContractCallSourceType}
38
38
  * @param wallet_id {String} The wallet ID.
@@ -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 _ChainInfo = _interopRequireDefault(require("./ChainInfo"));
9
+ var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
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 ChainsEventData model module.
31
+ * @module model/ChainsEventData
32
+ */
33
+ var ChainsEventData = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>ChainsEventData</code>.
36
+ * @alias module:model/ChainsEventData
37
+ * @implements module:model/WebhookEventDataType
38
+ * @param data_type {module:model/ChainsEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
39
+ * @param chains {Array.<module:model/ChainInfo>} The enabled chains.
40
+ */
41
+ function ChainsEventData(data_type, chains) {
42
+ _classCallCheck(this, ChainsEventData);
43
+ _WebhookEventDataType["default"].initialize(this, data_type);
44
+ ChainsEventData.initialize(this, data_type, chains);
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(ChainsEventData, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, data_type, chains) {
55
+ obj['data_type'] = data_type;
56
+ obj['chains'] = chains;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>ChainsEventData</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/ChainsEventData} obj Optional instance to populate.
64
+ * @return {module:model/ChainsEventData} The populated <code>ChainsEventData</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new ChainsEventData();
71
+ _WebhookEventDataType["default"].constructFromObject(data, obj);
72
+ if (data.hasOwnProperty('data_type')) {
73
+ obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('chains')) {
76
+ obj['chains'] = _ApiClient["default"].convertToType(data['chains'], [_ChainInfo["default"]]);
77
+ }
78
+ }
79
+ return obj;
80
+ }
81
+
82
+ /**
83
+ * Validates the JSON data with respect to <code>ChainsEventData</code>.
84
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
85
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ChainsEventData</code>.
86
+ */
87
+ }, {
88
+ key: "validateJSON",
89
+ value: function validateJSON(data) {
90
+ // check to make sure all required properties are present in the JSON string
91
+ var _iterator = _createForOfIteratorHelper(ChainsEventData.RequiredProperties),
92
+ _step;
93
+ try {
94
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
95
+ var property = _step.value;
96
+ if (!data.hasOwnProperty(property)) {
97
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
98
+ }
99
+ }
100
+ // ensure the json data is a string
101
+ } catch (err) {
102
+ _iterator.e(err);
103
+ } finally {
104
+ _iterator.f();
105
+ }
106
+ if (data['data_type'] && !(typeof data['data_type'] === 'string' || data['data_type'] instanceof String)) {
107
+ throw new Error("Expected the field `data_type` to be a primitive type in the JSON string but got " + data['data_type']);
108
+ }
109
+ if (data['chains']) {
110
+ // data not null
111
+ // ensure the json data is an array
112
+ if (!Array.isArray(data['chains'])) {
113
+ throw new Error("Expected the field `chains` to be an array in the JSON data but got " + data['chains']);
114
+ }
115
+ // validate the optional field `chains` (array)
116
+ var _iterator2 = _createForOfIteratorHelper(data['chains']),
117
+ _step2;
118
+ try {
119
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
120
+ var item = _step2.value;
121
+ _ChainInfo["default"].validateJSON(item);
122
+ }
123
+ } catch (err) {
124
+ _iterator2.e(err);
125
+ } finally {
126
+ _iterator2.f();
127
+ }
128
+ ;
129
+ }
130
+ return true;
131
+ }
132
+ }]);
133
+ }();
134
+ ChainsEventData.RequiredProperties = ["data_type", "chains"];
135
+
136
+ /**
137
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
138
+ * @member {module:model/ChainsEventData.DataTypeEnum} data_type
139
+ */
140
+ ChainsEventData.prototype['data_type'] = undefined;
141
+
142
+ /**
143
+ * The enabled chains.
144
+ * @member {Array.<module:model/ChainInfo>} chains
145
+ */
146
+ ChainsEventData.prototype['chains'] = undefined;
147
+
148
+ // Implement WebhookEventDataType interface:
149
+ /**
150
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
151
+ * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
152
+ */
153
+ _WebhookEventDataType["default"].prototype['data_type'] = undefined;
154
+
155
+ /**
156
+ * Allowed values for the <code>data_type</code> property.
157
+ * @enum {String}
158
+ * @readonly
159
+ */
160
+ ChainsEventData['DataTypeEnum'] = {
161
+ /**
162
+ * value: "Transaction"
163
+ * @const
164
+ */
165
+ "Transaction": "Transaction",
166
+ /**
167
+ * value: "TSSRequest"
168
+ * @const
169
+ */
170
+ "TSSRequest": "TSSRequest",
171
+ /**
172
+ * value: "Addresses"
173
+ * @const
174
+ */
175
+ "Addresses": "Addresses",
176
+ /**
177
+ * value: "WalletInfo"
178
+ * @const
179
+ */
180
+ "WalletInfo": "WalletInfo",
181
+ /**
182
+ * value: "MPCVault"
183
+ * @const
184
+ */
185
+ "MPCVault": "MPCVault",
186
+ /**
187
+ * value: "Chains"
188
+ * @const
189
+ */
190
+ "Chains": "Chains",
191
+ /**
192
+ * value: "Tokens"
193
+ * @const
194
+ */
195
+ "Tokens": "Tokens",
196
+ /**
197
+ * value: "unknown_default_open_api"
198
+ * @const
199
+ */
200
+ "unknown_default_open_api": "unknown_default_open_api"
201
+ };
202
+ var _default = exports["default"] = ChainsEventData;