@avalabs/glacier-sdk 3.1.0-canary.efe2f7b.0 → 3.1.0-canary.f1df87c.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 +1155 -524
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -4
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/ApiFeature.d.ts +7 -0
- package/esm/generated/models/ApiFeature.js +1 -0
- package/esm/generated/models/BadGateway.d.ts +16 -0
- package/esm/generated/models/BadRequest.d.ts +16 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RequestType.d.ts +2 -2
- package/esm/generated/models/RequestType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +153 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +10 -10
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +68 -8
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +4 -4
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +33 -25
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +6 -6
- package/esm/generated/services/NfTsService.js +1 -1
- package/esm/generated/services/OperationsService.d.ts +2 -2
- package/esm/generated/services/OperationsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +34 -6
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +10 -10
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +29 -9
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
- package/esm/generated/models/GlacierApiFeature.js +0 -1
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -85
- package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
2
2
|
import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
|
|
3
3
|
import { ListTeleporterMessagesResponse } from '../models/ListTeleporterMessagesResponse.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Network } from '../models/Network.js';
|
|
5
5
|
import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
|
|
6
6
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
7
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
@@ -12,7 +12,7 @@ declare class TeleporterService {
|
|
|
12
12
|
/**
|
|
13
13
|
* Get a teleporter message
|
|
14
14
|
* Gets a teleporter message by message ID.
|
|
15
|
-
* @returns any
|
|
15
|
+
* @returns any Successful response
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
18
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -24,10 +24,10 @@ declare class TeleporterService {
|
|
|
24
24
|
/**
|
|
25
25
|
* List teleporter messages
|
|
26
26
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
27
|
-
* @returns ListTeleporterMessagesResponse
|
|
27
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
30
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
31
31
|
/**
|
|
32
32
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
33
33
|
*/
|
|
@@ -44,6 +44,10 @@ declare class TeleporterService {
|
|
|
44
44
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
45
45
|
*/
|
|
46
46
|
destinationBlockchainId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
49
|
+
*/
|
|
50
|
+
blockchainId?: string;
|
|
47
51
|
/**
|
|
48
52
|
* The address of the recipient of the teleporter message.
|
|
49
53
|
*/
|
|
@@ -53,9 +57,33 @@ declare class TeleporterService {
|
|
|
53
57
|
*/
|
|
54
58
|
from?: string;
|
|
55
59
|
/**
|
|
56
|
-
* mainnet or testnet.
|
|
60
|
+
* Either mainnet or testnet/fuji.
|
|
61
|
+
*/
|
|
62
|
+
network?: Network;
|
|
63
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* List teleporter messages by address
|
|
66
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
67
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
71
|
+
/**
|
|
72
|
+
* An EVM address.
|
|
73
|
+
*/
|
|
74
|
+
address: string;
|
|
75
|
+
/**
|
|
76
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
77
|
+
*/
|
|
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
|
+
/**
|
|
84
|
+
* Either mainnet or testnet/fuji.
|
|
57
85
|
*/
|
|
58
|
-
network?:
|
|
86
|
+
network?: Network;
|
|
59
87
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
60
88
|
}
|
|
61
89
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e}})}listTeleporterMessages({pageToken:e,pageSize:
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTeleporterMessages({pageToken:e,pageSize:r=10,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:r,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTeleporterMessagesByAddress({address:e,pageToken:r,pageSize:t=10,network:s}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/addresses/{address}/messages",path:{address:e},query:{pageToken:r,pageSize:t,network:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as TeleporterService};
|
|
@@ -15,7 +15,7 @@ declare class WebhooksService {
|
|
|
15
15
|
/**
|
|
16
16
|
* Create a webhook
|
|
17
17
|
* Create a new webhook.
|
|
18
|
-
* @returns WebhookResponse
|
|
18
|
+
* @returns WebhookResponse Successful response
|
|
19
19
|
* @throws ApiError
|
|
20
20
|
*/
|
|
21
21
|
createWebhook({ requestBody, }: {
|
|
@@ -24,7 +24,7 @@ declare class WebhooksService {
|
|
|
24
24
|
/**
|
|
25
25
|
* List webhooks
|
|
26
26
|
* Lists webhooks for the user.
|
|
27
|
-
* @returns ListWebhooksResponse
|
|
27
|
+
* @returns ListWebhooksResponse Successful response
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
30
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -44,7 +44,7 @@ declare class WebhooksService {
|
|
|
44
44
|
/**
|
|
45
45
|
* Get a webhook by ID
|
|
46
46
|
* Retrieves a webhook by ID.
|
|
47
|
-
* @returns WebhookResponse
|
|
47
|
+
* @returns WebhookResponse Successful response
|
|
48
48
|
* @throws ApiError
|
|
49
49
|
*/
|
|
50
50
|
getWebhook({ id, }: {
|
|
@@ -56,7 +56,7 @@ declare class WebhooksService {
|
|
|
56
56
|
/**
|
|
57
57
|
* Deactivate a webhook
|
|
58
58
|
* Deactivates a webhook by ID.
|
|
59
|
-
* @returns WebhookResponse
|
|
59
|
+
* @returns WebhookResponse Successful response
|
|
60
60
|
* @throws ApiError
|
|
61
61
|
*/
|
|
62
62
|
deactivateWebhook({ id, }: {
|
|
@@ -68,7 +68,7 @@ declare class WebhooksService {
|
|
|
68
68
|
/**
|
|
69
69
|
* Update a webhook
|
|
70
70
|
* Updates an existing webhook.
|
|
71
|
-
* @returns WebhookResponse
|
|
71
|
+
* @returns WebhookResponse Successful response
|
|
72
72
|
* @throws ApiError
|
|
73
73
|
*/
|
|
74
74
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -81,21 +81,21 @@ declare class WebhooksService {
|
|
|
81
81
|
/**
|
|
82
82
|
* Generate a shared secret
|
|
83
83
|
* Generates a new shared secret.
|
|
84
|
-
* @returns SharedSecretsResponse
|
|
84
|
+
* @returns SharedSecretsResponse Successful response
|
|
85
85
|
* @throws ApiError
|
|
86
86
|
*/
|
|
87
87
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
88
88
|
/**
|
|
89
89
|
* Get a shared secret
|
|
90
90
|
* Get a previously generated shared secret.
|
|
91
|
-
* @returns SharedSecretsResponse
|
|
91
|
+
* @returns SharedSecretsResponse Successful response
|
|
92
92
|
* @throws ApiError
|
|
93
93
|
*/
|
|
94
94
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
95
95
|
/**
|
|
96
96
|
* Add addresses to webhook
|
|
97
97
|
* Add addresses to webhook.
|
|
98
|
-
* @returns WebhookResponse
|
|
98
|
+
* @returns WebhookResponse Successful response
|
|
99
99
|
* @throws ApiError
|
|
100
100
|
*/
|
|
101
101
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -108,7 +108,7 @@ declare class WebhooksService {
|
|
|
108
108
|
/**
|
|
109
109
|
* Remove addresses from webhook
|
|
110
110
|
* Remove addresses from webhook.
|
|
111
|
-
* @returns WebhookResponse
|
|
111
|
+
* @returns WebhookResponse Successful response
|
|
112
112
|
* @throws ApiError
|
|
113
113
|
*/
|
|
114
114
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -121,7 +121,7 @@ declare class WebhooksService {
|
|
|
121
121
|
/**
|
|
122
122
|
* List adresses by webhook
|
|
123
123
|
* List adresses by webhook.
|
|
124
|
-
* @returns ListWebhookAddressesResponse
|
|
124
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
125
125
|
* @throws ApiError
|
|
126
126
|
*/
|
|
127
127
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}createWebhook({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/webhooks",body:e,mediaType:"application/json"})}listWebhooks({pageToken:e,pageSize:t=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks",query:{pageToken:e,pageSize:t,status:s}})}getWebhook({id:e}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}",path:{id:e}})}deactivateWebhook({id:e}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}",path:{id:e}})}updateWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}",path:{id:e},body:t,mediaType:"application/json"})}generateSharedSecret(){return this.httpRequest.request({method:"POST",url:"/v1/webhooks:generateOrRotateSharedSecret"})}getSharedSecret(){return this.httpRequest.request({method:"GET",url:"/v1/webhooks:getSharedSecret"})}addAddressesToWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}removeAddressesFromWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}getAddressesFromWebhook({id:e,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}/addresses",path:{id:e},query:{pageToken:t,pageSize:s}})}}export{e as WebhooksService};
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}createWebhook({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/webhooks",body:e,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listWebhooks({pageToken:e,pageSize:r=10,status:t}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks",query:{pageToken:e,pageSize:r,status:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getWebhook({id:e}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}",path:{id:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}deactivateWebhook({id:e}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}",path:{id:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}updateWebhook({id:e,requestBody:r}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}generateSharedSecret(){return this.httpRequest.request({method:"POST",url:"/v1/webhooks:generateOrRotateSharedSecret",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSharedSecret(){return this.httpRequest.request({method:"GET",url:"/v1/webhooks:getSharedSecret",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}addAddressesToWebhook({id:e,requestBody:r}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}removeAddressesFromWebhook({id:e,requestBody:r}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getAddressesFromWebhook({id:e,pageToken:r,pageSize:t=10}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}/addresses",path:{id:e},query:{pageToken:r,pageSize:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as WebhooksService};
|
package/esm/index.d.ts
CHANGED
|
@@ -8,8 +8,12 @@ export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetail
|
|
|
8
8
|
export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
|
|
9
9
|
export { AddressesChangeRequest } from './generated/models/AddressesChangeRequest.js';
|
|
10
10
|
export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.js';
|
|
11
|
+
export { ApiFeature } from './generated/models/ApiFeature.js';
|
|
11
12
|
export { AssetAmount } from './generated/models/AssetAmount.js';
|
|
12
13
|
export { AssetWithPriceInfo } from './generated/models/AssetWithPriceInfo.js';
|
|
14
|
+
export { BadGateway } from './generated/models/BadGateway.js';
|
|
15
|
+
export { BadRequest } from './generated/models/BadRequest.js';
|
|
16
|
+
export { BalanceOwner } from './generated/models/BalanceOwner.js';
|
|
13
17
|
export { Blockchain } from './generated/models/Blockchain.js';
|
|
14
18
|
export { BlockchainId } from './generated/models/BlockchainId.js';
|
|
15
19
|
export { BlockchainIds } from './generated/models/BlockchainIds.js';
|
|
@@ -35,6 +39,7 @@ export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmT
|
|
|
35
39
|
export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
36
40
|
export { CreateWebhookRequest } from './generated/models/CreateWebhookRequest.js';
|
|
37
41
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
42
|
+
export { DataListChainsResponse } from './generated/models/DataListChainsResponse.js';
|
|
38
43
|
export { DelegationStatusType } from './generated/models/DelegationStatusType.js';
|
|
39
44
|
export { DelegatorsDetails } from './generated/models/DelegatorsDetails.js';
|
|
40
45
|
export { DeliveredSourceNotIndexedTeleporterMessage } from './generated/models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
@@ -62,6 +67,7 @@ export { EVMInput } from './generated/models/EVMInput.js';
|
|
|
62
67
|
export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
|
|
63
68
|
export { EVMOperationType } from './generated/models/EVMOperationType.js';
|
|
64
69
|
export { EVMOutput } from './generated/models/EVMOutput.js';
|
|
70
|
+
export { Forbidden } from './generated/models/Forbidden.js';
|
|
65
71
|
export { FullNativeTransactionDetails } from './generated/models/FullNativeTransactionDetails.js';
|
|
66
72
|
export { GetChainResponse } from './generated/models/GetChainResponse.js';
|
|
67
73
|
export { GetEvmBlockResponse } from './generated/models/GetEvmBlockResponse.js';
|
|
@@ -69,12 +75,16 @@ export { GetNativeBalanceResponse } from './generated/models/GetNativeBalanceRes
|
|
|
69
75
|
export { GetNetworkDetailsResponse } from './generated/models/GetNetworkDetailsResponse.js';
|
|
70
76
|
export { GetPrimaryNetworkBlockResponse } from './generated/models/GetPrimaryNetworkBlockResponse.js';
|
|
71
77
|
export { GetTransactionResponse } from './generated/models/GetTransactionResponse.js';
|
|
72
|
-
export { GlacierApiFeature } from './generated/models/GlacierApiFeature.js';
|
|
73
78
|
export { HistoricalReward } from './generated/models/HistoricalReward.js';
|
|
74
79
|
export { ImageAsset } from './generated/models/ImageAsset.js';
|
|
80
|
+
export { InternalServerError } from './generated/models/InternalServerError.js';
|
|
75
81
|
export { InternalTransaction } from './generated/models/InternalTransaction.js';
|
|
76
82
|
export { InternalTransactionDetails } from './generated/models/InternalTransactionDetails.js';
|
|
77
83
|
export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js';
|
|
84
|
+
export { L1ValidatorDetailsFull } from './generated/models/L1ValidatorDetailsFull.js';
|
|
85
|
+
export { L1ValidatorDetailsTransaction } from './generated/models/L1ValidatorDetailsTransaction.js';
|
|
86
|
+
export { L1ValidatorManagerDetails } from './generated/models/L1ValidatorManagerDetails.js';
|
|
87
|
+
export { ListAddressChainsResponse } from './generated/models/ListAddressChainsResponse.js';
|
|
78
88
|
export { ListBlockchainsResponse } from './generated/models/ListBlockchainsResponse.js';
|
|
79
89
|
export { ListCChainAtomicBalancesResponse } from './generated/models/ListCChainAtomicBalancesResponse.js';
|
|
80
90
|
export { ListCChainAtomicTransactionsResponse } from './generated/models/ListCChainAtomicTransactionsResponse.js';
|
|
@@ -91,6 +101,7 @@ export { ListErc721TransactionsResponse } from './generated/models/ListErc721Tra
|
|
|
91
101
|
export { ListEvmBlocksResponse } from './generated/models/ListEvmBlocksResponse.js';
|
|
92
102
|
export { ListHistoricalRewardsResponse } from './generated/models/ListHistoricalRewardsResponse.js';
|
|
93
103
|
export { ListInternalTransactionsResponse } from './generated/models/ListInternalTransactionsResponse.js';
|
|
104
|
+
export { ListL1ValidatorsResponse } from './generated/models/ListL1ValidatorsResponse.js';
|
|
94
105
|
export { ListNativeTransactionsResponse } from './generated/models/ListNativeTransactionsResponse.js';
|
|
95
106
|
export { ListNftTokens } from './generated/models/ListNftTokens.js';
|
|
96
107
|
export { ListPChainBalancesResponse } from './generated/models/ListPChainBalancesResponse.js';
|
|
@@ -113,15 +124,16 @@ export { LogsFormat } from './generated/models/LogsFormat.js';
|
|
|
113
124
|
export { LogsFormatMetadata } from './generated/models/LogsFormatMetadata.js';
|
|
114
125
|
export { LogsResponseDTO } from './generated/models/LogsResponseDTO.js';
|
|
115
126
|
export { Method } from './generated/models/Method.js';
|
|
127
|
+
export { Metric } from './generated/models/Metric.js';
|
|
116
128
|
export { Money } from './generated/models/Money.js';
|
|
117
129
|
export { NativeTokenBalance } from './generated/models/NativeTokenBalance.js';
|
|
118
130
|
export { NativeTransaction } from './generated/models/NativeTransaction.js';
|
|
119
131
|
export { Network } from './generated/models/Network.js';
|
|
120
132
|
export { NetworkToken } from './generated/models/NetworkToken.js';
|
|
121
133
|
export { NetworkTokenDetails } from './generated/models/NetworkTokenDetails.js';
|
|
122
|
-
export { NetworkType } from './generated/models/NetworkType.js';
|
|
123
134
|
export { NextPageToken } from './generated/models/NextPageToken.js';
|
|
124
135
|
export { NftTokenMetadataStatus } from './generated/models/NftTokenMetadataStatus.js';
|
|
136
|
+
export { NotFound } from './generated/models/NotFound.js';
|
|
125
137
|
export { OperationStatus } from './generated/models/OperationStatus.js';
|
|
126
138
|
export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
|
|
127
139
|
export { OperationStatusResponse } from './generated/models/OperationStatusResponse.js';
|
|
@@ -137,7 +149,6 @@ export { PendingReward } from './generated/models/PendingReward.js';
|
|
|
137
149
|
export { PendingTeleporterMessage } from './generated/models/PendingTeleporterMessage.js';
|
|
138
150
|
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
139
151
|
export { PricingProviders } from './generated/models/PricingProviders.js';
|
|
140
|
-
export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
|
|
141
152
|
export { PrimaryNetworkAssetCap } from './generated/models/PrimaryNetworkAssetCap.js';
|
|
142
153
|
export { PrimaryNetworkAssetType } from './generated/models/PrimaryNetworkAssetType.js';
|
|
143
154
|
export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
|
|
@@ -154,31 +165,40 @@ export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
|
154
165
|
export { Rewards } from './generated/models/Rewards.js';
|
|
155
166
|
export { RewardType } from './generated/models/RewardType.js';
|
|
156
167
|
export { RichAddress } from './generated/models/RichAddress.js';
|
|
157
|
-
export {
|
|
158
|
-
export {
|
|
159
|
-
export {
|
|
160
|
-
export {
|
|
168
|
+
export { RpcMetrics } from './generated/models/RpcMetrics.js';
|
|
169
|
+
export { RpcUsageMetricsGroupByEnum } from './generated/models/RpcUsageMetricsGroupByEnum.js';
|
|
170
|
+
export { RpcUsageMetricsResponseDTO } from './generated/models/RpcUsageMetricsResponseDTO.js';
|
|
171
|
+
export { RpcUsageMetricsValueAggregated } from './generated/models/RpcUsageMetricsValueAggregated.js';
|
|
172
|
+
export { ServiceUnavailable } from './generated/models/ServiceUnavailable.js';
|
|
161
173
|
export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
|
|
174
|
+
export { SignatureAggregationResponse } from './generated/models/SignatureAggregationResponse.js';
|
|
175
|
+
export { SignatureAggregatorRequest } from './generated/models/SignatureAggregatorRequest.js';
|
|
162
176
|
export { SortByOption } from './generated/models/SortByOption.js';
|
|
163
177
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
164
178
|
export { StakingDistribution } from './generated/models/StakingDistribution.js';
|
|
165
179
|
export { Subnet } from './generated/models/Subnet.js';
|
|
166
180
|
export { SubnetOwnershipInfo } from './generated/models/SubnetOwnershipInfo.js';
|
|
181
|
+
export { SubnetRpcTimeIntervalGranularity } from './generated/models/SubnetRpcTimeIntervalGranularity.js';
|
|
167
182
|
export { TeleporterDestinationTransaction } from './generated/models/TeleporterDestinationTransaction.js';
|
|
183
|
+
export { TeleporterMessageInfo } from './generated/models/TeleporterMessageInfo.js';
|
|
168
184
|
export { TeleporterReceipt } from './generated/models/TeleporterReceipt.js';
|
|
169
185
|
export { TeleporterRewardDetails } from './generated/models/TeleporterRewardDetails.js';
|
|
170
186
|
export { TeleporterSourceTransaction } from './generated/models/TeleporterSourceTransaction.js';
|
|
171
187
|
export { TimeIntervalGranularityExtended } from './generated/models/TimeIntervalGranularityExtended.js';
|
|
188
|
+
export { TooManyRequests } from './generated/models/TooManyRequests.js';
|
|
172
189
|
export { TransactionDetails } from './generated/models/TransactionDetails.js';
|
|
190
|
+
export { TransactionDirectionType } from './generated/models/TransactionDirectionType.js';
|
|
173
191
|
export { TransactionExportMetadata } from './generated/models/TransactionExportMetadata.js';
|
|
174
192
|
export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
|
|
175
193
|
export { TransactionStatus } from './generated/models/TransactionStatus.js';
|
|
176
194
|
export { TransactionVertexDetail } from './generated/models/TransactionVertexDetail.js';
|
|
195
|
+
export { Unauthorized } from './generated/models/Unauthorized.js';
|
|
177
196
|
export { UnknownContract } from './generated/models/UnknownContract.js';
|
|
178
197
|
export { UpdateContractResponse } from './generated/models/UpdateContractResponse.js';
|
|
179
198
|
export { UpdateWebhookRequest } from './generated/models/UpdateWebhookRequest.js';
|
|
180
199
|
export { UsageMetricsGroupByEnum } from './generated/models/UsageMetricsGroupByEnum.js';
|
|
181
200
|
export { UsageMetricsResponseDTO } from './generated/models/UsageMetricsResponseDTO.js';
|
|
201
|
+
export { UsageMetricsValueDTO } from './generated/models/UsageMetricsValueDTO.js';
|
|
182
202
|
export { UtilityAddresses } from './generated/models/UtilityAddresses.js';
|
|
183
203
|
export { Utxo } from './generated/models/Utxo.js';
|
|
184
204
|
export { UtxoCredential } from './generated/models/UtxoCredential.js';
|
|
@@ -198,13 +218,13 @@ export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTr
|
|
|
198
218
|
export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
|
|
199
219
|
export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
|
|
200
220
|
export { XChainVertex } from './generated/models/XChainVertex.js';
|
|
221
|
+
export { DataApiUsageMetricsService } from './generated/services/DataApiUsageMetricsService.js';
|
|
201
222
|
export { DefaultService } from './generated/services/DefaultService.js';
|
|
202
223
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
203
224
|
export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
|
|
204
225
|
export { EvmChainsService } from './generated/services/EvmChainsService.js';
|
|
205
226
|
export { EvmContractsService } from './generated/services/EvmContractsService.js';
|
|
206
227
|
export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
|
|
207
|
-
export { GlacierApiUsageMetricsService } from './generated/services/GlacierApiUsageMetricsService.js';
|
|
208
228
|
export { HealthCheckService } from './generated/services/HealthCheckService.js';
|
|
209
229
|
export { NfTsService } from './generated/services/NfTsService.js';
|
|
210
230
|
export { OperationsService } from './generated/services/OperationsService.js';
|
|
@@ -215,6 +235,6 @@ export { PrimaryNetworkRewardsService } from './generated/services/PrimaryNetwor
|
|
|
215
235
|
export { PrimaryNetworkTransactionsService } from './generated/services/PrimaryNetworkTransactionsService.js';
|
|
216
236
|
export { PrimaryNetworkUtxOsService } from './generated/services/PrimaryNetworkUtxOsService.js';
|
|
217
237
|
export { PrimaryNetworkVerticesService } from './generated/services/PrimaryNetworkVerticesService.js';
|
|
218
|
-
export {
|
|
238
|
+
export { SignatureAggregatorService } from './generated/services/SignatureAggregatorService.js';
|
|
219
239
|
export { TeleporterService } from './generated/services/TeleporterService.js';
|
|
220
240
|
export { WebhooksService } from './generated/services/WebhooksService.js';
|
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{
|
|
1
|
+
export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{RpcUsageMetricsGroupByEnum}from"./generated/models/RpcUsageMetricsGroupByEnum.js";export{RpcUsageMetricsValueAggregated}from"./generated/models/RpcUsageMetricsValueAggregated.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{SubnetRpcTimeIntervalGranularity}from"./generated/models/SubnetRpcTimeIntervalGranularity.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionDirectionType}from"./generated/models/TransactionDirectionType.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{VmName}from"./generated/models/VmName.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{DataApiUsageMetricsService}from"./generated/services/DataApiUsageMetricsService.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{SignatureAggregatorService}from"./generated/services/SignatureAggregatorService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "3.1.0-canary.
|
|
3
|
+
"version": "3.1.0-canary.f1df87c.0+f1df87c",
|
|
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": "f1df87ca70aba516f2224068321292bcabe4296a"
|
|
33
33
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e))(e||{});export{e as GlacierApiFeature};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t))(t||{});export{t as NetworkType};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as PrimaryNetwork};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { LogsResponseDTO } from '../models/LogsResponseDTO.js';
|
|
2
|
-
import { TimeIntervalGranularityExtended } from '../models/TimeIntervalGranularityExtended.js';
|
|
3
|
-
import { UsageMetricsGroupByEnum } from '../models/UsageMetricsGroupByEnum.js';
|
|
4
|
-
import { UsageMetricsResponseDTO } from '../models/UsageMetricsResponseDTO.js';
|
|
5
|
-
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
-
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
-
|
|
8
|
-
declare class GlacierApiUsageMetricsService {
|
|
9
|
-
readonly httpRequest: BaseHttpRequest;
|
|
10
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
-
/**
|
|
12
|
-
* Get usage metrics for the Glacier API
|
|
13
|
-
* Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
14
|
-
* @returns UsageMetricsResponseDTO
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, responseStatusCode, chainId, apiKeyId, }: {
|
|
18
|
-
/**
|
|
19
|
-
* Organization ID to fetch usage metrics for
|
|
20
|
-
*/
|
|
21
|
-
orgId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Query param for retrieving items after a specific timestamp.
|
|
24
|
-
*/
|
|
25
|
-
startTimestamp?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Query param for retrieving items before a specific timestamp.
|
|
28
|
-
*/
|
|
29
|
-
endTimestamp?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Time interval granularity for data aggregation
|
|
32
|
-
*/
|
|
33
|
-
timeInterval?: TimeIntervalGranularityExtended;
|
|
34
|
-
/**
|
|
35
|
-
* Query param for the criterion used for grouping metrics
|
|
36
|
-
*/
|
|
37
|
-
groupBy?: UsageMetricsGroupByEnum;
|
|
38
|
-
/**
|
|
39
|
-
* Filter aggregated usage metrics by request path.
|
|
40
|
-
*/
|
|
41
|
-
requestPath?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Filter aggregated usage metrics by response status code.
|
|
44
|
-
*/
|
|
45
|
-
responseStatusCode?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Filter aggregated usage metrics by chain ID.
|
|
48
|
-
*/
|
|
49
|
-
chainId?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Filter aggregated usage metrics by API key ID.
|
|
52
|
-
*/
|
|
53
|
-
apiKeyId?: string;
|
|
54
|
-
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
55
|
-
/**
|
|
56
|
-
* Get logs for requests made by client
|
|
57
|
-
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
58
|
-
* @returns LogsResponseDTO
|
|
59
|
-
* @throws ApiError
|
|
60
|
-
*/
|
|
61
|
-
getApiLogss({ orgId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
62
|
-
/**
|
|
63
|
-
* Organization ID to fetch usage metrics for
|
|
64
|
-
*/
|
|
65
|
-
orgId?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Query param for retrieving items after a specific timestamp.
|
|
68
|
-
*/
|
|
69
|
-
startTimestamp?: number;
|
|
70
|
-
/**
|
|
71
|
-
* Query param for retrieving items before a specific timestamp.
|
|
72
|
-
*/
|
|
73
|
-
endTimestamp?: number;
|
|
74
|
-
/**
|
|
75
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
76
|
-
*/
|
|
77
|
-
pageToken?: string;
|
|
78
|
-
/**
|
|
79
|
-
* The maximum number of items to return.
|
|
80
|
-
*/
|
|
81
|
-
pageSize?: number;
|
|
82
|
-
}): CancelablePromise<LogsResponseDTO>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export { GlacierApiUsageMetricsService };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:t,endTimestamp:s,timeInterval:a,groupBy:r,requestPath:p,responseStatusCode:i,chainId:m,apiKeyId:o}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:t,endTimestamp:s,timeInterval:a,groupBy:r,requestPath:p,responseStatusCode:i,chainId:m,apiKeyId:o}})}getApiLogss({orgId:e,startTimestamp:t,endTimestamp:s,pageToken:a,pageSize:r=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:t,endTimestamp:s,pageToken:a,pageSize:r}})}}export{e as GlacierApiUsageMetricsService};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { RpcErrorResponseDto } from '../models/RpcErrorResponseDto.js';
|
|
2
|
-
import { RpcRequestBodyDto } from '../models/RpcRequestBodyDto.js';
|
|
3
|
-
import { RpcSuccessResponseDto } from '../models/RpcSuccessResponseDto.js';
|
|
4
|
-
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
|
-
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
6
|
-
|
|
7
|
-
declare class RpcService {
|
|
8
|
-
readonly httpRequest: BaseHttpRequest;
|
|
9
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
-
/**
|
|
11
|
-
* Calls JSON-RPC method
|
|
12
|
-
* Calls JSON-RPC method.
|
|
13
|
-
* @returns any
|
|
14
|
-
* @throws ApiError
|
|
15
|
-
*/
|
|
16
|
-
rpc({ chainId, requestBody, }: {
|
|
17
|
-
/**
|
|
18
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
19
|
-
*/
|
|
20
|
-
chainId: string;
|
|
21
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
22
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { RpcService };
|