@avalabs/glacier-sdk 2.8.0-canary.f195b3d.0 → 2.8.0-canary.f5f193e.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 (30) hide show
  1. package/dist/index.d.ts +37 -202
  2. package/dist/index.js +7 -74
  3. package/esm/generated/Glacier.d.ts +0 -2
  4. package/esm/generated/Glacier.js +0 -3
  5. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  6. package/esm/generated/services/DefaultService.d.ts +7 -0
  7. package/esm/generated/services/DefaultService.js +7 -1
  8. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  9. package/esm/generated/services/EvmBlocksService.d.ts +2 -2
  10. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  11. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  12. package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
  13. package/esm/generated/services/NfTsService.d.ts +3 -3
  14. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  15. package/esm/index.d.ts +0 -8
  16. package/esm/index.js +0 -5
  17. package/package.json +2 -2
  18. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +0 -24
  19. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +0 -8
  20. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +0 -26
  21. package/esm/generated/models/DeliveredTeleporterMessage.js +0 -8
  22. package/esm/generated/models/NextPageToken.d.ts +0 -8
  23. package/esm/generated/models/PendingTeleporterMessage.d.ts +0 -24
  24. package/esm/generated/models/PendingTeleporterMessage.js +0 -8
  25. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +0 -9
  26. package/esm/generated/models/TeleporterRewardDetails.d.ts +0 -37
  27. package/esm/generated/models/TeleporterRewardDetails.js +0 -8
  28. package/esm/generated/models/TeleporterSourceTransaction.d.ts +0 -7
  29. package/esm/generated/services/TeleporterService.d.ts +0 -65
  30. package/esm/generated/services/TeleporterService.js +0 -43
package/dist/index.d.ts CHANGED
@@ -88,6 +88,8 @@ type WebhookResponse = {
88
88
  chainId: string;
89
89
  status: WebhookStatusType;
90
90
  createdAt: number;
91
+ name: string;
92
+ description: string;
91
93
  };
92
94
 
93
95
  type ListWebhooksResponse = {
@@ -173,6 +175,13 @@ declare class DefaultService {
173
175
  * @throws ApiError
174
176
  */
175
177
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
+ /**
179
+ * Get a shared secret
180
+ * Get a previously generated shared secret.
181
+ * @returns SharedSecretsResponse
182
+ * @throws ApiError
183
+ */
184
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
176
185
  }
177
186
 
178
187
  declare enum CurrencyCode {
@@ -450,7 +459,7 @@ declare class EvmBalancesService {
450
459
  */
451
460
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
452
461
  /**
453
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
462
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
454
463
  */
455
464
  chainId: string;
456
465
  /**
@@ -478,7 +487,7 @@ declare class EvmBalancesService {
478
487
  */
479
488
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
480
489
  /**
481
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
490
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
482
491
  */
483
492
  chainId: string;
484
493
  /**
@@ -516,7 +525,7 @@ declare class EvmBalancesService {
516
525
  */
517
526
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
518
527
  /**
519
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
528
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
520
529
  */
521
530
  chainId: string;
522
531
  /**
@@ -548,7 +557,7 @@ declare class EvmBalancesService {
548
557
  */
549
558
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
550
559
  /**
551
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
560
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
552
561
  */
553
562
  chainId: string;
554
563
  /**
@@ -582,7 +591,7 @@ declare class EvmBalancesService {
582
591
  */
583
592
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
584
593
  /**
585
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
594
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
586
595
  */
587
596
  chainId: string;
588
597
  /**
@@ -711,7 +720,7 @@ declare class EvmBlocksService {
711
720
  */
712
721
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
713
722
  /**
714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
723
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
715
724
  */
716
725
  chainId: string;
717
726
  /**
@@ -731,7 +740,7 @@ declare class EvmBlocksService {
731
740
  */
732
741
  getBlock({ chainId, blockId, }: {
733
742
  /**
734
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
743
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
735
744
  */
736
745
  chainId: string;
737
746
  /**
@@ -852,7 +861,7 @@ declare class EvmChainsService {
852
861
  */
853
862
  getChainInfo({ chainId, }: {
854
863
  /**
855
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
864
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
856
865
  */
857
866
  chainId: string;
858
867
  }): CancelablePromise<GetChainResponse>;
@@ -1147,7 +1156,7 @@ declare class EvmContractsService {
1147
1156
  */
1148
1157
  getContractMetadata({ chainId, address, }: {
1149
1158
  /**
1150
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1159
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1151
1160
  */
1152
1161
  chainId: string;
1153
1162
  /**
@@ -1163,7 +1172,7 @@ declare class EvmContractsService {
1163
1172
  */
1164
1173
  updateContractInfo({ chainId, address, requestBody, }: {
1165
1174
  /**
1166
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1175
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
1176
  */
1168
1177
  chainId: string;
1169
1178
  /**
@@ -1691,7 +1700,7 @@ declare class EvmTransactionsService {
1691
1700
  */
1692
1701
  getDeploymentTransaction({ chainId, address, currency, }: {
1693
1702
  /**
1694
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1703
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1695
1704
  */
1696
1705
  chainId: string;
1697
1706
  /**
@@ -1711,7 +1720,7 @@ declare class EvmTransactionsService {
1711
1720
  */
1712
1721
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1713
1722
  /**
1714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1723
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1715
1724
  */
1716
1725
  chainId: string;
1717
1726
  /**
@@ -1735,7 +1744,7 @@ declare class EvmTransactionsService {
1735
1744
  */
1736
1745
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
1746
  /**
1738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1747
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
1748
  */
1740
1749
  chainId: string;
1741
1750
  /**
@@ -1769,7 +1778,7 @@ declare class EvmTransactionsService {
1769
1778
  */
1770
1779
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1771
1780
  /**
1772
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1781
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1773
1782
  */
1774
1783
  chainId: string;
1775
1784
  /**
@@ -1805,7 +1814,7 @@ declare class EvmTransactionsService {
1805
1814
  */
1806
1815
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1807
1816
  /**
1808
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1817
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1809
1818
  */
1810
1819
  chainId: string;
1811
1820
  /**
@@ -1837,7 +1846,7 @@ declare class EvmTransactionsService {
1837
1846
  */
1838
1847
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1839
1848
  /**
1840
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1849
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1841
1850
  */
1842
1851
  chainId: string;
1843
1852
  /**
@@ -1869,7 +1878,7 @@ declare class EvmTransactionsService {
1869
1878
  */
1870
1879
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1871
1880
  /**
1872
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1881
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1873
1882
  */
1874
1883
  chainId: string;
1875
1884
  /**
@@ -1901,7 +1910,7 @@ declare class EvmTransactionsService {
1901
1910
  */
1902
1911
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1903
1912
  /**
1904
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1913
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
1914
  */
1906
1915
  chainId: string;
1907
1916
  /**
@@ -1935,7 +1944,7 @@ declare class EvmTransactionsService {
1935
1944
  */
1936
1945
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1937
1946
  /**
1938
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1947
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1939
1948
  */
1940
1949
  chainId: string;
1941
1950
  /**
@@ -1967,7 +1976,7 @@ declare class EvmTransactionsService {
1967
1976
  */
1968
1977
  getTransaction({ chainId, txHash, }: {
1969
1978
  /**
1970
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1979
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1971
1980
  */
1972
1981
  chainId: string;
1973
1982
  /**
@@ -1983,7 +1992,7 @@ declare class EvmTransactionsService {
1983
1992
  */
1984
1993
  getTransactionsForBlock({ chainId, blockId, }: {
1985
1994
  /**
1986
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1995
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1987
1996
  */
1988
1997
  chainId: string;
1989
1998
  /**
@@ -1999,7 +2008,7 @@ declare class EvmTransactionsService {
1999
2008
  */
2000
2009
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2001
2010
  /**
2002
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2011
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2003
2012
  */
2004
2013
  chainId: string;
2005
2014
  /**
@@ -2052,7 +2061,7 @@ declare class NfTsService {
2052
2061
  */
2053
2062
  reindexNft({ chainId, address, tokenId, }: {
2054
2063
  /**
2055
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2056
2065
  */
2057
2066
  chainId: string;
2058
2067
  /**
@@ -2072,7 +2081,7 @@ declare class NfTsService {
2072
2081
  */
2073
2082
  listTokens({ chainId, address, pageToken, pageSize, }: {
2074
2083
  /**
2075
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2084
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2076
2085
  */
2077
2086
  chainId: string;
2078
2087
  /**
@@ -2096,7 +2105,7 @@ declare class NfTsService {
2096
2105
  */
2097
2106
  getTokenDetails({ chainId, address, tokenId, }: {
2098
2107
  /**
2099
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2108
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2100
2109
  */
2101
2110
  chainId: string;
2102
2111
  /**
@@ -3272,7 +3281,7 @@ declare class PrimaryNetworkRewardsService {
3272
3281
  */
3273
3282
  network: Network;
3274
3283
  /**
3275
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
3284
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
3276
3285
  */
3277
3286
  addresses?: string;
3278
3287
  /**
@@ -3284,7 +3293,7 @@ declare class PrimaryNetworkRewardsService {
3284
3293
  */
3285
3294
  pageSize?: number;
3286
3295
  /**
3287
- * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3296
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3288
3297
  */
3289
3298
  nodeIds?: string;
3290
3299
  /**
@@ -4189,179 +4198,6 @@ declare class PrimaryNetworkVerticesService {
4189
4198
  }): CancelablePromise<ListXChainVerticesResponse>;
4190
4199
  }
4191
4200
 
4192
- type TeleporterDestinationTransaction = {
4193
- txHash: string;
4194
- timestamp: number;
4195
- gasSpent: string;
4196
- rewardRedeemer: string;
4197
- delivererAddress: string;
4198
- };
4199
-
4200
- type TeleporterRewardDetails = {
4201
- /**
4202
- * A wallet or contract address in mixed-case checksum encoding.
4203
- */
4204
- address: string;
4205
- /**
4206
- * The contract name.
4207
- */
4208
- name: string;
4209
- /**
4210
- * The contract symbol.
4211
- */
4212
- symbol: string;
4213
- /**
4214
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4215
- */
4216
- decimals: number;
4217
- /**
4218
- * The logo uri for the address.
4219
- */
4220
- logoUri?: string;
4221
- ercType: TeleporterRewardDetails.ercType;
4222
- /**
4223
- * The token price, if available.
4224
- */
4225
- price?: Money;
4226
- value: string;
4227
- };
4228
- declare namespace TeleporterRewardDetails {
4229
- enum ercType {
4230
- ERC_20 = "ERC-20"
4231
- }
4232
- }
4233
-
4234
- type DeliveredSourceNotIndexedTeleporterMessage = {
4235
- sourceBlockchainId: string;
4236
- destinationBlockchainId: string;
4237
- messageId: string;
4238
- from: string;
4239
- to: string;
4240
- data?: string;
4241
- messageExecuted: boolean;
4242
- receipts: Array<string>;
4243
- receiptDelivered: boolean;
4244
- rewardDetails: TeleporterRewardDetails;
4245
- destinationTransaction: TeleporterDestinationTransaction;
4246
- status: DeliveredSourceNotIndexedTeleporterMessage.status;
4247
- };
4248
- declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4249
- enum status {
4250
- DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4251
- }
4252
- }
4253
-
4254
- type TeleporterSourceTransaction = {
4255
- txHash: string;
4256
- timestamp: number;
4257
- gasSpent: string;
4258
- };
4259
-
4260
- type DeliveredTeleporterMessage = {
4261
- sourceBlockchainId: string;
4262
- destinationBlockchainId: string;
4263
- messageId: string;
4264
- from: string;
4265
- to: string;
4266
- data?: string;
4267
- messageExecuted: boolean;
4268
- receipts: Array<string>;
4269
- receiptDelivered: boolean;
4270
- rewardDetails: TeleporterRewardDetails;
4271
- sourceTransaction: TeleporterSourceTransaction;
4272
- destinationTransaction: TeleporterDestinationTransaction;
4273
- status: DeliveredTeleporterMessage.status;
4274
- };
4275
- declare namespace DeliveredTeleporterMessage {
4276
- enum status {
4277
- DELIVERED = "delivered"
4278
- }
4279
- }
4280
-
4281
- type NextPageToken = {
4282
- /**
4283
- * 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.
4284
- */
4285
- nextPageToken?: string;
4286
- };
4287
-
4288
- type PendingTeleporterMessage = {
4289
- sourceBlockchainId: string;
4290
- destinationBlockchainId: string;
4291
- messageId: string;
4292
- from: string;
4293
- to: string;
4294
- data?: string;
4295
- messageExecuted: boolean;
4296
- receipts: Array<string>;
4297
- receiptDelivered: boolean;
4298
- rewardDetails: TeleporterRewardDetails;
4299
- sourceTransaction: TeleporterSourceTransaction;
4300
- status: PendingTeleporterMessage.status;
4301
- };
4302
- declare namespace PendingTeleporterMessage {
4303
- enum status {
4304
- PENDING = "pending"
4305
- }
4306
- }
4307
-
4308
- declare class TeleporterService {
4309
- readonly httpRequest: BaseHttpRequest;
4310
- constructor(httpRequest: BaseHttpRequest);
4311
- /**
4312
- * Get a teleporter message
4313
- * Gets a teleporter message by source chain, destination chain, and message ID.
4314
- * @returns any
4315
- * @throws ApiError
4316
- */
4317
- getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
4318
- /**
4319
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4320
- */
4321
- sourceBlockchainId: any;
4322
- /**
4323
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4324
- */
4325
- destinationBlockchainId: any;
4326
- /**
4327
- * The message ID of the teleporter message.
4328
- */
4329
- messageId: any;
4330
- }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4331
- /**
4332
- * List teleporter messages
4333
- * Lists teleporter messages. Ordered by timestamp in descending order.
4334
- * @returns any
4335
- * @throws ApiError
4336
- */
4337
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4338
- /**
4339
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4340
- */
4341
- pageToken?: string;
4342
- /**
4343
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4344
- */
4345
- pageSize?: number;
4346
- /**
4347
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4348
- */
4349
- sourceBlockchainId?: any;
4350
- /**
4351
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4352
- */
4353
- destinationBlockchainId?: any;
4354
- /**
4355
- * The address of the recipient of the teleporter message.
4356
- */
4357
- to?: any;
4358
- /**
4359
- * The address of the sender of the teleporter message.
4360
- */
4361
- from?: any;
4362
- }): CancelablePromise<NextPageToken>;
4363
- }
4364
-
4365
4201
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4366
4202
  declare class Glacier {
4367
4203
  readonly default: DefaultService;
@@ -4380,7 +4216,6 @@ declare class Glacier {
4380
4216
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4381
4217
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4382
4218
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4383
- readonly teleporter: TeleporterService;
4384
4219
  readonly request: BaseHttpRequest;
4385
4220
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4386
4221
  }
@@ -4402,4 +4237,4 @@ declare class ApiError extends Error {
4402
4237
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4403
4238
  }
4404
4239
 
4405
- 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, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, 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, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TeleporterDestinationTransaction, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, 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 };
4240
+ 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 };
package/dist/index.js CHANGED
@@ -394,7 +394,13 @@ class DefaultService {
394
394
  generateSharedSecret() {
395
395
  return this.httpRequest.request({
396
396
  method: "POST",
397
- url: "/v1/webhooks:generateSharedSecret"
397
+ url: "/v1/webhooks:generateOrRotateSharedSecret"
398
+ });
399
+ }
400
+ getSharedSecret() {
401
+ return this.httpRequest.request({
402
+ method: "GET",
403
+ url: "/v1/webhooks:getSharedSecret"
398
404
  });
399
405
  }
400
406
  }
@@ -1472,48 +1478,6 @@ class PrimaryNetworkVerticesService {
1472
1478
  }
1473
1479
  }
1474
1480
 
1475
- class TeleporterService {
1476
- constructor(httpRequest) {
1477
- this.httpRequest = httpRequest;
1478
- }
1479
- getTeleporterMessage({
1480
- sourceBlockchainId,
1481
- destinationBlockchainId,
1482
- messageId
1483
- }) {
1484
- return this.httpRequest.request({
1485
- method: "GET",
1486
- url: "/v1/teleporter/messages:getMessage",
1487
- query: {
1488
- "sourceBlockchainId": sourceBlockchainId,
1489
- "destinationBlockchainId": destinationBlockchainId,
1490
- "messageId": messageId
1491
- }
1492
- });
1493
- }
1494
- listTeleporterMessages({
1495
- pageToken,
1496
- pageSize = 10,
1497
- sourceBlockchainId,
1498
- destinationBlockchainId,
1499
- to,
1500
- from
1501
- }) {
1502
- return this.httpRequest.request({
1503
- method: "GET",
1504
- url: "/v1/teleporter/messages",
1505
- query: {
1506
- "pageToken": pageToken,
1507
- "pageSize": pageSize,
1508
- "sourceBlockchainId": sourceBlockchainId,
1509
- "destinationBlockchainId": destinationBlockchainId,
1510
- "to": to,
1511
- "from": from
1512
- }
1513
- });
1514
- }
1515
- }
1516
-
1517
1481
  class Glacier {
1518
1482
  default;
1519
1483
  evmBalances;
@@ -1531,7 +1495,6 @@ class Glacier {
1531
1495
  primaryNetworkTransactions;
1532
1496
  primaryNetworkUtxOs;
1533
1497
  primaryNetworkVertices;
1534
- teleporter;
1535
1498
  request;
1536
1499
  constructor(config, HttpRequest = FetchHttpRequest) {
1537
1500
  this.request = new HttpRequest({
@@ -1561,7 +1524,6 @@ class Glacier {
1561
1524
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
1562
1525
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
1563
1526
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
1564
- this.teleporter = new TeleporterService(this.request);
1565
1527
  }
1566
1528
  }
1567
1529
 
@@ -1713,20 +1675,6 @@ var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
1713
1675
  return DelegationStatusType2;
1714
1676
  })(DelegationStatusType || {});
1715
1677
 
1716
- exports.DeliveredSourceNotIndexedTeleporterMessage = void 0;
1717
- ((DeliveredSourceNotIndexedTeleporterMessage2) => {
1718
- ((status2) => {
1719
- status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
1720
- })(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
1721
- })(exports.DeliveredSourceNotIndexedTeleporterMessage || (exports.DeliveredSourceNotIndexedTeleporterMessage = {}));
1722
-
1723
- exports.DeliveredTeleporterMessage = void 0;
1724
- ((DeliveredTeleporterMessage2) => {
1725
- ((status2) => {
1726
- status2["DELIVERED"] = "delivered";
1727
- })(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
1728
- })(exports.DeliveredTeleporterMessage || (exports.DeliveredTeleporterMessage = {}));
1729
-
1730
1678
  exports.Erc1155Contract = void 0;
1731
1679
  ((Erc1155Contract2) => {
1732
1680
  ((ercType2) => {
@@ -1885,13 +1833,6 @@ exports.PendingDelegatorDetails = void 0;
1885
1833
  })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
1886
1834
  })(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
1887
1835
 
1888
- exports.PendingTeleporterMessage = void 0;
1889
- ((PendingTeleporterMessage2) => {
1890
- ((status2) => {
1891
- status2["PENDING"] = "pending";
1892
- })(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
1893
- })(exports.PendingTeleporterMessage || (exports.PendingTeleporterMessage = {}));
1894
-
1895
1836
  exports.PendingValidatorDetails = void 0;
1896
1837
  ((PendingValidatorDetails2) => {
1897
1838
  ((validationStatus2) => {
@@ -1987,13 +1928,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1987
1928
  return SortOrder2;
1988
1929
  })(SortOrder || {});
1989
1930
 
1990
- exports.TeleporterRewardDetails = void 0;
1991
- ((TeleporterRewardDetails2) => {
1992
- ((ercType2) => {
1993
- ercType2["ERC_20"] = "ERC-20";
1994
- })(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
1995
- })(exports.TeleporterRewardDetails || (exports.TeleporterRewardDetails = {}));
1996
-
1997
1931
  var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
1998
1932
  TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
1999
1933
  TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
@@ -2125,7 +2059,6 @@ exports.PrimaryNetworkVerticesService = PrimaryNetworkVerticesService;
2125
2059
  exports.ResourceLinkType = ResourceLinkType;
2126
2060
  exports.RewardType = RewardType;
2127
2061
  exports.SortOrder = SortOrder;
2128
- exports.TeleporterService = TeleporterService;
2129
2062
  exports.TransactionMethodType = TransactionMethodType;
2130
2063
  exports.TransactionStatus = TransactionStatus;
2131
2064
  exports.UtxoType = UtxoType;
@@ -16,7 +16,6 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
16
16
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
17
17
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
18
18
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
19
- import { TeleporterService } from './services/TeleporterService.js';
20
19
 
21
20
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
22
21
  declare class Glacier {
@@ -36,7 +35,6 @@ declare class Glacier {
36
35
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
37
36
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
38
37
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
39
- readonly teleporter: TeleporterService;
40
38
  readonly request: BaseHttpRequest;
41
39
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
42
40
  }
@@ -15,7 +15,6 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
15
15
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
16
16
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
17
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
18
- import { TeleporterService } from './services/TeleporterService.js';
19
18
 
20
19
  class Glacier {
21
20
  default;
@@ -34,7 +33,6 @@ class Glacier {
34
33
  primaryNetworkTransactions;
35
34
  primaryNetworkUtxOs;
36
35
  primaryNetworkVertices;
37
- teleporter;
38
36
  request;
39
37
  constructor(config, HttpRequest = FetchHttpRequest) {
40
38
  this.request = new HttpRequest({
@@ -64,7 +62,6 @@ class Glacier {
64
62
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
65
63
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
66
64
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
67
- this.teleporter = new TeleporterService(this.request);
68
65
  }
69
66
  }
70
67
 
@@ -10,6 +10,8 @@ type WebhookResponse = {
10
10
  chainId: string;
11
11
  status: WebhookStatusType;
12
12
  createdAt: number;
13
+ name: string;
14
+ description: string;
13
15
  };
14
16
 
15
17
  export { WebhookResponse };
@@ -62,6 +62,13 @@ declare class DefaultService {
62
62
  * @throws ApiError
63
63
  */
64
64
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
+ /**
66
+ * Get a shared secret
67
+ * Get a previously generated shared secret.
68
+ * @returns SharedSecretsResponse
69
+ * @throws ApiError
70
+ */
71
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
72
  }
66
73
 
67
74
  export { DefaultService };
@@ -47,7 +47,13 @@ class DefaultService {
47
47
  generateSharedSecret() {
48
48
  return this.httpRequest.request({
49
49
  method: "POST",
50
- url: "/v1/webhooks:generateSharedSecret"
50
+ url: "/v1/webhooks:generateOrRotateSharedSecret"
51
+ });
52
+ }
53
+ getSharedSecret() {
54
+ return this.httpRequest.request({
55
+ method: "GET",
56
+ url: "/v1/webhooks:getSharedSecret"
51
57
  });
52
58
  }
53
59
  }