@avalabs/glacier-sdk 3.1.0-canary.1784917.0 → 3.1.0-canary.18b53a8.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 (29) hide show
  1. package/dist/index.d.ts +1262 -1210
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +2 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/ApiFeature.d.ts +7 -0
  6. package/esm/generated/models/ApiFeature.js +1 -0
  7. package/esm/generated/models/ChainInfo.d.ts +1 -1
  8. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  9. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  10. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  11. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  12. package/esm/generated/models/RequestType.d.ts +2 -2
  13. package/esm/generated/models/RequestType.js +1 -1
  14. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  15. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  16. package/esm/generated/models/TransactionDirectionType.js +1 -0
  17. package/esm/generated/services/{GlacierApiUsageMetricsService.d.ts → DataApiUsageMetricsService.d.ts} +10 -10
  18. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  19. package/esm/generated/services/EvmChainsService.d.ts +2 -2
  20. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  21. package/esm/generated/services/HealthCheckService.js +1 -1
  22. package/esm/generated/services/TeleporterService.d.ts +24 -0
  23. package/esm/generated/services/TeleporterService.js +1 -1
  24. package/esm/index.d.ts +5 -2
  25. package/esm/index.js +1 -1
  26. package/package.json +2 -2
  27. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  28. package/esm/generated/models/GlacierApiFeature.js +0 -1
  29. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
@@ -1,12 +1,12 @@
1
1
  import { BaseHttpRequest } from './core/BaseHttpRequest.js';
2
2
  import { OpenAPIConfig } from './core/OpenAPI.js';
3
+ import { DataApiUsageMetricsService } from './services/DataApiUsageMetricsService.js';
3
4
  import { DefaultService } from './services/DefaultService.js';
4
5
  import { EvmBalancesService } from './services/EvmBalancesService.js';
5
6
  import { EvmBlocksService } from './services/EvmBlocksService.js';
6
7
  import { EvmChainsService } from './services/EvmChainsService.js';
7
8
  import { EvmContractsService } from './services/EvmContractsService.js';
8
9
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
9
- import { GlacierApiUsageMetricsService } from './services/GlacierApiUsageMetricsService.js';
10
10
  import { HealthCheckService } from './services/HealthCheckService.js';
11
11
  import { NfTsService } from './services/NfTsService.js';
12
12
  import { OperationsService } from './services/OperationsService.js';
@@ -23,13 +23,13 @@ import { WebhooksService } from './services/WebhooksService.js';
23
23
 
24
24
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
25
25
  declare class Glacier {
26
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
26
27
  readonly default: DefaultService;
27
28
  readonly evmBalances: EvmBalancesService;
28
29
  readonly evmBlocks: EvmBlocksService;
29
30
  readonly evmChains: EvmChainsService;
30
31
  readonly evmContracts: EvmContractsService;
31
32
  readonly evmTransactions: EvmTransactionsService;
32
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
33
33
  readonly healthCheck: HealthCheckService;
34
34
  readonly nfTs: NfTsService;
35
35
  readonly operations: OperationsService;
@@ -1 +1 @@
1
- import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DefaultService as r}from"./services/DefaultService.js";import{EvmBalancesService as s}from"./services/EvmBalancesService.js";import{EvmBlocksService as t}from"./services/EvmBlocksService.js";import{EvmChainsService as i}from"./services/EvmChainsService.js";import{EvmContractsService as o}from"./services/EvmContractsService.js";import{EvmTransactionsService as c}from"./services/EvmTransactionsService.js";import{GlacierApiUsageMetricsService as m}from"./services/GlacierApiUsageMetricsService.js";import{HealthCheckService as a}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 E}from"./services/PrimaryNetworkVerticesService.js";import{RpcService as u}from"./services/RpcService.js";import{TeleporterService as f}from"./services/TeleporterService.js";import{WebhooksService as l}from"./services/WebhooksService.js";class q{default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;glacierApiUsageMetrics;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;rpc;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.default=new r(this.request),this.evmBalances=new s(this.request),this.evmBlocks=new t(this.request),this.evmChains=new i(this.request),this.evmContracts=new o(this.request),this.evmTransactions=new c(this.request),this.glacierApiUsageMetrics=new m(this.request),this.healthCheck=new a(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 E(this.request),this.rpc=new u(this.request),this.teleporter=new f(this.request),this.webhooks=new l(this.request)}}export{q as Glacier};
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 c}from"./services/EvmContractsService.js";import{EvmTransactionsService as a}from"./services/EvmTransactionsService.js";import{HealthCheckService as m}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 E}from"./services/PrimaryNetworkVerticesService.js";import{RpcService as u}from"./services/RpcService.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;rpc;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 c(this.request),this.evmTransactions=new a(this.request),this.healthCheck=new m(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 E(this.request),this.rpc=new u(this.request),this.teleporter=new f(this.request),this.webhooks=new l(this.request)}}export{q as Glacier};
@@ -0,0 +1,7 @@
1
+ declare enum ApiFeature {
2
+ NFT_INDEXING = "nftIndexing",
3
+ WEBHOOKS = "webhooks",
4
+ TELEPORTER = "teleporter"
5
+ }
6
+
7
+ export { ApiFeature };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e.TELEPORTER="teleporter",e))(e||{});export{e as ApiFeature};
@@ -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
  };
@@ -0,0 +1,7 @@
1
+ import { ChainInfo } from './ChainInfo.js';
2
+
3
+ type DataListChainsResponse = {
4
+ chains: Array<ChainInfo>;
5
+ };
6
+
7
+ export { DataListChainsResponse };
@@ -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 };
@@ -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
+ 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,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};
@@ -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.
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
14
  * @returns UsageMetricsResponseDTO Successful response
15
15
  * @throws ApiError
16
16
  */
17
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, 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
  */
@@ -42,11 +42,11 @@ declare class GlacierApiUsageMetricsService {
42
42
  /**
43
43
  * Filter data by request type.
44
44
  */
45
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
45
+ requestType?: 'data' | 'rpc';
46
46
  /**
47
47
  * Filter data by response status code.
48
48
  */
49
- responseStatusCode?: string;
49
+ responseCode?: string;
50
50
  /**
51
51
  * Filter data by chain ID.
52
52
  */
@@ -62,7 +62,7 @@ declare class GlacierApiUsageMetricsService {
62
62
  * @returns LogsResponseDTO Successful response
63
63
  * @throws ApiError
64
64
  */
65
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseStatusCode, chainId, apiKeyId, pageToken, pageSize, }: {
65
+ getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
66
66
  /**
67
67
  * Organization ID to fetch usage metrics for
68
68
  */
@@ -82,11 +82,11 @@ declare class GlacierApiUsageMetricsService {
82
82
  /**
83
83
  * Filter data by request type.
84
84
  */
85
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
85
+ requestType?: 'data' | 'rpc';
86
86
  /**
87
87
  * Filter data by response status code.
88
88
  */
89
- responseStatusCode?: string;
89
+ responseCode?: string;
90
90
  /**
91
91
  * Filter data by chain ID.
92
92
  */
@@ -106,4 +106,4 @@ declare class GlacierApiUsageMetricsService {
106
106
  }): CancelablePromise<LogsResponseDTO>;
107
107
  }
108
108
 
109
- 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};
@@ -1,5 +1,5 @@
1
+ import { ApiFeature } from '../models/ApiFeature.js';
1
2
  import { GetChainResponse } from '../models/GetChainResponse.js';
2
- import { GlacierApiFeature } from '../models/GlacierApiFeature.js';
3
3
  import { ListChainsResponse } from '../models/ListChainsResponse.js';
4
4
  import { NetworkType } from '../models/NetworkType.js';
5
5
  import { CancelablePromise } from '../core/CancelablePromise.js';
@@ -22,7 +22,7 @@ declare class EvmChainsService {
22
22
  /**
23
23
  * Filter by feature.
24
24
  */
25
- feature?: GlacierApiFeature;
25
+ feature?: ApiFeature;
26
26
  }): CancelablePromise<ListChainsResponse>;
27
27
  /**
28
28
  * Get chain information
@@ -9,7 +9,7 @@ declare class HealthCheckService {
9
9
  * @returns any The Health Check is successful
10
10
  * @throws ApiError
11
11
  */
12
- glacierHealthCheck(): CancelablePromise<{
12
+ dataHealthCheck(): CancelablePromise<{
13
13
  status?: string;
14
14
  info?: Record<string, Record<string, string>> | null;
15
15
  error?: Record<string, Record<string, string>> | null;
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}glacierHealthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}export{e as HealthCheckService};
1
+ class t{constructor(t){this.httpRequest=t}dataHealthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}export{t as HealthCheckService};
@@ -61,6 +61,30 @@ declare class TeleporterService {
61
61
  */
62
62
  network?: NetworkType;
63
63
  }): CancelablePromise<ListTeleporterMessagesResponse>;
64
+ /**
65
+ * List teleporter messages by address
66
+ * Lists teleporter messages by address. Ordered by timestamp in descending order.
67
+ * @returns ListTeleporterMessagesResponse Successful response
68
+ * @throws ApiError
69
+ */
70
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
71
+ /**
72
+ * An EVM address.
73
+ */
74
+ address: string;
75
+ /**
76
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
77
+ */
78
+ pageToken?: string;
79
+ /**
80
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
81
+ */
82
+ pageSize?: number;
83
+ /**
84
+ * mainnet or testnet.
85
+ */
86
+ network?: NetworkType;
87
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
64
88
  }
65
89
 
66
90
  export { TeleporterService };
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTeleporterMessages({pageToken:e,pageSize:r=10,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:r,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as TeleporterService};
1
+ class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTeleporterMessages({pageToken:e,pageSize:r=10,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:r,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTeleporterMessagesByAddress({address:e,pageToken:r,pageSize:t=10,network:s}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/addresses/{address}/messages",path:{address:e},query:{pageToken:r,pageSize:t,network:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as TeleporterService};
package/esm/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetail
8
8
  export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
9
9
  export { AddressesChangeRequest } from './generated/models/AddressesChangeRequest.js';
10
10
  export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.js';
11
+ export { ApiFeature } from './generated/models/ApiFeature.js';
11
12
  export { AssetAmount } from './generated/models/AssetAmount.js';
12
13
  export { AssetWithPriceInfo } from './generated/models/AssetWithPriceInfo.js';
13
14
  export { BadGateway } from './generated/models/BadGateway.js';
@@ -37,6 +38,7 @@ export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmT
37
38
  export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
38
39
  export { CreateWebhookRequest } from './generated/models/CreateWebhookRequest.js';
39
40
  export { CurrencyCode } from './generated/models/CurrencyCode.js';
41
+ export { DataListChainsResponse } from './generated/models/DataListChainsResponse.js';
40
42
  export { DelegationStatusType } from './generated/models/DelegationStatusType.js';
41
43
  export { DelegatorsDetails } from './generated/models/DelegatorsDetails.js';
42
44
  export { DeliveredSourceNotIndexedTeleporterMessage } from './generated/models/DeliveredSourceNotIndexedTeleporterMessage.js';
@@ -72,7 +74,6 @@ export { GetNativeBalanceResponse } from './generated/models/GetNativeBalanceRes
72
74
  export { GetNetworkDetailsResponse } from './generated/models/GetNetworkDetailsResponse.js';
73
75
  export { GetPrimaryNetworkBlockResponse } from './generated/models/GetPrimaryNetworkBlockResponse.js';
74
76
  export { GetTransactionResponse } from './generated/models/GetTransactionResponse.js';
75
- export { GlacierApiFeature } from './generated/models/GlacierApiFeature.js';
76
77
  export { HistoricalReward } from './generated/models/HistoricalReward.js';
77
78
  export { ImageAsset } from './generated/models/ImageAsset.js';
78
79
  export { InternalServerError } from './generated/models/InternalServerError.js';
@@ -172,12 +173,14 @@ export { StakingDistribution } from './generated/models/StakingDistribution.js';
172
173
  export { Subnet } from './generated/models/Subnet.js';
173
174
  export { SubnetOwnershipInfo } from './generated/models/SubnetOwnershipInfo.js';
174
175
  export { TeleporterDestinationTransaction } from './generated/models/TeleporterDestinationTransaction.js';
176
+ export { TeleporterMessageInfo } from './generated/models/TeleporterMessageInfo.js';
175
177
  export { TeleporterReceipt } from './generated/models/TeleporterReceipt.js';
176
178
  export { TeleporterRewardDetails } from './generated/models/TeleporterRewardDetails.js';
177
179
  export { TeleporterSourceTransaction } from './generated/models/TeleporterSourceTransaction.js';
178
180
  export { TimeIntervalGranularityExtended } from './generated/models/TimeIntervalGranularityExtended.js';
179
181
  export { TooManyRequests } from './generated/models/TooManyRequests.js';
180
182
  export { TransactionDetails } from './generated/models/TransactionDetails.js';
183
+ export { TransactionDirectionType } from './generated/models/TransactionDirectionType.js';
181
184
  export { TransactionExportMetadata } from './generated/models/TransactionExportMetadata.js';
182
185
  export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
183
186
  export { TransactionStatus } from './generated/models/TransactionStatus.js';
@@ -208,13 +211,13 @@ export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTr
208
211
  export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
209
212
  export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
210
213
  export { XChainVertex } from './generated/models/XChainVertex.js';
214
+ export { DataApiUsageMetricsService } from './generated/services/DataApiUsageMetricsService.js';
211
215
  export { DefaultService } from './generated/services/DefaultService.js';
212
216
  export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
213
217
  export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
214
218
  export { EvmChainsService } from './generated/services/EvmChainsService.js';
215
219
  export { EvmContractsService } from './generated/services/EvmContractsService.js';
216
220
  export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
217
- export { GlacierApiUsageMetricsService } from './generated/services/GlacierApiUsageMetricsService.js';
218
221
  export { HealthCheckService } from './generated/services/HealthCheckService.js';
219
222
  export { NfTsService } from './generated/services/NfTsService.js';
220
223
  export { OperationsService } from './generated/services/OperationsService.js';
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{GlacierApiFeature}from"./generated/models/GlacierApiFeature.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NetworkType}from"./generated/models/NetworkType.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PrimaryNetwork}from"./generated/models/PrimaryNetwork.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{VmName}from"./generated/models/VmName.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{GlacierApiUsageMetricsService}from"./generated/services/GlacierApiUsageMetricsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{RpcService}from"./generated/services/RpcService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js";
1
+ export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NetworkType}from"./generated/models/NetworkType.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PrimaryNetwork}from"./generated/models/PrimaryNetwork.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionDirectionType}from"./generated/models/TransactionDirectionType.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{VmName}from"./generated/models/VmName.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{DataApiUsageMetricsService}from"./generated/services/DataApiUsageMetricsService.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{RpcService}from"./generated/services/RpcService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "3.1.0-canary.1784917.0+1784917",
3
+ "version": "3.1.0-canary.18b53a8.0+18b53a8",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "17849175d31ed145cd47af35cdb01bcbf31eaf67"
32
+ "gitHead": "18b53a83528576a93fdaa75e9606482ee3f0d3cc"
33
33
  }
@@ -1,6 +0,0 @@
1
- declare enum GlacierApiFeature {
2
- NFT_INDEXING = "nftIndexing",
3
- WEBHOOKS = "webhooks"
4
- }
5
-
6
- export { GlacierApiFeature };
@@ -1 +0,0 @@
1
- var e=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e))(e||{});export{e as GlacierApiFeature};
@@ -1 +0,0 @@
1
- class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:n,requestPath:a,requestType:i,responseStatusCode:o,chainId:h,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:n,requestPath:a,requestType:i,responseStatusCode: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:t,endTimestamp:r,requestPath:s,requestType:n,responseStatusCode:a,chainId:i,apiKeyId:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:t,endTimestamp:r,requestPath:s,requestType:n,responseStatusCode: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 GlacierApiUsageMetricsService};