airbrowser-client 1.13.1 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
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.MouseRequestActionEnum = exports.HistoryRequestActionEnum = exports.EmulateRequestActionEnum = exports.DialogRequestActionEnum = exports.CookiesRequestActionEnum = exports.ConsoleLogsRequestActionEnum = exports.BrowsersRequestActionEnum = void 0;
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.MouseRequestActionEnum = exports.HistoryRequestActionEnum = exports.GuiClickXYRequestPostClickFeedbackEnum = exports.GuiClickXYRequestAutoSnapEnum = exports.GuiClickXYRequestPreClickValidateEnum = exports.GuiClickRequestPostClickFeedbackEnum = exports.GuiClickRequestAutoSnapEnum = exports.GuiClickRequestPreClickValidateEnum = exports.EmulateRequestActionEnum = exports.DialogRequestActionEnum = exports.DetectCoordinatesRequestAutoSnapEnum = exports.DetectCoordinatesRequestHitTestEnum = exports.CookiesRequestActionEnum = exports.ConsoleLogsRequestActionEnum = exports.BrowsersRequestActionEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -49,6 +49,16 @@ exports.CookiesRequestActionEnum = {
49
49
  Delete: 'delete',
50
50
  Clear: 'clear',
51
51
  };
52
+ exports.DetectCoordinatesRequestHitTestEnum = {
53
+ Off: 'off',
54
+ Warn: 'warn',
55
+ Strict: 'strict',
56
+ };
57
+ exports.DetectCoordinatesRequestAutoSnapEnum = {
58
+ Off: 'off',
59
+ NearestClickable: 'nearest_clickable',
60
+ NearestInteractive: 'nearest_interactive',
61
+ };
52
62
  exports.DialogRequestActionEnum = {
53
63
  Get: 'get',
54
64
  Accept: 'accept',
@@ -59,6 +69,40 @@ exports.EmulateRequestActionEnum = {
59
69
  Clear: 'clear',
60
70
  ListDevices: 'list_devices',
61
71
  };
72
+ exports.GuiClickRequestPreClickValidateEnum = {
73
+ Off: 'off',
74
+ Warn: 'warn',
75
+ Strict: 'strict',
76
+ };
77
+ exports.GuiClickRequestAutoSnapEnum = {
78
+ Off: 'off',
79
+ NearestClickable: 'nearest_clickable',
80
+ NearestInteractive: 'nearest_interactive',
81
+ };
82
+ exports.GuiClickRequestPostClickFeedbackEnum = {
83
+ None: 'none',
84
+ Url: 'url',
85
+ Content: 'content',
86
+ Visible: 'visible',
87
+ Auto: 'auto',
88
+ };
89
+ exports.GuiClickXYRequestPreClickValidateEnum = {
90
+ Off: 'off',
91
+ Warn: 'warn',
92
+ Strict: 'strict',
93
+ };
94
+ exports.GuiClickXYRequestAutoSnapEnum = {
95
+ Off: 'off',
96
+ NearestClickable: 'nearest_clickable',
97
+ NearestInteractive: 'nearest_interactive',
98
+ };
99
+ exports.GuiClickXYRequestPostClickFeedbackEnum = {
100
+ None: 'none',
101
+ Url: 'url',
102
+ Content: 'content',
103
+ Visible: 'visible',
104
+ Auto: 'auto',
105
+ };
62
106
  exports.HistoryRequestActionEnum = {
63
107
  Back: 'back',
64
108
  Forward: 'forward',
@@ -344,8 +388,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
344
388
  };
345
389
  }),
346
390
  /**
347
- * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
348
- * @summary Detect element coordinates using vision
391
+ * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom). model: Optional vision model override for this request. stream: Optional vision streaming override for this request. hit_test: Detect-time validation mode: off, warn, or strict. Recommended for agents: `strict`. auto_snap: Auto-snap mode: off, nearest_clickable, or nearest_interactive. Recommended for agents: `nearest_clickable`. snap_radius: Maximum snap radius in CSS pixels. include_debug: Include detect debug diagnostics when available.
392
+ * @summary Detect element coordinates using vision with optional smart targeting
349
393
  * @param {string} browserId
350
394
  * @param {DetectCoordinatesRequest} payload
351
395
  * @param {*} [options] Override http request option.
@@ -694,8 +738,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
694
738
  };
695
739
  }),
696
740
  /**
697
- *
698
- * @summary GUI click by selector or coordinates
741
+ * Selector mode uses `selector` with optional `fx` / `fy` offsets. Coordinate mode uses `x` / `y` and supports smart targeting knobs such as `pre_click_validate`, `auto_snap`, and `post_click_feedback`. Recommended agent mode: - `pre_click_validate=\"strict\"` - `auto_snap=\"nearest_clickable\"` - `post_click_feedback=\"auto\"` MCP keeps `gui_click_xy` as a compatibility alias for coordinate-mode `gui_click`.
742
+ * @summary GUI click by selector or coordinates with smart validation
699
743
  * @param {string} browserId
700
744
  * @param {GuiClickRequest} payload
701
745
  * @param {*} [options] Override http request option.
@@ -728,6 +772,41 @@ const BrowserApiAxiosParamCreator = function (configuration) {
728
772
  options: localVarRequestOptions,
729
773
  };
730
774
  }),
775
+ /**
776
+ * This mirrors coordinate-mode `gui_click`, accepts the same smart-click options, and returns the same response contract.
777
+ * @summary MCP compatibility alias for coordinate-mode `gui_click`
778
+ * @param {string} browserId
779
+ * @param {GuiClickXYRequest} payload
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ guiClickXy: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
784
+ // verify required parameter 'browserId' is not null or undefined
785
+ (0, common_1.assertParamExists)('guiClickXy', 'browserId', browserId);
786
+ // verify required parameter 'payload' is not null or undefined
787
+ (0, common_1.assertParamExists)('guiClickXy', 'payload', payload);
788
+ const localVarPath = `/browser/{browser_id}/gui_click_xy`
789
+ .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
790
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
791
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
792
+ let baseOptions;
793
+ if (configuration) {
794
+ baseOptions = configuration.baseOptions;
795
+ }
796
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
797
+ const localVarHeaderParameter = {};
798
+ const localVarQueryParameter = {};
799
+ localVarHeaderParameter['Content-Type'] = 'application/json';
800
+ localVarHeaderParameter['Accept'] = 'application/json';
801
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
802
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
803
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
804
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
805
+ return {
806
+ url: (0, common_1.toPathString)(localVarUrlObj),
807
+ options: localVarRequestOptions,
808
+ };
809
+ }),
731
810
  /**
732
811
  *
733
812
  * @summary GUI hover at coordinates
@@ -1362,12 +1441,15 @@ const BrowserApiAxiosParamCreator = function (configuration) {
1362
1441
  *
1363
1442
  * @summary AI page analysis - what\'s visible
1364
1443
  * @param {string} browserId
1444
+ * @param {WhatIsVisibleRequest} payload
1365
1445
  * @param {*} [options] Override http request option.
1366
1446
  * @throws {RequiredError}
1367
1447
  */
1368
- whatIsVisible: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
1448
+ whatIsVisible: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
1369
1449
  // verify required parameter 'browserId' is not null or undefined
1370
1450
  (0, common_1.assertParamExists)('whatIsVisible', 'browserId', browserId);
1451
+ // verify required parameter 'payload' is not null or undefined
1452
+ (0, common_1.assertParamExists)('whatIsVisible', 'payload', payload);
1371
1453
  const localVarPath = `/browser/{browser_id}/what_is_visible`
1372
1454
  .replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
1373
1455
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1379,10 +1461,12 @@ const BrowserApiAxiosParamCreator = function (configuration) {
1379
1461
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1380
1462
  const localVarHeaderParameter = {};
1381
1463
  const localVarQueryParameter = {};
1464
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1382
1465
  localVarHeaderParameter['Accept'] = 'application/json';
1383
1466
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1384
1467
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1385
1468
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1469
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1386
1470
  return {
1387
1471
  url: (0, common_1.toPathString)(localVarUrlObj),
1388
1472
  options: localVarRequestOptions,
@@ -1516,8 +1600,8 @@ const BrowserApiFp = function (configuration) {
1516
1600
  });
1517
1601
  },
1518
1602
  /**
1519
- * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
1520
- * @summary Detect element coordinates using vision
1603
+ * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom). model: Optional vision model override for this request. stream: Optional vision streaming override for this request. hit_test: Detect-time validation mode: off, warn, or strict. Recommended for agents: `strict`. auto_snap: Auto-snap mode: off, nearest_clickable, or nearest_interactive. Recommended for agents: `nearest_clickable`. snap_radius: Maximum snap radius in CSS pixels. include_debug: Include detect debug diagnostics when available.
1604
+ * @summary Detect element coordinates using vision with optional smart targeting
1521
1605
  * @param {string} browserId
1522
1606
  * @param {DetectCoordinatesRequest} payload
1523
1607
  * @param {*} [options] Override http request option.
@@ -1686,8 +1770,8 @@ const BrowserApiFp = function (configuration) {
1686
1770
  });
1687
1771
  },
1688
1772
  /**
1689
- *
1690
- * @summary GUI click by selector or coordinates
1773
+ * Selector mode uses `selector` with optional `fx` / `fy` offsets. Coordinate mode uses `x` / `y` and supports smart targeting knobs such as `pre_click_validate`, `auto_snap`, and `post_click_feedback`. Recommended agent mode: - `pre_click_validate=\"strict\"` - `auto_snap=\"nearest_clickable\"` - `post_click_feedback=\"auto\"` MCP keeps `gui_click_xy` as a compatibility alias for coordinate-mode `gui_click`.
1774
+ * @summary GUI click by selector or coordinates with smart validation
1691
1775
  * @param {string} browserId
1692
1776
  * @param {GuiClickRequest} payload
1693
1777
  * @param {*} [options] Override http request option.
@@ -1702,6 +1786,23 @@ const BrowserApiFp = function (configuration) {
1702
1786
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1703
1787
  });
1704
1788
  },
1789
+ /**
1790
+ * This mirrors coordinate-mode `gui_click`, accepts the same smart-click options, and returns the same response contract.
1791
+ * @summary MCP compatibility alias for coordinate-mode `gui_click`
1792
+ * @param {string} browserId
1793
+ * @param {GuiClickXYRequest} payload
1794
+ * @param {*} [options] Override http request option.
1795
+ * @throws {RequiredError}
1796
+ */
1797
+ guiClickXy(browserId, payload, options) {
1798
+ return __awaiter(this, void 0, void 0, function* () {
1799
+ var _a, _b, _c;
1800
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.guiClickXy(browserId, payload, options);
1801
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1802
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.guiClickXy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1803
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1804
+ });
1805
+ },
1705
1806
  /**
1706
1807
  *
1707
1808
  * @summary GUI hover at coordinates
@@ -2012,13 +2113,14 @@ const BrowserApiFp = function (configuration) {
2012
2113
  *
2013
2114
  * @summary AI page analysis - what\'s visible
2014
2115
  * @param {string} browserId
2116
+ * @param {WhatIsVisibleRequest} payload
2015
2117
  * @param {*} [options] Override http request option.
2016
2118
  * @throws {RequiredError}
2017
2119
  */
2018
- whatIsVisible(browserId, options) {
2120
+ whatIsVisible(browserId, payload, options) {
2019
2121
  return __awaiter(this, void 0, void 0, function* () {
2020
2122
  var _a, _b, _c;
2021
- const localVarAxiosArgs = yield localVarAxiosParamCreator.whatIsVisible(browserId, options);
2123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.whatIsVisible(browserId, payload, options);
2022
2124
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2023
2125
  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;
2024
2126
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2110,8 +2212,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
2110
2212
  return localVarFp.createBrowser(payload, options).then((request) => request(axios, basePath));
2111
2213
  },
2112
2214
  /**
2113
- * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
2114
- * @summary Detect element coordinates using vision
2215
+ * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom). model: Optional vision model override for this request. stream: Optional vision streaming override for this request. hit_test: Detect-time validation mode: off, warn, or strict. Recommended for agents: `strict`. auto_snap: Auto-snap mode: off, nearest_clickable, or nearest_interactive. Recommended for agents: `nearest_clickable`. snap_radius: Maximum snap radius in CSS pixels. include_debug: Include detect debug diagnostics when available.
2216
+ * @summary Detect element coordinates using vision with optional smart targeting
2115
2217
  * @param {string} browserId
2116
2218
  * @param {DetectCoordinatesRequest} payload
2117
2219
  * @param {*} [options] Override http request option.
@@ -2220,8 +2322,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
2220
2322
  return localVarFp.getUrl(browserId, options).then((request) => request(axios, basePath));
2221
2323
  },
2222
2324
  /**
2223
- *
2224
- * @summary GUI click by selector or coordinates
2325
+ * Selector mode uses `selector` with optional `fx` / `fy` offsets. Coordinate mode uses `x` / `y` and supports smart targeting knobs such as `pre_click_validate`, `auto_snap`, and `post_click_feedback`. Recommended agent mode: - `pre_click_validate=\"strict\"` - `auto_snap=\"nearest_clickable\"` - `post_click_feedback=\"auto\"` MCP keeps `gui_click_xy` as a compatibility alias for coordinate-mode `gui_click`.
2326
+ * @summary GUI click by selector or coordinates with smart validation
2225
2327
  * @param {string} browserId
2226
2328
  * @param {GuiClickRequest} payload
2227
2329
  * @param {*} [options] Override http request option.
@@ -2230,6 +2332,17 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
2230
2332
  guiClick(browserId, payload, options) {
2231
2333
  return localVarFp.guiClick(browserId, payload, options).then((request) => request(axios, basePath));
2232
2334
  },
2335
+ /**
2336
+ * This mirrors coordinate-mode `gui_click`, accepts the same smart-click options, and returns the same response contract.
2337
+ * @summary MCP compatibility alias for coordinate-mode `gui_click`
2338
+ * @param {string} browserId
2339
+ * @param {GuiClickXYRequest} payload
2340
+ * @param {*} [options] Override http request option.
2341
+ * @throws {RequiredError}
2342
+ */
2343
+ guiClickXy(browserId, payload, options) {
2344
+ return localVarFp.guiClickXy(browserId, payload, options).then((request) => request(axios, basePath));
2345
+ },
2233
2346
  /**
2234
2347
  *
2235
2348
  * @summary GUI hover at coordinates
@@ -2432,11 +2545,12 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
2432
2545
  *
2433
2546
  * @summary AI page analysis - what\'s visible
2434
2547
  * @param {string} browserId
2548
+ * @param {WhatIsVisibleRequest} payload
2435
2549
  * @param {*} [options] Override http request option.
2436
2550
  * @throws {RequiredError}
2437
2551
  */
2438
- whatIsVisible(browserId, options) {
2439
- return localVarFp.whatIsVisible(browserId, options).then((request) => request(axios, basePath));
2552
+ whatIsVisible(browserId, payload, options) {
2553
+ return localVarFp.whatIsVisible(browserId, payload, options).then((request) => request(axios, basePath));
2440
2554
  },
2441
2555
  };
2442
2556
  };
@@ -2522,8 +2636,8 @@ class BrowserApi extends base_1.BaseAPI {
2522
2636
  return (0, exports.BrowserApiFp)(this.configuration).createBrowser(payload, options).then((request) => request(this.axios, this.basePath));
2523
2637
  }
2524
2638
  /**
2525
- * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
2526
- * @summary Detect element coordinates using vision
2639
+ * Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom). model: Optional vision model override for this request. stream: Optional vision streaming override for this request. hit_test: Detect-time validation mode: off, warn, or strict. Recommended for agents: `strict`. auto_snap: Auto-snap mode: off, nearest_clickable, or nearest_interactive. Recommended for agents: `nearest_clickable`. snap_radius: Maximum snap radius in CSS pixels. include_debug: Include detect debug diagnostics when available.
2640
+ * @summary Detect element coordinates using vision with optional smart targeting
2527
2641
  * @param {string} browserId
2528
2642
  * @param {DetectCoordinatesRequest} payload
2529
2643
  * @param {*} [options] Override http request option.
@@ -2632,8 +2746,8 @@ class BrowserApi extends base_1.BaseAPI {
2632
2746
  return (0, exports.BrowserApiFp)(this.configuration).getUrl(browserId, options).then((request) => request(this.axios, this.basePath));
2633
2747
  }
2634
2748
  /**
2635
- *
2636
- * @summary GUI click by selector or coordinates
2749
+ * Selector mode uses `selector` with optional `fx` / `fy` offsets. Coordinate mode uses `x` / `y` and supports smart targeting knobs such as `pre_click_validate`, `auto_snap`, and `post_click_feedback`. Recommended agent mode: - `pre_click_validate=\"strict\"` - `auto_snap=\"nearest_clickable\"` - `post_click_feedback=\"auto\"` MCP keeps `gui_click_xy` as a compatibility alias for coordinate-mode `gui_click`.
2750
+ * @summary GUI click by selector or coordinates with smart validation
2637
2751
  * @param {string} browserId
2638
2752
  * @param {GuiClickRequest} payload
2639
2753
  * @param {*} [options] Override http request option.
@@ -2642,6 +2756,17 @@ class BrowserApi extends base_1.BaseAPI {
2642
2756
  guiClick(browserId, payload, options) {
2643
2757
  return (0, exports.BrowserApiFp)(this.configuration).guiClick(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2644
2758
  }
2759
+ /**
2760
+ * This mirrors coordinate-mode `gui_click`, accepts the same smart-click options, and returns the same response contract.
2761
+ * @summary MCP compatibility alias for coordinate-mode `gui_click`
2762
+ * @param {string} browserId
2763
+ * @param {GuiClickXYRequest} payload
2764
+ * @param {*} [options] Override http request option.
2765
+ * @throws {RequiredError}
2766
+ */
2767
+ guiClickXy(browserId, payload, options) {
2768
+ return (0, exports.BrowserApiFp)(this.configuration).guiClickXy(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2769
+ }
2645
2770
  /**
2646
2771
  *
2647
2772
  * @summary GUI hover at coordinates
@@ -2844,11 +2969,12 @@ class BrowserApi extends base_1.BaseAPI {
2844
2969
  *
2845
2970
  * @summary AI page analysis - what\'s visible
2846
2971
  * @param {string} browserId
2972
+ * @param {WhatIsVisibleRequest} payload
2847
2973
  * @param {*} [options] Override http request option.
2848
2974
  * @throws {RequiredError}
2849
2975
  */
2850
- whatIsVisible(browserId, options) {
2851
- return (0, exports.BrowserApiFp)(this.configuration).whatIsVisible(browserId, options).then((request) => request(this.axios, this.basePath));
2976
+ whatIsVisible(browserId, payload, options) {
2977
+ return (0, exports.BrowserApiFp)(this.configuration).whatIsVisible(browserId, payload, options).then((request) => request(this.axios, this.basePath));
2852
2978
  }
2853
2979
  }
2854
2980
  exports.BrowserApi = BrowserApi;