@avalabs/glacier-sdk 2.8.0-canary.d5ec74d.0 → 2.8.0-canary.db60279.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 (84) hide show
  1. package/dist/index.d.ts +501 -240
  2. package/dist/index.js +183 -61
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
  6. package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
  7. package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
  8. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  9. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  10. package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
  11. package/esm/generated/models/ChainInfo.d.ts +1 -3
  12. package/esm/generated/models/ChainStatus.d.ts +3 -0
  13. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  14. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  15. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  16. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  17. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  18. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  19. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  20. package/esm/generated/models/EVMInput.d.ts +3 -3
  21. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  22. package/esm/generated/models/EVMOperationType.js +6 -0
  23. package/esm/generated/models/EVMOutput.d.ts +3 -3
  24. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  25. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  26. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  27. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  28. package/esm/generated/models/GlacierApiFeature.js +6 -0
  29. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  30. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  31. package/esm/generated/models/Method.d.ts +0 -3
  32. package/esm/generated/models/Money.d.ts +0 -3
  33. package/esm/generated/models/NextPageToken.d.ts +8 -0
  34. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  35. package/esm/generated/models/OperationType.d.ts +4 -2
  36. package/esm/generated/models/OperationType.js +3 -1
  37. package/esm/generated/models/PChainBalance.d.ts +15 -15
  38. package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
  39. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  40. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  41. package/esm/generated/models/PChainTransactionType.js +2 -0
  42. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  43. package/esm/generated/models/PendingReward.d.ts +3 -3
  44. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  45. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  46. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
  47. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
  48. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  49. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  50. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  51. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  52. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  53. package/esm/generated/models/Subnet.d.ts +17 -0
  54. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  55. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  56. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  57. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  58. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  59. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  60. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  61. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  62. package/esm/generated/models/Utxo.d.ts +2 -2
  63. package/esm/generated/models/WebhookResponse.d.ts +8 -0
  64. package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
  65. package/esm/generated/models/XChainBalances.d.ts +3 -3
  66. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  67. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  68. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
  69. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  70. package/esm/generated/services/DefaultService.d.ts +0 -53
  71. package/esm/generated/services/DefaultService.js +0 -42
  72. package/esm/generated/services/EvmChainsService.d.ts +6 -1
  73. package/esm/generated/services/EvmChainsService.js +4 -2
  74. package/esm/generated/services/PrimaryNetworkService.d.ts +1 -1
  75. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  76. package/esm/generated/services/TeleporterService.d.ts +57 -0
  77. package/esm/generated/services/TeleporterService.js +39 -0
  78. package/esm/generated/services/WebhooksService.d.ts +95 -0
  79. package/esm/generated/services/WebhooksService.js +80 -0
  80. package/esm/index.d.ts +17 -2
  81. package/esm/index.js +9 -2
  82. package/package.json +2 -2
  83. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  84. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts CHANGED
@@ -60,65 +60,6 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- /**
69
- * Array of hexadecimal strings of the event signatures.
70
- */
71
- eventSignatures?: Array<string>;
72
- };
73
-
74
- declare enum EventType {
75
- ADDRESS_ACTIVITY = "address_activity"
76
- }
77
-
78
- declare enum WebhookStatusType {
79
- ACTIVE = "active",
80
- INACTIVE = "inactive"
81
- }
82
-
83
- type WebhookResponse = {
84
- id: string;
85
- eventType: EventType;
86
- metadata: AddressActivityMetadata;
87
- url: string;
88
- chainId: string;
89
- status: WebhookStatusType;
90
- createdAt: number;
91
- name: string;
92
- description: string;
93
- };
94
-
95
- type ListWebhooksResponse = {
96
- /**
97
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
98
- */
99
- nextPageToken?: string;
100
- webhooks: Array<WebhookResponse>;
101
- };
102
-
103
- type RegisterWebhookRequest = {
104
- url: string;
105
- chainId: string;
106
- /**
107
- * The type of event for the webhook
108
- */
109
- eventType: EventType;
110
- metadata: AddressActivityMetadata;
111
- };
112
-
113
- type SharedSecretsResponse = {
114
- secret: string;
115
- };
116
-
117
- declare enum WebhookStatus {
118
- ACTIVE = "active",
119
- INACTIVE = "inactive"
120
- }
121
-
122
63
  declare class DefaultService {
123
64
  readonly httpRequest: BaseHttpRequest;
124
65
  constructor(httpRequest: BaseHttpRequest);
@@ -127,56 +68,11 @@ declare class DefaultService {
127
68
  * @throws ApiError
128
69
  */
129
70
  mediaControllerUploadImage(): CancelablePromise<any>;
130
- /**
131
- * Register a webhook
132
- * Registers a new webhook.
133
- * @returns WebhookResponse
134
- * @throws ApiError
135
- */
136
- registerWebhook({ requestBody, }: {
137
- requestBody: RegisterWebhookRequest;
138
- }): CancelablePromise<WebhookResponse>;
139
- /**
140
- * List webhooks
141
- * Lists webhooks for the user.
142
- * @returns ListWebhooksResponse
143
- * @throws ApiError
144
- */
145
- listWebhooks({ pageToken, pageSize, status, }: {
146
- /**
147
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
148
- */
149
- pageToken?: string;
150
- /**
151
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
152
- */
153
- pageSize?: number;
154
- /**
155
- * 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.
156
- */
157
- status?: WebhookStatus;
158
- }): CancelablePromise<ListWebhooksResponse>;
159
- /**
160
- * Deactivate a webhook
161
- * Deactivates a webhook by ID.
162
- * @returns WebhookResponse
163
- * @throws ApiError
164
- */
165
- deactivateWebhook({ id, }: {
166
- /**
167
- * The webhook identifier.
168
- */
169
- id: string;
170
- }): CancelablePromise<WebhookResponse>;
171
- /**
172
- * Generate a shared secret
173
- * Generates a new shared secret.
174
- * @returns SharedSecretsResponse
175
- * @throws ApiError
176
- */
177
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
71
  }
179
72
 
73
+ /**
74
+ * ISO 4217 currency code.
75
+ */
180
76
  declare enum CurrencyCode {
181
77
  USD = "usd",
182
78
  EUR = "eur",
@@ -195,9 +91,6 @@ declare enum CurrencyCode {
195
91
  }
196
92
 
197
93
  type Money = {
198
- /**
199
- * ISO 4217 currency code.
200
- */
201
94
  currencyCode: CurrencyCode;
202
95
  /**
203
96
  * Monetary value in base 10 decimals.
@@ -247,6 +140,9 @@ type GetNativeBalanceResponse = {
247
140
  nativeTokenBalance: NativeTokenBalance;
248
141
  };
249
142
 
143
+ /**
144
+ * The metadata indexing status of the nft.
145
+ */
250
146
  declare enum NftTokenMetadataStatus {
251
147
  UNKNOWN = "UNKNOWN",
252
148
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -262,9 +158,6 @@ declare enum NftTokenMetadataStatus {
262
158
  }
263
159
 
264
160
  type Erc1155TokenMetadata = {
265
- /**
266
- * The metadata indexing status of the nft.
267
- */
268
161
  indexStatus: NftTokenMetadataStatus;
269
162
  metadataLastUpdatedTimestamp?: number;
270
163
  name?: string;
@@ -303,9 +196,6 @@ declare namespace Erc1155TokenBalance {
303
196
  }
304
197
 
305
198
  type Erc721TokenMetadata = {
306
- /**
307
- * The metadata indexing status of the nft.
308
- */
309
199
  indexStatus: NftTokenMetadataStatus;
310
200
  metadataLastUpdatedTimestamp?: number;
311
201
  name?: string;
@@ -743,6 +633,9 @@ declare class EvmBlocksService {
743
633
  }): CancelablePromise<GetEvmBlockResponse>;
744
634
  }
745
635
 
636
+ /**
637
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
638
+ */
746
639
  declare enum ChainStatus {
747
640
  OK = "OK",
748
641
  UNAVAILABLE = "UNAVAILABLE"
@@ -780,9 +673,6 @@ declare enum VmName {
780
673
 
781
674
  type GetChainResponse = {
782
675
  chainId: string;
783
- /**
784
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
785
- */
786
676
  status: ChainStatus;
787
677
  chainName: string;
788
678
  description: string;
@@ -798,13 +688,15 @@ type GetChainResponse = {
798
688
  networkToken: NetworkToken;
799
689
  chainLogoUri?: string;
800
690
  private?: boolean;
691
+ enabledFeatures?: Array<'nftIndexing'>;
801
692
  };
802
693
 
694
+ declare enum GlacierApiFeature {
695
+ NFT_INDEXING = "nftIndexing"
696
+ }
697
+
803
698
  type ChainInfo = {
804
699
  chainId: string;
805
- /**
806
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
807
- */
808
700
  status: ChainStatus;
809
701
  chainName: string;
810
702
  description: string;
@@ -820,6 +712,7 @@ type ChainInfo = {
820
712
  networkToken: NetworkToken;
821
713
  chainLogoUri?: string;
822
714
  private?: boolean;
715
+ enabledFeatures?: Array<'nftIndexing'>;
823
716
  };
824
717
 
825
718
  type ListChainsResponse = {
@@ -840,11 +733,15 @@ declare class EvmChainsService {
840
733
  * @returns ListChainsResponse
841
734
  * @throws ApiError
842
735
  */
843
- supportedChains({ network, }: {
736
+ supportedChains({ network, feature, }: {
844
737
  /**
845
738
  * mainnet or testnet.
846
739
  */
847
740
  network?: NetworkType;
741
+ /**
742
+ * Filter by feature.
743
+ */
744
+ feature?: GlacierApiFeature;
848
745
  }): CancelablePromise<ListChainsResponse>;
849
746
  /**
850
747
  * Get chain information
@@ -1299,6 +1196,9 @@ type Erc721TransferDetails = {
1299
1196
  erc721Token: Erc721Token;
1300
1197
  };
1301
1198
 
1199
+ /**
1200
+ * 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.
1201
+ */
1302
1202
  declare enum TransactionMethodType {
1303
1203
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1304
1204
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1306,9 +1206,6 @@ declare enum TransactionMethodType {
1306
1206
  }
1307
1207
 
1308
1208
  type Method = {
1309
- /**
1310
- * 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.
1311
- */
1312
1209
  callType: TransactionMethodType;
1313
1210
  /**
1314
1211
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1669,7 +1566,7 @@ type ListTransfersResponse = {
1669
1566
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1670
1567
  */
1671
1568
  nextPageToken?: string;
1672
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1569
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1673
1570
  };
1674
1571
 
1675
1572
  declare enum SortOrder {
@@ -2040,7 +1937,7 @@ type ListNftTokens = {
2040
1937
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2041
1938
  */
2042
1939
  nextPageToken?: string;
2043
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1940
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2044
1941
  };
2045
1942
 
2046
1943
  declare class NfTsService {
@@ -2117,8 +2014,12 @@ type EvmNetworkOptions = {
2117
2014
  includeChains: Array<string>;
2118
2015
  };
2119
2016
 
2017
+ declare enum EVMOperationType {
2018
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2019
+ }
2020
+
2120
2021
  type CreateEvmTransactionExportRequest = {
2121
- type: CreateEvmTransactionExportRequest.type;
2022
+ type: EVMOperationType;
2122
2023
  firstDate: string;
2123
2024
  lastDate: string;
2124
2025
  /**
@@ -2131,10 +2032,11 @@ type CreateEvmTransactionExportRequest = {
2131
2032
  endDate: string;
2132
2033
  options: EvmNetworkOptions;
2133
2034
  };
2134
- declare namespace CreateEvmTransactionExportRequest {
2135
- enum type {
2136
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2137
- }
2035
+
2036
+ declare enum PrimaryNetworkOperationType {
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2039
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2138
2040
  }
2139
2041
 
2140
2042
  type PrimaryNetworkOptions = {
@@ -2144,7 +2046,7 @@ type PrimaryNetworkOptions = {
2144
2046
  };
2145
2047
 
2146
2048
  type CreatePrimaryNetworkTransactionExportRequest = {
2147
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2049
+ type: PrimaryNetworkOperationType;
2148
2050
  firstDate: string;
2149
2051
  lastDate: string;
2150
2052
  /**
@@ -2157,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2157
2059
  endDate: string;
2158
2060
  options: PrimaryNetworkOptions;
2159
2061
  };
2160
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2161
- enum type {
2162
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2163
- }
2164
- }
2165
2062
 
2166
2063
  declare enum OperationStatus {
2167
2064
  RUNNING = "RUNNING",
@@ -2171,8 +2068,10 @@ declare enum OperationStatus {
2171
2068
  }
2172
2069
 
2173
2070
  declare enum OperationType {
2174
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2175
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2073
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2074
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2176
2075
  }
2177
2076
 
2178
2077
  declare enum OperationStatusCode {
@@ -2364,13 +2263,44 @@ type BlockchainInfo = {
2364
2263
  blockchainId: string;
2365
2264
  };
2366
2265
 
2266
+ type SubnetOwnershipInfo = {
2267
+ /**
2268
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2269
+ */
2270
+ locktime: number;
2271
+ /**
2272
+ * Minimum number of signatures required to sign the Subnet update transactions.
2273
+ */
2274
+ threshold: number;
2275
+ /**
2276
+ * Addresses that are eligible to sign the Subnet update transactions.
2277
+ */
2278
+ addresses: Array<string>;
2279
+ };
2280
+
2367
2281
  type Subnet = {
2368
2282
  createBlockTimestamp: number;
2369
2283
  createBlockIndex: string;
2370
2284
  subnetId: string;
2285
+ /**
2286
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2287
+ * @deprecated
2288
+ */
2371
2289
  ownerAddresses: Array<string>;
2290
+ /**
2291
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2292
+ * @deprecated
2293
+ */
2372
2294
  threshold: number;
2295
+ /**
2296
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2297
+ * @deprecated
2298
+ */
2373
2299
  locktime: number;
2300
+ /**
2301
+ * Latest subnet owner details for this Subnet.
2302
+ */
2303
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2374
2304
  blockchains: Array<BlockchainInfo>;
2375
2305
  };
2376
2306
 
@@ -2507,11 +2437,17 @@ declare enum ValidationStatusType {
2507
2437
  REMOVED = "removed"
2508
2438
  }
2509
2439
 
2440
+ /**
2441
+ * Cap represents if an asset is a variable or fixed cap asset.
2442
+ */
2510
2443
  declare enum PrimaryNetworkAssetCap {
2511
2444
  FIXED = "fixed",
2512
2445
  VARIABLE = "variable"
2513
2446
  }
2514
2447
 
2448
+ /**
2449
+ * Type of asset like SECP256K1 or NFT.
2450
+ */
2515
2451
  declare enum PrimaryNetworkAssetType {
2516
2452
  SECP256K1 = "secp256k1",
2517
2453
  NFT = "nft"
@@ -2534,17 +2470,11 @@ type XChainAssetDetails = {
2534
2470
  * Denomination of this asset to represent fungibility.
2535
2471
  */
2536
2472
  denomination: number;
2537
- /**
2538
- * Type of asset like SECP256K1 or NFT.
2539
- */
2540
2473
  type: PrimaryNetworkAssetType;
2541
2474
  /**
2542
2475
  * Timestamp in seconds this asset was created on.
2543
2476
  */
2544
2477
  createdAtTimestamp: number;
2545
- /**
2546
- * Cap represents if an asset is a variable or fixed cap asset.
2547
- */
2548
2478
  cap: PrimaryNetworkAssetCap;
2549
2479
  };
2550
2480
 
@@ -2711,7 +2641,7 @@ declare class PrimaryNetworkService {
2711
2641
  /**
2712
2642
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2713
2643
  */
2714
- subnetId?: string;
2644
+ subnetId?: any;
2715
2645
  }): CancelablePromise<ListValidatorDetailsResponse>;
2716
2646
  /**
2717
2647
  * Get single validator details
@@ -2811,9 +2741,6 @@ type CChainSharedAssetBalance = {
2811
2741
  * Denomination of this asset to represent fungibility.
2812
2742
  */
2813
2743
  denomination: number;
2814
- /**
2815
- * Type of asset like SECP256K1 or NFT.
2816
- */
2817
2744
  type: PrimaryNetworkAssetType;
2818
2745
  /**
2819
2746
  * Amount of the asset.
@@ -2849,7 +2776,7 @@ type ListCChainAtomicBalancesResponse = {
2849
2776
  chainInfo: PrimaryNetworkChainInfo;
2850
2777
  };
2851
2778
 
2852
- type Asset = {
2779
+ type AggregatedAssetAmount = {
2853
2780
  /**
2854
2781
  * Unique ID for an asset.
2855
2782
  */
@@ -2866,14 +2793,12 @@ type Asset = {
2866
2793
  * Denomination of this asset to represent fungibility.
2867
2794
  */
2868
2795
  denomination: number;
2869
- /**
2870
- * Type of asset like SECP256K1 or NFT.
2871
- */
2872
2796
  type: PrimaryNetworkAssetType;
2873
2797
  /**
2874
2798
  * Amount of the asset.
2875
2799
  */
2876
2800
  amount: string;
2801
+ utxoCount: number;
2877
2802
  };
2878
2803
 
2879
2804
  type PChainSharedAsset = {
@@ -2893,49 +2818,47 @@ type PChainSharedAsset = {
2893
2818
  * Denomination of this asset to represent fungibility.
2894
2819
  */
2895
2820
  denomination: number;
2896
- /**
2897
- * Type of asset like SECP256K1 or NFT.
2898
- */
2899
2821
  type: PrimaryNetworkAssetType;
2900
2822
  /**
2901
2823
  * Amount of the asset.
2902
2824
  */
2903
2825
  amount: string;
2826
+ utxoCount: number;
2904
2827
  sharedWithChainId: string;
2905
2828
  status: string;
2906
2829
  };
2907
2830
 
2908
2831
  type PChainBalance = {
2909
2832
  /**
2910
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2833
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2911
2834
  */
2912
- unlockedUnstaked: Array<Asset>;
2835
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2913
2836
  /**
2914
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2837
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2915
2838
  */
2916
- unlockedStaked: Array<Asset>;
2839
+ unlockedStaked: Array<AggregatedAssetAmount>;
2917
2840
  /**
2918
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2841
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2919
2842
  */
2920
- lockedPlatform: Array<Asset>;
2843
+ lockedPlatform: Array<AggregatedAssetAmount>;
2921
2844
  /**
2922
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2845
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2923
2846
  */
2924
- lockedStakeable: Array<Asset>;
2847
+ lockedStakeable: Array<AggregatedAssetAmount>;
2925
2848
  /**
2926
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2849
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2927
2850
  */
2928
- lockedStaked: Array<Asset>;
2851
+ lockedStaked: Array<AggregatedAssetAmount>;
2929
2852
  /**
2930
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2853
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2931
2854
  */
2932
- pendingStaked: Array<Asset>;
2855
+ pendingStaked: Array<AggregatedAssetAmount>;
2933
2856
  /**
2934
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2857
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2935
2858
  */
2936
2859
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2937
2860
  /**
2938
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2861
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2939
2862
  */
2940
2863
  atomicMemoryLocked: Array<PChainSharedAsset>;
2941
2864
  };
@@ -2945,34 +2868,6 @@ type ListPChainBalancesResponse = {
2945
2868
  chainInfo: PrimaryNetworkChainInfo;
2946
2869
  };
2947
2870
 
2948
- type XChainAssetBalance = {
2949
- /**
2950
- * Unique ID for an asset.
2951
- */
2952
- assetId: string;
2953
- /**
2954
- * Name of this asset.
2955
- */
2956
- name: string;
2957
- /**
2958
- * Symbol for this asset (max 4 characters).
2959
- */
2960
- symbol: string;
2961
- /**
2962
- * Denomination of this asset to represent fungibility.
2963
- */
2964
- denomination: number;
2965
- /**
2966
- * Type of asset like SECP256K1 or NFT.
2967
- */
2968
- type: PrimaryNetworkAssetType;
2969
- /**
2970
- * Amount of the asset.
2971
- */
2972
- amount: string;
2973
- utxoCount: number;
2974
- };
2975
-
2976
2871
  type XChainSharedAssetBalance = {
2977
2872
  /**
2978
2873
  * Unique ID for an asset.
@@ -2990,9 +2885,6 @@ type XChainSharedAssetBalance = {
2990
2885
  * Denomination of this asset to represent fungibility.
2991
2886
  */
2992
2887
  denomination: number;
2993
- /**
2994
- * Type of asset like SECP256K1 or NFT.
2995
- */
2996
2888
  type: PrimaryNetworkAssetType;
2997
2889
  /**
2998
2890
  * Amount of the asset.
@@ -3006,11 +2898,11 @@ type XChainBalances = {
3006
2898
  /**
3007
2899
  * A list of objects containing X-chain Asset balance information.
3008
2900
  */
3009
- locked: Array<XChainAssetBalance>;
2901
+ locked: Array<AggregatedAssetAmount>;
3010
2902
  /**
3011
2903
  * A list of objects containing X-chain Asset balance information.
3012
2904
  */
3013
- unlocked: Array<XChainAssetBalance>;
2905
+ unlocked: Array<AggregatedAssetAmount>;
3014
2906
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
3015
2907
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
3016
2908
  };
@@ -3188,9 +3080,6 @@ type AssetWithPriceInfo = {
3188
3080
  * Denomination of this asset to represent fungibility.
3189
3081
  */
3190
3082
  denomination: number;
3191
- /**
3192
- * Type of asset like SECP256K1 or NFT.
3193
- */
3194
3083
  type: PrimaryNetworkAssetType;
3195
3084
  /**
3196
3085
  * Amount of the asset.
@@ -3233,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
3233
3122
  historicalRewards: Array<HistoricalReward>;
3234
3123
  };
3235
3124
 
3125
+ type AssetAmount = {
3126
+ /**
3127
+ * Unique ID for an asset.
3128
+ */
3129
+ assetId: string;
3130
+ /**
3131
+ * Name of this asset.
3132
+ */
3133
+ name: string;
3134
+ /**
3135
+ * Symbol for this asset (max 4 characters).
3136
+ */
3137
+ symbol: string;
3138
+ /**
3139
+ * Denomination of this asset to represent fungibility.
3140
+ */
3141
+ denomination: number;
3142
+ type: PrimaryNetworkAssetType;
3143
+ /**
3144
+ * Amount of the asset.
3145
+ */
3146
+ amount: string;
3147
+ };
3148
+
3236
3149
  type PendingReward = {
3237
3150
  /**
3238
3151
  * An array of P-Chain wallet addresses.
@@ -3246,9 +3159,9 @@ type PendingReward = {
3246
3159
  rewardType: RewardType;
3247
3160
  progress: number;
3248
3161
  /**
3249
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3162
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3250
3163
  */
3251
- estimatedReward: Asset;
3164
+ estimatedReward: AssetAmount;
3252
3165
  };
3253
3166
 
3254
3167
  type ListPendingRewardsResponse = {
@@ -3349,9 +3262,9 @@ type EVMInput = {
3349
3262
  */
3350
3263
  fromAddress: string;
3351
3264
  /**
3352
- * Asset details for the asset being transferred.
3265
+ * AssetAmount details for the asset being transferred.
3353
3266
  */
3354
- asset: Asset;
3267
+ asset: AssetAmount;
3355
3268
  /**
3356
3269
  * Credentials that signed this transaction.
3357
3270
  */
@@ -3363,7 +3276,7 @@ type Utxo = {
3363
3276
  * Addresses that are eligible to sign the consumption of this output.
3364
3277
  */
3365
3278
  addresses: Array<string>;
3366
- asset: Asset;
3279
+ asset: AssetAmount;
3367
3280
  /**
3368
3281
  * Blockchain ID on which this output is consumed on.
3369
3282
  */
@@ -3446,11 +3359,11 @@ type CChainExportTransaction = {
3446
3359
  /**
3447
3360
  * Assets unlocked by inputs of this transaction.
3448
3361
  */
3449
- amountUnlocked: Array<Asset>;
3362
+ amountUnlocked: Array<AssetAmount>;
3450
3363
  /**
3451
3364
  * Assets created by outputs of this transaction.
3452
3365
  */
3453
- amountCreated: Array<Asset>;
3366
+ amountCreated: Array<AssetAmount>;
3454
3367
  /**
3455
3368
  * Source chain for an atomic transaction.
3456
3369
  */
@@ -3481,9 +3394,9 @@ type EVMOutput = {
3481
3394
  */
3482
3395
  toAddress: string;
3483
3396
  /**
3484
- * Asset details for the asset being transferred.
3397
+ * AssetAmount details for the asset being transferred.
3485
3398
  */
3486
- asset: Asset;
3399
+ asset: AssetAmount;
3487
3400
  };
3488
3401
 
3489
3402
  type CChainImportTransaction = {
@@ -3510,11 +3423,11 @@ type CChainImportTransaction = {
3510
3423
  /**
3511
3424
  * Assets unlocked by inputs of this transaction.
3512
3425
  */
3513
- amountUnlocked: Array<Asset>;
3426
+ amountUnlocked: Array<AssetAmount>;
3514
3427
  /**
3515
3428
  * Assets created by outputs of this transaction.
3516
3429
  */
3517
- amountCreated: Array<Asset>;
3430
+ amountCreated: Array<AssetAmount>;
3518
3431
  /**
3519
3432
  * Source chain for an atomic transaction.
3520
3433
  */
@@ -3562,6 +3475,8 @@ declare enum PChainTransactionType {
3562
3475
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3563
3476
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3564
3477
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3478
+ BASE_TX = "BaseTx",
3479
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3565
3480
  UNKNOWN = "UNKNOWN"
3566
3481
  }
3567
3482
 
@@ -3575,7 +3490,7 @@ type PChainUtxo = {
3575
3490
  * Addresses that are eligible to sign the consumption of this output.
3576
3491
  */
3577
3492
  addresses: Array<string>;
3578
- asset: Asset;
3493
+ asset: AssetAmount;
3579
3494
  /**
3580
3495
  * Blockchain ID on which this output is consumed on.
3581
3496
  */
@@ -3639,17 +3554,17 @@ type PChainTransaction = {
3639
3554
  */
3640
3555
  destinationChain?: string;
3641
3556
  /**
3642
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3557
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3643
3558
  */
3644
- value: Array<Asset>;
3559
+ value: Array<AssetAmount>;
3645
3560
  /**
3646
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3561
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3647
3562
  */
3648
- amountBurned: Array<Asset>;
3563
+ amountBurned: Array<AssetAmount>;
3649
3564
  /**
3650
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3565
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3651
3566
  */
3652
- amountStaked: Array<Asset>;
3567
+ amountStaked: Array<AssetAmount>;
3653
3568
  /**
3654
3569
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3655
3570
  */
@@ -3681,6 +3596,10 @@ type PChainTransaction = {
3681
3596
  * Present for RewardValidatorTx
3682
3597
  */
3683
3598
  stakingTxHash?: string;
3599
+ /**
3600
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3601
+ */
3602
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3684
3603
  };
3685
3604
 
3686
3605
  type ListPChainTransactionsResponse = {
@@ -3692,6 +3611,9 @@ type ListPChainTransactionsResponse = {
3692
3611
  chainInfo: PrimaryNetworkChainInfo;
3693
3612
  };
3694
3613
 
3614
+ /**
3615
+ * Type of transaction.
3616
+ */
3695
3617
  declare enum XChainTransactionType {
3696
3618
  BASE_TX = "BaseTx",
3697
3619
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3714,9 +3636,6 @@ type XChainLinearTransaction = {
3714
3636
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3715
3637
  */
3716
3638
  timestamp: number;
3717
- /**
3718
- * Type of transaction.
3719
- */
3720
3639
  txType: XChainTransactionType;
3721
3640
  /**
3722
3641
  * Hex encoded memo bytes for this transaction.
@@ -3727,11 +3646,11 @@ type XChainLinearTransaction = {
3727
3646
  /**
3728
3647
  * Assets unlocked by inputs of this transaction.
3729
3648
  */
3730
- amountUnlocked: Array<Asset>;
3649
+ amountUnlocked: Array<AssetAmount>;
3731
3650
  /**
3732
3651
  * Assets created by outputs of this transaction.
3733
3652
  */
3734
- amountCreated: Array<Asset>;
3653
+ amountCreated: Array<AssetAmount>;
3735
3654
  /**
3736
3655
  * Source chain for an atomic transaction.
3737
3656
  */
@@ -3741,7 +3660,7 @@ type XChainLinearTransaction = {
3741
3660
  */
3742
3661
  destinationChain?: string;
3743
3662
  /**
3744
- * Asset details of the asset created in CreateAssetTx
3663
+ * AssetAmount details of the asset created in CreateAssetTx
3745
3664
  */
3746
3665
  assetCreated?: XChainAssetDetails;
3747
3666
  /**
@@ -3791,9 +3710,6 @@ type XChainNonLinearTransaction = {
3791
3710
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3792
3711
  */
3793
3712
  timestamp: number;
3794
- /**
3795
- * Type of transaction.
3796
- */
3797
3713
  txType: XChainTransactionType;
3798
3714
  /**
3799
3715
  * Hex encoded memo bytes for this transaction.
@@ -3804,11 +3720,11 @@ type XChainNonLinearTransaction = {
3804
3720
  /**
3805
3721
  * Assets unlocked by inputs of this transaction.
3806
3722
  */
3807
- amountUnlocked: Array<Asset>;
3723
+ amountUnlocked: Array<AssetAmount>;
3808
3724
  /**
3809
3725
  * Assets created by outputs of this transaction.
3810
3726
  */
3811
- amountCreated: Array<Asset>;
3727
+ amountCreated: Array<AssetAmount>;
3812
3728
  /**
3813
3729
  * Source chain for an atomic transaction.
3814
3730
  */
@@ -3818,7 +3734,7 @@ type XChainNonLinearTransaction = {
3818
3734
  */
3819
3735
  destinationChain?: string;
3820
3736
  /**
3821
- * Asset details of the asset created in CreateAssetTx
3737
+ * AssetAmount details of the asset created in CreateAssetTx
3822
3738
  */
3823
3739
  assetCreated?: XChainAssetDetails;
3824
3740
  /**
@@ -3864,8 +3780,9 @@ declare enum PrimaryNetworkTxType {
3864
3780
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3865
3781
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3866
3782
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3867
- UNKNOWN = "UNKNOWN",
3868
3783
  BASE_TX = "BaseTx",
3784
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3785
+ UNKNOWN = "UNKNOWN",
3869
3786
  CREATE_ASSET_TX = "CreateAssetTx",
3870
3787
  OPERATION_TX = "OperationTx"
3871
3788
  }
@@ -4191,6 +4108,348 @@ declare class PrimaryNetworkVerticesService {
4191
4108
  }): CancelablePromise<ListXChainVerticesResponse>;
4192
4109
  }
4193
4110
 
4111
+ type TeleporterDestinationTransaction = {
4112
+ txHash: string;
4113
+ timestamp: number;
4114
+ gasSpent: string;
4115
+ rewardRedeemer: string;
4116
+ delivererAddress: string;
4117
+ };
4118
+
4119
+ type TeleporterReceipt = {
4120
+ receivedMessageNonce: string;
4121
+ relayerRewardAddress: string;
4122
+ };
4123
+
4124
+ type TeleporterRewardDetails = {
4125
+ /**
4126
+ * A wallet or contract address in mixed-case checksum encoding.
4127
+ */
4128
+ address: string;
4129
+ /**
4130
+ * The contract name.
4131
+ */
4132
+ name: string;
4133
+ /**
4134
+ * The contract symbol.
4135
+ */
4136
+ symbol: string;
4137
+ /**
4138
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4139
+ */
4140
+ decimals: number;
4141
+ /**
4142
+ * The logo uri for the address.
4143
+ */
4144
+ logoUri?: string;
4145
+ ercType: TeleporterRewardDetails.ercType;
4146
+ /**
4147
+ * The token price, if available.
4148
+ */
4149
+ price?: Money;
4150
+ value: string;
4151
+ };
4152
+ declare namespace TeleporterRewardDetails {
4153
+ enum ercType {
4154
+ ERC_20 = "ERC-20"
4155
+ }
4156
+ }
4157
+
4158
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4159
+ messageId: string;
4160
+ teleporterContractAddress: string;
4161
+ sourceBlockchainId: string;
4162
+ destinationBlockchainId: string;
4163
+ messageNonce: string;
4164
+ from: string;
4165
+ to: string;
4166
+ data?: string;
4167
+ messageExecuted: boolean;
4168
+ receipts: Array<TeleporterReceipt>;
4169
+ receiptDelivered: boolean;
4170
+ rewardDetails: TeleporterRewardDetails;
4171
+ destinationTransaction: TeleporterDestinationTransaction;
4172
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4173
+ };
4174
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4175
+ enum status {
4176
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4177
+ }
4178
+ }
4179
+
4180
+ type TeleporterSourceTransaction = {
4181
+ txHash: string;
4182
+ timestamp: number;
4183
+ gasSpent: string;
4184
+ };
4185
+
4186
+ type DeliveredTeleporterMessage = {
4187
+ messageId: string;
4188
+ teleporterContractAddress: string;
4189
+ sourceBlockchainId: string;
4190
+ destinationBlockchainId: string;
4191
+ messageNonce: string;
4192
+ from: string;
4193
+ to: string;
4194
+ data?: string;
4195
+ messageExecuted: boolean;
4196
+ receipts: Array<TeleporterReceipt>;
4197
+ receiptDelivered: boolean;
4198
+ rewardDetails: TeleporterRewardDetails;
4199
+ sourceTransaction: TeleporterSourceTransaction;
4200
+ destinationTransaction: TeleporterDestinationTransaction;
4201
+ status: DeliveredTeleporterMessage.status;
4202
+ };
4203
+ declare namespace DeliveredTeleporterMessage {
4204
+ enum status {
4205
+ DELIVERED = "delivered"
4206
+ }
4207
+ }
4208
+
4209
+ type NextPageToken = {
4210
+ /**
4211
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4212
+ */
4213
+ nextPageToken?: string;
4214
+ };
4215
+
4216
+ type PendingTeleporterMessage = {
4217
+ messageId: string;
4218
+ teleporterContractAddress: string;
4219
+ sourceBlockchainId: string;
4220
+ destinationBlockchainId: string;
4221
+ messageNonce: string;
4222
+ from: string;
4223
+ to: string;
4224
+ data?: string;
4225
+ messageExecuted: boolean;
4226
+ receipts: Array<TeleporterReceipt>;
4227
+ receiptDelivered: boolean;
4228
+ rewardDetails: TeleporterRewardDetails;
4229
+ sourceTransaction: TeleporterSourceTransaction;
4230
+ status: PendingTeleporterMessage.status;
4231
+ };
4232
+ declare namespace PendingTeleporterMessage {
4233
+ enum status {
4234
+ PENDING = "pending"
4235
+ }
4236
+ }
4237
+
4238
+ declare class TeleporterService {
4239
+ readonly httpRequest: BaseHttpRequest;
4240
+ constructor(httpRequest: BaseHttpRequest);
4241
+ /**
4242
+ * Get a teleporter message
4243
+ * Gets a teleporter message by message ID.
4244
+ * @returns any
4245
+ * @throws ApiError
4246
+ */
4247
+ getTeleporterMessage({ messageId, }: {
4248
+ /**
4249
+ * The message ID of the teleporter message.
4250
+ */
4251
+ messageId: string;
4252
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4253
+ /**
4254
+ * List teleporter messages
4255
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4256
+ * @returns any
4257
+ * @throws ApiError
4258
+ */
4259
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4260
+ /**
4261
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4262
+ */
4263
+ pageToken?: string;
4264
+ /**
4265
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4266
+ */
4267
+ pageSize?: number;
4268
+ /**
4269
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4270
+ */
4271
+ sourceBlockchainId?: string;
4272
+ /**
4273
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4274
+ */
4275
+ destinationBlockchainId?: string;
4276
+ /**
4277
+ * The address of the recipient of the teleporter message.
4278
+ */
4279
+ to?: string;
4280
+ /**
4281
+ * The address of the sender of the teleporter message.
4282
+ */
4283
+ from?: string;
4284
+ }): CancelablePromise<NextPageToken>;
4285
+ }
4286
+
4287
+ type AddressActivityMetadata = {
4288
+ /**
4289
+ * Ethereum address for the address_activity event type
4290
+ */
4291
+ address: string;
4292
+ /**
4293
+ * Array of hexadecimal strings of the event signatures.
4294
+ */
4295
+ eventSignatures?: Array<string>;
4296
+ };
4297
+
4298
+ declare enum EventType {
4299
+ ADDRESS_ACTIVITY = "address_activity"
4300
+ }
4301
+
4302
+ declare enum WebhookStatusType {
4303
+ ACTIVE = "active",
4304
+ INACTIVE = "inactive"
4305
+ }
4306
+
4307
+ type WebhookResponse = {
4308
+ id: string;
4309
+ eventType: EventType;
4310
+ metadata: AddressActivityMetadata;
4311
+ /**
4312
+ * Whether to include traces in the webhook payload.
4313
+ */
4314
+ includeTraces?: boolean;
4315
+ /**
4316
+ * Whether to include logs in the webhook payload.
4317
+ */
4318
+ includeLogs?: boolean;
4319
+ url: string;
4320
+ chainId: string;
4321
+ status: WebhookStatusType;
4322
+ createdAt: number;
4323
+ name: string;
4324
+ description: string;
4325
+ };
4326
+
4327
+ type ListWebhooksResponse = {
4328
+ /**
4329
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4330
+ */
4331
+ nextPageToken?: string;
4332
+ webhooks: Array<WebhookResponse>;
4333
+ };
4334
+
4335
+ type RegisterWebhookRequest = {
4336
+ url: string;
4337
+ chainId: string;
4338
+ eventType: EventType;
4339
+ metadata: AddressActivityMetadata;
4340
+ /**
4341
+ * Whether to include traces in the webhook payload.
4342
+ */
4343
+ includeTraces?: boolean;
4344
+ /**
4345
+ * Whether to include logs in the webhook payload.
4346
+ */
4347
+ includeLogs?: boolean;
4348
+ };
4349
+
4350
+ type SharedSecretsResponse = {
4351
+ secret: string;
4352
+ };
4353
+
4354
+ type UpdateWebhookRequest = {
4355
+ name?: string;
4356
+ description?: string;
4357
+ url?: string;
4358
+ status?: WebhookStatusType;
4359
+ includeTraces?: boolean;
4360
+ includeLogs?: boolean;
4361
+ };
4362
+
4363
+ declare enum WebhookStatus {
4364
+ ACTIVE = "active",
4365
+ INACTIVE = "inactive"
4366
+ }
4367
+
4368
+ declare class WebhooksService {
4369
+ readonly httpRequest: BaseHttpRequest;
4370
+ constructor(httpRequest: BaseHttpRequest);
4371
+ /**
4372
+ * Register a webhook
4373
+ * Registers a new webhook.
4374
+ * @returns WebhookResponse
4375
+ * @throws ApiError
4376
+ */
4377
+ registerWebhook({ requestBody, }: {
4378
+ requestBody: RegisterWebhookRequest;
4379
+ }): CancelablePromise<WebhookResponse>;
4380
+ /**
4381
+ * List webhooks
4382
+ * Lists webhooks for the user.
4383
+ * @returns ListWebhooksResponse
4384
+ * @throws ApiError
4385
+ */
4386
+ listWebhooks({ pageToken, pageSize, status, }: {
4387
+ /**
4388
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4389
+ */
4390
+ pageToken?: string;
4391
+ /**
4392
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4393
+ */
4394
+ pageSize?: number;
4395
+ /**
4396
+ * 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.
4397
+ */
4398
+ status?: WebhookStatus;
4399
+ }): CancelablePromise<ListWebhooksResponse>;
4400
+ /**
4401
+ * Get a webhook by ID
4402
+ * Retrieves a webhook by ID.
4403
+ * @returns WebhookResponse
4404
+ * @throws ApiError
4405
+ */
4406
+ getWebhook({ id, }: {
4407
+ /**
4408
+ * The webhook identifier.
4409
+ */
4410
+ id: string;
4411
+ }): CancelablePromise<WebhookResponse>;
4412
+ /**
4413
+ * Deactivate a webhook
4414
+ * Deactivates a webhook by ID.
4415
+ * @returns WebhookResponse
4416
+ * @throws ApiError
4417
+ */
4418
+ deactivateWebhook({ id, }: {
4419
+ /**
4420
+ * The webhook identifier.
4421
+ */
4422
+ id: string;
4423
+ }): CancelablePromise<WebhookResponse>;
4424
+ /**
4425
+ * Update a webhook
4426
+ * Updates an existing webhook.
4427
+ * @returns WebhookResponse
4428
+ * @throws ApiError
4429
+ */
4430
+ updateWebhook({ id, requestBody, }: {
4431
+ /**
4432
+ * The webhook identifier.
4433
+ */
4434
+ id: string;
4435
+ requestBody: UpdateWebhookRequest;
4436
+ }): CancelablePromise<WebhookResponse>;
4437
+ /**
4438
+ * Generate a shared secret
4439
+ * Generates a new shared secret.
4440
+ * @returns SharedSecretsResponse
4441
+ * @throws ApiError
4442
+ */
4443
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4444
+ /**
4445
+ * Get a shared secret
4446
+ * Get a previously generated shared secret.
4447
+ * @returns SharedSecretsResponse
4448
+ * @throws ApiError
4449
+ */
4450
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4451
+ }
4452
+
4194
4453
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4195
4454
  declare class Glacier {
4196
4455
  readonly default: DefaultService;
@@ -4209,6 +4468,8 @@ declare class Glacier {
4209
4468
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4210
4469
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4211
4470
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4471
+ readonly teleporter: TeleporterService;
4472
+ readonly webhooks: WebhooksService;
4212
4473
  readonly request: BaseHttpRequest;
4213
4474
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4214
4475
  }
@@ -4230,4 +4491,4 @@ declare class ApiError extends Error {
4230
4491
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4231
4492
  }
4232
4493
 
4233
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4494
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };