@avalabs/glacier-sdk 3.1.0-alpha.58 → 3.1.0-alpha.59

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 (45) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +120 -70
  3. package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
  4. package/esm/generated/models/AddressActivityEventType.js +1 -0
  5. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -4
  6. package/esm/generated/models/EVMAddressActivityRequest.d.ts +2 -4
  7. package/esm/generated/models/EVMAddressActivityResponse.d.ts +2 -2
  8. package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
  9. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  10. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  11. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  12. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  13. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  14. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  15. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  16. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  17. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  18. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  19. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  20. package/esm/generated/models/{PlatformBalanceThresholdFilter.d.ts → PrimaryNetworkBalanceThresholdFilter.d.ts} +2 -2
  21. package/esm/generated/models/TeleporterMessageInfo.d.ts +2 -2
  22. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  23. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  24. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  25. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  26. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  27. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  28. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  29. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  30. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  31. package/esm/generated/services/WebhooksService.d.ts +9 -7
  32. package/esm/index.d.ts +15 -8
  33. package/esm/index.js +1 -1
  34. package/package.json +2 -2
  35. package/esm/generated/models/EventType.d.ts +0 -7
  36. package/esm/generated/models/EventType.js +0 -1
  37. package/esm/generated/models/PlatformActivityKeyType.d.ts +0 -10
  38. package/esm/generated/models/PlatformActivityKeyType.js +0 -1
  39. package/esm/generated/models/PlatformActivityMetadata.d.ts +0 -37
  40. package/esm/generated/models/PlatformActivityRequest.d.ts +0 -31
  41. package/esm/generated/models/PlatformActivityRequest.js +0 -1
  42. package/esm/generated/models/PlatformActivityResponse.d.ts +0 -17
  43. package/esm/generated/models/PlatformActivitySubEvents.d.ts +0 -11
  44. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +0 -10
  45. package/esm/generated/models/PlatformAddressActivitySubEventType.js +0 -1
package/dist/index.d.ts CHANGED
@@ -2084,11 +2084,11 @@ type TeleporterMessageInfo = {
2084
2084
  /**
2085
2085
  * chain id of the source chain. valid only for destination transactions
2086
2086
  */
2087
- sourceChainId?: Record<string, any>;
2087
+ sourceChainId?: string;
2088
2088
  /**
2089
2089
  * chain id of the destination chain. valid only for source transactions
2090
2090
  */
2091
- destinationChainId?: Record<string, any>;
2091
+ destinationChainId?: string;
2092
2092
  };
2093
2093
 
2094
2094
  type GetTransactionResponse = {
@@ -5877,28 +5877,23 @@ type AddressesChangeRequest = {
5877
5877
  };
5878
5878
 
5879
5879
  type AddressActivityMetadata = {
5880
- /**
5881
- * Ethereum address(es) for the address_activity event type
5882
- */
5883
- addresses: Array<string>;
5884
5880
  /**
5885
5881
  * Array of hexadecimal strings of the event signatures.
5886
5882
  */
5887
5883
  eventSignatures?: Array<string>;
5884
+ /**
5885
+ * Ethereum address(es) for the address_activity event type
5886
+ */
5887
+ addresses: Array<string>;
5888
5888
  };
5889
5889
 
5890
- declare enum PrimaryNetworkType {
5891
- MAINNET = "mainnet",
5892
- FUJI = "fuji"
5893
- }
5894
-
5895
5890
  type EVMAddressActivityRequest = {
5896
5891
  eventType: EVMAddressActivityRequest.eventType;
5897
5892
  url: string;
5898
- chainId: string;
5899
- network?: PrimaryNetworkType;
5900
5893
  name?: string;
5901
5894
  description?: string;
5895
+ chainId: string;
5896
+ metadata: AddressActivityMetadata;
5902
5897
  /**
5903
5898
  * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5904
5899
  */
@@ -5907,7 +5902,6 @@ type EVMAddressActivityRequest = {
5907
5902
  * Whether to include logs in the webhook payload.
5908
5903
  */
5909
5904
  includeLogs?: boolean;
5910
- metadata: AddressActivityMetadata;
5911
5905
  };
5912
5906
  declare namespace EVMAddressActivityRequest {
5913
5907
  enum eventType {
@@ -5915,10 +5909,8 @@ declare namespace EVMAddressActivityRequest {
5915
5909
  }
5916
5910
  }
5917
5911
 
5918
- declare enum EventType {
5919
- ADDRESS_ACTIVITY = "address_activity",
5920
- PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5921
- VALIDATOR_ACTIVITY = "validator_activity"
5912
+ declare enum AddressActivityEventType {
5913
+ ADDRESS_ACTIVITY = "address_activity"
5922
5914
  }
5923
5915
 
5924
5916
  declare enum WebhookStatusType {
@@ -5928,13 +5920,13 @@ declare enum WebhookStatusType {
5928
5920
 
5929
5921
  type EVMAddressActivityResponse = {
5930
5922
  id: string;
5931
- eventType: EventType;
5932
5923
  url: string;
5933
5924
  chainId: string;
5934
5925
  status: WebhookStatusType;
5935
5926
  createdAt: number;
5936
5927
  name: string;
5937
5928
  description: string;
5929
+ eventType: AddressActivityEventType;
5938
5930
  metadata: AddressActivityMetadata;
5939
5931
  /**
5940
5932
  * Whether to include traces in the webhook payload.
@@ -5955,30 +5947,28 @@ type ListWebhookAddressesResponse = {
5955
5947
  totalAddresses: number;
5956
5948
  };
5957
5949
 
5950
+ declare enum PrimaryNetworkAddressActivityEventType {
5951
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
5952
+ }
5953
+
5958
5954
  /**
5959
- * The type of key for platform activity depending on the event type
5955
+ * The type of key to monitor for the address activity event type.
5960
5956
  */
5961
- declare enum PlatformActivityKeyType {
5962
- ADDRESSES = "addresses",
5963
- NODE_ID = "nodeId",
5964
- SUBNET_ID = "subnetId"
5957
+ declare enum PlatformAddressActivityKeyType {
5958
+ ADDRESSES = "addresses"
5965
5959
  }
5966
5960
 
5967
5961
  /**
5968
5962
  * Array of address activity sub-event types
5969
5963
  */
5970
- declare enum PlatformAddressActivitySubEventType {
5971
- BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5972
- BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
5964
+ declare enum PrimaryNetworkAddressActivitySubEventType {
5965
+ BALANCE_CHANGE = "balance_change",
5966
+ BALANCE_THRESHOLD = "balance_threshold",
5973
5967
  REWARD_DISTRIBUTION = "reward_distribution"
5974
5968
  }
5975
5969
 
5976
- type PlatformActivitySubEvents = {
5977
- /**
5978
- * Array of validator activity sub-event types
5979
- */
5980
- validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5981
- addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
5970
+ type PrimaryNetworkAddressActivitySubEvents = {
5971
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
5982
5972
  };
5983
5973
 
5984
5974
  /**
@@ -5997,7 +5987,7 @@ declare enum CommonBalanceType {
5997
5987
  ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
5998
5988
  }
5999
5989
 
6000
- type PlatformBalanceThresholdFilter = {
5990
+ type PrimaryNetworkBalanceThresholdFilter = {
6001
5991
  balanceType: CommonBalanceType;
6002
5992
  /**
6003
5993
  * Threshold for balance corresponding to balanceType in nAVAX
@@ -6005,20 +5995,71 @@ type PlatformBalanceThresholdFilter = {
6005
5995
  balanceThreshold: string;
6006
5996
  };
6007
5997
 
6008
- type PlatformActivityMetadata = {
6009
- keyType: PlatformActivityKeyType;
5998
+ type PrimaryNetworkAddressActivityMetadata = {
5999
+ /**
6000
+ * Array of hexadecimal strings of the event signatures.
6001
+ */
6002
+ eventSignatures?: Array<string>;
6003
+ keyType: PlatformAddressActivityKeyType;
6010
6004
  /**
6011
- * 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
6005
+ * Array of keys like addresses corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided.
6012
6006
  */
6013
6007
  keys: Array<string>;
6014
6008
  /**
6015
6009
  * Sub-events to monitor
6016
6010
  */
6017
- subEvents?: PlatformActivitySubEvents;
6011
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6012
+ /**
6013
+ * Balance threshold filter
6014
+ */
6015
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6016
+ };
6017
+
6018
+ type PrimaryNetworkAddressActivityResponse = {
6019
+ id: string;
6020
+ url: string;
6021
+ chainId: string;
6022
+ status: WebhookStatusType;
6023
+ createdAt: number;
6024
+ name: string;
6025
+ description: string;
6026
+ eventType: PrimaryNetworkAddressActivityEventType;
6027
+ metadata: PrimaryNetworkAddressActivityMetadata;
6028
+ };
6029
+
6030
+ declare enum ValidatorActivityEventType {
6031
+ VALIDATOR_ACTIVITY = "validator_activity"
6032
+ }
6033
+
6034
+ /**
6035
+ * The type of key to monitor for the validator activity event type.
6036
+ */
6037
+ declare enum ValidatorActivityKeyType {
6038
+ NODE_ID = "nodeId",
6039
+ SUBNET_ID = "subnetId"
6040
+ }
6041
+
6042
+ type ValidatorActivitySubEvents = {
6043
+ /**
6044
+ * Array of validator activity sub-event types
6045
+ */
6046
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6047
+ };
6048
+
6049
+ type ValidatorActivityMetadata = {
6018
6050
  /**
6019
6051
  * Array of hexadecimal strings of the event signatures.
6020
6052
  */
6021
6053
  eventSignatures?: Array<string>;
6054
+ keyType: ValidatorActivityKeyType;
6055
+ /**
6056
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
6057
+ */
6058
+ keys: Array<string>;
6059
+ /**
6060
+ * Sub-events to monitor
6061
+ */
6062
+ subEvents: ValidatorActivitySubEvents;
6022
6063
  /**
6023
6064
  * Array of node IDs to filter the events
6024
6065
  */
@@ -6027,26 +6068,22 @@ type PlatformActivityMetadata = {
6027
6068
  * Array of subnet IDs to filter the events
6028
6069
  */
6029
6070
  subnetIds?: Array<string>;
6030
- /**
6031
- * Balance threshold filter
6032
- */
6033
- balanceThresholdFilter?: PlatformBalanceThresholdFilter;
6034
6071
  /**
6035
6072
  * L1 validator fee balance threshold in nAVAX
6036
6073
  */
6037
6074
  l1ValidatorFeeBalanceThreshold?: string;
6038
6075
  };
6039
6076
 
6040
- type PlatformActivityResponse = {
6077
+ type ValidatorActivityResponse = {
6041
6078
  id: string;
6042
- eventType: EventType;
6043
6079
  url: string;
6044
6080
  chainId: string;
6045
6081
  status: WebhookStatusType;
6046
6082
  createdAt: number;
6047
6083
  name: string;
6048
6084
  description: string;
6049
- metadata: PlatformActivityMetadata;
6085
+ eventType: ValidatorActivityEventType;
6086
+ metadata: ValidatorActivityMetadata;
6050
6087
  };
6051
6088
 
6052
6089
  type ListWebhooksResponse = {
@@ -6054,33 +6091,29 @@ type ListWebhooksResponse = {
6054
6091
  * 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.
6055
6092
  */
6056
6093
  nextPageToken?: string;
6057
- webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6094
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6058
6095
  };
6059
6096
 
6060
- type PlatformActivityRequest = {
6061
- eventType: PlatformActivityRequest.eventType;
6097
+ declare enum PrimaryNetworkType {
6098
+ MAINNET = "mainnet",
6099
+ FUJI = "fuji"
6100
+ }
6101
+
6102
+ type PrimaryNetworkAddressActivityRequest = {
6103
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6062
6104
  url: string;
6063
- chainId: string;
6064
- network?: PrimaryNetworkType;
6065
6105
  name?: string;
6066
6106
  description?: string;
6107
+ network: PrimaryNetworkType;
6108
+ chainId: string;
6067
6109
  /**
6068
- * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6069
- */
6070
- includeInternalTxs?: boolean;
6071
- /**
6072
- * Whether to include logs in the webhook payload.
6073
- */
6074
- includeLogs?: boolean;
6075
- /**
6076
- * Metadata for platform activity
6110
+ * Metadata for platform address activity event
6077
6111
  */
6078
- metadata: PlatformActivityMetadata;
6112
+ metadata: PrimaryNetworkAddressActivityMetadata;
6079
6113
  };
6080
- declare namespace PlatformActivityRequest {
6114
+ declare namespace PrimaryNetworkAddressActivityRequest {
6081
6115
  enum eventType {
6082
- PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6083
- VALIDATOR_ACTIVITY = "validator_activity"
6116
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6084
6117
  }
6085
6118
  }
6086
6119
 
@@ -6100,6 +6133,23 @@ type UpdateWebhookRequest = {
6100
6133
  includeLogs?: boolean;
6101
6134
  };
6102
6135
 
6136
+ type ValidatorActivityRequest = {
6137
+ eventType: ValidatorActivityRequest.eventType;
6138
+ url: string;
6139
+ name?: string;
6140
+ description?: string;
6141
+ network: PrimaryNetworkType;
6142
+ /**
6143
+ * Metadata for platform validator activity event
6144
+ */
6145
+ metadata: ValidatorActivityMetadata;
6146
+ };
6147
+ declare namespace ValidatorActivityRequest {
6148
+ enum eventType {
6149
+ VALIDATOR_ACTIVITY = "validator_activity"
6150
+ }
6151
+ }
6152
+
6103
6153
  declare enum WebhookStatus {
6104
6154
  ACTIVE = "active",
6105
6155
  INACTIVE = "inactive"
@@ -6115,8 +6165,8 @@ declare class WebhooksService {
6115
6165
  * @throws ApiError
6116
6166
  */
6117
6167
  createWebhook({ requestBody, }: {
6118
- requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6119
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6168
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6169
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6120
6170
  /**
6121
6171
  * List webhooks
6122
6172
  * Lists webhooks for the user.
@@ -6148,7 +6198,7 @@ declare class WebhooksService {
6148
6198
  * The webhook identifier.
6149
6199
  */
6150
6200
  id: string;
6151
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6201
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6152
6202
  /**
6153
6203
  * Deactivate a webhook
6154
6204
  * Deactivates a webhook by ID.
@@ -6160,7 +6210,7 @@ declare class WebhooksService {
6160
6210
  * The webhook identifier.
6161
6211
  */
6162
6212
  id: string;
6163
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6213
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6164
6214
  /**
6165
6215
  * Update a webhook
6166
6216
  * Updates an existing webhook.
@@ -6173,7 +6223,7 @@ declare class WebhooksService {
6173
6223
  */
6174
6224
  id: string;
6175
6225
  requestBody: UpdateWebhookRequest;
6176
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6226
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6177
6227
  /**
6178
6228
  * Generate or rotate a shared secret
6179
6229
  * Generates a new shared secret or rotate an existing one.
@@ -6746,5 +6796,5 @@ declare class FetchHttpRequest extends BaseHttpRequest {
6746
6796
  request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6747
6797
  }
6748
6798
 
6749
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EventType, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6750
- export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, 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, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
6799
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6800
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, 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, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
@@ -0,0 +1,5 @@
1
+ declare enum AddressActivityEventType {
2
+ ADDRESS_ACTIVITY = "address_activity"
3
+ }
4
+
5
+ export { AddressActivityEventType };
@@ -0,0 +1 @@
1
+ var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a))(a||{});export{a as AddressActivityEventType};
@@ -1,12 +1,12 @@
1
1
  type AddressActivityMetadata = {
2
- /**
3
- * Ethereum address(es) for the address_activity event type
4
- */
5
- addresses: Array<string>;
6
2
  /**
7
3
  * Array of hexadecimal strings of the event signatures.
8
4
  */
9
5
  eventSignatures?: Array<string>;
6
+ /**
7
+ * Ethereum address(es) for the address_activity event type
8
+ */
9
+ addresses: Array<string>;
10
10
  };
11
11
 
12
12
  export type { AddressActivityMetadata };
@@ -1,13 +1,12 @@
1
1
  import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
- import { PrimaryNetworkType } from './PrimaryNetworkType.js';
3
2
 
4
3
  type EVMAddressActivityRequest = {
5
4
  eventType: EVMAddressActivityRequest.eventType;
6
5
  url: string;
7
- chainId: string;
8
- network?: PrimaryNetworkType;
9
6
  name?: string;
10
7
  description?: string;
8
+ chainId: string;
9
+ metadata: AddressActivityMetadata;
11
10
  /**
12
11
  * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
13
12
  */
@@ -16,7 +15,6 @@ type EVMAddressActivityRequest = {
16
15
  * Whether to include logs in the webhook payload.
17
16
  */
18
17
  includeLogs?: boolean;
19
- metadata: AddressActivityMetadata;
20
18
  };
21
19
  declare namespace EVMAddressActivityRequest {
22
20
  enum eventType {
@@ -1,16 +1,16 @@
1
+ import { AddressActivityEventType } from './AddressActivityEventType.js';
1
2
  import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
- import { EventType } from './EventType.js';
3
3
  import { WebhookStatusType } from './WebhookStatusType.js';
4
4
 
5
5
  type EVMAddressActivityResponse = {
6
6
  id: string;
7
- eventType: EventType;
8
7
  url: string;
9
8
  chainId: string;
10
9
  status: WebhookStatusType;
11
10
  createdAt: number;
12
11
  name: string;
13
12
  description: string;
13
+ eventType: AddressActivityEventType;
14
14
  metadata: AddressActivityMetadata;
15
15
  /**
16
16
  * Whether to include traces in the webhook payload.
@@ -1,12 +1,13 @@
1
1
  import { EVMAddressActivityResponse } from './EVMAddressActivityResponse.js';
2
- import { PlatformActivityResponse } from './PlatformActivityResponse.js';
2
+ import { PrimaryNetworkAddressActivityResponse } from './PrimaryNetworkAddressActivityResponse.js';
3
+ import { ValidatorActivityResponse } from './ValidatorActivityResponse.js';
3
4
 
4
5
  type ListWebhooksResponse = {
5
6
  /**
6
7
  * 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.
7
8
  */
8
9
  nextPageToken?: string;
9
- webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
10
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
10
11
  };
11
12
 
12
13
  export type { ListWebhooksResponse };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The type of key to monitor for the address activity event type.
3
+ */
4
+ declare enum PlatformAddressActivityKeyType {
5
+ ADDRESSES = "addresses"
6
+ }
7
+
8
+ export { PlatformAddressActivityKeyType };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.ADDRESSES="addresses",e))(e||{});export{e as PlatformAddressActivityKeyType};
@@ -0,0 +1,5 @@
1
+ declare enum PrimaryNetworkAddressActivityEventType {
2
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
3
+ }
4
+
5
+ export { PrimaryNetworkAddressActivityEventType };
@@ -0,0 +1 @@
1
+ var r=(r=>(r.PRIMARY_NETWORK_ADDRESS_ACTIVITY="primary_network_address_activity",r))(r||{});export{r as PrimaryNetworkAddressActivityEventType};
@@ -0,0 +1,25 @@
1
+ import { PlatformAddressActivityKeyType } from './PlatformAddressActivityKeyType.js';
2
+ import { PrimaryNetworkAddressActivitySubEvents } from './PrimaryNetworkAddressActivitySubEvents.js';
3
+ import { PrimaryNetworkBalanceThresholdFilter } from './PrimaryNetworkBalanceThresholdFilter.js';
4
+
5
+ type PrimaryNetworkAddressActivityMetadata = {
6
+ /**
7
+ * Array of hexadecimal strings of the event signatures.
8
+ */
9
+ eventSignatures?: Array<string>;
10
+ keyType: PlatformAddressActivityKeyType;
11
+ /**
12
+ * Array of keys like addresses corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided.
13
+ */
14
+ keys: Array<string>;
15
+ /**
16
+ * Sub-events to monitor
17
+ */
18
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
19
+ /**
20
+ * Balance threshold filter
21
+ */
22
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
23
+ };
24
+
25
+ export type { PrimaryNetworkAddressActivityMetadata };
@@ -0,0 +1,22 @@
1
+ import { PrimaryNetworkAddressActivityMetadata } from './PrimaryNetworkAddressActivityMetadata.js';
2
+ import { PrimaryNetworkType } from './PrimaryNetworkType.js';
3
+
4
+ type PrimaryNetworkAddressActivityRequest = {
5
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6
+ url: string;
7
+ name?: string;
8
+ description?: string;
9
+ network: PrimaryNetworkType;
10
+ chainId: string;
11
+ /**
12
+ * Metadata for platform address activity event
13
+ */
14
+ metadata: PrimaryNetworkAddressActivityMetadata;
15
+ };
16
+ declare namespace PrimaryNetworkAddressActivityRequest {
17
+ enum eventType {
18
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
19
+ }
20
+ }
21
+
22
+ export { PrimaryNetworkAddressActivityRequest };
@@ -0,0 +1 @@
1
+ var e,r;((r=e||(e={})).eventType||(r.eventType={})).PRIMARY_NETWORK_ADDRESS_ACTIVITY="primary_network_address_activity";export{e as PrimaryNetworkAddressActivityRequest};
@@ -0,0 +1,17 @@
1
+ import { PrimaryNetworkAddressActivityEventType } from './PrimaryNetworkAddressActivityEventType.js';
2
+ import { PrimaryNetworkAddressActivityMetadata } from './PrimaryNetworkAddressActivityMetadata.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type PrimaryNetworkAddressActivityResponse = {
6
+ id: string;
7
+ url: string;
8
+ chainId: string;
9
+ status: WebhookStatusType;
10
+ createdAt: number;
11
+ name: string;
12
+ description: string;
13
+ eventType: PrimaryNetworkAddressActivityEventType;
14
+ metadata: PrimaryNetworkAddressActivityMetadata;
15
+ };
16
+
17
+ export type { PrimaryNetworkAddressActivityResponse };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Array of address activity sub-event types
3
+ */
4
+ declare enum PrimaryNetworkAddressActivitySubEventType {
5
+ BALANCE_CHANGE = "balance_change",
6
+ BALANCE_THRESHOLD = "balance_threshold",
7
+ REWARD_DISTRIBUTION = "reward_distribution"
8
+ }
9
+
10
+ export { PrimaryNetworkAddressActivitySubEventType };
@@ -0,0 +1 @@
1
+ var a=(a=>(a.BALANCE_CHANGE="balance_change",a.BALANCE_THRESHOLD="balance_threshold",a.REWARD_DISTRIBUTION="reward_distribution",a))(a||{});export{a as PrimaryNetworkAddressActivitySubEventType};
@@ -0,0 +1,7 @@
1
+ import { PrimaryNetworkAddressActivitySubEventType } from './PrimaryNetworkAddressActivitySubEventType.js';
2
+
3
+ type PrimaryNetworkAddressActivitySubEvents = {
4
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
5
+ };
6
+
7
+ export type { PrimaryNetworkAddressActivitySubEvents };
@@ -1,6 +1,6 @@
1
1
  import { CommonBalanceType } from './CommonBalanceType.js';
2
2
 
3
- type PlatformBalanceThresholdFilter = {
3
+ type PrimaryNetworkBalanceThresholdFilter = {
4
4
  balanceType: CommonBalanceType;
5
5
  /**
6
6
  * Threshold for balance corresponding to balanceType in nAVAX
@@ -8,4 +8,4 @@ type PlatformBalanceThresholdFilter = {
8
8
  balanceThreshold: string;
9
9
  };
10
10
 
11
- export type { PlatformBalanceThresholdFilter };
11
+ export type { PrimaryNetworkBalanceThresholdFilter };
@@ -6,11 +6,11 @@ type TeleporterMessageInfo = {
6
6
  /**
7
7
  * chain id of the source chain. valid only for destination transactions
8
8
  */
9
- sourceChainId?: Record<string, any>;
9
+ sourceChainId?: string;
10
10
  /**
11
11
  * chain id of the destination chain. valid only for source transactions
12
12
  */
13
- destinationChainId?: Record<string, any>;
13
+ destinationChainId?: string;
14
14
  };
15
15
 
16
16
  export type { TeleporterMessageInfo };
@@ -0,0 +1,5 @@
1
+ declare enum ValidatorActivityEventType {
2
+ VALIDATOR_ACTIVITY = "validator_activity"
3
+ }
4
+
5
+ export { ValidatorActivityEventType };
@@ -0,0 +1 @@
1
+ var a=(a=>(a.VALIDATOR_ACTIVITY="validator_activity",a))(a||{});export{a as ValidatorActivityEventType};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The type of key to monitor for the validator activity event type.
3
+ */
4
+ declare enum ValidatorActivityKeyType {
5
+ NODE_ID = "nodeId",
6
+ SUBNET_ID = "subnetId"
7
+ }
8
+
9
+ export { ValidatorActivityKeyType };
@@ -0,0 +1 @@
1
+ var I=(I=>(I.NODE_ID="nodeId",I.SUBNET_ID="subnetId",I))(I||{});export{I as ValidatorActivityKeyType};