@avalabs/glacier-sdk 3.1.0-canary.efe2f7b.0 → 3.1.0-canary.f0743b0.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.
Files changed (136) hide show
  1. package/dist/index.d.ts +1372 -602
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -4
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  6. package/esm/generated/models/ApiFeature.d.ts +7 -0
  7. package/esm/generated/models/ApiFeature.js +1 -0
  8. package/esm/generated/models/BadGateway.d.ts +16 -0
  9. package/esm/generated/models/BadRequest.d.ts +16 -0
  10. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  11. package/esm/generated/models/BlockchainId.d.ts +2 -0
  12. package/esm/generated/models/BlockchainId.js +1 -1
  13. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  14. package/esm/generated/models/BlockchainIds.js +1 -1
  15. package/esm/generated/models/ChainInfo.d.ts +1 -1
  16. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  17. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  18. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  19. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  20. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  21. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  22. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  23. package/esm/generated/models/EvmBlock.d.ts +4 -0
  24. package/esm/generated/models/Forbidden.d.ts +16 -0
  25. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  26. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  27. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  28. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  29. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  30. package/esm/generated/models/InternalServerError.d.ts +16 -0
  31. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  32. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  33. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  34. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  35. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  36. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  37. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  38. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  39. package/esm/generated/models/LogsFormat.d.ts +1 -1
  40. package/esm/generated/models/Metric.d.ts +14 -0
  41. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  42. package/esm/generated/models/Network.d.ts +3 -1
  43. package/esm/generated/models/Network.js +1 -1
  44. package/esm/generated/models/NotFound.d.ts +16 -0
  45. package/esm/generated/models/PChainTransaction.d.ts +14 -0
  46. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  47. package/esm/generated/models/PChainTransactionType.js +1 -1
  48. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  49. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  50. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  51. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  52. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  53. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  54. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  55. package/esm/generated/models/RequestType.d.ts +2 -2
  56. package/esm/generated/models/RequestType.js +1 -1
  57. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  58. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  59. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  60. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
  61. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  62. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  63. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  64. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  65. package/esm/generated/models/Subnet.d.ts +13 -0
  66. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  67. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  68. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  69. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  70. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  71. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  72. package/esm/generated/models/TransactionDirectionType.js +1 -0
  73. package/esm/generated/models/Unauthorized.d.ts +16 -0
  74. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  75. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
  76. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
  77. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
  78. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  79. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  80. package/esm/generated/models/XChainId.d.ts +1 -0
  81. package/esm/generated/models/XChainId.js +1 -1
  82. package/esm/generated/services/DataApiUsageMetricsService.d.ts +204 -0
  83. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  84. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  85. package/esm/generated/services/EvmBalancesService.js +1 -1
  86. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  87. package/esm/generated/services/EvmBlocksService.js +1 -1
  88. package/esm/generated/services/EvmChainsService.d.ts +86 -8
  89. package/esm/generated/services/EvmChainsService.js +1 -1
  90. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  91. package/esm/generated/services/EvmContractsService.js +1 -1
  92. package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
  93. package/esm/generated/services/EvmTransactionsService.js +1 -1
  94. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  95. package/esm/generated/services/HealthCheckService.js +1 -1
  96. package/esm/generated/services/NfTsService.d.ts +6 -6
  97. package/esm/generated/services/NfTsService.js +1 -1
  98. package/esm/generated/services/OperationsService.d.ts +2 -2
  99. package/esm/generated/services/OperationsService.js +1 -1
  100. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  101. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  102. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  103. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  104. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  105. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  106. package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
  107. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  108. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  109. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  110. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  111. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  112. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  113. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  114. package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
  115. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  116. package/esm/generated/services/TeleporterService.d.ts +34 -6
  117. package/esm/generated/services/TeleporterService.js +1 -1
  118. package/esm/generated/services/WebhooksService.d.ts +10 -10
  119. package/esm/generated/services/WebhooksService.js +1 -1
  120. package/esm/index.d.ts +30 -9
  121. package/esm/index.js +1 -1
  122. package/package.json +2 -2
  123. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  124. package/esm/generated/models/GlacierApiFeature.js +0 -1
  125. package/esm/generated/models/NetworkType.d.ts +0 -6
  126. package/esm/generated/models/NetworkType.js +0 -1
  127. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  128. package/esm/generated/models/PrimaryNetwork.js +0 -1
  129. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  130. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  131. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  132. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  133. package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -85
  134. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
  135. package/esm/generated/services/RpcService.d.ts +0 -25
  136. package/esm/generated/services/RpcService.js +0 -1
@@ -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,7 @@
1
+ declare enum RpcUsageMetricsGroupByEnum {
2
+ RPC_METHOD = "rpcMethod",
3
+ RESPONSE_CODE = "responseCode",
4
+ RL_BYPASS_TOKEN = "rlBypassToken"
5
+ }
6
+
7
+ export { RpcUsageMetricsGroupByEnum };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.RPC_METHOD="rpcMethod",e.RESPONSE_CODE="responseCode",e.RL_BYPASS_TOKEN="rlBypassToken",e))(e||{});export{e as RpcUsageMetricsGroupByEnum};
@@ -0,0 +1,51 @@
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
+ * The number of API credits wasted on invalid requests
28
+ */
29
+ apiCreditsWasted: number;
30
+ /**
31
+ * Column name used for data aggregation
32
+ */
33
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
34
+ /**
35
+ * The value of the column used for data aggregation
36
+ */
37
+ groupValue?: (string | number);
38
+ };
39
+ declare namespace RpcUsageMetricsValueAggregated {
40
+ /**
41
+ * Column name used for data aggregation
42
+ */
43
+ enum groupedBy {
44
+ RPC_METHOD = "rpcMethod",
45
+ RESPONSE_CODE = "responseCode",
46
+ RL_BYPASS_TOKEN = "rlBypassToken",
47
+ NONE = "None"
48
+ }
49
+ }
50
+
51
+ 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};
@@ -0,0 +1,16 @@
1
+ type ServiceUnavailable = {
2
+ /**
3
+ * The error message describing the reason for the exception
4
+ */
5
+ message: (string | Array<string>);
6
+ /**
7
+ * The HTTP status code of the response
8
+ */
9
+ statusCode: number;
10
+ /**
11
+ * The type of error
12
+ */
13
+ error: string;
14
+ };
15
+
16
+ export { ServiceUnavailable };
@@ -0,0 +1,5 @@
1
+ type SignatureAggregationResponse = {
2
+ signedMessage: string;
3
+ };
4
+
5
+ export { SignatureAggregationResponse };
@@ -0,0 +1,8 @@
1
+ type SignatureAggregatorRequest = {
2
+ message: string;
3
+ justification?: string;
4
+ signingSubnetId?: string;
5
+ quorumPercentage?: number;
6
+ };
7
+
8
+ export { SignatureAggregatorRequest };
@@ -1,4 +1,5 @@
1
1
  import { BlockchainInfo } from './BlockchainInfo.js';
2
+ import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
2
3
  import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
3
4
 
4
5
  type Subnet = {
@@ -24,6 +25,18 @@ type Subnet = {
24
25
  * Latest subnet owner details for this Subnet.
25
26
  */
26
27
  subnetOwnershipInfo: SubnetOwnershipInfo;
28
+ /**
29
+ * Whether the subnet is an L1 or not.
30
+ */
31
+ isL1: boolean;
32
+ /**
33
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
34
+ */
35
+ l1ConversionTransactionHash?: string;
36
+ /**
37
+ * L1 validator manager details.
38
+ */
39
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
27
40
  blockchains: Array<BlockchainInfo>;
28
41
  };
29
42
 
@@ -0,0 +1,8 @@
1
+ declare enum SubnetRpcTimeIntervalGranularity {
2
+ HOURLY = "hourly",
3
+ DAILY = "daily",
4
+ WEEKLY = "weekly",
5
+ MONTHLY = "monthly"
6
+ }
7
+
8
+ export { SubnetRpcTimeIntervalGranularity };
@@ -0,0 +1 @@
1
+ var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as SubnetRpcTimeIntervalGranularity};
@@ -0,0 +1,18 @@
1
+ import { RpcMetrics } from './RpcMetrics.js';
2
+
3
+ type SubnetRpcUsageMetricsResponseDTO = {
4
+ /**
5
+ * Duration in which the metrics value is aggregated
6
+ */
7
+ aggregateDuration: string;
8
+ /**
9
+ * Metrics values
10
+ */
11
+ metrics: Array<RpcMetrics>;
12
+ /**
13
+ * ChainId for which the metrics are aggregated
14
+ */
15
+ chainId: string;
16
+ };
17
+
18
+ export { SubnetRpcUsageMetricsResponseDTO };
@@ -0,0 +1,16 @@
1
+ import { TransactionDirectionType } from './TransactionDirectionType.js';
2
+
3
+ type TeleporterMessageInfo = {
4
+ teleporterMessageId: string;
5
+ direction: TransactionDirectionType;
6
+ /**
7
+ * chain id of the source chain. valid only for destination transactions
8
+ */
9
+ sourceChainId?: Record<string, any>;
10
+ /**
11
+ * chain id of the destination chain. valid only for source transactions
12
+ */
13
+ destinationChainId?: Record<string, any>;
14
+ };
15
+
16
+ export { TeleporterMessageInfo };
@@ -0,0 +1,16 @@
1
+ type TooManyRequests = {
2
+ /**
3
+ * The error message describing the reason for the exception
4
+ */
5
+ message: (string | Array<string>);
6
+ /**
7
+ * The HTTP status code of the response
8
+ */
9
+ statusCode: number;
10
+ /**
11
+ * The type of error
12
+ */
13
+ error: string;
14
+ };
15
+
16
+ export { TooManyRequests };
@@ -0,0 +1,6 @@
1
+ declare enum TransactionDirectionType {
2
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
3
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
4
+ }
5
+
6
+ export { TransactionDirectionType };
@@ -0,0 +1 @@
1
+ var N=(N=>(N.SOURCE_TRANSACTION="SOURCE_TRANSACTION",N.DESTINATION_TRANSACTION="DESTINATION_TRANSACTION",N))(N||{});export{N as TransactionDirectionType};
@@ -0,0 +1,16 @@
1
+ type Unauthorized = {
2
+ /**
3
+ * The error message describing the reason for the exception
4
+ */
5
+ message: (string | Array<string>);
6
+ /**
7
+ * The HTTP status code of the response
8
+ */
9
+ statusCode: number;
10
+ /**
11
+ * The type of error
12
+ */
13
+ error: string;
14
+ };
15
+
16
+ export { Unauthorized };
@@ -5,6 +5,9 @@ type UpdateWebhookRequest = {
5
5
  description?: string;
6
6
  url?: string;
7
7
  status?: WebhookStatusType;
8
+ /**
9
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
10
+ */
8
11
  includeInternalTxs?: boolean;
9
12
  includeLogs?: boolean;
10
13
  };
@@ -2,7 +2,8 @@ declare enum UsageMetricsGroupByEnum {
2
2
  REQUEST_PATH = "requestPath",
3
3
  RESPONSE_CODE = "responseCode",
4
4
  CHAIN_ID = "chainId",
5
- API_KEY_ID = "apiKeyId"
5
+ API_KEY_ID = "apiKeyId",
6
+ REQUEST_TYPE = "requestType"
6
7
  }
7
8
 
8
9
  export { UsageMetricsGroupByEnum };
@@ -1 +1 @@
1
- var e=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e))(e||{});export{e as UsageMetricsGroupByEnum};
1
+ var e=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e.REQUEST_TYPE="requestType",e))(e||{});export{e as UsageMetricsGroupByEnum};
@@ -1,3 +1,5 @@
1
+ import { Metric } from './Metric.js';
2
+
1
3
  type UsageMetricsResponseDTO = {
2
4
  /**
3
5
  * Duration in which the metrics value is aggregated
@@ -10,7 +12,7 @@ type UsageMetricsResponseDTO = {
10
12
  /**
11
13
  * Metrics values
12
14
  */
13
- metrics: Array<string>;
15
+ metrics: Array<Metric>;
14
16
  };
15
17
 
16
18
  export { UsageMetricsResponseDTO };
@@ -0,0 +1,53 @@
1
+ type UsageMetricsValueDTO = {
2
+ /**
3
+ * Column name used for data aggregation
4
+ */
5
+ groupedBy: UsageMetricsValueDTO.groupedBy;
6
+ /**
7
+ * The value of the column used for data aggregation
8
+ */
9
+ groupValue?: (string | number);
10
+ /**
11
+ * The total number of requests
12
+ */
13
+ totalRequests: number;
14
+ /**
15
+ * The number of requests per second
16
+ */
17
+ requestsPerSecond: number;
18
+ /**
19
+ * The success rate percentage
20
+ */
21
+ successRatePercent: number;
22
+ /**
23
+ * The median response time in milliseconds
24
+ */
25
+ medianResponseTimeMsecs: number;
26
+ /**
27
+ * The number of invalid requests
28
+ */
29
+ invalidRequests: number;
30
+ /**
31
+ * The number of API credits used
32
+ */
33
+ apiCreditsUsed: number;
34
+ /**
35
+ * The number of API credits wasted on invalid requests
36
+ */
37
+ apiCreditsWasted: number;
38
+ };
39
+ declare namespace UsageMetricsValueDTO {
40
+ /**
41
+ * Column name used for data aggregation
42
+ */
43
+ enum groupedBy {
44
+ REQUEST_PATH = "requestPath",
45
+ RESPONSE_CODE = "responseCode",
46
+ CHAIN_ID = "chainId",
47
+ API_KEY_ID = "apiKeyId",
48
+ REQUEST_TYPE = "requestType",
49
+ NONE = "None"
50
+ }
51
+ }
52
+
53
+ export { UsageMetricsValueDTO };
@@ -0,0 +1 @@
1
+ var e,E,r;E=e||(e={}),(r=E.groupedBy||(E.groupedBy={})).REQUEST_PATH="requestPath",r.RESPONSE_CODE="responseCode",r.CHAIN_ID="chainId",r.API_KEY_ID="apiKeyId",r.REQUEST_TYPE="requestType",r.NONE="None";export{e as UsageMetricsValueDTO};
@@ -1,6 +1,7 @@
1
1
  declare enum XChainId {
2
2
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3
3
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
4
5
  X_CHAIN = "x-chain"
5
6
  }
6
7
 
@@ -1 +1 @@
1
- var N=(N=>(N._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",N._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",N.X_CHAIN="x-chain",N))(N||{});export{N as XChainId};
1
+ var _=(_=>(_._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",_._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",_._2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V="2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",_.X_CHAIN="x-chain",_))(_||{});export{_ as XChainId};
@@ -0,0 +1,204 @@
1
+ import { LogsResponseDTO } from '../models/LogsResponseDTO.js';
2
+ import { Network } from '../models/Network.js';
3
+ import { PrimaryNetworkRpcMetricsGroupByEnum } from '../models/PrimaryNetworkRpcMetricsGroupByEnum.js';
4
+ import { RpcUsageMetricsGroupByEnum } from '../models/RpcUsageMetricsGroupByEnum.js';
5
+ import { SubnetRpcTimeIntervalGranularity } from '../models/SubnetRpcTimeIntervalGranularity.js';
6
+ import { SubnetRpcUsageMetricsResponseDTO } from '../models/SubnetRpcUsageMetricsResponseDTO.js';
7
+ import { TimeIntervalGranularityExtended } from '../models/TimeIntervalGranularityExtended.js';
8
+ import { UsageMetricsGroupByEnum } from '../models/UsageMetricsGroupByEnum.js';
9
+ import { UsageMetricsResponseDTO } from '../models/UsageMetricsResponseDTO.js';
10
+ import { CancelablePromise } from '../core/CancelablePromise.js';
11
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
12
+
13
+ declare class DataApiUsageMetricsService {
14
+ readonly httpRequest: BaseHttpRequest;
15
+ constructor(httpRequest: BaseHttpRequest);
16
+ /**
17
+ * Get usage metrics for the Data API
18
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
19
+ * @returns UsageMetricsResponseDTO Successful response
20
+ * @throws ApiError
21
+ */
22
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
23
+ /**
24
+ * Organization ID to fetch usage metrics for
25
+ */
26
+ orgId?: string;
27
+ /**
28
+ * 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.
29
+ */
30
+ startTimestamp?: number;
31
+ /**
32
+ * 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.
33
+ */
34
+ endTimestamp?: number;
35
+ /**
36
+ * Time interval granularity for data aggregation
37
+ */
38
+ timeInterval?: TimeIntervalGranularityExtended;
39
+ /**
40
+ * Query param for the criterion used for grouping metrics
41
+ */
42
+ groupBy?: UsageMetricsGroupByEnum;
43
+ /**
44
+ * Filter data by chain ID.
45
+ */
46
+ chainId?: string;
47
+ /**
48
+ * Filter data by response status code.
49
+ */
50
+ responseCode?: string;
51
+ /**
52
+ * Filter data by request type.
53
+ */
54
+ requestType?: 'data' | 'rpc';
55
+ /**
56
+ * Filter data by API key ID.
57
+ */
58
+ apiKeyId?: string;
59
+ /**
60
+ * Filter data by request path.
61
+ */
62
+ requestPath?: string;
63
+ }): CancelablePromise<UsageMetricsResponseDTO>;
64
+ /**
65
+ * Get logs for requests made by client
66
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
67
+ * @returns LogsResponseDTO Successful response
68
+ * @throws ApiError
69
+ */
70
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
71
+ /**
72
+ * Organization ID to fetch usage metrics for
73
+ */
74
+ orgId?: string;
75
+ /**
76
+ * 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.
77
+ */
78
+ startTimestamp?: number;
79
+ /**
80
+ * 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.
81
+ */
82
+ endTimestamp?: number;
83
+ /**
84
+ * Filter data by chain ID.
85
+ */
86
+ chainId?: string;
87
+ /**
88
+ * Filter data by response status code.
89
+ */
90
+ responseCode?: string;
91
+ /**
92
+ * Filter data by request type.
93
+ */
94
+ requestType?: 'data' | 'rpc';
95
+ /**
96
+ * Filter data by API key ID.
97
+ */
98
+ apiKeyId?: string;
99
+ /**
100
+ * Filter data by request path.
101
+ */
102
+ requestPath?: string;
103
+ /**
104
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
105
+ */
106
+ pageToken?: string;
107
+ /**
108
+ * The maximum number of items to return.
109
+ */
110
+ pageSize?: number;
111
+ }): CancelablePromise<LogsResponseDTO>;
112
+ /**
113
+ * Get usage metrics for the Subnet RPC
114
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
115
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
116
+ * @throws ApiError
117
+ */
118
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
119
+ /**
120
+ * Time interval granularity for data aggregation for subnet
121
+ * rpc metrics
122
+ */
123
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
124
+ /**
125
+ * 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.
126
+ */
127
+ startTimestamp?: number;
128
+ /**
129
+ * 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.
130
+ */
131
+ endTimestamp?: number;
132
+ /**
133
+ * Query param for the criterion used for grouping metrics
134
+ */
135
+ groupBy?: RpcUsageMetricsGroupByEnum;
136
+ /**
137
+ * Filter data by chain ID.
138
+ */
139
+ chainId?: string;
140
+ /**
141
+ * Filter data by response status code.
142
+ */
143
+ responseCode?: string;
144
+ /**
145
+ * Filter data by RPC method.
146
+ */
147
+ rpcMethod?: string;
148
+ /**
149
+ * Filter data by Rl Bypass API Token.
150
+ */
151
+ rlBypassApiToken?: string;
152
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
153
+ /**
154
+ * Get usage metrics for the Primary Network RPC
155
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
156
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
157
+ * @throws ApiError
158
+ */
159
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
160
+ /**
161
+ * Either mainnet or testnet/fuji.
162
+ */
163
+ network: Network;
164
+ /**
165
+ * Time interval granularity for data aggregation for subnet
166
+ * rpc metrics
167
+ */
168
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
169
+ /**
170
+ * 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.
171
+ */
172
+ startTimestamp?: number;
173
+ /**
174
+ * 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.
175
+ */
176
+ endTimestamp?: number;
177
+ /**
178
+ * Query param for the criterion used for grouping metrics
179
+ */
180
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
181
+ /**
182
+ * Filter data by response status code.
183
+ */
184
+ responseCode?: string;
185
+ /**
186
+ * Filter data by request path.
187
+ */
188
+ requestPath?: string;
189
+ /**
190
+ * Filter data by Country.
191
+ */
192
+ country?: string;
193
+ /**
194
+ * Filter data by Continent.
195
+ */
196
+ continent?: string;
197
+ /**
198
+ * Filter data by User Agent.
199
+ */
200
+ userAgent?: string;
201
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
202
+ }
203
+
204
+ export { DataApiUsageMetricsService };
@@ -0,0 +1 @@
1
+ class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,responseCode:i,requestType:o,apiKeyId:h,requestPath:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,responseCode:i,requestType:o,apiKeyId:h,requestPath: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,responseCode:n,requestType:a,apiKeyId:i,requestPath:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,responseCode:n,requestType:a,apiKeyId:i,requestPath: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,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,responseCode:a,rpcMethod:i,rlBypassApiToken:o}){return this.httpRequest.request({method:"GET",url:"/v1/rpcUsageMetrics",query:{timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,responseCode:a,rpcMethod:i,rlBypassApiToken: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."}})}getPrimaryNetworkRpcUsageMetrics({network:e,timeInterval:r,startTimestamp:t,endTimestamp:s,groupBy:n,responseCode:a,requestPath:i,country:o,continent:h,userAgent:d}){return this.httpRequest.request({method:"GET",url:"/v1/primaryNetworkRpcUsageMetrics",query:{timeInterval:r,startTimestamp:t,endTimestamp:s,groupBy:n,responseCode:a,requestPath:i,country:o,continent:h,userAgent:d,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."}})}}export{e as DataApiUsageMetricsService};
@@ -15,12 +15,12 @@ declare class EvmBalancesService {
15
15
  * Gets native token balance of a wallet address.
16
16
  *
17
17
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
18
- * @returns GetNativeBalanceResponse
18
+ * @returns GetNativeBalanceResponse Successful response
19
19
  * @throws ApiError
20
20
  */
21
21
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
22
22
  /**
23
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
23
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
24
24
  */
25
25
  chainId: string;
26
26
  /**
@@ -43,12 +43,12 @@ declare class EvmBalancesService {
43
43
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
44
44
  *
45
45
  * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
46
- * @returns ListErc20BalancesResponse
46
+ * @returns ListErc20BalancesResponse Successful response
47
47
  * @throws ApiError
48
48
  */
49
49
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
50
50
  /**
51
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
51
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
52
  */
53
53
  chainId: string;
54
54
  /**
@@ -85,12 +85,12 @@ declare class EvmBalancesService {
85
85
  * Lists ERC-721 token balances of a wallet address.
86
86
  *
87
87
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
88
- * @returns ListErc721BalancesResponse
88
+ * @returns ListErc721BalancesResponse Successful response
89
89
  * @throws ApiError
90
90
  */
91
91
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
92
92
  /**
93
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
93
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
94
94
  */
95
95
  chainId: string;
96
96
  /**
@@ -117,12 +117,12 @@ declare class EvmBalancesService {
117
117
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
118
118
  *
119
119
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
120
- * @returns ListErc1155BalancesResponse
120
+ * @returns ListErc1155BalancesResponse Successful response
121
121
  * @throws ApiError
122
122
  */
123
123
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
124
124
  /**
125
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
125
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
126
126
  */
127
127
  chainId: string;
128
128
  /**
@@ -151,12 +151,12 @@ declare class EvmBalancesService {
151
151
  * Lists ERC-721 and ERC-1155 token balances of a wallet address.
152
152
  *
153
153
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
154
- * @returns ListCollectibleBalancesResponse
154
+ * @returns ListCollectibleBalancesResponse Successful response
155
155
  * @throws ApiError
156
156
  */
157
157
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
158
158
  /**
159
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
159
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
160
160
  */
161
161
  chainId: string;
162
162
  /**