@avalabs/glacier-sdk 3.1.0-canary.db2e90e.0 → 3.1.0-canary.dbb51d6.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 (95) hide show
  1. package/dist/index.d.ts +755 -460
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -2
  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/BlockchainId.d.ts +2 -0
  11. package/esm/generated/models/BlockchainId.js +1 -1
  12. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  13. package/esm/generated/models/BlockchainIds.js +1 -1
  14. package/esm/generated/models/ChainInfo.d.ts +1 -1
  15. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  16. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  17. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  18. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  19. package/esm/generated/models/Forbidden.d.ts +16 -0
  20. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  21. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  22. package/esm/generated/models/InternalServerError.d.ts +16 -0
  23. package/esm/generated/models/LogsFormat.d.ts +1 -1
  24. package/esm/generated/models/Metric.d.ts +14 -0
  25. package/esm/generated/models/Network.d.ts +3 -1
  26. package/esm/generated/models/Network.js +1 -1
  27. package/esm/generated/models/NotFound.d.ts +16 -0
  28. package/esm/generated/models/PrimaryNetwork.d.ts +2 -1
  29. package/esm/generated/models/PrimaryNetwork.js +1 -1
  30. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  31. package/esm/generated/models/RequestType.d.ts +2 -2
  32. package/esm/generated/models/RequestType.js +1 -1
  33. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  34. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  35. package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
  36. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  37. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  38. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  39. package/esm/generated/models/TransactionDirectionType.js +1 -0
  40. package/esm/generated/models/Unauthorized.d.ts +16 -0
  41. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
  42. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
  43. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
  44. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  45. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  46. package/esm/generated/models/XChainId.d.ts +1 -0
  47. package/esm/generated/models/XChainId.js +1 -1
  48. package/esm/generated/services/{GlacierApiUsageMetricsService.d.ts → DataApiUsageMetricsService.d.ts} +37 -13
  49. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  50. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  51. package/esm/generated/services/EvmBalancesService.js +1 -1
  52. package/esm/generated/services/EvmBlocksService.d.ts +4 -4
  53. package/esm/generated/services/EvmBlocksService.js +1 -1
  54. package/esm/generated/services/EvmChainsService.d.ts +8 -8
  55. package/esm/generated/services/EvmChainsService.js +1 -1
  56. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  57. package/esm/generated/services/EvmContractsService.js +1 -1
  58. package/esm/generated/services/EvmTransactionsService.d.ts +24 -24
  59. package/esm/generated/services/EvmTransactionsService.js +1 -1
  60. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  61. package/esm/generated/services/HealthCheckService.js +1 -1
  62. package/esm/generated/services/NfTsService.d.ts +6 -6
  63. package/esm/generated/services/NfTsService.js +1 -1
  64. package/esm/generated/services/OperationsService.d.ts +2 -2
  65. package/esm/generated/services/OperationsService.js +1 -1
  66. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  67. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  68. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +6 -6
  69. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  70. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  71. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  72. package/esm/generated/services/PrimaryNetworkService.d.ts +18 -18
  73. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  74. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
  75. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  76. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  77. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  78. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  79. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  80. package/esm/generated/services/RpcService.d.ts +2 -2
  81. package/esm/generated/services/RpcService.js +1 -1
  82. package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
  83. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  84. package/esm/generated/services/TeleporterService.d.ts +29 -5
  85. package/esm/generated/services/TeleporterService.js +1 -1
  86. package/esm/generated/services/WebhooksService.d.ts +10 -10
  87. package/esm/generated/services/WebhooksService.js +1 -1
  88. package/esm/index.d.ts +18 -3
  89. package/esm/index.js +1 -1
  90. package/package.json +2 -2
  91. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  92. package/esm/generated/models/GlacierApiFeature.js +0 -1
  93. package/esm/generated/models/NetworkType.d.ts +0 -6
  94. package/esm/generated/models/NetworkType.js +0 -1
  95. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
@@ -2,8 +2,10 @@ declare enum BlockchainIds {
2
2
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
3
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4
4
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
5
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
5
6
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
6
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
7
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
8
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
7
9
  }
8
10
 
9
11
  export { BlockchainIds };
@@ -1 +1 @@
1
- var _=(_=>(_._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",_._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",_._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",_._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",_.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",_))(_||{});export{_ as BlockchainIds};
1
+ var _=(_=>(_._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",_._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",_._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",_.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",_.V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU="vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",_))(_||{});export{_ as BlockchainIds};
@@ -20,7 +20,7 @@ type ChainInfo = {
20
20
  networkToken: NetworkToken;
21
21
  chainLogoUri?: string;
22
22
  private?: boolean;
23
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
23
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
24
24
  };
25
25
 
26
26
  export { ChainInfo };
@@ -14,6 +14,7 @@ type CompletedValidatorDetails = {
14
14
  */
15
15
  blsCredentials?: BlsCredentials;
16
16
  delegatorCount: number;
17
+ amountDelegated?: string;
17
18
  rewards: Rewards;
18
19
  validationStatus: CompletedValidatorDetails.validationStatus;
19
20
  };
@@ -3,16 +3,16 @@ import { EVMOperationType } from './EVMOperationType.js';
3
3
 
4
4
  type CreateEvmTransactionExportRequest = {
5
5
  type: EVMOperationType;
6
- firstDate: string;
7
- lastDate: string;
6
+ firstDate?: string;
7
+ lastDate?: string;
8
8
  /**
9
9
  * @deprecated
10
10
  */
11
- startDate: string;
11
+ startDate?: string;
12
12
  /**
13
13
  * @deprecated
14
14
  */
15
- endDate: string;
15
+ endDate?: string;
16
16
  options: EvmNetworkOptions;
17
17
  };
18
18
 
@@ -3,16 +3,16 @@ import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
3
3
 
4
4
  type CreatePrimaryNetworkTransactionExportRequest = {
5
5
  type: PrimaryNetworkOperationType;
6
- firstDate: string;
7
- lastDate: string;
6
+ firstDate?: string;
7
+ lastDate?: string;
8
8
  /**
9
9
  * @deprecated
10
10
  */
11
- startDate: string;
11
+ startDate?: string;
12
12
  /**
13
13
  * @deprecated
14
14
  */
15
- endDate: string;
15
+ endDate?: string;
16
16
  options: PrimaryNetworkOptions;
17
17
  };
18
18
 
@@ -0,0 +1,7 @@
1
+ import { ChainInfo } from './ChainInfo.js';
2
+
3
+ type DataListChainsResponse = {
4
+ chains: Array<ChainInfo>;
5
+ };
6
+
7
+ export { DataListChainsResponse };
@@ -0,0 +1,16 @@
1
+ type Forbidden = {
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 { Forbidden };
@@ -20,7 +20,7 @@ type GetChainResponse = {
20
20
  networkToken: NetworkToken;
21
21
  chainLogoUri?: string;
22
22
  private?: boolean;
23
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
23
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
24
24
  };
25
25
 
26
26
  export { GetChainResponse };
@@ -4,6 +4,7 @@ import { Erc721TransferDetails } from './Erc721TransferDetails.js';
4
4
  import { FullNativeTransactionDetails } from './FullNativeTransactionDetails.js';
5
5
  import { InternalTransactionDetails } from './InternalTransactionDetails.js';
6
6
  import { NetworkTokenDetails } from './NetworkTokenDetails.js';
7
+ import { TeleporterMessageInfo } from './TeleporterMessageInfo.js';
7
8
 
8
9
  type GetTransactionResponse = {
9
10
  /**
@@ -24,6 +25,10 @@ type GetTransactionResponse = {
24
25
  internalTransactions?: Array<InternalTransactionDetails>;
25
26
  networkTokenDetails: NetworkTokenDetails;
26
27
  nativeTransaction: FullNativeTransactionDetails;
28
+ /**
29
+ * Corresponding teleporter message info if available.
30
+ */
31
+ teleporterMessageInfo?: TeleporterMessageInfo;
27
32
  };
28
33
 
29
34
  export { GetTransactionResponse };
@@ -0,0 +1,16 @@
1
+ type InternalServerError = {
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 { InternalServerError };
@@ -46,7 +46,7 @@ type LogsFormat = {
46
46
  /**
47
47
  * The chain id of the request.
48
48
  */
49
- chainId?: number;
49
+ chainId?: string;
50
50
  /**
51
51
  * The rpc method of the request.
52
52
  */
@@ -0,0 +1,14 @@
1
+ import { UsageMetricsValueDTO } from './UsageMetricsValueDTO.js';
2
+
3
+ type Metric = {
4
+ /**
5
+ * The timestamp of the metrics value
6
+ */
7
+ timestamp: number;
8
+ /**
9
+ * The metrics values for the timestamp
10
+ */
11
+ values: Array<UsageMetricsValueDTO>;
12
+ };
13
+
14
+ export { Metric };
@@ -1,6 +1,8 @@
1
1
  declare enum Network {
2
2
  MAINNET = "mainnet",
3
- FUJI = "fuji"
3
+ FUJI = "fuji",
4
+ TESTNET = "testnet",
5
+ DEVNET = "devnet"
4
6
  }
5
7
 
6
8
  export { Network };
@@ -1 +1 @@
1
- var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as Network};
1
+ var e=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.TESTNET="testnet",e.DEVNET="devnet",e))(e||{});export{e as Network};
@@ -0,0 +1,16 @@
1
+ type NotFound = {
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 { NotFound };
@@ -1,6 +1,7 @@
1
1
  declare enum PrimaryNetwork {
2
2
  MAINNET = "mainnet",
3
- FUJI = "fuji"
3
+ FUJI = "fuji",
4
+ DEVNET = "devnet"
4
5
  }
5
6
 
6
7
  export { PrimaryNetwork };
@@ -1 +1 @@
1
- var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as PrimaryNetwork};
1
+ var e=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.DEVNET="devnet",e))(e||{});export{e as PrimaryNetwork};
@@ -1,7 +1,7 @@
1
1
  type PrimaryNetworkOptions = {
2
2
  addresses?: Array<string>;
3
3
  cChainEvmAddresses?: Array<string>;
4
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
4
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
5
5
  };
6
6
 
7
7
  export { PrimaryNetworkOptions };
@@ -2,8 +2,8 @@
2
2
  * The type of request made by the client.
3
3
  */
4
4
  declare enum RequestType {
5
- GLACIER_API_REQUEST = "Glacier API Request",
6
- GLACIER_RPC_REQUEST = "Glacier RPC Request"
5
+ DATA = "data",
6
+ RPC = "rpc"
7
7
  }
8
8
 
9
9
  export { RequestType };
@@ -1 +1 @@
1
- var R=(R=>(R.GLACIER_API_REQUEST="Glacier API Request",R.GLACIER_RPC_REQUEST="Glacier RPC Request",R))(R||{});export{R as RequestType};
1
+ var a=(a=>(a.DATA="data",a.RPC="rpc",a))(a||{});export{a as RequestType};
@@ -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,14 @@
1
+ type SignatureAggregatorRequest = {
2
+ /**
3
+ * Must be defined if justification is not defined
4
+ */
5
+ message?: string;
6
+ /**
7
+ * Must be defined if message is not defined
8
+ */
9
+ justification?: string;
10
+ signingSubnetId?: string;
11
+ quorumPercentage?: number;
12
+ };
13
+
14
+ export { SignatureAggregatorRequest };
@@ -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 };
@@ -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};
@@ -5,16 +5,16 @@ import { UsageMetricsResponseDTO } from '../models/UsageMetricsResponseDTO.js';
5
5
  import { CancelablePromise } from '../core/CancelablePromise.js';
6
6
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
7
 
8
- declare class GlacierApiUsageMetricsService {
8
+ declare class DataApiUsageMetricsService {
9
9
  readonly httpRequest: BaseHttpRequest;
10
10
  constructor(httpRequest: BaseHttpRequest);
11
11
  /**
12
- * Get usage metrics for the Glacier API
13
- * Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
14
- * @returns UsageMetricsResponseDTO
12
+ * Get usage metrics for the Data API
13
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
14
+ * @returns UsageMetricsResponseDTO Successful response
15
15
  * @throws ApiError
16
16
  */
17
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, responseStatusCode, chainId, apiKeyId, }: {
17
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
18
18
  /**
19
19
  * Organization ID to fetch usage metrics for
20
20
  */
@@ -36,29 +36,33 @@ declare class GlacierApiUsageMetricsService {
36
36
  */
37
37
  groupBy?: UsageMetricsGroupByEnum;
38
38
  /**
39
- * Filter aggregated usage metrics by request path.
39
+ * Filter data by request path.
40
40
  */
41
41
  requestPath?: string;
42
42
  /**
43
- * Filter aggregated usage metrics by response status code.
43
+ * Filter data by request type.
44
44
  */
45
- responseStatusCode?: string;
45
+ requestType?: 'data' | 'rpc';
46
46
  /**
47
- * Filter aggregated usage metrics by chain ID.
47
+ * Filter data by response status code.
48
+ */
49
+ responseCode?: string;
50
+ /**
51
+ * Filter data by chain ID.
48
52
  */
49
53
  chainId?: string;
50
54
  /**
51
- * Filter aggregated usage metrics by API key ID.
55
+ * Filter data by API key ID.
52
56
  */
53
57
  apiKeyId?: string;
54
58
  }): CancelablePromise<UsageMetricsResponseDTO>;
55
59
  /**
56
60
  * Get logs for requests made by client
57
61
  * Gets logs for requests made by client over a specified time interval for a specific organization.
58
- * @returns LogsResponseDTO
62
+ * @returns LogsResponseDTO Successful response
59
63
  * @throws ApiError
60
64
  */
61
- getApiLogss({ orgId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
65
+ getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
62
66
  /**
63
67
  * Organization ID to fetch usage metrics for
64
68
  */
@@ -71,6 +75,26 @@ declare class GlacierApiUsageMetricsService {
71
75
  * Query param for retrieving items before a specific timestamp.
72
76
  */
73
77
  endTimestamp?: number;
78
+ /**
79
+ * Filter data by request path.
80
+ */
81
+ requestPath?: string;
82
+ /**
83
+ * Filter data by request type.
84
+ */
85
+ requestType?: 'data' | 'rpc';
86
+ /**
87
+ * Filter data by response status code.
88
+ */
89
+ responseCode?: string;
90
+ /**
91
+ * Filter data by chain ID.
92
+ */
93
+ chainId?: string;
94
+ /**
95
+ * Filter data by API key ID.
96
+ */
97
+ apiKeyId?: string;
74
98
  /**
75
99
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
76
100
  */
@@ -82,4 +106,4 @@ declare class GlacierApiUsageMetricsService {
82
106
  }): CancelablePromise<LogsResponseDTO>;
83
107
  }
84
108
 
85
- export { GlacierApiUsageMetricsService };
109
+ export { DataApiUsageMetricsService };
@@ -0,0 +1 @@
1
+ class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,requestPath:a,requestType:i,responseCode:o,chainId:h,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,requestPath:a,requestType:i,responseCode:o,chainId: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,requestPath:s,requestType:n,responseCode:a,chainId:i,apiKeyId:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,requestPath:s,requestType:n,responseCode:a,chainId: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."}})}}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
  /**