airbrowser-client 1.1.8
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/.openapi-generator/FILES +74 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +165 -0
- package/api.ts +4299 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +2543 -0
- package/dist/api.js +3260 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +2543 -0
- package/dist/esm/api.js +3241 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/ActionResult.md +26 -0
- package/docs/AttributeResponse.md +26 -0
- package/docs/BaseResponse.md +24 -0
- package/docs/BrowserApi.md +1922 -0
- package/docs/BrowserConfig.md +36 -0
- package/docs/BrowserCreated.md +26 -0
- package/docs/BrowserCreationData.md +22 -0
- package/docs/BrowserInfoResponse.md +26 -0
- package/docs/BrowserList.md +26 -0
- package/docs/BrowserListData.md +22 -0
- package/docs/CheckElementRequest.md +24 -0
- package/docs/ClickRequest.md +26 -0
- package/docs/CombinedDialogRequest.md +22 -0
- package/docs/CombinedEmulateRequest.md +32 -0
- package/docs/CombinedGuiClickRequest.md +30 -0
- package/docs/CombinedScrollRequest.md +32 -0
- package/docs/ConsoleLogsRequest.md +22 -0
- package/docs/ContentData.md +24 -0
- package/docs/ContentResponse.md +26 -0
- package/docs/CreateProfileRequest.md +20 -0
- package/docs/DetectCoordinatesRequest.md +20 -0
- package/docs/DetectCoordinatesResult.md +44 -0
- package/docs/ElementDataRequest.md +26 -0
- package/docs/ErrorResponse.md +24 -0
- package/docs/ExecuteData.md +20 -0
- package/docs/ExecuteRequest.md +22 -0
- package/docs/ExecuteResponse.md +26 -0
- package/docs/FillFormRequest.md +22 -0
- package/docs/FormField.md +22 -0
- package/docs/HealthApi.md +95 -0
- package/docs/HealthStatus.md +24 -0
- package/docs/HistoryRequest.md +20 -0
- package/docs/LogsResponse.md +26 -0
- package/docs/MouseRequest.md +28 -0
- package/docs/NavigateRequest.md +22 -0
- package/docs/NetworkLogsRequest.md +22 -0
- package/docs/PerformanceRequest.md +22 -0
- package/docs/PoolApi.md +104 -0
- package/docs/PoolScaled.md +26 -0
- package/docs/PoolStatusResponse.md +26 -0
- package/docs/PressKeysRequest.md +24 -0
- package/docs/ProfileInfo.md +28 -0
- package/docs/ProfileListData.md +20 -0
- package/docs/ProfileListResponse.md +26 -0
- package/docs/ProfileResponse.md +26 -0
- package/docs/ProfilesApi.md +209 -0
- package/docs/ResizeRequest.md +22 -0
- package/docs/ScaleData.md +20 -0
- package/docs/ScalePool.md +20 -0
- package/docs/ScreenshotData.md +22 -0
- package/docs/ScreenshotResponse.md +26 -0
- package/docs/SelectRequest.md +30 -0
- package/docs/SnapshotRequest.md +20 -0
- package/docs/SuccessResponse.md +26 -0
- package/docs/TabsRequest.md +26 -0
- package/docs/TypeRequest.md +26 -0
- package/docs/UploadFileRequest.md +24 -0
- package/docs/UrlData.md +20 -0
- package/docs/UrlResponse.md +26 -0
- package/docs/WaitElementRequest.md +26 -0
- package/docs/WhatIsVisibleResult.md +34 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/api.ts
ADDED
|
@@ -0,0 +1,4299 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Airbrowser API
|
|
5
|
+
* Undetectable Chrome-in-Docker for developers and agents (REST + MCP)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
export interface ActionResult {
|
|
27
|
+
/**
|
|
28
|
+
* Operation success
|
|
29
|
+
*/
|
|
30
|
+
'success': boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Status message
|
|
33
|
+
*/
|
|
34
|
+
'message': string;
|
|
35
|
+
/**
|
|
36
|
+
* Unix timestamp
|
|
37
|
+
*/
|
|
38
|
+
'timestamp': number;
|
|
39
|
+
/**
|
|
40
|
+
* Action result data
|
|
41
|
+
*/
|
|
42
|
+
'data'?: object;
|
|
43
|
+
}
|
|
44
|
+
export interface AttributeResponse {
|
|
45
|
+
/**
|
|
46
|
+
* Operation success
|
|
47
|
+
*/
|
|
48
|
+
'success'?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Status message
|
|
51
|
+
*/
|
|
52
|
+
'message'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Unix timestamp
|
|
55
|
+
*/
|
|
56
|
+
'timestamp'?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Attribute/property data
|
|
59
|
+
*/
|
|
60
|
+
'data'?: object;
|
|
61
|
+
}
|
|
62
|
+
export interface BaseResponse {
|
|
63
|
+
/**
|
|
64
|
+
* Operation success
|
|
65
|
+
*/
|
|
66
|
+
'success': boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Status message
|
|
69
|
+
*/
|
|
70
|
+
'message': string;
|
|
71
|
+
/**
|
|
72
|
+
* Unix timestamp
|
|
73
|
+
*/
|
|
74
|
+
'timestamp': number;
|
|
75
|
+
}
|
|
76
|
+
export interface BrowserConfig {
|
|
77
|
+
/**
|
|
78
|
+
* Profile name for persistent data. Omit for fresh session.
|
|
79
|
+
*/
|
|
80
|
+
'profile_name'?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Proxy server URL
|
|
83
|
+
*/
|
|
84
|
+
'proxy'?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Custom user agent string
|
|
87
|
+
*/
|
|
88
|
+
'user_agent'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Browser window size [width, height]
|
|
91
|
+
*/
|
|
92
|
+
'window_size'?: Array<number>;
|
|
93
|
+
/**
|
|
94
|
+
* Disable GPU acceleration
|
|
95
|
+
*/
|
|
96
|
+
'disable_gpu'?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Disable image loading
|
|
99
|
+
*/
|
|
100
|
+
'disable_images'?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Disable JavaScript
|
|
103
|
+
*/
|
|
104
|
+
'disable_javascript'?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Chrome extension paths
|
|
107
|
+
*/
|
|
108
|
+
'extensions'?: Array<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Custom Chrome arguments
|
|
111
|
+
*/
|
|
112
|
+
'custom_args'?: Array<string>;
|
|
113
|
+
}
|
|
114
|
+
export interface BrowserCreated {
|
|
115
|
+
/**
|
|
116
|
+
* Operation success
|
|
117
|
+
*/
|
|
118
|
+
'success': boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Status message
|
|
121
|
+
*/
|
|
122
|
+
'message': string;
|
|
123
|
+
/**
|
|
124
|
+
* Unix timestamp
|
|
125
|
+
*/
|
|
126
|
+
'timestamp': number;
|
|
127
|
+
/**
|
|
128
|
+
* Browser creation data
|
|
129
|
+
*/
|
|
130
|
+
'data'?: BrowserCreationData;
|
|
131
|
+
}
|
|
132
|
+
export interface BrowserCreationData {
|
|
133
|
+
/**
|
|
134
|
+
* Unique browser identifier
|
|
135
|
+
*/
|
|
136
|
+
'browser_id': string;
|
|
137
|
+
/**
|
|
138
|
+
* Browser configuration used
|
|
139
|
+
*/
|
|
140
|
+
'config'?: object;
|
|
141
|
+
}
|
|
142
|
+
export interface BrowserInfoResponse {
|
|
143
|
+
/**
|
|
144
|
+
* Operation success
|
|
145
|
+
*/
|
|
146
|
+
'success': boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Status message
|
|
149
|
+
*/
|
|
150
|
+
'message': string;
|
|
151
|
+
/**
|
|
152
|
+
* Unix timestamp
|
|
153
|
+
*/
|
|
154
|
+
'timestamp': number;
|
|
155
|
+
/**
|
|
156
|
+
* Browser information
|
|
157
|
+
*/
|
|
158
|
+
'data'?: object;
|
|
159
|
+
}
|
|
160
|
+
export interface BrowserList {
|
|
161
|
+
/**
|
|
162
|
+
* Operation success
|
|
163
|
+
*/
|
|
164
|
+
'success': boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Status message
|
|
167
|
+
*/
|
|
168
|
+
'message': string;
|
|
169
|
+
/**
|
|
170
|
+
* Unix timestamp
|
|
171
|
+
*/
|
|
172
|
+
'timestamp': number;
|
|
173
|
+
/**
|
|
174
|
+
* Browser list data
|
|
175
|
+
*/
|
|
176
|
+
'data'?: BrowserListData;
|
|
177
|
+
}
|
|
178
|
+
export interface BrowserListData {
|
|
179
|
+
/**
|
|
180
|
+
* List of active browsers
|
|
181
|
+
*/
|
|
182
|
+
'browsers'?: Array<object>;
|
|
183
|
+
/**
|
|
184
|
+
* Total browser count
|
|
185
|
+
*/
|
|
186
|
+
'count'?: number;
|
|
187
|
+
}
|
|
188
|
+
export interface CheckElementRequest {
|
|
189
|
+
/**
|
|
190
|
+
* Element selector
|
|
191
|
+
*/
|
|
192
|
+
'selector': string;
|
|
193
|
+
/**
|
|
194
|
+
* Selector type (css, id, name, xpath)
|
|
195
|
+
*/
|
|
196
|
+
'by'?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Check type: exists or visible
|
|
199
|
+
*/
|
|
200
|
+
'check': CheckElementRequestCheckEnum;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export const CheckElementRequestCheckEnum = {
|
|
204
|
+
Exists: 'exists',
|
|
205
|
+
Visible: 'visible'
|
|
206
|
+
} as const;
|
|
207
|
+
|
|
208
|
+
export type CheckElementRequestCheckEnum = typeof CheckElementRequestCheckEnum[keyof typeof CheckElementRequestCheckEnum];
|
|
209
|
+
|
|
210
|
+
export interface ClickRequest {
|
|
211
|
+
/**
|
|
212
|
+
* Element selector
|
|
213
|
+
*/
|
|
214
|
+
'selector': string;
|
|
215
|
+
/**
|
|
216
|
+
* Selector type: css, id, name, xpath
|
|
217
|
+
*/
|
|
218
|
+
'by'?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Timeout in seconds
|
|
221
|
+
*/
|
|
222
|
+
'timeout'?: number;
|
|
223
|
+
/**
|
|
224
|
+
* Only click if element is visible
|
|
225
|
+
*/
|
|
226
|
+
'if_visible'?: boolean;
|
|
227
|
+
}
|
|
228
|
+
export interface CombinedDialogRequest {
|
|
229
|
+
/**
|
|
230
|
+
* Dialog action: get, accept, or dismiss
|
|
231
|
+
*/
|
|
232
|
+
'action': CombinedDialogRequestActionEnum;
|
|
233
|
+
/**
|
|
234
|
+
* Text to enter for prompt dialogs (for \'accept\' action)
|
|
235
|
+
*/
|
|
236
|
+
'text'?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export const CombinedDialogRequestActionEnum = {
|
|
240
|
+
Get: 'get',
|
|
241
|
+
Accept: 'accept',
|
|
242
|
+
Dismiss: 'dismiss'
|
|
243
|
+
} as const;
|
|
244
|
+
|
|
245
|
+
export type CombinedDialogRequestActionEnum = typeof CombinedDialogRequestActionEnum[keyof typeof CombinedDialogRequestActionEnum];
|
|
246
|
+
|
|
247
|
+
export interface CombinedEmulateRequest {
|
|
248
|
+
/**
|
|
249
|
+
* Emulation action: set, clear, or list_devices
|
|
250
|
+
*/
|
|
251
|
+
'action'?: CombinedEmulateRequestActionEnum;
|
|
252
|
+
/**
|
|
253
|
+
* Device preset name (e.g., iPhone 14, iPad)
|
|
254
|
+
*/
|
|
255
|
+
'device'?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Custom viewport width
|
|
258
|
+
*/
|
|
259
|
+
'width'?: number;
|
|
260
|
+
/**
|
|
261
|
+
* Custom viewport height
|
|
262
|
+
*/
|
|
263
|
+
'height'?: number;
|
|
264
|
+
/**
|
|
265
|
+
* Device pixel ratio
|
|
266
|
+
*/
|
|
267
|
+
'device_scale_factor'?: number;
|
|
268
|
+
/**
|
|
269
|
+
* Enable touch events
|
|
270
|
+
*/
|
|
271
|
+
'mobile'?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Custom user agent
|
|
274
|
+
*/
|
|
275
|
+
'user_agent'?: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export const CombinedEmulateRequestActionEnum = {
|
|
279
|
+
Set: 'set',
|
|
280
|
+
Clear: 'clear',
|
|
281
|
+
ListDevices: 'list_devices'
|
|
282
|
+
} as const;
|
|
283
|
+
|
|
284
|
+
export type CombinedEmulateRequestActionEnum = typeof CombinedEmulateRequestActionEnum[keyof typeof CombinedEmulateRequestActionEnum];
|
|
285
|
+
|
|
286
|
+
export interface CombinedGuiClickRequest {
|
|
287
|
+
/**
|
|
288
|
+
* Element selector (for selector mode)
|
|
289
|
+
*/
|
|
290
|
+
'selector'?: string;
|
|
291
|
+
/**
|
|
292
|
+
* Screen X coordinate (for coordinate mode)
|
|
293
|
+
*/
|
|
294
|
+
'x'?: number;
|
|
295
|
+
/**
|
|
296
|
+
* Screen Y coordinate (for coordinate mode)
|
|
297
|
+
*/
|
|
298
|
+
'y'?: number;
|
|
299
|
+
/**
|
|
300
|
+
* Mouse move duration (seconds)
|
|
301
|
+
*/
|
|
302
|
+
'timeframe'?: number;
|
|
303
|
+
/**
|
|
304
|
+
* Relative X (0..1) within element to click
|
|
305
|
+
*/
|
|
306
|
+
'fx'?: number;
|
|
307
|
+
/**
|
|
308
|
+
* Relative Y (0..1) within element to click
|
|
309
|
+
*/
|
|
310
|
+
'fy'?: number;
|
|
311
|
+
}
|
|
312
|
+
export interface CombinedScrollRequest {
|
|
313
|
+
/**
|
|
314
|
+
* Element selector to scroll to
|
|
315
|
+
*/
|
|
316
|
+
'selector'?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Selector type (css, id, name, xpath)
|
|
319
|
+
*/
|
|
320
|
+
'by'?: string;
|
|
321
|
+
/**
|
|
322
|
+
* X coordinate to scroll to (absolute)
|
|
323
|
+
*/
|
|
324
|
+
'x'?: number;
|
|
325
|
+
/**
|
|
326
|
+
* Y coordinate to scroll to (absolute)
|
|
327
|
+
*/
|
|
328
|
+
'y'?: number;
|
|
329
|
+
/**
|
|
330
|
+
* Horizontal scroll amount (relative)
|
|
331
|
+
*/
|
|
332
|
+
'delta_x'?: number;
|
|
333
|
+
/**
|
|
334
|
+
* Vertical scroll amount (relative)
|
|
335
|
+
*/
|
|
336
|
+
'delta_y'?: number;
|
|
337
|
+
/**
|
|
338
|
+
* Scroll behavior: smooth or instant
|
|
339
|
+
*/
|
|
340
|
+
'behavior'?: string;
|
|
341
|
+
}
|
|
342
|
+
export interface ConsoleLogsRequest {
|
|
343
|
+
/**
|
|
344
|
+
* Action: get or clear
|
|
345
|
+
*/
|
|
346
|
+
'action': ConsoleLogsRequestActionEnum;
|
|
347
|
+
/**
|
|
348
|
+
* Max number of logs to return (for get)
|
|
349
|
+
*/
|
|
350
|
+
'limit'?: number;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export const ConsoleLogsRequestActionEnum = {
|
|
354
|
+
Get: 'get',
|
|
355
|
+
Clear: 'clear'
|
|
356
|
+
} as const;
|
|
357
|
+
|
|
358
|
+
export type ConsoleLogsRequestActionEnum = typeof ConsoleLogsRequestActionEnum[keyof typeof ConsoleLogsRequestActionEnum];
|
|
359
|
+
|
|
360
|
+
export interface ContentData {
|
|
361
|
+
/**
|
|
362
|
+
* Page HTML content
|
|
363
|
+
*/
|
|
364
|
+
'html'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Page title
|
|
367
|
+
*/
|
|
368
|
+
'title'?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Current URL
|
|
371
|
+
*/
|
|
372
|
+
'url'?: string;
|
|
373
|
+
}
|
|
374
|
+
export interface ContentResponse {
|
|
375
|
+
/**
|
|
376
|
+
* Operation success
|
|
377
|
+
*/
|
|
378
|
+
'success': boolean;
|
|
379
|
+
/**
|
|
380
|
+
* Status message
|
|
381
|
+
*/
|
|
382
|
+
'message': string;
|
|
383
|
+
/**
|
|
384
|
+
* Unix timestamp
|
|
385
|
+
*/
|
|
386
|
+
'timestamp': number;
|
|
387
|
+
/**
|
|
388
|
+
* Page content data
|
|
389
|
+
*/
|
|
390
|
+
'data'?: ContentData;
|
|
391
|
+
}
|
|
392
|
+
export interface CreateProfileRequest {
|
|
393
|
+
/**
|
|
394
|
+
* Profile name
|
|
395
|
+
*/
|
|
396
|
+
'name': string;
|
|
397
|
+
}
|
|
398
|
+
export interface DetectCoordinatesRequest {
|
|
399
|
+
/**
|
|
400
|
+
* Natural language description of element to find
|
|
401
|
+
*/
|
|
402
|
+
'prompt': string;
|
|
403
|
+
}
|
|
404
|
+
export interface DetectCoordinatesResult {
|
|
405
|
+
/**
|
|
406
|
+
* Operation success
|
|
407
|
+
*/
|
|
408
|
+
'success'?: boolean;
|
|
409
|
+
/**
|
|
410
|
+
* Success message
|
|
411
|
+
*/
|
|
412
|
+
'message'?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Unix timestamp
|
|
415
|
+
*/
|
|
416
|
+
'timestamp'?: number;
|
|
417
|
+
/**
|
|
418
|
+
* Element description used
|
|
419
|
+
*/
|
|
420
|
+
'prompt'?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Full coordinate information
|
|
423
|
+
*/
|
|
424
|
+
'coordinates'?: object;
|
|
425
|
+
/**
|
|
426
|
+
* Element bounding box {x, y, width, height}
|
|
427
|
+
*/
|
|
428
|
+
'bounding_box'?: object;
|
|
429
|
+
/**
|
|
430
|
+
* Recommended click point {x, y}
|
|
431
|
+
*/
|
|
432
|
+
'click_point'?: object;
|
|
433
|
+
/**
|
|
434
|
+
* Path to screenshot analyzed
|
|
435
|
+
*/
|
|
436
|
+
'screenshot_path'?: string;
|
|
437
|
+
/**
|
|
438
|
+
* Vision model used for detection
|
|
439
|
+
*/
|
|
440
|
+
'model_used'?: string;
|
|
441
|
+
/**
|
|
442
|
+
* Detection confidence (0.0-1.0)
|
|
443
|
+
*/
|
|
444
|
+
'confidence'?: number;
|
|
445
|
+
/**
|
|
446
|
+
* Models attempted if detection failed
|
|
447
|
+
*/
|
|
448
|
+
'models_tried'?: Array<string>;
|
|
449
|
+
/**
|
|
450
|
+
* Additional result data
|
|
451
|
+
*/
|
|
452
|
+
'data'?: object;
|
|
453
|
+
/**
|
|
454
|
+
* Error message if failed
|
|
455
|
+
*/
|
|
456
|
+
'error'?: string;
|
|
457
|
+
}
|
|
458
|
+
export interface ElementDataRequest {
|
|
459
|
+
/**
|
|
460
|
+
* Element selector
|
|
461
|
+
*/
|
|
462
|
+
'selector': string;
|
|
463
|
+
/**
|
|
464
|
+
* Selector type (css, id, name, xpath)
|
|
465
|
+
*/
|
|
466
|
+
'by'?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Data type: text, attribute, or property
|
|
469
|
+
*/
|
|
470
|
+
'type': ElementDataRequestTypeEnum;
|
|
471
|
+
/**
|
|
472
|
+
* Attribute/property name (required for attribute/property)
|
|
473
|
+
*/
|
|
474
|
+
'name'?: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export const ElementDataRequestTypeEnum = {
|
|
478
|
+
Text: 'text',
|
|
479
|
+
Attribute: 'attribute',
|
|
480
|
+
Property: 'property'
|
|
481
|
+
} as const;
|
|
482
|
+
|
|
483
|
+
export type ElementDataRequestTypeEnum = typeof ElementDataRequestTypeEnum[keyof typeof ElementDataRequestTypeEnum];
|
|
484
|
+
|
|
485
|
+
export interface ErrorResponse {
|
|
486
|
+
/**
|
|
487
|
+
* Operation success (false)
|
|
488
|
+
*/
|
|
489
|
+
'success'?: boolean;
|
|
490
|
+
/**
|
|
491
|
+
* Error message
|
|
492
|
+
*/
|
|
493
|
+
'message'?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Unix timestamp
|
|
496
|
+
*/
|
|
497
|
+
'timestamp'?: number;
|
|
498
|
+
}
|
|
499
|
+
export interface ExecuteData {
|
|
500
|
+
/**
|
|
501
|
+
* Script execution result
|
|
502
|
+
*/
|
|
503
|
+
'result'?: object;
|
|
504
|
+
}
|
|
505
|
+
export interface ExecuteRequest {
|
|
506
|
+
/**
|
|
507
|
+
* JavaScript code to execute
|
|
508
|
+
*/
|
|
509
|
+
'script': string;
|
|
510
|
+
/**
|
|
511
|
+
* Timeout in seconds
|
|
512
|
+
*/
|
|
513
|
+
'timeout'?: number;
|
|
514
|
+
}
|
|
515
|
+
export interface ExecuteResponse {
|
|
516
|
+
/**
|
|
517
|
+
* Operation success
|
|
518
|
+
*/
|
|
519
|
+
'success': boolean;
|
|
520
|
+
/**
|
|
521
|
+
* Status message
|
|
522
|
+
*/
|
|
523
|
+
'message': string;
|
|
524
|
+
/**
|
|
525
|
+
* Unix timestamp
|
|
526
|
+
*/
|
|
527
|
+
'timestamp': number;
|
|
528
|
+
/**
|
|
529
|
+
* Execution result
|
|
530
|
+
*/
|
|
531
|
+
'data'?: ExecuteData;
|
|
532
|
+
}
|
|
533
|
+
export interface FillFormRequest {
|
|
534
|
+
/**
|
|
535
|
+
* Fields to fill
|
|
536
|
+
*/
|
|
537
|
+
'fields': Array<FormField>;
|
|
538
|
+
/**
|
|
539
|
+
* Selector type (css, id, name, xpath)
|
|
540
|
+
*/
|
|
541
|
+
'by'?: string;
|
|
542
|
+
}
|
|
543
|
+
export interface FormField {
|
|
544
|
+
/**
|
|
545
|
+
* Field selector
|
|
546
|
+
*/
|
|
547
|
+
'selector': string;
|
|
548
|
+
/**
|
|
549
|
+
* Value to fill
|
|
550
|
+
*/
|
|
551
|
+
'value': string;
|
|
552
|
+
}
|
|
553
|
+
export interface HealthStatus {
|
|
554
|
+
/**
|
|
555
|
+
* Health status
|
|
556
|
+
*/
|
|
557
|
+
'status'?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Pool status information
|
|
560
|
+
*/
|
|
561
|
+
'pool'?: object;
|
|
562
|
+
/**
|
|
563
|
+
* Unix timestamp
|
|
564
|
+
*/
|
|
565
|
+
'timestamp'?: number;
|
|
566
|
+
}
|
|
567
|
+
export interface HistoryRequest {
|
|
568
|
+
/**
|
|
569
|
+
* History action: back, forward, or refresh
|
|
570
|
+
*/
|
|
571
|
+
'action': HistoryRequestActionEnum;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export const HistoryRequestActionEnum = {
|
|
575
|
+
Back: 'back',
|
|
576
|
+
Forward: 'forward',
|
|
577
|
+
Refresh: 'refresh'
|
|
578
|
+
} as const;
|
|
579
|
+
|
|
580
|
+
export type HistoryRequestActionEnum = typeof HistoryRequestActionEnum[keyof typeof HistoryRequestActionEnum];
|
|
581
|
+
|
|
582
|
+
export interface LogsResponse {
|
|
583
|
+
/**
|
|
584
|
+
* Operation success
|
|
585
|
+
*/
|
|
586
|
+
'success': boolean;
|
|
587
|
+
/**
|
|
588
|
+
* Status message
|
|
589
|
+
*/
|
|
590
|
+
'message': string;
|
|
591
|
+
/**
|
|
592
|
+
* Unix timestamp
|
|
593
|
+
*/
|
|
594
|
+
'timestamp': number;
|
|
595
|
+
/**
|
|
596
|
+
* Log entries
|
|
597
|
+
*/
|
|
598
|
+
'data'?: object;
|
|
599
|
+
}
|
|
600
|
+
export interface MouseRequest {
|
|
601
|
+
/**
|
|
602
|
+
* Action: hover or drag
|
|
603
|
+
*/
|
|
604
|
+
'action': string;
|
|
605
|
+
/**
|
|
606
|
+
* Element selector (for hover)
|
|
607
|
+
*/
|
|
608
|
+
'selector'?: string;
|
|
609
|
+
/**
|
|
610
|
+
* Source selector (for drag)
|
|
611
|
+
*/
|
|
612
|
+
'source'?: string;
|
|
613
|
+
/**
|
|
614
|
+
* Target selector (for drag)
|
|
615
|
+
*/
|
|
616
|
+
'target'?: string;
|
|
617
|
+
/**
|
|
618
|
+
* Selector type: css, id, name, xpath
|
|
619
|
+
*/
|
|
620
|
+
'by'?: string;
|
|
621
|
+
}
|
|
622
|
+
export interface NavigateRequest {
|
|
623
|
+
/**
|
|
624
|
+
* URL to navigate to
|
|
625
|
+
*/
|
|
626
|
+
'url': string;
|
|
627
|
+
/**
|
|
628
|
+
* Navigation timeout in seconds
|
|
629
|
+
*/
|
|
630
|
+
'timeout'?: number;
|
|
631
|
+
}
|
|
632
|
+
export interface NetworkLogsRequest {
|
|
633
|
+
/**
|
|
634
|
+
* Action: get or clear
|
|
635
|
+
*/
|
|
636
|
+
'action': NetworkLogsRequestActionEnum;
|
|
637
|
+
/**
|
|
638
|
+
* Max number of logs to return (for get)
|
|
639
|
+
*/
|
|
640
|
+
'limit'?: number;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export const NetworkLogsRequestActionEnum = {
|
|
644
|
+
Get: 'get',
|
|
645
|
+
Clear: 'clear'
|
|
646
|
+
} as const;
|
|
647
|
+
|
|
648
|
+
export type NetworkLogsRequestActionEnum = typeof NetworkLogsRequestActionEnum[keyof typeof NetworkLogsRequestActionEnum];
|
|
649
|
+
|
|
650
|
+
export interface PerformanceRequest {
|
|
651
|
+
/**
|
|
652
|
+
* Performance action: start_trace, stop_trace, metrics, or analyze
|
|
653
|
+
*/
|
|
654
|
+
'action': PerformanceRequestActionEnum;
|
|
655
|
+
/**
|
|
656
|
+
* Comma-separated trace categories (for start_trace)
|
|
657
|
+
*/
|
|
658
|
+
'categories'?: string;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export const PerformanceRequestActionEnum = {
|
|
662
|
+
StartTrace: 'start_trace',
|
|
663
|
+
StopTrace: 'stop_trace',
|
|
664
|
+
Metrics: 'metrics',
|
|
665
|
+
Analyze: 'analyze'
|
|
666
|
+
} as const;
|
|
667
|
+
|
|
668
|
+
export type PerformanceRequestActionEnum = typeof PerformanceRequestActionEnum[keyof typeof PerformanceRequestActionEnum];
|
|
669
|
+
|
|
670
|
+
export interface PoolScaled {
|
|
671
|
+
/**
|
|
672
|
+
* Operation success
|
|
673
|
+
*/
|
|
674
|
+
'success': boolean;
|
|
675
|
+
/**
|
|
676
|
+
* Status message
|
|
677
|
+
*/
|
|
678
|
+
'message': string;
|
|
679
|
+
/**
|
|
680
|
+
* Unix timestamp
|
|
681
|
+
*/
|
|
682
|
+
'timestamp': number;
|
|
683
|
+
/**
|
|
684
|
+
* Scale result
|
|
685
|
+
*/
|
|
686
|
+
'data'?: ScaleData;
|
|
687
|
+
}
|
|
688
|
+
export interface PoolStatusResponse {
|
|
689
|
+
/**
|
|
690
|
+
* Operation success
|
|
691
|
+
*/
|
|
692
|
+
'success': boolean;
|
|
693
|
+
/**
|
|
694
|
+
* Status message
|
|
695
|
+
*/
|
|
696
|
+
'message': string;
|
|
697
|
+
/**
|
|
698
|
+
* Unix timestamp
|
|
699
|
+
*/
|
|
700
|
+
'timestamp': number;
|
|
701
|
+
/**
|
|
702
|
+
* Pool status information
|
|
703
|
+
*/
|
|
704
|
+
'data'?: object;
|
|
705
|
+
}
|
|
706
|
+
export interface PressKeysRequest {
|
|
707
|
+
/**
|
|
708
|
+
* Element selector
|
|
709
|
+
*/
|
|
710
|
+
'selector': string;
|
|
711
|
+
/**
|
|
712
|
+
* Selector type: css, id, name, xpath
|
|
713
|
+
*/
|
|
714
|
+
'by'?: string;
|
|
715
|
+
/**
|
|
716
|
+
* Keys to press
|
|
717
|
+
*/
|
|
718
|
+
'keys': string;
|
|
719
|
+
}
|
|
720
|
+
export interface ProfileInfo {
|
|
721
|
+
/**
|
|
722
|
+
* Profile name
|
|
723
|
+
*/
|
|
724
|
+
'name'?: string;
|
|
725
|
+
/**
|
|
726
|
+
* Profile storage path
|
|
727
|
+
*/
|
|
728
|
+
'path'?: string;
|
|
729
|
+
/**
|
|
730
|
+
* Profile size in MB
|
|
731
|
+
*/
|
|
732
|
+
'size_mb'?: number;
|
|
733
|
+
/**
|
|
734
|
+
* Last used timestamp (ISO format)
|
|
735
|
+
*/
|
|
736
|
+
'last_used'?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Whether profile is currently in use by a browser
|
|
739
|
+
*/
|
|
740
|
+
'in_use'?: boolean;
|
|
741
|
+
}
|
|
742
|
+
export interface ProfileListData {
|
|
743
|
+
/**
|
|
744
|
+
* List of profiles
|
|
745
|
+
*/
|
|
746
|
+
'profiles'?: Array<ProfileInfo>;
|
|
747
|
+
}
|
|
748
|
+
export interface ProfileListResponse {
|
|
749
|
+
/**
|
|
750
|
+
* Operation success
|
|
751
|
+
*/
|
|
752
|
+
'success'?: boolean;
|
|
753
|
+
/**
|
|
754
|
+
* Status message
|
|
755
|
+
*/
|
|
756
|
+
'message'?: string;
|
|
757
|
+
/**
|
|
758
|
+
* Unix timestamp
|
|
759
|
+
*/
|
|
760
|
+
'timestamp'?: number;
|
|
761
|
+
'data'?: ProfileListData;
|
|
762
|
+
}
|
|
763
|
+
export interface ProfileResponse {
|
|
764
|
+
/**
|
|
765
|
+
* Operation success
|
|
766
|
+
*/
|
|
767
|
+
'success'?: boolean;
|
|
768
|
+
/**
|
|
769
|
+
* Status message
|
|
770
|
+
*/
|
|
771
|
+
'message'?: string;
|
|
772
|
+
/**
|
|
773
|
+
* Unix timestamp
|
|
774
|
+
*/
|
|
775
|
+
'timestamp'?: number;
|
|
776
|
+
'data'?: ProfileInfo;
|
|
777
|
+
}
|
|
778
|
+
export interface ResizeRequest {
|
|
779
|
+
/**
|
|
780
|
+
* Viewport width
|
|
781
|
+
*/
|
|
782
|
+
'width': number;
|
|
783
|
+
/**
|
|
784
|
+
* Viewport height
|
|
785
|
+
*/
|
|
786
|
+
'height': number;
|
|
787
|
+
}
|
|
788
|
+
export interface ScaleData {
|
|
789
|
+
/**
|
|
790
|
+
* New maximum browser count
|
|
791
|
+
*/
|
|
792
|
+
'new_max_browsers'?: number;
|
|
793
|
+
}
|
|
794
|
+
export interface ScalePool {
|
|
795
|
+
/**
|
|
796
|
+
* New maximum number of browsers
|
|
797
|
+
*/
|
|
798
|
+
'target_size': number;
|
|
799
|
+
}
|
|
800
|
+
export interface ScreenshotData {
|
|
801
|
+
/**
|
|
802
|
+
* URL to screenshot
|
|
803
|
+
*/
|
|
804
|
+
'screenshot_url'?: string;
|
|
805
|
+
/**
|
|
806
|
+
* Path to screenshot file
|
|
807
|
+
*/
|
|
808
|
+
'screenshot_path'?: string;
|
|
809
|
+
}
|
|
810
|
+
export interface ScreenshotResponse {
|
|
811
|
+
/**
|
|
812
|
+
* Operation success
|
|
813
|
+
*/
|
|
814
|
+
'success': boolean;
|
|
815
|
+
/**
|
|
816
|
+
* Status message
|
|
817
|
+
*/
|
|
818
|
+
'message': string;
|
|
819
|
+
/**
|
|
820
|
+
* Unix timestamp
|
|
821
|
+
*/
|
|
822
|
+
'timestamp': number;
|
|
823
|
+
/**
|
|
824
|
+
* Screenshot data
|
|
825
|
+
*/
|
|
826
|
+
'data'?: ScreenshotData;
|
|
827
|
+
}
|
|
828
|
+
export interface SelectRequest {
|
|
829
|
+
/**
|
|
830
|
+
* Select element selector
|
|
831
|
+
*/
|
|
832
|
+
'selector': string;
|
|
833
|
+
/**
|
|
834
|
+
* Selector type (css, id, name, xpath)
|
|
835
|
+
*/
|
|
836
|
+
'by'?: string;
|
|
837
|
+
/**
|
|
838
|
+
* Action: select or options
|
|
839
|
+
*/
|
|
840
|
+
'action'?: SelectRequestActionEnum;
|
|
841
|
+
/**
|
|
842
|
+
* Option value to select
|
|
843
|
+
*/
|
|
844
|
+
'value'?: string;
|
|
845
|
+
/**
|
|
846
|
+
* Option text to select
|
|
847
|
+
*/
|
|
848
|
+
'text'?: string;
|
|
849
|
+
/**
|
|
850
|
+
* Option index to select
|
|
851
|
+
*/
|
|
852
|
+
'index'?: number;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
export const SelectRequestActionEnum = {
|
|
856
|
+
Select: 'select',
|
|
857
|
+
Options: 'options'
|
|
858
|
+
} as const;
|
|
859
|
+
|
|
860
|
+
export type SelectRequestActionEnum = typeof SelectRequestActionEnum[keyof typeof SelectRequestActionEnum];
|
|
861
|
+
|
|
862
|
+
export interface SnapshotRequest {
|
|
863
|
+
/**
|
|
864
|
+
* Snapshot type: dom or accessibility
|
|
865
|
+
*/
|
|
866
|
+
'type'?: string;
|
|
867
|
+
}
|
|
868
|
+
export interface SuccessResponse {
|
|
869
|
+
/**
|
|
870
|
+
* Operation success
|
|
871
|
+
*/
|
|
872
|
+
'success'?: boolean;
|
|
873
|
+
/**
|
|
874
|
+
* Success message
|
|
875
|
+
*/
|
|
876
|
+
'message'?: string;
|
|
877
|
+
/**
|
|
878
|
+
* Unix timestamp
|
|
879
|
+
*/
|
|
880
|
+
'timestamp'?: number;
|
|
881
|
+
/**
|
|
882
|
+
* Additional result data
|
|
883
|
+
*/
|
|
884
|
+
'data'?: object;
|
|
885
|
+
}
|
|
886
|
+
export interface TabsRequest {
|
|
887
|
+
/**
|
|
888
|
+
* Tab action: list, new, switch, close, or current
|
|
889
|
+
*/
|
|
890
|
+
'action': TabsRequestActionEnum;
|
|
891
|
+
/**
|
|
892
|
+
* URL for new tab (for \'new\' action)
|
|
893
|
+
*/
|
|
894
|
+
'url'?: string;
|
|
895
|
+
/**
|
|
896
|
+
* Tab index (for \'switch\' or \'close\' actions)
|
|
897
|
+
*/
|
|
898
|
+
'index'?: number;
|
|
899
|
+
/**
|
|
900
|
+
* Tab handle (for \'switch\' or \'close\' actions)
|
|
901
|
+
*/
|
|
902
|
+
'handle'?: string;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
export const TabsRequestActionEnum = {
|
|
906
|
+
List: 'list',
|
|
907
|
+
New: 'new',
|
|
908
|
+
Switch: 'switch',
|
|
909
|
+
Close: 'close',
|
|
910
|
+
Current: 'current'
|
|
911
|
+
} as const;
|
|
912
|
+
|
|
913
|
+
export type TabsRequestActionEnum = typeof TabsRequestActionEnum[keyof typeof TabsRequestActionEnum];
|
|
914
|
+
|
|
915
|
+
export interface TypeRequest {
|
|
916
|
+
/**
|
|
917
|
+
* Element selector
|
|
918
|
+
*/
|
|
919
|
+
'selector': string;
|
|
920
|
+
/**
|
|
921
|
+
* Selector type: css, id, name, xpath
|
|
922
|
+
*/
|
|
923
|
+
'by'?: string;
|
|
924
|
+
/**
|
|
925
|
+
* Text to type
|
|
926
|
+
*/
|
|
927
|
+
'text': string;
|
|
928
|
+
/**
|
|
929
|
+
* Timeout in seconds
|
|
930
|
+
*/
|
|
931
|
+
'timeout'?: number;
|
|
932
|
+
}
|
|
933
|
+
export interface UploadFileRequest {
|
|
934
|
+
/**
|
|
935
|
+
* File input selector
|
|
936
|
+
*/
|
|
937
|
+
'selector': string;
|
|
938
|
+
/**
|
|
939
|
+
* Path to file to upload
|
|
940
|
+
*/
|
|
941
|
+
'file_path': string;
|
|
942
|
+
/**
|
|
943
|
+
* Selector type (css, id, name, xpath)
|
|
944
|
+
*/
|
|
945
|
+
'by'?: string;
|
|
946
|
+
}
|
|
947
|
+
export interface UrlData {
|
|
948
|
+
/**
|
|
949
|
+
* Current URL
|
|
950
|
+
*/
|
|
951
|
+
'url'?: string;
|
|
952
|
+
}
|
|
953
|
+
export interface UrlResponse {
|
|
954
|
+
/**
|
|
955
|
+
* Operation success
|
|
956
|
+
*/
|
|
957
|
+
'success': boolean;
|
|
958
|
+
/**
|
|
959
|
+
* Status message
|
|
960
|
+
*/
|
|
961
|
+
'message': string;
|
|
962
|
+
/**
|
|
963
|
+
* Unix timestamp
|
|
964
|
+
*/
|
|
965
|
+
'timestamp': number;
|
|
966
|
+
/**
|
|
967
|
+
* URL data
|
|
968
|
+
*/
|
|
969
|
+
'data'?: UrlData;
|
|
970
|
+
}
|
|
971
|
+
export interface WaitElementRequest {
|
|
972
|
+
/**
|
|
973
|
+
* Element selector
|
|
974
|
+
*/
|
|
975
|
+
'selector': string;
|
|
976
|
+
/**
|
|
977
|
+
* Selector type (css, id, name, xpath)
|
|
978
|
+
*/
|
|
979
|
+
'by'?: string;
|
|
980
|
+
/**
|
|
981
|
+
* Wait until: visible or hidden
|
|
982
|
+
*/
|
|
983
|
+
'until': WaitElementRequestUntilEnum;
|
|
984
|
+
/**
|
|
985
|
+
* Timeout in seconds
|
|
986
|
+
*/
|
|
987
|
+
'timeout'?: number;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export const WaitElementRequestUntilEnum = {
|
|
991
|
+
Visible: 'visible',
|
|
992
|
+
Hidden: 'hidden'
|
|
993
|
+
} as const;
|
|
994
|
+
|
|
995
|
+
export type WaitElementRequestUntilEnum = typeof WaitElementRequestUntilEnum[keyof typeof WaitElementRequestUntilEnum];
|
|
996
|
+
|
|
997
|
+
export interface WhatIsVisibleResult {
|
|
998
|
+
/**
|
|
999
|
+
* Operation success
|
|
1000
|
+
*/
|
|
1001
|
+
'success'?: boolean;
|
|
1002
|
+
/**
|
|
1003
|
+
* Success message
|
|
1004
|
+
*/
|
|
1005
|
+
'message'?: string;
|
|
1006
|
+
/**
|
|
1007
|
+
* Unix timestamp
|
|
1008
|
+
*/
|
|
1009
|
+
'timestamp'?: number;
|
|
1010
|
+
/**
|
|
1011
|
+
* Comprehensive page state analysis
|
|
1012
|
+
*/
|
|
1013
|
+
'analysis'?: string;
|
|
1014
|
+
/**
|
|
1015
|
+
* AI model used for analysis
|
|
1016
|
+
*/
|
|
1017
|
+
'model'?: string;
|
|
1018
|
+
/**
|
|
1019
|
+
* URL to the screenshot
|
|
1020
|
+
*/
|
|
1021
|
+
'screenshot_url'?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Path to the screenshot file
|
|
1024
|
+
*/
|
|
1025
|
+
'screenshot_path'?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* Error message if failed
|
|
1028
|
+
*/
|
|
1029
|
+
'error'?: string;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* BrowserApi - axios parameter creator
|
|
1034
|
+
*/
|
|
1035
|
+
export const BrowserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1036
|
+
return {
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @summary Check if element exists or is visible
|
|
1040
|
+
* @param {string} browserId Unique browser identifier
|
|
1041
|
+
* @param {CheckElementRequest} payload
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
checkElement: async (browserId: string, payload: CheckElementRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1046
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1047
|
+
assertParamExists('checkElement', 'browserId', browserId)
|
|
1048
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1049
|
+
assertParamExists('checkElement', 'payload', payload)
|
|
1050
|
+
const localVarPath = `/browser/{browser_id}/check_element`
|
|
1051
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1052
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1053
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1054
|
+
let baseOptions;
|
|
1055
|
+
if (configuration) {
|
|
1056
|
+
baseOptions = configuration.baseOptions;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1060
|
+
const localVarHeaderParameter = {} as any;
|
|
1061
|
+
const localVarQueryParameter = {} as any;
|
|
1062
|
+
|
|
1063
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1064
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1065
|
+
|
|
1066
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1067
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1068
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1069
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1070
|
+
|
|
1071
|
+
return {
|
|
1072
|
+
url: toPathString(localVarUrlObj),
|
|
1073
|
+
options: localVarRequestOptions,
|
|
1074
|
+
};
|
|
1075
|
+
},
|
|
1076
|
+
/**
|
|
1077
|
+
* Use if_visible=true to only click if visible.
|
|
1078
|
+
* @summary Click element
|
|
1079
|
+
* @param {string} browserId Unique browser identifier
|
|
1080
|
+
* @param {ClickRequest} payload
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
*/
|
|
1084
|
+
click: async (browserId: string, payload: ClickRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1085
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1086
|
+
assertParamExists('click', 'browserId', browserId)
|
|
1087
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1088
|
+
assertParamExists('click', 'payload', payload)
|
|
1089
|
+
const localVarPath = `/browser/{browser_id}/click`
|
|
1090
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1091
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1092
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1093
|
+
let baseOptions;
|
|
1094
|
+
if (configuration) {
|
|
1095
|
+
baseOptions = configuration.baseOptions;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1099
|
+
const localVarHeaderParameter = {} as any;
|
|
1100
|
+
const localVarQueryParameter = {} as any;
|
|
1101
|
+
|
|
1102
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1103
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1104
|
+
|
|
1105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1107
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1108
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1109
|
+
|
|
1110
|
+
return {
|
|
1111
|
+
url: toPathString(localVarUrlObj),
|
|
1112
|
+
options: localVarRequestOptions,
|
|
1113
|
+
};
|
|
1114
|
+
},
|
|
1115
|
+
/**
|
|
1116
|
+
*
|
|
1117
|
+
* @summary Close all active browser instances
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
closeAllBrowsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1122
|
+
const localVarPath = `/browser/close_all`;
|
|
1123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1125
|
+
let baseOptions;
|
|
1126
|
+
if (configuration) {
|
|
1127
|
+
baseOptions = configuration.baseOptions;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1131
|
+
const localVarHeaderParameter = {} as any;
|
|
1132
|
+
const localVarQueryParameter = {} as any;
|
|
1133
|
+
|
|
1134
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1135
|
+
|
|
1136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1138
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1139
|
+
|
|
1140
|
+
return {
|
|
1141
|
+
url: toPathString(localVarUrlObj),
|
|
1142
|
+
options: localVarRequestOptions,
|
|
1143
|
+
};
|
|
1144
|
+
},
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @summary Close a browser instance
|
|
1148
|
+
* @param {string} browserId Unique browser identifier
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
*/
|
|
1152
|
+
closeBrowser: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1153
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1154
|
+
assertParamExists('closeBrowser', 'browserId', browserId)
|
|
1155
|
+
const localVarPath = `/browser/{browser_id}/close`
|
|
1156
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1159
|
+
let baseOptions;
|
|
1160
|
+
if (configuration) {
|
|
1161
|
+
baseOptions = configuration.baseOptions;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1165
|
+
const localVarHeaderParameter = {} as any;
|
|
1166
|
+
const localVarQueryParameter = {} as any;
|
|
1167
|
+
|
|
1168
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1169
|
+
|
|
1170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1173
|
+
|
|
1174
|
+
return {
|
|
1175
|
+
url: toPathString(localVarUrlObj),
|
|
1176
|
+
options: localVarRequestOptions,
|
|
1177
|
+
};
|
|
1178
|
+
},
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @summary Get or clear console logs
|
|
1182
|
+
* @param {string} browserId Unique browser identifier
|
|
1183
|
+
* @param {ConsoleLogsRequest} payload
|
|
1184
|
+
* @param {*} [options] Override http request option.
|
|
1185
|
+
* @throws {RequiredError}
|
|
1186
|
+
*/
|
|
1187
|
+
consoleLogs: async (browserId: string, payload: ConsoleLogsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1188
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1189
|
+
assertParamExists('consoleLogs', 'browserId', browserId)
|
|
1190
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1191
|
+
assertParamExists('consoleLogs', 'payload', payload)
|
|
1192
|
+
const localVarPath = `/browser/{browser_id}/console`
|
|
1193
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1194
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1195
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1196
|
+
let baseOptions;
|
|
1197
|
+
if (configuration) {
|
|
1198
|
+
baseOptions = configuration.baseOptions;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1202
|
+
const localVarHeaderParameter = {} as any;
|
|
1203
|
+
const localVarQueryParameter = {} as any;
|
|
1204
|
+
|
|
1205
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1206
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1207
|
+
|
|
1208
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1209
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1210
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1211
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1212
|
+
|
|
1213
|
+
return {
|
|
1214
|
+
url: toPathString(localVarUrlObj),
|
|
1215
|
+
options: localVarRequestOptions,
|
|
1216
|
+
};
|
|
1217
|
+
},
|
|
1218
|
+
/**
|
|
1219
|
+
*
|
|
1220
|
+
* @summary Create a new browser instance
|
|
1221
|
+
* @param {BrowserConfig} payload
|
|
1222
|
+
* @param {*} [options] Override http request option.
|
|
1223
|
+
* @throws {RequiredError}
|
|
1224
|
+
*/
|
|
1225
|
+
createBrowser: async (payload: BrowserConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1226
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1227
|
+
assertParamExists('createBrowser', 'payload', payload)
|
|
1228
|
+
const localVarPath = `/browser/create`;
|
|
1229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1230
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1231
|
+
let baseOptions;
|
|
1232
|
+
if (configuration) {
|
|
1233
|
+
baseOptions = configuration.baseOptions;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1237
|
+
const localVarHeaderParameter = {} as any;
|
|
1238
|
+
const localVarQueryParameter = {} as any;
|
|
1239
|
+
|
|
1240
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1241
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1242
|
+
|
|
1243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1245
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1246
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1247
|
+
|
|
1248
|
+
return {
|
|
1249
|
+
url: toPathString(localVarUrlObj),
|
|
1250
|
+
options: localVarRequestOptions,
|
|
1251
|
+
};
|
|
1252
|
+
},
|
|
1253
|
+
/**
|
|
1254
|
+
*
|
|
1255
|
+
* @summary Close and remove a browser instance
|
|
1256
|
+
* @param {string} browserId Unique browser identifier
|
|
1257
|
+
* @param {*} [options] Override http request option.
|
|
1258
|
+
* @throws {RequiredError}
|
|
1259
|
+
*/
|
|
1260
|
+
deleteBrowser: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1261
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1262
|
+
assertParamExists('deleteBrowser', 'browserId', browserId)
|
|
1263
|
+
const localVarPath = `/browser/{browser_id}`
|
|
1264
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1266
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1267
|
+
let baseOptions;
|
|
1268
|
+
if (configuration) {
|
|
1269
|
+
baseOptions = configuration.baseOptions;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1273
|
+
const localVarHeaderParameter = {} as any;
|
|
1274
|
+
const localVarQueryParameter = {} as any;
|
|
1275
|
+
|
|
1276
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1277
|
+
|
|
1278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1280
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1281
|
+
|
|
1282
|
+
return {
|
|
1283
|
+
url: toPathString(localVarUrlObj),
|
|
1284
|
+
options: localVarRequestOptions,
|
|
1285
|
+
};
|
|
1286
|
+
},
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @summary Detect element coordinates using AI vision
|
|
1290
|
+
* @param {string} browserId Unique browser identifier
|
|
1291
|
+
* @param {DetectCoordinatesRequest} payload
|
|
1292
|
+
* @param {*} [options] Override http request option.
|
|
1293
|
+
* @throws {RequiredError}
|
|
1294
|
+
*/
|
|
1295
|
+
detectCoordinates: async (browserId: string, payload: DetectCoordinatesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1296
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1297
|
+
assertParamExists('detectCoordinates', 'browserId', browserId)
|
|
1298
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1299
|
+
assertParamExists('detectCoordinates', 'payload', payload)
|
|
1300
|
+
const localVarPath = `/browser/{browser_id}/detect_coordinates`
|
|
1301
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1303
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1304
|
+
let baseOptions;
|
|
1305
|
+
if (configuration) {
|
|
1306
|
+
baseOptions = configuration.baseOptions;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1310
|
+
const localVarHeaderParameter = {} as any;
|
|
1311
|
+
const localVarQueryParameter = {} as any;
|
|
1312
|
+
|
|
1313
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1314
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1315
|
+
|
|
1316
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1317
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1318
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1319
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1320
|
+
|
|
1321
|
+
return {
|
|
1322
|
+
url: toPathString(localVarUrlObj),
|
|
1323
|
+
options: localVarRequestOptions,
|
|
1324
|
+
};
|
|
1325
|
+
},
|
|
1326
|
+
/**
|
|
1327
|
+
*
|
|
1328
|
+
* @summary Manage browser dialogs: get, accept, or dismiss
|
|
1329
|
+
* @param {string} browserId Unique browser identifier
|
|
1330
|
+
* @param {CombinedDialogRequest} payload
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
dialog: async (browserId: string, payload: CombinedDialogRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1335
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1336
|
+
assertParamExists('dialog', 'browserId', browserId)
|
|
1337
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1338
|
+
assertParamExists('dialog', 'payload', payload)
|
|
1339
|
+
const localVarPath = `/browser/{browser_id}/dialog`
|
|
1340
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1341
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1342
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1343
|
+
let baseOptions;
|
|
1344
|
+
if (configuration) {
|
|
1345
|
+
baseOptions = configuration.baseOptions;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1349
|
+
const localVarHeaderParameter = {} as any;
|
|
1350
|
+
const localVarQueryParameter = {} as any;
|
|
1351
|
+
|
|
1352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1353
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1354
|
+
|
|
1355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1357
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1358
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1359
|
+
|
|
1360
|
+
return {
|
|
1361
|
+
url: toPathString(localVarUrlObj),
|
|
1362
|
+
options: localVarRequestOptions,
|
|
1363
|
+
};
|
|
1364
|
+
},
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @summary Manage device emulation: set, clear, or list_devices
|
|
1368
|
+
* @param {string} browserId Unique browser identifier
|
|
1369
|
+
* @param {CombinedEmulateRequest} payload
|
|
1370
|
+
* @param {*} [options] Override http request option.
|
|
1371
|
+
* @throws {RequiredError}
|
|
1372
|
+
*/
|
|
1373
|
+
emulate: async (browserId: string, payload: CombinedEmulateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1374
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1375
|
+
assertParamExists('emulate', 'browserId', browserId)
|
|
1376
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1377
|
+
assertParamExists('emulate', 'payload', payload)
|
|
1378
|
+
const localVarPath = `/browser/{browser_id}/emulate`
|
|
1379
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1381
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1382
|
+
let baseOptions;
|
|
1383
|
+
if (configuration) {
|
|
1384
|
+
baseOptions = configuration.baseOptions;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1388
|
+
const localVarHeaderParameter = {} as any;
|
|
1389
|
+
const localVarQueryParameter = {} as any;
|
|
1390
|
+
|
|
1391
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1392
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1393
|
+
|
|
1394
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1396
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1397
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1398
|
+
|
|
1399
|
+
return {
|
|
1400
|
+
url: toPathString(localVarUrlObj),
|
|
1401
|
+
options: localVarRequestOptions,
|
|
1402
|
+
};
|
|
1403
|
+
},
|
|
1404
|
+
/**
|
|
1405
|
+
*
|
|
1406
|
+
* @summary Execute JavaScript
|
|
1407
|
+
* @param {string} browserId Unique browser identifier
|
|
1408
|
+
* @param {ExecuteRequest} payload
|
|
1409
|
+
* @param {*} [options] Override http request option.
|
|
1410
|
+
* @throws {RequiredError}
|
|
1411
|
+
*/
|
|
1412
|
+
executeScript: async (browserId: string, payload: ExecuteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1413
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1414
|
+
assertParamExists('executeScript', 'browserId', browserId)
|
|
1415
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1416
|
+
assertParamExists('executeScript', 'payload', payload)
|
|
1417
|
+
const localVarPath = `/browser/{browser_id}/execute`
|
|
1418
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1420
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1421
|
+
let baseOptions;
|
|
1422
|
+
if (configuration) {
|
|
1423
|
+
baseOptions = configuration.baseOptions;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1427
|
+
const localVarHeaderParameter = {} as any;
|
|
1428
|
+
const localVarQueryParameter = {} as any;
|
|
1429
|
+
|
|
1430
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1431
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1432
|
+
|
|
1433
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1434
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1435
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1436
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1437
|
+
|
|
1438
|
+
return {
|
|
1439
|
+
url: toPathString(localVarUrlObj),
|
|
1440
|
+
options: localVarRequestOptions,
|
|
1441
|
+
};
|
|
1442
|
+
},
|
|
1443
|
+
/**
|
|
1444
|
+
*
|
|
1445
|
+
* @summary Fill multiple form fields
|
|
1446
|
+
* @param {string} browserId Unique browser identifier
|
|
1447
|
+
* @param {FillFormRequest} payload
|
|
1448
|
+
* @param {*} [options] Override http request option.
|
|
1449
|
+
* @throws {RequiredError}
|
|
1450
|
+
*/
|
|
1451
|
+
fillForm: async (browserId: string, payload: FillFormRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1452
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1453
|
+
assertParamExists('fillForm', 'browserId', browserId)
|
|
1454
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1455
|
+
assertParamExists('fillForm', 'payload', payload)
|
|
1456
|
+
const localVarPath = `/browser/{browser_id}/fill_form`
|
|
1457
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1459
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1460
|
+
let baseOptions;
|
|
1461
|
+
if (configuration) {
|
|
1462
|
+
baseOptions = configuration.baseOptions;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1466
|
+
const localVarHeaderParameter = {} as any;
|
|
1467
|
+
const localVarQueryParameter = {} as any;
|
|
1468
|
+
|
|
1469
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1470
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1471
|
+
|
|
1472
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1474
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1475
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1476
|
+
|
|
1477
|
+
return {
|
|
1478
|
+
url: toPathString(localVarUrlObj),
|
|
1479
|
+
options: localVarRequestOptions,
|
|
1480
|
+
};
|
|
1481
|
+
},
|
|
1482
|
+
/**
|
|
1483
|
+
*
|
|
1484
|
+
* @summary Get browser instance details
|
|
1485
|
+
* @param {string} browserId Unique browser identifier
|
|
1486
|
+
* @param {*} [options] Override http request option.
|
|
1487
|
+
* @throws {RequiredError}
|
|
1488
|
+
*/
|
|
1489
|
+
getBrowser: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1490
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1491
|
+
assertParamExists('getBrowser', 'browserId', browserId)
|
|
1492
|
+
const localVarPath = `/browser/{browser_id}`
|
|
1493
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1494
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1495
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1496
|
+
let baseOptions;
|
|
1497
|
+
if (configuration) {
|
|
1498
|
+
baseOptions = configuration.baseOptions;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1502
|
+
const localVarHeaderParameter = {} as any;
|
|
1503
|
+
const localVarQueryParameter = {} as any;
|
|
1504
|
+
|
|
1505
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1506
|
+
|
|
1507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1509
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1510
|
+
|
|
1511
|
+
return {
|
|
1512
|
+
url: toPathString(localVarUrlObj),
|
|
1513
|
+
options: localVarRequestOptions,
|
|
1514
|
+
};
|
|
1515
|
+
},
|
|
1516
|
+
/**
|
|
1517
|
+
*
|
|
1518
|
+
* @summary Get browser status
|
|
1519
|
+
* @param {string} browserId Unique browser identifier
|
|
1520
|
+
* @param {*} [options] Override http request option.
|
|
1521
|
+
* @throws {RequiredError}
|
|
1522
|
+
*/
|
|
1523
|
+
getBrowserStatus: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1524
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1525
|
+
assertParamExists('getBrowserStatus', 'browserId', browserId)
|
|
1526
|
+
const localVarPath = `/browser/{browser_id}/status`
|
|
1527
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1528
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1529
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1530
|
+
let baseOptions;
|
|
1531
|
+
if (configuration) {
|
|
1532
|
+
baseOptions = configuration.baseOptions;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1536
|
+
const localVarHeaderParameter = {} as any;
|
|
1537
|
+
const localVarQueryParameter = {} as any;
|
|
1538
|
+
|
|
1539
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1540
|
+
|
|
1541
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1542
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1543
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1544
|
+
|
|
1545
|
+
return {
|
|
1546
|
+
url: toPathString(localVarUrlObj),
|
|
1547
|
+
options: localVarRequestOptions,
|
|
1548
|
+
};
|
|
1549
|
+
},
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* @summary Get page HTML content
|
|
1553
|
+
* @param {string} browserId Unique browser identifier
|
|
1554
|
+
* @param {*} [options] Override http request option.
|
|
1555
|
+
* @throws {RequiredError}
|
|
1556
|
+
*/
|
|
1557
|
+
getContent: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1558
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1559
|
+
assertParamExists('getContent', 'browserId', browserId)
|
|
1560
|
+
const localVarPath = `/browser/{browser_id}/content`
|
|
1561
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1562
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1563
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1564
|
+
let baseOptions;
|
|
1565
|
+
if (configuration) {
|
|
1566
|
+
baseOptions = configuration.baseOptions;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1570
|
+
const localVarHeaderParameter = {} as any;
|
|
1571
|
+
const localVarQueryParameter = {} as any;
|
|
1572
|
+
|
|
1573
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1574
|
+
|
|
1575
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1576
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1577
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1578
|
+
|
|
1579
|
+
return {
|
|
1580
|
+
url: toPathString(localVarUrlObj),
|
|
1581
|
+
options: localVarRequestOptions,
|
|
1582
|
+
};
|
|
1583
|
+
},
|
|
1584
|
+
/**
|
|
1585
|
+
*
|
|
1586
|
+
* @summary Get element text, attribute, or property
|
|
1587
|
+
* @param {string} browserId Unique browser identifier
|
|
1588
|
+
* @param {ElementDataRequest} payload
|
|
1589
|
+
* @param {*} [options] Override http request option.
|
|
1590
|
+
* @throws {RequiredError}
|
|
1591
|
+
*/
|
|
1592
|
+
getElementData: async (browserId: string, payload: ElementDataRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1593
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1594
|
+
assertParamExists('getElementData', 'browserId', browserId)
|
|
1595
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1596
|
+
assertParamExists('getElementData', 'payload', payload)
|
|
1597
|
+
const localVarPath = `/browser/{browser_id}/element_data`
|
|
1598
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1599
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1600
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1601
|
+
let baseOptions;
|
|
1602
|
+
if (configuration) {
|
|
1603
|
+
baseOptions = configuration.baseOptions;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1607
|
+
const localVarHeaderParameter = {} as any;
|
|
1608
|
+
const localVarQueryParameter = {} as any;
|
|
1609
|
+
|
|
1610
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1611
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1612
|
+
|
|
1613
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1615
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1616
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1617
|
+
|
|
1618
|
+
return {
|
|
1619
|
+
url: toPathString(localVarUrlObj),
|
|
1620
|
+
options: localVarRequestOptions,
|
|
1621
|
+
};
|
|
1622
|
+
},
|
|
1623
|
+
/**
|
|
1624
|
+
*
|
|
1625
|
+
* @summary Get browser pool status
|
|
1626
|
+
* @param {*} [options] Override http request option.
|
|
1627
|
+
* @throws {RequiredError}
|
|
1628
|
+
*/
|
|
1629
|
+
getPoolStatus: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1630
|
+
const localVarPath = `/browser/pool/status`;
|
|
1631
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1632
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1633
|
+
let baseOptions;
|
|
1634
|
+
if (configuration) {
|
|
1635
|
+
baseOptions = configuration.baseOptions;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1639
|
+
const localVarHeaderParameter = {} as any;
|
|
1640
|
+
const localVarQueryParameter = {} as any;
|
|
1641
|
+
|
|
1642
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1643
|
+
|
|
1644
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1645
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1646
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1647
|
+
|
|
1648
|
+
return {
|
|
1649
|
+
url: toPathString(localVarUrlObj),
|
|
1650
|
+
options: localVarRequestOptions,
|
|
1651
|
+
};
|
|
1652
|
+
},
|
|
1653
|
+
/**
|
|
1654
|
+
*
|
|
1655
|
+
* @summary Get current page URL
|
|
1656
|
+
* @param {string} browserId Unique browser identifier
|
|
1657
|
+
* @param {*} [options] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
*/
|
|
1660
|
+
getUrl: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1661
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1662
|
+
assertParamExists('getUrl', 'browserId', browserId)
|
|
1663
|
+
const localVarPath = `/browser/{browser_id}/url`
|
|
1664
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1665
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1666
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1667
|
+
let baseOptions;
|
|
1668
|
+
if (configuration) {
|
|
1669
|
+
baseOptions = configuration.baseOptions;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1673
|
+
const localVarHeaderParameter = {} as any;
|
|
1674
|
+
const localVarQueryParameter = {} as any;
|
|
1675
|
+
|
|
1676
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1677
|
+
|
|
1678
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1680
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1681
|
+
|
|
1682
|
+
return {
|
|
1683
|
+
url: toPathString(localVarUrlObj),
|
|
1684
|
+
options: localVarRequestOptions,
|
|
1685
|
+
};
|
|
1686
|
+
},
|
|
1687
|
+
/**
|
|
1688
|
+
*
|
|
1689
|
+
* @summary Click using selector or screen coordinates
|
|
1690
|
+
* @param {string} browserId Unique browser identifier
|
|
1691
|
+
* @param {CombinedGuiClickRequest} payload
|
|
1692
|
+
* @param {*} [options] Override http request option.
|
|
1693
|
+
* @throws {RequiredError}
|
|
1694
|
+
*/
|
|
1695
|
+
guiClick: async (browserId: string, payload: CombinedGuiClickRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1696
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1697
|
+
assertParamExists('guiClick', 'browserId', browserId)
|
|
1698
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1699
|
+
assertParamExists('guiClick', 'payload', payload)
|
|
1700
|
+
const localVarPath = `/browser/{browser_id}/gui_click`
|
|
1701
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1702
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1703
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1704
|
+
let baseOptions;
|
|
1705
|
+
if (configuration) {
|
|
1706
|
+
baseOptions = configuration.baseOptions;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1710
|
+
const localVarHeaderParameter = {} as any;
|
|
1711
|
+
const localVarQueryParameter = {} as any;
|
|
1712
|
+
|
|
1713
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1714
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1715
|
+
|
|
1716
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1717
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1718
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1719
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1720
|
+
|
|
1721
|
+
return {
|
|
1722
|
+
url: toPathString(localVarUrlObj),
|
|
1723
|
+
options: localVarRequestOptions,
|
|
1724
|
+
};
|
|
1725
|
+
},
|
|
1726
|
+
/**
|
|
1727
|
+
*
|
|
1728
|
+
* @summary Execute history action: back, forward, or refresh
|
|
1729
|
+
* @param {string} browserId Unique browser identifier
|
|
1730
|
+
* @param {HistoryRequest} payload
|
|
1731
|
+
* @param {*} [options] Override http request option.
|
|
1732
|
+
* @throws {RequiredError}
|
|
1733
|
+
*/
|
|
1734
|
+
history: async (browserId: string, payload: HistoryRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1735
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1736
|
+
assertParamExists('history', 'browserId', browserId)
|
|
1737
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1738
|
+
assertParamExists('history', 'payload', payload)
|
|
1739
|
+
const localVarPath = `/browser/{browser_id}/history`
|
|
1740
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1741
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1742
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1743
|
+
let baseOptions;
|
|
1744
|
+
if (configuration) {
|
|
1745
|
+
baseOptions = configuration.baseOptions;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1749
|
+
const localVarHeaderParameter = {} as any;
|
|
1750
|
+
const localVarQueryParameter = {} as any;
|
|
1751
|
+
|
|
1752
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1753
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1754
|
+
|
|
1755
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1756
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1757
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1758
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1759
|
+
|
|
1760
|
+
return {
|
|
1761
|
+
url: toPathString(localVarUrlObj),
|
|
1762
|
+
options: localVarRequestOptions,
|
|
1763
|
+
};
|
|
1764
|
+
},
|
|
1765
|
+
/**
|
|
1766
|
+
*
|
|
1767
|
+
* @summary List all active browser instances
|
|
1768
|
+
* @param {*} [options] Override http request option.
|
|
1769
|
+
* @throws {RequiredError}
|
|
1770
|
+
*/
|
|
1771
|
+
listBrowsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1772
|
+
const localVarPath = `/browser/list`;
|
|
1773
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1774
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1775
|
+
let baseOptions;
|
|
1776
|
+
if (configuration) {
|
|
1777
|
+
baseOptions = configuration.baseOptions;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1781
|
+
const localVarHeaderParameter = {} as any;
|
|
1782
|
+
const localVarQueryParameter = {} as any;
|
|
1783
|
+
|
|
1784
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1785
|
+
|
|
1786
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1788
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1789
|
+
|
|
1790
|
+
return {
|
|
1791
|
+
url: toPathString(localVarUrlObj),
|
|
1792
|
+
options: localVarRequestOptions,
|
|
1793
|
+
};
|
|
1794
|
+
},
|
|
1795
|
+
/**
|
|
1796
|
+
*
|
|
1797
|
+
* @summary Mouse action: hover or drag
|
|
1798
|
+
* @param {string} browserId Unique browser identifier
|
|
1799
|
+
* @param {MouseRequest} payload
|
|
1800
|
+
* @param {*} [options] Override http request option.
|
|
1801
|
+
* @throws {RequiredError}
|
|
1802
|
+
*/
|
|
1803
|
+
mouse: async (browserId: string, payload: MouseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1804
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1805
|
+
assertParamExists('mouse', 'browserId', browserId)
|
|
1806
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1807
|
+
assertParamExists('mouse', 'payload', payload)
|
|
1808
|
+
const localVarPath = `/browser/{browser_id}/mouse`
|
|
1809
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1810
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1811
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1812
|
+
let baseOptions;
|
|
1813
|
+
if (configuration) {
|
|
1814
|
+
baseOptions = configuration.baseOptions;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1818
|
+
const localVarHeaderParameter = {} as any;
|
|
1819
|
+
const localVarQueryParameter = {} as any;
|
|
1820
|
+
|
|
1821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1822
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1823
|
+
|
|
1824
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1826
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1827
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1828
|
+
|
|
1829
|
+
return {
|
|
1830
|
+
url: toPathString(localVarUrlObj),
|
|
1831
|
+
options: localVarRequestOptions,
|
|
1832
|
+
};
|
|
1833
|
+
},
|
|
1834
|
+
/**
|
|
1835
|
+
*
|
|
1836
|
+
* @summary Navigate to a URL
|
|
1837
|
+
* @param {string} browserId Unique browser identifier
|
|
1838
|
+
* @param {NavigateRequest} payload
|
|
1839
|
+
* @param {*} [options] Override http request option.
|
|
1840
|
+
* @throws {RequiredError}
|
|
1841
|
+
*/
|
|
1842
|
+
navigateBrowser: async (browserId: string, payload: NavigateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1843
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1844
|
+
assertParamExists('navigateBrowser', 'browserId', browserId)
|
|
1845
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1846
|
+
assertParamExists('navigateBrowser', 'payload', payload)
|
|
1847
|
+
const localVarPath = `/browser/{browser_id}/navigate`
|
|
1848
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1849
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1850
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1851
|
+
let baseOptions;
|
|
1852
|
+
if (configuration) {
|
|
1853
|
+
baseOptions = configuration.baseOptions;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1857
|
+
const localVarHeaderParameter = {} as any;
|
|
1858
|
+
const localVarQueryParameter = {} as any;
|
|
1859
|
+
|
|
1860
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1861
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1862
|
+
|
|
1863
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1864
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1865
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1866
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1867
|
+
|
|
1868
|
+
return {
|
|
1869
|
+
url: toPathString(localVarUrlObj),
|
|
1870
|
+
options: localVarRequestOptions,
|
|
1871
|
+
};
|
|
1872
|
+
},
|
|
1873
|
+
/**
|
|
1874
|
+
*
|
|
1875
|
+
* @summary Get or clear network logs
|
|
1876
|
+
* @param {string} browserId Unique browser identifier
|
|
1877
|
+
* @param {NetworkLogsRequest} payload
|
|
1878
|
+
* @param {*} [options] Override http request option.
|
|
1879
|
+
* @throws {RequiredError}
|
|
1880
|
+
*/
|
|
1881
|
+
networkLogs: async (browserId: string, payload: NetworkLogsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1882
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1883
|
+
assertParamExists('networkLogs', 'browserId', browserId)
|
|
1884
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1885
|
+
assertParamExists('networkLogs', 'payload', payload)
|
|
1886
|
+
const localVarPath = `/browser/{browser_id}/network`
|
|
1887
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1890
|
+
let baseOptions;
|
|
1891
|
+
if (configuration) {
|
|
1892
|
+
baseOptions = configuration.baseOptions;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1896
|
+
const localVarHeaderParameter = {} as any;
|
|
1897
|
+
const localVarQueryParameter = {} as any;
|
|
1898
|
+
|
|
1899
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1900
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1901
|
+
|
|
1902
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1904
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1905
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1906
|
+
|
|
1907
|
+
return {
|
|
1908
|
+
url: toPathString(localVarUrlObj),
|
|
1909
|
+
options: localVarRequestOptions,
|
|
1910
|
+
};
|
|
1911
|
+
},
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @summary Manage performance: start_trace, stop_trace, metrics, or analyze
|
|
1915
|
+
* @param {string} browserId Unique browser identifier
|
|
1916
|
+
* @param {PerformanceRequest} payload
|
|
1917
|
+
* @param {*} [options] Override http request option.
|
|
1918
|
+
* @throws {RequiredError}
|
|
1919
|
+
*/
|
|
1920
|
+
performance: async (browserId: string, payload: PerformanceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1921
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1922
|
+
assertParamExists('performance', 'browserId', browserId)
|
|
1923
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1924
|
+
assertParamExists('performance', 'payload', payload)
|
|
1925
|
+
const localVarPath = `/browser/{browser_id}/performance`
|
|
1926
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1927
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1928
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1929
|
+
let baseOptions;
|
|
1930
|
+
if (configuration) {
|
|
1931
|
+
baseOptions = configuration.baseOptions;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1935
|
+
const localVarHeaderParameter = {} as any;
|
|
1936
|
+
const localVarQueryParameter = {} as any;
|
|
1937
|
+
|
|
1938
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1939
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1940
|
+
|
|
1941
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1942
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1943
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1944
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1945
|
+
|
|
1946
|
+
return {
|
|
1947
|
+
url: toPathString(localVarUrlObj),
|
|
1948
|
+
options: localVarRequestOptions,
|
|
1949
|
+
};
|
|
1950
|
+
},
|
|
1951
|
+
/**
|
|
1952
|
+
*
|
|
1953
|
+
* @summary Press keys on an element
|
|
1954
|
+
* @param {string} browserId Unique browser identifier
|
|
1955
|
+
* @param {PressKeysRequest} payload
|
|
1956
|
+
* @param {*} [options] Override http request option.
|
|
1957
|
+
* @throws {RequiredError}
|
|
1958
|
+
*/
|
|
1959
|
+
pressKeys: async (browserId: string, payload: PressKeysRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1960
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1961
|
+
assertParamExists('pressKeys', 'browserId', browserId)
|
|
1962
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1963
|
+
assertParamExists('pressKeys', 'payload', payload)
|
|
1964
|
+
const localVarPath = `/browser/{browser_id}/press_keys`
|
|
1965
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1966
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1967
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1968
|
+
let baseOptions;
|
|
1969
|
+
if (configuration) {
|
|
1970
|
+
baseOptions = configuration.baseOptions;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1974
|
+
const localVarHeaderParameter = {} as any;
|
|
1975
|
+
const localVarQueryParameter = {} as any;
|
|
1976
|
+
|
|
1977
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1978
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1979
|
+
|
|
1980
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1981
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1982
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1983
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1984
|
+
|
|
1985
|
+
return {
|
|
1986
|
+
url: toPathString(localVarUrlObj),
|
|
1987
|
+
options: localVarRequestOptions,
|
|
1988
|
+
};
|
|
1989
|
+
},
|
|
1990
|
+
/**
|
|
1991
|
+
*
|
|
1992
|
+
* @summary Resize viewport
|
|
1993
|
+
* @param {string} browserId Unique browser identifier
|
|
1994
|
+
* @param {ResizeRequest} payload
|
|
1995
|
+
* @param {*} [options] Override http request option.
|
|
1996
|
+
* @throws {RequiredError}
|
|
1997
|
+
*/
|
|
1998
|
+
resize: async (browserId: string, payload: ResizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1999
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2000
|
+
assertParamExists('resize', 'browserId', browserId)
|
|
2001
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2002
|
+
assertParamExists('resize', 'payload', payload)
|
|
2003
|
+
const localVarPath = `/browser/{browser_id}/resize`
|
|
2004
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2005
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2006
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2007
|
+
let baseOptions;
|
|
2008
|
+
if (configuration) {
|
|
2009
|
+
baseOptions = configuration.baseOptions;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2013
|
+
const localVarHeaderParameter = {} as any;
|
|
2014
|
+
const localVarQueryParameter = {} as any;
|
|
2015
|
+
|
|
2016
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2017
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2018
|
+
|
|
2019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2021
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2022
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2023
|
+
|
|
2024
|
+
return {
|
|
2025
|
+
url: toPathString(localVarUrlObj),
|
|
2026
|
+
options: localVarRequestOptions,
|
|
2027
|
+
};
|
|
2028
|
+
},
|
|
2029
|
+
/**
|
|
2030
|
+
*
|
|
2031
|
+
* @summary Scroll to element/coordinates (absolute) or by delta (relative)
|
|
2032
|
+
* @param {string} browserId Unique browser identifier
|
|
2033
|
+
* @param {CombinedScrollRequest} payload
|
|
2034
|
+
* @param {*} [options] Override http request option.
|
|
2035
|
+
* @throws {RequiredError}
|
|
2036
|
+
*/
|
|
2037
|
+
scroll: async (browserId: string, payload: CombinedScrollRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2038
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2039
|
+
assertParamExists('scroll', 'browserId', browserId)
|
|
2040
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2041
|
+
assertParamExists('scroll', 'payload', payload)
|
|
2042
|
+
const localVarPath = `/browser/{browser_id}/scroll`
|
|
2043
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2044
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2045
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2046
|
+
let baseOptions;
|
|
2047
|
+
if (configuration) {
|
|
2048
|
+
baseOptions = configuration.baseOptions;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2052
|
+
const localVarHeaderParameter = {} as any;
|
|
2053
|
+
const localVarQueryParameter = {} as any;
|
|
2054
|
+
|
|
2055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2056
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2057
|
+
|
|
2058
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2059
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2060
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2061
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2062
|
+
|
|
2063
|
+
return {
|
|
2064
|
+
url: toPathString(localVarUrlObj),
|
|
2065
|
+
options: localVarRequestOptions,
|
|
2066
|
+
};
|
|
2067
|
+
},
|
|
2068
|
+
/**
|
|
2069
|
+
*
|
|
2070
|
+
* @summary Select dropdown: select option or get options
|
|
2071
|
+
* @param {string} browserId Unique browser identifier
|
|
2072
|
+
* @param {SelectRequest} payload
|
|
2073
|
+
* @param {*} [options] Override http request option.
|
|
2074
|
+
* @throws {RequiredError}
|
|
2075
|
+
*/
|
|
2076
|
+
select: async (browserId: string, payload: SelectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2077
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2078
|
+
assertParamExists('select', 'browserId', browserId)
|
|
2079
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2080
|
+
assertParamExists('select', 'payload', payload)
|
|
2081
|
+
const localVarPath = `/browser/{browser_id}/select`
|
|
2082
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2083
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2084
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2085
|
+
let baseOptions;
|
|
2086
|
+
if (configuration) {
|
|
2087
|
+
baseOptions = configuration.baseOptions;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2091
|
+
const localVarHeaderParameter = {} as any;
|
|
2092
|
+
const localVarQueryParameter = {} as any;
|
|
2093
|
+
|
|
2094
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2095
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2096
|
+
|
|
2097
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2098
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2099
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2100
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2101
|
+
|
|
2102
|
+
return {
|
|
2103
|
+
url: toPathString(localVarUrlObj),
|
|
2104
|
+
options: localVarRequestOptions,
|
|
2105
|
+
};
|
|
2106
|
+
},
|
|
2107
|
+
/**
|
|
2108
|
+
*
|
|
2109
|
+
* @summary Manage browser tabs: list, new, switch, close, or current
|
|
2110
|
+
* @param {string} browserId Unique browser identifier
|
|
2111
|
+
* @param {TabsRequest} payload
|
|
2112
|
+
* @param {*} [options] Override http request option.
|
|
2113
|
+
* @throws {RequiredError}
|
|
2114
|
+
*/
|
|
2115
|
+
tabs: async (browserId: string, payload: TabsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2116
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2117
|
+
assertParamExists('tabs', 'browserId', browserId)
|
|
2118
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2119
|
+
assertParamExists('tabs', 'payload', payload)
|
|
2120
|
+
const localVarPath = `/browser/{browser_id}/tabs`
|
|
2121
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2124
|
+
let baseOptions;
|
|
2125
|
+
if (configuration) {
|
|
2126
|
+
baseOptions = configuration.baseOptions;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2130
|
+
const localVarHeaderParameter = {} as any;
|
|
2131
|
+
const localVarQueryParameter = {} as any;
|
|
2132
|
+
|
|
2133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2134
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2135
|
+
|
|
2136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2138
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2139
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2140
|
+
|
|
2141
|
+
return {
|
|
2142
|
+
url: toPathString(localVarUrlObj),
|
|
2143
|
+
options: localVarRequestOptions,
|
|
2144
|
+
};
|
|
2145
|
+
},
|
|
2146
|
+
/**
|
|
2147
|
+
*
|
|
2148
|
+
* @summary Take a screenshot
|
|
2149
|
+
* @param {string} browserId Unique browser identifier
|
|
2150
|
+
* @param {*} [options] Override http request option.
|
|
2151
|
+
* @throws {RequiredError}
|
|
2152
|
+
*/
|
|
2153
|
+
takeScreenshot: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2154
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2155
|
+
assertParamExists('takeScreenshot', 'browserId', browserId)
|
|
2156
|
+
const localVarPath = `/browser/{browser_id}/screenshot`
|
|
2157
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2158
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2159
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2160
|
+
let baseOptions;
|
|
2161
|
+
if (configuration) {
|
|
2162
|
+
baseOptions = configuration.baseOptions;
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2166
|
+
const localVarHeaderParameter = {} as any;
|
|
2167
|
+
const localVarQueryParameter = {} as any;
|
|
2168
|
+
|
|
2169
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2170
|
+
|
|
2171
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2173
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2174
|
+
|
|
2175
|
+
return {
|
|
2176
|
+
url: toPathString(localVarUrlObj),
|
|
2177
|
+
options: localVarRequestOptions,
|
|
2178
|
+
};
|
|
2179
|
+
},
|
|
2180
|
+
/**
|
|
2181
|
+
*
|
|
2182
|
+
* @summary Take DOM/accessibility snapshot
|
|
2183
|
+
* @param {string} browserId Unique browser identifier
|
|
2184
|
+
* @param {SnapshotRequest} payload
|
|
2185
|
+
* @param {*} [options] Override http request option.
|
|
2186
|
+
* @throws {RequiredError}
|
|
2187
|
+
*/
|
|
2188
|
+
takeSnapshot: async (browserId: string, payload: SnapshotRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2189
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2190
|
+
assertParamExists('takeSnapshot', 'browserId', browserId)
|
|
2191
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2192
|
+
assertParamExists('takeSnapshot', 'payload', payload)
|
|
2193
|
+
const localVarPath = `/browser/{browser_id}/snapshot`
|
|
2194
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2197
|
+
let baseOptions;
|
|
2198
|
+
if (configuration) {
|
|
2199
|
+
baseOptions = configuration.baseOptions;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2203
|
+
const localVarHeaderParameter = {} as any;
|
|
2204
|
+
const localVarQueryParameter = {} as any;
|
|
2205
|
+
|
|
2206
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2207
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2208
|
+
|
|
2209
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2211
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2212
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2213
|
+
|
|
2214
|
+
return {
|
|
2215
|
+
url: toPathString(localVarUrlObj),
|
|
2216
|
+
options: localVarRequestOptions,
|
|
2217
|
+
};
|
|
2218
|
+
},
|
|
2219
|
+
/**
|
|
2220
|
+
*
|
|
2221
|
+
* @summary Type text into an element
|
|
2222
|
+
* @param {string} browserId Unique browser identifier
|
|
2223
|
+
* @param {TypeRequest} payload
|
|
2224
|
+
* @param {*} [options] Override http request option.
|
|
2225
|
+
* @throws {RequiredError}
|
|
2226
|
+
*/
|
|
2227
|
+
typeText: async (browserId: string, payload: TypeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2228
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2229
|
+
assertParamExists('typeText', 'browserId', browserId)
|
|
2230
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2231
|
+
assertParamExists('typeText', 'payload', payload)
|
|
2232
|
+
const localVarPath = `/browser/{browser_id}/type`
|
|
2233
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2235
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2236
|
+
let baseOptions;
|
|
2237
|
+
if (configuration) {
|
|
2238
|
+
baseOptions = configuration.baseOptions;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2242
|
+
const localVarHeaderParameter = {} as any;
|
|
2243
|
+
const localVarQueryParameter = {} as any;
|
|
2244
|
+
|
|
2245
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2246
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2247
|
+
|
|
2248
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2250
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2251
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2252
|
+
|
|
2253
|
+
return {
|
|
2254
|
+
url: toPathString(localVarUrlObj),
|
|
2255
|
+
options: localVarRequestOptions,
|
|
2256
|
+
};
|
|
2257
|
+
},
|
|
2258
|
+
/**
|
|
2259
|
+
*
|
|
2260
|
+
* @summary Upload a file
|
|
2261
|
+
* @param {string} browserId Unique browser identifier
|
|
2262
|
+
* @param {UploadFileRequest} payload
|
|
2263
|
+
* @param {*} [options] Override http request option.
|
|
2264
|
+
* @throws {RequiredError}
|
|
2265
|
+
*/
|
|
2266
|
+
uploadFile: async (browserId: string, payload: UploadFileRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2267
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2268
|
+
assertParamExists('uploadFile', 'browserId', browserId)
|
|
2269
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2270
|
+
assertParamExists('uploadFile', 'payload', payload)
|
|
2271
|
+
const localVarPath = `/browser/{browser_id}/upload_file`
|
|
2272
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2274
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2275
|
+
let baseOptions;
|
|
2276
|
+
if (configuration) {
|
|
2277
|
+
baseOptions = configuration.baseOptions;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2281
|
+
const localVarHeaderParameter = {} as any;
|
|
2282
|
+
const localVarQueryParameter = {} as any;
|
|
2283
|
+
|
|
2284
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2285
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2286
|
+
|
|
2287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2289
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2290
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2291
|
+
|
|
2292
|
+
return {
|
|
2293
|
+
url: toPathString(localVarUrlObj),
|
|
2294
|
+
options: localVarRequestOptions,
|
|
2295
|
+
};
|
|
2296
|
+
},
|
|
2297
|
+
/**
|
|
2298
|
+
*
|
|
2299
|
+
* @summary Wait for element to become visible or hidden
|
|
2300
|
+
* @param {string} browserId Unique browser identifier
|
|
2301
|
+
* @param {WaitElementRequest} payload
|
|
2302
|
+
* @param {*} [options] Override http request option.
|
|
2303
|
+
* @throws {RequiredError}
|
|
2304
|
+
*/
|
|
2305
|
+
waitElement: async (browserId: string, payload: WaitElementRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2306
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2307
|
+
assertParamExists('waitElement', 'browserId', browserId)
|
|
2308
|
+
// verify required parameter 'payload' is not null or undefined
|
|
2309
|
+
assertParamExists('waitElement', 'payload', payload)
|
|
2310
|
+
const localVarPath = `/browser/{browser_id}/wait_element`
|
|
2311
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2312
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2313
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2314
|
+
let baseOptions;
|
|
2315
|
+
if (configuration) {
|
|
2316
|
+
baseOptions = configuration.baseOptions;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2320
|
+
const localVarHeaderParameter = {} as any;
|
|
2321
|
+
const localVarQueryParameter = {} as any;
|
|
2322
|
+
|
|
2323
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2324
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2325
|
+
|
|
2326
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2328
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2329
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2330
|
+
|
|
2331
|
+
return {
|
|
2332
|
+
url: toPathString(localVarUrlObj),
|
|
2333
|
+
options: localVarRequestOptions,
|
|
2334
|
+
};
|
|
2335
|
+
},
|
|
2336
|
+
/**
|
|
2337
|
+
*
|
|
2338
|
+
* @summary Analyze visible page content using AI
|
|
2339
|
+
* @param {string} browserId Unique browser identifier
|
|
2340
|
+
* @param {*} [options] Override http request option.
|
|
2341
|
+
* @throws {RequiredError}
|
|
2342
|
+
*/
|
|
2343
|
+
whatIsVisible: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2344
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
2345
|
+
assertParamExists('whatIsVisible', 'browserId', browserId)
|
|
2346
|
+
const localVarPath = `/browser/{browser_id}/what_is_visible`
|
|
2347
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2350
|
+
let baseOptions;
|
|
2351
|
+
if (configuration) {
|
|
2352
|
+
baseOptions = configuration.baseOptions;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2356
|
+
const localVarHeaderParameter = {} as any;
|
|
2357
|
+
const localVarQueryParameter = {} as any;
|
|
2358
|
+
|
|
2359
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2360
|
+
|
|
2361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2363
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2364
|
+
|
|
2365
|
+
return {
|
|
2366
|
+
url: toPathString(localVarUrlObj),
|
|
2367
|
+
options: localVarRequestOptions,
|
|
2368
|
+
};
|
|
2369
|
+
},
|
|
2370
|
+
}
|
|
2371
|
+
};
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* BrowserApi - functional programming interface
|
|
2375
|
+
*/
|
|
2376
|
+
export const BrowserApiFp = function(configuration?: Configuration) {
|
|
2377
|
+
const localVarAxiosParamCreator = BrowserApiAxiosParamCreator(configuration)
|
|
2378
|
+
return {
|
|
2379
|
+
/**
|
|
2380
|
+
*
|
|
2381
|
+
* @summary Check if element exists or is visible
|
|
2382
|
+
* @param {string} browserId Unique browser identifier
|
|
2383
|
+
* @param {CheckElementRequest} payload
|
|
2384
|
+
* @param {*} [options] Override http request option.
|
|
2385
|
+
* @throws {RequiredError}
|
|
2386
|
+
*/
|
|
2387
|
+
async checkElement(browserId: string, payload: CheckElementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkElement(browserId, payload, options);
|
|
2389
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2390
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.checkElement']?.[localVarOperationServerIndex]?.url;
|
|
2391
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2392
|
+
},
|
|
2393
|
+
/**
|
|
2394
|
+
* Use if_visible=true to only click if visible.
|
|
2395
|
+
* @summary Click element
|
|
2396
|
+
* @param {string} browserId Unique browser identifier
|
|
2397
|
+
* @param {ClickRequest} payload
|
|
2398
|
+
* @param {*} [options] Override http request option.
|
|
2399
|
+
* @throws {RequiredError}
|
|
2400
|
+
*/
|
|
2401
|
+
async click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionResult>> {
|
|
2402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.click(browserId, payload, options);
|
|
2403
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2404
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.click']?.[localVarOperationServerIndex]?.url;
|
|
2405
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2406
|
+
},
|
|
2407
|
+
/**
|
|
2408
|
+
*
|
|
2409
|
+
* @summary Close all active browser instances
|
|
2410
|
+
* @param {*} [options] Override http request option.
|
|
2411
|
+
* @throws {RequiredError}
|
|
2412
|
+
*/
|
|
2413
|
+
async closeAllBrowsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponse>> {
|
|
2414
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.closeAllBrowsers(options);
|
|
2415
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2416
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.closeAllBrowsers']?.[localVarOperationServerIndex]?.url;
|
|
2417
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2418
|
+
},
|
|
2419
|
+
/**
|
|
2420
|
+
*
|
|
2421
|
+
* @summary Close a browser instance
|
|
2422
|
+
* @param {string} browserId Unique browser identifier
|
|
2423
|
+
* @param {*} [options] Override http request option.
|
|
2424
|
+
* @throws {RequiredError}
|
|
2425
|
+
*/
|
|
2426
|
+
async closeBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponse>> {
|
|
2427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.closeBrowser(browserId, options);
|
|
2428
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2429
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.closeBrowser']?.[localVarOperationServerIndex]?.url;
|
|
2430
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2431
|
+
},
|
|
2432
|
+
/**
|
|
2433
|
+
*
|
|
2434
|
+
* @summary Get or clear console logs
|
|
2435
|
+
* @param {string} browserId Unique browser identifier
|
|
2436
|
+
* @param {ConsoleLogsRequest} payload
|
|
2437
|
+
* @param {*} [options] Override http request option.
|
|
2438
|
+
* @throws {RequiredError}
|
|
2439
|
+
*/
|
|
2440
|
+
async consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogsResponse>> {
|
|
2441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.consoleLogs(browserId, payload, options);
|
|
2442
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2443
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.consoleLogs']?.[localVarOperationServerIndex]?.url;
|
|
2444
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2445
|
+
},
|
|
2446
|
+
/**
|
|
2447
|
+
*
|
|
2448
|
+
* @summary Create a new browser instance
|
|
2449
|
+
* @param {BrowserConfig} payload
|
|
2450
|
+
* @param {*} [options] Override http request option.
|
|
2451
|
+
* @throws {RequiredError}
|
|
2452
|
+
*/
|
|
2453
|
+
async createBrowser(payload: BrowserConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrowserCreated>> {
|
|
2454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowser(payload, options);
|
|
2455
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2456
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.createBrowser']?.[localVarOperationServerIndex]?.url;
|
|
2457
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2458
|
+
},
|
|
2459
|
+
/**
|
|
2460
|
+
*
|
|
2461
|
+
* @summary Close and remove a browser instance
|
|
2462
|
+
* @param {string} browserId Unique browser identifier
|
|
2463
|
+
* @param {*} [options] Override http request option.
|
|
2464
|
+
* @throws {RequiredError}
|
|
2465
|
+
*/
|
|
2466
|
+
async deleteBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponse>> {
|
|
2467
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBrowser(browserId, options);
|
|
2468
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2469
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.deleteBrowser']?.[localVarOperationServerIndex]?.url;
|
|
2470
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2471
|
+
},
|
|
2472
|
+
/**
|
|
2473
|
+
*
|
|
2474
|
+
* @summary Detect element coordinates using AI vision
|
|
2475
|
+
* @param {string} browserId Unique browser identifier
|
|
2476
|
+
* @param {DetectCoordinatesRequest} payload
|
|
2477
|
+
* @param {*} [options] Override http request option.
|
|
2478
|
+
* @throws {RequiredError}
|
|
2479
|
+
*/
|
|
2480
|
+
async detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetectCoordinatesResult>> {
|
|
2481
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detectCoordinates(browserId, payload, options);
|
|
2482
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2483
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.detectCoordinates']?.[localVarOperationServerIndex]?.url;
|
|
2484
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2485
|
+
},
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
* @summary Manage browser dialogs: get, accept, or dismiss
|
|
2489
|
+
* @param {string} browserId Unique browser identifier
|
|
2490
|
+
* @param {CombinedDialogRequest} payload
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
*/
|
|
2494
|
+
async dialog(browserId: string, payload: CombinedDialogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dialog(browserId, payload, options);
|
|
2496
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2497
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.dialog']?.[localVarOperationServerIndex]?.url;
|
|
2498
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2499
|
+
},
|
|
2500
|
+
/**
|
|
2501
|
+
*
|
|
2502
|
+
* @summary Manage device emulation: set, clear, or list_devices
|
|
2503
|
+
* @param {string} browserId Unique browser identifier
|
|
2504
|
+
* @param {CombinedEmulateRequest} payload
|
|
2505
|
+
* @param {*} [options] Override http request option.
|
|
2506
|
+
* @throws {RequiredError}
|
|
2507
|
+
*/
|
|
2508
|
+
async emulate(browserId: string, payload: CombinedEmulateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emulate(browserId, payload, options);
|
|
2510
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2511
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.emulate']?.[localVarOperationServerIndex]?.url;
|
|
2512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2513
|
+
},
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @summary Execute JavaScript
|
|
2517
|
+
* @param {string} browserId Unique browser identifier
|
|
2518
|
+
* @param {ExecuteRequest} payload
|
|
2519
|
+
* @param {*} [options] Override http request option.
|
|
2520
|
+
* @throws {RequiredError}
|
|
2521
|
+
*/
|
|
2522
|
+
async executeScript(browserId: string, payload: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponse>> {
|
|
2523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeScript(browserId, payload, options);
|
|
2524
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2525
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.executeScript']?.[localVarOperationServerIndex]?.url;
|
|
2526
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2527
|
+
},
|
|
2528
|
+
/**
|
|
2529
|
+
*
|
|
2530
|
+
* @summary Fill multiple form fields
|
|
2531
|
+
* @param {string} browserId Unique browser identifier
|
|
2532
|
+
* @param {FillFormRequest} payload
|
|
2533
|
+
* @param {*} [options] Override http request option.
|
|
2534
|
+
* @throws {RequiredError}
|
|
2535
|
+
*/
|
|
2536
|
+
async fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fillForm(browserId, payload, options);
|
|
2538
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2539
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.fillForm']?.[localVarOperationServerIndex]?.url;
|
|
2540
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2541
|
+
},
|
|
2542
|
+
/**
|
|
2543
|
+
*
|
|
2544
|
+
* @summary Get browser instance details
|
|
2545
|
+
* @param {string} browserId Unique browser identifier
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
*/
|
|
2549
|
+
async getBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrowserInfoResponse>> {
|
|
2550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowser(browserId, options);
|
|
2551
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2552
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getBrowser']?.[localVarOperationServerIndex]?.url;
|
|
2553
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2554
|
+
},
|
|
2555
|
+
/**
|
|
2556
|
+
*
|
|
2557
|
+
* @summary Get browser status
|
|
2558
|
+
* @param {string} browserId Unique browser identifier
|
|
2559
|
+
* @param {*} [options] Override http request option.
|
|
2560
|
+
* @throws {RequiredError}
|
|
2561
|
+
*/
|
|
2562
|
+
async getBrowserStatus(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrowserInfoResponse>> {
|
|
2563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowserStatus(browserId, options);
|
|
2564
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2565
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getBrowserStatus']?.[localVarOperationServerIndex]?.url;
|
|
2566
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2567
|
+
},
|
|
2568
|
+
/**
|
|
2569
|
+
*
|
|
2570
|
+
* @summary Get page HTML content
|
|
2571
|
+
* @param {string} browserId Unique browser identifier
|
|
2572
|
+
* @param {*} [options] Override http request option.
|
|
2573
|
+
* @throws {RequiredError}
|
|
2574
|
+
*/
|
|
2575
|
+
async getContent(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContentResponse>> {
|
|
2576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContent(browserId, options);
|
|
2577
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2578
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getContent']?.[localVarOperationServerIndex]?.url;
|
|
2579
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2580
|
+
},
|
|
2581
|
+
/**
|
|
2582
|
+
*
|
|
2583
|
+
* @summary Get element text, attribute, or property
|
|
2584
|
+
* @param {string} browserId Unique browser identifier
|
|
2585
|
+
* @param {ElementDataRequest} payload
|
|
2586
|
+
* @param {*} [options] Override http request option.
|
|
2587
|
+
* @throws {RequiredError}
|
|
2588
|
+
*/
|
|
2589
|
+
async getElementData(browserId: string, payload: ElementDataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttributeResponse>> {
|
|
2590
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElementData(browserId, payload, options);
|
|
2591
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2592
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getElementData']?.[localVarOperationServerIndex]?.url;
|
|
2593
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2594
|
+
},
|
|
2595
|
+
/**
|
|
2596
|
+
*
|
|
2597
|
+
* @summary Get browser pool status
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
async getPoolStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoolStatusResponse>> {
|
|
2602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolStatus(options);
|
|
2603
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2604
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getPoolStatus']?.[localVarOperationServerIndex]?.url;
|
|
2605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2606
|
+
},
|
|
2607
|
+
/**
|
|
2608
|
+
*
|
|
2609
|
+
* @summary Get current page URL
|
|
2610
|
+
* @param {string} browserId Unique browser identifier
|
|
2611
|
+
* @param {*} [options] Override http request option.
|
|
2612
|
+
* @throws {RequiredError}
|
|
2613
|
+
*/
|
|
2614
|
+
async getUrl(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UrlResponse>> {
|
|
2615
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrl(browserId, options);
|
|
2616
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2617
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getUrl']?.[localVarOperationServerIndex]?.url;
|
|
2618
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2619
|
+
},
|
|
2620
|
+
/**
|
|
2621
|
+
*
|
|
2622
|
+
* @summary Click using selector or screen coordinates
|
|
2623
|
+
* @param {string} browserId Unique browser identifier
|
|
2624
|
+
* @param {CombinedGuiClickRequest} payload
|
|
2625
|
+
* @param {*} [options] Override http request option.
|
|
2626
|
+
* @throws {RequiredError}
|
|
2627
|
+
*/
|
|
2628
|
+
async guiClick(browserId: string, payload: CombinedGuiClickRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionResult>> {
|
|
2629
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.guiClick(browserId, payload, options);
|
|
2630
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2631
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.guiClick']?.[localVarOperationServerIndex]?.url;
|
|
2632
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2633
|
+
},
|
|
2634
|
+
/**
|
|
2635
|
+
*
|
|
2636
|
+
* @summary Execute history action: back, forward, or refresh
|
|
2637
|
+
* @param {string} browserId Unique browser identifier
|
|
2638
|
+
* @param {HistoryRequest} payload
|
|
2639
|
+
* @param {*} [options] Override http request option.
|
|
2640
|
+
* @throws {RequiredError}
|
|
2641
|
+
*/
|
|
2642
|
+
async history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionResult>> {
|
|
2643
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.history(browserId, payload, options);
|
|
2644
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2645
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.history']?.[localVarOperationServerIndex]?.url;
|
|
2646
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2647
|
+
},
|
|
2648
|
+
/**
|
|
2649
|
+
*
|
|
2650
|
+
* @summary List all active browser instances
|
|
2651
|
+
* @param {*} [options] Override http request option.
|
|
2652
|
+
* @throws {RequiredError}
|
|
2653
|
+
*/
|
|
2654
|
+
async listBrowsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrowserList>> {
|
|
2655
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBrowsers(options);
|
|
2656
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2657
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.listBrowsers']?.[localVarOperationServerIndex]?.url;
|
|
2658
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2659
|
+
},
|
|
2660
|
+
/**
|
|
2661
|
+
*
|
|
2662
|
+
* @summary Mouse action: hover or drag
|
|
2663
|
+
* @param {string} browserId Unique browser identifier
|
|
2664
|
+
* @param {MouseRequest} payload
|
|
2665
|
+
* @param {*} [options] Override http request option.
|
|
2666
|
+
* @throws {RequiredError}
|
|
2667
|
+
*/
|
|
2668
|
+
async mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2669
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mouse(browserId, payload, options);
|
|
2670
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2671
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.mouse']?.[localVarOperationServerIndex]?.url;
|
|
2672
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2673
|
+
},
|
|
2674
|
+
/**
|
|
2675
|
+
*
|
|
2676
|
+
* @summary Navigate to a URL
|
|
2677
|
+
* @param {string} browserId Unique browser identifier
|
|
2678
|
+
* @param {NavigateRequest} payload
|
|
2679
|
+
* @param {*} [options] Override http request option.
|
|
2680
|
+
* @throws {RequiredError}
|
|
2681
|
+
*/
|
|
2682
|
+
async navigateBrowser(browserId: string, payload: NavigateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionResult>> {
|
|
2683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.navigateBrowser(browserId, payload, options);
|
|
2684
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2685
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.navigateBrowser']?.[localVarOperationServerIndex]?.url;
|
|
2686
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2687
|
+
},
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @summary Get or clear network logs
|
|
2691
|
+
* @param {string} browserId Unique browser identifier
|
|
2692
|
+
* @param {NetworkLogsRequest} payload
|
|
2693
|
+
* @param {*} [options] Override http request option.
|
|
2694
|
+
* @throws {RequiredError}
|
|
2695
|
+
*/
|
|
2696
|
+
async networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogsResponse>> {
|
|
2697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.networkLogs(browserId, payload, options);
|
|
2698
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2699
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.networkLogs']?.[localVarOperationServerIndex]?.url;
|
|
2700
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2701
|
+
},
|
|
2702
|
+
/**
|
|
2703
|
+
*
|
|
2704
|
+
* @summary Manage performance: start_trace, stop_trace, metrics, or analyze
|
|
2705
|
+
* @param {string} browserId Unique browser identifier
|
|
2706
|
+
* @param {PerformanceRequest} payload
|
|
2707
|
+
* @param {*} [options] Override http request option.
|
|
2708
|
+
* @throws {RequiredError}
|
|
2709
|
+
*/
|
|
2710
|
+
async performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.performance(browserId, payload, options);
|
|
2712
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2713
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.performance']?.[localVarOperationServerIndex]?.url;
|
|
2714
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2715
|
+
},
|
|
2716
|
+
/**
|
|
2717
|
+
*
|
|
2718
|
+
* @summary Press keys on an element
|
|
2719
|
+
* @param {string} browserId Unique browser identifier
|
|
2720
|
+
* @param {PressKeysRequest} payload
|
|
2721
|
+
* @param {*} [options] Override http request option.
|
|
2722
|
+
* @throws {RequiredError}
|
|
2723
|
+
*/
|
|
2724
|
+
async pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionResult>> {
|
|
2725
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pressKeys(browserId, payload, options);
|
|
2726
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2727
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.pressKeys']?.[localVarOperationServerIndex]?.url;
|
|
2728
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2729
|
+
},
|
|
2730
|
+
/**
|
|
2731
|
+
*
|
|
2732
|
+
* @summary Resize viewport
|
|
2733
|
+
* @param {string} browserId Unique browser identifier
|
|
2734
|
+
* @param {ResizeRequest} payload
|
|
2735
|
+
* @param {*} [options] Override http request option.
|
|
2736
|
+
* @throws {RequiredError}
|
|
2737
|
+
*/
|
|
2738
|
+
async resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resize(browserId, payload, options);
|
|
2740
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2741
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.resize']?.[localVarOperationServerIndex]?.url;
|
|
2742
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2743
|
+
},
|
|
2744
|
+
/**
|
|
2745
|
+
*
|
|
2746
|
+
* @summary Scroll to element/coordinates (absolute) or by delta (relative)
|
|
2747
|
+
* @param {string} browserId Unique browser identifier
|
|
2748
|
+
* @param {CombinedScrollRequest} payload
|
|
2749
|
+
* @param {*} [options] Override http request option.
|
|
2750
|
+
* @throws {RequiredError}
|
|
2751
|
+
*/
|
|
2752
|
+
async scroll(browserId: string, payload: CombinedScrollRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2753
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scroll(browserId, payload, options);
|
|
2754
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2755
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.scroll']?.[localVarOperationServerIndex]?.url;
|
|
2756
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2757
|
+
},
|
|
2758
|
+
/**
|
|
2759
|
+
*
|
|
2760
|
+
* @summary Select dropdown: select option or get options
|
|
2761
|
+
* @param {string} browserId Unique browser identifier
|
|
2762
|
+
* @param {SelectRequest} payload
|
|
2763
|
+
* @param {*} [options] Override http request option.
|
|
2764
|
+
* @throws {RequiredError}
|
|
2765
|
+
*/
|
|
2766
|
+
async select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2767
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.select(browserId, payload, options);
|
|
2768
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2769
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.select']?.[localVarOperationServerIndex]?.url;
|
|
2770
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2771
|
+
},
|
|
2772
|
+
/**
|
|
2773
|
+
*
|
|
2774
|
+
* @summary Manage browser tabs: list, new, switch, close, or current
|
|
2775
|
+
* @param {string} browserId Unique browser identifier
|
|
2776
|
+
* @param {TabsRequest} payload
|
|
2777
|
+
* @param {*} [options] Override http request option.
|
|
2778
|
+
* @throws {RequiredError}
|
|
2779
|
+
*/
|
|
2780
|
+
async tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2781
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tabs(browserId, payload, options);
|
|
2782
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2783
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.tabs']?.[localVarOperationServerIndex]?.url;
|
|
2784
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2785
|
+
},
|
|
2786
|
+
/**
|
|
2787
|
+
*
|
|
2788
|
+
* @summary Take a screenshot
|
|
2789
|
+
* @param {string} browserId Unique browser identifier
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
*/
|
|
2793
|
+
async takeScreenshot(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScreenshotResponse>> {
|
|
2794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.takeScreenshot(browserId, options);
|
|
2795
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2796
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.takeScreenshot']?.[localVarOperationServerIndex]?.url;
|
|
2797
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2798
|
+
},
|
|
2799
|
+
/**
|
|
2800
|
+
*
|
|
2801
|
+
* @summary Take DOM/accessibility snapshot
|
|
2802
|
+
* @param {string} browserId Unique browser identifier
|
|
2803
|
+
* @param {SnapshotRequest} payload
|
|
2804
|
+
* @param {*} [options] Override http request option.
|
|
2805
|
+
* @throws {RequiredError}
|
|
2806
|
+
*/
|
|
2807
|
+
async takeSnapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.takeSnapshot(browserId, payload, options);
|
|
2809
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2810
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.takeSnapshot']?.[localVarOperationServerIndex]?.url;
|
|
2811
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2812
|
+
},
|
|
2813
|
+
/**
|
|
2814
|
+
*
|
|
2815
|
+
* @summary Type text into an element
|
|
2816
|
+
* @param {string} browserId Unique browser identifier
|
|
2817
|
+
* @param {TypeRequest} payload
|
|
2818
|
+
* @param {*} [options] Override http request option.
|
|
2819
|
+
* @throws {RequiredError}
|
|
2820
|
+
*/
|
|
2821
|
+
async typeText(browserId: string, payload: TypeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionResult>> {
|
|
2822
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.typeText(browserId, payload, options);
|
|
2823
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2824
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.typeText']?.[localVarOperationServerIndex]?.url;
|
|
2825
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2826
|
+
},
|
|
2827
|
+
/**
|
|
2828
|
+
*
|
|
2829
|
+
* @summary Upload a file
|
|
2830
|
+
* @param {string} browserId Unique browser identifier
|
|
2831
|
+
* @param {UploadFileRequest} payload
|
|
2832
|
+
* @param {*} [options] Override http request option.
|
|
2833
|
+
* @throws {RequiredError}
|
|
2834
|
+
*/
|
|
2835
|
+
async uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>> {
|
|
2836
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(browserId, payload, options);
|
|
2837
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2838
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.uploadFile']?.[localVarOperationServerIndex]?.url;
|
|
2839
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2840
|
+
},
|
|
2841
|
+
/**
|
|
2842
|
+
*
|
|
2843
|
+
* @summary Wait for element to become visible or hidden
|
|
2844
|
+
* @param {string} browserId Unique browser identifier
|
|
2845
|
+
* @param {WaitElementRequest} payload
|
|
2846
|
+
* @param {*} [options] Override http request option.
|
|
2847
|
+
* @throws {RequiredError}
|
|
2848
|
+
*/
|
|
2849
|
+
async waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionResult>> {
|
|
2850
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.waitElement(browserId, payload, options);
|
|
2851
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2852
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.waitElement']?.[localVarOperationServerIndex]?.url;
|
|
2853
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2854
|
+
},
|
|
2855
|
+
/**
|
|
2856
|
+
*
|
|
2857
|
+
* @summary Analyze visible page content using AI
|
|
2858
|
+
* @param {string} browserId Unique browser identifier
|
|
2859
|
+
* @param {*} [options] Override http request option.
|
|
2860
|
+
* @throws {RequiredError}
|
|
2861
|
+
*/
|
|
2862
|
+
async whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatIsVisibleResult>> {
|
|
2863
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.whatIsVisible(browserId, options);
|
|
2864
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2865
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.whatIsVisible']?.[localVarOperationServerIndex]?.url;
|
|
2866
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2867
|
+
},
|
|
2868
|
+
}
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
/**
|
|
2872
|
+
* BrowserApi - factory interface
|
|
2873
|
+
*/
|
|
2874
|
+
export const BrowserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2875
|
+
const localVarFp = BrowserApiFp(configuration)
|
|
2876
|
+
return {
|
|
2877
|
+
/**
|
|
2878
|
+
*
|
|
2879
|
+
* @summary Check if element exists or is visible
|
|
2880
|
+
* @param {string} browserId Unique browser identifier
|
|
2881
|
+
* @param {CheckElementRequest} payload
|
|
2882
|
+
* @param {*} [options] Override http request option.
|
|
2883
|
+
* @throws {RequiredError}
|
|
2884
|
+
*/
|
|
2885
|
+
checkElement(browserId: string, payload: CheckElementRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
2886
|
+
return localVarFp.checkElement(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2887
|
+
},
|
|
2888
|
+
/**
|
|
2889
|
+
* Use if_visible=true to only click if visible.
|
|
2890
|
+
* @summary Click element
|
|
2891
|
+
* @param {string} browserId Unique browser identifier
|
|
2892
|
+
* @param {ClickRequest} payload
|
|
2893
|
+
* @param {*} [options] Override http request option.
|
|
2894
|
+
* @throws {RequiredError}
|
|
2895
|
+
*/
|
|
2896
|
+
click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult> {
|
|
2897
|
+
return localVarFp.click(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2898
|
+
},
|
|
2899
|
+
/**
|
|
2900
|
+
*
|
|
2901
|
+
* @summary Close all active browser instances
|
|
2902
|
+
* @param {*} [options] Override http request option.
|
|
2903
|
+
* @throws {RequiredError}
|
|
2904
|
+
*/
|
|
2905
|
+
closeAllBrowsers(options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse> {
|
|
2906
|
+
return localVarFp.closeAllBrowsers(options).then((request) => request(axios, basePath));
|
|
2907
|
+
},
|
|
2908
|
+
/**
|
|
2909
|
+
*
|
|
2910
|
+
* @summary Close a browser instance
|
|
2911
|
+
* @param {string} browserId Unique browser identifier
|
|
2912
|
+
* @param {*} [options] Override http request option.
|
|
2913
|
+
* @throws {RequiredError}
|
|
2914
|
+
*/
|
|
2915
|
+
closeBrowser(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse> {
|
|
2916
|
+
return localVarFp.closeBrowser(browserId, options).then((request) => request(axios, basePath));
|
|
2917
|
+
},
|
|
2918
|
+
/**
|
|
2919
|
+
*
|
|
2920
|
+
* @summary Get or clear console logs
|
|
2921
|
+
* @param {string} browserId Unique browser identifier
|
|
2922
|
+
* @param {ConsoleLogsRequest} payload
|
|
2923
|
+
* @param {*} [options] Override http request option.
|
|
2924
|
+
* @throws {RequiredError}
|
|
2925
|
+
*/
|
|
2926
|
+
consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogsResponse> {
|
|
2927
|
+
return localVarFp.consoleLogs(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2928
|
+
},
|
|
2929
|
+
/**
|
|
2930
|
+
*
|
|
2931
|
+
* @summary Create a new browser instance
|
|
2932
|
+
* @param {BrowserConfig} payload
|
|
2933
|
+
* @param {*} [options] Override http request option.
|
|
2934
|
+
* @throws {RequiredError}
|
|
2935
|
+
*/
|
|
2936
|
+
createBrowser(payload: BrowserConfig, options?: RawAxiosRequestConfig): AxiosPromise<BrowserCreated> {
|
|
2937
|
+
return localVarFp.createBrowser(payload, options).then((request) => request(axios, basePath));
|
|
2938
|
+
},
|
|
2939
|
+
/**
|
|
2940
|
+
*
|
|
2941
|
+
* @summary Close and remove a browser instance
|
|
2942
|
+
* @param {string} browserId Unique browser identifier
|
|
2943
|
+
* @param {*} [options] Override http request option.
|
|
2944
|
+
* @throws {RequiredError}
|
|
2945
|
+
*/
|
|
2946
|
+
deleteBrowser(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse> {
|
|
2947
|
+
return localVarFp.deleteBrowser(browserId, options).then((request) => request(axios, basePath));
|
|
2948
|
+
},
|
|
2949
|
+
/**
|
|
2950
|
+
*
|
|
2951
|
+
* @summary Detect element coordinates using AI vision
|
|
2952
|
+
* @param {string} browserId Unique browser identifier
|
|
2953
|
+
* @param {DetectCoordinatesRequest} payload
|
|
2954
|
+
* @param {*} [options] Override http request option.
|
|
2955
|
+
* @throws {RequiredError}
|
|
2956
|
+
*/
|
|
2957
|
+
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DetectCoordinatesResult> {
|
|
2958
|
+
return localVarFp.detectCoordinates(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2959
|
+
},
|
|
2960
|
+
/**
|
|
2961
|
+
*
|
|
2962
|
+
* @summary Manage browser dialogs: get, accept, or dismiss
|
|
2963
|
+
* @param {string} browserId Unique browser identifier
|
|
2964
|
+
* @param {CombinedDialogRequest} payload
|
|
2965
|
+
* @param {*} [options] Override http request option.
|
|
2966
|
+
* @throws {RequiredError}
|
|
2967
|
+
*/
|
|
2968
|
+
dialog(browserId: string, payload: CombinedDialogRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
2969
|
+
return localVarFp.dialog(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2970
|
+
},
|
|
2971
|
+
/**
|
|
2972
|
+
*
|
|
2973
|
+
* @summary Manage device emulation: set, clear, or list_devices
|
|
2974
|
+
* @param {string} browserId Unique browser identifier
|
|
2975
|
+
* @param {CombinedEmulateRequest} payload
|
|
2976
|
+
* @param {*} [options] Override http request option.
|
|
2977
|
+
* @throws {RequiredError}
|
|
2978
|
+
*/
|
|
2979
|
+
emulate(browserId: string, payload: CombinedEmulateRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
2980
|
+
return localVarFp.emulate(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2981
|
+
},
|
|
2982
|
+
/**
|
|
2983
|
+
*
|
|
2984
|
+
* @summary Execute JavaScript
|
|
2985
|
+
* @param {string} browserId Unique browser identifier
|
|
2986
|
+
* @param {ExecuteRequest} payload
|
|
2987
|
+
* @param {*} [options] Override http request option.
|
|
2988
|
+
* @throws {RequiredError}
|
|
2989
|
+
*/
|
|
2990
|
+
executeScript(browserId: string, payload: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse> {
|
|
2991
|
+
return localVarFp.executeScript(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2992
|
+
},
|
|
2993
|
+
/**
|
|
2994
|
+
*
|
|
2995
|
+
* @summary Fill multiple form fields
|
|
2996
|
+
* @param {string} browserId Unique browser identifier
|
|
2997
|
+
* @param {FillFormRequest} payload
|
|
2998
|
+
* @param {*} [options] Override http request option.
|
|
2999
|
+
* @throws {RequiredError}
|
|
3000
|
+
*/
|
|
3001
|
+
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3002
|
+
return localVarFp.fillForm(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3003
|
+
},
|
|
3004
|
+
/**
|
|
3005
|
+
*
|
|
3006
|
+
* @summary Get browser instance details
|
|
3007
|
+
* @param {string} browserId Unique browser identifier
|
|
3008
|
+
* @param {*} [options] Override http request option.
|
|
3009
|
+
* @throws {RequiredError}
|
|
3010
|
+
*/
|
|
3011
|
+
getBrowser(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<BrowserInfoResponse> {
|
|
3012
|
+
return localVarFp.getBrowser(browserId, options).then((request) => request(axios, basePath));
|
|
3013
|
+
},
|
|
3014
|
+
/**
|
|
3015
|
+
*
|
|
3016
|
+
* @summary Get browser status
|
|
3017
|
+
* @param {string} browserId Unique browser identifier
|
|
3018
|
+
* @param {*} [options] Override http request option.
|
|
3019
|
+
* @throws {RequiredError}
|
|
3020
|
+
*/
|
|
3021
|
+
getBrowserStatus(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<BrowserInfoResponse> {
|
|
3022
|
+
return localVarFp.getBrowserStatus(browserId, options).then((request) => request(axios, basePath));
|
|
3023
|
+
},
|
|
3024
|
+
/**
|
|
3025
|
+
*
|
|
3026
|
+
* @summary Get page HTML content
|
|
3027
|
+
* @param {string} browserId Unique browser identifier
|
|
3028
|
+
* @param {*} [options] Override http request option.
|
|
3029
|
+
* @throws {RequiredError}
|
|
3030
|
+
*/
|
|
3031
|
+
getContent(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<ContentResponse> {
|
|
3032
|
+
return localVarFp.getContent(browserId, options).then((request) => request(axios, basePath));
|
|
3033
|
+
},
|
|
3034
|
+
/**
|
|
3035
|
+
*
|
|
3036
|
+
* @summary Get element text, attribute, or property
|
|
3037
|
+
* @param {string} browserId Unique browser identifier
|
|
3038
|
+
* @param {ElementDataRequest} payload
|
|
3039
|
+
* @param {*} [options] Override http request option.
|
|
3040
|
+
* @throws {RequiredError}
|
|
3041
|
+
*/
|
|
3042
|
+
getElementData(browserId: string, payload: ElementDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<AttributeResponse> {
|
|
3043
|
+
return localVarFp.getElementData(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3044
|
+
},
|
|
3045
|
+
/**
|
|
3046
|
+
*
|
|
3047
|
+
* @summary Get browser pool status
|
|
3048
|
+
* @param {*} [options] Override http request option.
|
|
3049
|
+
* @throws {RequiredError}
|
|
3050
|
+
*/
|
|
3051
|
+
getPoolStatus(options?: RawAxiosRequestConfig): AxiosPromise<PoolStatusResponse> {
|
|
3052
|
+
return localVarFp.getPoolStatus(options).then((request) => request(axios, basePath));
|
|
3053
|
+
},
|
|
3054
|
+
/**
|
|
3055
|
+
*
|
|
3056
|
+
* @summary Get current page URL
|
|
3057
|
+
* @param {string} browserId Unique browser identifier
|
|
3058
|
+
* @param {*} [options] Override http request option.
|
|
3059
|
+
* @throws {RequiredError}
|
|
3060
|
+
*/
|
|
3061
|
+
getUrl(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<UrlResponse> {
|
|
3062
|
+
return localVarFp.getUrl(browserId, options).then((request) => request(axios, basePath));
|
|
3063
|
+
},
|
|
3064
|
+
/**
|
|
3065
|
+
*
|
|
3066
|
+
* @summary Click using selector or screen coordinates
|
|
3067
|
+
* @param {string} browserId Unique browser identifier
|
|
3068
|
+
* @param {CombinedGuiClickRequest} payload
|
|
3069
|
+
* @param {*} [options] Override http request option.
|
|
3070
|
+
* @throws {RequiredError}
|
|
3071
|
+
*/
|
|
3072
|
+
guiClick(browserId: string, payload: CombinedGuiClickRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult> {
|
|
3073
|
+
return localVarFp.guiClick(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3074
|
+
},
|
|
3075
|
+
/**
|
|
3076
|
+
*
|
|
3077
|
+
* @summary Execute history action: back, forward, or refresh
|
|
3078
|
+
* @param {string} browserId Unique browser identifier
|
|
3079
|
+
* @param {HistoryRequest} payload
|
|
3080
|
+
* @param {*} [options] Override http request option.
|
|
3081
|
+
* @throws {RequiredError}
|
|
3082
|
+
*/
|
|
3083
|
+
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult> {
|
|
3084
|
+
return localVarFp.history(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3085
|
+
},
|
|
3086
|
+
/**
|
|
3087
|
+
*
|
|
3088
|
+
* @summary List all active browser instances
|
|
3089
|
+
* @param {*} [options] Override http request option.
|
|
3090
|
+
* @throws {RequiredError}
|
|
3091
|
+
*/
|
|
3092
|
+
listBrowsers(options?: RawAxiosRequestConfig): AxiosPromise<BrowserList> {
|
|
3093
|
+
return localVarFp.listBrowsers(options).then((request) => request(axios, basePath));
|
|
3094
|
+
},
|
|
3095
|
+
/**
|
|
3096
|
+
*
|
|
3097
|
+
* @summary Mouse action: hover or drag
|
|
3098
|
+
* @param {string} browserId Unique browser identifier
|
|
3099
|
+
* @param {MouseRequest} payload
|
|
3100
|
+
* @param {*} [options] Override http request option.
|
|
3101
|
+
* @throws {RequiredError}
|
|
3102
|
+
*/
|
|
3103
|
+
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3104
|
+
return localVarFp.mouse(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3105
|
+
},
|
|
3106
|
+
/**
|
|
3107
|
+
*
|
|
3108
|
+
* @summary Navigate to a URL
|
|
3109
|
+
* @param {string} browserId Unique browser identifier
|
|
3110
|
+
* @param {NavigateRequest} payload
|
|
3111
|
+
* @param {*} [options] Override http request option.
|
|
3112
|
+
* @throws {RequiredError}
|
|
3113
|
+
*/
|
|
3114
|
+
navigateBrowser(browserId: string, payload: NavigateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult> {
|
|
3115
|
+
return localVarFp.navigateBrowser(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3116
|
+
},
|
|
3117
|
+
/**
|
|
3118
|
+
*
|
|
3119
|
+
* @summary Get or clear network logs
|
|
3120
|
+
* @param {string} browserId Unique browser identifier
|
|
3121
|
+
* @param {NetworkLogsRequest} payload
|
|
3122
|
+
* @param {*} [options] Override http request option.
|
|
3123
|
+
* @throws {RequiredError}
|
|
3124
|
+
*/
|
|
3125
|
+
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogsResponse> {
|
|
3126
|
+
return localVarFp.networkLogs(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3127
|
+
},
|
|
3128
|
+
/**
|
|
3129
|
+
*
|
|
3130
|
+
* @summary Manage performance: start_trace, stop_trace, metrics, or analyze
|
|
3131
|
+
* @param {string} browserId Unique browser identifier
|
|
3132
|
+
* @param {PerformanceRequest} payload
|
|
3133
|
+
* @param {*} [options] Override http request option.
|
|
3134
|
+
* @throws {RequiredError}
|
|
3135
|
+
*/
|
|
3136
|
+
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3137
|
+
return localVarFp.performance(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3138
|
+
},
|
|
3139
|
+
/**
|
|
3140
|
+
*
|
|
3141
|
+
* @summary Press keys on an element
|
|
3142
|
+
* @param {string} browserId Unique browser identifier
|
|
3143
|
+
* @param {PressKeysRequest} payload
|
|
3144
|
+
* @param {*} [options] Override http request option.
|
|
3145
|
+
* @throws {RequiredError}
|
|
3146
|
+
*/
|
|
3147
|
+
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult> {
|
|
3148
|
+
return localVarFp.pressKeys(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3149
|
+
},
|
|
3150
|
+
/**
|
|
3151
|
+
*
|
|
3152
|
+
* @summary Resize viewport
|
|
3153
|
+
* @param {string} browserId Unique browser identifier
|
|
3154
|
+
* @param {ResizeRequest} payload
|
|
3155
|
+
* @param {*} [options] Override http request option.
|
|
3156
|
+
* @throws {RequiredError}
|
|
3157
|
+
*/
|
|
3158
|
+
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3159
|
+
return localVarFp.resize(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3160
|
+
},
|
|
3161
|
+
/**
|
|
3162
|
+
*
|
|
3163
|
+
* @summary Scroll to element/coordinates (absolute) or by delta (relative)
|
|
3164
|
+
* @param {string} browserId Unique browser identifier
|
|
3165
|
+
* @param {CombinedScrollRequest} payload
|
|
3166
|
+
* @param {*} [options] Override http request option.
|
|
3167
|
+
* @throws {RequiredError}
|
|
3168
|
+
*/
|
|
3169
|
+
scroll(browserId: string, payload: CombinedScrollRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3170
|
+
return localVarFp.scroll(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3171
|
+
},
|
|
3172
|
+
/**
|
|
3173
|
+
*
|
|
3174
|
+
* @summary Select dropdown: select option or get options
|
|
3175
|
+
* @param {string} browserId Unique browser identifier
|
|
3176
|
+
* @param {SelectRequest} payload
|
|
3177
|
+
* @param {*} [options] Override http request option.
|
|
3178
|
+
* @throws {RequiredError}
|
|
3179
|
+
*/
|
|
3180
|
+
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3181
|
+
return localVarFp.select(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3182
|
+
},
|
|
3183
|
+
/**
|
|
3184
|
+
*
|
|
3185
|
+
* @summary Manage browser tabs: list, new, switch, close, or current
|
|
3186
|
+
* @param {string} browserId Unique browser identifier
|
|
3187
|
+
* @param {TabsRequest} payload
|
|
3188
|
+
* @param {*} [options] Override http request option.
|
|
3189
|
+
* @throws {RequiredError}
|
|
3190
|
+
*/
|
|
3191
|
+
tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3192
|
+
return localVarFp.tabs(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3193
|
+
},
|
|
3194
|
+
/**
|
|
3195
|
+
*
|
|
3196
|
+
* @summary Take a screenshot
|
|
3197
|
+
* @param {string} browserId Unique browser identifier
|
|
3198
|
+
* @param {*} [options] Override http request option.
|
|
3199
|
+
* @throws {RequiredError}
|
|
3200
|
+
*/
|
|
3201
|
+
takeScreenshot(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<ScreenshotResponse> {
|
|
3202
|
+
return localVarFp.takeScreenshot(browserId, options).then((request) => request(axios, basePath));
|
|
3203
|
+
},
|
|
3204
|
+
/**
|
|
3205
|
+
*
|
|
3206
|
+
* @summary Take DOM/accessibility snapshot
|
|
3207
|
+
* @param {string} browserId Unique browser identifier
|
|
3208
|
+
* @param {SnapshotRequest} payload
|
|
3209
|
+
* @param {*} [options] Override http request option.
|
|
3210
|
+
* @throws {RequiredError}
|
|
3211
|
+
*/
|
|
3212
|
+
takeSnapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3213
|
+
return localVarFp.takeSnapshot(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3214
|
+
},
|
|
3215
|
+
/**
|
|
3216
|
+
*
|
|
3217
|
+
* @summary Type text into an element
|
|
3218
|
+
* @param {string} browserId Unique browser identifier
|
|
3219
|
+
* @param {TypeRequest} payload
|
|
3220
|
+
* @param {*} [options] Override http request option.
|
|
3221
|
+
* @throws {RequiredError}
|
|
3222
|
+
*/
|
|
3223
|
+
typeText(browserId: string, payload: TypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult> {
|
|
3224
|
+
return localVarFp.typeText(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3225
|
+
},
|
|
3226
|
+
/**
|
|
3227
|
+
*
|
|
3228
|
+
* @summary Upload a file
|
|
3229
|
+
* @param {string} browserId Unique browser identifier
|
|
3230
|
+
* @param {UploadFileRequest} payload
|
|
3231
|
+
* @param {*} [options] Override http request option.
|
|
3232
|
+
* @throws {RequiredError}
|
|
3233
|
+
*/
|
|
3234
|
+
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse> {
|
|
3235
|
+
return localVarFp.uploadFile(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3236
|
+
},
|
|
3237
|
+
/**
|
|
3238
|
+
*
|
|
3239
|
+
* @summary Wait for element to become visible or hidden
|
|
3240
|
+
* @param {string} browserId Unique browser identifier
|
|
3241
|
+
* @param {WaitElementRequest} payload
|
|
3242
|
+
* @param {*} [options] Override http request option.
|
|
3243
|
+
* @throws {RequiredError}
|
|
3244
|
+
*/
|
|
3245
|
+
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult> {
|
|
3246
|
+
return localVarFp.waitElement(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3247
|
+
},
|
|
3248
|
+
/**
|
|
3249
|
+
*
|
|
3250
|
+
* @summary Analyze visible page content using AI
|
|
3251
|
+
* @param {string} browserId Unique browser identifier
|
|
3252
|
+
* @param {*} [options] Override http request option.
|
|
3253
|
+
* @throws {RequiredError}
|
|
3254
|
+
*/
|
|
3255
|
+
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatIsVisibleResult> {
|
|
3256
|
+
return localVarFp.whatIsVisible(browserId, options).then((request) => request(axios, basePath));
|
|
3257
|
+
},
|
|
3258
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* BrowserApi - object-oriented interface
|
|
3263
|
+
*/
|
|
3264
|
+
export class BrowserApi extends BaseAPI {
|
|
3265
|
+
/**
|
|
3266
|
+
*
|
|
3267
|
+
* @summary Check if element exists or is visible
|
|
3268
|
+
* @param {string} browserId Unique browser identifier
|
|
3269
|
+
* @param {CheckElementRequest} payload
|
|
3270
|
+
* @param {*} [options] Override http request option.
|
|
3271
|
+
* @throws {RequiredError}
|
|
3272
|
+
*/
|
|
3273
|
+
public checkElement(browserId: string, payload: CheckElementRequest, options?: RawAxiosRequestConfig) {
|
|
3274
|
+
return BrowserApiFp(this.configuration).checkElement(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
/**
|
|
3278
|
+
* Use if_visible=true to only click if visible.
|
|
3279
|
+
* @summary Click element
|
|
3280
|
+
* @param {string} browserId Unique browser identifier
|
|
3281
|
+
* @param {ClickRequest} payload
|
|
3282
|
+
* @param {*} [options] Override http request option.
|
|
3283
|
+
* @throws {RequiredError}
|
|
3284
|
+
*/
|
|
3285
|
+
public click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig) {
|
|
3286
|
+
return BrowserApiFp(this.configuration).click(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
/**
|
|
3290
|
+
*
|
|
3291
|
+
* @summary Close all active browser instances
|
|
3292
|
+
* @param {*} [options] Override http request option.
|
|
3293
|
+
* @throws {RequiredError}
|
|
3294
|
+
*/
|
|
3295
|
+
public closeAllBrowsers(options?: RawAxiosRequestConfig) {
|
|
3296
|
+
return BrowserApiFp(this.configuration).closeAllBrowsers(options).then((request) => request(this.axios, this.basePath));
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @summary Close a browser instance
|
|
3302
|
+
* @param {string} browserId Unique browser identifier
|
|
3303
|
+
* @param {*} [options] Override http request option.
|
|
3304
|
+
* @throws {RequiredError}
|
|
3305
|
+
*/
|
|
3306
|
+
public closeBrowser(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3307
|
+
return BrowserApiFp(this.configuration).closeBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
*
|
|
3312
|
+
* @summary Get or clear console logs
|
|
3313
|
+
* @param {string} browserId Unique browser identifier
|
|
3314
|
+
* @param {ConsoleLogsRequest} payload
|
|
3315
|
+
* @param {*} [options] Override http request option.
|
|
3316
|
+
* @throws {RequiredError}
|
|
3317
|
+
*/
|
|
3318
|
+
public consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig) {
|
|
3319
|
+
return BrowserApiFp(this.configuration).consoleLogs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
*
|
|
3324
|
+
* @summary Create a new browser instance
|
|
3325
|
+
* @param {BrowserConfig} payload
|
|
3326
|
+
* @param {*} [options] Override http request option.
|
|
3327
|
+
* @throws {RequiredError}
|
|
3328
|
+
*/
|
|
3329
|
+
public createBrowser(payload: BrowserConfig, options?: RawAxiosRequestConfig) {
|
|
3330
|
+
return BrowserApiFp(this.configuration).createBrowser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
*
|
|
3335
|
+
* @summary Close and remove a browser instance
|
|
3336
|
+
* @param {string} browserId Unique browser identifier
|
|
3337
|
+
* @param {*} [options] Override http request option.
|
|
3338
|
+
* @throws {RequiredError}
|
|
3339
|
+
*/
|
|
3340
|
+
public deleteBrowser(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3341
|
+
return BrowserApiFp(this.configuration).deleteBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
/**
|
|
3345
|
+
*
|
|
3346
|
+
* @summary Detect element coordinates using AI vision
|
|
3347
|
+
* @param {string} browserId Unique browser identifier
|
|
3348
|
+
* @param {DetectCoordinatesRequest} payload
|
|
3349
|
+
* @param {*} [options] Override http request option.
|
|
3350
|
+
* @throws {RequiredError}
|
|
3351
|
+
*/
|
|
3352
|
+
public detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig) {
|
|
3353
|
+
return BrowserApiFp(this.configuration).detectCoordinates(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
*
|
|
3358
|
+
* @summary Manage browser dialogs: get, accept, or dismiss
|
|
3359
|
+
* @param {string} browserId Unique browser identifier
|
|
3360
|
+
* @param {CombinedDialogRequest} payload
|
|
3361
|
+
* @param {*} [options] Override http request option.
|
|
3362
|
+
* @throws {RequiredError}
|
|
3363
|
+
*/
|
|
3364
|
+
public dialog(browserId: string, payload: CombinedDialogRequest, options?: RawAxiosRequestConfig) {
|
|
3365
|
+
return BrowserApiFp(this.configuration).dialog(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
/**
|
|
3369
|
+
*
|
|
3370
|
+
* @summary Manage device emulation: set, clear, or list_devices
|
|
3371
|
+
* @param {string} browserId Unique browser identifier
|
|
3372
|
+
* @param {CombinedEmulateRequest} payload
|
|
3373
|
+
* @param {*} [options] Override http request option.
|
|
3374
|
+
* @throws {RequiredError}
|
|
3375
|
+
*/
|
|
3376
|
+
public emulate(browserId: string, payload: CombinedEmulateRequest, options?: RawAxiosRequestConfig) {
|
|
3377
|
+
return BrowserApiFp(this.configuration).emulate(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
*
|
|
3382
|
+
* @summary Execute JavaScript
|
|
3383
|
+
* @param {string} browserId Unique browser identifier
|
|
3384
|
+
* @param {ExecuteRequest} payload
|
|
3385
|
+
* @param {*} [options] Override http request option.
|
|
3386
|
+
* @throws {RequiredError}
|
|
3387
|
+
*/
|
|
3388
|
+
public executeScript(browserId: string, payload: ExecuteRequest, options?: RawAxiosRequestConfig) {
|
|
3389
|
+
return BrowserApiFp(this.configuration).executeScript(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
*
|
|
3394
|
+
* @summary Fill multiple form fields
|
|
3395
|
+
* @param {string} browserId Unique browser identifier
|
|
3396
|
+
* @param {FillFormRequest} payload
|
|
3397
|
+
* @param {*} [options] Override http request option.
|
|
3398
|
+
* @throws {RequiredError}
|
|
3399
|
+
*/
|
|
3400
|
+
public fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig) {
|
|
3401
|
+
return BrowserApiFp(this.configuration).fillForm(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
*
|
|
3406
|
+
* @summary Get browser instance details
|
|
3407
|
+
* @param {string} browserId Unique browser identifier
|
|
3408
|
+
* @param {*} [options] Override http request option.
|
|
3409
|
+
* @throws {RequiredError}
|
|
3410
|
+
*/
|
|
3411
|
+
public getBrowser(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3412
|
+
return BrowserApiFp(this.configuration).getBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
/**
|
|
3416
|
+
*
|
|
3417
|
+
* @summary Get browser status
|
|
3418
|
+
* @param {string} browserId Unique browser identifier
|
|
3419
|
+
* @param {*} [options] Override http request option.
|
|
3420
|
+
* @throws {RequiredError}
|
|
3421
|
+
*/
|
|
3422
|
+
public getBrowserStatus(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3423
|
+
return BrowserApiFp(this.configuration).getBrowserStatus(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
/**
|
|
3427
|
+
*
|
|
3428
|
+
* @summary Get page HTML content
|
|
3429
|
+
* @param {string} browserId Unique browser identifier
|
|
3430
|
+
* @param {*} [options] Override http request option.
|
|
3431
|
+
* @throws {RequiredError}
|
|
3432
|
+
*/
|
|
3433
|
+
public getContent(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3434
|
+
return BrowserApiFp(this.configuration).getContent(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
*
|
|
3439
|
+
* @summary Get element text, attribute, or property
|
|
3440
|
+
* @param {string} browserId Unique browser identifier
|
|
3441
|
+
* @param {ElementDataRequest} payload
|
|
3442
|
+
* @param {*} [options] Override http request option.
|
|
3443
|
+
* @throws {RequiredError}
|
|
3444
|
+
*/
|
|
3445
|
+
public getElementData(browserId: string, payload: ElementDataRequest, options?: RawAxiosRequestConfig) {
|
|
3446
|
+
return BrowserApiFp(this.configuration).getElementData(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
*
|
|
3451
|
+
* @summary Get browser pool status
|
|
3452
|
+
* @param {*} [options] Override http request option.
|
|
3453
|
+
* @throws {RequiredError}
|
|
3454
|
+
*/
|
|
3455
|
+
public getPoolStatus(options?: RawAxiosRequestConfig) {
|
|
3456
|
+
return BrowserApiFp(this.configuration).getPoolStatus(options).then((request) => request(this.axios, this.basePath));
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
/**
|
|
3460
|
+
*
|
|
3461
|
+
* @summary Get current page URL
|
|
3462
|
+
* @param {string} browserId Unique browser identifier
|
|
3463
|
+
* @param {*} [options] Override http request option.
|
|
3464
|
+
* @throws {RequiredError}
|
|
3465
|
+
*/
|
|
3466
|
+
public getUrl(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3467
|
+
return BrowserApiFp(this.configuration).getUrl(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
/**
|
|
3471
|
+
*
|
|
3472
|
+
* @summary Click using selector or screen coordinates
|
|
3473
|
+
* @param {string} browserId Unique browser identifier
|
|
3474
|
+
* @param {CombinedGuiClickRequest} payload
|
|
3475
|
+
* @param {*} [options] Override http request option.
|
|
3476
|
+
* @throws {RequiredError}
|
|
3477
|
+
*/
|
|
3478
|
+
public guiClick(browserId: string, payload: CombinedGuiClickRequest, options?: RawAxiosRequestConfig) {
|
|
3479
|
+
return BrowserApiFp(this.configuration).guiClick(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
*
|
|
3484
|
+
* @summary Execute history action: back, forward, or refresh
|
|
3485
|
+
* @param {string} browserId Unique browser identifier
|
|
3486
|
+
* @param {HistoryRequest} payload
|
|
3487
|
+
* @param {*} [options] Override http request option.
|
|
3488
|
+
* @throws {RequiredError}
|
|
3489
|
+
*/
|
|
3490
|
+
public history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig) {
|
|
3491
|
+
return BrowserApiFp(this.configuration).history(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
/**
|
|
3495
|
+
*
|
|
3496
|
+
* @summary List all active browser instances
|
|
3497
|
+
* @param {*} [options] Override http request option.
|
|
3498
|
+
* @throws {RequiredError}
|
|
3499
|
+
*/
|
|
3500
|
+
public listBrowsers(options?: RawAxiosRequestConfig) {
|
|
3501
|
+
return BrowserApiFp(this.configuration).listBrowsers(options).then((request) => request(this.axios, this.basePath));
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
*
|
|
3506
|
+
* @summary Mouse action: hover or drag
|
|
3507
|
+
* @param {string} browserId Unique browser identifier
|
|
3508
|
+
* @param {MouseRequest} payload
|
|
3509
|
+
* @param {*} [options] Override http request option.
|
|
3510
|
+
* @throws {RequiredError}
|
|
3511
|
+
*/
|
|
3512
|
+
public mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig) {
|
|
3513
|
+
return BrowserApiFp(this.configuration).mouse(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
/**
|
|
3517
|
+
*
|
|
3518
|
+
* @summary Navigate to a URL
|
|
3519
|
+
* @param {string} browserId Unique browser identifier
|
|
3520
|
+
* @param {NavigateRequest} payload
|
|
3521
|
+
* @param {*} [options] Override http request option.
|
|
3522
|
+
* @throws {RequiredError}
|
|
3523
|
+
*/
|
|
3524
|
+
public navigateBrowser(browserId: string, payload: NavigateRequest, options?: RawAxiosRequestConfig) {
|
|
3525
|
+
return BrowserApiFp(this.configuration).navigateBrowser(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
*
|
|
3530
|
+
* @summary Get or clear network logs
|
|
3531
|
+
* @param {string} browserId Unique browser identifier
|
|
3532
|
+
* @param {NetworkLogsRequest} payload
|
|
3533
|
+
* @param {*} [options] Override http request option.
|
|
3534
|
+
* @throws {RequiredError}
|
|
3535
|
+
*/
|
|
3536
|
+
public networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig) {
|
|
3537
|
+
return BrowserApiFp(this.configuration).networkLogs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
/**
|
|
3541
|
+
*
|
|
3542
|
+
* @summary Manage performance: start_trace, stop_trace, metrics, or analyze
|
|
3543
|
+
* @param {string} browserId Unique browser identifier
|
|
3544
|
+
* @param {PerformanceRequest} payload
|
|
3545
|
+
* @param {*} [options] Override http request option.
|
|
3546
|
+
* @throws {RequiredError}
|
|
3547
|
+
*/
|
|
3548
|
+
public performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig) {
|
|
3549
|
+
return BrowserApiFp(this.configuration).performance(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
/**
|
|
3553
|
+
*
|
|
3554
|
+
* @summary Press keys on an element
|
|
3555
|
+
* @param {string} browserId Unique browser identifier
|
|
3556
|
+
* @param {PressKeysRequest} payload
|
|
3557
|
+
* @param {*} [options] Override http request option.
|
|
3558
|
+
* @throws {RequiredError}
|
|
3559
|
+
*/
|
|
3560
|
+
public pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig) {
|
|
3561
|
+
return BrowserApiFp(this.configuration).pressKeys(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
/**
|
|
3565
|
+
*
|
|
3566
|
+
* @summary Resize viewport
|
|
3567
|
+
* @param {string} browserId Unique browser identifier
|
|
3568
|
+
* @param {ResizeRequest} payload
|
|
3569
|
+
* @param {*} [options] Override http request option.
|
|
3570
|
+
* @throws {RequiredError}
|
|
3571
|
+
*/
|
|
3572
|
+
public resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig) {
|
|
3573
|
+
return BrowserApiFp(this.configuration).resize(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3574
|
+
}
|
|
3575
|
+
|
|
3576
|
+
/**
|
|
3577
|
+
*
|
|
3578
|
+
* @summary Scroll to element/coordinates (absolute) or by delta (relative)
|
|
3579
|
+
* @param {string} browserId Unique browser identifier
|
|
3580
|
+
* @param {CombinedScrollRequest} payload
|
|
3581
|
+
* @param {*} [options] Override http request option.
|
|
3582
|
+
* @throws {RequiredError}
|
|
3583
|
+
*/
|
|
3584
|
+
public scroll(browserId: string, payload: CombinedScrollRequest, options?: RawAxiosRequestConfig) {
|
|
3585
|
+
return BrowserApiFp(this.configuration).scroll(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
*
|
|
3590
|
+
* @summary Select dropdown: select option or get options
|
|
3591
|
+
* @param {string} browserId Unique browser identifier
|
|
3592
|
+
* @param {SelectRequest} payload
|
|
3593
|
+
* @param {*} [options] Override http request option.
|
|
3594
|
+
* @throws {RequiredError}
|
|
3595
|
+
*/
|
|
3596
|
+
public select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig) {
|
|
3597
|
+
return BrowserApiFp(this.configuration).select(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
*
|
|
3602
|
+
* @summary Manage browser tabs: list, new, switch, close, or current
|
|
3603
|
+
* @param {string} browserId Unique browser identifier
|
|
3604
|
+
* @param {TabsRequest} payload
|
|
3605
|
+
* @param {*} [options] Override http request option.
|
|
3606
|
+
* @throws {RequiredError}
|
|
3607
|
+
*/
|
|
3608
|
+
public tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig) {
|
|
3609
|
+
return BrowserApiFp(this.configuration).tabs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
3613
|
+
*
|
|
3614
|
+
* @summary Take a screenshot
|
|
3615
|
+
* @param {string} browserId Unique browser identifier
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
public takeScreenshot(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3620
|
+
return BrowserApiFp(this.configuration).takeScreenshot(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
*
|
|
3625
|
+
* @summary Take DOM/accessibility snapshot
|
|
3626
|
+
* @param {string} browserId Unique browser identifier
|
|
3627
|
+
* @param {SnapshotRequest} payload
|
|
3628
|
+
* @param {*} [options] Override http request option.
|
|
3629
|
+
* @throws {RequiredError}
|
|
3630
|
+
*/
|
|
3631
|
+
public takeSnapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig) {
|
|
3632
|
+
return BrowserApiFp(this.configuration).takeSnapshot(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
/**
|
|
3636
|
+
*
|
|
3637
|
+
* @summary Type text into an element
|
|
3638
|
+
* @param {string} browserId Unique browser identifier
|
|
3639
|
+
* @param {TypeRequest} payload
|
|
3640
|
+
* @param {*} [options] Override http request option.
|
|
3641
|
+
* @throws {RequiredError}
|
|
3642
|
+
*/
|
|
3643
|
+
public typeText(browserId: string, payload: TypeRequest, options?: RawAxiosRequestConfig) {
|
|
3644
|
+
return BrowserApiFp(this.configuration).typeText(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
/**
|
|
3648
|
+
*
|
|
3649
|
+
* @summary Upload a file
|
|
3650
|
+
* @param {string} browserId Unique browser identifier
|
|
3651
|
+
* @param {UploadFileRequest} payload
|
|
3652
|
+
* @param {*} [options] Override http request option.
|
|
3653
|
+
* @throws {RequiredError}
|
|
3654
|
+
*/
|
|
3655
|
+
public uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig) {
|
|
3656
|
+
return BrowserApiFp(this.configuration).uploadFile(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3657
|
+
}
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
*
|
|
3661
|
+
* @summary Wait for element to become visible or hidden
|
|
3662
|
+
* @param {string} browserId Unique browser identifier
|
|
3663
|
+
* @param {WaitElementRequest} payload
|
|
3664
|
+
* @param {*} [options] Override http request option.
|
|
3665
|
+
* @throws {RequiredError}
|
|
3666
|
+
*/
|
|
3667
|
+
public waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig) {
|
|
3668
|
+
return BrowserApiFp(this.configuration).waitElement(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
/**
|
|
3672
|
+
*
|
|
3673
|
+
* @summary Analyze visible page content using AI
|
|
3674
|
+
* @param {string} browserId Unique browser identifier
|
|
3675
|
+
* @param {*} [options] Override http request option.
|
|
3676
|
+
* @throws {RequiredError}
|
|
3677
|
+
*/
|
|
3678
|
+
public whatIsVisible(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3679
|
+
return BrowserApiFp(this.configuration).whatIsVisible(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* HealthApi - axios parameter creator
|
|
3687
|
+
*/
|
|
3688
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3689
|
+
return {
|
|
3690
|
+
/**
|
|
3691
|
+
*
|
|
3692
|
+
* @summary Check the health status of the browser pool
|
|
3693
|
+
* @param {*} [options] Override http request option.
|
|
3694
|
+
* @throws {RequiredError}
|
|
3695
|
+
*/
|
|
3696
|
+
healthCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3697
|
+
const localVarPath = `/health/`;
|
|
3698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3699
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3700
|
+
let baseOptions;
|
|
3701
|
+
if (configuration) {
|
|
3702
|
+
baseOptions = configuration.baseOptions;
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3705
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3706
|
+
const localVarHeaderParameter = {} as any;
|
|
3707
|
+
const localVarQueryParameter = {} as any;
|
|
3708
|
+
|
|
3709
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3710
|
+
|
|
3711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3713
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3714
|
+
|
|
3715
|
+
return {
|
|
3716
|
+
url: toPathString(localVarUrlObj),
|
|
3717
|
+
options: localVarRequestOptions,
|
|
3718
|
+
};
|
|
3719
|
+
},
|
|
3720
|
+
/**
|
|
3721
|
+
*
|
|
3722
|
+
* @summary Get Prometheus-style metrics for monitoring
|
|
3723
|
+
* @param {*} [options] Override http request option.
|
|
3724
|
+
* @throws {RequiredError}
|
|
3725
|
+
*/
|
|
3726
|
+
prometheusMetrics: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3727
|
+
const localVarPath = `/health/metrics`;
|
|
3728
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3729
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3730
|
+
let baseOptions;
|
|
3731
|
+
if (configuration) {
|
|
3732
|
+
baseOptions = configuration.baseOptions;
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3736
|
+
const localVarHeaderParameter = {} as any;
|
|
3737
|
+
const localVarQueryParameter = {} as any;
|
|
3738
|
+
|
|
3739
|
+
|
|
3740
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3741
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3742
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3743
|
+
|
|
3744
|
+
return {
|
|
3745
|
+
url: toPathString(localVarUrlObj),
|
|
3746
|
+
options: localVarRequestOptions,
|
|
3747
|
+
};
|
|
3748
|
+
},
|
|
3749
|
+
}
|
|
3750
|
+
};
|
|
3751
|
+
|
|
3752
|
+
/**
|
|
3753
|
+
* HealthApi - functional programming interface
|
|
3754
|
+
*/
|
|
3755
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
3756
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
3757
|
+
return {
|
|
3758
|
+
/**
|
|
3759
|
+
*
|
|
3760
|
+
* @summary Check the health status of the browser pool
|
|
3761
|
+
* @param {*} [options] Override http request option.
|
|
3762
|
+
* @throws {RequiredError}
|
|
3763
|
+
*/
|
|
3764
|
+
async healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthStatus>> {
|
|
3765
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheck(options);
|
|
3766
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3767
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.healthCheck']?.[localVarOperationServerIndex]?.url;
|
|
3768
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3769
|
+
},
|
|
3770
|
+
/**
|
|
3771
|
+
*
|
|
3772
|
+
* @summary Get Prometheus-style metrics for monitoring
|
|
3773
|
+
* @param {*} [options] Override http request option.
|
|
3774
|
+
* @throws {RequiredError}
|
|
3775
|
+
*/
|
|
3776
|
+
async prometheusMetrics(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3777
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.prometheusMetrics(options);
|
|
3778
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3779
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.prometheusMetrics']?.[localVarOperationServerIndex]?.url;
|
|
3780
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3781
|
+
},
|
|
3782
|
+
}
|
|
3783
|
+
};
|
|
3784
|
+
|
|
3785
|
+
/**
|
|
3786
|
+
* HealthApi - factory interface
|
|
3787
|
+
*/
|
|
3788
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3789
|
+
const localVarFp = HealthApiFp(configuration)
|
|
3790
|
+
return {
|
|
3791
|
+
/**
|
|
3792
|
+
*
|
|
3793
|
+
* @summary Check the health status of the browser pool
|
|
3794
|
+
* @param {*} [options] Override http request option.
|
|
3795
|
+
* @throws {RequiredError}
|
|
3796
|
+
*/
|
|
3797
|
+
healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<HealthStatus> {
|
|
3798
|
+
return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
|
|
3799
|
+
},
|
|
3800
|
+
/**
|
|
3801
|
+
*
|
|
3802
|
+
* @summary Get Prometheus-style metrics for monitoring
|
|
3803
|
+
* @param {*} [options] Override http request option.
|
|
3804
|
+
* @throws {RequiredError}
|
|
3805
|
+
*/
|
|
3806
|
+
prometheusMetrics(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3807
|
+
return localVarFp.prometheusMetrics(options).then((request) => request(axios, basePath));
|
|
3808
|
+
},
|
|
3809
|
+
};
|
|
3810
|
+
};
|
|
3811
|
+
|
|
3812
|
+
/**
|
|
3813
|
+
* HealthApi - object-oriented interface
|
|
3814
|
+
*/
|
|
3815
|
+
export class HealthApi extends BaseAPI {
|
|
3816
|
+
/**
|
|
3817
|
+
*
|
|
3818
|
+
* @summary Check the health status of the browser pool
|
|
3819
|
+
* @param {*} [options] Override http request option.
|
|
3820
|
+
* @throws {RequiredError}
|
|
3821
|
+
*/
|
|
3822
|
+
public healthCheck(options?: RawAxiosRequestConfig) {
|
|
3823
|
+
return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
/**
|
|
3827
|
+
*
|
|
3828
|
+
* @summary Get Prometheus-style metrics for monitoring
|
|
3829
|
+
* @param {*} [options] Override http request option.
|
|
3830
|
+
* @throws {RequiredError}
|
|
3831
|
+
*/
|
|
3832
|
+
public prometheusMetrics(options?: RawAxiosRequestConfig) {
|
|
3833
|
+
return HealthApiFp(this.configuration).prometheusMetrics(options).then((request) => request(this.axios, this.basePath));
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3837
|
+
|
|
3838
|
+
|
|
3839
|
+
/**
|
|
3840
|
+
* PoolApi - axios parameter creator
|
|
3841
|
+
*/
|
|
3842
|
+
export const PoolApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3843
|
+
return {
|
|
3844
|
+
/**
|
|
3845
|
+
*
|
|
3846
|
+
* @summary Scale the browser pool to a new maximum size
|
|
3847
|
+
* @param {ScalePool} payload
|
|
3848
|
+
* @param {*} [options] Override http request option.
|
|
3849
|
+
* @throws {RequiredError}
|
|
3850
|
+
*/
|
|
3851
|
+
scalePool: async (payload: ScalePool, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3852
|
+
// verify required parameter 'payload' is not null or undefined
|
|
3853
|
+
assertParamExists('scalePool', 'payload', payload)
|
|
3854
|
+
const localVarPath = `/pool/scale`;
|
|
3855
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3856
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3857
|
+
let baseOptions;
|
|
3858
|
+
if (configuration) {
|
|
3859
|
+
baseOptions = configuration.baseOptions;
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3863
|
+
const localVarHeaderParameter = {} as any;
|
|
3864
|
+
const localVarQueryParameter = {} as any;
|
|
3865
|
+
|
|
3866
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3867
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3868
|
+
|
|
3869
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3871
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3872
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
3873
|
+
|
|
3874
|
+
return {
|
|
3875
|
+
url: toPathString(localVarUrlObj),
|
|
3876
|
+
options: localVarRequestOptions,
|
|
3877
|
+
};
|
|
3878
|
+
},
|
|
3879
|
+
/**
|
|
3880
|
+
*
|
|
3881
|
+
* @summary Gracefully shutdown the browser pool server
|
|
3882
|
+
* @param {*} [options] Override http request option.
|
|
3883
|
+
* @throws {RequiredError}
|
|
3884
|
+
*/
|
|
3885
|
+
shutdownServer: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3886
|
+
const localVarPath = `/pool/shutdown`;
|
|
3887
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3888
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3889
|
+
let baseOptions;
|
|
3890
|
+
if (configuration) {
|
|
3891
|
+
baseOptions = configuration.baseOptions;
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3895
|
+
const localVarHeaderParameter = {} as any;
|
|
3896
|
+
const localVarQueryParameter = {} as any;
|
|
3897
|
+
|
|
3898
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3899
|
+
|
|
3900
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3902
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3903
|
+
|
|
3904
|
+
return {
|
|
3905
|
+
url: toPathString(localVarUrlObj),
|
|
3906
|
+
options: localVarRequestOptions,
|
|
3907
|
+
};
|
|
3908
|
+
},
|
|
3909
|
+
}
|
|
3910
|
+
};
|
|
3911
|
+
|
|
3912
|
+
/**
|
|
3913
|
+
* PoolApi - functional programming interface
|
|
3914
|
+
*/
|
|
3915
|
+
export const PoolApiFp = function(configuration?: Configuration) {
|
|
3916
|
+
const localVarAxiosParamCreator = PoolApiAxiosParamCreator(configuration)
|
|
3917
|
+
return {
|
|
3918
|
+
/**
|
|
3919
|
+
*
|
|
3920
|
+
* @summary Scale the browser pool to a new maximum size
|
|
3921
|
+
* @param {ScalePool} payload
|
|
3922
|
+
* @param {*} [options] Override http request option.
|
|
3923
|
+
* @throws {RequiredError}
|
|
3924
|
+
*/
|
|
3925
|
+
async scalePool(payload: ScalePool, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoolScaled>> {
|
|
3926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scalePool(payload, options);
|
|
3927
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3928
|
+
const localVarOperationServerBasePath = operationServerMap['PoolApi.scalePool']?.[localVarOperationServerIndex]?.url;
|
|
3929
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3930
|
+
},
|
|
3931
|
+
/**
|
|
3932
|
+
*
|
|
3933
|
+
* @summary Gracefully shutdown the browser pool server
|
|
3934
|
+
* @param {*} [options] Override http request option.
|
|
3935
|
+
* @throws {RequiredError}
|
|
3936
|
+
*/
|
|
3937
|
+
async shutdownServer(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponse>> {
|
|
3938
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shutdownServer(options);
|
|
3939
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3940
|
+
const localVarOperationServerBasePath = operationServerMap['PoolApi.shutdownServer']?.[localVarOperationServerIndex]?.url;
|
|
3941
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3942
|
+
},
|
|
3943
|
+
}
|
|
3944
|
+
};
|
|
3945
|
+
|
|
3946
|
+
/**
|
|
3947
|
+
* PoolApi - factory interface
|
|
3948
|
+
*/
|
|
3949
|
+
export const PoolApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3950
|
+
const localVarFp = PoolApiFp(configuration)
|
|
3951
|
+
return {
|
|
3952
|
+
/**
|
|
3953
|
+
*
|
|
3954
|
+
* @summary Scale the browser pool to a new maximum size
|
|
3955
|
+
* @param {ScalePool} payload
|
|
3956
|
+
* @param {*} [options] Override http request option.
|
|
3957
|
+
* @throws {RequiredError}
|
|
3958
|
+
*/
|
|
3959
|
+
scalePool(payload: ScalePool, options?: RawAxiosRequestConfig): AxiosPromise<PoolScaled> {
|
|
3960
|
+
return localVarFp.scalePool(payload, options).then((request) => request(axios, basePath));
|
|
3961
|
+
},
|
|
3962
|
+
/**
|
|
3963
|
+
*
|
|
3964
|
+
* @summary Gracefully shutdown the browser pool server
|
|
3965
|
+
* @param {*} [options] Override http request option.
|
|
3966
|
+
* @throws {RequiredError}
|
|
3967
|
+
*/
|
|
3968
|
+
shutdownServer(options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse> {
|
|
3969
|
+
return localVarFp.shutdownServer(options).then((request) => request(axios, basePath));
|
|
3970
|
+
},
|
|
3971
|
+
};
|
|
3972
|
+
};
|
|
3973
|
+
|
|
3974
|
+
/**
|
|
3975
|
+
* PoolApi - object-oriented interface
|
|
3976
|
+
*/
|
|
3977
|
+
export class PoolApi extends BaseAPI {
|
|
3978
|
+
/**
|
|
3979
|
+
*
|
|
3980
|
+
* @summary Scale the browser pool to a new maximum size
|
|
3981
|
+
* @param {ScalePool} payload
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
*/
|
|
3985
|
+
public scalePool(payload: ScalePool, options?: RawAxiosRequestConfig) {
|
|
3986
|
+
return PoolApiFp(this.configuration).scalePool(payload, options).then((request) => request(this.axios, this.basePath));
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
/**
|
|
3990
|
+
*
|
|
3991
|
+
* @summary Gracefully shutdown the browser pool server
|
|
3992
|
+
* @param {*} [options] Override http request option.
|
|
3993
|
+
* @throws {RequiredError}
|
|
3994
|
+
*/
|
|
3995
|
+
public shutdownServer(options?: RawAxiosRequestConfig) {
|
|
3996
|
+
return PoolApiFp(this.configuration).shutdownServer(options).then((request) => request(this.axios, this.basePath));
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
/**
|
|
4003
|
+
* ProfilesApi - axios parameter creator
|
|
4004
|
+
*/
|
|
4005
|
+
export const ProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4006
|
+
return {
|
|
4007
|
+
/**
|
|
4008
|
+
*
|
|
4009
|
+
* @summary Create a new browser profile
|
|
4010
|
+
* @param {CreateProfileRequest} payload
|
|
4011
|
+
* @param {*} [options] Override http request option.
|
|
4012
|
+
* @throws {RequiredError}
|
|
4013
|
+
*/
|
|
4014
|
+
createProfile: async (payload: CreateProfileRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4015
|
+
// verify required parameter 'payload' is not null or undefined
|
|
4016
|
+
assertParamExists('createProfile', 'payload', payload)
|
|
4017
|
+
const localVarPath = `/profiles/`;
|
|
4018
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4019
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4020
|
+
let baseOptions;
|
|
4021
|
+
if (configuration) {
|
|
4022
|
+
baseOptions = configuration.baseOptions;
|
|
4023
|
+
}
|
|
4024
|
+
|
|
4025
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4026
|
+
const localVarHeaderParameter = {} as any;
|
|
4027
|
+
const localVarQueryParameter = {} as any;
|
|
4028
|
+
|
|
4029
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4030
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4031
|
+
|
|
4032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4034
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4035
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
4036
|
+
|
|
4037
|
+
return {
|
|
4038
|
+
url: toPathString(localVarUrlObj),
|
|
4039
|
+
options: localVarRequestOptions,
|
|
4040
|
+
};
|
|
4041
|
+
},
|
|
4042
|
+
/**
|
|
4043
|
+
*
|
|
4044
|
+
* @summary Delete a browser profile
|
|
4045
|
+
* @param {string} profileName Profile name
|
|
4046
|
+
* @param {*} [options] Override http request option.
|
|
4047
|
+
* @throws {RequiredError}
|
|
4048
|
+
*/
|
|
4049
|
+
deleteProfile: async (profileName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4050
|
+
// verify required parameter 'profileName' is not null or undefined
|
|
4051
|
+
assertParamExists('deleteProfile', 'profileName', profileName)
|
|
4052
|
+
const localVarPath = `/profiles/{profile_name}`
|
|
4053
|
+
.replace(`{${"profile_name"}}`, encodeURIComponent(String(profileName)));
|
|
4054
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4055
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4056
|
+
let baseOptions;
|
|
4057
|
+
if (configuration) {
|
|
4058
|
+
baseOptions = configuration.baseOptions;
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4062
|
+
const localVarHeaderParameter = {} as any;
|
|
4063
|
+
const localVarQueryParameter = {} as any;
|
|
4064
|
+
|
|
4065
|
+
|
|
4066
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4067
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4068
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4069
|
+
|
|
4070
|
+
return {
|
|
4071
|
+
url: toPathString(localVarUrlObj),
|
|
4072
|
+
options: localVarRequestOptions,
|
|
4073
|
+
};
|
|
4074
|
+
},
|
|
4075
|
+
/**
|
|
4076
|
+
*
|
|
4077
|
+
* @summary Get profile information
|
|
4078
|
+
* @param {string} profileName Profile name
|
|
4079
|
+
* @param {*} [options] Override http request option.
|
|
4080
|
+
* @throws {RequiredError}
|
|
4081
|
+
*/
|
|
4082
|
+
getProfile: async (profileName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4083
|
+
// verify required parameter 'profileName' is not null or undefined
|
|
4084
|
+
assertParamExists('getProfile', 'profileName', profileName)
|
|
4085
|
+
const localVarPath = `/profiles/{profile_name}`
|
|
4086
|
+
.replace(`{${"profile_name"}}`, encodeURIComponent(String(profileName)));
|
|
4087
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4088
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4089
|
+
let baseOptions;
|
|
4090
|
+
if (configuration) {
|
|
4091
|
+
baseOptions = configuration.baseOptions;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4095
|
+
const localVarHeaderParameter = {} as any;
|
|
4096
|
+
const localVarQueryParameter = {} as any;
|
|
4097
|
+
|
|
4098
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4099
|
+
|
|
4100
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4102
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4103
|
+
|
|
4104
|
+
return {
|
|
4105
|
+
url: toPathString(localVarUrlObj),
|
|
4106
|
+
options: localVarRequestOptions,
|
|
4107
|
+
};
|
|
4108
|
+
},
|
|
4109
|
+
/**
|
|
4110
|
+
*
|
|
4111
|
+
* @summary List all browser profiles
|
|
4112
|
+
* @param {*} [options] Override http request option.
|
|
4113
|
+
* @throws {RequiredError}
|
|
4114
|
+
*/
|
|
4115
|
+
listProfiles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4116
|
+
const localVarPath = `/profiles/`;
|
|
4117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4119
|
+
let baseOptions;
|
|
4120
|
+
if (configuration) {
|
|
4121
|
+
baseOptions = configuration.baseOptions;
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4125
|
+
const localVarHeaderParameter = {} as any;
|
|
4126
|
+
const localVarQueryParameter = {} as any;
|
|
4127
|
+
|
|
4128
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4129
|
+
|
|
4130
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4132
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4133
|
+
|
|
4134
|
+
return {
|
|
4135
|
+
url: toPathString(localVarUrlObj),
|
|
4136
|
+
options: localVarRequestOptions,
|
|
4137
|
+
};
|
|
4138
|
+
},
|
|
4139
|
+
}
|
|
4140
|
+
};
|
|
4141
|
+
|
|
4142
|
+
/**
|
|
4143
|
+
* ProfilesApi - functional programming interface
|
|
4144
|
+
*/
|
|
4145
|
+
export const ProfilesApiFp = function(configuration?: Configuration) {
|
|
4146
|
+
const localVarAxiosParamCreator = ProfilesApiAxiosParamCreator(configuration)
|
|
4147
|
+
return {
|
|
4148
|
+
/**
|
|
4149
|
+
*
|
|
4150
|
+
* @summary Create a new browser profile
|
|
4151
|
+
* @param {CreateProfileRequest} payload
|
|
4152
|
+
* @param {*} [options] Override http request option.
|
|
4153
|
+
* @throws {RequiredError}
|
|
4154
|
+
*/
|
|
4155
|
+
async createProfile(payload: CreateProfileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileResponse>> {
|
|
4156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createProfile(payload, options);
|
|
4157
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4158
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.createProfile']?.[localVarOperationServerIndex]?.url;
|
|
4159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4160
|
+
},
|
|
4161
|
+
/**
|
|
4162
|
+
*
|
|
4163
|
+
* @summary Delete a browser profile
|
|
4164
|
+
* @param {string} profileName Profile name
|
|
4165
|
+
* @param {*} [options] Override http request option.
|
|
4166
|
+
* @throws {RequiredError}
|
|
4167
|
+
*/
|
|
4168
|
+
async deleteProfile(profileName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfile(profileName, options);
|
|
4170
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4171
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.deleteProfile']?.[localVarOperationServerIndex]?.url;
|
|
4172
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4173
|
+
},
|
|
4174
|
+
/**
|
|
4175
|
+
*
|
|
4176
|
+
* @summary Get profile information
|
|
4177
|
+
* @param {string} profileName Profile name
|
|
4178
|
+
* @param {*} [options] Override http request option.
|
|
4179
|
+
* @throws {RequiredError}
|
|
4180
|
+
*/
|
|
4181
|
+
async getProfile(profileName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileResponse>> {
|
|
4182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProfile(profileName, options);
|
|
4183
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4184
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.getProfile']?.[localVarOperationServerIndex]?.url;
|
|
4185
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4186
|
+
},
|
|
4187
|
+
/**
|
|
4188
|
+
*
|
|
4189
|
+
* @summary List all browser profiles
|
|
4190
|
+
* @param {*} [options] Override http request option.
|
|
4191
|
+
* @throws {RequiredError}
|
|
4192
|
+
*/
|
|
4193
|
+
async listProfiles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileListResponse>> {
|
|
4194
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProfiles(options);
|
|
4195
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4196
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.listProfiles']?.[localVarOperationServerIndex]?.url;
|
|
4197
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4198
|
+
},
|
|
4199
|
+
}
|
|
4200
|
+
};
|
|
4201
|
+
|
|
4202
|
+
/**
|
|
4203
|
+
* ProfilesApi - factory interface
|
|
4204
|
+
*/
|
|
4205
|
+
export const ProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4206
|
+
const localVarFp = ProfilesApiFp(configuration)
|
|
4207
|
+
return {
|
|
4208
|
+
/**
|
|
4209
|
+
*
|
|
4210
|
+
* @summary Create a new browser profile
|
|
4211
|
+
* @param {CreateProfileRequest} payload
|
|
4212
|
+
* @param {*} [options] Override http request option.
|
|
4213
|
+
* @throws {RequiredError}
|
|
4214
|
+
*/
|
|
4215
|
+
createProfile(payload: CreateProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProfileResponse> {
|
|
4216
|
+
return localVarFp.createProfile(payload, options).then((request) => request(axios, basePath));
|
|
4217
|
+
},
|
|
4218
|
+
/**
|
|
4219
|
+
*
|
|
4220
|
+
* @summary Delete a browser profile
|
|
4221
|
+
* @param {string} profileName Profile name
|
|
4222
|
+
* @param {*} [options] Override http request option.
|
|
4223
|
+
* @throws {RequiredError}
|
|
4224
|
+
*/
|
|
4225
|
+
deleteProfile(profileName: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4226
|
+
return localVarFp.deleteProfile(profileName, options).then((request) => request(axios, basePath));
|
|
4227
|
+
},
|
|
4228
|
+
/**
|
|
4229
|
+
*
|
|
4230
|
+
* @summary Get profile information
|
|
4231
|
+
* @param {string} profileName Profile name
|
|
4232
|
+
* @param {*} [options] Override http request option.
|
|
4233
|
+
* @throws {RequiredError}
|
|
4234
|
+
*/
|
|
4235
|
+
getProfile(profileName: string, options?: RawAxiosRequestConfig): AxiosPromise<ProfileResponse> {
|
|
4236
|
+
return localVarFp.getProfile(profileName, options).then((request) => request(axios, basePath));
|
|
4237
|
+
},
|
|
4238
|
+
/**
|
|
4239
|
+
*
|
|
4240
|
+
* @summary List all browser profiles
|
|
4241
|
+
* @param {*} [options] Override http request option.
|
|
4242
|
+
* @throws {RequiredError}
|
|
4243
|
+
*/
|
|
4244
|
+
listProfiles(options?: RawAxiosRequestConfig): AxiosPromise<ProfileListResponse> {
|
|
4245
|
+
return localVarFp.listProfiles(options).then((request) => request(axios, basePath));
|
|
4246
|
+
},
|
|
4247
|
+
};
|
|
4248
|
+
};
|
|
4249
|
+
|
|
4250
|
+
/**
|
|
4251
|
+
* ProfilesApi - object-oriented interface
|
|
4252
|
+
*/
|
|
4253
|
+
export class ProfilesApi extends BaseAPI {
|
|
4254
|
+
/**
|
|
4255
|
+
*
|
|
4256
|
+
* @summary Create a new browser profile
|
|
4257
|
+
* @param {CreateProfileRequest} payload
|
|
4258
|
+
* @param {*} [options] Override http request option.
|
|
4259
|
+
* @throws {RequiredError}
|
|
4260
|
+
*/
|
|
4261
|
+
public createProfile(payload: CreateProfileRequest, options?: RawAxiosRequestConfig) {
|
|
4262
|
+
return ProfilesApiFp(this.configuration).createProfile(payload, options).then((request) => request(this.axios, this.basePath));
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
/**
|
|
4266
|
+
*
|
|
4267
|
+
* @summary Delete a browser profile
|
|
4268
|
+
* @param {string} profileName Profile name
|
|
4269
|
+
* @param {*} [options] Override http request option.
|
|
4270
|
+
* @throws {RequiredError}
|
|
4271
|
+
*/
|
|
4272
|
+
public deleteProfile(profileName: string, options?: RawAxiosRequestConfig) {
|
|
4273
|
+
return ProfilesApiFp(this.configuration).deleteProfile(profileName, options).then((request) => request(this.axios, this.basePath));
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
/**
|
|
4277
|
+
*
|
|
4278
|
+
* @summary Get profile information
|
|
4279
|
+
* @param {string} profileName Profile name
|
|
4280
|
+
* @param {*} [options] Override http request option.
|
|
4281
|
+
* @throws {RequiredError}
|
|
4282
|
+
*/
|
|
4283
|
+
public getProfile(profileName: string, options?: RawAxiosRequestConfig) {
|
|
4284
|
+
return ProfilesApiFp(this.configuration).getProfile(profileName, options).then((request) => request(this.axios, this.basePath));
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
/**
|
|
4288
|
+
*
|
|
4289
|
+
* @summary List all browser profiles
|
|
4290
|
+
* @param {*} [options] Override http request option.
|
|
4291
|
+
* @throws {RequiredError}
|
|
4292
|
+
*/
|
|
4293
|
+
public listProfiles(options?: RawAxiosRequestConfig) {
|
|
4294
|
+
return ProfilesApiFp(this.configuration).listProfiles(options).then((request) => request(this.axios, this.basePath));
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
|
|
4298
|
+
|
|
4299
|
+
|