@avalabs/glacier-sdk 2.8.0-canary.6e0a272.0 → 2.8.0-canary.7233ef7.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.
- package/dist/index.d.ts +158 -3
- package/dist/index.js +73 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +53 -0
- package/esm/generated/services/DefaultService.js +42 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/index.d.ts +9 -0
- package/esm/index.js +4 -0
- 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.
|
|
@@ -2846,6 +2990,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2846
2990
|
txCount: number;
|
|
2847
2991
|
transactions: Array<string>;
|
|
2848
2992
|
blockSizeBytes: number;
|
|
2993
|
+
currentSupply?: string;
|
|
2849
2994
|
proposerDetails?: ProposerDetails;
|
|
2850
2995
|
};
|
|
2851
2996
|
|
|
@@ -2858,6 +3003,7 @@ type PrimaryNetworkBlock = {
|
|
|
2858
3003
|
txCount: number;
|
|
2859
3004
|
transactions: Array<string>;
|
|
2860
3005
|
blockSizeBytes: number;
|
|
3006
|
+
currentSupply?: string;
|
|
2861
3007
|
proposerDetails?: ProposerDetails;
|
|
2862
3008
|
};
|
|
2863
3009
|
|
|
@@ -3443,6 +3589,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3443
3589
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3444
3590
|
};
|
|
3445
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
|
+
|
|
3446
3601
|
type XChainLinearTransaction = {
|
|
3447
3602
|
/**
|
|
3448
3603
|
* Unique ID for this transaction.
|
|
@@ -3459,7 +3614,7 @@ type XChainLinearTransaction = {
|
|
|
3459
3614
|
/**
|
|
3460
3615
|
* Type of transaction.
|
|
3461
3616
|
*/
|
|
3462
|
-
txType:
|
|
3617
|
+
txType: XChainTransactionType;
|
|
3463
3618
|
/**
|
|
3464
3619
|
* Hex encoded memo bytes for this transaction.
|
|
3465
3620
|
*/
|
|
@@ -3536,7 +3691,7 @@ type XChainNonLinearTransaction = {
|
|
|
3536
3691
|
/**
|
|
3537
3692
|
* Type of transaction.
|
|
3538
3693
|
*/
|
|
3539
|
-
txType:
|
|
3694
|
+
txType: XChainTransactionType;
|
|
3540
3695
|
/**
|
|
3541
3696
|
* Hex encoded memo bytes for this transaction.
|
|
3542
3697
|
*/
|
|
@@ -3971,4 +4126,4 @@ declare class ApiError extends Error {
|
|
|
3971
4126
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3972
4127
|
}
|
|
3973
4128
|
|
|
3974
|
-
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, ListNftTokens, 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 {
|
|
@@ -1688,6 +1730,11 @@ exports.Erc721TokenBalance = void 0;
|
|
|
1688
1730
|
})(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
|
|
1689
1731
|
})(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
|
|
1690
1732
|
|
|
1733
|
+
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
1734
|
+
EventType2["ADDRESS_ACTIVITY"] = "address_activity";
|
|
1735
|
+
return EventType2;
|
|
1736
|
+
})(EventType || {});
|
|
1737
|
+
|
|
1691
1738
|
var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
|
|
1692
1739
|
InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
|
|
1693
1740
|
InternalTransactionOpCall2["CALL"] = "CALL";
|
|
@@ -1892,6 +1939,18 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
|
|
|
1892
1939
|
return VmName2;
|
|
1893
1940
|
})(VmName || {});
|
|
1894
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
|
+
|
|
1895
1954
|
var XChainId = /* @__PURE__ */ ((XChainId2) => {
|
|
1896
1955
|
XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
1897
1956
|
XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
|
|
@@ -1915,6 +1974,16 @@ exports.XChainNonLinearTransaction = void 0;
|
|
|
1915
1974
|
})(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
|
|
1916
1975
|
})(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
|
|
1917
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
|
+
|
|
1918
1987
|
exports.ApiError = ApiError;
|
|
1919
1988
|
exports.BaseHttpRequest = BaseHttpRequest;
|
|
1920
1989
|
exports.BlockchainId = BlockchainId;
|
|
@@ -1925,6 +1994,7 @@ exports.ChainStatus = ChainStatus;
|
|
|
1925
1994
|
exports.CurrencyCode = CurrencyCode;
|
|
1926
1995
|
exports.DefaultService = DefaultService;
|
|
1927
1996
|
exports.DelegationStatusType = DelegationStatusType;
|
|
1997
|
+
exports.EventType = EventType;
|
|
1928
1998
|
exports.EvmBalancesService = EvmBalancesService;
|
|
1929
1999
|
exports.EvmBlocksService = EvmBlocksService;
|
|
1930
2000
|
exports.EvmChainsService = EvmChainsService;
|
|
@@ -1962,4 +2032,7 @@ exports.TransactionStatus = TransactionStatus;
|
|
|
1962
2032
|
exports.UtxoType = UtxoType;
|
|
1963
2033
|
exports.ValidationStatusType = ValidationStatusType;
|
|
1964
2034
|
exports.VmName = VmName;
|
|
2035
|
+
exports.WebhookStatus = WebhookStatus;
|
|
2036
|
+
exports.WebhookStatusType = WebhookStatusType;
|
|
1965
2037
|
exports.XChainId = XChainId;
|
|
2038
|
+
exports.XChainTransactionType = XChainTransactionType;
|
|
@@ -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 };
|
|
@@ -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,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 };
|
|
@@ -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:
|
|
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:
|
|
23
|
+
txType: XChainTransactionType;
|
|
23
24
|
/**
|
|
24
25
|
* Hex encoded memo bytes for this transaction.
|
|
25
26
|
*/
|
|
@@ -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.
|
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';
|
|
@@ -92,6 +94,7 @@ export { ListTransactionDetailsResponse } from './generated/models/ListTransacti
|
|
|
92
94
|
export { ListTransfersResponse } from './generated/models/ListTransfersResponse.js';
|
|
93
95
|
export { ListUtxosResponse } from './generated/models/ListUtxosResponse.js';
|
|
94
96
|
export { ListValidatorDetailsResponse } from './generated/models/ListValidatorDetailsResponse.js';
|
|
97
|
+
export { ListWebhooksResponse } from './generated/models/ListWebhooksResponse.js';
|
|
95
98
|
export { ListXChainBalancesResponse } from './generated/models/ListXChainBalancesResponse.js';
|
|
96
99
|
export { ListXChainTransactionsResponse } from './generated/models/ListXChainTransactionsResponse.js';
|
|
97
100
|
export { ListXChainVerticesResponse } from './generated/models/ListXChainVerticesResponse.js';
|
|
@@ -126,11 +129,13 @@ export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainN
|
|
|
126
129
|
export { PrimaryNetworkOptions } from './generated/models/PrimaryNetworkOptions.js';
|
|
127
130
|
export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js';
|
|
128
131
|
export { ProposerDetails } from './generated/models/ProposerDetails.js';
|
|
132
|
+
export { RegisterWebhookRequest } from './generated/models/RegisterWebhookRequest.js';
|
|
129
133
|
export { ResourceLink } from './generated/models/ResourceLink.js';
|
|
130
134
|
export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
131
135
|
export { Rewards } from './generated/models/Rewards.js';
|
|
132
136
|
export { RewardType } from './generated/models/RewardType.js';
|
|
133
137
|
export { RichAddress } from './generated/models/RichAddress.js';
|
|
138
|
+
export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
|
|
134
139
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
135
140
|
export { StakingDistribution } from './generated/models/StakingDistribution.js';
|
|
136
141
|
export { Subnet } from './generated/models/Subnet.js';
|
|
@@ -149,6 +154,9 @@ export { ValidationStatusType } from './generated/models/ValidationStatusType.js
|
|
|
149
154
|
export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
|
|
150
155
|
export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
|
|
151
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';
|
|
152
160
|
export { XChainAssetBalance } from './generated/models/XChainAssetBalance.js';
|
|
153
161
|
export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
|
|
154
162
|
export { XChainBalances } from './generated/models/XChainBalances.js';
|
|
@@ -156,6 +164,7 @@ export { XChainId } from './generated/models/XChainId.js';
|
|
|
156
164
|
export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
|
|
157
165
|
export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
|
|
158
166
|
export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
|
|
167
|
+
export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
|
|
159
168
|
export { XChainVertex } from './generated/models/XChainVertex.js';
|
|
160
169
|
export { DefaultService } from './generated/services/DefaultService.js';
|
|
161
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.
|
|
3
|
+
"version": "2.8.0-canary.7233ef7.0+7233ef7",
|
|
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": "
|
|
32
|
+
"gitHead": "7233ef7b5897e55fc24a869161a2612b4ce29b99"
|
|
33
33
|
}
|