@avalabs/glacier-sdk 2.8.0-canary.5083b17.0 → 2.8.0-canary.50c5939.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.d.ts +370 -186
  2. package/dist/index.js +221 -117
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +2 -10
  10. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  11. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  12. package/esm/generated/models/ChainInfo.d.ts +1 -1
  13. package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
  14. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +2 -0
  15. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +2 -0
  16. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  17. package/esm/generated/models/GlacierApiFeature.d.ts +2 -1
  18. package/esm/generated/models/GlacierApiFeature.js +1 -0
  19. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  20. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  21. package/esm/generated/models/PChainTransaction.d.ts +5 -0
  22. package/esm/generated/models/PendingTeleporterMessage.d.ts +2 -0
  23. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  24. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  25. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -0
  26. package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -0
  27. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  28. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  29. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  30. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  31. package/esm/generated/models/SortByOption.d.ts +9 -0
  32. package/esm/generated/models/SortByOption.js +10 -0
  33. package/esm/generated/models/UpdateWebhookRequest.d.ts +1 -1
  34. package/esm/generated/models/WebhookResponse.d.ts +8 -0
  35. package/esm/generated/services/DefaultService.d.ts +0 -86
  36. package/esm/generated/services/DefaultService.js +0 -73
  37. package/esm/generated/services/EvmBalancesService.d.ts +5 -1
  38. package/esm/generated/services/EvmBalancesService.js +2 -0
  39. package/esm/generated/services/PrimaryNetworkService.d.ts +24 -9
  40. package/esm/generated/services/PrimaryNetworkService.js +10 -4
  41. package/esm/generated/services/RpcService.d.ts +25 -0
  42. package/esm/generated/services/RpcService.js +24 -0
  43. package/esm/generated/services/TeleporterService.d.ts +9 -4
  44. package/esm/generated/services/TeleporterService.js +4 -2
  45. package/esm/generated/services/WebhooksService.d.ts +143 -0
  46. package/esm/generated/services/WebhooksService.js +125 -0
  47. package/esm/index.d.ts +11 -0
  48. package/esm/index.js +3 -0
  49. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,79 +54,6 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- /**
69
- * Array of hexadecimal strings of the event signatures.
70
- */
71
- eventSignatures?: Array<string>;
72
- /**
73
- * Whether to include traces in the webhook payload.
74
- */
75
- includeTraces?: boolean;
76
- /**
77
- * Whether to include logs in the webhook payload.
78
- */
79
- includeLogs?: boolean;
80
- };
81
-
82
- declare enum EventType {
83
- ADDRESS_ACTIVITY = "address_activity"
84
- }
85
-
86
- declare enum WebhookStatusType {
87
- ACTIVE = "active",
88
- INACTIVE = "inactive"
89
- }
90
-
91
- type WebhookResponse = {
92
- id: string;
93
- eventType: EventType;
94
- metadata: AddressActivityMetadata;
95
- url: string;
96
- chainId: string;
97
- status: WebhookStatusType;
98
- createdAt: number;
99
- name: string;
100
- description: string;
101
- };
102
-
103
- type ListWebhooksResponse = {
104
- /**
105
- * 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.
106
- */
107
- nextPageToken?: string;
108
- webhooks: Array<WebhookResponse>;
109
- };
110
-
111
- type RegisterWebhookRequest = {
112
- url: string;
113
- chainId: string;
114
- eventType: EventType;
115
- metadata: AddressActivityMetadata;
116
- };
117
-
118
- type SharedSecretsResponse = {
119
- secret: string;
120
- };
121
-
122
- type UpdateWebhookRequest = {
123
- name?: string;
124
- description?: string;
125
- url?: string;
126
- status?: WebhookStatusType;
127
- includeTraces?: boolean;
128
- includeLogs?: boolean;
129
- };
130
-
131
- declare enum WebhookStatus {
132
- ACTIVE = "active",
133
- INACTIVE = "inactive"
134
- }
135
-
136
57
  declare class DefaultService {
137
58
  readonly httpRequest: BaseHttpRequest;
138
59
  constructor(httpRequest: BaseHttpRequest);
@@ -141,86 +62,6 @@ declare class DefaultService {
141
62
  * @throws ApiError
142
63
  */
143
64
  mediaControllerUploadImage(): CancelablePromise<any>;
144
- /**
145
- * Register a webhook
146
- * Registers a new webhook.
147
- * @returns WebhookResponse
148
- * @throws ApiError
149
- */
150
- registerWebhook({ requestBody, }: {
151
- requestBody: RegisterWebhookRequest;
152
- }): CancelablePromise<WebhookResponse>;
153
- /**
154
- * List webhooks
155
- * Lists webhooks for the user.
156
- * @returns ListWebhooksResponse
157
- * @throws ApiError
158
- */
159
- listWebhooks({ pageToken, pageSize, status, }: {
160
- /**
161
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
162
- */
163
- pageToken?: string;
164
- /**
165
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
166
- */
167
- pageSize?: number;
168
- /**
169
- * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
170
- */
171
- status?: WebhookStatus;
172
- }): CancelablePromise<ListWebhooksResponse>;
173
- /**
174
- * Get a webhook by ID
175
- * Retrieves a webhook by ID.
176
- * @returns WebhookResponse
177
- * @throws ApiError
178
- */
179
- getWebhook({ id, }: {
180
- /**
181
- * The webhook identifier.
182
- */
183
- id: string;
184
- }): CancelablePromise<WebhookResponse>;
185
- /**
186
- * Deactivate a webhook
187
- * Deactivates a webhook by ID.
188
- * @returns WebhookResponse
189
- * @throws ApiError
190
- */
191
- deactivateWebhook({ id, }: {
192
- /**
193
- * The webhook identifier.
194
- */
195
- id: string;
196
- }): CancelablePromise<WebhookResponse>;
197
- /**
198
- * Update a webhook
199
- * Updates an existing webhook.
200
- * @returns WebhookResponse
201
- * @throws ApiError
202
- */
203
- updateWebhook({ id, requestBody, }: {
204
- /**
205
- * The webhook identifier.
206
- */
207
- id: string;
208
- requestBody: UpdateWebhookRequest;
209
- }): CancelablePromise<WebhookResponse>;
210
- /**
211
- * Generate a shared secret
212
- * Generates a new shared secret.
213
- * @returns SharedSecretsResponse
214
- * @throws ApiError
215
- */
216
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
217
- /**
218
- * Get a shared secret
219
- * Get a previously generated shared secret.
220
- * @returns SharedSecretsResponse
221
- * @throws ApiError
222
- */
223
- getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
224
65
  }
225
66
 
226
67
  /**
@@ -521,7 +362,7 @@ declare class EvmBalancesService {
521
362
  * @returns ListErc20BalancesResponse
522
363
  * @throws ApiError
523
364
  */
524
- listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
525
366
  /**
526
367
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
527
368
  */
@@ -542,6 +383,10 @@ declare class EvmBalancesService {
542
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
543
384
  */
544
385
  pageSize?: number;
386
+ /**
387
+ * whether to filter out spam tokens from the response. Default is true.
388
+ */
389
+ filterSpamTokens?: boolean;
545
390
  /**
546
391
  * A comma separated list of contract addresses to filter by.
547
392
  */
@@ -841,11 +686,12 @@ type GetChainResponse = {
841
686
  networkToken: NetworkToken;
842
687
  chainLogoUri?: string;
843
688
  private?: boolean;
844
- enabledFeatures?: Array<'nftIndexing'>;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
845
690
  };
846
691
 
847
692
  declare enum GlacierApiFeature {
848
- NFT_INDEXING = "nftIndexing"
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
849
695
  }
850
696
 
851
697
  type ChainInfo = {
@@ -865,7 +711,7 @@ type ChainInfo = {
865
711
  networkToken: NetworkToken;
866
712
  chainLogoUri?: string;
867
713
  private?: boolean;
868
- enabledFeatures?: Array<'nftIndexing'>;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
869
715
  };
870
716
 
871
717
  type ListChainsResponse = {
@@ -2193,7 +2039,7 @@ declare enum PrimaryNetworkOperationType {
2193
2039
  }
2194
2040
 
2195
2041
  type PrimaryNetworkOptions = {
2196
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
2197
2043
  cChainEvmAddresses?: Array<string>;
2198
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2199
2045
  };
@@ -2465,6 +2311,11 @@ type ListSubnetsResponse = {
2465
2311
  subnets: Array<Subnet>;
2466
2312
  };
2467
2313
 
2314
+ type BlsCredentials = {
2315
+ publicKey: string;
2316
+ proofOfPossession: string;
2317
+ };
2318
+
2468
2319
  type Rewards = {
2469
2320
  validationRewardAmount: string;
2470
2321
  delegationRewardAmount: string;
@@ -2499,6 +2350,10 @@ type ActiveValidatorDetails = {
2499
2350
  delegationFee?: string;
2500
2351
  startTimestamp: number;
2501
2352
  endTimestamp: number;
2353
+ /**
2354
+ * Present for AddPermissionlessValidatorTx
2355
+ */
2356
+ blsCredentials?: BlsCredentials;
2502
2357
  stakePercentage: number;
2503
2358
  delegatorCount: number;
2504
2359
  amountDelegated?: string;
@@ -2523,6 +2378,10 @@ type CompletedValidatorDetails = {
2523
2378
  delegationFee?: string;
2524
2379
  startTimestamp: number;
2525
2380
  endTimestamp: number;
2381
+ /**
2382
+ * Present for AddPermissionlessValidatorTx
2383
+ */
2384
+ blsCredentials?: BlsCredentials;
2526
2385
  delegatorCount: number;
2527
2386
  rewards: Rewards;
2528
2387
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -2541,6 +2400,10 @@ type PendingValidatorDetails = {
2541
2400
  delegationFee?: string;
2542
2401
  startTimestamp: number;
2543
2402
  endTimestamp: number;
2403
+ /**
2404
+ * Present for AddPermissionlessValidatorTx
2405
+ */
2406
+ blsCredentials?: BlsCredentials;
2544
2407
  validationStatus: PendingValidatorDetails.validationStatus;
2545
2408
  };
2546
2409
  declare namespace PendingValidatorDetails {
@@ -2557,6 +2420,10 @@ type RemovedValidatorDetails = {
2557
2420
  delegationFee?: string;
2558
2421
  startTimestamp: number;
2559
2422
  endTimestamp: number;
2423
+ /**
2424
+ * Present for AddPermissionlessValidatorTx
2425
+ */
2426
+ blsCredentials?: BlsCredentials;
2560
2427
  removeTxHash: string;
2561
2428
  removeTimestamp: number;
2562
2429
  validationStatus: RemovedValidatorDetails.validationStatus;
@@ -2583,6 +2450,14 @@ declare enum Network {
2583
2450
  FUJI = "fuji"
2584
2451
  }
2585
2452
 
2453
+ declare enum SortByOption {
2454
+ BLOCK_INDEX = "blockIndex",
2455
+ DELEGATION_CAPACITY = "delegationCapacity",
2456
+ TIME_REMAINING = "timeRemaining",
2457
+ DELEGATION_FEE = "delegationFee",
2458
+ UPTIME_PERFORMANCE = "uptimePerformance"
2459
+ }
2460
+
2586
2461
  declare enum ValidationStatusType {
2587
2462
  COMPLETED = "completed",
2588
2463
  ACTIVE = "active",
@@ -2742,7 +2617,7 @@ declare class PrimaryNetworkService {
2742
2617
  * @returns ListValidatorDetailsResponse
2743
2618
  * @throws ApiError
2744
2619
  */
2745
- listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2620
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2746
2621
  /**
2747
2622
  * Either mainnet or a testnet.
2748
2623
  */
@@ -2759,6 +2634,12 @@ declare class PrimaryNetworkService {
2759
2634
  * A comma separated list of node ids to filter by.
2760
2635
  */
2761
2636
  nodeIds?: string;
2637
+ /**
2638
+ * Which property to sort by, in conjunction with sortOrder.
2639
+ *
2640
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2641
+ */
2642
+ sortBy?: SortByOption;
2762
2643
  /**
2763
2644
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2764
2645
  */
@@ -2784,17 +2665,25 @@ declare class PrimaryNetworkService {
2784
2665
  */
2785
2666
  maxTimeRemaining?: number;
2786
2667
  /**
2787
- * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2668
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2788
2669
  */
2789
2670
  minFeePercentage?: number;
2790
2671
  /**
2791
- * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2672
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
2792
2673
  */
2793
2674
  maxFeePercentage?: number;
2675
+ /**
2676
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2677
+ */
2678
+ minUptimePerformance?: number;
2679
+ /**
2680
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2681
+ */
2682
+ maxUptimePerformance?: number;
2794
2683
  /**
2795
2684
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2796
2685
  */
2797
- subnetId?: string;
2686
+ subnetId?: any;
2798
2687
  }): CancelablePromise<ListValidatorDetailsResponse>;
2799
2688
  /**
2800
2689
  * Get single validator details
@@ -2802,7 +2691,7 @@ declare class PrimaryNetworkService {
2802
2691
  * @returns ListValidatorDetailsResponse
2803
2692
  * @throws ApiError
2804
2693
  */
2805
- getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2694
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2806
2695
  /**
2807
2696
  * Either mainnet or a testnet.
2808
2697
  */
@@ -2819,14 +2708,14 @@ declare class PrimaryNetworkService {
2819
2708
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2820
2709
  */
2821
2710
  pageSize?: number;
2822
- /**
2823
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2824
- */
2825
- sortOrder?: SortOrder;
2826
2711
  /**
2827
2712
  * Validation status of the node.
2828
2713
  */
2829
2714
  validationStatus?: ValidationStatusType;
2715
+ /**
2716
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2717
+ */
2718
+ sortOrder?: SortOrder;
2830
2719
  }): CancelablePromise<ListValidatorDetailsResponse>;
2831
2720
  /**
2832
2721
  * List delegators
@@ -3753,6 +3642,10 @@ type PChainTransaction = {
3753
3642
  * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3754
3643
  */
3755
3644
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3645
+ /**
3646
+ * Present for AddPermissionlessValidatorTx
3647
+ */
3648
+ blsCredentials?: BlsCredentials;
3756
3649
  };
3757
3650
 
3758
3651
  type ListPChainTransactionsResponse = {
@@ -4261,6 +4154,49 @@ declare class PrimaryNetworkVerticesService {
4261
4154
  }): CancelablePromise<ListXChainVerticesResponse>;
4262
4155
  }
4263
4156
 
4157
+ type RpcErrorDto = {
4158
+ code: number;
4159
+ message: string;
4160
+ data?: Record<string, any>;
4161
+ };
4162
+
4163
+ type RpcErrorResponseDto = {
4164
+ jsonrpc: string;
4165
+ id?: (string | number);
4166
+ error: RpcErrorDto;
4167
+ };
4168
+
4169
+ type RpcRequestBodyDto = {
4170
+ method: string;
4171
+ params?: Record<string, any>;
4172
+ id?: (string | number);
4173
+ jsonrpc?: string;
4174
+ };
4175
+
4176
+ type RpcSuccessResponseDto = {
4177
+ jsonrpc: string;
4178
+ id?: (string | number);
4179
+ result: Record<string, any>;
4180
+ };
4181
+
4182
+ declare class RpcService {
4183
+ readonly httpRequest: BaseHttpRequest;
4184
+ constructor(httpRequest: BaseHttpRequest);
4185
+ /**
4186
+ * Calls JSON-RPC method
4187
+ * Calls JSON-RPC method.
4188
+ * @returns any
4189
+ * @throws ApiError
4190
+ */
4191
+ rpc({ chainId, requestBody, }: {
4192
+ /**
4193
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4194
+ */
4195
+ chainId: string;
4196
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4197
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4198
+ }
4199
+
4264
4200
  type TeleporterDestinationTransaction = {
4265
4201
  txHash: string;
4266
4202
  timestamp: number;
@@ -4313,6 +4249,8 @@ type DeliveredSourceNotIndexedTeleporterMessage = {
4313
4249
  teleporterContractAddress: string;
4314
4250
  sourceBlockchainId: string;
4315
4251
  destinationBlockchainId: string;
4252
+ sourceEvmChainId: string;
4253
+ destinationEvmChainId: string;
4316
4254
  messageNonce: string;
4317
4255
  from: string;
4318
4256
  to: string;
@@ -4341,6 +4279,8 @@ type DeliveredTeleporterMessage = {
4341
4279
  teleporterContractAddress: string;
4342
4280
  sourceBlockchainId: string;
4343
4281
  destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4344
4284
  messageNonce: string;
4345
4285
  from: string;
4346
4286
  to: string;
@@ -4359,18 +4299,13 @@ declare namespace DeliveredTeleporterMessage {
4359
4299
  }
4360
4300
  }
4361
4301
 
4362
- type NextPageToken = {
4363
- /**
4364
- * 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.
4365
- */
4366
- nextPageToken?: string;
4367
- };
4368
-
4369
4302
  type PendingTeleporterMessage = {
4370
4303
  messageId: string;
4371
4304
  teleporterContractAddress: string;
4372
4305
  sourceBlockchainId: string;
4373
4306
  destinationBlockchainId: string;
4307
+ sourceEvmChainId: string;
4308
+ destinationEvmChainId: string;
4374
4309
  messageNonce: string;
4375
4310
  from: string;
4376
4311
  to: string;
@@ -4388,6 +4323,14 @@ declare namespace PendingTeleporterMessage {
4388
4323
  }
4389
4324
  }
4390
4325
 
4326
+ type ListTeleporterMessagesResponse = {
4327
+ /**
4328
+ * 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.
4329
+ */
4330
+ nextPageToken?: string;
4331
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4332
+ };
4333
+
4391
4334
  declare class TeleporterService {
4392
4335
  readonly httpRequest: BaseHttpRequest;
4393
4336
  constructor(httpRequest: BaseHttpRequest);
@@ -4406,10 +4349,10 @@ declare class TeleporterService {
4406
4349
  /**
4407
4350
  * List teleporter messages
4408
4351
  * Lists teleporter messages. Ordered by timestamp in descending order.
4409
- * @returns any
4352
+ * @returns ListTeleporterMessagesResponse
4410
4353
  * @throws ApiError
4411
4354
  */
4412
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4355
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
4413
4356
  /**
4414
4357
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4415
4358
  */
@@ -4434,7 +4377,239 @@ declare class TeleporterService {
4434
4377
  * The address of the sender of the teleporter message.
4435
4378
  */
4436
4379
  from?: string;
4437
- }): CancelablePromise<NextPageToken>;
4380
+ /**
4381
+ * mainnet or testnet.
4382
+ */
4383
+ network?: NetworkType;
4384
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4385
+ }
4386
+
4387
+ type AddressesChangeRequest = {
4388
+ /**
4389
+ * Ethereum address(es) for the address_activity event type
4390
+ */
4391
+ addresses: Array<any[]>;
4392
+ };
4393
+
4394
+ type ListWebhookAddressesResponse = {
4395
+ /**
4396
+ * 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.
4397
+ */
4398
+ nextPageToken?: string;
4399
+ addresses: Array<string>;
4400
+ totalAddresses: number;
4401
+ };
4402
+
4403
+ type AddressActivityMetadata = {
4404
+ /**
4405
+ * Ethereum address(es) for the address_activity event type
4406
+ */
4407
+ addresses: Array<any[]>;
4408
+ /**
4409
+ * Array of hexadecimal strings of the event signatures.
4410
+ */
4411
+ eventSignatures?: Array<string>;
4412
+ };
4413
+
4414
+ declare enum EventType {
4415
+ ADDRESS_ACTIVITY = "address_activity"
4416
+ }
4417
+
4418
+ declare enum WebhookStatusType {
4419
+ ACTIVE = "active",
4420
+ INACTIVE = "inactive"
4421
+ }
4422
+
4423
+ type WebhookResponse = {
4424
+ id: string;
4425
+ eventType: EventType;
4426
+ metadata: AddressActivityMetadata;
4427
+ /**
4428
+ * Whether to include traces in the webhook payload.
4429
+ */
4430
+ includeInternalTxs?: boolean;
4431
+ /**
4432
+ * Whether to include logs in the webhook payload.
4433
+ */
4434
+ includeLogs?: boolean;
4435
+ url: string;
4436
+ chainId: string;
4437
+ status: WebhookStatusType;
4438
+ createdAt: number;
4439
+ name: string;
4440
+ description: string;
4441
+ };
4442
+
4443
+ type ListWebhooksResponse = {
4444
+ /**
4445
+ * 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.
4446
+ */
4447
+ nextPageToken?: string;
4448
+ webhooks: Array<WebhookResponse>;
4449
+ };
4450
+
4451
+ type RegisterWebhookRequest = {
4452
+ url: string;
4453
+ chainId: string;
4454
+ eventType: EventType;
4455
+ metadata: AddressActivityMetadata;
4456
+ /**
4457
+ * Whether to include traces in the webhook payload.
4458
+ */
4459
+ includeInternalTxs?: boolean;
4460
+ /**
4461
+ * Whether to include logs in the webhook payload.
4462
+ */
4463
+ includeLogs?: boolean;
4464
+ };
4465
+
4466
+ type SharedSecretsResponse = {
4467
+ secret: string;
4468
+ };
4469
+
4470
+ type UpdateWebhookRequest = {
4471
+ name?: string;
4472
+ description?: string;
4473
+ url?: string;
4474
+ status?: WebhookStatusType;
4475
+ includeInternalTxs?: boolean;
4476
+ includeLogs?: boolean;
4477
+ };
4478
+
4479
+ declare enum WebhookStatus {
4480
+ ACTIVE = "active",
4481
+ INACTIVE = "inactive"
4482
+ }
4483
+
4484
+ declare class WebhooksService {
4485
+ readonly httpRequest: BaseHttpRequest;
4486
+ constructor(httpRequest: BaseHttpRequest);
4487
+ /**
4488
+ * Create a webhook
4489
+ * Create a new webhook.
4490
+ * @returns WebhookResponse
4491
+ * @throws ApiError
4492
+ */
4493
+ registerWebhook({ requestBody, }: {
4494
+ requestBody: RegisterWebhookRequest;
4495
+ }): CancelablePromise<WebhookResponse>;
4496
+ /**
4497
+ * List webhooks
4498
+ * Lists webhooks for the user.
4499
+ * @returns ListWebhooksResponse
4500
+ * @throws ApiError
4501
+ */
4502
+ listWebhooks({ pageToken, pageSize, status, }: {
4503
+ /**
4504
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4505
+ */
4506
+ pageToken?: string;
4507
+ /**
4508
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4509
+ */
4510
+ pageSize?: number;
4511
+ /**
4512
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
4513
+ */
4514
+ status?: WebhookStatus;
4515
+ }): CancelablePromise<ListWebhooksResponse>;
4516
+ /**
4517
+ * Get a webhook by ID
4518
+ * Retrieves a webhook by ID.
4519
+ * @returns WebhookResponse
4520
+ * @throws ApiError
4521
+ */
4522
+ getWebhook({ id, }: {
4523
+ /**
4524
+ * The webhook identifier.
4525
+ */
4526
+ id: string;
4527
+ }): CancelablePromise<WebhookResponse>;
4528
+ /**
4529
+ * Deactivate a webhook
4530
+ * Deactivates a webhook by ID.
4531
+ * @returns WebhookResponse
4532
+ * @throws ApiError
4533
+ */
4534
+ deactivateWebhook({ id, }: {
4535
+ /**
4536
+ * The webhook identifier.
4537
+ */
4538
+ id: string;
4539
+ }): CancelablePromise<WebhookResponse>;
4540
+ /**
4541
+ * Update a webhook
4542
+ * Updates an existing webhook.
4543
+ * @returns WebhookResponse
4544
+ * @throws ApiError
4545
+ */
4546
+ updateWebhook({ id, requestBody, }: {
4547
+ /**
4548
+ * The webhook identifier.
4549
+ */
4550
+ id: string;
4551
+ requestBody: UpdateWebhookRequest;
4552
+ }): CancelablePromise<WebhookResponse>;
4553
+ /**
4554
+ * Generate a shared secret
4555
+ * Generates a new shared secret.
4556
+ * @returns SharedSecretsResponse
4557
+ * @throws ApiError
4558
+ */
4559
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4560
+ /**
4561
+ * Get a shared secret
4562
+ * Get a previously generated shared secret.
4563
+ * @returns SharedSecretsResponse
4564
+ * @throws ApiError
4565
+ */
4566
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4567
+ /**
4568
+ * Add addresses to webhook
4569
+ * Add addresses to webhook.
4570
+ * @returns WebhookResponse
4571
+ * @throws ApiError
4572
+ */
4573
+ addAddressesToWebhook({ id, requestBody, }: {
4574
+ /**
4575
+ * The webhook identifier.
4576
+ */
4577
+ id: string;
4578
+ requestBody: AddressesChangeRequest;
4579
+ }): CancelablePromise<WebhookResponse>;
4580
+ /**
4581
+ * Remove addresses from webhook
4582
+ * Remove addresses from webhook.
4583
+ * @returns WebhookResponse
4584
+ * @throws ApiError
4585
+ */
4586
+ removeAddressesFromWebhook({ id, requestBody, }: {
4587
+ /**
4588
+ * The webhook identifier.
4589
+ */
4590
+ id: string;
4591
+ requestBody: AddressesChangeRequest;
4592
+ }): CancelablePromise<WebhookResponse>;
4593
+ /**
4594
+ * List adresses by webhook
4595
+ * List adresses by webhook.
4596
+ * @returns ListWebhookAddressesResponse
4597
+ * @throws ApiError
4598
+ */
4599
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4600
+ /**
4601
+ * The webhook identifier.
4602
+ */
4603
+ id: string;
4604
+ /**
4605
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4606
+ */
4607
+ pageToken?: string;
4608
+ /**
4609
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4610
+ */
4611
+ pageSize?: number;
4612
+ }): CancelablePromise<ListWebhookAddressesResponse>;
4438
4613
  }
4439
4614
 
4440
4615
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4455,7 +4630,9 @@ declare class Glacier {
4455
4630
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4456
4631
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4457
4632
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4633
+ readonly rpc: RpcService;
4458
4634
  readonly teleporter: TeleporterService;
4635
+ readonly webhooks: WebhooksService;
4459
4636
  readonly request: BaseHttpRequest;
4460
4637
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4461
4638
  }
@@ -4477,4 +4654,11 @@ declare class ApiError extends Error {
4477
4654
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4478
4655
  }
4479
4656
 
4480
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4657
+ type NextPageToken = {
4658
+ /**
4659
+ * 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.
4660
+ */
4661
+ nextPageToken?: string;
4662
+ };
4663
+
4664
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, 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, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };