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.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +74 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +165 -0
  5. package/api.ts +4299 -0
  6. package/base.ts +62 -0
  7. package/common.ts +113 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +2543 -0
  10. package/dist/api.js +3260 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +46 -0
  13. package/dist/common.d.ts +28 -0
  14. package/dist/common.js +124 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +2543 -0
  18. package/dist/esm/api.js +3241 -0
  19. package/dist/esm/base.d.ts +42 -0
  20. package/dist/esm/base.js +41 -0
  21. package/dist/esm/common.d.ts +28 -0
  22. package/dist/esm/common.js +112 -0
  23. package/dist/esm/configuration.d.ts +98 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/ActionResult.md +26 -0
  30. package/docs/AttributeResponse.md +26 -0
  31. package/docs/BaseResponse.md +24 -0
  32. package/docs/BrowserApi.md +1922 -0
  33. package/docs/BrowserConfig.md +36 -0
  34. package/docs/BrowserCreated.md +26 -0
  35. package/docs/BrowserCreationData.md +22 -0
  36. package/docs/BrowserInfoResponse.md +26 -0
  37. package/docs/BrowserList.md +26 -0
  38. package/docs/BrowserListData.md +22 -0
  39. package/docs/CheckElementRequest.md +24 -0
  40. package/docs/ClickRequest.md +26 -0
  41. package/docs/CombinedDialogRequest.md +22 -0
  42. package/docs/CombinedEmulateRequest.md +32 -0
  43. package/docs/CombinedGuiClickRequest.md +30 -0
  44. package/docs/CombinedScrollRequest.md +32 -0
  45. package/docs/ConsoleLogsRequest.md +22 -0
  46. package/docs/ContentData.md +24 -0
  47. package/docs/ContentResponse.md +26 -0
  48. package/docs/CreateProfileRequest.md +20 -0
  49. package/docs/DetectCoordinatesRequest.md +20 -0
  50. package/docs/DetectCoordinatesResult.md +44 -0
  51. package/docs/ElementDataRequest.md +26 -0
  52. package/docs/ErrorResponse.md +24 -0
  53. package/docs/ExecuteData.md +20 -0
  54. package/docs/ExecuteRequest.md +22 -0
  55. package/docs/ExecuteResponse.md +26 -0
  56. package/docs/FillFormRequest.md +22 -0
  57. package/docs/FormField.md +22 -0
  58. package/docs/HealthApi.md +95 -0
  59. package/docs/HealthStatus.md +24 -0
  60. package/docs/HistoryRequest.md +20 -0
  61. package/docs/LogsResponse.md +26 -0
  62. package/docs/MouseRequest.md +28 -0
  63. package/docs/NavigateRequest.md +22 -0
  64. package/docs/NetworkLogsRequest.md +22 -0
  65. package/docs/PerformanceRequest.md +22 -0
  66. package/docs/PoolApi.md +104 -0
  67. package/docs/PoolScaled.md +26 -0
  68. package/docs/PoolStatusResponse.md +26 -0
  69. package/docs/PressKeysRequest.md +24 -0
  70. package/docs/ProfileInfo.md +28 -0
  71. package/docs/ProfileListData.md +20 -0
  72. package/docs/ProfileListResponse.md +26 -0
  73. package/docs/ProfileResponse.md +26 -0
  74. package/docs/ProfilesApi.md +209 -0
  75. package/docs/ResizeRequest.md +22 -0
  76. package/docs/ScaleData.md +20 -0
  77. package/docs/ScalePool.md +20 -0
  78. package/docs/ScreenshotData.md +22 -0
  79. package/docs/ScreenshotResponse.md +26 -0
  80. package/docs/SelectRequest.md +30 -0
  81. package/docs/SnapshotRequest.md +20 -0
  82. package/docs/SuccessResponse.md +26 -0
  83. package/docs/TabsRequest.md +26 -0
  84. package/docs/TypeRequest.md +26 -0
  85. package/docs/UploadFileRequest.md +24 -0
  86. package/docs/UrlData.md +20 -0
  87. package/docs/UrlResponse.md +26 -0
  88. package/docs/WaitElementRequest.md +26 -0
  89. package/docs/WhatIsVisibleResult.md +34 -0
  90. package/git_push.sh +57 -0
  91. package/index.ts +18 -0
  92. package/package.json +33 -0
  93. package/tsconfig.esm.json +7 -0
  94. package/tsconfig.json +18 -0
package/dist/api.js ADDED
@@ -0,0 +1,3260 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Airbrowser API
6
+ * Undetectable Chrome-in-Docker for developers and agents (REST + MCP)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PoolApi = exports.PoolApiFactory = exports.PoolApiFp = exports.PoolApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.BrowserApi = exports.BrowserApiFactory = exports.BrowserApiFp = exports.BrowserApiAxiosParamCreator = exports.WaitElementRequestUntilEnum = exports.TabsRequestActionEnum = exports.SelectRequestActionEnum = exports.PerformanceRequestActionEnum = exports.NetworkLogsRequestActionEnum = exports.HistoryRequestActionEnum = exports.ElementDataRequestTypeEnum = exports.ConsoleLogsRequestActionEnum = exports.CombinedEmulateRequestActionEnum = exports.CombinedDialogRequestActionEnum = exports.CheckElementRequestCheckEnum = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ exports.CheckElementRequestCheckEnum = {
33
+ Exists: 'exists',
34
+ Visible: 'visible'
35
+ };
36
+ exports.CombinedDialogRequestActionEnum = {
37
+ Get: 'get',
38
+ Accept: 'accept',
39
+ Dismiss: 'dismiss'
40
+ };
41
+ exports.CombinedEmulateRequestActionEnum = {
42
+ Set: 'set',
43
+ Clear: 'clear',
44
+ ListDevices: 'list_devices'
45
+ };
46
+ exports.ConsoleLogsRequestActionEnum = {
47
+ Get: 'get',
48
+ Clear: 'clear'
49
+ };
50
+ exports.ElementDataRequestTypeEnum = {
51
+ Text: 'text',
52
+ Attribute: 'attribute',
53
+ Property: 'property'
54
+ };
55
+ exports.HistoryRequestActionEnum = {
56
+ Back: 'back',
57
+ Forward: 'forward',
58
+ Refresh: 'refresh'
59
+ };
60
+ exports.NetworkLogsRequestActionEnum = {
61
+ Get: 'get',
62
+ Clear: 'clear'
63
+ };
64
+ exports.PerformanceRequestActionEnum = {
65
+ StartTrace: 'start_trace',
66
+ StopTrace: 'stop_trace',
67
+ Metrics: 'metrics',
68
+ Analyze: 'analyze'
69
+ };
70
+ exports.SelectRequestActionEnum = {
71
+ Select: 'select',
72
+ Options: 'options'
73
+ };
74
+ exports.TabsRequestActionEnum = {
75
+ List: 'list',
76
+ New: 'new',
77
+ Switch: 'switch',
78
+ Close: 'close',
79
+ Current: 'current'
80
+ };
81
+ exports.WaitElementRequestUntilEnum = {
82
+ Visible: 'visible',
83
+ Hidden: 'hidden'
84
+ };
85
+ /**
86
+ * BrowserApi - axios parameter creator
87
+ */
88
+ const BrowserApiAxiosParamCreator = function (configuration) {
89
+ return {
90
+ /**
91
+ *
92
+ * @summary Check if element exists or is visible
93
+ * @param {string} browserId Unique browser identifier
94
+ * @param {CheckElementRequest} payload
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ checkElement: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
99
+ // verify required parameter 'browserId' is not null or undefined
100
+ (0, common_1.assertParamExists)('checkElement', 'browserId', browserId);
101
+ // verify required parameter 'payload' is not null or undefined
102
+ (0, common_1.assertParamExists)('checkElement', 'payload', payload);
103
+ const localVarPath = `/browser/{browser_id}/check_element`
104
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ }
111
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
112
+ const localVarHeaderParameter = {};
113
+ const localVarQueryParameter = {};
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+ localVarHeaderParameter['Accept'] = 'application/json';
116
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
119
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
120
+ return {
121
+ url: (0, common_1.toPathString)(localVarUrlObj),
122
+ options: localVarRequestOptions,
123
+ };
124
+ }),
125
+ /**
126
+ * Use if_visible=true to only click if visible.
127
+ * @summary Click element
128
+ * @param {string} browserId Unique browser identifier
129
+ * @param {ClickRequest} payload
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ */
133
+ click: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
134
+ // verify required parameter 'browserId' is not null or undefined
135
+ (0, common_1.assertParamExists)('click', 'browserId', browserId);
136
+ // verify required parameter 'payload' is not null or undefined
137
+ (0, common_1.assertParamExists)('click', 'payload', payload);
138
+ const localVarPath = `/browser/{browser_id}/click`
139
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
141
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
142
+ let baseOptions;
143
+ if (configuration) {
144
+ baseOptions = configuration.baseOptions;
145
+ }
146
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
147
+ const localVarHeaderParameter = {};
148
+ const localVarQueryParameter = {};
149
+ localVarHeaderParameter['Content-Type'] = 'application/json';
150
+ localVarHeaderParameter['Accept'] = 'application/json';
151
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
152
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
154
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
155
+ return {
156
+ url: (0, common_1.toPathString)(localVarUrlObj),
157
+ options: localVarRequestOptions,
158
+ };
159
+ }),
160
+ /**
161
+ *
162
+ * @summary Close all active browser instances
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ closeAllBrowsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
167
+ const localVarPath = `/browser/close_all`;
168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
170
+ let baseOptions;
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ }
174
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
175
+ const localVarHeaderParameter = {};
176
+ const localVarQueryParameter = {};
177
+ localVarHeaderParameter['Accept'] = 'application/json';
178
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
179
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
180
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
181
+ return {
182
+ url: (0, common_1.toPathString)(localVarUrlObj),
183
+ options: localVarRequestOptions,
184
+ };
185
+ }),
186
+ /**
187
+ *
188
+ * @summary Close a browser instance
189
+ * @param {string} browserId Unique browser identifier
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ closeBrowser: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
194
+ // verify required parameter 'browserId' is not null or undefined
195
+ (0, common_1.assertParamExists)('closeBrowser', 'browserId', browserId);
196
+ const localVarPath = `/browser/{browser_id}/close`
197
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
200
+ let baseOptions;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ }
204
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
205
+ const localVarHeaderParameter = {};
206
+ const localVarQueryParameter = {};
207
+ localVarHeaderParameter['Accept'] = 'application/json';
208
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
209
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
210
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
211
+ return {
212
+ url: (0, common_1.toPathString)(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ };
215
+ }),
216
+ /**
217
+ *
218
+ * @summary Get or clear console logs
219
+ * @param {string} browserId Unique browser identifier
220
+ * @param {ConsoleLogsRequest} payload
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ consoleLogs: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
225
+ // verify required parameter 'browserId' is not null or undefined
226
+ (0, common_1.assertParamExists)('consoleLogs', 'browserId', browserId);
227
+ // verify required parameter 'payload' is not null or undefined
228
+ (0, common_1.assertParamExists)('consoleLogs', 'payload', payload);
229
+ const localVarPath = `/browser/{browser_id}/console`
230
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
231
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
233
+ let baseOptions;
234
+ if (configuration) {
235
+ baseOptions = configuration.baseOptions;
236
+ }
237
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
238
+ const localVarHeaderParameter = {};
239
+ const localVarQueryParameter = {};
240
+ localVarHeaderParameter['Content-Type'] = 'application/json';
241
+ localVarHeaderParameter['Accept'] = 'application/json';
242
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
245
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
246
+ return {
247
+ url: (0, common_1.toPathString)(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ };
250
+ }),
251
+ /**
252
+ *
253
+ * @summary Create a new browser instance
254
+ * @param {BrowserConfig} payload
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ createBrowser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
259
+ // verify required parameter 'payload' is not null or undefined
260
+ (0, common_1.assertParamExists)('createBrowser', 'payload', payload);
261
+ const localVarPath = `/browser/create`;
262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
263
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
264
+ let baseOptions;
265
+ if (configuration) {
266
+ baseOptions = configuration.baseOptions;
267
+ }
268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
269
+ const localVarHeaderParameter = {};
270
+ const localVarQueryParameter = {};
271
+ localVarHeaderParameter['Content-Type'] = 'application/json';
272
+ localVarHeaderParameter['Accept'] = 'application/json';
273
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
276
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
277
+ return {
278
+ url: (0, common_1.toPathString)(localVarUrlObj),
279
+ options: localVarRequestOptions,
280
+ };
281
+ }),
282
+ /**
283
+ *
284
+ * @summary Close and remove a browser instance
285
+ * @param {string} browserId Unique browser identifier
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ deleteBrowser: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
290
+ // verify required parameter 'browserId' is not null or undefined
291
+ (0, common_1.assertParamExists)('deleteBrowser', 'browserId', browserId);
292
+ const localVarPath = `/browser/{browser_id}`
293
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
294
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
295
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
296
+ let baseOptions;
297
+ if (configuration) {
298
+ baseOptions = configuration.baseOptions;
299
+ }
300
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
301
+ const localVarHeaderParameter = {};
302
+ const localVarQueryParameter = {};
303
+ localVarHeaderParameter['Accept'] = 'application/json';
304
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
305
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
307
+ return {
308
+ url: (0, common_1.toPathString)(localVarUrlObj),
309
+ options: localVarRequestOptions,
310
+ };
311
+ }),
312
+ /**
313
+ *
314
+ * @summary Detect element coordinates using AI vision
315
+ * @param {string} browserId Unique browser identifier
316
+ * @param {DetectCoordinatesRequest} payload
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ detectCoordinates: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
321
+ // verify required parameter 'browserId' is not null or undefined
322
+ (0, common_1.assertParamExists)('detectCoordinates', 'browserId', browserId);
323
+ // verify required parameter 'payload' is not null or undefined
324
+ (0, common_1.assertParamExists)('detectCoordinates', 'payload', payload);
325
+ const localVarPath = `/browser/{browser_id}/detect_coordinates`
326
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
328
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
329
+ let baseOptions;
330
+ if (configuration) {
331
+ baseOptions = configuration.baseOptions;
332
+ }
333
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
334
+ const localVarHeaderParameter = {};
335
+ const localVarQueryParameter = {};
336
+ localVarHeaderParameter['Content-Type'] = 'application/json';
337
+ localVarHeaderParameter['Accept'] = 'application/json';
338
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
339
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
340
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
341
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
342
+ return {
343
+ url: (0, common_1.toPathString)(localVarUrlObj),
344
+ options: localVarRequestOptions,
345
+ };
346
+ }),
347
+ /**
348
+ *
349
+ * @summary Manage browser dialogs: get, accept, or dismiss
350
+ * @param {string} browserId Unique browser identifier
351
+ * @param {CombinedDialogRequest} payload
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ dialog: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
356
+ // verify required parameter 'browserId' is not null or undefined
357
+ (0, common_1.assertParamExists)('dialog', 'browserId', browserId);
358
+ // verify required parameter 'payload' is not null or undefined
359
+ (0, common_1.assertParamExists)('dialog', 'payload', payload);
360
+ const localVarPath = `/browser/{browser_id}/dialog`
361
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
362
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
363
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
364
+ let baseOptions;
365
+ if (configuration) {
366
+ baseOptions = configuration.baseOptions;
367
+ }
368
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
369
+ const localVarHeaderParameter = {};
370
+ const localVarQueryParameter = {};
371
+ localVarHeaderParameter['Content-Type'] = 'application/json';
372
+ localVarHeaderParameter['Accept'] = 'application/json';
373
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
375
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
376
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
377
+ return {
378
+ url: (0, common_1.toPathString)(localVarUrlObj),
379
+ options: localVarRequestOptions,
380
+ };
381
+ }),
382
+ /**
383
+ *
384
+ * @summary Manage device emulation: set, clear, or list_devices
385
+ * @param {string} browserId Unique browser identifier
386
+ * @param {CombinedEmulateRequest} payload
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ emulate: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
391
+ // verify required parameter 'browserId' is not null or undefined
392
+ (0, common_1.assertParamExists)('emulate', 'browserId', browserId);
393
+ // verify required parameter 'payload' is not null or undefined
394
+ (0, common_1.assertParamExists)('emulate', 'payload', payload);
395
+ const localVarPath = `/browser/{browser_id}/emulate`
396
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
397
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
398
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
399
+ let baseOptions;
400
+ if (configuration) {
401
+ baseOptions = configuration.baseOptions;
402
+ }
403
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
404
+ const localVarHeaderParameter = {};
405
+ const localVarQueryParameter = {};
406
+ localVarHeaderParameter['Content-Type'] = 'application/json';
407
+ localVarHeaderParameter['Accept'] = 'application/json';
408
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
410
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
411
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
412
+ return {
413
+ url: (0, common_1.toPathString)(localVarUrlObj),
414
+ options: localVarRequestOptions,
415
+ };
416
+ }),
417
+ /**
418
+ *
419
+ * @summary Execute JavaScript
420
+ * @param {string} browserId Unique browser identifier
421
+ * @param {ExecuteRequest} payload
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ executeScript: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
426
+ // verify required parameter 'browserId' is not null or undefined
427
+ (0, common_1.assertParamExists)('executeScript', 'browserId', browserId);
428
+ // verify required parameter 'payload' is not null or undefined
429
+ (0, common_1.assertParamExists)('executeScript', 'payload', payload);
430
+ const localVarPath = `/browser/{browser_id}/execute`
431
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
433
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
434
+ let baseOptions;
435
+ if (configuration) {
436
+ baseOptions = configuration.baseOptions;
437
+ }
438
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
439
+ const localVarHeaderParameter = {};
440
+ const localVarQueryParameter = {};
441
+ localVarHeaderParameter['Content-Type'] = 'application/json';
442
+ localVarHeaderParameter['Accept'] = 'application/json';
443
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
446
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
447
+ return {
448
+ url: (0, common_1.toPathString)(localVarUrlObj),
449
+ options: localVarRequestOptions,
450
+ };
451
+ }),
452
+ /**
453
+ *
454
+ * @summary Fill multiple form fields
455
+ * @param {string} browserId Unique browser identifier
456
+ * @param {FillFormRequest} payload
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ fillForm: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
461
+ // verify required parameter 'browserId' is not null or undefined
462
+ (0, common_1.assertParamExists)('fillForm', 'browserId', browserId);
463
+ // verify required parameter 'payload' is not null or undefined
464
+ (0, common_1.assertParamExists)('fillForm', 'payload', payload);
465
+ const localVarPath = `/browser/{browser_id}/fill_form`
466
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
467
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
468
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
469
+ let baseOptions;
470
+ if (configuration) {
471
+ baseOptions = configuration.baseOptions;
472
+ }
473
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
474
+ const localVarHeaderParameter = {};
475
+ const localVarQueryParameter = {};
476
+ localVarHeaderParameter['Content-Type'] = 'application/json';
477
+ localVarHeaderParameter['Accept'] = 'application/json';
478
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
480
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
481
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
482
+ return {
483
+ url: (0, common_1.toPathString)(localVarUrlObj),
484
+ options: localVarRequestOptions,
485
+ };
486
+ }),
487
+ /**
488
+ *
489
+ * @summary Get browser instance details
490
+ * @param {string} browserId Unique browser identifier
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ getBrowser: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
495
+ // verify required parameter 'browserId' is not null or undefined
496
+ (0, common_1.assertParamExists)('getBrowser', 'browserId', browserId);
497
+ const localVarPath = `/browser/{browser_id}`
498
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
499
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
500
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
501
+ let baseOptions;
502
+ if (configuration) {
503
+ baseOptions = configuration.baseOptions;
504
+ }
505
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
506
+ const localVarHeaderParameter = {};
507
+ const localVarQueryParameter = {};
508
+ localVarHeaderParameter['Accept'] = 'application/json';
509
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
510
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
512
+ return {
513
+ url: (0, common_1.toPathString)(localVarUrlObj),
514
+ options: localVarRequestOptions,
515
+ };
516
+ }),
517
+ /**
518
+ *
519
+ * @summary Get browser status
520
+ * @param {string} browserId Unique browser identifier
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ getBrowserStatus: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
525
+ // verify required parameter 'browserId' is not null or undefined
526
+ (0, common_1.assertParamExists)('getBrowserStatus', 'browserId', browserId);
527
+ const localVarPath = `/browser/{browser_id}/status`
528
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
529
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
530
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
531
+ let baseOptions;
532
+ if (configuration) {
533
+ baseOptions = configuration.baseOptions;
534
+ }
535
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
536
+ const localVarHeaderParameter = {};
537
+ const localVarQueryParameter = {};
538
+ localVarHeaderParameter['Accept'] = 'application/json';
539
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
541
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
542
+ return {
543
+ url: (0, common_1.toPathString)(localVarUrlObj),
544
+ options: localVarRequestOptions,
545
+ };
546
+ }),
547
+ /**
548
+ *
549
+ * @summary Get page HTML content
550
+ * @param {string} browserId Unique browser identifier
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ */
554
+ getContent: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
555
+ // verify required parameter 'browserId' is not null or undefined
556
+ (0, common_1.assertParamExists)('getContent', 'browserId', browserId);
557
+ const localVarPath = `/browser/{browser_id}/content`
558
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
559
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
560
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
561
+ let baseOptions;
562
+ if (configuration) {
563
+ baseOptions = configuration.baseOptions;
564
+ }
565
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
566
+ const localVarHeaderParameter = {};
567
+ const localVarQueryParameter = {};
568
+ localVarHeaderParameter['Accept'] = 'application/json';
569
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
571
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
572
+ return {
573
+ url: (0, common_1.toPathString)(localVarUrlObj),
574
+ options: localVarRequestOptions,
575
+ };
576
+ }),
577
+ /**
578
+ *
579
+ * @summary Get element text, attribute, or property
580
+ * @param {string} browserId Unique browser identifier
581
+ * @param {ElementDataRequest} payload
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ getElementData: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
586
+ // verify required parameter 'browserId' is not null or undefined
587
+ (0, common_1.assertParamExists)('getElementData', 'browserId', browserId);
588
+ // verify required parameter 'payload' is not null or undefined
589
+ (0, common_1.assertParamExists)('getElementData', 'payload', payload);
590
+ const localVarPath = `/browser/{browser_id}/element_data`
591
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
593
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
594
+ let baseOptions;
595
+ if (configuration) {
596
+ baseOptions = configuration.baseOptions;
597
+ }
598
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
599
+ const localVarHeaderParameter = {};
600
+ const localVarQueryParameter = {};
601
+ localVarHeaderParameter['Content-Type'] = 'application/json';
602
+ localVarHeaderParameter['Accept'] = 'application/json';
603
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
604
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
605
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
606
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
607
+ return {
608
+ url: (0, common_1.toPathString)(localVarUrlObj),
609
+ options: localVarRequestOptions,
610
+ };
611
+ }),
612
+ /**
613
+ *
614
+ * @summary Get browser pool status
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ getPoolStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
619
+ const localVarPath = `/browser/pool/status`;
620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
621
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
622
+ let baseOptions;
623
+ if (configuration) {
624
+ baseOptions = configuration.baseOptions;
625
+ }
626
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
627
+ const localVarHeaderParameter = {};
628
+ const localVarQueryParameter = {};
629
+ localVarHeaderParameter['Accept'] = 'application/json';
630
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
632
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
633
+ return {
634
+ url: (0, common_1.toPathString)(localVarUrlObj),
635
+ options: localVarRequestOptions,
636
+ };
637
+ }),
638
+ /**
639
+ *
640
+ * @summary Get current page URL
641
+ * @param {string} browserId Unique browser identifier
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ getUrl: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
646
+ // verify required parameter 'browserId' is not null or undefined
647
+ (0, common_1.assertParamExists)('getUrl', 'browserId', browserId);
648
+ const localVarPath = `/browser/{browser_id}/url`
649
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
651
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
652
+ let baseOptions;
653
+ if (configuration) {
654
+ baseOptions = configuration.baseOptions;
655
+ }
656
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
657
+ const localVarHeaderParameter = {};
658
+ const localVarQueryParameter = {};
659
+ localVarHeaderParameter['Accept'] = 'application/json';
660
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
661
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
662
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
663
+ return {
664
+ url: (0, common_1.toPathString)(localVarUrlObj),
665
+ options: localVarRequestOptions,
666
+ };
667
+ }),
668
+ /**
669
+ *
670
+ * @summary Click using selector or screen coordinates
671
+ * @param {string} browserId Unique browser identifier
672
+ * @param {CombinedGuiClickRequest} payload
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ guiClick: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
677
+ // verify required parameter 'browserId' is not null or undefined
678
+ (0, common_1.assertParamExists)('guiClick', 'browserId', browserId);
679
+ // verify required parameter 'payload' is not null or undefined
680
+ (0, common_1.assertParamExists)('guiClick', 'payload', payload);
681
+ const localVarPath = `/browser/{browser_id}/gui_click`
682
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
684
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
685
+ let baseOptions;
686
+ if (configuration) {
687
+ baseOptions = configuration.baseOptions;
688
+ }
689
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
690
+ const localVarHeaderParameter = {};
691
+ const localVarQueryParameter = {};
692
+ localVarHeaderParameter['Content-Type'] = 'application/json';
693
+ localVarHeaderParameter['Accept'] = 'application/json';
694
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
696
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
697
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
698
+ return {
699
+ url: (0, common_1.toPathString)(localVarUrlObj),
700
+ options: localVarRequestOptions,
701
+ };
702
+ }),
703
+ /**
704
+ *
705
+ * @summary Execute history action: back, forward, or refresh
706
+ * @param {string} browserId Unique browser identifier
707
+ * @param {HistoryRequest} payload
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ history: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
712
+ // verify required parameter 'browserId' is not null or undefined
713
+ (0, common_1.assertParamExists)('history', 'browserId', browserId);
714
+ // verify required parameter 'payload' is not null or undefined
715
+ (0, common_1.assertParamExists)('history', 'payload', payload);
716
+ const localVarPath = `/browser/{browser_id}/history`
717
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
718
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
719
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
720
+ let baseOptions;
721
+ if (configuration) {
722
+ baseOptions = configuration.baseOptions;
723
+ }
724
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
725
+ const localVarHeaderParameter = {};
726
+ const localVarQueryParameter = {};
727
+ localVarHeaderParameter['Content-Type'] = 'application/json';
728
+ localVarHeaderParameter['Accept'] = 'application/json';
729
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
730
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
731
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
732
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
733
+ return {
734
+ url: (0, common_1.toPathString)(localVarUrlObj),
735
+ options: localVarRequestOptions,
736
+ };
737
+ }),
738
+ /**
739
+ *
740
+ * @summary List all active browser instances
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ */
744
+ listBrowsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
745
+ const localVarPath = `/browser/list`;
746
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
747
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
748
+ let baseOptions;
749
+ if (configuration) {
750
+ baseOptions = configuration.baseOptions;
751
+ }
752
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
753
+ const localVarHeaderParameter = {};
754
+ const localVarQueryParameter = {};
755
+ localVarHeaderParameter['Accept'] = 'application/json';
756
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
758
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
759
+ return {
760
+ url: (0, common_1.toPathString)(localVarUrlObj),
761
+ options: localVarRequestOptions,
762
+ };
763
+ }),
764
+ /**
765
+ *
766
+ * @summary Mouse action: hover or drag
767
+ * @param {string} browserId Unique browser identifier
768
+ * @param {MouseRequest} payload
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ mouse: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
773
+ // verify required parameter 'browserId' is not null or undefined
774
+ (0, common_1.assertParamExists)('mouse', 'browserId', browserId);
775
+ // verify required parameter 'payload' is not null or undefined
776
+ (0, common_1.assertParamExists)('mouse', 'payload', payload);
777
+ const localVarPath = `/browser/{browser_id}/mouse`
778
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
779
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
780
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
781
+ let baseOptions;
782
+ if (configuration) {
783
+ baseOptions = configuration.baseOptions;
784
+ }
785
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
786
+ const localVarHeaderParameter = {};
787
+ const localVarQueryParameter = {};
788
+ localVarHeaderParameter['Content-Type'] = 'application/json';
789
+ localVarHeaderParameter['Accept'] = 'application/json';
790
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
792
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
793
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
794
+ return {
795
+ url: (0, common_1.toPathString)(localVarUrlObj),
796
+ options: localVarRequestOptions,
797
+ };
798
+ }),
799
+ /**
800
+ *
801
+ * @summary Navigate to a URL
802
+ * @param {string} browserId Unique browser identifier
803
+ * @param {NavigateRequest} payload
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ navigateBrowser: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
808
+ // verify required parameter 'browserId' is not null or undefined
809
+ (0, common_1.assertParamExists)('navigateBrowser', 'browserId', browserId);
810
+ // verify required parameter 'payload' is not null or undefined
811
+ (0, common_1.assertParamExists)('navigateBrowser', 'payload', payload);
812
+ const localVarPath = `/browser/{browser_id}/navigate`
813
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
814
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
815
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
816
+ let baseOptions;
817
+ if (configuration) {
818
+ baseOptions = configuration.baseOptions;
819
+ }
820
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
821
+ const localVarHeaderParameter = {};
822
+ const localVarQueryParameter = {};
823
+ localVarHeaderParameter['Content-Type'] = 'application/json';
824
+ localVarHeaderParameter['Accept'] = 'application/json';
825
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
826
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
827
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
828
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
829
+ return {
830
+ url: (0, common_1.toPathString)(localVarUrlObj),
831
+ options: localVarRequestOptions,
832
+ };
833
+ }),
834
+ /**
835
+ *
836
+ * @summary Get or clear network logs
837
+ * @param {string} browserId Unique browser identifier
838
+ * @param {NetworkLogsRequest} payload
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ networkLogs: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
843
+ // verify required parameter 'browserId' is not null or undefined
844
+ (0, common_1.assertParamExists)('networkLogs', 'browserId', browserId);
845
+ // verify required parameter 'payload' is not null or undefined
846
+ (0, common_1.assertParamExists)('networkLogs', 'payload', payload);
847
+ const localVarPath = `/browser/{browser_id}/network`
848
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
849
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
850
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
851
+ let baseOptions;
852
+ if (configuration) {
853
+ baseOptions = configuration.baseOptions;
854
+ }
855
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
856
+ const localVarHeaderParameter = {};
857
+ const localVarQueryParameter = {};
858
+ localVarHeaderParameter['Content-Type'] = 'application/json';
859
+ localVarHeaderParameter['Accept'] = 'application/json';
860
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
862
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
863
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
864
+ return {
865
+ url: (0, common_1.toPathString)(localVarUrlObj),
866
+ options: localVarRequestOptions,
867
+ };
868
+ }),
869
+ /**
870
+ *
871
+ * @summary Manage performance: start_trace, stop_trace, metrics, or analyze
872
+ * @param {string} browserId Unique browser identifier
873
+ * @param {PerformanceRequest} payload
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ */
877
+ performance: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
878
+ // verify required parameter 'browserId' is not null or undefined
879
+ (0, common_1.assertParamExists)('performance', 'browserId', browserId);
880
+ // verify required parameter 'payload' is not null or undefined
881
+ (0, common_1.assertParamExists)('performance', 'payload', payload);
882
+ const localVarPath = `/browser/{browser_id}/performance`
883
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
884
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
885
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
886
+ let baseOptions;
887
+ if (configuration) {
888
+ baseOptions = configuration.baseOptions;
889
+ }
890
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
891
+ const localVarHeaderParameter = {};
892
+ const localVarQueryParameter = {};
893
+ localVarHeaderParameter['Content-Type'] = 'application/json';
894
+ localVarHeaderParameter['Accept'] = 'application/json';
895
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
897
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
898
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
899
+ return {
900
+ url: (0, common_1.toPathString)(localVarUrlObj),
901
+ options: localVarRequestOptions,
902
+ };
903
+ }),
904
+ /**
905
+ *
906
+ * @summary Press keys on an element
907
+ * @param {string} browserId Unique browser identifier
908
+ * @param {PressKeysRequest} payload
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ pressKeys: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
913
+ // verify required parameter 'browserId' is not null or undefined
914
+ (0, common_1.assertParamExists)('pressKeys', 'browserId', browserId);
915
+ // verify required parameter 'payload' is not null or undefined
916
+ (0, common_1.assertParamExists)('pressKeys', 'payload', payload);
917
+ const localVarPath = `/browser/{browser_id}/press_keys`
918
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
919
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
920
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
921
+ let baseOptions;
922
+ if (configuration) {
923
+ baseOptions = configuration.baseOptions;
924
+ }
925
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
926
+ const localVarHeaderParameter = {};
927
+ const localVarQueryParameter = {};
928
+ localVarHeaderParameter['Content-Type'] = 'application/json';
929
+ localVarHeaderParameter['Accept'] = 'application/json';
930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
932
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
933
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
934
+ return {
935
+ url: (0, common_1.toPathString)(localVarUrlObj),
936
+ options: localVarRequestOptions,
937
+ };
938
+ }),
939
+ /**
940
+ *
941
+ * @summary Resize viewport
942
+ * @param {string} browserId Unique browser identifier
943
+ * @param {ResizeRequest} payload
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ resize: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
948
+ // verify required parameter 'browserId' is not null or undefined
949
+ (0, common_1.assertParamExists)('resize', 'browserId', browserId);
950
+ // verify required parameter 'payload' is not null or undefined
951
+ (0, common_1.assertParamExists)('resize', 'payload', payload);
952
+ const localVarPath = `/browser/{browser_id}/resize`
953
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
954
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
955
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
956
+ let baseOptions;
957
+ if (configuration) {
958
+ baseOptions = configuration.baseOptions;
959
+ }
960
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
961
+ const localVarHeaderParameter = {};
962
+ const localVarQueryParameter = {};
963
+ localVarHeaderParameter['Content-Type'] = 'application/json';
964
+ localVarHeaderParameter['Accept'] = 'application/json';
965
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
967
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
968
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
969
+ return {
970
+ url: (0, common_1.toPathString)(localVarUrlObj),
971
+ options: localVarRequestOptions,
972
+ };
973
+ }),
974
+ /**
975
+ *
976
+ * @summary Scroll to element/coordinates (absolute) or by delta (relative)
977
+ * @param {string} browserId Unique browser identifier
978
+ * @param {CombinedScrollRequest} payload
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ scroll: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
983
+ // verify required parameter 'browserId' is not null or undefined
984
+ (0, common_1.assertParamExists)('scroll', 'browserId', browserId);
985
+ // verify required parameter 'payload' is not null or undefined
986
+ (0, common_1.assertParamExists)('scroll', 'payload', payload);
987
+ const localVarPath = `/browser/{browser_id}/scroll`
988
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
989
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
990
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
991
+ let baseOptions;
992
+ if (configuration) {
993
+ baseOptions = configuration.baseOptions;
994
+ }
995
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
996
+ const localVarHeaderParameter = {};
997
+ const localVarQueryParameter = {};
998
+ localVarHeaderParameter['Content-Type'] = 'application/json';
999
+ localVarHeaderParameter['Accept'] = 'application/json';
1000
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1001
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1002
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1003
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1004
+ return {
1005
+ url: (0, common_1.toPathString)(localVarUrlObj),
1006
+ options: localVarRequestOptions,
1007
+ };
1008
+ }),
1009
+ /**
1010
+ *
1011
+ * @summary Select dropdown: select option or get options
1012
+ * @param {string} browserId Unique browser identifier
1013
+ * @param {SelectRequest} payload
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ */
1017
+ select: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
1018
+ // verify required parameter 'browserId' is not null or undefined
1019
+ (0, common_1.assertParamExists)('select', 'browserId', browserId);
1020
+ // verify required parameter 'payload' is not null or undefined
1021
+ (0, common_1.assertParamExists)('select', 'payload', payload);
1022
+ const localVarPath = `/browser/{browser_id}/select`
1023
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
1024
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1025
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1026
+ let baseOptions;
1027
+ if (configuration) {
1028
+ baseOptions = configuration.baseOptions;
1029
+ }
1030
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1031
+ const localVarHeaderParameter = {};
1032
+ const localVarQueryParameter = {};
1033
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1034
+ localVarHeaderParameter['Accept'] = 'application/json';
1035
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1036
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1037
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1038
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1039
+ return {
1040
+ url: (0, common_1.toPathString)(localVarUrlObj),
1041
+ options: localVarRequestOptions,
1042
+ };
1043
+ }),
1044
+ /**
1045
+ *
1046
+ * @summary Manage browser tabs: list, new, switch, close, or current
1047
+ * @param {string} browserId Unique browser identifier
1048
+ * @param {TabsRequest} payload
1049
+ * @param {*} [options] Override http request option.
1050
+ * @throws {RequiredError}
1051
+ */
1052
+ tabs: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
1053
+ // verify required parameter 'browserId' is not null or undefined
1054
+ (0, common_1.assertParamExists)('tabs', 'browserId', browserId);
1055
+ // verify required parameter 'payload' is not null or undefined
1056
+ (0, common_1.assertParamExists)('tabs', 'payload', payload);
1057
+ const localVarPath = `/browser/{browser_id}/tabs`
1058
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
1059
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1060
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1061
+ let baseOptions;
1062
+ if (configuration) {
1063
+ baseOptions = configuration.baseOptions;
1064
+ }
1065
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1066
+ const localVarHeaderParameter = {};
1067
+ const localVarQueryParameter = {};
1068
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1069
+ localVarHeaderParameter['Accept'] = 'application/json';
1070
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1072
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1073
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1074
+ return {
1075
+ url: (0, common_1.toPathString)(localVarUrlObj),
1076
+ options: localVarRequestOptions,
1077
+ };
1078
+ }),
1079
+ /**
1080
+ *
1081
+ * @summary Take a screenshot
1082
+ * @param {string} browserId Unique browser identifier
1083
+ * @param {*} [options] Override http request option.
1084
+ * @throws {RequiredError}
1085
+ */
1086
+ takeScreenshot: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
1087
+ // verify required parameter 'browserId' is not null or undefined
1088
+ (0, common_1.assertParamExists)('takeScreenshot', 'browserId', browserId);
1089
+ const localVarPath = `/browser/{browser_id}/screenshot`
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, common_1.DUMMY_BASE_URL);
1093
+ let baseOptions;
1094
+ if (configuration) {
1095
+ baseOptions = configuration.baseOptions;
1096
+ }
1097
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1098
+ const localVarHeaderParameter = {};
1099
+ const localVarQueryParameter = {};
1100
+ localVarHeaderParameter['Accept'] = 'application/json';
1101
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1103
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1104
+ return {
1105
+ url: (0, common_1.toPathString)(localVarUrlObj),
1106
+ options: localVarRequestOptions,
1107
+ };
1108
+ }),
1109
+ /**
1110
+ *
1111
+ * @summary Take DOM/accessibility snapshot
1112
+ * @param {string} browserId Unique browser identifier
1113
+ * @param {SnapshotRequest} payload
1114
+ * @param {*} [options] Override http request option.
1115
+ * @throws {RequiredError}
1116
+ */
1117
+ takeSnapshot: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
1118
+ // verify required parameter 'browserId' is not null or undefined
1119
+ (0, common_1.assertParamExists)('takeSnapshot', 'browserId', browserId);
1120
+ // verify required parameter 'payload' is not null or undefined
1121
+ (0, common_1.assertParamExists)('takeSnapshot', 'payload', payload);
1122
+ const localVarPath = `/browser/{browser_id}/snapshot`
1123
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
1124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1125
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1126
+ let baseOptions;
1127
+ if (configuration) {
1128
+ baseOptions = configuration.baseOptions;
1129
+ }
1130
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1131
+ const localVarHeaderParameter = {};
1132
+ const localVarQueryParameter = {};
1133
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1134
+ localVarHeaderParameter['Accept'] = 'application/json';
1135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1137
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1139
+ return {
1140
+ url: (0, common_1.toPathString)(localVarUrlObj),
1141
+ options: localVarRequestOptions,
1142
+ };
1143
+ }),
1144
+ /**
1145
+ *
1146
+ * @summary Type text into an element
1147
+ * @param {string} browserId Unique browser identifier
1148
+ * @param {TypeRequest} payload
1149
+ * @param {*} [options] Override http request option.
1150
+ * @throws {RequiredError}
1151
+ */
1152
+ typeText: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
1153
+ // verify required parameter 'browserId' is not null or undefined
1154
+ (0, common_1.assertParamExists)('typeText', 'browserId', browserId);
1155
+ // verify required parameter 'payload' is not null or undefined
1156
+ (0, common_1.assertParamExists)('typeText', 'payload', payload);
1157
+ const localVarPath = `/browser/{browser_id}/type`
1158
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
1159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1160
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1161
+ let baseOptions;
1162
+ if (configuration) {
1163
+ baseOptions = configuration.baseOptions;
1164
+ }
1165
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1166
+ const localVarHeaderParameter = {};
1167
+ const localVarQueryParameter = {};
1168
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1169
+ localVarHeaderParameter['Accept'] = 'application/json';
1170
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1172
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1173
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1174
+ return {
1175
+ url: (0, common_1.toPathString)(localVarUrlObj),
1176
+ options: localVarRequestOptions,
1177
+ };
1178
+ }),
1179
+ /**
1180
+ *
1181
+ * @summary Upload a file
1182
+ * @param {string} browserId Unique browser identifier
1183
+ * @param {UploadFileRequest} payload
1184
+ * @param {*} [options] Override http request option.
1185
+ * @throws {RequiredError}
1186
+ */
1187
+ uploadFile: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
1188
+ // verify required parameter 'browserId' is not null or undefined
1189
+ (0, common_1.assertParamExists)('uploadFile', 'browserId', browserId);
1190
+ // verify required parameter 'payload' is not null or undefined
1191
+ (0, common_1.assertParamExists)('uploadFile', 'payload', payload);
1192
+ const localVarPath = `/browser/{browser_id}/upload_file`
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, common_1.DUMMY_BASE_URL);
1196
+ let baseOptions;
1197
+ if (configuration) {
1198
+ baseOptions = configuration.baseOptions;
1199
+ }
1200
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1201
+ const localVarHeaderParameter = {};
1202
+ const localVarQueryParameter = {};
1203
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1204
+ localVarHeaderParameter['Accept'] = 'application/json';
1205
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1206
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1207
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1208
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1209
+ return {
1210
+ url: (0, common_1.toPathString)(localVarUrlObj),
1211
+ options: localVarRequestOptions,
1212
+ };
1213
+ }),
1214
+ /**
1215
+ *
1216
+ * @summary Wait for element to become visible or hidden
1217
+ * @param {string} browserId Unique browser identifier
1218
+ * @param {WaitElementRequest} payload
1219
+ * @param {*} [options] Override http request option.
1220
+ * @throws {RequiredError}
1221
+ */
1222
+ waitElement: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
1223
+ // verify required parameter 'browserId' is not null or undefined
1224
+ (0, common_1.assertParamExists)('waitElement', 'browserId', browserId);
1225
+ // verify required parameter 'payload' is not null or undefined
1226
+ (0, common_1.assertParamExists)('waitElement', 'payload', payload);
1227
+ const localVarPath = `/browser/{browser_id}/wait_element`
1228
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
1229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1230
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1231
+ let baseOptions;
1232
+ if (configuration) {
1233
+ baseOptions = configuration.baseOptions;
1234
+ }
1235
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1236
+ const localVarHeaderParameter = {};
1237
+ const localVarQueryParameter = {};
1238
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1239
+ localVarHeaderParameter['Accept'] = 'application/json';
1240
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1241
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1242
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1243
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1244
+ return {
1245
+ url: (0, common_1.toPathString)(localVarUrlObj),
1246
+ options: localVarRequestOptions,
1247
+ };
1248
+ }),
1249
+ /**
1250
+ *
1251
+ * @summary Analyze visible page content using AI
1252
+ * @param {string} browserId Unique browser identifier
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ whatIsVisible: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
1257
+ // verify required parameter 'browserId' is not null or undefined
1258
+ (0, common_1.assertParamExists)('whatIsVisible', 'browserId', browserId);
1259
+ const localVarPath = `/browser/{browser_id}/what_is_visible`
1260
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
1261
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1262
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1263
+ let baseOptions;
1264
+ if (configuration) {
1265
+ baseOptions = configuration.baseOptions;
1266
+ }
1267
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1268
+ const localVarHeaderParameter = {};
1269
+ const localVarQueryParameter = {};
1270
+ localVarHeaderParameter['Accept'] = 'application/json';
1271
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1273
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1274
+ return {
1275
+ url: (0, common_1.toPathString)(localVarUrlObj),
1276
+ options: localVarRequestOptions,
1277
+ };
1278
+ }),
1279
+ };
1280
+ };
1281
+ exports.BrowserApiAxiosParamCreator = BrowserApiAxiosParamCreator;
1282
+ /**
1283
+ * BrowserApi - functional programming interface
1284
+ */
1285
+ const BrowserApiFp = function (configuration) {
1286
+ const localVarAxiosParamCreator = (0, exports.BrowserApiAxiosParamCreator)(configuration);
1287
+ return {
1288
+ /**
1289
+ *
1290
+ * @summary Check if element exists or is visible
1291
+ * @param {string} browserId Unique browser identifier
1292
+ * @param {CheckElementRequest} payload
1293
+ * @param {*} [options] Override http request option.
1294
+ * @throws {RequiredError}
1295
+ */
1296
+ checkElement(browserId, payload, options) {
1297
+ return __awaiter(this, void 0, void 0, function* () {
1298
+ var _a, _b, _c;
1299
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkElement(browserId, payload, options);
1300
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1301
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.checkElement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1302
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1303
+ });
1304
+ },
1305
+ /**
1306
+ * Use if_visible=true to only click if visible.
1307
+ * @summary Click element
1308
+ * @param {string} browserId Unique browser identifier
1309
+ * @param {ClickRequest} payload
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ */
1313
+ click(browserId, payload, options) {
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
+ var _a, _b, _c;
1316
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.click(browserId, payload, options);
1317
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1318
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.click']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1319
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1320
+ });
1321
+ },
1322
+ /**
1323
+ *
1324
+ * @summary Close all active browser instances
1325
+ * @param {*} [options] Override http request option.
1326
+ * @throws {RequiredError}
1327
+ */
1328
+ closeAllBrowsers(options) {
1329
+ return __awaiter(this, void 0, void 0, function* () {
1330
+ var _a, _b, _c;
1331
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.closeAllBrowsers(options);
1332
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1333
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.closeAllBrowsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1334
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1335
+ });
1336
+ },
1337
+ /**
1338
+ *
1339
+ * @summary Close a browser instance
1340
+ * @param {string} browserId Unique browser identifier
1341
+ * @param {*} [options] Override http request option.
1342
+ * @throws {RequiredError}
1343
+ */
1344
+ closeBrowser(browserId, options) {
1345
+ return __awaiter(this, void 0, void 0, function* () {
1346
+ var _a, _b, _c;
1347
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.closeBrowser(browserId, options);
1348
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1349
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.closeBrowser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1350
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1351
+ });
1352
+ },
1353
+ /**
1354
+ *
1355
+ * @summary Get or clear console logs
1356
+ * @param {string} browserId Unique browser identifier
1357
+ * @param {ConsoleLogsRequest} payload
1358
+ * @param {*} [options] Override http request option.
1359
+ * @throws {RequiredError}
1360
+ */
1361
+ consoleLogs(browserId, payload, options) {
1362
+ return __awaiter(this, void 0, void 0, function* () {
1363
+ var _a, _b, _c;
1364
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.consoleLogs(browserId, payload, options);
1365
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1366
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.consoleLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1367
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1368
+ });
1369
+ },
1370
+ /**
1371
+ *
1372
+ * @summary Create a new browser instance
1373
+ * @param {BrowserConfig} payload
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ */
1377
+ createBrowser(payload, options) {
1378
+ return __awaiter(this, void 0, void 0, function* () {
1379
+ var _a, _b, _c;
1380
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBrowser(payload, options);
1381
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1382
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.createBrowser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1383
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1384
+ });
1385
+ },
1386
+ /**
1387
+ *
1388
+ * @summary Close and remove a browser instance
1389
+ * @param {string} browserId Unique browser identifier
1390
+ * @param {*} [options] Override http request option.
1391
+ * @throws {RequiredError}
1392
+ */
1393
+ deleteBrowser(browserId, options) {
1394
+ return __awaiter(this, void 0, void 0, function* () {
1395
+ var _a, _b, _c;
1396
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBrowser(browserId, options);
1397
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1398
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.deleteBrowser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1399
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1400
+ });
1401
+ },
1402
+ /**
1403
+ *
1404
+ * @summary Detect element coordinates using AI vision
1405
+ * @param {string} browserId Unique browser identifier
1406
+ * @param {DetectCoordinatesRequest} payload
1407
+ * @param {*} [options] Override http request option.
1408
+ * @throws {RequiredError}
1409
+ */
1410
+ detectCoordinates(browserId, payload, options) {
1411
+ return __awaiter(this, void 0, void 0, function* () {
1412
+ var _a, _b, _c;
1413
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.detectCoordinates(browserId, payload, options);
1414
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1415
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.detectCoordinates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1416
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1417
+ });
1418
+ },
1419
+ /**
1420
+ *
1421
+ * @summary Manage browser dialogs: get, accept, or dismiss
1422
+ * @param {string} browserId Unique browser identifier
1423
+ * @param {CombinedDialogRequest} payload
1424
+ * @param {*} [options] Override http request option.
1425
+ * @throws {RequiredError}
1426
+ */
1427
+ dialog(browserId, payload, options) {
1428
+ return __awaiter(this, void 0, void 0, function* () {
1429
+ var _a, _b, _c;
1430
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dialog(browserId, payload, options);
1431
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1432
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.dialog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1433
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1434
+ });
1435
+ },
1436
+ /**
1437
+ *
1438
+ * @summary Manage device emulation: set, clear, or list_devices
1439
+ * @param {string} browserId Unique browser identifier
1440
+ * @param {CombinedEmulateRequest} payload
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ emulate(browserId, payload, options) {
1445
+ return __awaiter(this, void 0, void 0, function* () {
1446
+ var _a, _b, _c;
1447
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.emulate(browserId, payload, options);
1448
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1449
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.emulate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1450
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1451
+ });
1452
+ },
1453
+ /**
1454
+ *
1455
+ * @summary Execute JavaScript
1456
+ * @param {string} browserId Unique browser identifier
1457
+ * @param {ExecuteRequest} payload
1458
+ * @param {*} [options] Override http request option.
1459
+ * @throws {RequiredError}
1460
+ */
1461
+ executeScript(browserId, payload, options) {
1462
+ return __awaiter(this, void 0, void 0, function* () {
1463
+ var _a, _b, _c;
1464
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.executeScript(browserId, payload, options);
1465
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1466
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.executeScript']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1467
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1468
+ });
1469
+ },
1470
+ /**
1471
+ *
1472
+ * @summary Fill multiple form fields
1473
+ * @param {string} browserId Unique browser identifier
1474
+ * @param {FillFormRequest} payload
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ */
1478
+ fillForm(browserId, payload, options) {
1479
+ return __awaiter(this, void 0, void 0, function* () {
1480
+ var _a, _b, _c;
1481
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.fillForm(browserId, payload, options);
1482
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1483
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.fillForm']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1484
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1485
+ });
1486
+ },
1487
+ /**
1488
+ *
1489
+ * @summary Get browser instance details
1490
+ * @param {string} browserId Unique browser identifier
1491
+ * @param {*} [options] Override http request option.
1492
+ * @throws {RequiredError}
1493
+ */
1494
+ getBrowser(browserId, options) {
1495
+ return __awaiter(this, void 0, void 0, function* () {
1496
+ var _a, _b, _c;
1497
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrowser(browserId, options);
1498
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1499
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getBrowser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1500
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1501
+ });
1502
+ },
1503
+ /**
1504
+ *
1505
+ * @summary Get browser status
1506
+ * @param {string} browserId Unique browser identifier
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ getBrowserStatus(browserId, options) {
1511
+ return __awaiter(this, void 0, void 0, function* () {
1512
+ var _a, _b, _c;
1513
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrowserStatus(browserId, options);
1514
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1515
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getBrowserStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1516
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1517
+ });
1518
+ },
1519
+ /**
1520
+ *
1521
+ * @summary Get page HTML content
1522
+ * @param {string} browserId Unique browser identifier
1523
+ * @param {*} [options] Override http request option.
1524
+ * @throws {RequiredError}
1525
+ */
1526
+ getContent(browserId, options) {
1527
+ return __awaiter(this, void 0, void 0, function* () {
1528
+ var _a, _b, _c;
1529
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getContent(browserId, options);
1530
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1531
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1532
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1533
+ });
1534
+ },
1535
+ /**
1536
+ *
1537
+ * @summary Get element text, attribute, or property
1538
+ * @param {string} browserId Unique browser identifier
1539
+ * @param {ElementDataRequest} payload
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ */
1543
+ getElementData(browserId, payload, options) {
1544
+ return __awaiter(this, void 0, void 0, function* () {
1545
+ var _a, _b, _c;
1546
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getElementData(browserId, payload, options);
1547
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1548
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getElementData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1549
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1550
+ });
1551
+ },
1552
+ /**
1553
+ *
1554
+ * @summary Get browser pool status
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ getPoolStatus(options) {
1559
+ return __awaiter(this, void 0, void 0, function* () {
1560
+ var _a, _b, _c;
1561
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoolStatus(options);
1562
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1563
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getPoolStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1564
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1565
+ });
1566
+ },
1567
+ /**
1568
+ *
1569
+ * @summary Get current page URL
1570
+ * @param {string} browserId Unique browser identifier
1571
+ * @param {*} [options] Override http request option.
1572
+ * @throws {RequiredError}
1573
+ */
1574
+ getUrl(browserId, options) {
1575
+ return __awaiter(this, void 0, void 0, function* () {
1576
+ var _a, _b, _c;
1577
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUrl(browserId, options);
1578
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1579
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1580
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1581
+ });
1582
+ },
1583
+ /**
1584
+ *
1585
+ * @summary Click using selector or screen coordinates
1586
+ * @param {string} browserId Unique browser identifier
1587
+ * @param {CombinedGuiClickRequest} payload
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ */
1591
+ guiClick(browserId, payload, options) {
1592
+ return __awaiter(this, void 0, void 0, function* () {
1593
+ var _a, _b, _c;
1594
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.guiClick(browserId, payload, options);
1595
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1596
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.guiClick']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1597
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1598
+ });
1599
+ },
1600
+ /**
1601
+ *
1602
+ * @summary Execute history action: back, forward, or refresh
1603
+ * @param {string} browserId Unique browser identifier
1604
+ * @param {HistoryRequest} payload
1605
+ * @param {*} [options] Override http request option.
1606
+ * @throws {RequiredError}
1607
+ */
1608
+ history(browserId, payload, options) {
1609
+ return __awaiter(this, void 0, void 0, function* () {
1610
+ var _a, _b, _c;
1611
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.history(browserId, payload, options);
1612
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1613
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.history']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1614
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1615
+ });
1616
+ },
1617
+ /**
1618
+ *
1619
+ * @summary List all active browser instances
1620
+ * @param {*} [options] Override http request option.
1621
+ * @throws {RequiredError}
1622
+ */
1623
+ listBrowsers(options) {
1624
+ return __awaiter(this, void 0, void 0, function* () {
1625
+ var _a, _b, _c;
1626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBrowsers(options);
1627
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1628
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.listBrowsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1629
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1630
+ });
1631
+ },
1632
+ /**
1633
+ *
1634
+ * @summary Mouse action: hover or drag
1635
+ * @param {string} browserId Unique browser identifier
1636
+ * @param {MouseRequest} payload
1637
+ * @param {*} [options] Override http request option.
1638
+ * @throws {RequiredError}
1639
+ */
1640
+ mouse(browserId, payload, options) {
1641
+ return __awaiter(this, void 0, void 0, function* () {
1642
+ var _a, _b, _c;
1643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mouse(browserId, payload, options);
1644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1645
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.mouse']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1646
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1647
+ });
1648
+ },
1649
+ /**
1650
+ *
1651
+ * @summary Navigate to a URL
1652
+ * @param {string} browserId Unique browser identifier
1653
+ * @param {NavigateRequest} payload
1654
+ * @param {*} [options] Override http request option.
1655
+ * @throws {RequiredError}
1656
+ */
1657
+ navigateBrowser(browserId, payload, options) {
1658
+ return __awaiter(this, void 0, void 0, function* () {
1659
+ var _a, _b, _c;
1660
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.navigateBrowser(browserId, payload, options);
1661
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1662
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.navigateBrowser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1663
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1664
+ });
1665
+ },
1666
+ /**
1667
+ *
1668
+ * @summary Get or clear network logs
1669
+ * @param {string} browserId Unique browser identifier
1670
+ * @param {NetworkLogsRequest} payload
1671
+ * @param {*} [options] Override http request option.
1672
+ * @throws {RequiredError}
1673
+ */
1674
+ networkLogs(browserId, payload, options) {
1675
+ return __awaiter(this, void 0, void 0, function* () {
1676
+ var _a, _b, _c;
1677
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.networkLogs(browserId, payload, options);
1678
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1679
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.networkLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1680
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1681
+ });
1682
+ },
1683
+ /**
1684
+ *
1685
+ * @summary Manage performance: start_trace, stop_trace, metrics, or analyze
1686
+ * @param {string} browserId Unique browser identifier
1687
+ * @param {PerformanceRequest} payload
1688
+ * @param {*} [options] Override http request option.
1689
+ * @throws {RequiredError}
1690
+ */
1691
+ performance(browserId, payload, options) {
1692
+ return __awaiter(this, void 0, void 0, function* () {
1693
+ var _a, _b, _c;
1694
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.performance(browserId, payload, options);
1695
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1696
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.performance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1697
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1698
+ });
1699
+ },
1700
+ /**
1701
+ *
1702
+ * @summary Press keys on an element
1703
+ * @param {string} browserId Unique browser identifier
1704
+ * @param {PressKeysRequest} payload
1705
+ * @param {*} [options] Override http request option.
1706
+ * @throws {RequiredError}
1707
+ */
1708
+ pressKeys(browserId, payload, options) {
1709
+ return __awaiter(this, void 0, void 0, function* () {
1710
+ var _a, _b, _c;
1711
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pressKeys(browserId, payload, options);
1712
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1713
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.pressKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1714
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1715
+ });
1716
+ },
1717
+ /**
1718
+ *
1719
+ * @summary Resize viewport
1720
+ * @param {string} browserId Unique browser identifier
1721
+ * @param {ResizeRequest} payload
1722
+ * @param {*} [options] Override http request option.
1723
+ * @throws {RequiredError}
1724
+ */
1725
+ resize(browserId, payload, options) {
1726
+ return __awaiter(this, void 0, void 0, function* () {
1727
+ var _a, _b, _c;
1728
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resize(browserId, payload, options);
1729
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1730
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.resize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1731
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1732
+ });
1733
+ },
1734
+ /**
1735
+ *
1736
+ * @summary Scroll to element/coordinates (absolute) or by delta (relative)
1737
+ * @param {string} browserId Unique browser identifier
1738
+ * @param {CombinedScrollRequest} payload
1739
+ * @param {*} [options] Override http request option.
1740
+ * @throws {RequiredError}
1741
+ */
1742
+ scroll(browserId, payload, options) {
1743
+ return __awaiter(this, void 0, void 0, function* () {
1744
+ var _a, _b, _c;
1745
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.scroll(browserId, payload, options);
1746
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1747
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.scroll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1748
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1749
+ });
1750
+ },
1751
+ /**
1752
+ *
1753
+ * @summary Select dropdown: select option or get options
1754
+ * @param {string} browserId Unique browser identifier
1755
+ * @param {SelectRequest} payload
1756
+ * @param {*} [options] Override http request option.
1757
+ * @throws {RequiredError}
1758
+ */
1759
+ select(browserId, payload, options) {
1760
+ return __awaiter(this, void 0, void 0, function* () {
1761
+ var _a, _b, _c;
1762
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.select(browserId, payload, options);
1763
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1764
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.select']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1765
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1766
+ });
1767
+ },
1768
+ /**
1769
+ *
1770
+ * @summary Manage browser tabs: list, new, switch, close, or current
1771
+ * @param {string} browserId Unique browser identifier
1772
+ * @param {TabsRequest} payload
1773
+ * @param {*} [options] Override http request option.
1774
+ * @throws {RequiredError}
1775
+ */
1776
+ tabs(browserId, payload, options) {
1777
+ return __awaiter(this, void 0, void 0, function* () {
1778
+ var _a, _b, _c;
1779
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tabs(browserId, payload, options);
1780
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1781
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.tabs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1782
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1783
+ });
1784
+ },
1785
+ /**
1786
+ *
1787
+ * @summary Take a screenshot
1788
+ * @param {string} browserId Unique browser identifier
1789
+ * @param {*} [options] Override http request option.
1790
+ * @throws {RequiredError}
1791
+ */
1792
+ takeScreenshot(browserId, options) {
1793
+ return __awaiter(this, void 0, void 0, function* () {
1794
+ var _a, _b, _c;
1795
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.takeScreenshot(browserId, options);
1796
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1797
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.takeScreenshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1798
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1799
+ });
1800
+ },
1801
+ /**
1802
+ *
1803
+ * @summary Take DOM/accessibility snapshot
1804
+ * @param {string} browserId Unique browser identifier
1805
+ * @param {SnapshotRequest} payload
1806
+ * @param {*} [options] Override http request option.
1807
+ * @throws {RequiredError}
1808
+ */
1809
+ takeSnapshot(browserId, payload, options) {
1810
+ return __awaiter(this, void 0, void 0, function* () {
1811
+ var _a, _b, _c;
1812
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.takeSnapshot(browserId, payload, options);
1813
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1814
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.takeSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1815
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1816
+ });
1817
+ },
1818
+ /**
1819
+ *
1820
+ * @summary Type text into an element
1821
+ * @param {string} browserId Unique browser identifier
1822
+ * @param {TypeRequest} payload
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ */
1826
+ typeText(browserId, payload, options) {
1827
+ return __awaiter(this, void 0, void 0, function* () {
1828
+ var _a, _b, _c;
1829
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.typeText(browserId, payload, options);
1830
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1831
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.typeText']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1832
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1833
+ });
1834
+ },
1835
+ /**
1836
+ *
1837
+ * @summary Upload a file
1838
+ * @param {string} browserId Unique browser identifier
1839
+ * @param {UploadFileRequest} payload
1840
+ * @param {*} [options] Override http request option.
1841
+ * @throws {RequiredError}
1842
+ */
1843
+ uploadFile(browserId, payload, options) {
1844
+ return __awaiter(this, void 0, void 0, function* () {
1845
+ var _a, _b, _c;
1846
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(browserId, payload, options);
1847
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1848
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1849
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1850
+ });
1851
+ },
1852
+ /**
1853
+ *
1854
+ * @summary Wait for element to become visible or hidden
1855
+ * @param {string} browserId Unique browser identifier
1856
+ * @param {WaitElementRequest} payload
1857
+ * @param {*} [options] Override http request option.
1858
+ * @throws {RequiredError}
1859
+ */
1860
+ waitElement(browserId, payload, options) {
1861
+ return __awaiter(this, void 0, void 0, function* () {
1862
+ var _a, _b, _c;
1863
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.waitElement(browserId, payload, options);
1864
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1865
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.waitElement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1866
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1867
+ });
1868
+ },
1869
+ /**
1870
+ *
1871
+ * @summary Analyze visible page content using AI
1872
+ * @param {string} browserId Unique browser identifier
1873
+ * @param {*} [options] Override http request option.
1874
+ * @throws {RequiredError}
1875
+ */
1876
+ whatIsVisible(browserId, options) {
1877
+ return __awaiter(this, void 0, void 0, function* () {
1878
+ var _a, _b, _c;
1879
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.whatIsVisible(browserId, options);
1880
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1881
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.whatIsVisible']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1882
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1883
+ });
1884
+ },
1885
+ };
1886
+ };
1887
+ exports.BrowserApiFp = BrowserApiFp;
1888
+ /**
1889
+ * BrowserApi - factory interface
1890
+ */
1891
+ const BrowserApiFactory = function (configuration, basePath, axios) {
1892
+ const localVarFp = (0, exports.BrowserApiFp)(configuration);
1893
+ return {
1894
+ /**
1895
+ *
1896
+ * @summary Check if element exists or is visible
1897
+ * @param {string} browserId Unique browser identifier
1898
+ * @param {CheckElementRequest} payload
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ */
1902
+ checkElement(browserId, payload, options) {
1903
+ return localVarFp.checkElement(browserId, payload, options).then((request) => request(axios, basePath));
1904
+ },
1905
+ /**
1906
+ * Use if_visible=true to only click if visible.
1907
+ * @summary Click element
1908
+ * @param {string} browserId Unique browser identifier
1909
+ * @param {ClickRequest} payload
1910
+ * @param {*} [options] Override http request option.
1911
+ * @throws {RequiredError}
1912
+ */
1913
+ click(browserId, payload, options) {
1914
+ return localVarFp.click(browserId, payload, options).then((request) => request(axios, basePath));
1915
+ },
1916
+ /**
1917
+ *
1918
+ * @summary Close all active browser instances
1919
+ * @param {*} [options] Override http request option.
1920
+ * @throws {RequiredError}
1921
+ */
1922
+ closeAllBrowsers(options) {
1923
+ return localVarFp.closeAllBrowsers(options).then((request) => request(axios, basePath));
1924
+ },
1925
+ /**
1926
+ *
1927
+ * @summary Close a browser instance
1928
+ * @param {string} browserId Unique browser identifier
1929
+ * @param {*} [options] Override http request option.
1930
+ * @throws {RequiredError}
1931
+ */
1932
+ closeBrowser(browserId, options) {
1933
+ return localVarFp.closeBrowser(browserId, options).then((request) => request(axios, basePath));
1934
+ },
1935
+ /**
1936
+ *
1937
+ * @summary Get or clear console logs
1938
+ * @param {string} browserId Unique browser identifier
1939
+ * @param {ConsoleLogsRequest} payload
1940
+ * @param {*} [options] Override http request option.
1941
+ * @throws {RequiredError}
1942
+ */
1943
+ consoleLogs(browserId, payload, options) {
1944
+ return localVarFp.consoleLogs(browserId, payload, options).then((request) => request(axios, basePath));
1945
+ },
1946
+ /**
1947
+ *
1948
+ * @summary Create a new browser instance
1949
+ * @param {BrowserConfig} payload
1950
+ * @param {*} [options] Override http request option.
1951
+ * @throws {RequiredError}
1952
+ */
1953
+ createBrowser(payload, options) {
1954
+ return localVarFp.createBrowser(payload, options).then((request) => request(axios, basePath));
1955
+ },
1956
+ /**
1957
+ *
1958
+ * @summary Close and remove a browser instance
1959
+ * @param {string} browserId Unique browser identifier
1960
+ * @param {*} [options] Override http request option.
1961
+ * @throws {RequiredError}
1962
+ */
1963
+ deleteBrowser(browserId, options) {
1964
+ return localVarFp.deleteBrowser(browserId, options).then((request) => request(axios, basePath));
1965
+ },
1966
+ /**
1967
+ *
1968
+ * @summary Detect element coordinates using AI vision
1969
+ * @param {string} browserId Unique browser identifier
1970
+ * @param {DetectCoordinatesRequest} payload
1971
+ * @param {*} [options] Override http request option.
1972
+ * @throws {RequiredError}
1973
+ */
1974
+ detectCoordinates(browserId, payload, options) {
1975
+ return localVarFp.detectCoordinates(browserId, payload, options).then((request) => request(axios, basePath));
1976
+ },
1977
+ /**
1978
+ *
1979
+ * @summary Manage browser dialogs: get, accept, or dismiss
1980
+ * @param {string} browserId Unique browser identifier
1981
+ * @param {CombinedDialogRequest} payload
1982
+ * @param {*} [options] Override http request option.
1983
+ * @throws {RequiredError}
1984
+ */
1985
+ dialog(browserId, payload, options) {
1986
+ return localVarFp.dialog(browserId, payload, options).then((request) => request(axios, basePath));
1987
+ },
1988
+ /**
1989
+ *
1990
+ * @summary Manage device emulation: set, clear, or list_devices
1991
+ * @param {string} browserId Unique browser identifier
1992
+ * @param {CombinedEmulateRequest} payload
1993
+ * @param {*} [options] Override http request option.
1994
+ * @throws {RequiredError}
1995
+ */
1996
+ emulate(browserId, payload, options) {
1997
+ return localVarFp.emulate(browserId, payload, options).then((request) => request(axios, basePath));
1998
+ },
1999
+ /**
2000
+ *
2001
+ * @summary Execute JavaScript
2002
+ * @param {string} browserId Unique browser identifier
2003
+ * @param {ExecuteRequest} payload
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ executeScript(browserId, payload, options) {
2008
+ return localVarFp.executeScript(browserId, payload, options).then((request) => request(axios, basePath));
2009
+ },
2010
+ /**
2011
+ *
2012
+ * @summary Fill multiple form fields
2013
+ * @param {string} browserId Unique browser identifier
2014
+ * @param {FillFormRequest} payload
2015
+ * @param {*} [options] Override http request option.
2016
+ * @throws {RequiredError}
2017
+ */
2018
+ fillForm(browserId, payload, options) {
2019
+ return localVarFp.fillForm(browserId, payload, options).then((request) => request(axios, basePath));
2020
+ },
2021
+ /**
2022
+ *
2023
+ * @summary Get browser instance details
2024
+ * @param {string} browserId Unique browser identifier
2025
+ * @param {*} [options] Override http request option.
2026
+ * @throws {RequiredError}
2027
+ */
2028
+ getBrowser(browserId, options) {
2029
+ return localVarFp.getBrowser(browserId, options).then((request) => request(axios, basePath));
2030
+ },
2031
+ /**
2032
+ *
2033
+ * @summary Get browser status
2034
+ * @param {string} browserId Unique browser identifier
2035
+ * @param {*} [options] Override http request option.
2036
+ * @throws {RequiredError}
2037
+ */
2038
+ getBrowserStatus(browserId, options) {
2039
+ return localVarFp.getBrowserStatus(browserId, options).then((request) => request(axios, basePath));
2040
+ },
2041
+ /**
2042
+ *
2043
+ * @summary Get page HTML content
2044
+ * @param {string} browserId Unique browser identifier
2045
+ * @param {*} [options] Override http request option.
2046
+ * @throws {RequiredError}
2047
+ */
2048
+ getContent(browserId, options) {
2049
+ return localVarFp.getContent(browserId, options).then((request) => request(axios, basePath));
2050
+ },
2051
+ /**
2052
+ *
2053
+ * @summary Get element text, attribute, or property
2054
+ * @param {string} browserId Unique browser identifier
2055
+ * @param {ElementDataRequest} payload
2056
+ * @param {*} [options] Override http request option.
2057
+ * @throws {RequiredError}
2058
+ */
2059
+ getElementData(browserId, payload, options) {
2060
+ return localVarFp.getElementData(browserId, payload, options).then((request) => request(axios, basePath));
2061
+ },
2062
+ /**
2063
+ *
2064
+ * @summary Get browser pool status
2065
+ * @param {*} [options] Override http request option.
2066
+ * @throws {RequiredError}
2067
+ */
2068
+ getPoolStatus(options) {
2069
+ return localVarFp.getPoolStatus(options).then((request) => request(axios, basePath));
2070
+ },
2071
+ /**
2072
+ *
2073
+ * @summary Get current page URL
2074
+ * @param {string} browserId Unique browser identifier
2075
+ * @param {*} [options] Override http request option.
2076
+ * @throws {RequiredError}
2077
+ */
2078
+ getUrl(browserId, options) {
2079
+ return localVarFp.getUrl(browserId, options).then((request) => request(axios, basePath));
2080
+ },
2081
+ /**
2082
+ *
2083
+ * @summary Click using selector or screen coordinates
2084
+ * @param {string} browserId Unique browser identifier
2085
+ * @param {CombinedGuiClickRequest} payload
2086
+ * @param {*} [options] Override http request option.
2087
+ * @throws {RequiredError}
2088
+ */
2089
+ guiClick(browserId, payload, options) {
2090
+ return localVarFp.guiClick(browserId, payload, options).then((request) => request(axios, basePath));
2091
+ },
2092
+ /**
2093
+ *
2094
+ * @summary Execute history action: back, forward, or refresh
2095
+ * @param {string} browserId Unique browser identifier
2096
+ * @param {HistoryRequest} payload
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ */
2100
+ history(browserId, payload, options) {
2101
+ return localVarFp.history(browserId, payload, options).then((request) => request(axios, basePath));
2102
+ },
2103
+ /**
2104
+ *
2105
+ * @summary List all active browser instances
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ listBrowsers(options) {
2110
+ return localVarFp.listBrowsers(options).then((request) => request(axios, basePath));
2111
+ },
2112
+ /**
2113
+ *
2114
+ * @summary Mouse action: hover or drag
2115
+ * @param {string} browserId Unique browser identifier
2116
+ * @param {MouseRequest} payload
2117
+ * @param {*} [options] Override http request option.
2118
+ * @throws {RequiredError}
2119
+ */
2120
+ mouse(browserId, payload, options) {
2121
+ return localVarFp.mouse(browserId, payload, options).then((request) => request(axios, basePath));
2122
+ },
2123
+ /**
2124
+ *
2125
+ * @summary Navigate to a URL
2126
+ * @param {string} browserId Unique browser identifier
2127
+ * @param {NavigateRequest} payload
2128
+ * @param {*} [options] Override http request option.
2129
+ * @throws {RequiredError}
2130
+ */
2131
+ navigateBrowser(browserId, payload, options) {
2132
+ return localVarFp.navigateBrowser(browserId, payload, options).then((request) => request(axios, basePath));
2133
+ },
2134
+ /**
2135
+ *
2136
+ * @summary Get or clear network logs
2137
+ * @param {string} browserId Unique browser identifier
2138
+ * @param {NetworkLogsRequest} payload
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ networkLogs(browserId, payload, options) {
2143
+ return localVarFp.networkLogs(browserId, payload, options).then((request) => request(axios, basePath));
2144
+ },
2145
+ /**
2146
+ *
2147
+ * @summary Manage performance: start_trace, stop_trace, metrics, or analyze
2148
+ * @param {string} browserId Unique browser identifier
2149
+ * @param {PerformanceRequest} payload
2150
+ * @param {*} [options] Override http request option.
2151
+ * @throws {RequiredError}
2152
+ */
2153
+ performance(browserId, payload, options) {
2154
+ return localVarFp.performance(browserId, payload, options).then((request) => request(axios, basePath));
2155
+ },
2156
+ /**
2157
+ *
2158
+ * @summary Press keys on an element
2159
+ * @param {string} browserId Unique browser identifier
2160
+ * @param {PressKeysRequest} payload
2161
+ * @param {*} [options] Override http request option.
2162
+ * @throws {RequiredError}
2163
+ */
2164
+ pressKeys(browserId, payload, options) {
2165
+ return localVarFp.pressKeys(browserId, payload, options).then((request) => request(axios, basePath));
2166
+ },
2167
+ /**
2168
+ *
2169
+ * @summary Resize viewport
2170
+ * @param {string} browserId Unique browser identifier
2171
+ * @param {ResizeRequest} payload
2172
+ * @param {*} [options] Override http request option.
2173
+ * @throws {RequiredError}
2174
+ */
2175
+ resize(browserId, payload, options) {
2176
+ return localVarFp.resize(browserId, payload, options).then((request) => request(axios, basePath));
2177
+ },
2178
+ /**
2179
+ *
2180
+ * @summary Scroll to element/coordinates (absolute) or by delta (relative)
2181
+ * @param {string} browserId Unique browser identifier
2182
+ * @param {CombinedScrollRequest} payload
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ scroll(browserId, payload, options) {
2187
+ return localVarFp.scroll(browserId, payload, options).then((request) => request(axios, basePath));
2188
+ },
2189
+ /**
2190
+ *
2191
+ * @summary Select dropdown: select option or get options
2192
+ * @param {string} browserId Unique browser identifier
2193
+ * @param {SelectRequest} payload
2194
+ * @param {*} [options] Override http request option.
2195
+ * @throws {RequiredError}
2196
+ */
2197
+ select(browserId, payload, options) {
2198
+ return localVarFp.select(browserId, payload, options).then((request) => request(axios, basePath));
2199
+ },
2200
+ /**
2201
+ *
2202
+ * @summary Manage browser tabs: list, new, switch, close, or current
2203
+ * @param {string} browserId Unique browser identifier
2204
+ * @param {TabsRequest} payload
2205
+ * @param {*} [options] Override http request option.
2206
+ * @throws {RequiredError}
2207
+ */
2208
+ tabs(browserId, payload, options) {
2209
+ return localVarFp.tabs(browserId, payload, options).then((request) => request(axios, basePath));
2210
+ },
2211
+ /**
2212
+ *
2213
+ * @summary Take a screenshot
2214
+ * @param {string} browserId Unique browser identifier
2215
+ * @param {*} [options] Override http request option.
2216
+ * @throws {RequiredError}
2217
+ */
2218
+ takeScreenshot(browserId, options) {
2219
+ return localVarFp.takeScreenshot(browserId, options).then((request) => request(axios, basePath));
2220
+ },
2221
+ /**
2222
+ *
2223
+ * @summary Take DOM/accessibility snapshot
2224
+ * @param {string} browserId Unique browser identifier
2225
+ * @param {SnapshotRequest} payload
2226
+ * @param {*} [options] Override http request option.
2227
+ * @throws {RequiredError}
2228
+ */
2229
+ takeSnapshot(browserId, payload, options) {
2230
+ return localVarFp.takeSnapshot(browserId, payload, options).then((request) => request(axios, basePath));
2231
+ },
2232
+ /**
2233
+ *
2234
+ * @summary Type text into an element
2235
+ * @param {string} browserId Unique browser identifier
2236
+ * @param {TypeRequest} payload
2237
+ * @param {*} [options] Override http request option.
2238
+ * @throws {RequiredError}
2239
+ */
2240
+ typeText(browserId, payload, options) {
2241
+ return localVarFp.typeText(browserId, payload, options).then((request) => request(axios, basePath));
2242
+ },
2243
+ /**
2244
+ *
2245
+ * @summary Upload a file
2246
+ * @param {string} browserId Unique browser identifier
2247
+ * @param {UploadFileRequest} payload
2248
+ * @param {*} [options] Override http request option.
2249
+ * @throws {RequiredError}
2250
+ */
2251
+ uploadFile(browserId, payload, options) {
2252
+ return localVarFp.uploadFile(browserId, payload, options).then((request) => request(axios, basePath));
2253
+ },
2254
+ /**
2255
+ *
2256
+ * @summary Wait for element to become visible or hidden
2257
+ * @param {string} browserId Unique browser identifier
2258
+ * @param {WaitElementRequest} payload
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ waitElement(browserId, payload, options) {
2263
+ return localVarFp.waitElement(browserId, payload, options).then((request) => request(axios, basePath));
2264
+ },
2265
+ /**
2266
+ *
2267
+ * @summary Analyze visible page content using AI
2268
+ * @param {string} browserId Unique browser identifier
2269
+ * @param {*} [options] Override http request option.
2270
+ * @throws {RequiredError}
2271
+ */
2272
+ whatIsVisible(browserId, options) {
2273
+ return localVarFp.whatIsVisible(browserId, options).then((request) => request(axios, basePath));
2274
+ },
2275
+ };
2276
+ };
2277
+ exports.BrowserApiFactory = BrowserApiFactory;
2278
+ /**
2279
+ * BrowserApi - object-oriented interface
2280
+ */
2281
+ class BrowserApi extends base_1.BaseAPI {
2282
+ /**
2283
+ *
2284
+ * @summary Check if element exists or is visible
2285
+ * @param {string} browserId Unique browser identifier
2286
+ * @param {CheckElementRequest} payload
2287
+ * @param {*} [options] Override http request option.
2288
+ * @throws {RequiredError}
2289
+ */
2290
+ checkElement(browserId, payload, options) {
2291
+ return (0, exports.BrowserApiFp)(this.configuration).checkElement(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2292
+ }
2293
+ /**
2294
+ * Use if_visible=true to only click if visible.
2295
+ * @summary Click element
2296
+ * @param {string} browserId Unique browser identifier
2297
+ * @param {ClickRequest} payload
2298
+ * @param {*} [options] Override http request option.
2299
+ * @throws {RequiredError}
2300
+ */
2301
+ click(browserId, payload, options) {
2302
+ return (0, exports.BrowserApiFp)(this.configuration).click(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2303
+ }
2304
+ /**
2305
+ *
2306
+ * @summary Close all active browser instances
2307
+ * @param {*} [options] Override http request option.
2308
+ * @throws {RequiredError}
2309
+ */
2310
+ closeAllBrowsers(options) {
2311
+ return (0, exports.BrowserApiFp)(this.configuration).closeAllBrowsers(options).then((request) => request(this.axios, this.basePath));
2312
+ }
2313
+ /**
2314
+ *
2315
+ * @summary Close a browser instance
2316
+ * @param {string} browserId Unique browser identifier
2317
+ * @param {*} [options] Override http request option.
2318
+ * @throws {RequiredError}
2319
+ */
2320
+ closeBrowser(browserId, options) {
2321
+ return (0, exports.BrowserApiFp)(this.configuration).closeBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
2322
+ }
2323
+ /**
2324
+ *
2325
+ * @summary Get or clear console logs
2326
+ * @param {string} browserId Unique browser identifier
2327
+ * @param {ConsoleLogsRequest} payload
2328
+ * @param {*} [options] Override http request option.
2329
+ * @throws {RequiredError}
2330
+ */
2331
+ consoleLogs(browserId, payload, options) {
2332
+ return (0, exports.BrowserApiFp)(this.configuration).consoleLogs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2333
+ }
2334
+ /**
2335
+ *
2336
+ * @summary Create a new browser instance
2337
+ * @param {BrowserConfig} payload
2338
+ * @param {*} [options] Override http request option.
2339
+ * @throws {RequiredError}
2340
+ */
2341
+ createBrowser(payload, options) {
2342
+ return (0, exports.BrowserApiFp)(this.configuration).createBrowser(payload, options).then((request) => request(this.axios, this.basePath));
2343
+ }
2344
+ /**
2345
+ *
2346
+ * @summary Close and remove a browser instance
2347
+ * @param {string} browserId Unique browser identifier
2348
+ * @param {*} [options] Override http request option.
2349
+ * @throws {RequiredError}
2350
+ */
2351
+ deleteBrowser(browserId, options) {
2352
+ return (0, exports.BrowserApiFp)(this.configuration).deleteBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
2353
+ }
2354
+ /**
2355
+ *
2356
+ * @summary Detect element coordinates using AI vision
2357
+ * @param {string} browserId Unique browser identifier
2358
+ * @param {DetectCoordinatesRequest} payload
2359
+ * @param {*} [options] Override http request option.
2360
+ * @throws {RequiredError}
2361
+ */
2362
+ detectCoordinates(browserId, payload, options) {
2363
+ return (0, exports.BrowserApiFp)(this.configuration).detectCoordinates(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2364
+ }
2365
+ /**
2366
+ *
2367
+ * @summary Manage browser dialogs: get, accept, or dismiss
2368
+ * @param {string} browserId Unique browser identifier
2369
+ * @param {CombinedDialogRequest} payload
2370
+ * @param {*} [options] Override http request option.
2371
+ * @throws {RequiredError}
2372
+ */
2373
+ dialog(browserId, payload, options) {
2374
+ return (0, exports.BrowserApiFp)(this.configuration).dialog(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2375
+ }
2376
+ /**
2377
+ *
2378
+ * @summary Manage device emulation: set, clear, or list_devices
2379
+ * @param {string} browserId Unique browser identifier
2380
+ * @param {CombinedEmulateRequest} payload
2381
+ * @param {*} [options] Override http request option.
2382
+ * @throws {RequiredError}
2383
+ */
2384
+ emulate(browserId, payload, options) {
2385
+ return (0, exports.BrowserApiFp)(this.configuration).emulate(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2386
+ }
2387
+ /**
2388
+ *
2389
+ * @summary Execute JavaScript
2390
+ * @param {string} browserId Unique browser identifier
2391
+ * @param {ExecuteRequest} payload
2392
+ * @param {*} [options] Override http request option.
2393
+ * @throws {RequiredError}
2394
+ */
2395
+ executeScript(browserId, payload, options) {
2396
+ return (0, exports.BrowserApiFp)(this.configuration).executeScript(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2397
+ }
2398
+ /**
2399
+ *
2400
+ * @summary Fill multiple form fields
2401
+ * @param {string} browserId Unique browser identifier
2402
+ * @param {FillFormRequest} payload
2403
+ * @param {*} [options] Override http request option.
2404
+ * @throws {RequiredError}
2405
+ */
2406
+ fillForm(browserId, payload, options) {
2407
+ return (0, exports.BrowserApiFp)(this.configuration).fillForm(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2408
+ }
2409
+ /**
2410
+ *
2411
+ * @summary Get browser instance details
2412
+ * @param {string} browserId Unique browser identifier
2413
+ * @param {*} [options] Override http request option.
2414
+ * @throws {RequiredError}
2415
+ */
2416
+ getBrowser(browserId, options) {
2417
+ return (0, exports.BrowserApiFp)(this.configuration).getBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
2418
+ }
2419
+ /**
2420
+ *
2421
+ * @summary Get browser status
2422
+ * @param {string} browserId Unique browser identifier
2423
+ * @param {*} [options] Override http request option.
2424
+ * @throws {RequiredError}
2425
+ */
2426
+ getBrowserStatus(browserId, options) {
2427
+ return (0, exports.BrowserApiFp)(this.configuration).getBrowserStatus(browserId, options).then((request) => request(this.axios, this.basePath));
2428
+ }
2429
+ /**
2430
+ *
2431
+ * @summary Get page HTML content
2432
+ * @param {string} browserId Unique browser identifier
2433
+ * @param {*} [options] Override http request option.
2434
+ * @throws {RequiredError}
2435
+ */
2436
+ getContent(browserId, options) {
2437
+ return (0, exports.BrowserApiFp)(this.configuration).getContent(browserId, options).then((request) => request(this.axios, this.basePath));
2438
+ }
2439
+ /**
2440
+ *
2441
+ * @summary Get element text, attribute, or property
2442
+ * @param {string} browserId Unique browser identifier
2443
+ * @param {ElementDataRequest} payload
2444
+ * @param {*} [options] Override http request option.
2445
+ * @throws {RequiredError}
2446
+ */
2447
+ getElementData(browserId, payload, options) {
2448
+ return (0, exports.BrowserApiFp)(this.configuration).getElementData(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2449
+ }
2450
+ /**
2451
+ *
2452
+ * @summary Get browser pool status
2453
+ * @param {*} [options] Override http request option.
2454
+ * @throws {RequiredError}
2455
+ */
2456
+ getPoolStatus(options) {
2457
+ return (0, exports.BrowserApiFp)(this.configuration).getPoolStatus(options).then((request) => request(this.axios, this.basePath));
2458
+ }
2459
+ /**
2460
+ *
2461
+ * @summary Get current page URL
2462
+ * @param {string} browserId Unique browser identifier
2463
+ * @param {*} [options] Override http request option.
2464
+ * @throws {RequiredError}
2465
+ */
2466
+ getUrl(browserId, options) {
2467
+ return (0, exports.BrowserApiFp)(this.configuration).getUrl(browserId, options).then((request) => request(this.axios, this.basePath));
2468
+ }
2469
+ /**
2470
+ *
2471
+ * @summary Click using selector or screen coordinates
2472
+ * @param {string} browserId Unique browser identifier
2473
+ * @param {CombinedGuiClickRequest} payload
2474
+ * @param {*} [options] Override http request option.
2475
+ * @throws {RequiredError}
2476
+ */
2477
+ guiClick(browserId, payload, options) {
2478
+ return (0, exports.BrowserApiFp)(this.configuration).guiClick(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2479
+ }
2480
+ /**
2481
+ *
2482
+ * @summary Execute history action: back, forward, or refresh
2483
+ * @param {string} browserId Unique browser identifier
2484
+ * @param {HistoryRequest} payload
2485
+ * @param {*} [options] Override http request option.
2486
+ * @throws {RequiredError}
2487
+ */
2488
+ history(browserId, payload, options) {
2489
+ return (0, exports.BrowserApiFp)(this.configuration).history(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2490
+ }
2491
+ /**
2492
+ *
2493
+ * @summary List all active browser instances
2494
+ * @param {*} [options] Override http request option.
2495
+ * @throws {RequiredError}
2496
+ */
2497
+ listBrowsers(options) {
2498
+ return (0, exports.BrowserApiFp)(this.configuration).listBrowsers(options).then((request) => request(this.axios, this.basePath));
2499
+ }
2500
+ /**
2501
+ *
2502
+ * @summary Mouse action: hover or drag
2503
+ * @param {string} browserId Unique browser identifier
2504
+ * @param {MouseRequest} payload
2505
+ * @param {*} [options] Override http request option.
2506
+ * @throws {RequiredError}
2507
+ */
2508
+ mouse(browserId, payload, options) {
2509
+ return (0, exports.BrowserApiFp)(this.configuration).mouse(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2510
+ }
2511
+ /**
2512
+ *
2513
+ * @summary Navigate to a URL
2514
+ * @param {string} browserId Unique browser identifier
2515
+ * @param {NavigateRequest} payload
2516
+ * @param {*} [options] Override http request option.
2517
+ * @throws {RequiredError}
2518
+ */
2519
+ navigateBrowser(browserId, payload, options) {
2520
+ return (0, exports.BrowserApiFp)(this.configuration).navigateBrowser(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2521
+ }
2522
+ /**
2523
+ *
2524
+ * @summary Get or clear network logs
2525
+ * @param {string} browserId Unique browser identifier
2526
+ * @param {NetworkLogsRequest} payload
2527
+ * @param {*} [options] Override http request option.
2528
+ * @throws {RequiredError}
2529
+ */
2530
+ networkLogs(browserId, payload, options) {
2531
+ return (0, exports.BrowserApiFp)(this.configuration).networkLogs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2532
+ }
2533
+ /**
2534
+ *
2535
+ * @summary Manage performance: start_trace, stop_trace, metrics, or analyze
2536
+ * @param {string} browserId Unique browser identifier
2537
+ * @param {PerformanceRequest} payload
2538
+ * @param {*} [options] Override http request option.
2539
+ * @throws {RequiredError}
2540
+ */
2541
+ performance(browserId, payload, options) {
2542
+ return (0, exports.BrowserApiFp)(this.configuration).performance(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2543
+ }
2544
+ /**
2545
+ *
2546
+ * @summary Press keys on an element
2547
+ * @param {string} browserId Unique browser identifier
2548
+ * @param {PressKeysRequest} payload
2549
+ * @param {*} [options] Override http request option.
2550
+ * @throws {RequiredError}
2551
+ */
2552
+ pressKeys(browserId, payload, options) {
2553
+ return (0, exports.BrowserApiFp)(this.configuration).pressKeys(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2554
+ }
2555
+ /**
2556
+ *
2557
+ * @summary Resize viewport
2558
+ * @param {string} browserId Unique browser identifier
2559
+ * @param {ResizeRequest} payload
2560
+ * @param {*} [options] Override http request option.
2561
+ * @throws {RequiredError}
2562
+ */
2563
+ resize(browserId, payload, options) {
2564
+ return (0, exports.BrowserApiFp)(this.configuration).resize(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2565
+ }
2566
+ /**
2567
+ *
2568
+ * @summary Scroll to element/coordinates (absolute) or by delta (relative)
2569
+ * @param {string} browserId Unique browser identifier
2570
+ * @param {CombinedScrollRequest} payload
2571
+ * @param {*} [options] Override http request option.
2572
+ * @throws {RequiredError}
2573
+ */
2574
+ scroll(browserId, payload, options) {
2575
+ return (0, exports.BrowserApiFp)(this.configuration).scroll(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2576
+ }
2577
+ /**
2578
+ *
2579
+ * @summary Select dropdown: select option or get options
2580
+ * @param {string} browserId Unique browser identifier
2581
+ * @param {SelectRequest} payload
2582
+ * @param {*} [options] Override http request option.
2583
+ * @throws {RequiredError}
2584
+ */
2585
+ select(browserId, payload, options) {
2586
+ return (0, exports.BrowserApiFp)(this.configuration).select(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2587
+ }
2588
+ /**
2589
+ *
2590
+ * @summary Manage browser tabs: list, new, switch, close, or current
2591
+ * @param {string} browserId Unique browser identifier
2592
+ * @param {TabsRequest} payload
2593
+ * @param {*} [options] Override http request option.
2594
+ * @throws {RequiredError}
2595
+ */
2596
+ tabs(browserId, payload, options) {
2597
+ return (0, exports.BrowserApiFp)(this.configuration).tabs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2598
+ }
2599
+ /**
2600
+ *
2601
+ * @summary Take a screenshot
2602
+ * @param {string} browserId Unique browser identifier
2603
+ * @param {*} [options] Override http request option.
2604
+ * @throws {RequiredError}
2605
+ */
2606
+ takeScreenshot(browserId, options) {
2607
+ return (0, exports.BrowserApiFp)(this.configuration).takeScreenshot(browserId, options).then((request) => request(this.axios, this.basePath));
2608
+ }
2609
+ /**
2610
+ *
2611
+ * @summary Take DOM/accessibility snapshot
2612
+ * @param {string} browserId Unique browser identifier
2613
+ * @param {SnapshotRequest} payload
2614
+ * @param {*} [options] Override http request option.
2615
+ * @throws {RequiredError}
2616
+ */
2617
+ takeSnapshot(browserId, payload, options) {
2618
+ return (0, exports.BrowserApiFp)(this.configuration).takeSnapshot(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2619
+ }
2620
+ /**
2621
+ *
2622
+ * @summary Type text into an element
2623
+ * @param {string} browserId Unique browser identifier
2624
+ * @param {TypeRequest} payload
2625
+ * @param {*} [options] Override http request option.
2626
+ * @throws {RequiredError}
2627
+ */
2628
+ typeText(browserId, payload, options) {
2629
+ return (0, exports.BrowserApiFp)(this.configuration).typeText(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2630
+ }
2631
+ /**
2632
+ *
2633
+ * @summary Upload a file
2634
+ * @param {string} browserId Unique browser identifier
2635
+ * @param {UploadFileRequest} payload
2636
+ * @param {*} [options] Override http request option.
2637
+ * @throws {RequiredError}
2638
+ */
2639
+ uploadFile(browserId, payload, options) {
2640
+ return (0, exports.BrowserApiFp)(this.configuration).uploadFile(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2641
+ }
2642
+ /**
2643
+ *
2644
+ * @summary Wait for element to become visible or hidden
2645
+ * @param {string} browserId Unique browser identifier
2646
+ * @param {WaitElementRequest} payload
2647
+ * @param {*} [options] Override http request option.
2648
+ * @throws {RequiredError}
2649
+ */
2650
+ waitElement(browserId, payload, options) {
2651
+ return (0, exports.BrowserApiFp)(this.configuration).waitElement(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2652
+ }
2653
+ /**
2654
+ *
2655
+ * @summary Analyze visible page content using AI
2656
+ * @param {string} browserId Unique browser identifier
2657
+ * @param {*} [options] Override http request option.
2658
+ * @throws {RequiredError}
2659
+ */
2660
+ whatIsVisible(browserId, options) {
2661
+ return (0, exports.BrowserApiFp)(this.configuration).whatIsVisible(browserId, options).then((request) => request(this.axios, this.basePath));
2662
+ }
2663
+ }
2664
+ exports.BrowserApi = BrowserApi;
2665
+ /**
2666
+ * HealthApi - axios parameter creator
2667
+ */
2668
+ const HealthApiAxiosParamCreator = function (configuration) {
2669
+ return {
2670
+ /**
2671
+ *
2672
+ * @summary Check the health status of the browser pool
2673
+ * @param {*} [options] Override http request option.
2674
+ * @throws {RequiredError}
2675
+ */
2676
+ healthCheck: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2677
+ const localVarPath = `/health/`;
2678
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2679
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2680
+ let baseOptions;
2681
+ if (configuration) {
2682
+ baseOptions = configuration.baseOptions;
2683
+ }
2684
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2685
+ const localVarHeaderParameter = {};
2686
+ const localVarQueryParameter = {};
2687
+ localVarHeaderParameter['Accept'] = 'application/json';
2688
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2690
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2691
+ return {
2692
+ url: (0, common_1.toPathString)(localVarUrlObj),
2693
+ options: localVarRequestOptions,
2694
+ };
2695
+ }),
2696
+ /**
2697
+ *
2698
+ * @summary Get Prometheus-style metrics for monitoring
2699
+ * @param {*} [options] Override http request option.
2700
+ * @throws {RequiredError}
2701
+ */
2702
+ prometheusMetrics: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2703
+ const localVarPath = `/health/metrics`;
2704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2705
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2706
+ let baseOptions;
2707
+ if (configuration) {
2708
+ baseOptions = configuration.baseOptions;
2709
+ }
2710
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2711
+ const localVarHeaderParameter = {};
2712
+ const localVarQueryParameter = {};
2713
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2714
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2715
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2716
+ return {
2717
+ url: (0, common_1.toPathString)(localVarUrlObj),
2718
+ options: localVarRequestOptions,
2719
+ };
2720
+ }),
2721
+ };
2722
+ };
2723
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
2724
+ /**
2725
+ * HealthApi - functional programming interface
2726
+ */
2727
+ const HealthApiFp = function (configuration) {
2728
+ const localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
2729
+ return {
2730
+ /**
2731
+ *
2732
+ * @summary Check the health status of the browser pool
2733
+ * @param {*} [options] Override http request option.
2734
+ * @throws {RequiredError}
2735
+ */
2736
+ healthCheck(options) {
2737
+ return __awaiter(this, void 0, void 0, function* () {
2738
+ var _a, _b, _c;
2739
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
2740
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2741
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2742
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2743
+ });
2744
+ },
2745
+ /**
2746
+ *
2747
+ * @summary Get Prometheus-style metrics for monitoring
2748
+ * @param {*} [options] Override http request option.
2749
+ * @throws {RequiredError}
2750
+ */
2751
+ prometheusMetrics(options) {
2752
+ return __awaiter(this, void 0, void 0, function* () {
2753
+ var _a, _b, _c;
2754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.prometheusMetrics(options);
2755
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2756
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.prometheusMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2757
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2758
+ });
2759
+ },
2760
+ };
2761
+ };
2762
+ exports.HealthApiFp = HealthApiFp;
2763
+ /**
2764
+ * HealthApi - factory interface
2765
+ */
2766
+ const HealthApiFactory = function (configuration, basePath, axios) {
2767
+ const localVarFp = (0, exports.HealthApiFp)(configuration);
2768
+ return {
2769
+ /**
2770
+ *
2771
+ * @summary Check the health status of the browser pool
2772
+ * @param {*} [options] Override http request option.
2773
+ * @throws {RequiredError}
2774
+ */
2775
+ healthCheck(options) {
2776
+ return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
2777
+ },
2778
+ /**
2779
+ *
2780
+ * @summary Get Prometheus-style metrics for monitoring
2781
+ * @param {*} [options] Override http request option.
2782
+ * @throws {RequiredError}
2783
+ */
2784
+ prometheusMetrics(options) {
2785
+ return localVarFp.prometheusMetrics(options).then((request) => request(axios, basePath));
2786
+ },
2787
+ };
2788
+ };
2789
+ exports.HealthApiFactory = HealthApiFactory;
2790
+ /**
2791
+ * HealthApi - object-oriented interface
2792
+ */
2793
+ class HealthApi extends base_1.BaseAPI {
2794
+ /**
2795
+ *
2796
+ * @summary Check the health status of the browser pool
2797
+ * @param {*} [options] Override http request option.
2798
+ * @throws {RequiredError}
2799
+ */
2800
+ healthCheck(options) {
2801
+ return (0, exports.HealthApiFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
2802
+ }
2803
+ /**
2804
+ *
2805
+ * @summary Get Prometheus-style metrics for monitoring
2806
+ * @param {*} [options] Override http request option.
2807
+ * @throws {RequiredError}
2808
+ */
2809
+ prometheusMetrics(options) {
2810
+ return (0, exports.HealthApiFp)(this.configuration).prometheusMetrics(options).then((request) => request(this.axios, this.basePath));
2811
+ }
2812
+ }
2813
+ exports.HealthApi = HealthApi;
2814
+ /**
2815
+ * PoolApi - axios parameter creator
2816
+ */
2817
+ const PoolApiAxiosParamCreator = function (configuration) {
2818
+ return {
2819
+ /**
2820
+ *
2821
+ * @summary Scale the browser pool to a new maximum size
2822
+ * @param {ScalePool} payload
2823
+ * @param {*} [options] Override http request option.
2824
+ * @throws {RequiredError}
2825
+ */
2826
+ scalePool: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
2827
+ // verify required parameter 'payload' is not null or undefined
2828
+ (0, common_1.assertParamExists)('scalePool', 'payload', payload);
2829
+ const localVarPath = `/pool/scale`;
2830
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2831
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2832
+ let baseOptions;
2833
+ if (configuration) {
2834
+ baseOptions = configuration.baseOptions;
2835
+ }
2836
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2837
+ const localVarHeaderParameter = {};
2838
+ const localVarQueryParameter = {};
2839
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2840
+ localVarHeaderParameter['Accept'] = 'application/json';
2841
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2843
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2844
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
2845
+ return {
2846
+ url: (0, common_1.toPathString)(localVarUrlObj),
2847
+ options: localVarRequestOptions,
2848
+ };
2849
+ }),
2850
+ /**
2851
+ *
2852
+ * @summary Gracefully shutdown the browser pool server
2853
+ * @param {*} [options] Override http request option.
2854
+ * @throws {RequiredError}
2855
+ */
2856
+ shutdownServer: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2857
+ const localVarPath = `/pool/shutdown`;
2858
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2859
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2860
+ let baseOptions;
2861
+ if (configuration) {
2862
+ baseOptions = configuration.baseOptions;
2863
+ }
2864
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2865
+ const localVarHeaderParameter = {};
2866
+ const localVarQueryParameter = {};
2867
+ localVarHeaderParameter['Accept'] = 'application/json';
2868
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2869
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2870
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2871
+ return {
2872
+ url: (0, common_1.toPathString)(localVarUrlObj),
2873
+ options: localVarRequestOptions,
2874
+ };
2875
+ }),
2876
+ };
2877
+ };
2878
+ exports.PoolApiAxiosParamCreator = PoolApiAxiosParamCreator;
2879
+ /**
2880
+ * PoolApi - functional programming interface
2881
+ */
2882
+ const PoolApiFp = function (configuration) {
2883
+ const localVarAxiosParamCreator = (0, exports.PoolApiAxiosParamCreator)(configuration);
2884
+ return {
2885
+ /**
2886
+ *
2887
+ * @summary Scale the browser pool to a new maximum size
2888
+ * @param {ScalePool} payload
2889
+ * @param {*} [options] Override http request option.
2890
+ * @throws {RequiredError}
2891
+ */
2892
+ scalePool(payload, options) {
2893
+ return __awaiter(this, void 0, void 0, function* () {
2894
+ var _a, _b, _c;
2895
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.scalePool(payload, options);
2896
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2897
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PoolApi.scalePool']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2898
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2899
+ });
2900
+ },
2901
+ /**
2902
+ *
2903
+ * @summary Gracefully shutdown the browser pool server
2904
+ * @param {*} [options] Override http request option.
2905
+ * @throws {RequiredError}
2906
+ */
2907
+ shutdownServer(options) {
2908
+ return __awaiter(this, void 0, void 0, function* () {
2909
+ var _a, _b, _c;
2910
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.shutdownServer(options);
2911
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2912
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PoolApi.shutdownServer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2913
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2914
+ });
2915
+ },
2916
+ };
2917
+ };
2918
+ exports.PoolApiFp = PoolApiFp;
2919
+ /**
2920
+ * PoolApi - factory interface
2921
+ */
2922
+ const PoolApiFactory = function (configuration, basePath, axios) {
2923
+ const localVarFp = (0, exports.PoolApiFp)(configuration);
2924
+ return {
2925
+ /**
2926
+ *
2927
+ * @summary Scale the browser pool to a new maximum size
2928
+ * @param {ScalePool} payload
2929
+ * @param {*} [options] Override http request option.
2930
+ * @throws {RequiredError}
2931
+ */
2932
+ scalePool(payload, options) {
2933
+ return localVarFp.scalePool(payload, options).then((request) => request(axios, basePath));
2934
+ },
2935
+ /**
2936
+ *
2937
+ * @summary Gracefully shutdown the browser pool server
2938
+ * @param {*} [options] Override http request option.
2939
+ * @throws {RequiredError}
2940
+ */
2941
+ shutdownServer(options) {
2942
+ return localVarFp.shutdownServer(options).then((request) => request(axios, basePath));
2943
+ },
2944
+ };
2945
+ };
2946
+ exports.PoolApiFactory = PoolApiFactory;
2947
+ /**
2948
+ * PoolApi - object-oriented interface
2949
+ */
2950
+ class PoolApi extends base_1.BaseAPI {
2951
+ /**
2952
+ *
2953
+ * @summary Scale the browser pool to a new maximum size
2954
+ * @param {ScalePool} payload
2955
+ * @param {*} [options] Override http request option.
2956
+ * @throws {RequiredError}
2957
+ */
2958
+ scalePool(payload, options) {
2959
+ return (0, exports.PoolApiFp)(this.configuration).scalePool(payload, options).then((request) => request(this.axios, this.basePath));
2960
+ }
2961
+ /**
2962
+ *
2963
+ * @summary Gracefully shutdown the browser pool server
2964
+ * @param {*} [options] Override http request option.
2965
+ * @throws {RequiredError}
2966
+ */
2967
+ shutdownServer(options) {
2968
+ return (0, exports.PoolApiFp)(this.configuration).shutdownServer(options).then((request) => request(this.axios, this.basePath));
2969
+ }
2970
+ }
2971
+ exports.PoolApi = PoolApi;
2972
+ /**
2973
+ * ProfilesApi - axios parameter creator
2974
+ */
2975
+ const ProfilesApiAxiosParamCreator = function (configuration) {
2976
+ return {
2977
+ /**
2978
+ *
2979
+ * @summary Create a new browser profile
2980
+ * @param {CreateProfileRequest} payload
2981
+ * @param {*} [options] Override http request option.
2982
+ * @throws {RequiredError}
2983
+ */
2984
+ createProfile: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
2985
+ // verify required parameter 'payload' is not null or undefined
2986
+ (0, common_1.assertParamExists)('createProfile', 'payload', payload);
2987
+ const localVarPath = `/profiles/`;
2988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2989
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2990
+ let baseOptions;
2991
+ if (configuration) {
2992
+ baseOptions = configuration.baseOptions;
2993
+ }
2994
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2995
+ const localVarHeaderParameter = {};
2996
+ const localVarQueryParameter = {};
2997
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2998
+ localVarHeaderParameter['Accept'] = 'application/json';
2999
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3000
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3001
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3002
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
3003
+ return {
3004
+ url: (0, common_1.toPathString)(localVarUrlObj),
3005
+ options: localVarRequestOptions,
3006
+ };
3007
+ }),
3008
+ /**
3009
+ *
3010
+ * @summary Delete a browser profile
3011
+ * @param {string} profileName Profile name
3012
+ * @param {*} [options] Override http request option.
3013
+ * @throws {RequiredError}
3014
+ */
3015
+ deleteProfile: (profileName_1, ...args_1) => __awaiter(this, [profileName_1, ...args_1], void 0, function* (profileName, options = {}) {
3016
+ // verify required parameter 'profileName' is not null or undefined
3017
+ (0, common_1.assertParamExists)('deleteProfile', 'profileName', profileName);
3018
+ const localVarPath = `/profiles/{profile_name}`
3019
+ .replace(`{${"profile_name"}}`, encodeURIComponent(String(profileName)));
3020
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3021
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3022
+ let baseOptions;
3023
+ if (configuration) {
3024
+ baseOptions = configuration.baseOptions;
3025
+ }
3026
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3027
+ const localVarHeaderParameter = {};
3028
+ const localVarQueryParameter = {};
3029
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3031
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3032
+ return {
3033
+ url: (0, common_1.toPathString)(localVarUrlObj),
3034
+ options: localVarRequestOptions,
3035
+ };
3036
+ }),
3037
+ /**
3038
+ *
3039
+ * @summary Get profile information
3040
+ * @param {string} profileName Profile name
3041
+ * @param {*} [options] Override http request option.
3042
+ * @throws {RequiredError}
3043
+ */
3044
+ getProfile: (profileName_1, ...args_1) => __awaiter(this, [profileName_1, ...args_1], void 0, function* (profileName, options = {}) {
3045
+ // verify required parameter 'profileName' is not null or undefined
3046
+ (0, common_1.assertParamExists)('getProfile', 'profileName', profileName);
3047
+ const localVarPath = `/profiles/{profile_name}`
3048
+ .replace(`{${"profile_name"}}`, encodeURIComponent(String(profileName)));
3049
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3050
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3051
+ let baseOptions;
3052
+ if (configuration) {
3053
+ baseOptions = configuration.baseOptions;
3054
+ }
3055
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3056
+ const localVarHeaderParameter = {};
3057
+ const localVarQueryParameter = {};
3058
+ localVarHeaderParameter['Accept'] = 'application/json';
3059
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3061
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3062
+ return {
3063
+ url: (0, common_1.toPathString)(localVarUrlObj),
3064
+ options: localVarRequestOptions,
3065
+ };
3066
+ }),
3067
+ /**
3068
+ *
3069
+ * @summary List all browser profiles
3070
+ * @param {*} [options] Override http request option.
3071
+ * @throws {RequiredError}
3072
+ */
3073
+ listProfiles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3074
+ const localVarPath = `/profiles/`;
3075
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3076
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3077
+ let baseOptions;
3078
+ if (configuration) {
3079
+ baseOptions = configuration.baseOptions;
3080
+ }
3081
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3082
+ const localVarHeaderParameter = {};
3083
+ const localVarQueryParameter = {};
3084
+ localVarHeaderParameter['Accept'] = 'application/json';
3085
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3086
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3087
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3088
+ return {
3089
+ url: (0, common_1.toPathString)(localVarUrlObj),
3090
+ options: localVarRequestOptions,
3091
+ };
3092
+ }),
3093
+ };
3094
+ };
3095
+ exports.ProfilesApiAxiosParamCreator = ProfilesApiAxiosParamCreator;
3096
+ /**
3097
+ * ProfilesApi - functional programming interface
3098
+ */
3099
+ const ProfilesApiFp = function (configuration) {
3100
+ const localVarAxiosParamCreator = (0, exports.ProfilesApiAxiosParamCreator)(configuration);
3101
+ return {
3102
+ /**
3103
+ *
3104
+ * @summary Create a new browser profile
3105
+ * @param {CreateProfileRequest} payload
3106
+ * @param {*} [options] Override http request option.
3107
+ * @throws {RequiredError}
3108
+ */
3109
+ createProfile(payload, options) {
3110
+ return __awaiter(this, void 0, void 0, function* () {
3111
+ var _a, _b, _c;
3112
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createProfile(payload, options);
3113
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3114
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.createProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3115
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3116
+ });
3117
+ },
3118
+ /**
3119
+ *
3120
+ * @summary Delete a browser profile
3121
+ * @param {string} profileName Profile name
3122
+ * @param {*} [options] Override http request option.
3123
+ * @throws {RequiredError}
3124
+ */
3125
+ deleteProfile(profileName, options) {
3126
+ return __awaiter(this, void 0, void 0, function* () {
3127
+ var _a, _b, _c;
3128
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProfile(profileName, options);
3129
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3130
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.deleteProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3131
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3132
+ });
3133
+ },
3134
+ /**
3135
+ *
3136
+ * @summary Get profile information
3137
+ * @param {string} profileName Profile name
3138
+ * @param {*} [options] Override http request option.
3139
+ * @throws {RequiredError}
3140
+ */
3141
+ getProfile(profileName, options) {
3142
+ return __awaiter(this, void 0, void 0, function* () {
3143
+ var _a, _b, _c;
3144
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfile(profileName, options);
3145
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3146
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.getProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3147
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3148
+ });
3149
+ },
3150
+ /**
3151
+ *
3152
+ * @summary List all browser profiles
3153
+ * @param {*} [options] Override http request option.
3154
+ * @throws {RequiredError}
3155
+ */
3156
+ listProfiles(options) {
3157
+ return __awaiter(this, void 0, void 0, function* () {
3158
+ var _a, _b, _c;
3159
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfiles(options);
3160
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3161
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.listProfiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3162
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3163
+ });
3164
+ },
3165
+ };
3166
+ };
3167
+ exports.ProfilesApiFp = ProfilesApiFp;
3168
+ /**
3169
+ * ProfilesApi - factory interface
3170
+ */
3171
+ const ProfilesApiFactory = function (configuration, basePath, axios) {
3172
+ const localVarFp = (0, exports.ProfilesApiFp)(configuration);
3173
+ return {
3174
+ /**
3175
+ *
3176
+ * @summary Create a new browser profile
3177
+ * @param {CreateProfileRequest} payload
3178
+ * @param {*} [options] Override http request option.
3179
+ * @throws {RequiredError}
3180
+ */
3181
+ createProfile(payload, options) {
3182
+ return localVarFp.createProfile(payload, options).then((request) => request(axios, basePath));
3183
+ },
3184
+ /**
3185
+ *
3186
+ * @summary Delete a browser profile
3187
+ * @param {string} profileName Profile name
3188
+ * @param {*} [options] Override http request option.
3189
+ * @throws {RequiredError}
3190
+ */
3191
+ deleteProfile(profileName, options) {
3192
+ return localVarFp.deleteProfile(profileName, options).then((request) => request(axios, basePath));
3193
+ },
3194
+ /**
3195
+ *
3196
+ * @summary Get profile information
3197
+ * @param {string} profileName Profile name
3198
+ * @param {*} [options] Override http request option.
3199
+ * @throws {RequiredError}
3200
+ */
3201
+ getProfile(profileName, options) {
3202
+ return localVarFp.getProfile(profileName, options).then((request) => request(axios, basePath));
3203
+ },
3204
+ /**
3205
+ *
3206
+ * @summary List all browser profiles
3207
+ * @param {*} [options] Override http request option.
3208
+ * @throws {RequiredError}
3209
+ */
3210
+ listProfiles(options) {
3211
+ return localVarFp.listProfiles(options).then((request) => request(axios, basePath));
3212
+ },
3213
+ };
3214
+ };
3215
+ exports.ProfilesApiFactory = ProfilesApiFactory;
3216
+ /**
3217
+ * ProfilesApi - object-oriented interface
3218
+ */
3219
+ class ProfilesApi extends base_1.BaseAPI {
3220
+ /**
3221
+ *
3222
+ * @summary Create a new browser profile
3223
+ * @param {CreateProfileRequest} payload
3224
+ * @param {*} [options] Override http request option.
3225
+ * @throws {RequiredError}
3226
+ */
3227
+ createProfile(payload, options) {
3228
+ return (0, exports.ProfilesApiFp)(this.configuration).createProfile(payload, options).then((request) => request(this.axios, this.basePath));
3229
+ }
3230
+ /**
3231
+ *
3232
+ * @summary Delete a browser profile
3233
+ * @param {string} profileName Profile name
3234
+ * @param {*} [options] Override http request option.
3235
+ * @throws {RequiredError}
3236
+ */
3237
+ deleteProfile(profileName, options) {
3238
+ return (0, exports.ProfilesApiFp)(this.configuration).deleteProfile(profileName, options).then((request) => request(this.axios, this.basePath));
3239
+ }
3240
+ /**
3241
+ *
3242
+ * @summary Get profile information
3243
+ * @param {string} profileName Profile name
3244
+ * @param {*} [options] Override http request option.
3245
+ * @throws {RequiredError}
3246
+ */
3247
+ getProfile(profileName, options) {
3248
+ return (0, exports.ProfilesApiFp)(this.configuration).getProfile(profileName, options).then((request) => request(this.axios, this.basePath));
3249
+ }
3250
+ /**
3251
+ *
3252
+ * @summary List all browser profiles
3253
+ * @param {*} [options] Override http request option.
3254
+ * @throws {RequiredError}
3255
+ */
3256
+ listProfiles(options) {
3257
+ return (0, exports.ProfilesApiFp)(this.configuration).listProfiles(options).then((request) => request(this.axios, this.basePath));
3258
+ }
3259
+ }
3260
+ exports.ProfilesApi = ProfilesApi;