@imtbl/sdk 0.1.6 → 0.1.7-alpha.1
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/browser/checkout.js +2 -0
- package/dist/checkout_sdk.d.ts +986 -0
- package/dist/checkout_sdk.js +734 -0
- package/dist/checkout_widgets.d.ts +15485 -0
- package/dist/checkout_widgets.js +284 -0
- package/dist/immutablex_client.js +2 -2
- package/dist/index.cjs +3943 -24
- package/dist/index.d.ts +17171 -299
- package/dist/index.js +3932 -29
- package/dist/orderbook.d.ts +57 -0
- package/dist/orderbook.js +1833 -0
- package/dist/passport.d.ts +1154 -1
- package/dist/passport.js +18 -13
- package/dist/provider.d.ts +961 -0
- package/dist/provider.js +1143 -0
- package/package.json +27 -2
package/dist/passport.d.ts
CHANGED
|
@@ -1,3 +1,1156 @@
|
|
|
1
|
+
// TypeScript Version: 4.7
|
|
2
|
+
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
|
3
|
+
|
|
4
|
+
interface RawAxiosHeaders {
|
|
5
|
+
[key: string]: AxiosHeaderValue;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type MethodsHeaders = Partial<{
|
|
9
|
+
[Key in Method$1 as Lowercase<Key>]: AxiosHeaders;
|
|
10
|
+
} & {common: AxiosHeaders}>;
|
|
11
|
+
|
|
12
|
+
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
|
|
13
|
+
|
|
14
|
+
declare class AxiosHeaders {
|
|
15
|
+
constructor(
|
|
16
|
+
headers?: RawAxiosHeaders | AxiosHeaders
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
|
|
21
|
+
set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
22
|
+
set(headers?: RawAxiosHeaders | AxiosHeaders, rewrite?: boolean): AxiosHeaders;
|
|
23
|
+
|
|
24
|
+
get(headerName: string, parser: RegExp): RegExpExecArray | null;
|
|
25
|
+
get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue;
|
|
26
|
+
|
|
27
|
+
has(header: string, matcher?: true | AxiosHeaderMatcher): boolean;
|
|
28
|
+
|
|
29
|
+
delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
|
|
30
|
+
|
|
31
|
+
clear(matcher?: AxiosHeaderMatcher): boolean;
|
|
32
|
+
|
|
33
|
+
normalize(format: boolean): AxiosHeaders;
|
|
34
|
+
|
|
35
|
+
concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
|
|
36
|
+
|
|
37
|
+
toJSON(asStrings?: boolean): RawAxiosHeaders;
|
|
38
|
+
|
|
39
|
+
static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
|
|
40
|
+
|
|
41
|
+
static accessor(header: string | string[]): AxiosHeaders;
|
|
42
|
+
|
|
43
|
+
static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
|
|
44
|
+
|
|
45
|
+
setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
46
|
+
getContentType(parser?: RegExp): RegExpExecArray | null;
|
|
47
|
+
getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
48
|
+
hasContentType(matcher?: AxiosHeaderMatcher): boolean;
|
|
49
|
+
|
|
50
|
+
setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
51
|
+
getContentLength(parser?: RegExp): RegExpExecArray | null;
|
|
52
|
+
getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
53
|
+
hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
|
|
54
|
+
|
|
55
|
+
setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
56
|
+
getAccept(parser?: RegExp): RegExpExecArray | null;
|
|
57
|
+
getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
58
|
+
hasAccept(matcher?: AxiosHeaderMatcher): boolean;
|
|
59
|
+
|
|
60
|
+
setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
61
|
+
getUserAgent(parser?: RegExp): RegExpExecArray | null;
|
|
62
|
+
getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
63
|
+
hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
|
|
64
|
+
|
|
65
|
+
setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
66
|
+
getContentEncoding(parser?: RegExp): RegExpExecArray | null;
|
|
67
|
+
getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
68
|
+
hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
|
|
69
|
+
|
|
70
|
+
setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
71
|
+
getAuthorization(parser?: RegExp): RegExpExecArray | null;
|
|
72
|
+
getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
73
|
+
hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
|
|
74
|
+
|
|
75
|
+
[Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization';
|
|
79
|
+
|
|
80
|
+
type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
|
|
81
|
+
|
|
82
|
+
type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
|
|
83
|
+
[Key in CommonRequestHeadersList]: AxiosHeaderValue;
|
|
84
|
+
} & {
|
|
85
|
+
'Content-Type': ContentType
|
|
86
|
+
}>;
|
|
87
|
+
|
|
88
|
+
type AxiosRequestHeaders$1 = RawAxiosRequestHeaders & AxiosHeaders;
|
|
89
|
+
|
|
90
|
+
type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
|
|
91
|
+
|
|
92
|
+
type RawCommonResponseHeaders = {
|
|
93
|
+
[Key in CommonResponseHeadersList]: AxiosHeaderValue;
|
|
94
|
+
} & {
|
|
95
|
+
"set-cookie": string[];
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
|
|
99
|
+
|
|
100
|
+
type AxiosResponseHeaders$1 = RawAxiosResponseHeaders & AxiosHeaders;
|
|
101
|
+
|
|
102
|
+
interface AxiosRequestTransformer$1 {
|
|
103
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders$1): any;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface AxiosResponseTransformer$1 {
|
|
107
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders$1, status?: number): any;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface AxiosAdapter$1 {
|
|
111
|
+
(config: InternalAxiosRequestConfig): AxiosPromise$1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface AxiosBasicCredentials$1 {
|
|
115
|
+
username: string;
|
|
116
|
+
password: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
interface AxiosProxyConfig$1 {
|
|
120
|
+
host: string;
|
|
121
|
+
port: number;
|
|
122
|
+
auth?: {
|
|
123
|
+
username: string;
|
|
124
|
+
password: string;
|
|
125
|
+
};
|
|
126
|
+
protocol?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
type Method$1 =
|
|
130
|
+
| 'get' | 'GET'
|
|
131
|
+
| 'delete' | 'DELETE'
|
|
132
|
+
| 'head' | 'HEAD'
|
|
133
|
+
| 'options' | 'OPTIONS'
|
|
134
|
+
| 'post' | 'POST'
|
|
135
|
+
| 'put' | 'PUT'
|
|
136
|
+
| 'patch' | 'PATCH'
|
|
137
|
+
| 'purge' | 'PURGE'
|
|
138
|
+
| 'link' | 'LINK'
|
|
139
|
+
| 'unlink' | 'UNLINK';
|
|
140
|
+
|
|
141
|
+
type ResponseType$1 =
|
|
142
|
+
| 'arraybuffer'
|
|
143
|
+
| 'blob'
|
|
144
|
+
| 'document'
|
|
145
|
+
| 'json'
|
|
146
|
+
| 'text'
|
|
147
|
+
| 'stream';
|
|
148
|
+
|
|
149
|
+
type responseEncoding$1 =
|
|
150
|
+
| 'ascii' | 'ASCII'
|
|
151
|
+
| 'ansi' | 'ANSI'
|
|
152
|
+
| 'binary' | 'BINARY'
|
|
153
|
+
| 'base64' | 'BASE64'
|
|
154
|
+
| 'base64url' | 'BASE64URL'
|
|
155
|
+
| 'hex' | 'HEX'
|
|
156
|
+
| 'latin1' | 'LATIN1'
|
|
157
|
+
| 'ucs-2' | 'UCS-2'
|
|
158
|
+
| 'ucs2' | 'UCS2'
|
|
159
|
+
| 'utf-8' | 'UTF-8'
|
|
160
|
+
| 'utf8' | 'UTF8'
|
|
161
|
+
| 'utf16le' | 'UTF16LE';
|
|
162
|
+
|
|
163
|
+
interface TransitionalOptions$1 {
|
|
164
|
+
silentJSONParsing?: boolean;
|
|
165
|
+
forcedJSONParsing?: boolean;
|
|
166
|
+
clarifyTimeoutError?: boolean;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface GenericAbortSignal {
|
|
170
|
+
readonly aborted: boolean;
|
|
171
|
+
onabort?: ((...args: any) => any) | null;
|
|
172
|
+
addEventListener?: (...args: any) => any;
|
|
173
|
+
removeEventListener?: (...args: any) => any;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface FormDataVisitorHelpers {
|
|
177
|
+
defaultVisitor: SerializerVisitor;
|
|
178
|
+
convertValue: (value: any) => any;
|
|
179
|
+
isVisitable: (value: any) => boolean;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
interface SerializerVisitor {
|
|
183
|
+
(
|
|
184
|
+
this: GenericFormData,
|
|
185
|
+
value: any,
|
|
186
|
+
key: string | number,
|
|
187
|
+
path: null | Array<string | number>,
|
|
188
|
+
helpers: FormDataVisitorHelpers
|
|
189
|
+
): boolean;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface SerializerOptions {
|
|
193
|
+
visitor?: SerializerVisitor;
|
|
194
|
+
dots?: boolean;
|
|
195
|
+
metaTokens?: boolean;
|
|
196
|
+
indexes?: boolean | null;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// tslint:disable-next-line
|
|
200
|
+
interface FormSerializerOptions extends SerializerOptions {
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
interface ParamEncoder {
|
|
204
|
+
(value: any, defaultEncoder: (value: any) => any): any;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface CustomParamsSerializer {
|
|
208
|
+
(params: Record<string, any>, options?: ParamsSerializerOptions): string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface ParamsSerializerOptions extends SerializerOptions {
|
|
212
|
+
encode?: ParamEncoder;
|
|
213
|
+
serialize?: CustomParamsSerializer;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
type MaxUploadRate = number;
|
|
217
|
+
|
|
218
|
+
type MaxDownloadRate = number;
|
|
219
|
+
|
|
220
|
+
type BrowserProgressEvent = any;
|
|
221
|
+
|
|
222
|
+
interface AxiosProgressEvent {
|
|
223
|
+
loaded: number;
|
|
224
|
+
total?: number;
|
|
225
|
+
progress?: number;
|
|
226
|
+
bytes: number;
|
|
227
|
+
rate?: number;
|
|
228
|
+
estimated?: number;
|
|
229
|
+
upload?: boolean;
|
|
230
|
+
download?: boolean;
|
|
231
|
+
event?: BrowserProgressEvent;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
type Milliseconds = number;
|
|
235
|
+
|
|
236
|
+
type AxiosAdapterName = 'xhr' | 'http' | string;
|
|
237
|
+
|
|
238
|
+
type AxiosAdapterConfig = AxiosAdapter$1 | AxiosAdapterName;
|
|
239
|
+
|
|
240
|
+
interface AxiosRequestConfig$1<D = any> {
|
|
241
|
+
url?: string;
|
|
242
|
+
method?: Method$1 | string;
|
|
243
|
+
baseURL?: string;
|
|
244
|
+
transformRequest?: AxiosRequestTransformer$1 | AxiosRequestTransformer$1[];
|
|
245
|
+
transformResponse?: AxiosResponseTransformer$1 | AxiosResponseTransformer$1[];
|
|
246
|
+
headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
|
|
247
|
+
params?: any;
|
|
248
|
+
paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
|
|
249
|
+
data?: D;
|
|
250
|
+
timeout?: Milliseconds;
|
|
251
|
+
timeoutErrorMessage?: string;
|
|
252
|
+
withCredentials?: boolean;
|
|
253
|
+
adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
|
|
254
|
+
auth?: AxiosBasicCredentials$1;
|
|
255
|
+
responseType?: ResponseType$1;
|
|
256
|
+
responseEncoding?: responseEncoding$1 | string;
|
|
257
|
+
xsrfCookieName?: string;
|
|
258
|
+
xsrfHeaderName?: string;
|
|
259
|
+
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
260
|
+
onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
261
|
+
maxContentLength?: number;
|
|
262
|
+
validateStatus?: ((status: number) => boolean) | null;
|
|
263
|
+
maxBodyLength?: number;
|
|
264
|
+
maxRedirects?: number;
|
|
265
|
+
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
|
266
|
+
beforeRedirect?: (options: Record<string, any>, responseDetails: { headers: Record<string, string> }) => void;
|
|
267
|
+
socketPath?: string | null;
|
|
268
|
+
transport?: any;
|
|
269
|
+
httpAgent?: any;
|
|
270
|
+
httpsAgent?: any;
|
|
271
|
+
proxy?: AxiosProxyConfig$1 | false;
|
|
272
|
+
cancelToken?: CancelToken$1;
|
|
273
|
+
decompress?: boolean;
|
|
274
|
+
transitional?: TransitionalOptions$1;
|
|
275
|
+
signal?: GenericAbortSignal;
|
|
276
|
+
insecureHTTPParser?: boolean;
|
|
277
|
+
env?: {
|
|
278
|
+
FormData?: new (...args: any[]) => object;
|
|
279
|
+
};
|
|
280
|
+
formSerializer?: FormSerializerOptions;
|
|
281
|
+
family?: 4 | 6 | undefined;
|
|
282
|
+
lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: string, family: number) => void) => void) |
|
|
283
|
+
((hostname: string, options: object) => Promise<[address: string, family: number] | string>);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig$1<D> {
|
|
287
|
+
headers: AxiosRequestHeaders$1;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
interface HeadersDefaults$1 {
|
|
291
|
+
common: RawAxiosRequestHeaders;
|
|
292
|
+
delete: RawAxiosRequestHeaders;
|
|
293
|
+
get: RawAxiosRequestHeaders;
|
|
294
|
+
head: RawAxiosRequestHeaders;
|
|
295
|
+
post: RawAxiosRequestHeaders;
|
|
296
|
+
put: RawAxiosRequestHeaders;
|
|
297
|
+
patch: RawAxiosRequestHeaders;
|
|
298
|
+
options?: RawAxiosRequestHeaders;
|
|
299
|
+
purge?: RawAxiosRequestHeaders;
|
|
300
|
+
link?: RawAxiosRequestHeaders;
|
|
301
|
+
unlink?: RawAxiosRequestHeaders;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
interface AxiosDefaults$1<D = any> extends Omit<AxiosRequestConfig$1<D>, 'headers'> {
|
|
305
|
+
headers: HeadersDefaults$1;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
interface AxiosResponse$1<T = any, D = any> {
|
|
309
|
+
data: T;
|
|
310
|
+
status: number;
|
|
311
|
+
statusText: string;
|
|
312
|
+
headers: RawAxiosResponseHeaders | AxiosResponseHeaders$1;
|
|
313
|
+
config: InternalAxiosRequestConfig<D>;
|
|
314
|
+
request?: any;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
type AxiosPromise$1<T = any> = Promise<AxiosResponse$1<T>>;
|
|
318
|
+
|
|
319
|
+
interface Cancel$1 {
|
|
320
|
+
message: string | undefined;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
interface CancelToken$1 {
|
|
324
|
+
promise: Promise<Cancel$1>;
|
|
325
|
+
reason?: Cancel$1;
|
|
326
|
+
throwIfRequested(): void;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
interface AxiosInterceptorOptions {
|
|
330
|
+
synchronous?: boolean;
|
|
331
|
+
runWhen?: (config: InternalAxiosRequestConfig) => boolean;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
interface AxiosInterceptorManager$1<V> {
|
|
335
|
+
use(onFulfilled?: ((value: V) => V | Promise<V>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number;
|
|
336
|
+
eject(id: number): void;
|
|
337
|
+
clear(): void;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
declare class Axios$1 {
|
|
341
|
+
constructor(config?: AxiosRequestConfig$1);
|
|
342
|
+
defaults: AxiosDefaults$1;
|
|
343
|
+
interceptors: {
|
|
344
|
+
request: AxiosInterceptorManager$1<InternalAxiosRequestConfig>;
|
|
345
|
+
response: AxiosInterceptorManager$1<AxiosResponse$1>;
|
|
346
|
+
};
|
|
347
|
+
getUri(config?: AxiosRequestConfig$1): string;
|
|
348
|
+
request<T = any, R = AxiosResponse$1<T>, D = any>(config: AxiosRequestConfig$1<D>): Promise<R>;
|
|
349
|
+
get<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
350
|
+
delete<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
351
|
+
head<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
352
|
+
options<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
353
|
+
post<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
354
|
+
put<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
355
|
+
patch<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
356
|
+
postForm<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
357
|
+
putForm<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
358
|
+
patchForm<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface AxiosInstance$1 extends Axios$1 {
|
|
362
|
+
<T = any, R = AxiosResponse$1<T>, D = any>(config: AxiosRequestConfig$1<D>): Promise<R>;
|
|
363
|
+
<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
364
|
+
|
|
365
|
+
defaults: Omit<AxiosDefaults$1, 'headers'> & {
|
|
366
|
+
headers: HeadersDefaults$1 & {
|
|
367
|
+
[key: string]: AxiosHeaderValue
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
interface GenericFormData {
|
|
373
|
+
append(name: string, value: any, options?: any): any;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Swagger Guardian
|
|
378
|
+
* Guardian API
|
|
379
|
+
*
|
|
380
|
+
* The version of the OpenAPI document: 1.0.0
|
|
381
|
+
* Contact: support@immutable.com
|
|
382
|
+
*
|
|
383
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
384
|
+
* https://openapi-generator.tech
|
|
385
|
+
* Do not edit the class manually.
|
|
386
|
+
*/
|
|
387
|
+
interface ConfigurationParameters$1 {
|
|
388
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
389
|
+
username?: string;
|
|
390
|
+
password?: string;
|
|
391
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
392
|
+
basePath?: string;
|
|
393
|
+
baseOptions?: any;
|
|
394
|
+
formDataCtor?: new () => any;
|
|
395
|
+
}
|
|
396
|
+
declare class Configuration$1 {
|
|
397
|
+
/**
|
|
398
|
+
* parameter for apiKey security
|
|
399
|
+
* @param name security name
|
|
400
|
+
* @memberof Configuration
|
|
401
|
+
*/
|
|
402
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
403
|
+
/**
|
|
404
|
+
* parameter for basic security
|
|
405
|
+
*
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof Configuration
|
|
408
|
+
*/
|
|
409
|
+
username?: string;
|
|
410
|
+
/**
|
|
411
|
+
* parameter for basic security
|
|
412
|
+
*
|
|
413
|
+
* @type {string}
|
|
414
|
+
* @memberof Configuration
|
|
415
|
+
*/
|
|
416
|
+
password?: string;
|
|
417
|
+
/**
|
|
418
|
+
* parameter for oauth2 security
|
|
419
|
+
* @param name security name
|
|
420
|
+
* @param scopes oauth2 scope
|
|
421
|
+
* @memberof Configuration
|
|
422
|
+
*/
|
|
423
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
424
|
+
/**
|
|
425
|
+
* override base path
|
|
426
|
+
*
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof Configuration
|
|
429
|
+
*/
|
|
430
|
+
basePath?: string;
|
|
431
|
+
/**
|
|
432
|
+
* base options for axios calls
|
|
433
|
+
*
|
|
434
|
+
* @type {any}
|
|
435
|
+
* @memberof Configuration
|
|
436
|
+
*/
|
|
437
|
+
baseOptions?: any;
|
|
438
|
+
/**
|
|
439
|
+
* The FormData constructor that will be used to create multipart form data
|
|
440
|
+
* requests. You can inject this here so that execution environments that
|
|
441
|
+
* do not support the FormData class can still run the generated client.
|
|
442
|
+
*
|
|
443
|
+
* @type {new () => FormData}
|
|
444
|
+
*/
|
|
445
|
+
formDataCtor?: new () => any;
|
|
446
|
+
constructor(param?: ConfigurationParameters$1);
|
|
447
|
+
/**
|
|
448
|
+
* Check if the given MIME is a JSON MIME.
|
|
449
|
+
* JSON MIME examples:
|
|
450
|
+
* application/json
|
|
451
|
+
* application/json; charset=UTF8
|
|
452
|
+
* APPLICATION/JSON
|
|
453
|
+
* application/vnd.company+json
|
|
454
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
455
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
456
|
+
*/
|
|
457
|
+
isJsonMime(mime: string): boolean;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Swagger Guardian
|
|
462
|
+
* Guardian API
|
|
463
|
+
*
|
|
464
|
+
* The version of the OpenAPI document: 1.0.0
|
|
465
|
+
* Contact: support@immutable.com
|
|
466
|
+
*
|
|
467
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
468
|
+
* https://openapi-generator.tech
|
|
469
|
+
* Do not edit the class manually.
|
|
470
|
+
*/
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
*
|
|
474
|
+
* @export
|
|
475
|
+
* @interface RequestArgs
|
|
476
|
+
*/
|
|
477
|
+
interface RequestArgs {
|
|
478
|
+
url: string;
|
|
479
|
+
options: AxiosRequestConfig$1;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @export
|
|
484
|
+
* @class BaseAPI
|
|
485
|
+
*/
|
|
486
|
+
declare class BaseAPI$1 {
|
|
487
|
+
protected basePath: string;
|
|
488
|
+
protected axios: AxiosInstance$1;
|
|
489
|
+
protected configuration: Configuration$1 | undefined;
|
|
490
|
+
constructor(configuration?: Configuration$1, basePath?: string, axios?: AxiosInstance$1);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Swagger Guardian
|
|
495
|
+
* Guardian API
|
|
496
|
+
*
|
|
497
|
+
* The version of the OpenAPI document: 1.0.0
|
|
498
|
+
* Contact: support@immutable.com
|
|
499
|
+
*
|
|
500
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
501
|
+
* https://openapi-generator.tech
|
|
502
|
+
* Do not edit the class manually.
|
|
503
|
+
*/
|
|
504
|
+
/**
|
|
505
|
+
*
|
|
506
|
+
* @export
|
|
507
|
+
* @interface APIError403AllOf
|
|
508
|
+
*/
|
|
509
|
+
interface APIError403AllOf {
|
|
510
|
+
/**
|
|
511
|
+
* Error Code
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof APIError403AllOf
|
|
514
|
+
*/
|
|
515
|
+
'code': APIError403AllOfCodeEnum;
|
|
516
|
+
/**
|
|
517
|
+
* Additional details to help resolve the error
|
|
518
|
+
* @type {{ [key: string]: any; }}
|
|
519
|
+
* @memberof APIError403AllOf
|
|
520
|
+
*/
|
|
521
|
+
'details': {
|
|
522
|
+
[key: string]: any;
|
|
523
|
+
} | null;
|
|
524
|
+
}
|
|
525
|
+
declare const APIError403AllOfCodeEnum: {
|
|
526
|
+
readonly AuthenticationError: "AUTHENTICATION_ERROR";
|
|
527
|
+
};
|
|
528
|
+
type APIError403AllOfCodeEnum = typeof APIError403AllOfCodeEnum[keyof typeof APIError403AllOfCodeEnum];
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Swagger Guardian
|
|
532
|
+
* Guardian API
|
|
533
|
+
*
|
|
534
|
+
* The version of the OpenAPI document: 1.0.0
|
|
535
|
+
* Contact: support@immutable.com
|
|
536
|
+
*
|
|
537
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
538
|
+
* https://openapi-generator.tech
|
|
539
|
+
* Do not edit the class manually.
|
|
540
|
+
*/
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
* @export
|
|
544
|
+
* @interface BasicAPIError
|
|
545
|
+
*/
|
|
546
|
+
interface BasicAPIError {
|
|
547
|
+
/**
|
|
548
|
+
* Error Message
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof BasicAPIError
|
|
551
|
+
*/
|
|
552
|
+
'message': string;
|
|
553
|
+
/**
|
|
554
|
+
* Link to IMX documentation that can help resolve this error
|
|
555
|
+
* @type {string}
|
|
556
|
+
* @memberof BasicAPIError
|
|
557
|
+
*/
|
|
558
|
+
'link': string;
|
|
559
|
+
/**
|
|
560
|
+
* Trace ID of the initial request
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof BasicAPIError
|
|
563
|
+
*/
|
|
564
|
+
'trace_id': string;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Swagger Guardian
|
|
569
|
+
* Guardian API
|
|
570
|
+
*
|
|
571
|
+
* The version of the OpenAPI document: 1.0.0
|
|
572
|
+
* Contact: support@immutable.com
|
|
573
|
+
*
|
|
574
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
575
|
+
* https://openapi-generator.tech
|
|
576
|
+
* Do not edit the class manually.
|
|
577
|
+
*/
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @type APIError403
|
|
581
|
+
* @export
|
|
582
|
+
*/
|
|
583
|
+
type APIError403 = APIError403AllOf & BasicAPIError;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Swagger Guardian
|
|
587
|
+
* Guardian API
|
|
588
|
+
*
|
|
589
|
+
* The version of the OpenAPI document: 1.0.0
|
|
590
|
+
* Contact: support@immutable.com
|
|
591
|
+
*
|
|
592
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
593
|
+
* https://openapi-generator.tech
|
|
594
|
+
* Do not edit the class manually.
|
|
595
|
+
*/
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @export
|
|
599
|
+
* @interface APIError404AllOf
|
|
600
|
+
*/
|
|
601
|
+
interface APIError404AllOf {
|
|
602
|
+
/**
|
|
603
|
+
* Error Code
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof APIError404AllOf
|
|
606
|
+
*/
|
|
607
|
+
'code': APIError404AllOfCodeEnum;
|
|
608
|
+
/**
|
|
609
|
+
* Additional details to help resolve the error
|
|
610
|
+
* @type {{ [key: string]: any; }}
|
|
611
|
+
* @memberof APIError404AllOf
|
|
612
|
+
*/
|
|
613
|
+
'details': {
|
|
614
|
+
[key: string]: any;
|
|
615
|
+
} | null;
|
|
616
|
+
}
|
|
617
|
+
declare const APIError404AllOfCodeEnum: {
|
|
618
|
+
readonly ResourceNotFound: "RESOURCE_NOT_FOUND";
|
|
619
|
+
};
|
|
620
|
+
type APIError404AllOfCodeEnum = typeof APIError404AllOfCodeEnum[keyof typeof APIError404AllOfCodeEnum];
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Swagger Guardian
|
|
624
|
+
* Guardian API
|
|
625
|
+
*
|
|
626
|
+
* The version of the OpenAPI document: 1.0.0
|
|
627
|
+
* Contact: support@immutable.com
|
|
628
|
+
*
|
|
629
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
630
|
+
* https://openapi-generator.tech
|
|
631
|
+
* Do not edit the class manually.
|
|
632
|
+
*/
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* @type APIError404
|
|
636
|
+
* @export
|
|
637
|
+
*/
|
|
638
|
+
type APIError404 = APIError404AllOf & BasicAPIError;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Swagger Guardian
|
|
642
|
+
* Guardian API
|
|
643
|
+
*
|
|
644
|
+
* The version of the OpenAPI document: 1.0.0
|
|
645
|
+
* Contact: support@immutable.com
|
|
646
|
+
*
|
|
647
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
648
|
+
* https://openapi-generator.tech
|
|
649
|
+
* Do not edit the class manually.
|
|
650
|
+
*/
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @export
|
|
654
|
+
* @interface APIError500AllOf
|
|
655
|
+
*/
|
|
656
|
+
interface APIError500AllOf {
|
|
657
|
+
/**
|
|
658
|
+
* Error Code
|
|
659
|
+
* @type {string}
|
|
660
|
+
* @memberof APIError500AllOf
|
|
661
|
+
*/
|
|
662
|
+
'code': APIError500AllOfCodeEnum;
|
|
663
|
+
/**
|
|
664
|
+
* Additional details to help resolve the error
|
|
665
|
+
* @type {{ [key: string]: any; }}
|
|
666
|
+
* @memberof APIError500AllOf
|
|
667
|
+
*/
|
|
668
|
+
'details': {
|
|
669
|
+
[key: string]: any;
|
|
670
|
+
} | null;
|
|
671
|
+
}
|
|
672
|
+
declare const APIError500AllOfCodeEnum: {
|
|
673
|
+
readonly InternalServerError: "INTERNAL_SERVER_ERROR";
|
|
674
|
+
};
|
|
675
|
+
type APIError500AllOfCodeEnum = typeof APIError500AllOfCodeEnum[keyof typeof APIError500AllOfCodeEnum];
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Swagger Guardian
|
|
679
|
+
* Guardian API
|
|
680
|
+
*
|
|
681
|
+
* The version of the OpenAPI document: 1.0.0
|
|
682
|
+
* Contact: support@immutable.com
|
|
683
|
+
*
|
|
684
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
685
|
+
* https://openapi-generator.tech
|
|
686
|
+
* Do not edit the class manually.
|
|
687
|
+
*/
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* @type APIError500
|
|
691
|
+
* @export
|
|
692
|
+
*/
|
|
693
|
+
type APIError500 = APIError500AllOf & BasicAPIError;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Swagger Guardian
|
|
697
|
+
* Guardian API
|
|
698
|
+
*
|
|
699
|
+
* The version of the OpenAPI document: 1.0.0
|
|
700
|
+
* Contact: support@immutable.com
|
|
701
|
+
*
|
|
702
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
703
|
+
* https://openapi-generator.tech
|
|
704
|
+
* Do not edit the class manually.
|
|
705
|
+
*/
|
|
706
|
+
/**
|
|
707
|
+
*
|
|
708
|
+
* @export
|
|
709
|
+
* @interface StarkExTransactionValidateReponseDefinition
|
|
710
|
+
*/
|
|
711
|
+
interface StarkExTransactionValidateReponseDefinition {
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @type {boolean}
|
|
715
|
+
* @memberof StarkExTransactionValidateReponseDefinition
|
|
716
|
+
*/
|
|
717
|
+
'confirmationRequired': boolean;
|
|
718
|
+
/**
|
|
719
|
+
*
|
|
720
|
+
* @type {string}
|
|
721
|
+
* @memberof StarkExTransactionValidateReponseDefinition
|
|
722
|
+
*/
|
|
723
|
+
'confirmationMethod'?: StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum;
|
|
724
|
+
}
|
|
725
|
+
declare const StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum: {
|
|
726
|
+
readonly Otp: "otp";
|
|
727
|
+
readonly Web: "web";
|
|
728
|
+
};
|
|
729
|
+
type StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum = typeof StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum[keyof typeof StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum];
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Swagger Guardian
|
|
733
|
+
* Guardian API
|
|
734
|
+
*
|
|
735
|
+
* The version of the OpenAPI document: 1.0.0
|
|
736
|
+
* Contact: support@immutable.com
|
|
737
|
+
*
|
|
738
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
739
|
+
* https://openapi-generator.tech
|
|
740
|
+
* Do not edit the class manually.
|
|
741
|
+
*/
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @export
|
|
745
|
+
* @interface Transaction
|
|
746
|
+
*/
|
|
747
|
+
interface Transaction$1 {
|
|
748
|
+
/**
|
|
749
|
+
* Confirmation Candidate ID
|
|
750
|
+
* @type {string}
|
|
751
|
+
* @memberof Transaction
|
|
752
|
+
*/
|
|
753
|
+
'id': string;
|
|
754
|
+
/**
|
|
755
|
+
* canidates\'s ether address
|
|
756
|
+
* @type {string}
|
|
757
|
+
* @memberof Transaction
|
|
758
|
+
*/
|
|
759
|
+
'eth_address': string;
|
|
760
|
+
/**
|
|
761
|
+
* Status of the starkex transactions
|
|
762
|
+
* @type {string}
|
|
763
|
+
* @memberof Transaction
|
|
764
|
+
*/
|
|
765
|
+
'status': string;
|
|
766
|
+
/**
|
|
767
|
+
* Confirmation candidate type
|
|
768
|
+
* @type {string}
|
|
769
|
+
* @memberof Transaction
|
|
770
|
+
*/
|
|
771
|
+
'transaction_type': string;
|
|
772
|
+
/**
|
|
773
|
+
* Which version is at
|
|
774
|
+
* @type {string}
|
|
775
|
+
* @memberof Transaction
|
|
776
|
+
*/
|
|
777
|
+
'version': string;
|
|
778
|
+
/**
|
|
779
|
+
* Transaction metadata as a string
|
|
780
|
+
* @type {{ [key: string]: any; }}
|
|
781
|
+
* @memberof Transaction
|
|
782
|
+
*/
|
|
783
|
+
'transaction_metadata': {
|
|
784
|
+
[key: string]: any;
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Swagger Guardian
|
|
790
|
+
* Guardian API
|
|
791
|
+
*
|
|
792
|
+
* The version of the OpenAPI document: 1.0.0
|
|
793
|
+
* Contact: support@immutable.com
|
|
794
|
+
*
|
|
795
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
796
|
+
* https://openapi-generator.tech
|
|
797
|
+
* Do not edit the class manually.
|
|
798
|
+
*/
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @export
|
|
802
|
+
* @interface TransactionApprovalRequest
|
|
803
|
+
*/
|
|
804
|
+
interface TransactionApprovalRequest {
|
|
805
|
+
/**
|
|
806
|
+
* rollup chain ID
|
|
807
|
+
* @type {number}
|
|
808
|
+
* @memberof TransactionApprovalRequest
|
|
809
|
+
*/
|
|
810
|
+
'chainID': number;
|
|
811
|
+
/**
|
|
812
|
+
* chain type
|
|
813
|
+
* @type {string}
|
|
814
|
+
* @memberof TransactionApprovalRequest
|
|
815
|
+
*/
|
|
816
|
+
'chainType': TransactionApprovalRequestChainTypeEnum;
|
|
817
|
+
/**
|
|
818
|
+
* otp string
|
|
819
|
+
* @type {string}
|
|
820
|
+
* @memberof TransactionApprovalRequest
|
|
821
|
+
*/
|
|
822
|
+
'otp'?: string;
|
|
823
|
+
}
|
|
824
|
+
declare const TransactionApprovalRequestChainTypeEnum: {
|
|
825
|
+
readonly Starkex: "starkex";
|
|
826
|
+
readonly Evm: "evm";
|
|
827
|
+
};
|
|
828
|
+
type TransactionApprovalRequestChainTypeEnum = typeof TransactionApprovalRequestChainTypeEnum[keyof typeof TransactionApprovalRequestChainTypeEnum];
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* DefaultApi - axios parameter creator
|
|
832
|
+
* @export
|
|
833
|
+
*/
|
|
834
|
+
declare const DefaultApiAxiosParamCreator: (configuration?: Configuration$1) => {
|
|
835
|
+
/**
|
|
836
|
+
* Approve a pending transaction
|
|
837
|
+
* @summary Approve a pending transaction given chain
|
|
838
|
+
* @param {string} payloadHash Hash for the payload
|
|
839
|
+
* @param {TransactionApprovalRequest} transactionApprovalRequest request body for approving a pending transactio
|
|
840
|
+
* @param {*} [options] Override http request option.
|
|
841
|
+
* @throws {RequiredError}
|
|
842
|
+
*/
|
|
843
|
+
approvePendingTransaction: (payloadHash: string, transactionApprovalRequest: TransactionApprovalRequest, options?: AxiosRequestConfig$1) => Promise<RequestArgs>;
|
|
844
|
+
};
|
|
845
|
+
/**
|
|
846
|
+
* DefaultApi - functional programming interface
|
|
847
|
+
* @export
|
|
848
|
+
*/
|
|
849
|
+
declare const DefaultApiFp: (configuration?: Configuration$1) => {
|
|
850
|
+
/**
|
|
851
|
+
* Approve a pending transaction
|
|
852
|
+
* @summary Approve a pending transaction given chain
|
|
853
|
+
* @param {string} payloadHash Hash for the payload
|
|
854
|
+
* @param {TransactionApprovalRequest} transactionApprovalRequest request body for approving a pending transactio
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
*/
|
|
858
|
+
approvePendingTransaction(payloadHash: string, transactionApprovalRequest: TransactionApprovalRequest, options?: AxiosRequestConfig$1): Promise<(axios?: AxiosInstance$1, basePath?: string) => AxiosPromise$1<void>>;
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* DefaultApi - factory interface
|
|
862
|
+
* @export
|
|
863
|
+
*/
|
|
864
|
+
declare const DefaultApiFactory: (configuration?: Configuration$1, basePath?: string, axios?: AxiosInstance$1) => {
|
|
865
|
+
/**
|
|
866
|
+
* Approve a pending transaction
|
|
867
|
+
* @summary Approve a pending transaction given chain
|
|
868
|
+
* @param {DefaultApiApprovePendingTransactionRequest} requestParameters Request parameters.
|
|
869
|
+
* @param {*} [options] Override http request option.
|
|
870
|
+
* @throws {RequiredError}
|
|
871
|
+
*/
|
|
872
|
+
approvePendingTransaction(requestParameters: DefaultApiApprovePendingTransactionRequest, options?: AxiosRequestConfig$1): AxiosPromise$1<void>;
|
|
873
|
+
};
|
|
874
|
+
/**
|
|
875
|
+
* Request parameters for approvePendingTransaction operation in DefaultApi.
|
|
876
|
+
* @export
|
|
877
|
+
* @interface DefaultApiApprovePendingTransactionRequest
|
|
878
|
+
*/
|
|
879
|
+
interface DefaultApiApprovePendingTransactionRequest {
|
|
880
|
+
/**
|
|
881
|
+
* Hash for the payload
|
|
882
|
+
* @type {string}
|
|
883
|
+
* @memberof DefaultApiApprovePendingTransaction
|
|
884
|
+
*/
|
|
885
|
+
readonly payloadHash: string;
|
|
886
|
+
/**
|
|
887
|
+
* request body for approving a pending transactio
|
|
888
|
+
* @type {TransactionApprovalRequest}
|
|
889
|
+
* @memberof DefaultApiApprovePendingTransaction
|
|
890
|
+
*/
|
|
891
|
+
readonly transactionApprovalRequest: TransactionApprovalRequest;
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* DefaultApi - object-oriented interface
|
|
895
|
+
* @export
|
|
896
|
+
* @class DefaultApi
|
|
897
|
+
* @extends {BaseAPI}
|
|
898
|
+
*/
|
|
899
|
+
declare class DefaultApi extends BaseAPI$1 {
|
|
900
|
+
/**
|
|
901
|
+
* Approve a pending transaction
|
|
902
|
+
* @summary Approve a pending transaction given chain
|
|
903
|
+
* @param {DefaultApiApprovePendingTransactionRequest} requestParameters Request parameters.
|
|
904
|
+
* @param {*} [options] Override http request option.
|
|
905
|
+
* @throws {RequiredError}
|
|
906
|
+
* @memberof DefaultApi
|
|
907
|
+
*/
|
|
908
|
+
approvePendingTransaction(requestParameters: DefaultApiApprovePendingTransactionRequest, options?: AxiosRequestConfig$1): Promise<AxiosResponse$1<void, any>>;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* StarkexTransactionsApi - axios parameter creator
|
|
913
|
+
* @export
|
|
914
|
+
*/
|
|
915
|
+
declare const StarkexTransactionsApiAxiosParamCreator: (configuration?: Configuration$1) => {
|
|
916
|
+
/**
|
|
917
|
+
* Check if it is a valid transaction by payload hash
|
|
918
|
+
* @summary Evaluate if it is an valid transaction
|
|
919
|
+
* @param {string} payloadHash Hash for the payload
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
evaluateStarkexTransaction: (payloadHash: string, options?: AxiosRequestConfig$1) => Promise<RequestArgs>;
|
|
924
|
+
};
|
|
925
|
+
/**
|
|
926
|
+
* StarkexTransactionsApi - functional programming interface
|
|
927
|
+
* @export
|
|
928
|
+
*/
|
|
929
|
+
declare const StarkexTransactionsApiFp: (configuration?: Configuration$1) => {
|
|
930
|
+
/**
|
|
931
|
+
* Check if it is a valid transaction by payload hash
|
|
932
|
+
* @summary Evaluate if it is an valid transaction
|
|
933
|
+
* @param {string} payloadHash Hash for the payload
|
|
934
|
+
* @param {*} [options] Override http request option.
|
|
935
|
+
* @throws {RequiredError}
|
|
936
|
+
*/
|
|
937
|
+
evaluateStarkexTransaction(payloadHash: string, options?: AxiosRequestConfig$1): Promise<(axios?: AxiosInstance$1, basePath?: string) => AxiosPromise$1<StarkExTransactionValidateReponseDefinition>>;
|
|
938
|
+
};
|
|
939
|
+
/**
|
|
940
|
+
* StarkexTransactionsApi - factory interface
|
|
941
|
+
* @export
|
|
942
|
+
*/
|
|
943
|
+
declare const StarkexTransactionsApiFactory: (configuration?: Configuration$1, basePath?: string, axios?: AxiosInstance$1) => {
|
|
944
|
+
/**
|
|
945
|
+
* Check if it is a valid transaction by payload hash
|
|
946
|
+
* @summary Evaluate if it is an valid transaction
|
|
947
|
+
* @param {StarkexTransactionsApiEvaluateStarkexTransactionRequest} requestParameters Request parameters.
|
|
948
|
+
* @param {*} [options] Override http request option.
|
|
949
|
+
* @throws {RequiredError}
|
|
950
|
+
*/
|
|
951
|
+
evaluateStarkexTransaction(requestParameters: StarkexTransactionsApiEvaluateStarkexTransactionRequest, options?: AxiosRequestConfig$1): AxiosPromise$1<StarkExTransactionValidateReponseDefinition>;
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* Request parameters for evaluateStarkexTransaction operation in StarkexTransactionsApi.
|
|
955
|
+
* @export
|
|
956
|
+
* @interface StarkexTransactionsApiEvaluateStarkexTransactionRequest
|
|
957
|
+
*/
|
|
958
|
+
interface StarkexTransactionsApiEvaluateStarkexTransactionRequest {
|
|
959
|
+
/**
|
|
960
|
+
* Hash for the payload
|
|
961
|
+
* @type {string}
|
|
962
|
+
* @memberof StarkexTransactionsApiEvaluateStarkexTransaction
|
|
963
|
+
*/
|
|
964
|
+
readonly payloadHash: string;
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* StarkexTransactionsApi - object-oriented interface
|
|
968
|
+
* @export
|
|
969
|
+
* @class StarkexTransactionsApi
|
|
970
|
+
* @extends {BaseAPI}
|
|
971
|
+
*/
|
|
972
|
+
declare class StarkexTransactionsApi extends BaseAPI$1 {
|
|
973
|
+
/**
|
|
974
|
+
* Check if it is a valid transaction by payload hash
|
|
975
|
+
* @summary Evaluate if it is an valid transaction
|
|
976
|
+
* @param {StarkexTransactionsApiEvaluateStarkexTransactionRequest} requestParameters Request parameters.
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
* @memberof StarkexTransactionsApi
|
|
980
|
+
*/
|
|
981
|
+
evaluateStarkexTransaction(requestParameters: StarkexTransactionsApiEvaluateStarkexTransactionRequest, options?: AxiosRequestConfig$1): Promise<AxiosResponse$1<StarkExTransactionValidateReponseDefinition, any>>;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* TransactionsApi - axios parameter creator
|
|
986
|
+
* @export
|
|
987
|
+
*/
|
|
988
|
+
declare const TransactionsApiAxiosParamCreator: (configuration?: Configuration$1) => {
|
|
989
|
+
/**
|
|
990
|
+
* Get a transaction by payload hash
|
|
991
|
+
* @summary Info for a specific transaction
|
|
992
|
+
* @param {string} transactionID The id of the starkex transaction to retrieve
|
|
993
|
+
* @param {string} chainType roll up type
|
|
994
|
+
* @param {number} [chainID] ID of evm chain
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
*/
|
|
998
|
+
getTransactionByID: (transactionID: string, chainType: string, chainID?: number, options?: AxiosRequestConfig$1) => Promise<RequestArgs>;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* TransactionsApi - functional programming interface
|
|
1002
|
+
* @export
|
|
1003
|
+
*/
|
|
1004
|
+
declare const TransactionsApiFp: (configuration?: Configuration$1) => {
|
|
1005
|
+
/**
|
|
1006
|
+
* Get a transaction by payload hash
|
|
1007
|
+
* @summary Info for a specific transaction
|
|
1008
|
+
* @param {string} transactionID The id of the starkex transaction to retrieve
|
|
1009
|
+
* @param {string} chainType roll up type
|
|
1010
|
+
* @param {number} [chainID] ID of evm chain
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
getTransactionByID(transactionID: string, chainType: string, chainID?: number, options?: AxiosRequestConfig$1): Promise<(axios?: AxiosInstance$1, basePath?: string) => AxiosPromise$1<Transaction$1>>;
|
|
1015
|
+
};
|
|
1016
|
+
/**
|
|
1017
|
+
* TransactionsApi - factory interface
|
|
1018
|
+
* @export
|
|
1019
|
+
*/
|
|
1020
|
+
declare const TransactionsApiFactory: (configuration?: Configuration$1, basePath?: string, axios?: AxiosInstance$1) => {
|
|
1021
|
+
/**
|
|
1022
|
+
* Get a transaction by payload hash
|
|
1023
|
+
* @summary Info for a specific transaction
|
|
1024
|
+
* @param {TransactionsApiGetTransactionByIDRequest} requestParameters Request parameters.
|
|
1025
|
+
* @param {*} [options] Override http request option.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
*/
|
|
1028
|
+
getTransactionByID(requestParameters: TransactionsApiGetTransactionByIDRequest, options?: AxiosRequestConfig$1): AxiosPromise$1<Transaction$1>;
|
|
1029
|
+
};
|
|
1030
|
+
/**
|
|
1031
|
+
* Request parameters for getTransactionByID operation in TransactionsApi.
|
|
1032
|
+
* @export
|
|
1033
|
+
* @interface TransactionsApiGetTransactionByIDRequest
|
|
1034
|
+
*/
|
|
1035
|
+
interface TransactionsApiGetTransactionByIDRequest {
|
|
1036
|
+
/**
|
|
1037
|
+
* The id of the starkex transaction to retrieve
|
|
1038
|
+
* @type {string}
|
|
1039
|
+
* @memberof TransactionsApiGetTransactionByID
|
|
1040
|
+
*/
|
|
1041
|
+
readonly transactionID: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* roll up type
|
|
1044
|
+
* @type {string}
|
|
1045
|
+
* @memberof TransactionsApiGetTransactionByID
|
|
1046
|
+
*/
|
|
1047
|
+
readonly chainType: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* ID of evm chain
|
|
1050
|
+
* @type {number}
|
|
1051
|
+
* @memberof TransactionsApiGetTransactionByID
|
|
1052
|
+
*/
|
|
1053
|
+
readonly chainID?: number;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* TransactionsApi - object-oriented interface
|
|
1057
|
+
* @export
|
|
1058
|
+
* @class TransactionsApi
|
|
1059
|
+
* @extends {BaseAPI}
|
|
1060
|
+
*/
|
|
1061
|
+
declare class TransactionsApi extends BaseAPI$1 {
|
|
1062
|
+
/**
|
|
1063
|
+
* Get a transaction by payload hash
|
|
1064
|
+
* @summary Info for a specific transaction
|
|
1065
|
+
* @param {TransactionsApiGetTransactionByIDRequest} requestParameters Request parameters.
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
* @memberof TransactionsApi
|
|
1069
|
+
*/
|
|
1070
|
+
getTransactionByID(requestParameters: TransactionsApiGetTransactionByIDRequest, options?: AxiosRequestConfig$1): Promise<AxiosResponse$1<Transaction$1, any>>;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Swagger Guardian
|
|
1075
|
+
* Guardian API
|
|
1076
|
+
*
|
|
1077
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1078
|
+
* Contact: support@immutable.com
|
|
1079
|
+
*
|
|
1080
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1081
|
+
* https://openapi-generator.tech
|
|
1082
|
+
* Do not edit the class manually.
|
|
1083
|
+
*/
|
|
1084
|
+
|
|
1085
|
+
type index_d_APIError403 = APIError403;
|
|
1086
|
+
type index_d_APIError403AllOf = APIError403AllOf;
|
|
1087
|
+
type index_d_APIError403AllOfCodeEnum = APIError403AllOfCodeEnum;
|
|
1088
|
+
type index_d_APIError404 = APIError404;
|
|
1089
|
+
type index_d_APIError404AllOf = APIError404AllOf;
|
|
1090
|
+
type index_d_APIError404AllOfCodeEnum = APIError404AllOfCodeEnum;
|
|
1091
|
+
type index_d_APIError500 = APIError500;
|
|
1092
|
+
type index_d_APIError500AllOf = APIError500AllOf;
|
|
1093
|
+
type index_d_APIError500AllOfCodeEnum = APIError500AllOfCodeEnum;
|
|
1094
|
+
type index_d_BasicAPIError = BasicAPIError;
|
|
1095
|
+
type index_d_DefaultApi = DefaultApi;
|
|
1096
|
+
declare const index_d_DefaultApi: typeof DefaultApi;
|
|
1097
|
+
type index_d_DefaultApiApprovePendingTransactionRequest = DefaultApiApprovePendingTransactionRequest;
|
|
1098
|
+
declare const index_d_DefaultApiAxiosParamCreator: typeof DefaultApiAxiosParamCreator;
|
|
1099
|
+
declare const index_d_DefaultApiFactory: typeof DefaultApiFactory;
|
|
1100
|
+
declare const index_d_DefaultApiFp: typeof DefaultApiFp;
|
|
1101
|
+
type index_d_StarkExTransactionValidateReponseDefinition = StarkExTransactionValidateReponseDefinition;
|
|
1102
|
+
type index_d_StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum = StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum;
|
|
1103
|
+
type index_d_StarkexTransactionsApi = StarkexTransactionsApi;
|
|
1104
|
+
declare const index_d_StarkexTransactionsApi: typeof StarkexTransactionsApi;
|
|
1105
|
+
declare const index_d_StarkexTransactionsApiAxiosParamCreator: typeof StarkexTransactionsApiAxiosParamCreator;
|
|
1106
|
+
type index_d_StarkexTransactionsApiEvaluateStarkexTransactionRequest = StarkexTransactionsApiEvaluateStarkexTransactionRequest;
|
|
1107
|
+
declare const index_d_StarkexTransactionsApiFactory: typeof StarkexTransactionsApiFactory;
|
|
1108
|
+
declare const index_d_StarkexTransactionsApiFp: typeof StarkexTransactionsApiFp;
|
|
1109
|
+
type index_d_TransactionApprovalRequest = TransactionApprovalRequest;
|
|
1110
|
+
type index_d_TransactionApprovalRequestChainTypeEnum = TransactionApprovalRequestChainTypeEnum;
|
|
1111
|
+
type index_d_TransactionsApi = TransactionsApi;
|
|
1112
|
+
declare const index_d_TransactionsApi: typeof TransactionsApi;
|
|
1113
|
+
declare const index_d_TransactionsApiAxiosParamCreator: typeof TransactionsApiAxiosParamCreator;
|
|
1114
|
+
declare const index_d_TransactionsApiFactory: typeof TransactionsApiFactory;
|
|
1115
|
+
declare const index_d_TransactionsApiFp: typeof TransactionsApiFp;
|
|
1116
|
+
type index_d_TransactionsApiGetTransactionByIDRequest = TransactionsApiGetTransactionByIDRequest;
|
|
1117
|
+
declare namespace index_d {
|
|
1118
|
+
export {
|
|
1119
|
+
index_d_APIError403 as APIError403,
|
|
1120
|
+
index_d_APIError403AllOf as APIError403AllOf,
|
|
1121
|
+
index_d_APIError403AllOfCodeEnum as APIError403AllOfCodeEnum,
|
|
1122
|
+
index_d_APIError404 as APIError404,
|
|
1123
|
+
index_d_APIError404AllOf as APIError404AllOf,
|
|
1124
|
+
index_d_APIError404AllOfCodeEnum as APIError404AllOfCodeEnum,
|
|
1125
|
+
index_d_APIError500 as APIError500,
|
|
1126
|
+
index_d_APIError500AllOf as APIError500AllOf,
|
|
1127
|
+
index_d_APIError500AllOfCodeEnum as APIError500AllOfCodeEnum,
|
|
1128
|
+
index_d_BasicAPIError as BasicAPIError,
|
|
1129
|
+
Configuration$1 as Configuration,
|
|
1130
|
+
ConfigurationParameters$1 as ConfigurationParameters,
|
|
1131
|
+
index_d_DefaultApi as DefaultApi,
|
|
1132
|
+
index_d_DefaultApiApprovePendingTransactionRequest as DefaultApiApprovePendingTransactionRequest,
|
|
1133
|
+
index_d_DefaultApiAxiosParamCreator as DefaultApiAxiosParamCreator,
|
|
1134
|
+
index_d_DefaultApiFactory as DefaultApiFactory,
|
|
1135
|
+
index_d_DefaultApiFp as DefaultApiFp,
|
|
1136
|
+
index_d_StarkExTransactionValidateReponseDefinition as StarkExTransactionValidateReponseDefinition,
|
|
1137
|
+
index_d_StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum as StarkExTransactionValidateReponseDefinitionConfirmationMethodEnum,
|
|
1138
|
+
index_d_StarkexTransactionsApi as StarkexTransactionsApi,
|
|
1139
|
+
index_d_StarkexTransactionsApiAxiosParamCreator as StarkexTransactionsApiAxiosParamCreator,
|
|
1140
|
+
index_d_StarkexTransactionsApiEvaluateStarkexTransactionRequest as StarkexTransactionsApiEvaluateStarkexTransactionRequest,
|
|
1141
|
+
index_d_StarkexTransactionsApiFactory as StarkexTransactionsApiFactory,
|
|
1142
|
+
index_d_StarkexTransactionsApiFp as StarkexTransactionsApiFp,
|
|
1143
|
+
Transaction$1 as Transaction,
|
|
1144
|
+
index_d_TransactionApprovalRequest as TransactionApprovalRequest,
|
|
1145
|
+
index_d_TransactionApprovalRequestChainTypeEnum as TransactionApprovalRequestChainTypeEnum,
|
|
1146
|
+
index_d_TransactionsApi as TransactionsApi,
|
|
1147
|
+
index_d_TransactionsApiAxiosParamCreator as TransactionsApiAxiosParamCreator,
|
|
1148
|
+
index_d_TransactionsApiFactory as TransactionsApiFactory,
|
|
1149
|
+
index_d_TransactionsApiFp as TransactionsApiFp,
|
|
1150
|
+
index_d_TransactionsApiGetTransactionByIDRequest as TransactionsApiGetTransactionByIDRequest,
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1
1154
|
declare enum PassportErrorType {
|
|
2
1155
|
AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
|
|
3
1156
|
INVALID_CONFIGURATION = "INVALID_CONFIGURATION",
|
|
@@ -10505,4 +11658,4 @@ declare class Passport {
|
|
|
10505
11658
|
private registerUser;
|
|
10506
11659
|
}
|
|
10507
11660
|
|
|
10508
|
-
export { Passport, PassportError, PassportModuleConfiguration };
|
|
11661
|
+
export { Passport, PassportError, PassportModuleConfiguration, index_d as guardian };
|