@avalabs/glacier-sdk 2.8.0-canary.f35ad12.0 → 2.8.0-canary.f3e3bdc.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 +1567 -683
- package/dist/index.js +665 -202
- package/esm/generated/Glacier.d.ts +10 -0
- package/esm/generated/Glacier.js +38 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +41 -31
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +39 -40
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +2 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +2 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ImageAsset.d.ts +0 -3
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +13 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -4
- package/esm/generated/models/PChainTransactionType.js +8 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UnknownContract.d.ts +0 -1
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +25 -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/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +30 -0
- package/esm/generated/services/DefaultService.js +30 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -31
- package/esm/generated/services/PrimaryNetworkService.js +27 -17
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +46 -3
- package/esm/index.js +29 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -40,11 +40,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
40
40
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
41
41
|
/**
|
|
42
42
|
* List latest transactions
|
|
43
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
43
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
44
|
+
*
|
|
45
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
46
|
+
*
|
|
47
|
+
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
44
48
|
* @returns any
|
|
45
49
|
* @throws ApiError
|
|
46
50
|
*/
|
|
47
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
51
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
48
52
|
/**
|
|
49
53
|
* A primary network blockchain id or alias.
|
|
50
54
|
*/
|
|
@@ -69,14 +73,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
69
73
|
* Query param for retrieving items before a specific timestamp.
|
|
70
74
|
*/
|
|
71
75
|
endTimestamp?: number;
|
|
72
|
-
/**
|
|
73
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
74
|
-
*/
|
|
75
|
-
pageSize?: number;
|
|
76
76
|
/**
|
|
77
77
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
78
78
|
*/
|
|
79
79
|
pageToken?: string;
|
|
80
|
+
/**
|
|
81
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
82
|
+
*/
|
|
83
|
+
pageSize?: number;
|
|
80
84
|
/**
|
|
81
85
|
* 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.
|
|
82
86
|
*/
|
|
@@ -88,7 +92,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
88
92
|
* @returns ListPChainTransactionsResponse
|
|
89
93
|
* @throws ApiError
|
|
90
94
|
*/
|
|
91
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
95
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
92
96
|
/**
|
|
93
97
|
* A primary network blockchain id or alias.
|
|
94
98
|
*/
|
|
@@ -113,14 +117,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
113
117
|
* Query param for retrieving items before a specific timestamp.
|
|
114
118
|
*/
|
|
115
119
|
endTimestamp?: number;
|
|
116
|
-
/**
|
|
117
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
118
|
-
*/
|
|
119
|
-
pageSize?: number;
|
|
120
120
|
/**
|
|
121
121
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
122
122
|
*/
|
|
123
123
|
pageToken?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
126
|
+
*/
|
|
127
|
+
pageSize?: number;
|
|
124
128
|
/**
|
|
125
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.
|
|
126
130
|
*/
|
|
@@ -132,7 +136,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
132
136
|
* @returns ListXChainTransactionsResponse
|
|
133
137
|
* @throws ApiError
|
|
134
138
|
*/
|
|
135
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
139
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
136
140
|
/**
|
|
137
141
|
* A primary network blockchain id or alias.
|
|
138
142
|
*/
|
|
@@ -157,14 +161,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
157
161
|
* Query param for retrieving items before a specific timestamp.
|
|
158
162
|
*/
|
|
159
163
|
endTimestamp?: number;
|
|
160
|
-
/**
|
|
161
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
162
|
-
*/
|
|
163
|
-
pageSize?: number;
|
|
164
164
|
/**
|
|
165
165
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
166
166
|
*/
|
|
167
167
|
pageToken?: string;
|
|
168
|
+
/**
|
|
169
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
170
|
+
*/
|
|
171
|
+
pageSize?: number;
|
|
168
172
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
169
173
|
}
|
|
170
174
|
|
|
@@ -24,8 +24,8 @@ class PrimaryNetworkTransactionsService {
|
|
|
24
24
|
txTypes,
|
|
25
25
|
startTimestamp,
|
|
26
26
|
endTimestamp,
|
|
27
|
-
pageSize = 10,
|
|
28
27
|
pageToken,
|
|
28
|
+
pageSize = 10,
|
|
29
29
|
sortOrder
|
|
30
30
|
}) {
|
|
31
31
|
return this.httpRequest.request({
|
|
@@ -40,8 +40,8 @@ class PrimaryNetworkTransactionsService {
|
|
|
40
40
|
"txTypes": txTypes,
|
|
41
41
|
"startTimestamp": startTimestamp,
|
|
42
42
|
"endTimestamp": endTimestamp,
|
|
43
|
-
"pageSize": pageSize,
|
|
44
43
|
"pageToken": pageToken,
|
|
44
|
+
"pageSize": pageSize,
|
|
45
45
|
"sortOrder": sortOrder
|
|
46
46
|
}
|
|
47
47
|
});
|
|
@@ -53,8 +53,8 @@ class PrimaryNetworkTransactionsService {
|
|
|
53
53
|
txTypes,
|
|
54
54
|
startTimestamp,
|
|
55
55
|
endTimestamp,
|
|
56
|
-
pageSize = 10,
|
|
57
56
|
pageToken,
|
|
57
|
+
pageSize = 10,
|
|
58
58
|
sortOrder
|
|
59
59
|
}) {
|
|
60
60
|
return this.httpRequest.request({
|
|
@@ -69,8 +69,8 @@ class PrimaryNetworkTransactionsService {
|
|
|
69
69
|
"txTypes": txTypes,
|
|
70
70
|
"startTimestamp": startTimestamp,
|
|
71
71
|
"endTimestamp": endTimestamp,
|
|
72
|
-
"pageSize": pageSize,
|
|
73
72
|
"pageToken": pageToken,
|
|
73
|
+
"pageSize": pageSize,
|
|
74
74
|
"sortOrder": sortOrder
|
|
75
75
|
}
|
|
76
76
|
});
|
|
@@ -82,8 +82,8 @@ class PrimaryNetworkTransactionsService {
|
|
|
82
82
|
txTypes,
|
|
83
83
|
startTimestamp,
|
|
84
84
|
endTimestamp,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
pageToken,
|
|
86
|
+
pageSize = 10
|
|
87
87
|
}) {
|
|
88
88
|
return this.httpRequest.request({
|
|
89
89
|
method: "GET",
|
|
@@ -97,8 +97,8 @@ class PrimaryNetworkTransactionsService {
|
|
|
97
97
|
"txTypes": txTypes,
|
|
98
98
|
"startTimestamp": startTimestamp,
|
|
99
99
|
"endTimestamp": endTimestamp,
|
|
100
|
-
"
|
|
101
|
-
"
|
|
100
|
+
"pageToken": pageToken,
|
|
101
|
+
"pageSize": pageSize
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -15,7 +15,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
15
15
|
* @returns any
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
18
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
19
19
|
/**
|
|
20
20
|
* A primary network blockchain id or alias.
|
|
21
21
|
*/
|
|
@@ -28,14 +28,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
28
28
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
29
29
|
*/
|
|
30
30
|
addresses?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
33
|
-
*/
|
|
34
|
-
pageSize?: number;
|
|
35
31
|
/**
|
|
36
32
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
37
33
|
*/
|
|
38
34
|
pageToken?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
37
|
+
*/
|
|
38
|
+
pageSize?: number;
|
|
39
39
|
/**
|
|
40
40
|
* Asset ID for any asset (only applicable X-Chain)
|
|
41
41
|
*/
|
|
@@ -6,8 +6,8 @@ class PrimaryNetworkUtxOsService {
|
|
|
6
6
|
blockchainId,
|
|
7
7
|
network,
|
|
8
8
|
addresses,
|
|
9
|
-
pageSize = 10,
|
|
10
9
|
pageToken,
|
|
10
|
+
pageSize = 10,
|
|
11
11
|
assetId,
|
|
12
12
|
includeSpent,
|
|
13
13
|
sortOrder
|
|
@@ -21,8 +21,8 @@ class PrimaryNetworkUtxOsService {
|
|
|
21
21
|
},
|
|
22
22
|
query: {
|
|
23
23
|
"addresses": addresses,
|
|
24
|
-
"pageSize": pageSize,
|
|
25
24
|
"pageToken": pageToken,
|
|
25
|
+
"pageSize": pageSize,
|
|
26
26
|
"assetId": assetId,
|
|
27
27
|
"includeSpent": includeSpent,
|
|
28
28
|
"sortOrder": sortOrder
|
|
@@ -15,7 +15,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
15
15
|
* @returns ListXChainVerticesResponse
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
18
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
19
19
|
/**
|
|
20
20
|
* A primary network blockchain id or alias.
|
|
21
21
|
*/
|
|
@@ -24,14 +24,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
24
24
|
* Either mainnet or a testnet.
|
|
25
25
|
*/
|
|
26
26
|
network: Network;
|
|
27
|
-
/**
|
|
28
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
29
|
-
*/
|
|
30
|
-
pageSize?: number;
|
|
31
27
|
/**
|
|
32
28
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
33
29
|
*/
|
|
34
30
|
pageToken?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
33
|
+
*/
|
|
34
|
+
pageSize?: number;
|
|
35
35
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Get vertex
|
|
@@ -59,7 +59,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
59
59
|
* @returns ListXChainVerticesResponse
|
|
60
60
|
* @throws ApiError
|
|
61
61
|
*/
|
|
62
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
62
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
63
63
|
/**
|
|
64
64
|
* The height of a vertex.
|
|
65
65
|
*/
|
|
@@ -72,14 +72,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
72
72
|
* Either mainnet or a testnet.
|
|
73
73
|
*/
|
|
74
74
|
network: Network;
|
|
75
|
-
/**
|
|
76
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
77
|
-
*/
|
|
78
|
-
pageSize?: number;
|
|
79
75
|
/**
|
|
80
76
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
81
77
|
*/
|
|
82
78
|
pageToken?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
81
|
+
*/
|
|
82
|
+
pageSize?: number;
|
|
83
83
|
/**
|
|
84
84
|
* 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.
|
|
85
85
|
*/
|
|
@@ -5,8 +5,8 @@ class PrimaryNetworkVerticesService {
|
|
|
5
5
|
listLatestXChainVertices({
|
|
6
6
|
blockchainId,
|
|
7
7
|
network,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
pageToken,
|
|
9
|
+
pageSize = 10
|
|
10
10
|
}) {
|
|
11
11
|
return this.httpRequest.request({
|
|
12
12
|
method: "GET",
|
|
@@ -16,8 +16,8 @@ class PrimaryNetworkVerticesService {
|
|
|
16
16
|
"network": network
|
|
17
17
|
},
|
|
18
18
|
query: {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"pageToken": pageToken,
|
|
20
|
+
"pageSize": pageSize
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -40,8 +40,8 @@ class PrimaryNetworkVerticesService {
|
|
|
40
40
|
vertexHeight,
|
|
41
41
|
blockchainId,
|
|
42
42
|
network,
|
|
43
|
-
pageSize = 10,
|
|
44
43
|
pageToken,
|
|
44
|
+
pageSize = 10,
|
|
45
45
|
sortOrder
|
|
46
46
|
}) {
|
|
47
47
|
return this.httpRequest.request({
|
|
@@ -53,8 +53,8 @@ class PrimaryNetworkVerticesService {
|
|
|
53
53
|
},
|
|
54
54
|
query: {
|
|
55
55
|
"vertexHeight": vertexHeight,
|
|
56
|
-
"pageSize": pageSize,
|
|
57
56
|
"pageToken": pageToken,
|
|
57
|
+
"pageSize": pageSize,
|
|
58
58
|
"sortOrder": sortOrder
|
|
59
59
|
}
|
|
60
60
|
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
2
|
+
import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
|
|
3
|
+
import { NextPageToken } from '../models/NextPageToken.js';
|
|
4
|
+
import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
|
|
5
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
+
|
|
8
|
+
declare class TeleporterService {
|
|
9
|
+
readonly httpRequest: BaseHttpRequest;
|
|
10
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
+
/**
|
|
12
|
+
* Get a teleporter message
|
|
13
|
+
* Gets a teleporter message by message ID.
|
|
14
|
+
* @returns any
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getTeleporterMessage({ messageId, }: {
|
|
18
|
+
/**
|
|
19
|
+
* The message ID of the teleporter message.
|
|
20
|
+
*/
|
|
21
|
+
messageId: string;
|
|
22
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
23
|
+
/**
|
|
24
|
+
* List teleporter messages
|
|
25
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
26
|
+
* @returns any
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
30
|
+
/**
|
|
31
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
32
|
+
*/
|
|
33
|
+
pageToken?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
36
|
+
*/
|
|
37
|
+
pageSize?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
40
|
+
*/
|
|
41
|
+
sourceBlockchainId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
44
|
+
*/
|
|
45
|
+
destinationBlockchainId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The address of the recipient of the teleporter message.
|
|
48
|
+
*/
|
|
49
|
+
to?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The address of the sender of the teleporter message.
|
|
52
|
+
*/
|
|
53
|
+
from?: string;
|
|
54
|
+
}): CancelablePromise<NextPageToken>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { TeleporterService };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
class TeleporterService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
getTeleporterMessage({
|
|
6
|
+
messageId
|
|
7
|
+
}) {
|
|
8
|
+
return this.httpRequest.request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: "/v1/teleporter/messages/{messageId}",
|
|
11
|
+
path: {
|
|
12
|
+
"messageId": messageId
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
listTeleporterMessages({
|
|
17
|
+
pageToken,
|
|
18
|
+
pageSize = 10,
|
|
19
|
+
sourceBlockchainId,
|
|
20
|
+
destinationBlockchainId,
|
|
21
|
+
to,
|
|
22
|
+
from
|
|
23
|
+
}) {
|
|
24
|
+
return this.httpRequest.request({
|
|
25
|
+
method: "GET",
|
|
26
|
+
url: "/v1/teleporter/messages",
|
|
27
|
+
query: {
|
|
28
|
+
"pageToken": pageToken,
|
|
29
|
+
"pageSize": pageSize,
|
|
30
|
+
"sourceBlockchainId": sourceBlockchainId,
|
|
31
|
+
"destinationBlockchainId": destinationBlockchainId,
|
|
32
|
+
"to": to,
|
|
33
|
+
"from": from
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { TeleporterService };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
2
|
+
import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
|
|
3
|
+
import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
|
|
4
|
+
import { UpdateWebhookRequest } from '../models/UpdateWebhookRequest.js';
|
|
5
|
+
import { WebhookResponse } from '../models/WebhookResponse.js';
|
|
6
|
+
import { WebhookStatus } from '../models/WebhookStatus.js';
|
|
7
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
9
|
+
|
|
10
|
+
declare class WebhooksService {
|
|
11
|
+
readonly httpRequest: BaseHttpRequest;
|
|
12
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
13
|
+
/**
|
|
14
|
+
* Register a webhook
|
|
15
|
+
* Registers a new webhook.
|
|
16
|
+
* @returns WebhookResponse
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
registerWebhook({ requestBody, }: {
|
|
20
|
+
requestBody: RegisterWebhookRequest;
|
|
21
|
+
}): CancelablePromise<WebhookResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* List webhooks
|
|
24
|
+
* Lists webhooks for the user.
|
|
25
|
+
* @returns ListWebhooksResponse
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
29
|
+
/**
|
|
30
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
31
|
+
*/
|
|
32
|
+
pageToken?: string;
|
|
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
|
+
* 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.
|
|
39
|
+
*/
|
|
40
|
+
status?: WebhookStatus;
|
|
41
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Get a webhook by ID
|
|
44
|
+
* Retrieves a webhook by ID.
|
|
45
|
+
* @returns WebhookResponse
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
getWebhook({ id, }: {
|
|
49
|
+
/**
|
|
50
|
+
* The webhook identifier.
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
}): CancelablePromise<WebhookResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Deactivate a webhook
|
|
56
|
+
* Deactivates a webhook by ID.
|
|
57
|
+
* @returns WebhookResponse
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
deactivateWebhook({ id, }: {
|
|
61
|
+
/**
|
|
62
|
+
* The webhook identifier.
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
}): CancelablePromise<WebhookResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Update a webhook
|
|
68
|
+
* Updates an existing webhook.
|
|
69
|
+
* @returns WebhookResponse
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
updateWebhook({ id, requestBody, }: {
|
|
73
|
+
/**
|
|
74
|
+
* The webhook identifier.
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
requestBody: UpdateWebhookRequest;
|
|
78
|
+
}): CancelablePromise<WebhookResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Generate a shared secret
|
|
81
|
+
* Generates a new shared secret.
|
|
82
|
+
* @returns SharedSecretsResponse
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Get a shared secret
|
|
88
|
+
* Get a previously generated shared secret.
|
|
89
|
+
* @returns SharedSecretsResponse
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { WebhooksService };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
class WebhooksService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
registerWebhook({
|
|
6
|
+
requestBody
|
|
7
|
+
}) {
|
|
8
|
+
return this.httpRequest.request({
|
|
9
|
+
method: "POST",
|
|
10
|
+
url: "/v1/webhooks",
|
|
11
|
+
body: requestBody,
|
|
12
|
+
mediaType: "application/json"
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
listWebhooks({
|
|
16
|
+
pageToken,
|
|
17
|
+
pageSize = 10,
|
|
18
|
+
status
|
|
19
|
+
}) {
|
|
20
|
+
return this.httpRequest.request({
|
|
21
|
+
method: "GET",
|
|
22
|
+
url: "/v1/webhooks",
|
|
23
|
+
query: {
|
|
24
|
+
"pageToken": pageToken,
|
|
25
|
+
"pageSize": pageSize,
|
|
26
|
+
"status": status
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
getWebhook({
|
|
31
|
+
id
|
|
32
|
+
}) {
|
|
33
|
+
return this.httpRequest.request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: "/v1/webhooks/{id}",
|
|
36
|
+
path: {
|
|
37
|
+
"id": id
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
deactivateWebhook({
|
|
42
|
+
id
|
|
43
|
+
}) {
|
|
44
|
+
return this.httpRequest.request({
|
|
45
|
+
method: "DELETE",
|
|
46
|
+
url: "/v1/webhooks/{id}",
|
|
47
|
+
path: {
|
|
48
|
+
"id": id
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
updateWebhook({
|
|
53
|
+
id,
|
|
54
|
+
requestBody
|
|
55
|
+
}) {
|
|
56
|
+
return this.httpRequest.request({
|
|
57
|
+
method: "PATCH",
|
|
58
|
+
url: "/v1/webhooks/{id}",
|
|
59
|
+
path: {
|
|
60
|
+
"id": id
|
|
61
|
+
},
|
|
62
|
+
body: requestBody,
|
|
63
|
+
mediaType: "application/json"
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
generateSharedSecret() {
|
|
67
|
+
return this.httpRequest.request({
|
|
68
|
+
method: "POST",
|
|
69
|
+
url: "/v1/webhooks:generateOrRotateSharedSecret"
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
getSharedSecret() {
|
|
73
|
+
return this.httpRequest.request({
|
|
74
|
+
method: "GET",
|
|
75
|
+
url: "/v1/webhooks:getSharedSecret"
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { WebhooksService };
|