@avalabs/glacier-sdk 2.8.0-canary.5b6e5aa.0 → 2.8.0-canary.5b79e81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +228 -165
- package/dist/index.js +160 -113
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -36
- package/esm/generated/core/request.js +3 -2
- package/esm/generated/models/AddressActivityMetadata.d.ts +2 -10
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/WebhookResponse.d.ts +8 -0
- package/esm/generated/services/DefaultService.d.ts +0 -86
- package/esm/generated/services/DefaultService.js +0 -73
- package/esm/generated/services/EvmChainsService.d.ts +6 -1
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +1 -1
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +3 -0
- 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
|
-
|
|
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
|
/**
|
|
@@ -841,8 +682,14 @@ type GetChainResponse = {
|
|
|
841
682
|
networkToken: NetworkToken;
|
|
842
683
|
chainLogoUri?: string;
|
|
843
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
844
686
|
};
|
|
845
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing",
|
|
690
|
+
WEBHOOKS = "webhooks"
|
|
691
|
+
}
|
|
692
|
+
|
|
846
693
|
type ChainInfo = {
|
|
847
694
|
chainId: string;
|
|
848
695
|
status: ChainStatus;
|
|
@@ -860,6 +707,7 @@ type ChainInfo = {
|
|
|
860
707
|
networkToken: NetworkToken;
|
|
861
708
|
chainLogoUri?: string;
|
|
862
709
|
private?: boolean;
|
|
710
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
863
711
|
};
|
|
864
712
|
|
|
865
713
|
type ListChainsResponse = {
|
|
@@ -880,11 +728,15 @@ declare class EvmChainsService {
|
|
|
880
728
|
* @returns ListChainsResponse
|
|
881
729
|
* @throws ApiError
|
|
882
730
|
*/
|
|
883
|
-
supportedChains({ network, }: {
|
|
731
|
+
supportedChains({ network, feature, }: {
|
|
884
732
|
/**
|
|
885
733
|
* mainnet or testnet.
|
|
886
734
|
*/
|
|
887
735
|
network?: NetworkType;
|
|
736
|
+
/**
|
|
737
|
+
* Filter by feature.
|
|
738
|
+
*/
|
|
739
|
+
feature?: GlacierApiFeature;
|
|
888
740
|
}): CancelablePromise<ListChainsResponse>;
|
|
889
741
|
/**
|
|
890
742
|
* Get chain information
|
|
@@ -2183,7 +2035,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2183
2035
|
}
|
|
2184
2036
|
|
|
2185
2037
|
type PrimaryNetworkOptions = {
|
|
2186
|
-
addresses
|
|
2038
|
+
addresses?: Array<string>;
|
|
2187
2039
|
cChainEvmAddresses?: Array<string>;
|
|
2188
2040
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2189
2041
|
};
|
|
@@ -2784,7 +2636,7 @@ declare class PrimaryNetworkService {
|
|
|
2784
2636
|
/**
|
|
2785
2637
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2786
2638
|
*/
|
|
2787
|
-
subnetId?:
|
|
2639
|
+
subnetId?: any;
|
|
2788
2640
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2789
2641
|
/**
|
|
2790
2642
|
* Get single validator details
|
|
@@ -4251,6 +4103,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4251
4103
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4252
4104
|
}
|
|
4253
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
|
+
|
|
4254
4149
|
type TeleporterDestinationTransaction = {
|
|
4255
4150
|
txHash: string;
|
|
4256
4151
|
timestamp: number;
|
|
@@ -4427,6 +4322,172 @@ declare class TeleporterService {
|
|
|
4427
4322
|
}): CancelablePromise<NextPageToken>;
|
|
4428
4323
|
}
|
|
4429
4324
|
|
|
4325
|
+
type AddressActivityMetadata = {
|
|
4326
|
+
/**
|
|
4327
|
+
* Ethereum address(es) for the address_activity event type
|
|
4328
|
+
*/
|
|
4329
|
+
addresses: Array<any[]>;
|
|
4330
|
+
/**
|
|
4331
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4332
|
+
*/
|
|
4333
|
+
eventSignatures?: Array<string>;
|
|
4334
|
+
};
|
|
4335
|
+
|
|
4336
|
+
declare enum EventType {
|
|
4337
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
declare enum WebhookStatusType {
|
|
4341
|
+
ACTIVE = "active",
|
|
4342
|
+
INACTIVE = "inactive"
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
type WebhookResponse = {
|
|
4346
|
+
id: string;
|
|
4347
|
+
eventType: EventType;
|
|
4348
|
+
metadata: AddressActivityMetadata;
|
|
4349
|
+
/**
|
|
4350
|
+
* Whether to include traces in the webhook payload.
|
|
4351
|
+
*/
|
|
4352
|
+
includeInternalTxs?: boolean;
|
|
4353
|
+
/**
|
|
4354
|
+
* Whether to include logs in the webhook payload.
|
|
4355
|
+
*/
|
|
4356
|
+
includeLogs?: boolean;
|
|
4357
|
+
url: string;
|
|
4358
|
+
chainId: string;
|
|
4359
|
+
status: WebhookStatusType;
|
|
4360
|
+
createdAt: number;
|
|
4361
|
+
name: string;
|
|
4362
|
+
description: string;
|
|
4363
|
+
};
|
|
4364
|
+
|
|
4365
|
+
type ListWebhooksResponse = {
|
|
4366
|
+
/**
|
|
4367
|
+
* 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.
|
|
4368
|
+
*/
|
|
4369
|
+
nextPageToken?: string;
|
|
4370
|
+
webhooks: Array<WebhookResponse>;
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
type RegisterWebhookRequest = {
|
|
4374
|
+
url: string;
|
|
4375
|
+
chainId: string;
|
|
4376
|
+
eventType: EventType;
|
|
4377
|
+
metadata: AddressActivityMetadata;
|
|
4378
|
+
/**
|
|
4379
|
+
* Whether to include traces in the webhook payload.
|
|
4380
|
+
*/
|
|
4381
|
+
includeInternalTxs?: boolean;
|
|
4382
|
+
/**
|
|
4383
|
+
* Whether to include logs in the webhook payload.
|
|
4384
|
+
*/
|
|
4385
|
+
includeLogs?: boolean;
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
type SharedSecretsResponse = {
|
|
4389
|
+
secret: string;
|
|
4390
|
+
};
|
|
4391
|
+
|
|
4392
|
+
type UpdateWebhookRequest = {
|
|
4393
|
+
name?: string;
|
|
4394
|
+
description?: string;
|
|
4395
|
+
url?: string;
|
|
4396
|
+
status?: WebhookStatusType;
|
|
4397
|
+
includeInternalTxs?: boolean;
|
|
4398
|
+
includeLogs?: boolean;
|
|
4399
|
+
};
|
|
4400
|
+
|
|
4401
|
+
declare enum WebhookStatus {
|
|
4402
|
+
ACTIVE = "active",
|
|
4403
|
+
INACTIVE = "inactive"
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
declare class WebhooksService {
|
|
4407
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4408
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4409
|
+
/**
|
|
4410
|
+
* Register a webhook
|
|
4411
|
+
* Registers a new webhook.
|
|
4412
|
+
* @returns WebhookResponse
|
|
4413
|
+
* @throws ApiError
|
|
4414
|
+
*/
|
|
4415
|
+
registerWebhook({ requestBody, }: {
|
|
4416
|
+
requestBody: RegisterWebhookRequest;
|
|
4417
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4418
|
+
/**
|
|
4419
|
+
* List webhooks
|
|
4420
|
+
* Lists webhooks for the user.
|
|
4421
|
+
* @returns ListWebhooksResponse
|
|
4422
|
+
* @throws ApiError
|
|
4423
|
+
*/
|
|
4424
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4425
|
+
/**
|
|
4426
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4427
|
+
*/
|
|
4428
|
+
pageToken?: string;
|
|
4429
|
+
/**
|
|
4430
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4431
|
+
*/
|
|
4432
|
+
pageSize?: number;
|
|
4433
|
+
/**
|
|
4434
|
+
* 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.
|
|
4435
|
+
*/
|
|
4436
|
+
status?: WebhookStatus;
|
|
4437
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4438
|
+
/**
|
|
4439
|
+
* Get a webhook by ID
|
|
4440
|
+
* Retrieves a webhook by ID.
|
|
4441
|
+
* @returns WebhookResponse
|
|
4442
|
+
* @throws ApiError
|
|
4443
|
+
*/
|
|
4444
|
+
getWebhook({ id, }: {
|
|
4445
|
+
/**
|
|
4446
|
+
* The webhook identifier.
|
|
4447
|
+
*/
|
|
4448
|
+
id: string;
|
|
4449
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4450
|
+
/**
|
|
4451
|
+
* Deactivate a webhook
|
|
4452
|
+
* Deactivates a webhook by ID.
|
|
4453
|
+
* @returns WebhookResponse
|
|
4454
|
+
* @throws ApiError
|
|
4455
|
+
*/
|
|
4456
|
+
deactivateWebhook({ id, }: {
|
|
4457
|
+
/**
|
|
4458
|
+
* The webhook identifier.
|
|
4459
|
+
*/
|
|
4460
|
+
id: string;
|
|
4461
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4462
|
+
/**
|
|
4463
|
+
* Update a webhook
|
|
4464
|
+
* Updates an existing webhook.
|
|
4465
|
+
* @returns WebhookResponse
|
|
4466
|
+
* @throws ApiError
|
|
4467
|
+
*/
|
|
4468
|
+
updateWebhook({ id, requestBody, }: {
|
|
4469
|
+
/**
|
|
4470
|
+
* The webhook identifier.
|
|
4471
|
+
*/
|
|
4472
|
+
id: string;
|
|
4473
|
+
requestBody: UpdateWebhookRequest;
|
|
4474
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4475
|
+
/**
|
|
4476
|
+
* Generate a shared secret
|
|
4477
|
+
* Generates a new shared secret.
|
|
4478
|
+
* @returns SharedSecretsResponse
|
|
4479
|
+
* @throws ApiError
|
|
4480
|
+
*/
|
|
4481
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4482
|
+
/**
|
|
4483
|
+
* Get a shared secret
|
|
4484
|
+
* Get a previously generated shared secret.
|
|
4485
|
+
* @returns SharedSecretsResponse
|
|
4486
|
+
* @throws ApiError
|
|
4487
|
+
*/
|
|
4488
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4430
4491
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4431
4492
|
declare class Glacier {
|
|
4432
4493
|
readonly default: DefaultService;
|
|
@@ -4445,7 +4506,9 @@ declare class Glacier {
|
|
|
4445
4506
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4446
4507
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4447
4508
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4509
|
+
readonly rpc: RpcService;
|
|
4448
4510
|
readonly teleporter: TeleporterService;
|
|
4511
|
+
readonly webhooks: WebhooksService;
|
|
4449
4512
|
readonly request: BaseHttpRequest;
|
|
4450
4513
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4451
4514
|
}
|
|
@@ -4467,4 +4530,4 @@ declare class ApiError extends Error {
|
|
|
4467
4530
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4468
4531
|
}
|
|
4469
4532
|
|
|
4470
|
-
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 };
|
|
4533
|
+
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, 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 };
|