@avalabs/glacier-sdk 2.8.0-canary.5601e64.0 → 2.8.0-canary.57278c1.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 (39) hide show
  1. package/dist/index.d.ts +284 -164
  2. package/dist/index.js +189 -114
  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/AddressActivityMetadata.d.ts +2 -2
  9. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  10. package/esm/generated/models/ChainInfo.d.ts +1 -0
  11. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +2 -0
  12. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +2 -0
  13. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  14. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  15. package/esm/generated/models/GlacierApiFeature.js +7 -0
  16. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  17. package/esm/generated/models/PendingTeleporterMessage.d.ts +2 -0
  18. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  19. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -0
  20. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  21. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  22. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  23. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  24. package/esm/generated/models/UpdateWebhookRequest.d.ts +2 -0
  25. package/esm/generated/models/WebhookResponse.d.ts +8 -0
  26. package/esm/generated/services/DefaultService.d.ts +0 -86
  27. package/esm/generated/services/DefaultService.js +0 -73
  28. package/esm/generated/services/EvmChainsService.d.ts +6 -1
  29. package/esm/generated/services/EvmChainsService.js +4 -2
  30. package/esm/generated/services/PrimaryNetworkService.d.ts +1 -1
  31. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  32. package/esm/generated/services/RpcService.d.ts +25 -0
  33. package/esm/generated/services/RpcService.js +24 -0
  34. package/esm/generated/services/TeleporterService.d.ts +3 -3
  35. package/esm/generated/services/WebhooksService.d.ts +122 -0
  36. package/esm/generated/services/WebhooksService.js +108 -0
  37. package/esm/index.d.ts +9 -0
  38. package/esm/index.js +3 -0
  39. 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,69 +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
-
74
- declare enum EventType {
75
- ADDRESS_ACTIVITY = "address_activity"
76
- }
77
-
78
- declare enum WebhookStatusType {
79
- ACTIVE = "active",
80
- INACTIVE = "inactive"
81
- }
82
-
83
- type WebhookResponse = {
84
- id: string;
85
- eventType: EventType;
86
- metadata: AddressActivityMetadata;
87
- url: string;
88
- chainId: string;
89
- status: WebhookStatusType;
90
- createdAt: number;
91
- name: string;
92
- description: string;
93
- };
94
-
95
- type ListWebhooksResponse = {
96
- /**
97
- * 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.
98
- */
99
- nextPageToken?: string;
100
- webhooks: Array<WebhookResponse>;
101
- };
102
-
103
- type RegisterWebhookRequest = {
104
- url: string;
105
- chainId: string;
106
- eventType: EventType;
107
- metadata: AddressActivityMetadata;
108
- };
109
-
110
- type SharedSecretsResponse = {
111
- secret: string;
112
- };
113
-
114
- type UpdateWebhookRequest = {
115
- name?: string;
116
- description?: string;
117
- url?: string;
118
- status?: WebhookStatusType;
119
- };
120
-
121
- declare enum WebhookStatus {
122
- ACTIVE = "active",
123
- INACTIVE = "inactive"
124
- }
125
-
126
57
  declare class DefaultService {
127
58
  readonly httpRequest: BaseHttpRequest;
128
59
  constructor(httpRequest: BaseHttpRequest);
@@ -131,86 +62,6 @@ declare class DefaultService {
131
62
  * @throws ApiError
132
63
  */
133
64
  mediaControllerUploadImage(): CancelablePromise<any>;
134
- /**
135
- * Register a webhook
136
- * Registers a new webhook.
137
- * @returns WebhookResponse
138
- * @throws ApiError
139
- */
140
- registerWebhook({ requestBody, }: {
141
- requestBody: RegisterWebhookRequest;
142
- }): CancelablePromise<WebhookResponse>;
143
- /**
144
- * List webhooks
145
- * Lists webhooks for the user.
146
- * @returns ListWebhooksResponse
147
- * @throws ApiError
148
- */
149
- listWebhooks({ pageToken, pageSize, status, }: {
150
- /**
151
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
152
- */
153
- pageToken?: string;
154
- /**
155
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
156
- */
157
- pageSize?: number;
158
- /**
159
- * 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.
160
- */
161
- status?: WebhookStatus;
162
- }): CancelablePromise<ListWebhooksResponse>;
163
- /**
164
- * Get a webhook by ID
165
- * Retrieves a webhook by ID.
166
- * @returns WebhookResponse
167
- * @throws ApiError
168
- */
169
- getWebhook({ id, }: {
170
- /**
171
- * The webhook identifier.
172
- */
173
- id: string;
174
- }): CancelablePromise<WebhookResponse>;
175
- /**
176
- * Deactivate a webhook
177
- * Deactivates a webhook by ID.
178
- * @returns WebhookResponse
179
- * @throws ApiError
180
- */
181
- deactivateWebhook({ id, }: {
182
- /**
183
- * The webhook identifier.
184
- */
185
- id: string;
186
- }): CancelablePromise<WebhookResponse>;
187
- /**
188
- * Update a webhook
189
- * Updates an existing webhook.
190
- * @returns WebhookResponse
191
- * @throws ApiError
192
- */
193
- updateWebhook({ id, requestBody, }: {
194
- /**
195
- * The webhook identifier.
196
- */
197
- id: string;
198
- requestBody: UpdateWebhookRequest;
199
- }): CancelablePromise<WebhookResponse>;
200
- /**
201
- * Generate a shared secret
202
- * Generates a new shared secret.
203
- * @returns SharedSecretsResponse
204
- * @throws ApiError
205
- */
206
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
207
- /**
208
- * Get a shared secret
209
- * Get a previously generated shared secret.
210
- * @returns SharedSecretsResponse
211
- * @throws ApiError
212
- */
213
- getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
214
65
  }
215
66
 
216
67
  /**
@@ -831,8 +682,14 @@ type GetChainResponse = {
831
682
  networkToken: NetworkToken;
832
683
  chainLogoUri?: string;
833
684
  private?: boolean;
685
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
834
686
  };
835
687
 
688
+ declare enum GlacierApiFeature {
689
+ NFT_INDEXING = "nftIndexing",
690
+ WEBHOOKS = "webhooks"
691
+ }
692
+
836
693
  type ChainInfo = {
837
694
  chainId: string;
838
695
  status: ChainStatus;
@@ -850,6 +707,7 @@ type ChainInfo = {
850
707
  networkToken: NetworkToken;
851
708
  chainLogoUri?: string;
852
709
  private?: boolean;
710
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
853
711
  };
854
712
 
855
713
  type ListChainsResponse = {
@@ -870,11 +728,15 @@ declare class EvmChainsService {
870
728
  * @returns ListChainsResponse
871
729
  * @throws ApiError
872
730
  */
873
- supportedChains({ network, }: {
731
+ supportedChains({ network, feature, }: {
874
732
  /**
875
733
  * mainnet or testnet.
876
734
  */
877
735
  network?: NetworkType;
736
+ /**
737
+ * Filter by feature.
738
+ */
739
+ feature?: GlacierApiFeature;
878
740
  }): CancelablePromise<ListChainsResponse>;
879
741
  /**
880
742
  * Get chain information
@@ -2173,7 +2035,7 @@ declare enum PrimaryNetworkOperationType {
2173
2035
  }
2174
2036
 
2175
2037
  type PrimaryNetworkOptions = {
2176
- addresses: Array<string>;
2038
+ addresses?: Array<string>;
2177
2039
  cChainEvmAddresses?: Array<string>;
2178
2040
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2179
2041
  };
@@ -2774,7 +2636,7 @@ declare class PrimaryNetworkService {
2774
2636
  /**
2775
2637
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2776
2638
  */
2777
- subnetId?: string;
2639
+ subnetId?: any;
2778
2640
  }): CancelablePromise<ListValidatorDetailsResponse>;
2779
2641
  /**
2780
2642
  * Get single validator details
@@ -4241,6 +4103,49 @@ declare class PrimaryNetworkVerticesService {
4241
4103
  }): CancelablePromise<ListXChainVerticesResponse>;
4242
4104
  }
4243
4105
 
4106
+ type RpcErrorDto = {
4107
+ code: number;
4108
+ message: string;
4109
+ data?: Record<string, any>;
4110
+ };
4111
+
4112
+ type RpcErrorResponseDto = {
4113
+ jsonrpc: string;
4114
+ id?: (string | number);
4115
+ error: RpcErrorDto;
4116
+ };
4117
+
4118
+ type RpcRequestBodyDto = {
4119
+ method: string;
4120
+ params?: Record<string, any>;
4121
+ id?: (string | number);
4122
+ jsonrpc?: string;
4123
+ };
4124
+
4125
+ type RpcSuccessResponseDto = {
4126
+ jsonrpc: string;
4127
+ id?: (string | number);
4128
+ result: Record<string, any>;
4129
+ };
4130
+
4131
+ declare class RpcService {
4132
+ readonly httpRequest: BaseHttpRequest;
4133
+ constructor(httpRequest: BaseHttpRequest);
4134
+ /**
4135
+ * Calls JSON-RPC method
4136
+ * Calls JSON-RPC method.
4137
+ * @returns any
4138
+ * @throws ApiError
4139
+ */
4140
+ rpc({ chainId, requestBody, }: {
4141
+ /**
4142
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4143
+ */
4144
+ chainId: string;
4145
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4146
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4147
+ }
4148
+
4244
4149
  type TeleporterDestinationTransaction = {
4245
4150
  txHash: string;
4246
4151
  timestamp: number;
@@ -4293,6 +4198,8 @@ type DeliveredSourceNotIndexedTeleporterMessage = {
4293
4198
  teleporterContractAddress: string;
4294
4199
  sourceBlockchainId: string;
4295
4200
  destinationBlockchainId: string;
4201
+ sourceEvmChainId: string;
4202
+ destinationEvmChainId: string;
4296
4203
  messageNonce: string;
4297
4204
  from: string;
4298
4205
  to: string;
@@ -4321,6 +4228,8 @@ type DeliveredTeleporterMessage = {
4321
4228
  teleporterContractAddress: string;
4322
4229
  sourceBlockchainId: string;
4323
4230
  destinationBlockchainId: string;
4231
+ sourceEvmChainId: string;
4232
+ destinationEvmChainId: string;
4324
4233
  messageNonce: string;
4325
4234
  from: string;
4326
4235
  to: string;
@@ -4339,18 +4248,13 @@ declare namespace DeliveredTeleporterMessage {
4339
4248
  }
4340
4249
  }
4341
4250
 
4342
- type NextPageToken = {
4343
- /**
4344
- * 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.
4345
- */
4346
- nextPageToken?: string;
4347
- };
4348
-
4349
4251
  type PendingTeleporterMessage = {
4350
4252
  messageId: string;
4351
4253
  teleporterContractAddress: string;
4352
4254
  sourceBlockchainId: string;
4353
4255
  destinationBlockchainId: string;
4256
+ sourceEvmChainId: string;
4257
+ destinationEvmChainId: string;
4354
4258
  messageNonce: string;
4355
4259
  from: string;
4356
4260
  to: string;
@@ -4368,6 +4272,14 @@ declare namespace PendingTeleporterMessage {
4368
4272
  }
4369
4273
  }
4370
4274
 
4275
+ type ListTeleporterMessagesResponse = {
4276
+ /**
4277
+ * 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.
4278
+ */
4279
+ nextPageToken?: string;
4280
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4281
+ };
4282
+
4371
4283
  declare class TeleporterService {
4372
4284
  readonly httpRequest: BaseHttpRequest;
4373
4285
  constructor(httpRequest: BaseHttpRequest);
@@ -4386,7 +4298,7 @@ declare class TeleporterService {
4386
4298
  /**
4387
4299
  * List teleporter messages
4388
4300
  * Lists teleporter messages. Ordered by timestamp in descending order.
4389
- * @returns any
4301
+ * @returns ListTeleporterMessagesResponse
4390
4302
  * @throws ApiError
4391
4303
  */
4392
4304
  listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
@@ -4414,7 +4326,206 @@ declare class TeleporterService {
4414
4326
  * The address of the sender of the teleporter message.
4415
4327
  */
4416
4328
  from?: string;
4417
- }): CancelablePromise<NextPageToken>;
4329
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4330
+ }
4331
+
4332
+ type AddressesChangeRequest = {
4333
+ /**
4334
+ * Ethereum address(es) for the address_activity event type
4335
+ */
4336
+ addresses: Array<any[]>;
4337
+ };
4338
+
4339
+ type AddressActivityMetadata = {
4340
+ /**
4341
+ * Ethereum address(es) for the address_activity event type
4342
+ */
4343
+ addresses: Array<any[]>;
4344
+ /**
4345
+ * Array of hexadecimal strings of the event signatures.
4346
+ */
4347
+ eventSignatures?: Array<string>;
4348
+ };
4349
+
4350
+ declare enum EventType {
4351
+ ADDRESS_ACTIVITY = "address_activity"
4352
+ }
4353
+
4354
+ declare enum WebhookStatusType {
4355
+ ACTIVE = "active",
4356
+ INACTIVE = "inactive"
4357
+ }
4358
+
4359
+ type WebhookResponse = {
4360
+ id: string;
4361
+ eventType: EventType;
4362
+ metadata: AddressActivityMetadata;
4363
+ /**
4364
+ * Whether to include traces in the webhook payload.
4365
+ */
4366
+ includeInternalTxs?: boolean;
4367
+ /**
4368
+ * Whether to include logs in the webhook payload.
4369
+ */
4370
+ includeLogs?: boolean;
4371
+ url: string;
4372
+ chainId: string;
4373
+ status: WebhookStatusType;
4374
+ createdAt: number;
4375
+ name: string;
4376
+ description: string;
4377
+ };
4378
+
4379
+ type ListWebhooksResponse = {
4380
+ /**
4381
+ * 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.
4382
+ */
4383
+ nextPageToken?: string;
4384
+ webhooks: Array<WebhookResponse>;
4385
+ };
4386
+
4387
+ type RegisterWebhookRequest = {
4388
+ url: string;
4389
+ chainId: string;
4390
+ eventType: EventType;
4391
+ metadata: AddressActivityMetadata;
4392
+ /**
4393
+ * Whether to include traces in the webhook payload.
4394
+ */
4395
+ includeInternalTxs?: boolean;
4396
+ /**
4397
+ * Whether to include logs in the webhook payload.
4398
+ */
4399
+ includeLogs?: boolean;
4400
+ };
4401
+
4402
+ type SharedSecretsResponse = {
4403
+ secret: string;
4404
+ };
4405
+
4406
+ type UpdateWebhookRequest = {
4407
+ name?: string;
4408
+ description?: string;
4409
+ url?: string;
4410
+ status?: WebhookStatusType;
4411
+ includeInternalTxs?: boolean;
4412
+ includeLogs?: boolean;
4413
+ };
4414
+
4415
+ declare enum WebhookStatus {
4416
+ ACTIVE = "active",
4417
+ INACTIVE = "inactive"
4418
+ }
4419
+
4420
+ declare class WebhooksService {
4421
+ readonly httpRequest: BaseHttpRequest;
4422
+ constructor(httpRequest: BaseHttpRequest);
4423
+ /**
4424
+ * Create a webhook
4425
+ * Create a new webhook.
4426
+ * @returns WebhookResponse
4427
+ * @throws ApiError
4428
+ */
4429
+ registerWebhook({ requestBody, }: {
4430
+ requestBody: RegisterWebhookRequest;
4431
+ }): CancelablePromise<WebhookResponse>;
4432
+ /**
4433
+ * List webhooks
4434
+ * Lists webhooks for the user.
4435
+ * @returns ListWebhooksResponse
4436
+ * @throws ApiError
4437
+ */
4438
+ listWebhooks({ pageToken, pageSize, status, }: {
4439
+ /**
4440
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4441
+ */
4442
+ pageToken?: string;
4443
+ /**
4444
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4445
+ */
4446
+ pageSize?: number;
4447
+ /**
4448
+ * 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.
4449
+ */
4450
+ status?: WebhookStatus;
4451
+ }): CancelablePromise<ListWebhooksResponse>;
4452
+ /**
4453
+ * Get a webhook by ID
4454
+ * Retrieves a webhook by ID.
4455
+ * @returns WebhookResponse
4456
+ * @throws ApiError
4457
+ */
4458
+ getWebhook({ id, }: {
4459
+ /**
4460
+ * The webhook identifier.
4461
+ */
4462
+ id: string;
4463
+ }): CancelablePromise<WebhookResponse>;
4464
+ /**
4465
+ * Deactivate a webhook
4466
+ * Deactivates a webhook by ID.
4467
+ * @returns WebhookResponse
4468
+ * @throws ApiError
4469
+ */
4470
+ deactivateWebhook({ id, }: {
4471
+ /**
4472
+ * The webhook identifier.
4473
+ */
4474
+ id: string;
4475
+ }): CancelablePromise<WebhookResponse>;
4476
+ /**
4477
+ * Update a webhook
4478
+ * Updates an existing webhook.
4479
+ * @returns WebhookResponse
4480
+ * @throws ApiError
4481
+ */
4482
+ updateWebhook({ id, requestBody, }: {
4483
+ /**
4484
+ * The webhook identifier.
4485
+ */
4486
+ id: string;
4487
+ requestBody: UpdateWebhookRequest;
4488
+ }): CancelablePromise<WebhookResponse>;
4489
+ /**
4490
+ * Generate a shared secret
4491
+ * Generates a new shared secret.
4492
+ * @returns SharedSecretsResponse
4493
+ * @throws ApiError
4494
+ */
4495
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4496
+ /**
4497
+ * Get a shared secret
4498
+ * Get a previously generated shared secret.
4499
+ * @returns SharedSecretsResponse
4500
+ * @throws ApiError
4501
+ */
4502
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4503
+ /**
4504
+ * Add address(es) to a webhook
4505
+ * Adding address(es) to a given webhook.
4506
+ * @returns WebhookResponse
4507
+ * @throws ApiError
4508
+ */
4509
+ addAddressesToWebhook({ id, requestBody, }: {
4510
+ /**
4511
+ * The webhook identifier.
4512
+ */
4513
+ id: string;
4514
+ requestBody: AddressesChangeRequest;
4515
+ }): CancelablePromise<WebhookResponse>;
4516
+ /**
4517
+ * Remove address(es) from a webhook
4518
+ * Removing address(es) from a given webhook.
4519
+ * @returns WebhookResponse
4520
+ * @throws ApiError
4521
+ */
4522
+ removeAddressesFromWebhook({ id, requestBody, }: {
4523
+ /**
4524
+ * The webhook identifier.
4525
+ */
4526
+ id: string;
4527
+ requestBody: AddressesChangeRequest;
4528
+ }): CancelablePromise<WebhookResponse>;
4418
4529
  }
4419
4530
 
4420
4531
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4435,7 +4546,9 @@ declare class Glacier {
4435
4546
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4436
4547
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4437
4548
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4549
+ readonly rpc: RpcService;
4438
4550
  readonly teleporter: TeleporterService;
4551
+ readonly webhooks: WebhooksService;
4439
4552
  readonly request: BaseHttpRequest;
4440
4553
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4441
4554
  }
@@ -4457,4 +4570,11 @@ declare class ApiError extends Error {
4457
4570
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4458
4571
  }
4459
4572
 
4460
- 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, 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 };
4573
+ type NextPageToken = {
4574
+ /**
4575
+ * 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.
4576
+ */
4577
+ nextPageToken?: string;
4578
+ };
4579
+
4580
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, 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, ListTeleporterMessagesResponse, 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, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, 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, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };