@airtop/sdk 0.1.26 → 0.1.27

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 (64) hide show
  1. package/api/resources/profiles/client/Client.js +2 -2
  2. package/api/resources/sessions/client/Client.js +14 -14
  3. package/api/resources/windows/client/Client.d.ts +20 -4
  4. package/api/resources/windows/client/Client.js +97 -30
  5. package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +4 -2
  6. package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +4 -2
  7. package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +27 -0
  8. package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +5 -0
  9. package/api/resources/windows/client/requests/index.d.ts +1 -0
  10. package/api/types/ScrollByConfig.d.ts +9 -0
  11. package/api/types/ScrollByConfig.js +5 -0
  12. package/api/types/ScrollToEdgeConfig.d.ts +9 -0
  13. package/api/types/ScrollToEdgeConfig.js +5 -0
  14. package/api/types/index.d.ts +2 -0
  15. package/api/types/index.js +2 -0
  16. package/dist/api/resources/profiles/client/Client.js +2 -2
  17. package/dist/api/resources/sessions/client/Client.js +14 -14
  18. package/dist/api/resources/windows/client/Client.d.ts +20 -4
  19. package/dist/api/resources/windows/client/Client.js +97 -30
  20. package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +4 -2
  21. package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +4 -2
  22. package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +27 -0
  23. package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +5 -0
  24. package/dist/api/resources/windows/client/requests/index.d.ts +1 -0
  25. package/dist/api/types/ScrollByConfig.d.ts +9 -0
  26. package/dist/api/types/ScrollByConfig.js +5 -0
  27. package/dist/api/types/ScrollToEdgeConfig.d.ts +9 -0
  28. package/dist/api/types/ScrollToEdgeConfig.js +5 -0
  29. package/dist/api/types/index.d.ts +2 -0
  30. package/dist/api/types/index.js +2 -0
  31. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +1 -1
  32. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +1 -1
  33. package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +1 -1
  34. package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +1 -1
  35. package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +21 -0
  36. package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +42 -0
  37. package/dist/serialization/resources/windows/client/requests/index.d.ts +1 -0
  38. package/dist/serialization/resources/windows/client/requests/index.js +3 -1
  39. package/dist/serialization/types/ScrollByConfig.d.ts +13 -0
  40. package/dist/serialization/types/ScrollByConfig.js +34 -0
  41. package/dist/serialization/types/ScrollToEdgeConfig.d.ts +13 -0
  42. package/dist/serialization/types/ScrollToEdgeConfig.js +34 -0
  43. package/dist/serialization/types/index.d.ts +2 -0
  44. package/dist/serialization/types/index.js +2 -0
  45. package/dist/wrapper/AirtopWindows.d.ts +2 -2
  46. package/dist/wrapper/AirtopWindows.js +2 -2
  47. package/package.json +1 -1
  48. package/reference.md +86 -2
  49. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +1 -1
  50. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +1 -1
  51. package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +1 -1
  52. package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +1 -1
  53. package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +21 -0
  54. package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +42 -0
  55. package/serialization/resources/windows/client/requests/index.d.ts +1 -0
  56. package/serialization/resources/windows/client/requests/index.js +3 -1
  57. package/serialization/types/ScrollByConfig.d.ts +13 -0
  58. package/serialization/types/ScrollByConfig.js +34 -0
  59. package/serialization/types/ScrollToEdgeConfig.d.ts +13 -0
  60. package/serialization/types/ScrollToEdgeConfig.js +34 -0
  61. package/serialization/types/index.d.ts +2 -0
  62. package/serialization/types/index.js +2 -0
  63. package/wrapper/AirtopWindows.d.ts +2 -2
  64. package/wrapper/AirtopWindows.js +2 -2
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ScrollToEdgeConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ScrollToEdgeConfig = core.serialization.object({
32
+ xAxis: core.serialization.string().optional(),
33
+ yAxis: core.serialization.string().optional(),
34
+ });
@@ -31,6 +31,8 @@ export * from "./ScrapeResponseOutput";
31
31
  export * from "./ScreenshotConfig";
32
32
  export * from "./ScreenshotMetadata";
33
33
  export * from "./ScreenshotRequestConfig";
34
+ export * from "./ScrollByConfig";
35
+ export * from "./ScrollToEdgeConfig";
34
36
  export * from "./AirtopProxyConfiguration";
35
37
  export * from "./ProxyCredentials";
36
38
  export * from "./Proxy";
@@ -47,6 +47,8 @@ __exportStar(require("./ScrapeResponseOutput"), exports);
47
47
  __exportStar(require("./ScreenshotConfig"), exports);
48
48
  __exportStar(require("./ScreenshotMetadata"), exports);
49
49
  __exportStar(require("./ScreenshotRequestConfig"), exports);
50
+ __exportStar(require("./ScrollByConfig"), exports);
51
+ __exportStar(require("./ScrollToEdgeConfig"), exports);
50
52
  __exportStar(require("./AirtopProxyConfiguration"), exports);
51
53
  __exportStar(require("./ProxyCredentials"), exports);
52
54
  __exportStar(require("./Proxy"), exports);
@@ -101,7 +101,7 @@ export declare class AirtopWindows extends WindowsClass {
101
101
  * @example
102
102
  * await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
103
103
  */
104
- hover(sessionId: string, windowId: string, request?: Airtop.SessionHoverHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
104
+ hover(sessionId: string, windowId: string, request: Airtop.SessionHoverHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
105
105
  /**
106
106
  * @param {string} sessionId - The session id for the window.
107
107
  * @param {string} windowId - The Airtop window id of the browser window.
@@ -125,7 +125,7 @@ export declare class AirtopWindows extends WindowsClass {
125
125
  * @example
126
126
  * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
127
127
  */
128
- paginatedExtraction(sessionId: string, windowId: string, request?: Airtop.SessionPaginatedExtractionHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
128
+ paginatedExtraction(sessionId: string, windowId: string, request: Airtop.SessionPaginatedExtractionHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
129
129
  private executeSeleniumCDPCommand;
130
130
  getWindowInfoForSeleniumDriver(session: Airtop.ExternalSessionWithConnectionInfo, driver: seleniumWebdriver.WebDriver, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
131
131
  }
@@ -163,7 +163,7 @@ class AirtopWindows extends Client_1.Windows {
163
163
  * @example
164
164
  * await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
165
165
  */
166
- hover(sessionId, windowId, request = {}, requestOptions) {
166
+ hover(sessionId, windowId, request, requestOptions) {
167
167
  const _super = Object.create(null, {
168
168
  hover: { get: () => super.hover }
169
169
  });
@@ -201,7 +201,7 @@ class AirtopWindows extends Client_1.Windows {
201
201
  * @example
202
202
  * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
203
203
  */
204
- paginatedExtraction(sessionId, windowId, request = {}, requestOptions) {
204
+ paginatedExtraction(sessionId, windowId, request, requestOptions) {
205
205
  const _super = Object.create(null, {
206
206
  paginatedExtraction: { get: () => super.paginatedExtraction }
207
207
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -415,7 +415,9 @@ Execute a hover interaction in a specific browser window
415
415
  <dd>
416
416
 
417
417
  ```typescript
418
- await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
418
+ await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
419
+ elementDescription: "The search box input in the top right corner",
420
+ });
419
421
  ```
420
422
 
421
423
  </dd>
@@ -577,7 +579,10 @@ Submit a prompt that queries the content of a specific browser window and pagina
577
579
  ```typescript
578
580
  await client.windows.paginatedExtraction(
579
581
  "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
580
- "0334da2a-91b0-42c5-6156-76a5eba87430"
582
+ "0334da2a-91b0-42c5-6156-76a5eba87430",
583
+ {
584
+ prompt: "This site contains a list of results about <provide details about the list>. Navigate through 3 pages of results and return the title and <provide details about the data you want to extract> about each result in this list.",
585
+ }
581
586
  );
582
587
  ```
583
588
 
@@ -868,6 +873,85 @@ await client.windows.screenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2
868
873
  </dl>
869
874
  </details>
870
875
 
876
+ <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">scroll</a>(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse</code></summary>
877
+ <dl>
878
+ <dd>
879
+
880
+ #### 📝 Description
881
+
882
+ <dl>
883
+ <dd>
884
+
885
+ <dl>
886
+ <dd>
887
+
888
+ Execute a scroll interaction in a specific browser window
889
+
890
+ </dd>
891
+ </dl>
892
+ </dd>
893
+ </dl>
894
+
895
+ #### 🔌 Usage
896
+
897
+ <dl>
898
+ <dd>
899
+
900
+ <dl>
901
+ <dd>
902
+
903
+ ```typescript
904
+ await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
905
+ ```
906
+
907
+ </dd>
908
+ </dl>
909
+ </dd>
910
+ </dl>
911
+
912
+ #### ⚙️ Parameters
913
+
914
+ <dl>
915
+ <dd>
916
+
917
+ <dl>
918
+ <dd>
919
+
920
+ **sessionId:** `string` — The session id for the window.
921
+
922
+ </dd>
923
+ </dl>
924
+
925
+ <dl>
926
+ <dd>
927
+
928
+ **windowId:** `string` — The Airtop window id of the browser window.
929
+
930
+ </dd>
931
+ </dl>
932
+
933
+ <dl>
934
+ <dd>
935
+
936
+ **request:** `Airtop.SessionScrollHandlerRequestBody`
937
+
938
+ </dd>
939
+ </dl>
940
+
941
+ <dl>
942
+ <dd>
943
+
944
+ **requestOptions:** `Windows.RequestOptions`
945
+
946
+ </dd>
947
+ </dl>
948
+ </dd>
949
+ </dl>
950
+
951
+ </dd>
952
+ </dl>
953
+ </details>
954
+
871
955
  <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">summarizeContent</a>(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse</code></summary>
872
956
  <dl>
873
957
  <dd>
@@ -11,7 +11,7 @@ export declare namespace SessionHoverHandlerRequestBody {
11
11
  clientRequestId?: string | null;
12
12
  configuration?: MicroInteractionConfig.Raw | null;
13
13
  costThresholdCredits?: number | null;
14
- elementDescription?: string | null;
14
+ elementDescription: string;
15
15
  timeThresholdSeconds?: number | null;
16
16
  }
17
17
  }
@@ -33,6 +33,6 @@ exports.SessionHoverHandlerRequestBody = core.serialization.object({
33
33
  clientRequestId: core.serialization.string().optional(),
34
34
  configuration: MicroInteractionConfig_1.MicroInteractionConfig.optional(),
35
35
  costThresholdCredits: core.serialization.number().optional(),
36
- elementDescription: core.serialization.string().optional(),
36
+ elementDescription: core.serialization.string(),
37
37
  timeThresholdSeconds: core.serialization.number().optional(),
38
38
  });
@@ -11,7 +11,7 @@ export declare namespace SessionPaginatedExtractionHandlerRequestBody {
11
11
  clientRequestId?: string | null;
12
12
  configuration?: PaginatedExtractionConfig.Raw | null;
13
13
  costThresholdCredits?: number | null;
14
- prompt?: string | null;
14
+ prompt: string;
15
15
  timeThresholdSeconds?: number | null;
16
16
  }
17
17
  }
@@ -33,6 +33,6 @@ exports.SessionPaginatedExtractionHandlerRequestBody = core.serialization.object
33
33
  clientRequestId: core.serialization.string().optional(),
34
34
  configuration: PaginatedExtractionConfig_1.PaginatedExtractionConfig.optional(),
35
35
  costThresholdCredits: core.serialization.number().optional(),
36
- prompt: core.serialization.string().optional(),
36
+ prompt: core.serialization.string(),
37
37
  timeThresholdSeconds: core.serialization.number().optional(),
38
38
  });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Airtop from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { MicroInteractionConfig } from "../../../../types/MicroInteractionConfig";
8
+ import { ScrollByConfig } from "../../../../types/ScrollByConfig";
9
+ import { ScrollToEdgeConfig } from "../../../../types/ScrollToEdgeConfig";
10
+ export declare const SessionScrollHandlerRequestBody: core.serialization.Schema<serializers.SessionScrollHandlerRequestBody.Raw, Airtop.SessionScrollHandlerRequestBody>;
11
+ export declare namespace SessionScrollHandlerRequestBody {
12
+ interface Raw {
13
+ clientRequestId?: string | null;
14
+ configuration?: MicroInteractionConfig.Raw | null;
15
+ costThresholdCredits?: number | null;
16
+ scrollBy?: ScrollByConfig.Raw | null;
17
+ scrollToEdge?: ScrollToEdgeConfig.Raw | null;
18
+ scrollToElement?: string | null;
19
+ timeThresholdSeconds?: number | null;
20
+ }
21
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionScrollHandlerRequestBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const MicroInteractionConfig_1 = require("../../../../types/MicroInteractionConfig");
32
+ const ScrollByConfig_1 = require("../../../../types/ScrollByConfig");
33
+ const ScrollToEdgeConfig_1 = require("../../../../types/ScrollToEdgeConfig");
34
+ exports.SessionScrollHandlerRequestBody = core.serialization.object({
35
+ clientRequestId: core.serialization.string().optional(),
36
+ configuration: MicroInteractionConfig_1.MicroInteractionConfig.optional(),
37
+ costThresholdCredits: core.serialization.number().optional(),
38
+ scrollBy: ScrollByConfig_1.ScrollByConfig.optional(),
39
+ scrollToEdge: ScrollToEdgeConfig_1.ScrollToEdgeConfig.optional(),
40
+ scrollToElement: core.serialization.string().optional(),
41
+ timeThresholdSeconds: core.serialization.number().optional(),
42
+ });
@@ -5,5 +5,6 @@ export { SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody
5
5
  export { SessionPaginatedExtractionHandlerRequestBody } from "./SessionPaginatedExtractionHandlerRequestBody";
6
6
  export { ScrapeContentRequest } from "./ScrapeContentRequest";
7
7
  export { SessionScreenshotHandlerRequestBody } from "./SessionScreenshotHandlerRequestBody";
8
+ export { SessionScrollHandlerRequestBody } from "./SessionScrollHandlerRequestBody";
8
9
  export { SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
9
10
  export { SessionTypeHandlerRequestBody } from "./SessionTypeHandlerRequestBody";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
3
+ exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScrollHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
4
4
  var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
5
5
  Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
6
6
  var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
@@ -15,6 +15,8 @@ var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
15
15
  Object.defineProperty(exports, "ScrapeContentRequest", { enumerable: true, get: function () { return ScrapeContentRequest_1.ScrapeContentRequest; } });
16
16
  var SessionScreenshotHandlerRequestBody_1 = require("./SessionScreenshotHandlerRequestBody");
17
17
  Object.defineProperty(exports, "SessionScreenshotHandlerRequestBody", { enumerable: true, get: function () { return SessionScreenshotHandlerRequestBody_1.SessionScreenshotHandlerRequestBody; } });
18
+ var SessionScrollHandlerRequestBody_1 = require("./SessionScrollHandlerRequestBody");
19
+ Object.defineProperty(exports, "SessionScrollHandlerRequestBody", { enumerable: true, get: function () { return SessionScrollHandlerRequestBody_1.SessionScrollHandlerRequestBody; } });
18
20
  var SessionSummaryHandlerRequestBody_1 = require("./SessionSummaryHandlerRequestBody");
19
21
  Object.defineProperty(exports, "SessionSummaryHandlerRequestBody", { enumerable: true, get: function () { return SessionSummaryHandlerRequestBody_1.SessionSummaryHandlerRequestBody; } });
20
22
  var SessionTypeHandlerRequestBody_1 = require("./SessionTypeHandlerRequestBody");
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Airtop from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ScrollByConfig: core.serialization.ObjectSchema<serializers.ScrollByConfig.Raw, Airtop.ScrollByConfig>;
8
+ export declare namespace ScrollByConfig {
9
+ interface Raw {
10
+ xAxis?: string | null;
11
+ yAxis?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ScrollByConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ScrollByConfig = core.serialization.object({
32
+ xAxis: core.serialization.string().optional(),
33
+ yAxis: core.serialization.string().optional(),
34
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Airtop from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ScrollToEdgeConfig: core.serialization.ObjectSchema<serializers.ScrollToEdgeConfig.Raw, Airtop.ScrollToEdgeConfig>;
8
+ export declare namespace ScrollToEdgeConfig {
9
+ interface Raw {
10
+ xAxis?: string | null;
11
+ yAxis?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ScrollToEdgeConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ScrollToEdgeConfig = core.serialization.object({
32
+ xAxis: core.serialization.string().optional(),
33
+ yAxis: core.serialization.string().optional(),
34
+ });
@@ -31,6 +31,8 @@ export * from "./ScrapeResponseOutput";
31
31
  export * from "./ScreenshotConfig";
32
32
  export * from "./ScreenshotMetadata";
33
33
  export * from "./ScreenshotRequestConfig";
34
+ export * from "./ScrollByConfig";
35
+ export * from "./ScrollToEdgeConfig";
34
36
  export * from "./AirtopProxyConfiguration";
35
37
  export * from "./ProxyCredentials";
36
38
  export * from "./Proxy";
@@ -47,6 +47,8 @@ __exportStar(require("./ScrapeResponseOutput"), exports);
47
47
  __exportStar(require("./ScreenshotConfig"), exports);
48
48
  __exportStar(require("./ScreenshotMetadata"), exports);
49
49
  __exportStar(require("./ScreenshotRequestConfig"), exports);
50
+ __exportStar(require("./ScrollByConfig"), exports);
51
+ __exportStar(require("./ScrollToEdgeConfig"), exports);
50
52
  __exportStar(require("./AirtopProxyConfiguration"), exports);
51
53
  __exportStar(require("./ProxyCredentials"), exports);
52
54
  __exportStar(require("./Proxy"), exports);
@@ -101,7 +101,7 @@ export declare class AirtopWindows extends WindowsClass {
101
101
  * @example
102
102
  * await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
103
103
  */
104
- hover(sessionId: string, windowId: string, request?: Airtop.SessionHoverHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
104
+ hover(sessionId: string, windowId: string, request: Airtop.SessionHoverHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
105
105
  /**
106
106
  * @param {string} sessionId - The session id for the window.
107
107
  * @param {string} windowId - The Airtop window id of the browser window.
@@ -125,7 +125,7 @@ export declare class AirtopWindows extends WindowsClass {
125
125
  * @example
126
126
  * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
127
127
  */
128
- paginatedExtraction(sessionId: string, windowId: string, request?: Airtop.SessionPaginatedExtractionHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
128
+ paginatedExtraction(sessionId: string, windowId: string, request: Airtop.SessionPaginatedExtractionHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
129
129
  private executeSeleniumCDPCommand;
130
130
  getWindowInfoForSeleniumDriver(session: Airtop.ExternalSessionWithConnectionInfo, driver: seleniumWebdriver.WebDriver, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
131
131
  }
@@ -163,7 +163,7 @@ class AirtopWindows extends Client_1.Windows {
163
163
  * @example
164
164
  * await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
165
165
  */
166
- hover(sessionId, windowId, request = {}, requestOptions) {
166
+ hover(sessionId, windowId, request, requestOptions) {
167
167
  const _super = Object.create(null, {
168
168
  hover: { get: () => super.hover }
169
169
  });
@@ -201,7 +201,7 @@ class AirtopWindows extends Client_1.Windows {
201
201
  * @example
202
202
  * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
203
203
  */
204
- paginatedExtraction(sessionId, windowId, request = {}, requestOptions) {
204
+ paginatedExtraction(sessionId, windowId, request, requestOptions) {
205
205
  const _super = Object.create(null, {
206
206
  paginatedExtraction: { get: () => super.paginatedExtraction }
207
207
  });