@avalabs/glacier-sdk 2.8.0-canary.ff11880.0 → 3.0.1-alpha.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 (191) hide show
  1. package/LICENSE.md +9 -0
  2. package/dist/index.d.ts +939 -440
  3. package/dist/index.js +1 -2040
  4. package/esm/generated/Glacier.d.ts +6 -0
  5. package/esm/generated/Glacier.js +1 -68
  6. package/esm/generated/core/ApiError.js +1 -18
  7. package/esm/generated/core/BaseHttpRequest.js +1 -7
  8. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  9. package/esm/generated/core/CancelablePromise.js +1 -91
  10. package/esm/generated/core/FetchHttpRequest.js +1 -13
  11. package/esm/generated/core/OpenAPI.js +1 -13
  12. package/esm/generated/core/request.js +1 -227
  13. package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
  14. package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
  15. package/esm/generated/models/ActiveValidatorDetails.js +1 -8
  16. package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  18. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  19. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  21. package/esm/generated/models/BlockchainId.js +1 -13
  22. package/esm/generated/models/BlockchainIds.js +1 -10
  23. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  24. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  25. package/esm/generated/models/CChainExportTransaction.js +1 -8
  26. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  27. package/esm/generated/models/CChainImportTransaction.js +1 -8
  28. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  29. package/esm/generated/models/ChainInfo.d.ts +1 -3
  30. package/esm/generated/models/ChainStatus.d.ts +3 -0
  31. package/esm/generated/models/ChainStatus.js +1 -7
  32. package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
  33. package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
  34. package/esm/generated/models/CompletedValidatorDetails.js +1 -8
  35. package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
  36. package/esm/generated/models/ContractSubmissionErc20.js +1 -8
  37. package/esm/generated/models/ContractSubmissionErc721.js +1 -8
  38. package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
  39. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  40. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  41. package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
  42. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  43. package/esm/generated/models/CurrencyCode.js +1 -19
  44. package/esm/generated/models/DelegationStatusType.js +1 -8
  45. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  46. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -0
  47. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  48. package/esm/generated/models/DeliveredTeleporterMessage.js +1 -0
  49. package/esm/generated/models/EVMInput.d.ts +3 -3
  50. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  51. package/esm/generated/models/EVMOperationType.js +1 -0
  52. package/esm/generated/models/EVMOutput.d.ts +3 -3
  53. package/esm/generated/models/Erc1155Contract.js +1 -8
  54. package/esm/generated/models/Erc1155Token.js +1 -8
  55. package/esm/generated/models/Erc1155TokenBalance.js +1 -8
  56. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  57. package/esm/generated/models/Erc20Contract.js +1 -8
  58. package/esm/generated/models/Erc20Token.js +1 -8
  59. package/esm/generated/models/Erc20TokenBalance.js +1 -8
  60. package/esm/generated/models/Erc721Contract.js +1 -8
  61. package/esm/generated/models/Erc721Token.js +1 -8
  62. package/esm/generated/models/Erc721TokenBalance.js +1 -8
  63. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  64. package/esm/generated/models/EventType.js +1 -6
  65. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  66. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  67. package/esm/generated/models/GlacierApiFeature.js +1 -0
  68. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  69. package/esm/generated/models/InternalTransactionOpCall.js +1 -12
  70. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  71. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  72. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  73. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  74. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  75. package/esm/generated/models/Method.d.ts +0 -3
  76. package/esm/generated/models/Money.d.ts +0 -3
  77. package/esm/generated/models/Network.js +1 -7
  78. package/esm/generated/models/NetworkType.js +1 -7
  79. package/esm/generated/models/NextPageToken.d.ts +8 -0
  80. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  81. package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
  82. package/esm/generated/models/OperationStatus.js +1 -9
  83. package/esm/generated/models/OperationStatusCode.js +1 -8
  84. package/esm/generated/models/OperationType.d.ts +4 -2
  85. package/esm/generated/models/OperationType.js +1 -7
  86. package/esm/generated/models/PChainBalance.d.ts +15 -15
  87. package/esm/generated/models/PChainId.js +1 -7
  88. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  89. package/esm/generated/models/PChainTransaction.d.ts +17 -7
  90. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  91. package/esm/generated/models/PChainTransactionType.js +1 -19
  92. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  93. package/esm/generated/models/PendingDelegatorDetails.js +1 -8
  94. package/esm/generated/models/PendingReward.d.ts +3 -3
  95. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  96. package/esm/generated/models/PendingTeleporterMessage.js +1 -0
  97. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  98. package/esm/generated/models/PendingValidatorDetails.js +1 -8
  99. package/esm/generated/models/PrimaryNetwork.js +1 -7
  100. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  101. package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
  102. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  103. package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
  104. package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
  105. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  106. package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
  107. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  108. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  109. package/esm/generated/models/PrimaryNetworkTxType.js +1 -22
  110. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  111. package/esm/generated/models/RemovedValidatorDetails.js +1 -0
  112. package/esm/generated/models/ResourceLinkType.js +1 -23
  113. package/esm/generated/models/RewardType.js +1 -8
  114. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  115. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  116. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  117. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  118. package/esm/generated/models/SortByOption.d.ts +9 -0
  119. package/esm/generated/models/SortByOption.js +1 -0
  120. package/esm/generated/models/SortOrder.js +1 -7
  121. package/esm/generated/models/Subnet.d.ts +17 -0
  122. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  123. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  124. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  125. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  126. package/esm/generated/models/TeleporterRewardDetails.js +1 -0
  127. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  128. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  129. package/esm/generated/models/TransactionMethodType.js +1 -8
  130. package/esm/generated/models/TransactionStatus.js +1 -7
  131. package/esm/generated/models/UnknownContract.js +1 -8
  132. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  133. package/esm/generated/models/Utxo.d.ts +2 -2
  134. package/esm/generated/models/UtxoType.js +1 -7
  135. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  136. package/esm/generated/models/ValidationStatusType.js +1 -8
  137. package/esm/generated/models/VmName.js +1 -8
  138. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  139. package/esm/generated/models/WebhookStatus.js +1 -7
  140. package/esm/generated/models/WebhookStatusType.js +1 -7
  141. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  142. package/esm/generated/models/XChainBalances.d.ts +3 -3
  143. package/esm/generated/models/XChainId.js +1 -8
  144. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  145. package/esm/generated/models/XChainLinearTransaction.js +1 -9
  146. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  147. package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
  148. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  149. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  150. package/esm/generated/models/XChainTransactionType.js +1 -11
  151. package/esm/generated/services/DefaultService.d.ts +0 -53
  152. package/esm/generated/services/DefaultService.js +1 -55
  153. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  154. package/esm/generated/services/EvmBalancesService.js +1 -116
  155. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  156. package/esm/generated/services/EvmBlocksService.js +1 -37
  157. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  158. package/esm/generated/services/EvmChainsService.js +1 -29
  159. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  160. package/esm/generated/services/EvmContractsService.js +1 -36
  161. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  162. package/esm/generated/services/EvmTransactionsService.js +1 -251
  163. package/esm/generated/services/HealthCheckService.js +1 -16
  164. package/esm/generated/services/NfTsService.d.ts +8 -8
  165. package/esm/generated/services/NfTsService.js +1 -56
  166. package/esm/generated/services/OperationsService.js +1 -28
  167. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
  168. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  169. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
  170. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  171. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -53
  172. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
  173. package/esm/generated/services/PrimaryNetworkService.js +1 -171
  174. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  175. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
  176. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  177. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
  178. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  179. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
  180. package/esm/generated/services/RpcService.d.ts +25 -0
  181. package/esm/generated/services/RpcService.js +1 -0
  182. package/esm/generated/services/TeleporterService.d.ts +62 -0
  183. package/esm/generated/services/TeleporterService.js +1 -0
  184. package/esm/generated/services/WebhooksService.d.ts +143 -0
  185. package/esm/generated/services/WebhooksService.js +1 -0
  186. package/esm/index.d.ts +32 -3
  187. package/esm/index.js +1 -77
  188. package/package.json +3 -3
  189. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  190. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  191. package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -14
@@ -1,23 +1 @@
1
- var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
2
- ResourceLinkType2["BLOG"] = "Blog";
3
- ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
4
- ResourceLinkType2["COIN_MARKET_CAP"] = "CoinMarketCap";
5
- ResourceLinkType2["DISCORD"] = "Discord";
6
- ResourceLinkType2["DOCUMENTATION"] = "Documentation";
7
- ResourceLinkType2["FACEBOOK"] = "Facebook";
8
- ResourceLinkType2["GITHUB"] = "Github";
9
- ResourceLinkType2["INSTAGRAM"] = "Instagram";
10
- ResourceLinkType2["LINKED_IN"] = "LinkedIn";
11
- ResourceLinkType2["MEDIUM"] = "Medium";
12
- ResourceLinkType2["REDDIT"] = "Reddit";
13
- ResourceLinkType2["SUPPORT"] = "Support";
14
- ResourceLinkType2["TELEGRAM"] = "Telegram";
15
- ResourceLinkType2["TIK_TOK"] = "TikTok";
16
- ResourceLinkType2["TWITTER"] = "Twitter";
17
- ResourceLinkType2["WEBSITE"] = "Website";
18
- ResourceLinkType2["WHITEPAPER"] = "Whitepaper";
19
- ResourceLinkType2["YOUTUBE"] = "Youtube";
20
- return ResourceLinkType2;
21
- })(ResourceLinkType || {});
22
-
23
- export { ResourceLinkType };
1
+ var T=(T=>(T.BLOG="Blog",T.COIN_GECKO="CoinGecko",T.COIN_MARKET_CAP="CoinMarketCap",T.DISCORD="Discord",T.DOCUMENTATION="Documentation",T.FACEBOOK="Facebook",T.GITHUB="Github",T.INSTAGRAM="Instagram",T.LINKED_IN="LinkedIn",T.MEDIUM="Medium",T.REDDIT="Reddit",T.SUPPORT="Support",T.TELEGRAM="Telegram",T.TIK_TOK="TikTok",T.TWITTER="Twitter",T.WEBSITE="Website",T.WHITEPAPER="Whitepaper",T.YOUTUBE="Youtube",T))(T||{});export{T as ResourceLinkType};
@@ -1,8 +1 @@
1
- var RewardType = /* @__PURE__ */ ((RewardType2) => {
2
- RewardType2["VALIDATOR"] = "VALIDATOR";
3
- RewardType2["DELEGATOR"] = "DELEGATOR";
4
- RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
5
- return RewardType2;
6
- })(RewardType || {});
7
-
8
- export { RewardType };
1
+ var A=(A=>(A.VALIDATOR="VALIDATOR",A.DELEGATOR="DELEGATOR",A.VALIDATOR_FEE="VALIDATOR_FEE",A))(A||{});export{A as RewardType};
@@ -0,0 +1,7 @@
1
+ type RpcErrorDto = {
2
+ code: number;
3
+ message: string;
4
+ data?: Record<string, any>;
5
+ };
6
+
7
+ export { RpcErrorDto };
@@ -0,0 +1,9 @@
1
+ import { RpcErrorDto } from './RpcErrorDto.js';
2
+
3
+ type RpcErrorResponseDto = {
4
+ jsonrpc: string;
5
+ id?: (string | number);
6
+ error: RpcErrorDto;
7
+ };
8
+
9
+ export { RpcErrorResponseDto };
@@ -0,0 +1,8 @@
1
+ type RpcRequestBodyDto = {
2
+ method: string;
3
+ params?: Record<string, any>;
4
+ id?: (string | number);
5
+ jsonrpc?: string;
6
+ };
7
+
8
+ export { RpcRequestBodyDto };
@@ -0,0 +1,7 @@
1
+ type RpcSuccessResponseDto = {
2
+ jsonrpc: string;
3
+ id?: (string | number);
4
+ result: Record<string, any>;
5
+ };
6
+
7
+ export { RpcSuccessResponseDto };
@@ -0,0 +1,9 @@
1
+ declare enum SortByOption {
2
+ BLOCK_INDEX = "blockIndex",
3
+ DELEGATION_CAPACITY = "delegationCapacity",
4
+ TIME_REMAINING = "timeRemaining",
5
+ DELEGATION_FEE = "delegationFee",
6
+ UPTIME_PERFORMANCE = "uptimePerformance"
7
+ }
8
+
9
+ export { SortByOption };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.BLOCK_INDEX="blockIndex",e.DELEGATION_CAPACITY="delegationCapacity",e.TIME_REMAINING="timeRemaining",e.DELEGATION_FEE="delegationFee",e.UPTIME_PERFORMANCE="uptimePerformance",e))(e||{});export{e as SortByOption};
@@ -1,7 +1 @@
1
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2
- SortOrder2["ASC"] = "asc";
3
- SortOrder2["DESC"] = "desc";
4
- return SortOrder2;
5
- })(SortOrder || {});
6
-
7
- export { SortOrder };
1
+ var a=(a=>(a.ASC="asc",a.DESC="desc",a))(a||{});export{a as SortOrder};
@@ -1,12 +1,29 @@
1
1
  import { BlockchainInfo } from './BlockchainInfo.js';
2
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
2
3
 
3
4
  type Subnet = {
4
5
  createBlockTimestamp: number;
5
6
  createBlockIndex: string;
6
7
  subnetId: string;
8
+ /**
9
+ * This field is deprecated. Use subnetOwnershipInfo instead.
10
+ * @deprecated
11
+ */
7
12
  ownerAddresses: Array<string>;
13
+ /**
14
+ * This field is deprecated. Use subnetOwnershipInfo instead.
15
+ * @deprecated
16
+ */
8
17
  threshold: number;
18
+ /**
19
+ * This field is deprecated. Use subnetOwnershipInfo instead.
20
+ * @deprecated
21
+ */
9
22
  locktime: number;
23
+ /**
24
+ * Latest subnet owner details for this Subnet.
25
+ */
26
+ subnetOwnershipInfo: SubnetOwnershipInfo;
10
27
  blockchains: Array<BlockchainInfo>;
11
28
  };
12
29
 
@@ -0,0 +1,16 @@
1
+ type SubnetOwnershipInfo = {
2
+ /**
3
+ * Locktime in seconds after which Subnet owners can control this Subnet.
4
+ */
5
+ locktime: number;
6
+ /**
7
+ * Minimum number of signatures required to sign the Subnet update transactions.
8
+ */
9
+ threshold: number;
10
+ /**
11
+ * Addresses that are eligible to sign the Subnet update transactions.
12
+ */
13
+ addresses: Array<string>;
14
+ };
15
+
16
+ export { SubnetOwnershipInfo };
@@ -0,0 +1,9 @@
1
+ type TeleporterDestinationTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ rewardRedeemer: string;
6
+ delivererAddress: string;
7
+ };
8
+
9
+ export { TeleporterDestinationTransaction };
@@ -0,0 +1,6 @@
1
+ type TeleporterReceipt = {
2
+ receivedMessageNonce: string;
3
+ relayerRewardAddress: string;
4
+ };
5
+
6
+ export { TeleporterReceipt };
@@ -0,0 +1,37 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type TeleporterRewardDetails = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
18
+ */
19
+ decimals: number;
20
+ /**
21
+ * The logo uri for the address.
22
+ */
23
+ logoUri?: string;
24
+ ercType: TeleporterRewardDetails.ercType;
25
+ /**
26
+ * The token price, if available.
27
+ */
28
+ price?: Money;
29
+ value: string;
30
+ };
31
+ declare namespace TeleporterRewardDetails {
32
+ enum ercType {
33
+ ERC_20 = "ERC-20"
34
+ }
35
+ }
36
+
37
+ export { TeleporterRewardDetails };
@@ -0,0 +1 @@
1
+ var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as TeleporterRewardDetails};
@@ -0,0 +1,7 @@
1
+ type TeleporterSourceTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ };
6
+
7
+ export { TeleporterSourceTransaction };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
3
+ */
1
4
  declare enum TransactionMethodType {
2
5
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
3
6
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1,8 +1 @@
1
- var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
2
- TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
3
- TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
4
- TransactionMethodType2["CONTRACT_CREATION"] = "CONTRACT_CREATION";
5
- return TransactionMethodType2;
6
- })(TransactionMethodType || {});
7
-
8
- export { TransactionMethodType };
1
+ var T=(T=>(T.NATIVE_TRANSFER="NATIVE_TRANSFER",T.CONTRACT_CALL="CONTRACT_CALL",T.CONTRACT_CREATION="CONTRACT_CREATION",T))(T||{});export{T as TransactionMethodType};
@@ -1,7 +1 @@
1
- var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
2
- TransactionStatus2["FAILED"] = "failed";
3
- TransactionStatus2["SUCCESS"] = "success";
4
- return TransactionStatus2;
5
- })(TransactionStatus || {});
6
-
7
- export { TransactionStatus };
1
+ var e=(e=>(e.FAILED="failed",e.SUCCESS="success",e))(e||{});export{e as TransactionStatus};
@@ -1,8 +1 @@
1
- var UnknownContract;
2
- ((UnknownContract2) => {
3
- ((ercType2) => {
4
- ercType2["UNKNOWN"] = "UNKNOWN";
5
- })(UnknownContract2.ercType || (UnknownContract2.ercType = {}));
6
- })(UnknownContract || (UnknownContract = {}));
7
-
8
- export { UnknownContract };
1
+ var N,e;((e=N||(N={})).ercType||(e.ercType={})).UNKNOWN="UNKNOWN";export{N as UnknownContract};
@@ -0,0 +1,12 @@
1
+ import { WebhookStatusType } from './WebhookStatusType.js';
2
+
3
+ type UpdateWebhookRequest = {
4
+ name?: string;
5
+ description?: string;
6
+ url?: string;
7
+ status?: WebhookStatusType;
8
+ includeInternalTxs?: boolean;
9
+ includeLogs?: boolean;
10
+ };
11
+
12
+ export { UpdateWebhookRequest };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
@@ -6,7 +6,7 @@ type Utxo = {
6
6
  * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
8
  addresses: Array<string>;
9
- asset: Asset;
9
+ asset: AssetAmount;
10
10
  /**
11
11
  * Blockchain ID on which this output is consumed on.
12
12
  */
@@ -1,7 +1 @@
1
- var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
2
- UtxoType2["STAKE"] = "STAKE";
3
- UtxoType2["TRANSFER"] = "TRANSFER";
4
- return UtxoType2;
5
- })(UtxoType || {});
6
-
7
- export { UtxoType };
1
+ var A=(A=>(A.STAKE="STAKE",A.TRANSFER="TRANSFER",A))(A||{});export{A as UtxoType};
@@ -1,7 +1,8 @@
1
1
  declare enum ValidationStatusType {
2
2
  COMPLETED = "completed",
3
3
  ACTIVE = "active",
4
- PENDING = "pending"
4
+ PENDING = "pending",
5
+ REMOVED = "removed"
5
6
  }
6
7
 
7
8
  export { ValidationStatusType };
@@ -1,8 +1 @@
1
- var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
2
- ValidationStatusType2["COMPLETED"] = "completed";
3
- ValidationStatusType2["ACTIVE"] = "active";
4
- ValidationStatusType2["PENDING"] = "pending";
5
- return ValidationStatusType2;
6
- })(ValidationStatusType || {});
7
-
8
- export { ValidationStatusType };
1
+ var e=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(e||{});export{e as ValidationStatusType};
@@ -1,8 +1 @@
1
- var VmName = /* @__PURE__ */ ((VmName2) => {
2
- VmName2["EVM"] = "EVM";
3
- VmName2["BITCOIN"] = "BITCOIN";
4
- VmName2["ETHEREUM"] = "ETHEREUM";
5
- return VmName2;
6
- })(VmName || {});
7
-
8
- export { VmName };
1
+ var E=(E=>(E.EVM="EVM",E.BITCOIN="BITCOIN",E.ETHEREUM="ETHEREUM",E))(E||{});export{E as VmName};
@@ -6,10 +6,20 @@ type WebhookResponse = {
6
6
  id: string;
7
7
  eventType: EventType;
8
8
  metadata: AddressActivityMetadata;
9
+ /**
10
+ * Whether to include traces in the webhook payload.
11
+ */
12
+ includeInternalTxs?: boolean;
13
+ /**
14
+ * Whether to include logs in the webhook payload.
15
+ */
16
+ includeLogs?: boolean;
9
17
  url: string;
10
18
  chainId: string;
11
19
  status: WebhookStatusType;
12
20
  createdAt: number;
21
+ name: string;
22
+ description: string;
13
23
  };
14
24
 
15
25
  export { WebhookResponse };
@@ -1,7 +1 @@
1
- var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
2
- WebhookStatus2["ACTIVE"] = "active";
3
- WebhookStatus2["INACTIVE"] = "inactive";
4
- return WebhookStatus2;
5
- })(WebhookStatus || {});
6
-
7
- export { WebhookStatus };
1
+ var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatus};
@@ -1,7 +1 @@
1
- var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
2
- WebhookStatusType2["ACTIVE"] = "active";
3
- WebhookStatusType2["INACTIVE"] = "inactive";
4
- return WebhookStatusType2;
5
- })(WebhookStatusType || {});
6
-
7
- export { WebhookStatusType };
1
+ var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatusType};
@@ -1,3 +1,6 @@
1
+ import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
1
4
  type XChainAssetDetails = {
2
5
  /**
3
6
  * Unique ID for an asset.
@@ -15,18 +18,12 @@ type XChainAssetDetails = {
15
18
  * Denomination of this asset to represent fungibility.
16
19
  */
17
20
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
21
+ type: PrimaryNetworkAssetType;
22
22
  /**
23
23
  * Timestamp in seconds this asset was created on.
24
24
  */
25
25
  createdAtTimestamp: number;
26
- /**
27
- * Cap represents if an asset can be or is fixed cap.
28
- */
29
- cap: string;
26
+ cap: PrimaryNetworkAssetCap;
30
27
  };
31
28
 
32
29
  export { XChainAssetDetails };
@@ -1,15 +1,15 @@
1
- import { XChainAssetBalance } from './XChainAssetBalance.js';
1
+ import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
2
2
  import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
3
3
 
4
4
  type XChainBalances = {
5
5
  /**
6
6
  * A list of objects containing X-chain Asset balance information.
7
7
  */
8
- locked: Array<XChainAssetBalance>;
8
+ locked: Array<AggregatedAssetAmount>;
9
9
  /**
10
10
  * A list of objects containing X-chain Asset balance information.
11
11
  */
12
- unlocked: Array<XChainAssetBalance>;
12
+ unlocked: Array<AggregatedAssetAmount>;
13
13
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
14
14
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
15
15
  };
@@ -1,8 +1 @@
1
- var XChainId = /* @__PURE__ */ ((XChainId2) => {
2
- XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
3
- XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
4
- XChainId2["X_CHAIN"] = "x-chain";
5
- return XChainId2;
6
- })(XChainId || {});
7
-
8
- export { XChainId };
1
+ var N=(N=>(N._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",N._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",N.X_CHAIN="x-chain",N))(N||{});export{N as XChainId};
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
4
  import { XChainTransactionType } from './XChainTransactionType.js';
@@ -16,9 +16,6 @@ type XChainLinearTransaction = {
16
16
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
17
17
  */
18
18
  timestamp: number;
19
- /**
20
- * Type of transaction.
21
- */
22
19
  txType: XChainTransactionType;
23
20
  /**
24
21
  * Hex encoded memo bytes for this transaction.
@@ -29,11 +26,11 @@ type XChainLinearTransaction = {
29
26
  /**
30
27
  * Assets unlocked by inputs of this transaction.
31
28
  */
32
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
33
30
  /**
34
31
  * Assets created by outputs of this transaction.
35
32
  */
36
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
37
34
  /**
38
35
  * Source chain for an atomic transaction.
39
36
  */
@@ -43,7 +40,7 @@ type XChainLinearTransaction = {
43
40
  */
44
41
  destinationChain?: string;
45
42
  /**
46
- * Asset details of the asset created in CreateAssetTx
43
+ * AssetAmount details of the asset created in CreateAssetTx
47
44
  */
48
45
  assetCreated?: XChainAssetDetails;
49
46
  /**
@@ -1,9 +1 @@
1
- var XChainLinearTransaction;
2
- ((XChainLinearTransaction2) => {
3
- ((chainFormat2) => {
4
- chainFormat2["NON_LINEAR"] = "non-linear";
5
- chainFormat2["LINEAR"] = "linear";
6
- })(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
7
- })(XChainLinearTransaction || (XChainLinearTransaction = {}));
8
-
9
- export { XChainLinearTransaction };
1
+ var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainLinearTransaction};
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
@@ -17,9 +17,6 @@ type XChainNonLinearTransaction = {
17
17
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
18
18
  */
19
19
  timestamp: number;
20
- /**
21
- * Type of transaction.
22
- */
23
20
  txType: XChainTransactionType;
24
21
  /**
25
22
  * Hex encoded memo bytes for this transaction.
@@ -30,11 +27,11 @@ type XChainNonLinearTransaction = {
30
27
  /**
31
28
  * Assets unlocked by inputs of this transaction.
32
29
  */
33
- amountUnlocked: Array<Asset>;
30
+ amountUnlocked: Array<AssetAmount>;
34
31
  /**
35
32
  * Assets created by outputs of this transaction.
36
33
  */
37
- amountCreated: Array<Asset>;
34
+ amountCreated: Array<AssetAmount>;
38
35
  /**
39
36
  * Source chain for an atomic transaction.
40
37
  */
@@ -44,7 +41,7 @@ type XChainNonLinearTransaction = {
44
41
  */
45
42
  destinationChain?: string;
46
43
  /**
47
- * Asset details of the asset created in CreateAssetTx
44
+ * AssetAmount details of the asset created in CreateAssetTx
48
45
  */
49
46
  assetCreated?: XChainAssetDetails;
50
47
  /**
@@ -1,9 +1 @@
1
- var XChainNonLinearTransaction;
2
- ((XChainNonLinearTransaction2) => {
3
- ((chainFormat2) => {
4
- chainFormat2["NON_LINEAR"] = "non-linear";
5
- chainFormat2["LINEAR"] = "linear";
6
- })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
7
- })(XChainNonLinearTransaction || (XChainNonLinearTransaction = {}));
8
-
9
- export { XChainNonLinearTransaction };
1
+ var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainNonLinearTransaction};
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type XChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -15,10 +17,7 @@ type XChainSharedAssetBalance = {
15
17
  * Denomination of this asset to represent fungibility.
16
18
  */
17
19
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
20
+ type: PrimaryNetworkAssetType;
22
21
  /**
23
22
  * Amount of the asset.
24
23
  */
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Type of transaction.
3
+ */
1
4
  declare enum XChainTransactionType {
2
5
  BASE_TX = "BaseTx",
3
6
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -1,11 +1 @@
1
- var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
2
- XChainTransactionType2["BASE_TX"] = "BaseTx";
3
- XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
4
- XChainTransactionType2["OPERATION_TX"] = "OperationTx";
5
- XChainTransactionType2["IMPORT_TX"] = "ImportTx";
6
- XChainTransactionType2["EXPORT_TX"] = "ExportTx";
7
- XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
8
- return XChainTransactionType2;
9
- })(XChainTransactionType || {});
10
-
11
- export { XChainTransactionType };
1
+ var T=(T=>(T.BASE_TX="BaseTx",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as XChainTransactionType};
@@ -1,8 +1,3 @@
1
- import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
- import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
- import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
4
- import { WebhookResponse } from '../models/WebhookResponse.js';
5
- import { WebhookStatus } from '../models/WebhookStatus.js';
6
1
  import { CancelablePromise } from '../core/CancelablePromise.js';
7
2
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
3
 
@@ -14,54 +9,6 @@ declare class DefaultService {
14
9
  * @throws ApiError
15
10
  */
16
11
  mediaControllerUploadImage(): CancelablePromise<any>;
17
- /**
18
- * Register a webhook
19
- * Registers a new webhook.
20
- * @returns WebhookResponse
21
- * @throws ApiError
22
- */
23
- registerWebhook({ requestBody, }: {
24
- requestBody: RegisterWebhookRequest;
25
- }): CancelablePromise<WebhookResponse>;
26
- /**
27
- * List webhooks
28
- * Lists webhooks for the user.
29
- * @returns ListWebhooksResponse
30
- * @throws ApiError
31
- */
32
- listWebhooks({ pageSize, pageToken, status, }: {
33
- /**
34
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
35
- */
36
- pageSize?: number;
37
- /**
38
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
39
- */
40
- pageToken?: string;
41
- /**
42
- * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
43
- */
44
- status?: WebhookStatus;
45
- }): CancelablePromise<ListWebhooksResponse>;
46
- /**
47
- * Deactivate a webhook
48
- * Deactivates a webhook by ID.
49
- * @returns WebhookResponse
50
- * @throws ApiError
51
- */
52
- deactivateWebhook({ id, }: {
53
- /**
54
- * The webhook identifier.
55
- */
56
- id: string;
57
- }): CancelablePromise<WebhookResponse>;
58
- /**
59
- * Generate a shared secret
60
- * Generates a new shared secret.
61
- * @returns SharedSecretsResponse
62
- * @throws ApiError
63
- */
64
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
12
  }
66
13
 
67
14
  export { DefaultService };