@avalabs/glacier-sdk 2.8.0-canary.df4401e.0 → 2.8.0-canary.e27220c.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 (34) hide show
  1. package/dist/index.d.ts +206 -16
  2. package/dist/index.js +102 -10
  3. package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
  4. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  5. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  6. package/esm/generated/models/EventType.d.ts +5 -0
  7. package/esm/generated/models/EventType.js +6 -0
  8. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  9. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  10. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  11. package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
  12. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  13. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  14. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  15. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  16. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  17. package/esm/generated/models/WebhookStatus.js +7 -0
  18. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  19. package/esm/generated/models/WebhookStatusType.js +7 -0
  20. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  21. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  22. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  23. package/esm/generated/models/XChainTransactionType.js +11 -0
  24. package/esm/generated/services/DefaultService.d.ts +53 -0
  25. package/esm/generated/services/DefaultService.js +42 -0
  26. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  27. package/esm/generated/services/NfTsService.d.ts +25 -0
  28. package/esm/generated/services/NfTsService.js +19 -0
  29. package/esm/generated/services/OperationsService.d.ts +11 -11
  30. package/esm/generated/services/OperationsService.js +10 -10
  31. package/esm/generated/services/PrimaryNetworkService.d.ts +2 -2
  32. package/esm/index.d.ts +10 -0
  33. package/esm/index.js +4 -0
  34. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -60,6 +60,60 @@ 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
+ topic0?: string;
69
+ };
70
+
71
+ declare enum EventType {
72
+ ADDRESS_ACTIVITY = "address_activity"
73
+ }
74
+
75
+ declare enum WebhookStatusType {
76
+ ACTIVE = "active",
77
+ INACTIVE = "inactive"
78
+ }
79
+
80
+ type WebhookResponse = {
81
+ id: string;
82
+ eventType: EventType;
83
+ metadata: AddressActivityMetadata;
84
+ url: string;
85
+ chainId: string;
86
+ status: WebhookStatusType;
87
+ createdAt: number;
88
+ };
89
+
90
+ type ListWebhooksResponse = {
91
+ /**
92
+ * 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.
93
+ */
94
+ nextPageToken?: string;
95
+ webhooks: Array<WebhookResponse>;
96
+ };
97
+
98
+ type RegisterWebhookRequest = {
99
+ url: string;
100
+ chainId: string;
101
+ /**
102
+ * The type of event for the webhook
103
+ */
104
+ eventType: EventType;
105
+ metadata: AddressActivityMetadata;
106
+ };
107
+
108
+ type SharedSecretsResponse = {
109
+ secret: string;
110
+ };
111
+
112
+ declare enum WebhookStatus {
113
+ ACTIVE = "active",
114
+ INACTIVE = "inactive"
115
+ }
116
+
63
117
  declare class DefaultService {
64
118
  readonly httpRequest: BaseHttpRequest;
65
119
  constructor(httpRequest: BaseHttpRequest);
@@ -68,6 +122,54 @@ declare class DefaultService {
68
122
  * @throws ApiError
69
123
  */
70
124
  mediaControllerUploadImage(): CancelablePromise<any>;
125
+ /**
126
+ * Register a webhook
127
+ * Registers a new webhook.
128
+ * @returns WebhookResponse
129
+ * @throws ApiError
130
+ */
131
+ registerWebhook({ requestBody, }: {
132
+ requestBody: RegisterWebhookRequest;
133
+ }): CancelablePromise<WebhookResponse>;
134
+ /**
135
+ * List webhooks
136
+ * Lists webhooks for the user.
137
+ * @returns ListWebhooksResponse
138
+ * @throws ApiError
139
+ */
140
+ listWebhooks({ pageSize, pageToken, status, }: {
141
+ /**
142
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
143
+ */
144
+ pageSize?: number;
145
+ /**
146
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
+ */
148
+ pageToken?: string;
149
+ /**
150
+ * 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.
151
+ */
152
+ status?: WebhookStatus;
153
+ }): CancelablePromise<ListWebhooksResponse>;
154
+ /**
155
+ * Deactivate a webhook
156
+ * Deactivates a webhook by ID.
157
+ * @returns WebhookResponse
158
+ * @throws ApiError
159
+ */
160
+ deactivateWebhook({ id, }: {
161
+ /**
162
+ * The webhook identifier.
163
+ */
164
+ id: string;
165
+ }): CancelablePromise<WebhookResponse>;
166
+ /**
167
+ * Generate a shared secret
168
+ * Generates a new shared secret.
169
+ * @returns SharedSecretsResponse
170
+ * @throws ApiError
171
+ */
172
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
71
173
  }
72
174
 
73
175
  declare enum CurrencyCode {
@@ -1637,7 +1739,13 @@ declare class EvmTransactionsService {
1637
1739
  * A wallet address.
1638
1740
  */
1639
1741
  address: string;
1742
+ /**
1743
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1744
+ */
1640
1745
  startBlock?: number;
1746
+ /**
1747
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1748
+ */
1641
1749
  endBlock?: number;
1642
1750
  /**
1643
1751
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1673,7 +1781,13 @@ declare class EvmTransactionsService {
1673
1781
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1674
1782
  */
1675
1783
  pageToken?: string;
1784
+ /**
1785
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1786
+ */
1676
1787
  startBlock?: number;
1788
+ /**
1789
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1790
+ */
1677
1791
  endBlock?: number;
1678
1792
  /**
1679
1793
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
@@ -1695,7 +1809,13 @@ declare class EvmTransactionsService {
1695
1809
  * A wallet address.
1696
1810
  */
1697
1811
  address: string;
1812
+ /**
1813
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1814
+ */
1698
1815
  startBlock?: number;
1816
+ /**
1817
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1818
+ */
1699
1819
  endBlock?: number;
1700
1820
  /**
1701
1821
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1721,7 +1841,13 @@ declare class EvmTransactionsService {
1721
1841
  * A wallet address.
1722
1842
  */
1723
1843
  address: string;
1844
+ /**
1845
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1846
+ */
1724
1847
  startBlock?: number;
1848
+ /**
1849
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1850
+ */
1725
1851
  endBlock?: number;
1726
1852
  /**
1727
1853
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1747,7 +1873,13 @@ declare class EvmTransactionsService {
1747
1873
  * A wallet address.
1748
1874
  */
1749
1875
  address: string;
1876
+ /**
1877
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1878
+ */
1750
1879
  startBlock?: number;
1880
+ /**
1881
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1882
+ */
1751
1883
  endBlock?: number;
1752
1884
  /**
1753
1885
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1773,7 +1905,13 @@ declare class EvmTransactionsService {
1773
1905
  * A wallet address.
1774
1906
  */
1775
1907
  address: string;
1908
+ /**
1909
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1910
+ */
1776
1911
  startBlock?: number;
1912
+ /**
1913
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1914
+ */
1777
1915
  endBlock?: number;
1778
1916
  /**
1779
1917
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1801,7 +1939,13 @@ declare class EvmTransactionsService {
1801
1939
  * A wallet address.
1802
1940
  */
1803
1941
  address: string;
1942
+ /**
1943
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1944
+ */
1804
1945
  startBlock?: number;
1946
+ /**
1947
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1948
+ */
1805
1949
  endBlock?: number;
1806
1950
  /**
1807
1951
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1886,6 +2030,14 @@ declare class HealthCheckService {
1886
2030
  }>;
1887
2031
  }
1888
2032
 
2033
+ type ListNftTokens = {
2034
+ /**
2035
+ * 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.
2036
+ */
2037
+ nextPageToken?: string;
2038
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2039
+ };
2040
+
1889
2041
  declare class NfTsService {
1890
2042
  readonly httpRequest: BaseHttpRequest;
1891
2043
  constructor(httpRequest: BaseHttpRequest);
@@ -1909,6 +2061,30 @@ declare class NfTsService {
1909
2061
  */
1910
2062
  tokenId: string;
1911
2063
  }): CancelablePromise<any>;
2064
+ /**
2065
+ * List tokens
2066
+ * Lists tokens for an NFT contract.
2067
+ * @returns ListNftTokens
2068
+ * @throws ApiError
2069
+ */
2070
+ listTokens({ chainId, address, pageSize, pageToken, }: {
2071
+ /**
2072
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2073
+ */
2074
+ chainId: string;
2075
+ /**
2076
+ * Contract address on the relevant chain.
2077
+ */
2078
+ address: string;
2079
+ /**
2080
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2081
+ */
2082
+ pageSize?: number;
2083
+ /**
2084
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
+ */
2086
+ pageToken?: string;
2087
+ }): CancelablePromise<ListNftTokens>;
1912
2088
  /**
1913
2089
  * Get token details
1914
2090
  * Gets token details for a specific token of an NFT contract.
@@ -2025,17 +2201,6 @@ type OperationStatusResponse = {
2025
2201
  declare class OperationsService {
2026
2202
  readonly httpRequest: BaseHttpRequest;
2027
2203
  constructor(httpRequest: BaseHttpRequest);
2028
- /**
2029
- * Create transaction export operation
2030
- * Trigger a transaction export operation with given parameters.
2031
- *
2032
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2033
- * @returns OperationStatusResponse
2034
- * @throws ApiError
2035
- */
2036
- postTransactionExportJob({ requestBody, }: {
2037
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2038
- }): CancelablePromise<OperationStatusResponse>;
2039
2204
  /**
2040
2205
  * Get operation
2041
2206
  * Gets operation details for the given operation id.
@@ -2048,6 +2213,17 @@ declare class OperationsService {
2048
2213
  */
2049
2214
  operationId: string;
2050
2215
  }): CancelablePromise<OperationStatusResponse>;
2216
+ /**
2217
+ * Create transaction export operation
2218
+ * Trigger a transaction export operation with given parameters.
2219
+ *
2220
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2221
+ * @returns OperationStatusResponse
2222
+ * @throws ApiError
2223
+ */
2224
+ postTransactionExportJob({ requestBody, }: {
2225
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2226
+ }): CancelablePromise<OperationStatusResponse>;
2051
2227
  }
2052
2228
 
2053
2229
  declare enum BlockchainIds {
@@ -2228,6 +2404,7 @@ type ValidatorHealthDetails = {
2228
2404
  };
2229
2405
 
2230
2406
  type ActiveValidatorDetails = {
2407
+ txHash: string;
2231
2408
  nodeId: string;
2232
2409
  subnetId: string;
2233
2410
  amountStaked: string;
@@ -2251,6 +2428,7 @@ declare namespace ActiveValidatorDetails {
2251
2428
  }
2252
2429
 
2253
2430
  type CompletedValidatorDetails = {
2431
+ txHash: string;
2254
2432
  nodeId: string;
2255
2433
  subnetId: string;
2256
2434
  amountStaked: string;
@@ -2268,6 +2446,7 @@ declare namespace CompletedValidatorDetails {
2268
2446
  }
2269
2447
 
2270
2448
  type PendingValidatorDetails = {
2449
+ txHash: string;
2271
2450
  nodeId: string;
2272
2451
  subnetId: string;
2273
2452
  amountStaked: string;
@@ -2460,11 +2639,11 @@ declare class PrimaryNetworkService {
2460
2639
  */
2461
2640
  pageToken?: string;
2462
2641
  /**
2463
- * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2642
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2464
2643
  */
2465
2644
  minTimeRemaining?: any;
2466
2645
  /**
2467
- * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2646
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2468
2647
  */
2469
2648
  maxTimeRemaining?: any;
2470
2649
  /**
@@ -2811,6 +2990,7 @@ type GetPrimaryNetworkBlockResponse = {
2811
2990
  txCount: number;
2812
2991
  transactions: Array<string>;
2813
2992
  blockSizeBytes: number;
2993
+ currentSupply?: string;
2814
2994
  proposerDetails?: ProposerDetails;
2815
2995
  };
2816
2996
 
@@ -2823,6 +3003,7 @@ type PrimaryNetworkBlock = {
2823
3003
  txCount: number;
2824
3004
  transactions: Array<string>;
2825
3005
  blockSizeBytes: number;
3006
+ currentSupply?: string;
2826
3007
  proposerDetails?: ProposerDetails;
2827
3008
  };
2828
3009
 
@@ -3408,6 +3589,15 @@ type ListPChainTransactionsResponse = {
3408
3589
  chainInfo: PrimaryNetworkChainInfo;
3409
3590
  };
3410
3591
 
3592
+ declare enum XChainTransactionType {
3593
+ BASE_TX = "BaseTx",
3594
+ CREATE_ASSET_TX = "CreateAssetTx",
3595
+ OPERATION_TX = "OperationTx",
3596
+ IMPORT_TX = "ImportTx",
3597
+ EXPORT_TX = "ExportTx",
3598
+ UNKNOWN = "UNKNOWN"
3599
+ }
3600
+
3411
3601
  type XChainLinearTransaction = {
3412
3602
  /**
3413
3603
  * Unique ID for this transaction.
@@ -3424,7 +3614,7 @@ type XChainLinearTransaction = {
3424
3614
  /**
3425
3615
  * Type of transaction.
3426
3616
  */
3427
- txType: string;
3617
+ txType: XChainTransactionType;
3428
3618
  /**
3429
3619
  * Hex encoded memo bytes for this transaction.
3430
3620
  */
@@ -3501,7 +3691,7 @@ type XChainNonLinearTransaction = {
3501
3691
  /**
3502
3692
  * Type of transaction.
3503
3693
  */
3504
- txType: string;
3694
+ txType: XChainTransactionType;
3505
3695
  /**
3506
3696
  * Hex encoded memo bytes for this transaction.
3507
3697
  */
@@ -3936,4 +4126,4 @@ declare class ApiError extends Error {
3936
4126
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3937
4127
  }
3938
4128
 
3939
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, 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, 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, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
4129
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, 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
@@ -355,6 +355,48 @@ class DefaultService {
355
355
  url: "/v1/media/uploadImage"
356
356
  });
357
357
  }
358
+ registerWebhook({
359
+ requestBody
360
+ }) {
361
+ return this.httpRequest.request({
362
+ method: "POST",
363
+ url: "/v1/webhooks",
364
+ body: requestBody,
365
+ mediaType: "application/json"
366
+ });
367
+ }
368
+ listWebhooks({
369
+ pageSize = 10,
370
+ pageToken,
371
+ status
372
+ }) {
373
+ return this.httpRequest.request({
374
+ method: "GET",
375
+ url: "/v1/webhooks",
376
+ query: {
377
+ "pageSize": pageSize,
378
+ "pageToken": pageToken,
379
+ "status": status
380
+ }
381
+ });
382
+ }
383
+ deactivateWebhook({
384
+ id
385
+ }) {
386
+ return this.httpRequest.request({
387
+ method: "DELETE",
388
+ url: "/v1/webhooks/{id}",
389
+ path: {
390
+ "id": id
391
+ }
392
+ });
393
+ }
394
+ generateSharedSecret() {
395
+ return this.httpRequest.request({
396
+ method: "POST",
397
+ url: "/v1/webhooks:generateSharedSecret"
398
+ });
399
+ }
358
400
  }
359
401
 
360
402
  class EvmBalancesService {
@@ -855,6 +897,25 @@ class NfTsService {
855
897
  }
856
898
  });
857
899
  }
900
+ listTokens({
901
+ chainId,
902
+ address,
903
+ pageSize = 10,
904
+ pageToken
905
+ }) {
906
+ return this.httpRequest.request({
907
+ method: "GET",
908
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
909
+ path: {
910
+ "chainId": chainId,
911
+ "address": address
912
+ },
913
+ query: {
914
+ "pageSize": pageSize,
915
+ "pageToken": pageToken
916
+ }
917
+ });
918
+ }
858
919
  getTokenDetails({
859
920
  chainId,
860
921
  address,
@@ -876,16 +937,6 @@ class OperationsService {
876
937
  constructor(httpRequest) {
877
938
  this.httpRequest = httpRequest;
878
939
  }
879
- postTransactionExportJob({
880
- requestBody
881
- }) {
882
- return this.httpRequest.request({
883
- method: "POST",
884
- url: "/v1/operations/transactions:export",
885
- body: requestBody,
886
- mediaType: "application/json"
887
- });
888
- }
889
940
  getOperationResult({
890
941
  operationId
891
942
  }) {
@@ -897,6 +948,16 @@ class OperationsService {
897
948
  }
898
949
  });
899
950
  }
951
+ postTransactionExportJob({
952
+ requestBody
953
+ }) {
954
+ return this.httpRequest.request({
955
+ method: "POST",
956
+ url: "/v1/operations/transactions:export",
957
+ body: requestBody,
958
+ mediaType: "application/json"
959
+ });
960
+ }
900
961
  }
901
962
 
902
963
  class PrimaryNetworkService {
@@ -1669,6 +1730,11 @@ exports.Erc721TokenBalance = void 0;
1669
1730
  })(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
1670
1731
  })(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
1671
1732
 
1733
+ var EventType = /* @__PURE__ */ ((EventType2) => {
1734
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
1735
+ return EventType2;
1736
+ })(EventType || {});
1737
+
1672
1738
  var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
1673
1739
  InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
1674
1740
  InternalTransactionOpCall2["CALL"] = "CALL";
@@ -1873,6 +1939,18 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
1873
1939
  return VmName2;
1874
1940
  })(VmName || {});
1875
1941
 
1942
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
1943
+ WebhookStatus2["ACTIVE"] = "active";
1944
+ WebhookStatus2["INACTIVE"] = "inactive";
1945
+ return WebhookStatus2;
1946
+ })(WebhookStatus || {});
1947
+
1948
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
1949
+ WebhookStatusType2["ACTIVE"] = "active";
1950
+ WebhookStatusType2["INACTIVE"] = "inactive";
1951
+ return WebhookStatusType2;
1952
+ })(WebhookStatusType || {});
1953
+
1876
1954
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
1877
1955
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1878
1956
  XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
@@ -1896,6 +1974,16 @@ exports.XChainNonLinearTransaction = void 0;
1896
1974
  })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
1897
1975
  })(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
1898
1976
 
1977
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
1978
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
1979
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
1980
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
1981
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
1982
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
1983
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1984
+ return XChainTransactionType2;
1985
+ })(XChainTransactionType || {});
1986
+
1899
1987
  exports.ApiError = ApiError;
1900
1988
  exports.BaseHttpRequest = BaseHttpRequest;
1901
1989
  exports.BlockchainId = BlockchainId;
@@ -1906,6 +1994,7 @@ exports.ChainStatus = ChainStatus;
1906
1994
  exports.CurrencyCode = CurrencyCode;
1907
1995
  exports.DefaultService = DefaultService;
1908
1996
  exports.DelegationStatusType = DelegationStatusType;
1997
+ exports.EventType = EventType;
1909
1998
  exports.EvmBalancesService = EvmBalancesService;
1910
1999
  exports.EvmBlocksService = EvmBlocksService;
1911
2000
  exports.EvmChainsService = EvmChainsService;
@@ -1943,4 +2032,7 @@ exports.TransactionStatus = TransactionStatus;
1943
2032
  exports.UtxoType = UtxoType;
1944
2033
  exports.ValidationStatusType = ValidationStatusType;
1945
2034
  exports.VmName = VmName;
2035
+ exports.WebhookStatus = WebhookStatus;
2036
+ exports.WebhookStatusType = WebhookStatusType;
1946
2037
  exports.XChainId = XChainId;
2038
+ exports.XChainTransactionType = XChainTransactionType;
@@ -2,6 +2,7 @@ import { Rewards } from './Rewards.js';
2
2
  import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
3
3
 
4
4
  type ActiveValidatorDetails = {
5
+ txHash: string;
5
6
  nodeId: string;
6
7
  subnetId: string;
7
8
  amountStaked: string;
@@ -0,0 +1,9 @@
1
+ type AddressActivityMetadata = {
2
+ /**
3
+ * Ethereum address for the address_activity event type
4
+ */
5
+ address: string;
6
+ topic0?: string;
7
+ };
8
+
9
+ export { AddressActivityMetadata };
@@ -1,6 +1,7 @@
1
1
  import { Rewards } from './Rewards.js';
2
2
 
3
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
4
5
  nodeId: string;
5
6
  subnetId: string;
6
7
  amountStaked: string;
@@ -0,0 +1,5 @@
1
+ declare enum EventType {
2
+ ADDRESS_ACTIVITY = "address_activity"
3
+ }
4
+
5
+ export { EventType };
@@ -0,0 +1,6 @@
1
+ var EventType = /* @__PURE__ */ ((EventType2) => {
2
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
3
+ return EventType2;
4
+ })(EventType || {});
5
+
6
+ export { EventType };
@@ -9,6 +9,7 @@ type GetPrimaryNetworkBlockResponse = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
+ currentSupply?: string;
12
13
  proposerDetails?: ProposerDetails;
13
14
  };
14
15
 
@@ -0,0 +1,12 @@
1
+ import { Erc1155Token } from './Erc1155Token.js';
2
+ import { Erc721Token } from './Erc721Token.js';
3
+
4
+ type ListNftTokens = {
5
+ /**
6
+ * 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.
7
+ */
8
+ nextPageToken?: string;
9
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
10
+ };
11
+
12
+ export { ListNftTokens };
@@ -0,0 +1,11 @@
1
+ import { WebhookResponse } from './WebhookResponse.js';
2
+
3
+ type ListWebhooksResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ webhooks: Array<WebhookResponse>;
9
+ };
10
+
11
+ export { ListWebhooksResponse };
@@ -1,4 +1,5 @@
1
1
  type PendingValidatorDetails = {
2
+ txHash: string;
2
3
  nodeId: string;
3
4
  subnetId: string;
4
5
  amountStaked: string;
@@ -9,6 +9,7 @@ type PrimaryNetworkBlock = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
+ currentSupply?: string;
12
13
  proposerDetails?: ProposerDetails;
13
14
  };
14
15
 
@@ -0,0 +1,14 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+
4
+ type RegisterWebhookRequest = {
5
+ url: string;
6
+ chainId: string;
7
+ /**
8
+ * The type of event for the webhook
9
+ */
10
+ eventType: EventType;
11
+ metadata: AddressActivityMetadata;
12
+ };
13
+
14
+ export { RegisterWebhookRequest };
@@ -0,0 +1,5 @@
1
+ type SharedSecretsResponse = {
2
+ secret: string;
3
+ };
4
+
5
+ export { SharedSecretsResponse };
@@ -0,0 +1,15 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type WebhookResponse = {
6
+ id: string;
7
+ eventType: EventType;
8
+ metadata: AddressActivityMetadata;
9
+ url: string;
10
+ chainId: string;
11
+ status: WebhookStatusType;
12
+ createdAt: number;
13
+ };
14
+
15
+ export { WebhookResponse };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatus {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatus };
@@ -0,0 +1,7 @@
1
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
2
+ WebhookStatus2["ACTIVE"] = "active";
3
+ WebhookStatus2["INACTIVE"] = "inactive";
4
+ return WebhookStatus2;
5
+ })(WebhookStatus || {});
6
+
7
+ export { WebhookStatus };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatusType {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatusType };
@@ -0,0 +1,7 @@
1
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
2
+ WebhookStatusType2["ACTIVE"] = "active";
3
+ WebhookStatusType2["INACTIVE"] = "inactive";
4
+ return WebhookStatusType2;
5
+ })(WebhookStatusType || {});
6
+
7
+ export { WebhookStatusType };
@@ -1,6 +1,7 @@
1
1
  import { Asset } from './Asset.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
+ import { XChainTransactionType } from './XChainTransactionType.js';
4
5
 
5
6
  type XChainLinearTransaction = {
6
7
  /**
@@ -18,7 +19,7 @@ type XChainLinearTransaction = {
18
19
  /**
19
20
  * Type of transaction.
20
21
  */
21
- txType: string;
22
+ txType: XChainTransactionType;
22
23
  /**
23
24
  * Hex encoded memo bytes for this transaction.
24
25
  */
@@ -2,6 +2,7 @@ import { Asset } from './Asset.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
5
+ import { XChainTransactionType } from './XChainTransactionType.js';
5
6
 
6
7
  type XChainNonLinearTransaction = {
7
8
  /**
@@ -19,7 +20,7 @@ type XChainNonLinearTransaction = {
19
20
  /**
20
21
  * Type of transaction.
21
22
  */
22
- txType: string;
23
+ txType: XChainTransactionType;
23
24
  /**
24
25
  * Hex encoded memo bytes for this transaction.
25
26
  */
@@ -0,0 +1,10 @@
1
+ declare enum XChainTransactionType {
2
+ BASE_TX = "BaseTx",
3
+ CREATE_ASSET_TX = "CreateAssetTx",
4
+ OPERATION_TX = "OperationTx",
5
+ IMPORT_TX = "ImportTx",
6
+ EXPORT_TX = "ExportTx",
7
+ UNKNOWN = "UNKNOWN"
8
+ }
9
+
10
+ export { XChainTransactionType };
@@ -0,0 +1,11 @@
1
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
2
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
3
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
4
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
5
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
6
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
7
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
8
+ return XChainTransactionType2;
9
+ })(XChainTransactionType || {});
10
+
11
+ export { XChainTransactionType };
@@ -1,3 +1,8 @@
1
+ import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
+ import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
+ import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
4
+ import { WebhookResponse } from '../models/WebhookResponse.js';
5
+ import { WebhookStatus } from '../models/WebhookStatus.js';
1
6
  import { CancelablePromise } from '../core/CancelablePromise.js';
2
7
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
3
8
 
@@ -9,6 +14,54 @@ declare class DefaultService {
9
14
  * @throws ApiError
10
15
  */
11
16
  mediaControllerUploadImage(): CancelablePromise<any>;
17
+ /**
18
+ * Register a webhook
19
+ * Registers a new webhook.
20
+ * @returns WebhookResponse
21
+ * @throws ApiError
22
+ */
23
+ registerWebhook({ requestBody, }: {
24
+ requestBody: RegisterWebhookRequest;
25
+ }): CancelablePromise<WebhookResponse>;
26
+ /**
27
+ * List webhooks
28
+ * Lists webhooks for the user.
29
+ * @returns ListWebhooksResponse
30
+ * @throws ApiError
31
+ */
32
+ listWebhooks({ pageSize, pageToken, status, }: {
33
+ /**
34
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
35
+ */
36
+ pageSize?: number;
37
+ /**
38
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
39
+ */
40
+ pageToken?: string;
41
+ /**
42
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
43
+ */
44
+ status?: WebhookStatus;
45
+ }): CancelablePromise<ListWebhooksResponse>;
46
+ /**
47
+ * Deactivate a webhook
48
+ * Deactivates a webhook by ID.
49
+ * @returns WebhookResponse
50
+ * @throws ApiError
51
+ */
52
+ deactivateWebhook({ id, }: {
53
+ /**
54
+ * The webhook identifier.
55
+ */
56
+ id: string;
57
+ }): CancelablePromise<WebhookResponse>;
58
+ /**
59
+ * Generate a shared secret
60
+ * Generates a new shared secret.
61
+ * @returns SharedSecretsResponse
62
+ * @throws ApiError
63
+ */
64
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
12
65
  }
13
66
 
14
67
  export { DefaultService };
@@ -8,6 +8,48 @@ class DefaultService {
8
8
  url: "/v1/media/uploadImage"
9
9
  });
10
10
  }
11
+ registerWebhook({
12
+ requestBody
13
+ }) {
14
+ return this.httpRequest.request({
15
+ method: "POST",
16
+ url: "/v1/webhooks",
17
+ body: requestBody,
18
+ mediaType: "application/json"
19
+ });
20
+ }
21
+ listWebhooks({
22
+ pageSize = 10,
23
+ pageToken,
24
+ status
25
+ }) {
26
+ return this.httpRequest.request({
27
+ method: "GET",
28
+ url: "/v1/webhooks",
29
+ query: {
30
+ "pageSize": pageSize,
31
+ "pageToken": pageToken,
32
+ "status": status
33
+ }
34
+ });
35
+ }
36
+ deactivateWebhook({
37
+ id
38
+ }) {
39
+ return this.httpRequest.request({
40
+ method: "DELETE",
41
+ url: "/v1/webhooks/{id}",
42
+ path: {
43
+ "id": id
44
+ }
45
+ });
46
+ }
47
+ generateSharedSecret() {
48
+ return this.httpRequest.request({
49
+ method: "POST",
50
+ url: "/v1/webhooks:generateSharedSecret"
51
+ });
52
+ }
11
53
  }
12
54
 
13
55
  export { DefaultService };
@@ -75,7 +75,13 @@ declare class EvmTransactionsService {
75
75
  * A wallet address.
76
76
  */
77
77
  address: string;
78
+ /**
79
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
80
+ */
78
81
  startBlock?: number;
82
+ /**
83
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
84
+ */
79
85
  endBlock?: number;
80
86
  /**
81
87
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -111,7 +117,13 @@ declare class EvmTransactionsService {
111
117
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
112
118
  */
113
119
  pageToken?: string;
120
+ /**
121
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
122
+ */
114
123
  startBlock?: number;
124
+ /**
125
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
126
+ */
115
127
  endBlock?: number;
116
128
  /**
117
129
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
@@ -133,7 +145,13 @@ declare class EvmTransactionsService {
133
145
  * A wallet address.
134
146
  */
135
147
  address: string;
148
+ /**
149
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
150
+ */
136
151
  startBlock?: number;
152
+ /**
153
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
154
+ */
137
155
  endBlock?: number;
138
156
  /**
139
157
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -159,7 +177,13 @@ declare class EvmTransactionsService {
159
177
  * A wallet address.
160
178
  */
161
179
  address: string;
180
+ /**
181
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
182
+ */
162
183
  startBlock?: number;
184
+ /**
185
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
186
+ */
163
187
  endBlock?: number;
164
188
  /**
165
189
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -185,7 +209,13 @@ declare class EvmTransactionsService {
185
209
  * A wallet address.
186
210
  */
187
211
  address: string;
212
+ /**
213
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
214
+ */
188
215
  startBlock?: number;
216
+ /**
217
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
218
+ */
189
219
  endBlock?: number;
190
220
  /**
191
221
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -211,7 +241,13 @@ declare class EvmTransactionsService {
211
241
  * A wallet address.
212
242
  */
213
243
  address: string;
244
+ /**
245
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
246
+ */
214
247
  startBlock?: number;
248
+ /**
249
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
250
+ */
215
251
  endBlock?: number;
216
252
  /**
217
253
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -239,7 +275,13 @@ declare class EvmTransactionsService {
239
275
  * A wallet address.
240
276
  */
241
277
  address: string;
278
+ /**
279
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
280
+ */
242
281
  startBlock?: number;
282
+ /**
283
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
284
+ */
243
285
  endBlock?: number;
244
286
  /**
245
287
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1,5 +1,6 @@
1
1
  import { Erc1155Token } from '../models/Erc1155Token.js';
2
2
  import { Erc721Token } from '../models/Erc721Token.js';
3
+ import { ListNftTokens } from '../models/ListNftTokens.js';
3
4
  import { CancelablePromise } from '../core/CancelablePromise.js';
4
5
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
6
 
@@ -26,6 +27,30 @@ declare class NfTsService {
26
27
  */
27
28
  tokenId: string;
28
29
  }): CancelablePromise<any>;
30
+ /**
31
+ * List tokens
32
+ * Lists tokens for an NFT contract.
33
+ * @returns ListNftTokens
34
+ * @throws ApiError
35
+ */
36
+ listTokens({ chainId, address, pageSize, pageToken, }: {
37
+ /**
38
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
39
+ */
40
+ chainId: string;
41
+ /**
42
+ * Contract address on the relevant chain.
43
+ */
44
+ address: string;
45
+ /**
46
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
47
+ */
48
+ pageSize?: number;
49
+ /**
50
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
51
+ */
52
+ pageToken?: string;
53
+ }): CancelablePromise<ListNftTokens>;
29
54
  /**
30
55
  * Get token details
31
56
  * Gets token details for a specific token of an NFT contract.
@@ -17,6 +17,25 @@ class NfTsService {
17
17
  }
18
18
  });
19
19
  }
20
+ listTokens({
21
+ chainId,
22
+ address,
23
+ pageSize = 10,
24
+ pageToken
25
+ }) {
26
+ return this.httpRequest.request({
27
+ method: "GET",
28
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
29
+ path: {
30
+ "chainId": chainId,
31
+ "address": address
32
+ },
33
+ query: {
34
+ "pageSize": pageSize,
35
+ "pageToken": pageToken
36
+ }
37
+ });
38
+ }
20
39
  getTokenDetails({
21
40
  chainId,
22
41
  address,
@@ -7,17 +7,6 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
7
  declare class OperationsService {
8
8
  readonly httpRequest: BaseHttpRequest;
9
9
  constructor(httpRequest: BaseHttpRequest);
10
- /**
11
- * Create transaction export operation
12
- * Trigger a transaction export operation with given parameters.
13
- *
14
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
15
- * @returns OperationStatusResponse
16
- * @throws ApiError
17
- */
18
- postTransactionExportJob({ requestBody, }: {
19
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
20
- }): CancelablePromise<OperationStatusResponse>;
21
10
  /**
22
11
  * Get operation
23
12
  * Gets operation details for the given operation id.
@@ -30,6 +19,17 @@ declare class OperationsService {
30
19
  */
31
20
  operationId: string;
32
21
  }): CancelablePromise<OperationStatusResponse>;
22
+ /**
23
+ * Create transaction export operation
24
+ * Trigger a transaction export operation with given parameters.
25
+ *
26
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
27
+ * @returns OperationStatusResponse
28
+ * @throws ApiError
29
+ */
30
+ postTransactionExportJob({ requestBody, }: {
31
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
32
+ }): CancelablePromise<OperationStatusResponse>;
33
33
  }
34
34
 
35
35
  export { OperationsService };
@@ -2,16 +2,6 @@ class OperationsService {
2
2
  constructor(httpRequest) {
3
3
  this.httpRequest = httpRequest;
4
4
  }
5
- postTransactionExportJob({
6
- requestBody
7
- }) {
8
- return this.httpRequest.request({
9
- method: "POST",
10
- url: "/v1/operations/transactions:export",
11
- body: requestBody,
12
- mediaType: "application/json"
13
- });
14
- }
15
5
  getOperationResult({
16
6
  operationId
17
7
  }) {
@@ -23,6 +13,16 @@ class OperationsService {
23
13
  }
24
14
  });
25
15
  }
16
+ postTransactionExportJob({
17
+ requestBody
18
+ }) {
19
+ return this.httpRequest.request({
20
+ method: "POST",
21
+ url: "/v1/operations/transactions:export",
22
+ body: requestBody,
23
+ mediaType: "application/json"
24
+ });
25
+ }
26
26
  }
27
27
 
28
28
  export { OperationsService };
@@ -132,11 +132,11 @@ declare class PrimaryNetworkService {
132
132
  */
133
133
  pageToken?: string;
134
134
  /**
135
- * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
135
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
136
136
  */
137
137
  minTimeRemaining?: any;
138
138
  /**
139
- * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
139
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
140
140
  */
141
141
  maxTimeRemaining?: any;
142
142
  /**
package/esm/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { CancelError, CancelablePromise } from './generated/core/CancelablePromi
5
5
  export { OpenAPI, OpenAPIConfig } from './generated/core/OpenAPI.js';
6
6
  export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
7
7
  export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
8
+ export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
8
9
  export { Asset } from './generated/models/Asset.js';
9
10
  export { Blockchain } from './generated/models/Blockchain.js';
10
11
  export { BlockchainId } from './generated/models/BlockchainId.js';
@@ -48,6 +49,7 @@ export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
48
49
  export { Erc721TokenMetadata } from './generated/models/Erc721TokenMetadata.js';
49
50
  export { Erc721Transfer } from './generated/models/Erc721Transfer.js';
50
51
  export { Erc721TransferDetails } from './generated/models/Erc721TransferDetails.js';
52
+ export { EventType } from './generated/models/EventType.js';
51
53
  export { EvmBlock } from './generated/models/EvmBlock.js';
52
54
  export { EVMInput } from './generated/models/EVMInput.js';
53
55
  export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
@@ -81,6 +83,7 @@ export { ListEvmBlocksResponse } from './generated/models/ListEvmBlocksResponse.
81
83
  export { ListHistoricalRewardsResponse } from './generated/models/ListHistoricalRewardsResponse.js';
82
84
  export { ListInternalTransactionsResponse } from './generated/models/ListInternalTransactionsResponse.js';
83
85
  export { ListNativeTransactionsResponse } from './generated/models/ListNativeTransactionsResponse.js';
86
+ export { ListNftTokens } from './generated/models/ListNftTokens.js';
84
87
  export { ListPChainBalancesResponse } from './generated/models/ListPChainBalancesResponse.js';
85
88
  export { ListPChainTransactionsResponse } from './generated/models/ListPChainTransactionsResponse.js';
86
89
  export { ListPChainUtxosResponse } from './generated/models/ListPChainUtxosResponse.js';
@@ -91,6 +94,7 @@ export { ListTransactionDetailsResponse } from './generated/models/ListTransacti
91
94
  export { ListTransfersResponse } from './generated/models/ListTransfersResponse.js';
92
95
  export { ListUtxosResponse } from './generated/models/ListUtxosResponse.js';
93
96
  export { ListValidatorDetailsResponse } from './generated/models/ListValidatorDetailsResponse.js';
97
+ export { ListWebhooksResponse } from './generated/models/ListWebhooksResponse.js';
94
98
  export { ListXChainBalancesResponse } from './generated/models/ListXChainBalancesResponse.js';
95
99
  export { ListXChainTransactionsResponse } from './generated/models/ListXChainTransactionsResponse.js';
96
100
  export { ListXChainVerticesResponse } from './generated/models/ListXChainVerticesResponse.js';
@@ -125,11 +129,13 @@ export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainN
125
129
  export { PrimaryNetworkOptions } from './generated/models/PrimaryNetworkOptions.js';
126
130
  export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js';
127
131
  export { ProposerDetails } from './generated/models/ProposerDetails.js';
132
+ export { RegisterWebhookRequest } from './generated/models/RegisterWebhookRequest.js';
128
133
  export { ResourceLink } from './generated/models/ResourceLink.js';
129
134
  export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
130
135
  export { Rewards } from './generated/models/Rewards.js';
131
136
  export { RewardType } from './generated/models/RewardType.js';
132
137
  export { RichAddress } from './generated/models/RichAddress.js';
138
+ export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
133
139
  export { SortOrder } from './generated/models/SortOrder.js';
134
140
  export { StakingDistribution } from './generated/models/StakingDistribution.js';
135
141
  export { Subnet } from './generated/models/Subnet.js';
@@ -148,6 +154,9 @@ export { ValidationStatusType } from './generated/models/ValidationStatusType.js
148
154
  export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
149
155
  export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
150
156
  export { VmName } from './generated/models/VmName.js';
157
+ export { WebhookResponse } from './generated/models/WebhookResponse.js';
158
+ export { WebhookStatus } from './generated/models/WebhookStatus.js';
159
+ export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
151
160
  export { XChainAssetBalance } from './generated/models/XChainAssetBalance.js';
152
161
  export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
153
162
  export { XChainBalances } from './generated/models/XChainBalances.js';
@@ -155,6 +164,7 @@ export { XChainId } from './generated/models/XChainId.js';
155
164
  export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
156
165
  export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
157
166
  export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
167
+ export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
158
168
  export { XChainVertex } from './generated/models/XChainVertex.js';
159
169
  export { DefaultService } from './generated/services/DefaultService.js';
160
170
  export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
package/esm/index.js CHANGED
@@ -29,6 +29,7 @@ export { Erc20TokenBalance } from './generated/models/Erc20TokenBalance.js';
29
29
  export { Erc721Contract } from './generated/models/Erc721Contract.js';
30
30
  export { Erc721Token } from './generated/models/Erc721Token.js';
31
31
  export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
32
+ export { EventType } from './generated/models/EventType.js';
32
33
  export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js';
33
34
  export { Network } from './generated/models/Network.js';
34
35
  export { NetworkType } from './generated/models/NetworkType.js';
@@ -52,9 +53,12 @@ export { UnknownContract } from './generated/models/UnknownContract.js';
52
53
  export { UtxoType } from './generated/models/UtxoType.js';
53
54
  export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
54
55
  export { VmName } from './generated/models/VmName.js';
56
+ export { WebhookStatus } from './generated/models/WebhookStatus.js';
57
+ export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
55
58
  export { XChainId } from './generated/models/XChainId.js';
56
59
  export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
57
60
  export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
61
+ export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
58
62
  export { DefaultService } from './generated/services/DefaultService.js';
59
63
  export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
60
64
  export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-canary.df4401e.0+df4401e",
3
+ "version": "2.8.0-canary.e27220c.0+e27220c",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "df4401e5dbc454dba4e5bed84d3e7326bdc7ec2a"
32
+ "gitHead": "e27220c645ab110553b1e1eb4b1a356f40247456"
33
33
  }