@avalabs/glacier-sdk 3.1.0-canary.0cb77a4.0 → 3.1.0-canary.0d842e8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +654 -74
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +11 -5
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +1 -1
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PChainBalanceType.d.ts +15 -0
- package/esm/generated/models/PChainBalanceType.js +1 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +9 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/SignatureAggregatorService.d.ts +16 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +31 -2
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -151,11 +151,11 @@ type LogsResponseDTO = {
|
|
|
151
151
|
declare enum Network {
|
|
152
152
|
MAINNET = "mainnet",
|
|
153
153
|
FUJI = "fuji",
|
|
154
|
-
TESTNET = "testnet"
|
|
155
|
-
DEVNET = "devnet"
|
|
154
|
+
TESTNET = "testnet"
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
158
|
+
RPC_METHOD = "rpcMethod",
|
|
159
159
|
REQUEST_PATH = "requestPath",
|
|
160
160
|
RESPONSE_CODE = "responseCode",
|
|
161
161
|
COUNTRY = "country",
|
|
@@ -163,13 +163,7 @@ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
|
163
163
|
USER_AGENT = "userAgent"
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
declare enum
|
|
167
|
-
RPC_METHOD = "rpcMethod",
|
|
168
|
-
RESPONSE_CODE = "responseCode",
|
|
169
|
-
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
166
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
173
167
|
HOURLY = "hourly",
|
|
174
168
|
DAILY = "daily",
|
|
175
169
|
WEEKLY = "weekly",
|
|
@@ -222,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
222
216
|
RPC_METHOD = "rpcMethod",
|
|
223
217
|
RESPONSE_CODE = "responseCode",
|
|
224
218
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
225
223
|
NONE = "None"
|
|
226
224
|
}
|
|
227
225
|
}
|
|
@@ -237,6 +235,43 @@ type RpcMetrics = {
|
|
|
237
235
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
236
|
};
|
|
239
237
|
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
239
|
+
/**
|
|
240
|
+
* Duration in which the metrics value is aggregated
|
|
241
|
+
*/
|
|
242
|
+
aggregateDuration: string;
|
|
243
|
+
/**
|
|
244
|
+
* Metrics values
|
|
245
|
+
*/
|
|
246
|
+
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
251
|
+
};
|
|
252
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
253
|
+
/**
|
|
254
|
+
* Network type for which the metrics are aggregated
|
|
255
|
+
*/
|
|
256
|
+
enum network {
|
|
257
|
+
MAINNET = "mainnet",
|
|
258
|
+
TESTNET = "testnet"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
263
|
+
RPC_METHOD = "rpcMethod",
|
|
264
|
+
RESPONSE_CODE = "responseCode",
|
|
265
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
269
|
+
HOURLY = "hourly",
|
|
270
|
+
DAILY = "daily",
|
|
271
|
+
WEEKLY = "weekly",
|
|
272
|
+
MONTHLY = "monthly"
|
|
273
|
+
}
|
|
274
|
+
|
|
240
275
|
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
276
|
/**
|
|
242
277
|
* Duration in which the metrics value is aggregated
|
|
@@ -451,6 +486,49 @@ declare class DataApiUsageMetricsService {
|
|
|
451
486
|
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
487
|
* @throws ApiError
|
|
453
488
|
*/
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
490
|
+
/**
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
493
|
+
*/
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
495
|
+
/**
|
|
496
|
+
* 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.
|
|
497
|
+
*/
|
|
498
|
+
startTimestamp?: number;
|
|
499
|
+
/**
|
|
500
|
+
* 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.
|
|
501
|
+
*/
|
|
502
|
+
endTimestamp?: number;
|
|
503
|
+
/**
|
|
504
|
+
* Query param for the criterion used for grouping metrics
|
|
505
|
+
*/
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
507
|
+
/**
|
|
508
|
+
* Filter data by chain ID.
|
|
509
|
+
*/
|
|
510
|
+
chainId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Filter data by response status code.
|
|
513
|
+
*/
|
|
514
|
+
responseCode?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Filter data by RPC method.
|
|
517
|
+
*/
|
|
518
|
+
rpcMethod?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by Rl Bypass API Token.
|
|
521
|
+
*/
|
|
522
|
+
rlBypassApiToken?: string;
|
|
523
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
527
|
+
*
|
|
528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
529
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
530
|
+
* @throws ApiError
|
|
531
|
+
*/
|
|
454
532
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
533
|
/**
|
|
456
534
|
* Time interval granularity for data aggregation for subnet
|
|
@@ -489,10 +567,10 @@ declare class DataApiUsageMetricsService {
|
|
|
489
567
|
/**
|
|
490
568
|
* Get usage metrics for the Primary Network RPC
|
|
491
569
|
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
-
* @returns
|
|
570
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
493
571
|
* @throws ApiError
|
|
494
572
|
*/
|
|
495
|
-
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
573
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
496
574
|
/**
|
|
497
575
|
* Either mainnet or testnet/fuji.
|
|
498
576
|
*/
|
|
@@ -501,7 +579,7 @@ declare class DataApiUsageMetricsService {
|
|
|
501
579
|
* Time interval granularity for data aggregation for subnet
|
|
502
580
|
* rpc metrics
|
|
503
581
|
*/
|
|
504
|
-
timeInterval?:
|
|
582
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
505
583
|
/**
|
|
506
584
|
* 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.
|
|
507
585
|
*/
|
|
@@ -523,18 +601,22 @@ declare class DataApiUsageMetricsService {
|
|
|
523
601
|
*/
|
|
524
602
|
requestPath?: string;
|
|
525
603
|
/**
|
|
526
|
-
* Filter data by Country.
|
|
604
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
527
605
|
*/
|
|
528
606
|
country?: string;
|
|
529
607
|
/**
|
|
530
|
-
* Filter data by Continent.
|
|
608
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
531
609
|
*/
|
|
532
610
|
continent?: string;
|
|
533
611
|
/**
|
|
534
612
|
* Filter data by User Agent.
|
|
535
613
|
*/
|
|
536
614
|
userAgent?: string;
|
|
537
|
-
|
|
615
|
+
/**
|
|
616
|
+
* Filter data by RPC method.
|
|
617
|
+
*/
|
|
618
|
+
rpcMethod?: string;
|
|
619
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
538
620
|
}
|
|
539
621
|
|
|
540
622
|
declare class DefaultService {
|
|
@@ -782,16 +864,16 @@ type Erc20TokenBalance = {
|
|
|
782
864
|
*/
|
|
783
865
|
balanceValue?: Money;
|
|
784
866
|
/**
|
|
785
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
867
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
786
868
|
*/
|
|
787
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
869
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
788
870
|
};
|
|
789
871
|
declare namespace Erc20TokenBalance {
|
|
790
872
|
enum ercType {
|
|
791
873
|
ERC_20 = "ERC-20"
|
|
792
874
|
}
|
|
793
875
|
/**
|
|
794
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
876
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
795
877
|
*/
|
|
796
878
|
enum tokenReputation {
|
|
797
879
|
MALICIOUS = "Malicious",
|
|
@@ -886,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
886
968
|
*/
|
|
887
969
|
pageToken?: string;
|
|
888
970
|
/**
|
|
889
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
971
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
890
972
|
*/
|
|
891
973
|
pageSize?: number;
|
|
892
974
|
/**
|
|
@@ -924,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
924
1006
|
*/
|
|
925
1007
|
pageToken?: string;
|
|
926
1008
|
/**
|
|
927
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1009
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
928
1010
|
*/
|
|
929
1011
|
pageSize?: number;
|
|
930
1012
|
/**
|
|
@@ -960,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
960
1042
|
*/
|
|
961
1043
|
pageToken?: string;
|
|
962
1044
|
/**
|
|
963
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1045
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
964
1046
|
*/
|
|
965
1047
|
pageSize?: number;
|
|
966
1048
|
/**
|
|
@@ -990,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
990
1072
|
*/
|
|
991
1073
|
pageToken?: string;
|
|
992
1074
|
/**
|
|
993
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
994
1076
|
*/
|
|
995
1077
|
pageSize?: number;
|
|
996
1078
|
/**
|
|
@@ -2586,20 +2668,261 @@ declare class EvmTransactionsService {
|
|
|
2586
2668
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2669
|
}
|
|
2588
2670
|
|
|
2671
|
+
type HealthIndicatorResultDto = {
|
|
2672
|
+
/**
|
|
2673
|
+
* Status of the health indicator.
|
|
2674
|
+
*/
|
|
2675
|
+
status?: HealthIndicatorResultDto.status;
|
|
2676
|
+
};
|
|
2677
|
+
declare namespace HealthIndicatorResultDto {
|
|
2678
|
+
/**
|
|
2679
|
+
* Status of the health indicator.
|
|
2680
|
+
*/
|
|
2681
|
+
enum status {
|
|
2682
|
+
UP = "up",
|
|
2683
|
+
DOWN = "down"
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
type HealthCheckResultDto = {
|
|
2688
|
+
status?: HealthCheckResultDto.status;
|
|
2689
|
+
info?: any | null;
|
|
2690
|
+
error?: any | null;
|
|
2691
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2692
|
+
};
|
|
2693
|
+
declare namespace HealthCheckResultDto {
|
|
2694
|
+
enum status {
|
|
2695
|
+
ERROR = "error",
|
|
2696
|
+
OK = "ok",
|
|
2697
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2589
2701
|
declare class HealthCheckService {
|
|
2590
2702
|
readonly httpRequest: BaseHttpRequest;
|
|
2591
2703
|
constructor(httpRequest: BaseHttpRequest);
|
|
2592
2704
|
/**
|
|
2593
2705
|
* Get the health of the service
|
|
2594
|
-
*
|
|
2706
|
+
* Check the health of the service.
|
|
2707
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2595
2708
|
* @throws ApiError
|
|
2596
2709
|
*/
|
|
2597
|
-
dataHealthCheck(): CancelablePromise<
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2710
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
type IcmDestinationTransaction = {
|
|
2714
|
+
txHash: string;
|
|
2715
|
+
timestamp: number;
|
|
2716
|
+
gasSpent: string;
|
|
2717
|
+
rewardRedeemer: string;
|
|
2718
|
+
delivererAddress: string;
|
|
2719
|
+
};
|
|
2720
|
+
|
|
2721
|
+
type IcmReceipt = {
|
|
2722
|
+
receivedMessageNonce: string;
|
|
2723
|
+
relayerRewardAddress: string;
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
type IcmRewardDetails = {
|
|
2727
|
+
/**
|
|
2728
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2729
|
+
*/
|
|
2730
|
+
address: string;
|
|
2731
|
+
/**
|
|
2732
|
+
* The contract name.
|
|
2733
|
+
*/
|
|
2734
|
+
name: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The contract symbol.
|
|
2737
|
+
*/
|
|
2738
|
+
symbol: string;
|
|
2739
|
+
/**
|
|
2740
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2741
|
+
*/
|
|
2742
|
+
decimals: number;
|
|
2743
|
+
/**
|
|
2744
|
+
* The logo uri for the address.
|
|
2745
|
+
*/
|
|
2746
|
+
logoUri?: string;
|
|
2747
|
+
ercType: IcmRewardDetails.ercType;
|
|
2748
|
+
/**
|
|
2749
|
+
* The token price, if available.
|
|
2750
|
+
*/
|
|
2751
|
+
price?: Money;
|
|
2752
|
+
value: string;
|
|
2753
|
+
};
|
|
2754
|
+
declare namespace IcmRewardDetails {
|
|
2755
|
+
enum ercType {
|
|
2756
|
+
ERC_20 = "ERC-20"
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
type IcmSourceTransaction = {
|
|
2761
|
+
txHash: string;
|
|
2762
|
+
timestamp: number;
|
|
2763
|
+
gasSpent: string;
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
type DeliveredIcmMessage = {
|
|
2767
|
+
messageId: string;
|
|
2768
|
+
icmContractAddress: string;
|
|
2769
|
+
sourceBlockchainId: string;
|
|
2770
|
+
destinationBlockchainId: string;
|
|
2771
|
+
sourceEvmChainId: string;
|
|
2772
|
+
destinationEvmChainId: string;
|
|
2773
|
+
messageNonce: string;
|
|
2774
|
+
from: string;
|
|
2775
|
+
to: string;
|
|
2776
|
+
data?: string;
|
|
2777
|
+
messageExecuted: boolean;
|
|
2778
|
+
receipts: Array<IcmReceipt>;
|
|
2779
|
+
receiptDelivered: boolean;
|
|
2780
|
+
rewardDetails: IcmRewardDetails;
|
|
2781
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2782
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2783
|
+
status: DeliveredIcmMessage.status;
|
|
2784
|
+
};
|
|
2785
|
+
declare namespace DeliveredIcmMessage {
|
|
2786
|
+
enum status {
|
|
2787
|
+
DELIVERED = "delivered"
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2792
|
+
messageId: string;
|
|
2793
|
+
icmContractAddress: string;
|
|
2794
|
+
sourceBlockchainId: string;
|
|
2795
|
+
destinationBlockchainId: string;
|
|
2796
|
+
sourceEvmChainId: string;
|
|
2797
|
+
destinationEvmChainId: string;
|
|
2798
|
+
messageNonce: string;
|
|
2799
|
+
from: string;
|
|
2800
|
+
to: string;
|
|
2801
|
+
data?: string;
|
|
2802
|
+
messageExecuted: boolean;
|
|
2803
|
+
receipts: Array<IcmReceipt>;
|
|
2804
|
+
receiptDelivered: boolean;
|
|
2805
|
+
rewardDetails: IcmRewardDetails;
|
|
2806
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2807
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2808
|
+
};
|
|
2809
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2810
|
+
enum status {
|
|
2811
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
type PendingIcmMessage = {
|
|
2816
|
+
messageId: string;
|
|
2817
|
+
icmContractAddress: string;
|
|
2818
|
+
sourceBlockchainId: string;
|
|
2819
|
+
destinationBlockchainId: string;
|
|
2820
|
+
sourceEvmChainId: string;
|
|
2821
|
+
destinationEvmChainId: string;
|
|
2822
|
+
messageNonce: string;
|
|
2823
|
+
from: string;
|
|
2824
|
+
to: string;
|
|
2825
|
+
data?: string;
|
|
2826
|
+
messageExecuted: boolean;
|
|
2827
|
+
receipts: Array<IcmReceipt>;
|
|
2828
|
+
receiptDelivered: boolean;
|
|
2829
|
+
rewardDetails: IcmRewardDetails;
|
|
2830
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2831
|
+
status: PendingIcmMessage.status;
|
|
2832
|
+
};
|
|
2833
|
+
declare namespace PendingIcmMessage {
|
|
2834
|
+
enum status {
|
|
2835
|
+
PENDING = "pending"
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
type ListIcmMessagesResponse = {
|
|
2840
|
+
/**
|
|
2841
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2842
|
+
*/
|
|
2843
|
+
nextPageToken?: string;
|
|
2844
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
declare class InterchainMessagingService {
|
|
2848
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2849
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2850
|
+
/**
|
|
2851
|
+
* Get an ICM message
|
|
2852
|
+
* Gets an ICM message by message ID.
|
|
2853
|
+
* @returns any Successful response
|
|
2854
|
+
* @throws ApiError
|
|
2855
|
+
*/
|
|
2856
|
+
getIcmMessage({ messageId, }: {
|
|
2857
|
+
/**
|
|
2858
|
+
* The message ID of the ICM message.
|
|
2859
|
+
*/
|
|
2860
|
+
messageId: string;
|
|
2861
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2862
|
+
/**
|
|
2863
|
+
* List ICM messages
|
|
2864
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2865
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2866
|
+
* @throws ApiError
|
|
2867
|
+
*/
|
|
2868
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2869
|
+
/**
|
|
2870
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2871
|
+
*/
|
|
2872
|
+
pageToken?: string;
|
|
2873
|
+
/**
|
|
2874
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2875
|
+
*/
|
|
2876
|
+
pageSize?: number;
|
|
2877
|
+
/**
|
|
2878
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2879
|
+
*/
|
|
2880
|
+
sourceBlockchainId?: string;
|
|
2881
|
+
/**
|
|
2882
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2883
|
+
*/
|
|
2884
|
+
destinationBlockchainId?: string;
|
|
2885
|
+
/**
|
|
2886
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2887
|
+
*/
|
|
2888
|
+
blockchainId?: string;
|
|
2889
|
+
/**
|
|
2890
|
+
* The address of the recipient of the ICM message.
|
|
2891
|
+
*/
|
|
2892
|
+
to?: string;
|
|
2893
|
+
/**
|
|
2894
|
+
* The address of the sender of the ICM message.
|
|
2895
|
+
*/
|
|
2896
|
+
from?: string;
|
|
2897
|
+
/**
|
|
2898
|
+
* Either mainnet or testnet/fuji.
|
|
2899
|
+
*/
|
|
2900
|
+
network?: Network;
|
|
2901
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2902
|
+
/**
|
|
2903
|
+
* List ICM messages by address
|
|
2904
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2905
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2906
|
+
* @throws ApiError
|
|
2907
|
+
*/
|
|
2908
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2909
|
+
/**
|
|
2910
|
+
* An EVM address.
|
|
2911
|
+
*/
|
|
2912
|
+
address: string;
|
|
2913
|
+
/**
|
|
2914
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2915
|
+
*/
|
|
2916
|
+
pageToken?: string;
|
|
2917
|
+
/**
|
|
2918
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2919
|
+
*/
|
|
2920
|
+
pageSize?: number;
|
|
2921
|
+
/**
|
|
2922
|
+
* Either mainnet or testnet/fuji.
|
|
2923
|
+
*/
|
|
2924
|
+
network?: Network;
|
|
2925
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2603
2926
|
}
|
|
2604
2927
|
|
|
2605
2928
|
type ListNftTokens = {
|
|
@@ -2679,6 +3002,108 @@ declare class NfTsService {
|
|
|
2679
3002
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2680
3003
|
}
|
|
2681
3004
|
|
|
3005
|
+
type AccessRequest = {
|
|
3006
|
+
/**
|
|
3007
|
+
* The email address to send the access token to
|
|
3008
|
+
*/
|
|
3009
|
+
email: string;
|
|
3010
|
+
/**
|
|
3011
|
+
* The captcha to verify the user
|
|
3012
|
+
*/
|
|
3013
|
+
captcha: string;
|
|
3014
|
+
};
|
|
3015
|
+
|
|
3016
|
+
type NotificationsResponse = {
|
|
3017
|
+
message: string;
|
|
3018
|
+
};
|
|
3019
|
+
|
|
3020
|
+
type SubscribeRequest = {
|
|
3021
|
+
/**
|
|
3022
|
+
* The access token to use for authentication
|
|
3023
|
+
*/
|
|
3024
|
+
accessToken: string;
|
|
3025
|
+
/**
|
|
3026
|
+
* The node ID to subscribe to
|
|
3027
|
+
*/
|
|
3028
|
+
nodeId: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3031
|
+
*/
|
|
3032
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3033
|
+
};
|
|
3034
|
+
|
|
3035
|
+
type SubscriptionsRequest = {
|
|
3036
|
+
/**
|
|
3037
|
+
* The access token to use for authentication
|
|
3038
|
+
*/
|
|
3039
|
+
accessToken: string;
|
|
3040
|
+
};
|
|
3041
|
+
|
|
3042
|
+
type SubscriptionsResponse = {
|
|
3043
|
+
/**
|
|
3044
|
+
* The email address of the user
|
|
3045
|
+
*/
|
|
3046
|
+
email: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* The subscriptions of the user
|
|
3049
|
+
*/
|
|
3050
|
+
subscriptions: Record<string, {
|
|
3051
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3052
|
+
}>;
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
type UnsubscribeRequest = {
|
|
3056
|
+
/**
|
|
3057
|
+
* The access token to use for authentication
|
|
3058
|
+
*/
|
|
3059
|
+
accessToken: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* The node ID to subscribe to
|
|
3062
|
+
*/
|
|
3063
|
+
nodeId: string;
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
declare class NotificationsService {
|
|
3067
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3068
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3069
|
+
/**
|
|
3070
|
+
* Access Notifications
|
|
3071
|
+
* Access notifications.
|
|
3072
|
+
* @returns NotificationsResponse Successful response
|
|
3073
|
+
* @throws ApiError
|
|
3074
|
+
*/
|
|
3075
|
+
access({ requestBody, }: {
|
|
3076
|
+
requestBody: AccessRequest;
|
|
3077
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3078
|
+
/**
|
|
3079
|
+
* Subscribe to Notifications
|
|
3080
|
+
* Subscribe to receive notifications.
|
|
3081
|
+
* @returns NotificationsResponse Successful response
|
|
3082
|
+
* @throws ApiError
|
|
3083
|
+
*/
|
|
3084
|
+
subscribe({ requestBody, }: {
|
|
3085
|
+
requestBody: SubscribeRequest;
|
|
3086
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3087
|
+
/**
|
|
3088
|
+
* Unsubscribe from Notifications
|
|
3089
|
+
* Unsubscribe from receiving notifications.
|
|
3090
|
+
* @returns NotificationsResponse Successful response
|
|
3091
|
+
* @throws ApiError
|
|
3092
|
+
*/
|
|
3093
|
+
unsubscribe({ requestBody, }: {
|
|
3094
|
+
requestBody: UnsubscribeRequest;
|
|
3095
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3096
|
+
/**
|
|
3097
|
+
* Get Subscriptions
|
|
3098
|
+
* Get subscriptions.
|
|
3099
|
+
* @returns SubscriptionsResponse Successful response
|
|
3100
|
+
* @throws ApiError
|
|
3101
|
+
*/
|
|
3102
|
+
subscriptions({ requestBody, }: {
|
|
3103
|
+
requestBody: SubscriptionsRequest;
|
|
3104
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3105
|
+
}
|
|
3106
|
+
|
|
2682
3107
|
type EvmNetworkOptions = {
|
|
2683
3108
|
addresses: Array<string>;
|
|
2684
3109
|
includeChains: Array<string>;
|
|
@@ -2767,7 +3192,7 @@ type OperationStatusResponse = {
|
|
|
2767
3192
|
operationType: OperationType;
|
|
2768
3193
|
operationStatus: OperationStatus;
|
|
2769
3194
|
message?: string;
|
|
2770
|
-
metadata
|
|
3195
|
+
metadata?: TransactionExportMetadata;
|
|
2771
3196
|
createdAtTimestamp: number;
|
|
2772
3197
|
updatedAtTimestamp: number;
|
|
2773
3198
|
};
|
|
@@ -5132,6 +5557,22 @@ declare class SignatureAggregatorService {
|
|
|
5132
5557
|
network: Network;
|
|
5133
5558
|
requestBody: SignatureAggregatorRequest;
|
|
5134
5559
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5560
|
+
/**
|
|
5561
|
+
* Get Aggregated Signatures
|
|
5562
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5563
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5564
|
+
* @throws ApiError
|
|
5565
|
+
*/
|
|
5566
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5567
|
+
/**
|
|
5568
|
+
* Either mainnet or testnet/fuji.
|
|
5569
|
+
*/
|
|
5570
|
+
network: Network;
|
|
5571
|
+
/**
|
|
5572
|
+
* A primary network (P or X chain) transaction hash.
|
|
5573
|
+
*/
|
|
5574
|
+
txHash: string;
|
|
5575
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5135
5576
|
}
|
|
5136
5577
|
|
|
5137
5578
|
type TeleporterDestinationTransaction = {
|
|
@@ -5272,8 +5713,10 @@ declare class TeleporterService {
|
|
|
5272
5713
|
readonly httpRequest: BaseHttpRequest;
|
|
5273
5714
|
constructor(httpRequest: BaseHttpRequest);
|
|
5274
5715
|
/**
|
|
5275
|
-
*
|
|
5276
|
-
* Gets a teleporter message by message ID.
|
|
5716
|
+
* @deprecated
|
|
5717
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5718
|
+
*
|
|
5719
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5277
5720
|
* @returns any Successful response
|
|
5278
5721
|
* @throws ApiError
|
|
5279
5722
|
*/
|
|
@@ -5284,8 +5727,10 @@ declare class TeleporterService {
|
|
|
5284
5727
|
messageId: string;
|
|
5285
5728
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5286
5729
|
/**
|
|
5287
|
-
*
|
|
5288
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5730
|
+
* @deprecated
|
|
5731
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5732
|
+
*
|
|
5733
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5289
5734
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5290
5735
|
* @throws ApiError
|
|
5291
5736
|
*/
|
|
@@ -5324,8 +5769,10 @@ declare class TeleporterService {
|
|
|
5324
5769
|
network?: Network;
|
|
5325
5770
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5326
5771
|
/**
|
|
5327
|
-
*
|
|
5328
|
-
* Lists teleporter messages by address. Ordered by
|
|
5772
|
+
* @deprecated
|
|
5773
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5774
|
+
*
|
|
5775
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5329
5776
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5330
5777
|
* @throws ApiError
|
|
5331
5778
|
*/
|
|
@@ -5367,15 +5814,16 @@ type AddressActivityMetadata = {
|
|
|
5367
5814
|
eventSignatures?: Array<string>;
|
|
5368
5815
|
};
|
|
5369
5816
|
|
|
5370
|
-
declare enum
|
|
5371
|
-
|
|
5817
|
+
declare enum PrimaryNetworkType {
|
|
5818
|
+
MAINNET = "mainnet",
|
|
5819
|
+
FUJI = "fuji"
|
|
5372
5820
|
}
|
|
5373
5821
|
|
|
5374
|
-
type
|
|
5822
|
+
type EVMAddressActivityRequest = {
|
|
5823
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5375
5824
|
url: string;
|
|
5376
5825
|
chainId: string;
|
|
5377
|
-
|
|
5378
|
-
metadata: AddressActivityMetadata;
|
|
5826
|
+
network?: PrimaryNetworkType;
|
|
5379
5827
|
name?: string;
|
|
5380
5828
|
description?: string;
|
|
5381
5829
|
/**
|
|
@@ -5386,25 +5834,34 @@ type CreateWebhookRequest = {
|
|
|
5386
5834
|
* Whether to include logs in the webhook payload.
|
|
5387
5835
|
*/
|
|
5388
5836
|
includeLogs?: boolean;
|
|
5837
|
+
metadata: AddressActivityMetadata;
|
|
5389
5838
|
};
|
|
5839
|
+
declare namespace EVMAddressActivityRequest {
|
|
5840
|
+
enum eventType {
|
|
5841
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5842
|
+
}
|
|
5843
|
+
}
|
|
5390
5844
|
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
addresses: Array<string>;
|
|
5397
|
-
totalAddresses: number;
|
|
5398
|
-
};
|
|
5845
|
+
declare enum EventType {
|
|
5846
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5847
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5848
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5849
|
+
}
|
|
5399
5850
|
|
|
5400
5851
|
declare enum WebhookStatusType {
|
|
5401
5852
|
ACTIVE = "active",
|
|
5402
5853
|
INACTIVE = "inactive"
|
|
5403
5854
|
}
|
|
5404
5855
|
|
|
5405
|
-
type
|
|
5856
|
+
type EVMAddressActivityResponse = {
|
|
5406
5857
|
id: string;
|
|
5407
5858
|
eventType: EventType;
|
|
5859
|
+
url: string;
|
|
5860
|
+
chainId: string;
|
|
5861
|
+
status: WebhookStatusType;
|
|
5862
|
+
createdAt: number;
|
|
5863
|
+
name: string;
|
|
5864
|
+
description: string;
|
|
5408
5865
|
metadata: AddressActivityMetadata;
|
|
5409
5866
|
/**
|
|
5410
5867
|
* Whether to include traces in the webhook payload.
|
|
@@ -5414,12 +5871,106 @@ type WebhookResponse = {
|
|
|
5414
5871
|
* Whether to include logs in the webhook payload.
|
|
5415
5872
|
*/
|
|
5416
5873
|
includeLogs?: boolean;
|
|
5874
|
+
};
|
|
5875
|
+
|
|
5876
|
+
type ListWebhookAddressesResponse = {
|
|
5877
|
+
/**
|
|
5878
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5879
|
+
*/
|
|
5880
|
+
nextPageToken?: string;
|
|
5881
|
+
addresses: Array<string>;
|
|
5882
|
+
totalAddresses: number;
|
|
5883
|
+
};
|
|
5884
|
+
|
|
5885
|
+
/**
|
|
5886
|
+
* The type of key for platform activity depending on the event type
|
|
5887
|
+
*/
|
|
5888
|
+
declare enum PlatformActivityKeyType {
|
|
5889
|
+
ADDRESSES = "addresses",
|
|
5890
|
+
NODE_ID = "nodeId",
|
|
5891
|
+
SUBNET_ID = "subnetId"
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
/**
|
|
5895
|
+
* Array of address activity sub-event types
|
|
5896
|
+
*/
|
|
5897
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5898
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5899
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform"
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
type PlatformActivitySubEvents = {
|
|
5903
|
+
/**
|
|
5904
|
+
* Array of validator activity sub-event types
|
|
5905
|
+
*/
|
|
5906
|
+
validatorActivitySubEvents?: Array<'validator_registration' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5907
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5908
|
+
};
|
|
5909
|
+
|
|
5910
|
+
/**
|
|
5911
|
+
* Type of balance to monitor
|
|
5912
|
+
*/
|
|
5913
|
+
declare enum PChainBalanceType {
|
|
5914
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5915
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5916
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5917
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5918
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5919
|
+
PENDING_STAKED = "pendingStaked",
|
|
5920
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5921
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5924
|
+
type PlatformBalanceThresholdFilter = {
|
|
5925
|
+
balanceType: PChainBalanceType;
|
|
5926
|
+
/**
|
|
5927
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5928
|
+
*/
|
|
5929
|
+
balanceThreshold: string;
|
|
5930
|
+
};
|
|
5931
|
+
|
|
5932
|
+
type PlatformActivityMetadata = {
|
|
5933
|
+
keyType: PlatformActivityKeyType;
|
|
5934
|
+
/**
|
|
5935
|
+
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
5936
|
+
*/
|
|
5937
|
+
keys: Array<string>;
|
|
5938
|
+
/**
|
|
5939
|
+
* Sub-events to monitor
|
|
5940
|
+
*/
|
|
5941
|
+
subEvents?: PlatformActivitySubEvents;
|
|
5942
|
+
/**
|
|
5943
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5944
|
+
*/
|
|
5945
|
+
eventSignatures?: Array<string>;
|
|
5946
|
+
/**
|
|
5947
|
+
* Array of node IDs to filter the events
|
|
5948
|
+
*/
|
|
5949
|
+
nodeIds?: Array<string>;
|
|
5950
|
+
/**
|
|
5951
|
+
* Array of subnet IDs to filter the events
|
|
5952
|
+
*/
|
|
5953
|
+
subnetIds?: Array<string>;
|
|
5954
|
+
/**
|
|
5955
|
+
* Balance threshold filter
|
|
5956
|
+
*/
|
|
5957
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
5958
|
+
/**
|
|
5959
|
+
* L1 validator fee balance threshold in nAVAX
|
|
5960
|
+
*/
|
|
5961
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
5962
|
+
};
|
|
5963
|
+
|
|
5964
|
+
type PlatformActivityResponse = {
|
|
5965
|
+
id: string;
|
|
5966
|
+
eventType: EventType;
|
|
5417
5967
|
url: string;
|
|
5418
5968
|
chainId: string;
|
|
5419
5969
|
status: WebhookStatusType;
|
|
5420
5970
|
createdAt: number;
|
|
5421
5971
|
name: string;
|
|
5422
5972
|
description: string;
|
|
5973
|
+
metadata: PlatformActivityMetadata;
|
|
5423
5974
|
};
|
|
5424
5975
|
|
|
5425
5976
|
type ListWebhooksResponse = {
|
|
@@ -5427,9 +5978,36 @@ type ListWebhooksResponse = {
|
|
|
5427
5978
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5428
5979
|
*/
|
|
5429
5980
|
nextPageToken?: string;
|
|
5430
|
-
webhooks: Array<
|
|
5981
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5431
5982
|
};
|
|
5432
5983
|
|
|
5984
|
+
type PlatformActivityRequest = {
|
|
5985
|
+
eventType: PlatformActivityRequest.eventType;
|
|
5986
|
+
url: string;
|
|
5987
|
+
chainId: string;
|
|
5988
|
+
network?: PrimaryNetworkType;
|
|
5989
|
+
name?: string;
|
|
5990
|
+
description?: string;
|
|
5991
|
+
/**
|
|
5992
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5993
|
+
*/
|
|
5994
|
+
includeInternalTxs?: boolean;
|
|
5995
|
+
/**
|
|
5996
|
+
* Whether to include logs in the webhook payload.
|
|
5997
|
+
*/
|
|
5998
|
+
includeLogs?: boolean;
|
|
5999
|
+
/**
|
|
6000
|
+
* Metadata for platform activity
|
|
6001
|
+
*/
|
|
6002
|
+
metadata: PlatformActivityMetadata;
|
|
6003
|
+
};
|
|
6004
|
+
declare namespace PlatformActivityRequest {
|
|
6005
|
+
enum eventType {
|
|
6006
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6007
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6008
|
+
}
|
|
6009
|
+
}
|
|
6010
|
+
|
|
5433
6011
|
type SharedSecretsResponse = {
|
|
5434
6012
|
secret: string;
|
|
5435
6013
|
};
|
|
@@ -5457,12 +6035,12 @@ declare class WebhooksService {
|
|
|
5457
6035
|
/**
|
|
5458
6036
|
* Create a webhook
|
|
5459
6037
|
* Create a new webhook.
|
|
5460
|
-
* @returns
|
|
6038
|
+
* @returns any Successful response
|
|
5461
6039
|
* @throws ApiError
|
|
5462
6040
|
*/
|
|
5463
6041
|
createWebhook({ requestBody, }: {
|
|
5464
|
-
requestBody:
|
|
5465
|
-
}): CancelablePromise<
|
|
6042
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6043
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5466
6044
|
/**
|
|
5467
6045
|
* List webhooks
|
|
5468
6046
|
* Lists webhooks for the user.
|
|
@@ -5486,7 +6064,7 @@ declare class WebhooksService {
|
|
|
5486
6064
|
/**
|
|
5487
6065
|
* Get a webhook by ID
|
|
5488
6066
|
* Retrieves a webhook by ID.
|
|
5489
|
-
* @returns
|
|
6067
|
+
* @returns any Successful response
|
|
5490
6068
|
* @throws ApiError
|
|
5491
6069
|
*/
|
|
5492
6070
|
getWebhook({ id, }: {
|
|
@@ -5494,11 +6072,11 @@ declare class WebhooksService {
|
|
|
5494
6072
|
* The webhook identifier.
|
|
5495
6073
|
*/
|
|
5496
6074
|
id: string;
|
|
5497
|
-
}): CancelablePromise<
|
|
6075
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5498
6076
|
/**
|
|
5499
6077
|
* Deactivate a webhook
|
|
5500
6078
|
* Deactivates a webhook by ID.
|
|
5501
|
-
* @returns
|
|
6079
|
+
* @returns any Successful response
|
|
5502
6080
|
* @throws ApiError
|
|
5503
6081
|
*/
|
|
5504
6082
|
deactivateWebhook({ id, }: {
|
|
@@ -5506,11 +6084,11 @@ declare class WebhooksService {
|
|
|
5506
6084
|
* The webhook identifier.
|
|
5507
6085
|
*/
|
|
5508
6086
|
id: string;
|
|
5509
|
-
}): CancelablePromise<
|
|
6087
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5510
6088
|
/**
|
|
5511
6089
|
* Update a webhook
|
|
5512
6090
|
* Updates an existing webhook.
|
|
5513
|
-
* @returns
|
|
6091
|
+
* @returns any Successful response
|
|
5514
6092
|
* @throws ApiError
|
|
5515
6093
|
*/
|
|
5516
6094
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5519,14 +6097,14 @@ declare class WebhooksService {
|
|
|
5519
6097
|
*/
|
|
5520
6098
|
id: string;
|
|
5521
6099
|
requestBody: UpdateWebhookRequest;
|
|
5522
|
-
}): CancelablePromise<
|
|
6100
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5523
6101
|
/**
|
|
5524
|
-
* Generate a shared secret
|
|
5525
|
-
* Generates a new shared secret.
|
|
6102
|
+
* Generate or rotate a shared secret
|
|
6103
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5526
6104
|
* @returns SharedSecretsResponse Successful response
|
|
5527
6105
|
* @throws ApiError
|
|
5528
6106
|
*/
|
|
5529
|
-
|
|
6107
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5530
6108
|
/**
|
|
5531
6109
|
* Get a shared secret
|
|
5532
6110
|
* Get a previously generated shared secret.
|
|
@@ -5535,9 +6113,9 @@ declare class WebhooksService {
|
|
|
5535
6113
|
*/
|
|
5536
6114
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5537
6115
|
/**
|
|
5538
|
-
* Add addresses to webhook
|
|
5539
|
-
* Add addresses to webhook.
|
|
5540
|
-
* @returns
|
|
6116
|
+
* Add addresses to EVM activity webhook
|
|
6117
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6118
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5541
6119
|
* @throws ApiError
|
|
5542
6120
|
*/
|
|
5543
6121
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5546,11 +6124,11 @@ declare class WebhooksService {
|
|
|
5546
6124
|
*/
|
|
5547
6125
|
id: string;
|
|
5548
6126
|
requestBody: AddressesChangeRequest;
|
|
5549
|
-
}): CancelablePromise<
|
|
6127
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5550
6128
|
/**
|
|
5551
|
-
* Remove addresses from webhook
|
|
5552
|
-
* Remove addresses from webhook.
|
|
5553
|
-
* @returns
|
|
6129
|
+
* Remove addresses from EVM activity webhook
|
|
6130
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6131
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5554
6132
|
* @throws ApiError
|
|
5555
6133
|
*/
|
|
5556
6134
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5559,10 +6137,10 @@ declare class WebhooksService {
|
|
|
5559
6137
|
*/
|
|
5560
6138
|
id: string;
|
|
5561
6139
|
requestBody: AddressesChangeRequest;
|
|
5562
|
-
}): CancelablePromise<
|
|
6140
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5563
6141
|
/**
|
|
5564
|
-
* List adresses by
|
|
5565
|
-
* List adresses by webhook.
|
|
6142
|
+
* List adresses by EVM activity webhooks
|
|
6143
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5566
6144
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5567
6145
|
* @throws ApiError
|
|
5568
6146
|
*/
|
|
@@ -5592,7 +6170,9 @@ declare class Glacier {
|
|
|
5592
6170
|
readonly evmContracts: EvmContractsService;
|
|
5593
6171
|
readonly evmTransactions: EvmTransactionsService;
|
|
5594
6172
|
readonly healthCheck: HealthCheckService;
|
|
6173
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5595
6174
|
readonly nfTs: NfTsService;
|
|
6175
|
+
readonly notifications: NotificationsService;
|
|
5596
6176
|
readonly operations: OperationsService;
|
|
5597
6177
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5598
6178
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5756,4 +6336,4 @@ type Unauthorized = {
|
|
|
5756
6336
|
error: string;
|
|
5757
6337
|
};
|
|
5758
6338
|
|
|
5759
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest,
|
|
6339
|
+
export { AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMAddressActivityResponse, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainBalanceType, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityMetadata, PlatformActivityRequest, PlatformActivityResponse, PlatformActivitySubEvents, PlatformAddressActivitySubEventType, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|