@avalabs/glacier-sdk 2.8.0-canary.f195b3d.0 → 2.8.0-canary.f220003.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 +378 -289
- package/dist/index.js +116 -67
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
- package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
- 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 +0 -3
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -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 +5 -2
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
- 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/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- 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 +1 -3
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +5 -2
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -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 +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/WebhookResponse.d.ts +10 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +0 -53
- package/esm/generated/services/DefaultService.js +0 -42
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +9 -17
- package/esm/generated/services/TeleporterService.js +2 -6
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +9 -2
- package/esm/index.js +4 -2
- package/package.json +2 -2
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
|
@@ -1,8 +1,3 @@
|
|
|
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';
|
|
6
1
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
2
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
8
3
|
|
|
@@ -14,54 +9,6 @@ declare class DefaultService {
|
|
|
14
9
|
* @throws ApiError
|
|
15
10
|
*/
|
|
16
11
|
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({ pageToken, pageSize, status, }: {
|
|
33
|
-
/**
|
|
34
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
35
|
-
*/
|
|
36
|
-
pageToken?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
39
|
-
*/
|
|
40
|
-
pageSize?: number;
|
|
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>;
|
|
65
12
|
}
|
|
66
13
|
|
|
67
14
|
export { DefaultService };
|
|
@@ -8,48 +8,6 @@ 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
|
-
pageToken,
|
|
23
|
-
pageSize = 10,
|
|
24
|
-
status
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/webhooks",
|
|
29
|
-
query: {
|
|
30
|
-
"pageToken": pageToken,
|
|
31
|
-
"pageSize": pageSize,
|
|
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
|
-
}
|
|
53
11
|
}
|
|
54
12
|
|
|
55
13
|
export { DefaultService };
|
|
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
|
|
|
20
20
|
*/
|
|
21
21
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
22
22
|
/**
|
|
23
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
23
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
24
24
|
*/
|
|
25
25
|
chainId: string;
|
|
26
26
|
/**
|
|
@@ -48,7 +48,7 @@ declare class EvmBalancesService {
|
|
|
48
48
|
*/
|
|
49
49
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
50
50
|
/**
|
|
51
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
51
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
52
52
|
*/
|
|
53
53
|
chainId: string;
|
|
54
54
|
/**
|
|
@@ -86,7 +86,7 @@ declare class EvmBalancesService {
|
|
|
86
86
|
*/
|
|
87
87
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
88
88
|
/**
|
|
89
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
89
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
90
90
|
*/
|
|
91
91
|
chainId: string;
|
|
92
92
|
/**
|
|
@@ -118,7 +118,7 @@ declare class EvmBalancesService {
|
|
|
118
118
|
*/
|
|
119
119
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
120
120
|
/**
|
|
121
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
121
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
122
122
|
*/
|
|
123
123
|
chainId: string;
|
|
124
124
|
/**
|
|
@@ -152,7 +152,7 @@ declare class EvmBalancesService {
|
|
|
152
152
|
*/
|
|
153
153
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
154
154
|
/**
|
|
155
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
155
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
156
|
*/
|
|
157
157
|
chainId: string;
|
|
158
158
|
/**
|
|
@@ -14,7 +14,7 @@ declare class EvmBlocksService {
|
|
|
14
14
|
*/
|
|
15
15
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
16
16
|
/**
|
|
17
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
17
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
18
|
*/
|
|
19
19
|
chainId: string;
|
|
20
20
|
/**
|
|
@@ -34,7 +34,7 @@ declare class EvmBlocksService {
|
|
|
34
34
|
*/
|
|
35
35
|
getBlock({ chainId, blockId, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
2
|
+
import { GlacierApiFeature } from '../models/GlacierApiFeature.js';
|
|
2
3
|
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
3
4
|
import { NetworkType } from '../models/NetworkType.js';
|
|
4
5
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -13,11 +14,15 @@ declare class EvmChainsService {
|
|
|
13
14
|
* @returns ListChainsResponse
|
|
14
15
|
* @throws ApiError
|
|
15
16
|
*/
|
|
16
|
-
supportedChains({ network, }: {
|
|
17
|
+
supportedChains({ network, feature, }: {
|
|
17
18
|
/**
|
|
18
19
|
* mainnet or testnet.
|
|
19
20
|
*/
|
|
20
21
|
network?: NetworkType;
|
|
22
|
+
/**
|
|
23
|
+
* Filter by feature.
|
|
24
|
+
*/
|
|
25
|
+
feature?: GlacierApiFeature;
|
|
21
26
|
}): CancelablePromise<ListChainsResponse>;
|
|
22
27
|
/**
|
|
23
28
|
* Get chain information
|
|
@@ -27,7 +32,7 @@ declare class EvmChainsService {
|
|
|
27
32
|
*/
|
|
28
33
|
getChainInfo({ chainId, }: {
|
|
29
34
|
/**
|
|
30
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
35
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
31
36
|
*/
|
|
32
37
|
chainId: string;
|
|
33
38
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -3,13 +3,15 @@ class EvmChainsService {
|
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
5
|
supportedChains({
|
|
6
|
-
network
|
|
6
|
+
network,
|
|
7
|
+
feature
|
|
7
8
|
}) {
|
|
8
9
|
return this.httpRequest.request({
|
|
9
10
|
method: "GET",
|
|
10
11
|
url: "/v1/chains",
|
|
11
12
|
query: {
|
|
12
|
-
"network": network
|
|
13
|
+
"network": network,
|
|
14
|
+
"feature": feature
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
17
|
}
|
|
@@ -18,7 +18,7 @@ declare class EvmContractsService {
|
|
|
18
18
|
*/
|
|
19
19
|
getContractMetadata({ chainId, address, }: {
|
|
20
20
|
/**
|
|
21
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
21
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
22
22
|
*/
|
|
23
23
|
chainId: string;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ declare class EvmContractsService {
|
|
|
34
34
|
*/
|
|
35
35
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
|
|
|
24
24
|
*/
|
|
25
25
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
26
26
|
/**
|
|
27
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
27
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
28
28
|
*/
|
|
29
29
|
chainId: string;
|
|
30
30
|
/**
|
|
@@ -44,7 +44,7 @@ declare class EvmTransactionsService {
|
|
|
44
44
|
*/
|
|
45
45
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
46
46
|
/**
|
|
47
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
47
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
48
48
|
*/
|
|
49
49
|
chainId: string;
|
|
50
50
|
/**
|
|
@@ -68,7 +68,7 @@ declare class EvmTransactionsService {
|
|
|
68
68
|
*/
|
|
69
69
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
70
70
|
/**
|
|
71
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
71
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
72
72
|
*/
|
|
73
73
|
chainId: string;
|
|
74
74
|
/**
|
|
@@ -102,7 +102,7 @@ declare class EvmTransactionsService {
|
|
|
102
102
|
*/
|
|
103
103
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
104
104
|
/**
|
|
105
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
105
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
106
106
|
*/
|
|
107
107
|
chainId: string;
|
|
108
108
|
/**
|
|
@@ -138,7 +138,7 @@ declare class EvmTransactionsService {
|
|
|
138
138
|
*/
|
|
139
139
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
140
140
|
/**
|
|
141
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
142
142
|
*/
|
|
143
143
|
chainId: string;
|
|
144
144
|
/**
|
|
@@ -170,7 +170,7 @@ declare class EvmTransactionsService {
|
|
|
170
170
|
*/
|
|
171
171
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
172
172
|
/**
|
|
173
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
173
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
174
174
|
*/
|
|
175
175
|
chainId: string;
|
|
176
176
|
/**
|
|
@@ -202,7 +202,7 @@ declare class EvmTransactionsService {
|
|
|
202
202
|
*/
|
|
203
203
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
204
204
|
/**
|
|
205
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
205
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
206
206
|
*/
|
|
207
207
|
chainId: string;
|
|
208
208
|
/**
|
|
@@ -234,7 +234,7 @@ declare class EvmTransactionsService {
|
|
|
234
234
|
*/
|
|
235
235
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
236
236
|
/**
|
|
237
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
237
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
238
238
|
*/
|
|
239
239
|
chainId: string;
|
|
240
240
|
/**
|
|
@@ -268,7 +268,7 @@ declare class EvmTransactionsService {
|
|
|
268
268
|
*/
|
|
269
269
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
270
270
|
/**
|
|
271
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
271
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
272
272
|
*/
|
|
273
273
|
chainId: string;
|
|
274
274
|
/**
|
|
@@ -300,7 +300,7 @@ declare class EvmTransactionsService {
|
|
|
300
300
|
*/
|
|
301
301
|
getTransaction({ chainId, txHash, }: {
|
|
302
302
|
/**
|
|
303
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
303
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
304
304
|
*/
|
|
305
305
|
chainId: string;
|
|
306
306
|
/**
|
|
@@ -316,7 +316,7 @@ declare class EvmTransactionsService {
|
|
|
316
316
|
*/
|
|
317
317
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
318
318
|
/**
|
|
319
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
319
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
320
320
|
*/
|
|
321
321
|
chainId: string;
|
|
322
322
|
/**
|
|
@@ -332,7 +332,7 @@ declare class EvmTransactionsService {
|
|
|
332
332
|
*/
|
|
333
333
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
334
334
|
/**
|
|
335
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
335
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
336
336
|
*/
|
|
337
337
|
chainId: string;
|
|
338
338
|
/**
|
|
@@ -15,7 +15,7 @@ declare class NfTsService {
|
|
|
15
15
|
*/
|
|
16
16
|
reindexNft({ chainId, address, tokenId, }: {
|
|
17
17
|
/**
|
|
18
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
19
19
|
*/
|
|
20
20
|
chainId: string;
|
|
21
21
|
/**
|
|
@@ -35,7 +35,7 @@ declare class NfTsService {
|
|
|
35
35
|
*/
|
|
36
36
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
37
37
|
/**
|
|
38
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
39
|
*/
|
|
40
40
|
chainId: string;
|
|
41
41
|
/**
|
|
@@ -59,7 +59,7 @@ declare class NfTsService {
|
|
|
59
59
|
*/
|
|
60
60
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
61
61
|
/**
|
|
62
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
62
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
63
63
|
*/
|
|
64
64
|
chainId: string;
|
|
65
65
|
/**
|
|
@@ -21,7 +21,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
21
21
|
*/
|
|
22
22
|
network: Network;
|
|
23
23
|
/**
|
|
24
|
-
* 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".
|
|
24
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
25
25
|
*/
|
|
26
26
|
addresses?: string;
|
|
27
27
|
/**
|
|
@@ -33,7 +33,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
33
33
|
*/
|
|
34
34
|
pageSize?: number;
|
|
35
35
|
/**
|
|
36
|
-
* A comma separated list of node ids to filter by.
|
|
36
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
37
37
|
*/
|
|
38
38
|
nodeIds?: string;
|
|
39
39
|
/**
|
|
@@ -170,7 +170,7 @@ declare class PrimaryNetworkService {
|
|
|
170
170
|
/**
|
|
171
171
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
172
172
|
*/
|
|
173
|
-
subnetId?:
|
|
173
|
+
subnetId?: any;
|
|
174
174
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
175
175
|
/**
|
|
176
176
|
* Get single validator details
|
|
@@ -10,23 +10,15 @@ declare class TeleporterService {
|
|
|
10
10
|
constructor(httpRequest: BaseHttpRequest);
|
|
11
11
|
/**
|
|
12
12
|
* Get a teleporter message
|
|
13
|
-
* Gets a teleporter message by
|
|
13
|
+
* Gets a teleporter message by message ID.
|
|
14
14
|
* @returns any
|
|
15
15
|
* @throws ApiError
|
|
16
16
|
*/
|
|
17
|
-
getTeleporterMessage({
|
|
18
|
-
/**
|
|
19
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
20
|
-
*/
|
|
21
|
-
sourceBlockchainId: any;
|
|
22
|
-
/**
|
|
23
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
24
|
-
*/
|
|
25
|
-
destinationBlockchainId: any;
|
|
17
|
+
getTeleporterMessage({ messageId, }: {
|
|
26
18
|
/**
|
|
27
19
|
* The message ID of the teleporter message.
|
|
28
20
|
*/
|
|
29
|
-
messageId:
|
|
21
|
+
messageId: string;
|
|
30
22
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
31
23
|
/**
|
|
32
24
|
* List teleporter messages
|
|
@@ -44,21 +36,21 @@ declare class TeleporterService {
|
|
|
44
36
|
*/
|
|
45
37
|
pageSize?: number;
|
|
46
38
|
/**
|
|
47
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
39
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
48
40
|
*/
|
|
49
|
-
sourceBlockchainId?:
|
|
41
|
+
sourceBlockchainId?: string;
|
|
50
42
|
/**
|
|
51
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
43
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
52
44
|
*/
|
|
53
|
-
destinationBlockchainId?:
|
|
45
|
+
destinationBlockchainId?: string;
|
|
54
46
|
/**
|
|
55
47
|
* The address of the recipient of the teleporter message.
|
|
56
48
|
*/
|
|
57
|
-
to?:
|
|
49
|
+
to?: string;
|
|
58
50
|
/**
|
|
59
51
|
* The address of the sender of the teleporter message.
|
|
60
52
|
*/
|
|
61
|
-
from?:
|
|
53
|
+
from?: string;
|
|
62
54
|
}): CancelablePromise<NextPageToken>;
|
|
63
55
|
}
|
|
64
56
|
|
|
@@ -3,16 +3,12 @@ class TeleporterService {
|
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
5
|
getTeleporterMessage({
|
|
6
|
-
sourceBlockchainId,
|
|
7
|
-
destinationBlockchainId,
|
|
8
6
|
messageId
|
|
9
7
|
}) {
|
|
10
8
|
return this.httpRequest.request({
|
|
11
9
|
method: "GET",
|
|
12
|
-
url: "/v1/teleporter/messages
|
|
13
|
-
|
|
14
|
-
"sourceBlockchainId": sourceBlockchainId,
|
|
15
|
-
"destinationBlockchainId": destinationBlockchainId,
|
|
10
|
+
url: "/v1/teleporter/messages/{messageId}",
|
|
11
|
+
path: {
|
|
16
12
|
"messageId": messageId
|
|
17
13
|
}
|
|
18
14
|
});
|
|
@@ -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 };
|