@avalabs/glacier-sdk 3.1.0-canary.dbb51d6.0 → 3.1.0-canary.ea6cb25.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 +217 -70
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +13 -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/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +63 -18
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +13 -0
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +33 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/index.d.ts +5 -6
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
- 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/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
|
@@ -17,7 +17,6 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
|
|
|
17
17
|
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
18
18
|
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
19
19
|
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
20
|
-
import { RpcService } from './services/RpcService.js';
|
|
21
20
|
import { SignatureAggregatorService } from './services/SignatureAggregatorService.js';
|
|
22
21
|
import { TeleporterService } from './services/TeleporterService.js';
|
|
23
22
|
import { WebhooksService } from './services/WebhooksService.js';
|
|
@@ -41,7 +40,6 @@ declare class Glacier {
|
|
|
41
40
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
42
41
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
43
42
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
44
|
-
readonly rpc: RpcService;
|
|
45
43
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
46
44
|
readonly teleporter: TeleporterService;
|
|
47
45
|
readonly webhooks: WebhooksService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as
|
|
1
|
+
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as c}from"./services/HealthCheckService.js";import{NfTsService as h}from"./services/NfTsService.js";import{OperationsService as v}from"./services/OperationsService.js";import{PrimaryNetworkService as n}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as p}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as w}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as S}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as k}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as N}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as u}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as E}from"./services/SignatureAggregatorService.js";import{TeleporterService as f}from"./services/TeleporterService.js";import{WebhooksService as l}from"./services/WebhooksService.js";class q{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(q,j=e){this.request=new j({BASE:q?.BASE??"https://glacier-api-dev.avax.network",VERSION:q?.VERSION??"Beta",WITH_CREDENTIALS:q?.WITH_CREDENTIALS??!1,CREDENTIALS:q?.CREDENTIALS??"include",TOKEN:q?.TOKEN,USERNAME:q?.USERNAME,PASSWORD:q?.PASSWORD,HEADERS:q?.HEADERS,ENCODE_PATH:q?.ENCODE_PATH}),this.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new i(this.request),this.evmChains=new o(this.request),this.evmContracts=new a(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new c(this.request),this.nfTs=new h(this.request),this.operations=new v(this.request),this.primaryNetwork=new n(this.request),this.primaryNetworkBalances=new p(this.request),this.primaryNetworkBlocks=new w(this.request),this.primaryNetworkRewards=new S(this.request),this.primaryNetworkTransactions=new k(this.request),this.primaryNetworkUtxOs=new N(this.request),this.primaryNetworkVertices=new u(this.request),this.signatureAggregator=new E(this.request),this.teleporter=new f(this.request),this.webhooks=new l(this.request)}}export{q as Glacier};
|
|
@@ -9,6 +9,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
9
9
|
txCount: number;
|
|
10
10
|
transactions: Array<string>;
|
|
11
11
|
blockSizeBytes: number;
|
|
12
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
13
|
+
activeSubnetOnlyValidators?: number;
|
|
12
14
|
currentSupply?: string;
|
|
13
15
|
proposerDetails?: ProposerDetails;
|
|
14
16
|
};
|
|
@@ -3,6 +3,7 @@ import { BlsCredentials } from './BlsCredentials.js';
|
|
|
3
3
|
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
4
4
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
5
5
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
6
|
+
import { SubnetValidatorManagerDetails } from './SubnetValidatorManagerDetails.js';
|
|
6
7
|
|
|
7
8
|
type PChainTransaction = {
|
|
8
9
|
/**
|
|
@@ -38,6 +39,10 @@ type PChainTransaction = {
|
|
|
38
39
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
39
40
|
*/
|
|
40
41
|
amountStaked: Array<AssetAmount>;
|
|
42
|
+
/**
|
|
43
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
44
|
+
*/
|
|
45
|
+
amountSovBalanceBurned: Array<AssetAmount>;
|
|
41
46
|
/**
|
|
42
47
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
43
48
|
*/
|
|
@@ -58,6 +63,14 @@ type PChainTransaction = {
|
|
|
58
63
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
59
64
|
*/
|
|
60
65
|
subnetId?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Present for ConvertSubnetTx
|
|
68
|
+
*/
|
|
69
|
+
subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
|
|
70
|
+
/**
|
|
71
|
+
* Present for ConvertSubnetTx, RegisterSubnetValidatorTx
|
|
72
|
+
*/
|
|
73
|
+
subnetOnlyValidatorDetails?: Array<string>;
|
|
61
74
|
/**
|
|
62
75
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
63
76
|
*/
|
|
@@ -14,6 +14,11 @@ declare enum PChainTransactionType {
|
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
15
|
BASE_TX = "BaseTx",
|
|
16
16
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
17
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
18
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
19
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
20
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
21
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
17
22
|
UNKNOWN = "UNKNOWN"
|
|
18
23
|
}
|
|
19
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
|
|
1
|
+
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TX="ConvertSubnetTx",T.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",T.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",T.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",T.INCREASE_BALANCE_TX="IncreaseBalanceTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Network } from './Network.js';
|
|
2
2
|
import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
|
|
3
3
|
|
|
4
4
|
type PrimaryNetworkChainInfo = {
|
|
5
5
|
chainName: PrimaryNetworkChainName;
|
|
6
|
-
network:
|
|
6
|
+
network: Network;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { PrimaryNetworkChainInfo };
|
|
@@ -14,6 +14,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
15
|
BASE_TX = "BaseTx",
|
|
16
16
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
17
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
18
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
19
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
20
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
21
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
17
22
|
UNKNOWN = "UNKNOWN",
|
|
18
23
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
19
24
|
OPERATION_TX = "OperationTx"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
|
|
1
|
+
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TX="ConvertSubnetTx",T.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",T.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",T.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",T.INCREASE_BALANCE_TX="IncreaseBalanceTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RpcUsageMetricsValueAggregated } from './RpcUsageMetricsValueAggregated.js';
|
|
2
|
+
|
|
3
|
+
type RpcMetrics = {
|
|
4
|
+
/**
|
|
5
|
+
* The timestamp of the metrics value
|
|
6
|
+
*/
|
|
7
|
+
timestamp: number;
|
|
8
|
+
/**
|
|
9
|
+
* The metrics values for the timestamp
|
|
10
|
+
*/
|
|
11
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { RpcMetrics };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RpcMetrics } from './RpcMetrics.js';
|
|
2
|
+
|
|
3
|
+
type RpcUsageMetricsResponseDTO = {
|
|
4
|
+
/**
|
|
5
|
+
* Duration in which the metrics value is aggregated
|
|
6
|
+
*/
|
|
7
|
+
aggregateDuration: string;
|
|
8
|
+
/**
|
|
9
|
+
* ChainId for which the metrics are aggregated
|
|
10
|
+
*/
|
|
11
|
+
chainId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Metrics values
|
|
14
|
+
*/
|
|
15
|
+
metrics: Array<RpcMetrics>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { RpcUsageMetricsResponseDTO };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
type RpcUsageMetricsValueAggregated = {
|
|
2
|
+
/**
|
|
3
|
+
* The total number of requests
|
|
4
|
+
*/
|
|
5
|
+
totalRequests: number;
|
|
6
|
+
/**
|
|
7
|
+
* The number of API credits used
|
|
8
|
+
*/
|
|
9
|
+
apiCreditsUsed: number;
|
|
10
|
+
/**
|
|
11
|
+
* The number of requests per second
|
|
12
|
+
*/
|
|
13
|
+
requestsPerSecond: number;
|
|
14
|
+
/**
|
|
15
|
+
* The success rate percentage
|
|
16
|
+
*/
|
|
17
|
+
successRatePercent: number;
|
|
18
|
+
/**
|
|
19
|
+
* The median response time in milliseconds
|
|
20
|
+
*/
|
|
21
|
+
medianResponseTimeMsecs: number;
|
|
22
|
+
/**
|
|
23
|
+
* The number of invalid requests
|
|
24
|
+
*/
|
|
25
|
+
invalidRequests: number;
|
|
26
|
+
/**
|
|
27
|
+
* Column name used for data aggregation
|
|
28
|
+
*/
|
|
29
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
30
|
+
/**
|
|
31
|
+
* The value of the column used for data aggregation
|
|
32
|
+
*/
|
|
33
|
+
groupValue?: (string | number);
|
|
34
|
+
};
|
|
35
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
36
|
+
/**
|
|
37
|
+
* Column name used for data aggregation
|
|
38
|
+
*/
|
|
39
|
+
enum groupedBy {
|
|
40
|
+
RPC_METHOD = "rpcMethod",
|
|
41
|
+
RESPONSE_CODE = "responseCode",
|
|
42
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
43
|
+
NONE = "None"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { RpcUsageMetricsValueAggregated };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,o,r;o=e||(e={}),(r=o.groupedBy||(o.groupedBy={})).RPC_METHOD="rpcMethod",r.RESPONSE_CODE="responseCode",r.RL_BYPASS_TOKEN="rlBypassToken",r.NONE="None";export{e as RpcUsageMetricsValueAggregated};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LogsResponseDTO } from '../models/LogsResponseDTO.js';
|
|
2
|
+
import { RpcUsageMetricsResponseDTO } from '../models/RpcUsageMetricsResponseDTO.js';
|
|
2
3
|
import { TimeIntervalGranularityExtended } from '../models/TimeIntervalGranularityExtended.js';
|
|
3
4
|
import { UsageMetricsGroupByEnum } from '../models/UsageMetricsGroupByEnum.js';
|
|
4
5
|
import { UsageMetricsResponseDTO } from '../models/UsageMetricsResponseDTO.js';
|
|
@@ -14,17 +15,17 @@ declare class DataApiUsageMetricsService {
|
|
|
14
15
|
* @returns UsageMetricsResponseDTO Successful response
|
|
15
16
|
* @throws ApiError
|
|
16
17
|
*/
|
|
17
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
18
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
|
|
18
19
|
/**
|
|
19
20
|
* Organization ID to fetch usage metrics for
|
|
20
21
|
*/
|
|
21
22
|
orgId?: string;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
24
25
|
*/
|
|
25
26
|
startTimestamp?: number;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
28
29
|
*/
|
|
29
30
|
endTimestamp?: number;
|
|
30
31
|
/**
|
|
@@ -36,21 +37,21 @@ declare class DataApiUsageMetricsService {
|
|
|
36
37
|
*/
|
|
37
38
|
groupBy?: UsageMetricsGroupByEnum;
|
|
38
39
|
/**
|
|
39
|
-
* Filter data by
|
|
40
|
+
* Filter data by chain ID.
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
chainId?: string;
|
|
42
43
|
/**
|
|
43
|
-
* Filter data by request
|
|
44
|
+
* Filter data by request path.
|
|
44
45
|
*/
|
|
45
|
-
|
|
46
|
+
requestPath?: string;
|
|
46
47
|
/**
|
|
47
48
|
* Filter data by response status code.
|
|
48
49
|
*/
|
|
49
50
|
responseCode?: string;
|
|
50
51
|
/**
|
|
51
|
-
* Filter data by
|
|
52
|
+
* Filter data by request type.
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
requestType?: 'data' | 'rpc';
|
|
54
55
|
/**
|
|
55
56
|
* Filter data by API key ID.
|
|
56
57
|
*/
|
|
@@ -62,35 +63,35 @@ declare class DataApiUsageMetricsService {
|
|
|
62
63
|
* @returns LogsResponseDTO Successful response
|
|
63
64
|
* @throws ApiError
|
|
64
65
|
*/
|
|
65
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
66
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
|
|
66
67
|
/**
|
|
67
68
|
* Organization ID to fetch usage metrics for
|
|
68
69
|
*/
|
|
69
70
|
orgId?: string;
|
|
70
71
|
/**
|
|
71
|
-
*
|
|
72
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
72
73
|
*/
|
|
73
74
|
startTimestamp?: number;
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
76
77
|
*/
|
|
77
78
|
endTimestamp?: number;
|
|
78
79
|
/**
|
|
79
|
-
* Filter data by
|
|
80
|
+
* Filter data by chain ID.
|
|
80
81
|
*/
|
|
81
|
-
|
|
82
|
+
chainId?: string;
|
|
82
83
|
/**
|
|
83
|
-
* Filter data by request
|
|
84
|
+
* Filter data by request path.
|
|
84
85
|
*/
|
|
85
|
-
|
|
86
|
+
requestPath?: string;
|
|
86
87
|
/**
|
|
87
88
|
* Filter data by response status code.
|
|
88
89
|
*/
|
|
89
90
|
responseCode?: string;
|
|
90
91
|
/**
|
|
91
|
-
* Filter data by
|
|
92
|
+
* Filter data by request type.
|
|
92
93
|
*/
|
|
93
|
-
|
|
94
|
+
requestType?: 'data' | 'rpc';
|
|
94
95
|
/**
|
|
95
96
|
* Filter data by API key ID.
|
|
96
97
|
*/
|
|
@@ -104,6 +105,50 @@ declare class DataApiUsageMetricsService {
|
|
|
104
105
|
*/
|
|
105
106
|
pageSize?: number;
|
|
106
107
|
}): CancelablePromise<LogsResponseDTO>;
|
|
108
|
+
/**
|
|
109
|
+
* Get usage metrics for the Subnet RPC
|
|
110
|
+
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
111
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
115
|
+
/**
|
|
116
|
+
* Query param for setting time interval of data aggregation.
|
|
117
|
+
*/
|
|
118
|
+
timeInterval?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
121
|
+
*/
|
|
122
|
+
startTimestamp?: number;
|
|
123
|
+
/**
|
|
124
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
125
|
+
*/
|
|
126
|
+
endTimestamp?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Query param for the criterion used for grouping metrics
|
|
129
|
+
*/
|
|
130
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
131
|
+
/**
|
|
132
|
+
* Filter data by chain ID.
|
|
133
|
+
*/
|
|
134
|
+
chainId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Filter data by request path.
|
|
137
|
+
*/
|
|
138
|
+
requestPath?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Filter data by response status code.
|
|
141
|
+
*/
|
|
142
|
+
responseCode?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Filter data by RPC method.
|
|
145
|
+
*/
|
|
146
|
+
rpcMethod?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Filter data by Rl Bypass API Token.
|
|
149
|
+
*/
|
|
150
|
+
rlBypassApiToken?: string;
|
|
151
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
107
152
|
}
|
|
108
153
|
|
|
109
154
|
export { DataApiUsageMetricsService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId:d},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."}})}getApiLogs({orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,requestPath:n,responseCode:a,requestType:i,apiKeyId:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,requestPath:n,responseCode:a,requestType:i,apiKeyId:o,pageToken:h,pageSize:d},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."}})}getRpcUsageMetrics({timeInterval:e="day",startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken:h}){return this.httpRequest.request({method:"GET",url:"/v1/rpcUsageMetrics",query:{timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken:h},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 DataApiUsageMetricsService};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiFeature } from '../models/ApiFeature.js';
|
|
2
2
|
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
3
|
+
import { ListAddressChainsResponse } from '../models/ListAddressChainsResponse.js';
|
|
3
4
|
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
4
5
|
import { Network } from '../models/Network.js';
|
|
5
6
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -36,6 +37,18 @@ declare class EvmChainsService {
|
|
|
36
37
|
*/
|
|
37
38
|
chainId: string;
|
|
38
39
|
}): CancelablePromise<GetChainResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Get chains for address
|
|
42
|
+
* Gets the list of chains an address has interacted with.
|
|
43
|
+
* @returns ListAddressChainsResponse Successful response
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
getAddressChains({ address, }: {
|
|
47
|
+
/**
|
|
48
|
+
* A wallet address.
|
|
49
|
+
*/
|
|
50
|
+
address: string;
|
|
51
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
39
52
|
}
|
|
40
53
|
|
|
41
54
|
export { EvmChainsService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:r},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."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId: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."}})}}export{e as EvmChainsService};
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:r},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."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId: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."}})}getAddressChains({address:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/address/{address}",path:{address: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."}})}}export{e as EvmChainsService};
|
|
@@ -272,6 +272,39 @@ declare class PrimaryNetworkService {
|
|
|
272
272
|
*/
|
|
273
273
|
nodeIds?: string;
|
|
274
274
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
275
|
+
/**
|
|
276
|
+
* List subnet-only validators
|
|
277
|
+
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
|
|
278
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
279
|
+
* @throws ApiError
|
|
280
|
+
*/
|
|
281
|
+
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
282
|
+
/**
|
|
283
|
+
* Either mainnet or testnet/fuji.
|
|
284
|
+
*/
|
|
285
|
+
network: Network;
|
|
286
|
+
/**
|
|
287
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
288
|
+
*/
|
|
289
|
+
pageToken?: string;
|
|
290
|
+
/**
|
|
291
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
292
|
+
*/
|
|
293
|
+
pageSize?: number;
|
|
294
|
+
/**
|
|
295
|
+
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
|
|
296
|
+
*/
|
|
297
|
+
sovValidationId?: any;
|
|
298
|
+
includeInactiveSovs?: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
301
|
+
*/
|
|
302
|
+
nodeId?: string;
|
|
303
|
+
/**
|
|
304
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
305
|
+
*/
|
|
306
|
+
subnetId?: any;
|
|
307
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
275
308
|
}
|
|
276
309
|
|
|
277
310
|
export { PrimaryNetworkService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId: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."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses: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."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network: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."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},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."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},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."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},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."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},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 PrimaryNetworkService};
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId: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."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses: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."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network: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."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},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."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},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."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},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."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},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."}})}listSubnetOnlyValidators({network:e,pageToken:r,pageSize:t=10,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnetOnlyValidators",path:{network:e},query:{pageToken:r,pageSize:t,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId:i},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 PrimaryNetworkService};
|