@avalabs/glacier-sdk 2.8.0-canary.5601e64.0 → 2.8.0-canary.5825aa6.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 +232 -160
- package/dist/index.js +184 -120
- 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 +41 -36
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +25 -9
- 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 +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -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 +2 -0
- 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/PrimaryNetworkService.js +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>;
|
|
@@ -46,11 +40,11 @@ type OpenAPIConfig = {
|
|
|
46
40
|
VERSION: string;
|
|
47
41
|
WITH_CREDENTIALS: boolean;
|
|
48
42
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
49
|
-
TOKEN?: string | Resolver<string
|
|
50
|
-
USERNAME?: string | Resolver<string
|
|
51
|
-
PASSWORD?: string | Resolver<string
|
|
52
|
-
HEADERS?: Headers | Resolver<Headers
|
|
53
|
-
ENCODE_PATH?: (path: string) => string;
|
|
43
|
+
TOKEN?: string | Resolver<string> | undefined;
|
|
44
|
+
USERNAME?: string | Resolver<string> | undefined;
|
|
45
|
+
PASSWORD?: string | Resolver<string> | undefined;
|
|
46
|
+
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
47
|
+
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
54
48
|
};
|
|
55
49
|
declare const OpenAPI: OpenAPIConfig;
|
|
56
50
|
|
|
@@ -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,13 @@ type GetChainResponse = {
|
|
|
831
682
|
networkToken: NetworkToken;
|
|
832
683
|
chainLogoUri?: string;
|
|
833
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
834
686
|
};
|
|
835
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing"
|
|
690
|
+
}
|
|
691
|
+
|
|
836
692
|
type ChainInfo = {
|
|
837
693
|
chainId: string;
|
|
838
694
|
status: ChainStatus;
|
|
@@ -850,6 +706,7 @@ type ChainInfo = {
|
|
|
850
706
|
networkToken: NetworkToken;
|
|
851
707
|
chainLogoUri?: string;
|
|
852
708
|
private?: boolean;
|
|
709
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
853
710
|
};
|
|
854
711
|
|
|
855
712
|
type ListChainsResponse = {
|
|
@@ -870,11 +727,15 @@ declare class EvmChainsService {
|
|
|
870
727
|
* @returns ListChainsResponse
|
|
871
728
|
* @throws ApiError
|
|
872
729
|
*/
|
|
873
|
-
supportedChains({ network, }: {
|
|
730
|
+
supportedChains({ network, feature, }: {
|
|
874
731
|
/**
|
|
875
732
|
* mainnet or testnet.
|
|
876
733
|
*/
|
|
877
734
|
network?: NetworkType;
|
|
735
|
+
/**
|
|
736
|
+
* Filter by feature.
|
|
737
|
+
*/
|
|
738
|
+
feature?: GlacierApiFeature;
|
|
878
739
|
}): CancelablePromise<ListChainsResponse>;
|
|
879
740
|
/**
|
|
880
741
|
* Get chain information
|
|
@@ -2173,7 +2034,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2173
2034
|
}
|
|
2174
2035
|
|
|
2175
2036
|
type PrimaryNetworkOptions = {
|
|
2176
|
-
addresses
|
|
2037
|
+
addresses?: Array<string>;
|
|
2177
2038
|
cChainEvmAddresses?: Array<string>;
|
|
2178
2039
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2179
2040
|
};
|
|
@@ -2774,7 +2635,7 @@ declare class PrimaryNetworkService {
|
|
|
2774
2635
|
/**
|
|
2775
2636
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2776
2637
|
*/
|
|
2777
|
-
subnetId?:
|
|
2638
|
+
subnetId?: any;
|
|
2778
2639
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2779
2640
|
/**
|
|
2780
2641
|
* Get single validator details
|
|
@@ -4241,6 +4102,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4241
4102
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4242
4103
|
}
|
|
4243
4104
|
|
|
4105
|
+
type RpcErrorDto = {
|
|
4106
|
+
code: number;
|
|
4107
|
+
message: string;
|
|
4108
|
+
data?: Record<string, any>;
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
type RpcErrorResponseDto = {
|
|
4112
|
+
jsonrpc: string;
|
|
4113
|
+
id?: (string | number);
|
|
4114
|
+
error: RpcErrorDto;
|
|
4115
|
+
};
|
|
4116
|
+
|
|
4117
|
+
type RpcRequestBodyDto = {
|
|
4118
|
+
method: string;
|
|
4119
|
+
params?: Record<string, any>;
|
|
4120
|
+
id?: (string | number);
|
|
4121
|
+
jsonrpc?: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type RpcSuccessResponseDto = {
|
|
4125
|
+
jsonrpc: string;
|
|
4126
|
+
id?: (string | number);
|
|
4127
|
+
result: Record<string, any>;
|
|
4128
|
+
};
|
|
4129
|
+
|
|
4130
|
+
declare class RpcService {
|
|
4131
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4132
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4133
|
+
/**
|
|
4134
|
+
* Calls JSON-RPC method
|
|
4135
|
+
* Calls JSON-RPC method.
|
|
4136
|
+
* @returns any
|
|
4137
|
+
* @throws ApiError
|
|
4138
|
+
*/
|
|
4139
|
+
rpc({ chainId, requestBody, }: {
|
|
4140
|
+
/**
|
|
4141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4142
|
+
*/
|
|
4143
|
+
chainId: string;
|
|
4144
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4145
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4244
4148
|
type TeleporterDestinationTransaction = {
|
|
4245
4149
|
txHash: string;
|
|
4246
4150
|
timestamp: number;
|
|
@@ -4417,6 +4321,172 @@ declare class TeleporterService {
|
|
|
4417
4321
|
}): CancelablePromise<NextPageToken>;
|
|
4418
4322
|
}
|
|
4419
4323
|
|
|
4324
|
+
type AddressActivityMetadata = {
|
|
4325
|
+
/**
|
|
4326
|
+
* Ethereum address for the address_activity event type
|
|
4327
|
+
*/
|
|
4328
|
+
address: string;
|
|
4329
|
+
/**
|
|
4330
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4331
|
+
*/
|
|
4332
|
+
eventSignatures?: Array<string>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
declare enum EventType {
|
|
4336
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
declare enum WebhookStatusType {
|
|
4340
|
+
ACTIVE = "active",
|
|
4341
|
+
INACTIVE = "inactive"
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
type WebhookResponse = {
|
|
4345
|
+
id: string;
|
|
4346
|
+
eventType: EventType;
|
|
4347
|
+
metadata: AddressActivityMetadata;
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether to include traces in the webhook payload.
|
|
4350
|
+
*/
|
|
4351
|
+
includeInternalTxs?: boolean;
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether to include logs in the webhook payload.
|
|
4354
|
+
*/
|
|
4355
|
+
includeLogs?: boolean;
|
|
4356
|
+
url: string;
|
|
4357
|
+
chainId: string;
|
|
4358
|
+
status: WebhookStatusType;
|
|
4359
|
+
createdAt: number;
|
|
4360
|
+
name: string;
|
|
4361
|
+
description: string;
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
type ListWebhooksResponse = {
|
|
4365
|
+
/**
|
|
4366
|
+
* 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.
|
|
4367
|
+
*/
|
|
4368
|
+
nextPageToken?: string;
|
|
4369
|
+
webhooks: Array<WebhookResponse>;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type RegisterWebhookRequest = {
|
|
4373
|
+
url: string;
|
|
4374
|
+
chainId: string;
|
|
4375
|
+
eventType: EventType;
|
|
4376
|
+
metadata: AddressActivityMetadata;
|
|
4377
|
+
/**
|
|
4378
|
+
* Whether to include traces in the webhook payload.
|
|
4379
|
+
*/
|
|
4380
|
+
includeInternalTxs?: boolean;
|
|
4381
|
+
/**
|
|
4382
|
+
* Whether to include logs in the webhook payload.
|
|
4383
|
+
*/
|
|
4384
|
+
includeLogs?: boolean;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
type SharedSecretsResponse = {
|
|
4388
|
+
secret: string;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
type UpdateWebhookRequest = {
|
|
4392
|
+
name?: string;
|
|
4393
|
+
description?: string;
|
|
4394
|
+
url?: string;
|
|
4395
|
+
status?: WebhookStatusType;
|
|
4396
|
+
includeInternalTxs?: boolean;
|
|
4397
|
+
includeLogs?: boolean;
|
|
4398
|
+
};
|
|
4399
|
+
|
|
4400
|
+
declare enum WebhookStatus {
|
|
4401
|
+
ACTIVE = "active",
|
|
4402
|
+
INACTIVE = "inactive"
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
declare class WebhooksService {
|
|
4406
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4407
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4408
|
+
/**
|
|
4409
|
+
* Register a webhook
|
|
4410
|
+
* Registers a new webhook.
|
|
4411
|
+
* @returns WebhookResponse
|
|
4412
|
+
* @throws ApiError
|
|
4413
|
+
*/
|
|
4414
|
+
registerWebhook({ requestBody, }: {
|
|
4415
|
+
requestBody: RegisterWebhookRequest;
|
|
4416
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4417
|
+
/**
|
|
4418
|
+
* List webhooks
|
|
4419
|
+
* Lists webhooks for the user.
|
|
4420
|
+
* @returns ListWebhooksResponse
|
|
4421
|
+
* @throws ApiError
|
|
4422
|
+
*/
|
|
4423
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4424
|
+
/**
|
|
4425
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4426
|
+
*/
|
|
4427
|
+
pageToken?: string;
|
|
4428
|
+
/**
|
|
4429
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4430
|
+
*/
|
|
4431
|
+
pageSize?: number;
|
|
4432
|
+
/**
|
|
4433
|
+
* 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.
|
|
4434
|
+
*/
|
|
4435
|
+
status?: WebhookStatus;
|
|
4436
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get a webhook by ID
|
|
4439
|
+
* Retrieves a webhook by ID.
|
|
4440
|
+
* @returns WebhookResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
getWebhook({ id, }: {
|
|
4444
|
+
/**
|
|
4445
|
+
* The webhook identifier.
|
|
4446
|
+
*/
|
|
4447
|
+
id: string;
|
|
4448
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4449
|
+
/**
|
|
4450
|
+
* Deactivate a webhook
|
|
4451
|
+
* Deactivates a webhook by ID.
|
|
4452
|
+
* @returns WebhookResponse
|
|
4453
|
+
* @throws ApiError
|
|
4454
|
+
*/
|
|
4455
|
+
deactivateWebhook({ id, }: {
|
|
4456
|
+
/**
|
|
4457
|
+
* The webhook identifier.
|
|
4458
|
+
*/
|
|
4459
|
+
id: string;
|
|
4460
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4461
|
+
/**
|
|
4462
|
+
* Update a webhook
|
|
4463
|
+
* Updates an existing webhook.
|
|
4464
|
+
* @returns WebhookResponse
|
|
4465
|
+
* @throws ApiError
|
|
4466
|
+
*/
|
|
4467
|
+
updateWebhook({ id, requestBody, }: {
|
|
4468
|
+
/**
|
|
4469
|
+
* The webhook identifier.
|
|
4470
|
+
*/
|
|
4471
|
+
id: string;
|
|
4472
|
+
requestBody: UpdateWebhookRequest;
|
|
4473
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4474
|
+
/**
|
|
4475
|
+
* Generate a shared secret
|
|
4476
|
+
* Generates a new shared secret.
|
|
4477
|
+
* @returns SharedSecretsResponse
|
|
4478
|
+
* @throws ApiError
|
|
4479
|
+
*/
|
|
4480
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4481
|
+
/**
|
|
4482
|
+
* Get a shared secret
|
|
4483
|
+
* Get a previously generated shared secret.
|
|
4484
|
+
* @returns SharedSecretsResponse
|
|
4485
|
+
* @throws ApiError
|
|
4486
|
+
*/
|
|
4487
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4420
4490
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4421
4491
|
declare class Glacier {
|
|
4422
4492
|
readonly default: DefaultService;
|
|
@@ -4435,7 +4505,9 @@ declare class Glacier {
|
|
|
4435
4505
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4436
4506
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4437
4507
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4508
|
+
readonly rpc: RpcService;
|
|
4438
4509
|
readonly teleporter: TeleporterService;
|
|
4510
|
+
readonly webhooks: WebhooksService;
|
|
4439
4511
|
readonly request: BaseHttpRequest;
|
|
4440
4512
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4441
4513
|
}
|
|
@@ -4457,4 +4529,4 @@ declare class ApiError extends Error {
|
|
|
4457
4529
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4458
4530
|
}
|
|
4459
4531
|
|
|
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 };
|
|
4532
|
+
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 };
|