@airtop/sdk 0.1.18 → 0.1.26
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/api/resources/profiles/client/Client.js +2 -2
- package/api/resources/sessions/client/Client.js +14 -14
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/api/resources/sessions/types/index.d.ts +1 -1
- package/api/resources/sessions/types/index.js +1 -1
- package/api/resources/windows/client/Client.js +26 -26
- package/api/types/AirtopProxyConfiguration.d.ts +9 -0
- package/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
- package/api/types/PageQueryConfig.d.ts +2 -0
- package/api/types/PaginatedExtractionConfig.d.ts +3 -0
- package/api/types/Proxy.d.ts +9 -6
- package/api/types/ProxyConfigurationKind.d.ts +9 -0
- package/api/types/ProxyCredentials.d.ts +11 -0
- package/api/types/ScrapeConfig.d.ts +7 -0
- package/api/types/SessionConfigV1.d.ts +1 -1
- package/api/types/SessionConfigV1Proxy.d.ts +4 -4
- package/api/types/VisualAnalysisConfig.d.ts +1 -1
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +3 -2
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -0
- package/api/types/Window.d.ts +2 -0
- package/api/types/index.d.ts +4 -2
- package/api/types/index.js +4 -2
- package/biome.json +66 -0
- package/config/tsconfig-nobase.json +16 -0
- package/dist/api/resources/profiles/client/Client.js +2 -2
- package/dist/api/resources/sessions/client/Client.js +14 -14
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/dist/api/resources/sessions/types/index.d.ts +1 -1
- package/dist/api/resources/sessions/types/index.js +1 -1
- package/dist/api/resources/windows/client/Client.js +26 -26
- package/dist/api/types/AirtopProxyConfiguration.d.ts +9 -0
- package/dist/api/types/AirtopProxyConfiguration.js +5 -0
- package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
- package/dist/api/types/PageQueryConfig.d.ts +2 -0
- package/dist/api/types/PaginatedExtractionConfig.d.ts +3 -0
- package/dist/api/types/Proxy.d.ts +9 -6
- package/dist/api/types/ProxyConfigurationKind.d.ts +9 -0
- package/dist/api/types/ProxyConfigurationKind.js +5 -0
- package/dist/api/types/ProxyCredentials.d.ts +11 -0
- package/dist/api/types/ProxyCredentials.js +5 -0
- package/dist/api/types/ScrapeConfig.d.ts +7 -0
- package/dist/api/types/ScrapeConfig.js +5 -0
- package/dist/api/types/SessionConfigV1.d.ts +1 -1
- package/dist/api/types/SessionConfigV1Proxy.d.ts +4 -4
- package/dist/api/types/VisualAnalysisConfig.d.ts +1 -1
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +3 -2
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -0
- package/dist/api/types/Window.d.ts +2 -0
- package/dist/api/types/index.d.ts +4 -2
- package/dist/api/types/index.js +4 -2
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
- package/dist/serialization/resources/sessions/types/index.js +1 -1
- package/dist/serialization/types/AirtopProxyConfiguration.d.ts +13 -0
- package/dist/serialization/types/{SessionConfigV1ProxyItem.js → AirtopProxyConfiguration.js} +4 -5
- package/dist/serialization/types/PageQueryConfig.d.ts +2 -0
- package/dist/serialization/types/PageQueryConfig.js +2 -0
- package/dist/serialization/types/PaginatedExtractionConfig.d.ts +2 -0
- package/dist/serialization/types/PaginatedExtractionConfig.js +2 -0
- package/dist/serialization/types/Proxy.d.ts +4 -6
- package/dist/serialization/types/Proxy.js +3 -5
- package/dist/serialization/types/ProxyConfigurationKind.d.ts +14 -0
- package/dist/serialization/types/{CustomProxy.js → ProxyConfigurationKind.js} +5 -2
- package/dist/serialization/types/ProxyCredentials.d.ts +14 -0
- package/{serialization/types/SessionConfigV1ProxyItem.js → dist/serialization/types/ProxyCredentials.js} +5 -5
- package/dist/serialization/types/ScrapeConfig.d.ts +12 -0
- package/dist/serialization/types/ScrapeConfig.js +33 -0
- package/dist/serialization/types/SessionConfigV1Proxy.d.ts +3 -3
- package/dist/serialization/types/SessionConfigV1Proxy.js +4 -4
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -1
- package/dist/serialization/types/Window.d.ts +1 -0
- package/dist/serialization/types/Window.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -2
- package/dist/serialization/types/index.js +4 -2
- package/dist/utils/batch-operate/SessionQueue.d.ts +4 -4
- package/dist/utils/batch-operate/SessionQueue.js +11 -12
- package/dist/utils/batch-operate/WindowQueue.d.ts +3 -3
- package/dist/utils/batch-operate/WindowQueue.js +23 -11
- package/dist/utils/batch-operate/batch-util.d.ts +2 -2
- package/dist/utils/batch-operate/batch-util.js +5 -5
- package/dist/utils/batch-operate/helpers.d.ts +1 -1
- package/dist/utils/batch-operate/types.d.ts +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/process-screenshots.d.ts +1 -1
- package/dist/utils/process-screenshots.js +4 -4
- package/dist/wrapper/AirtopClient.d.ts +1 -1
- package/dist/wrapper/AirtopClient.js +3 -3
- package/dist/wrapper/AirtopSessions.d.ts +2 -2
- package/dist/wrapper/AirtopSessions.js +4 -4
- package/dist/wrapper/AirtopWindows.d.ts +9 -9
- package/dist/wrapper/AirtopWindows.js +11 -11
- package/lefthook.yml +23 -0
- package/package.json +9 -3
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/serialization/resources/sessions/types/index.d.ts +1 -1
- package/serialization/resources/sessions/types/index.js +1 -1
- package/serialization/types/AirtopProxyConfiguration.d.ts +13 -0
- package/serialization/types/AirtopProxyConfiguration.js +34 -0
- package/serialization/types/PageQueryConfig.d.ts +2 -0
- package/serialization/types/PageQueryConfig.js +2 -0
- package/serialization/types/PaginatedExtractionConfig.d.ts +2 -0
- package/serialization/types/PaginatedExtractionConfig.js +2 -0
- package/serialization/types/Proxy.d.ts +4 -6
- package/serialization/types/Proxy.js +3 -5
- package/serialization/types/ProxyConfigurationKind.d.ts +14 -0
- package/serialization/types/{CustomProxy.js → ProxyConfigurationKind.js} +5 -2
- package/serialization/types/ProxyCredentials.d.ts +14 -0
- package/serialization/types/ProxyCredentials.js +35 -0
- package/serialization/types/ScrapeConfig.d.ts +12 -0
- package/serialization/types/ScrapeConfig.js +33 -0
- package/serialization/types/SessionConfigV1Proxy.d.ts +3 -3
- package/serialization/types/SessionConfigV1Proxy.js +4 -4
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -1
- package/serialization/types/Window.d.ts +1 -0
- package/serialization/types/Window.js +1 -0
- package/serialization/types/index.d.ts +4 -2
- package/serialization/types/index.js +4 -2
- package/utils/batch-operate/SessionQueue.d.ts +4 -4
- package/utils/batch-operate/SessionQueue.js +11 -12
- package/utils/batch-operate/WindowQueue.d.ts +3 -3
- package/utils/batch-operate/WindowQueue.js +23 -11
- package/utils/batch-operate/batch-util.d.ts +2 -2
- package/utils/batch-operate/batch-util.js +5 -5
- package/utils/batch-operate/helpers.d.ts +1 -1
- package/utils/batch-operate/types.d.ts +1 -1
- package/utils/index.d.ts +3 -3
- package/utils/process-screenshots.d.ts +1 -1
- package/utils/process-screenshots.js +4 -4
- package/wrapper/AirtopClient.d.ts +1 -1
- package/wrapper/AirtopClient.js +3 -3
- package/wrapper/AirtopSessions.d.ts +2 -2
- package/wrapper/AirtopSessions.js +4 -4
- package/wrapper/AirtopWindows.d.ts +9 -9
- package/wrapper/AirtopWindows.js +11 -11
- package/api/types/CustomProxy.d.ts +0 -14
- package/api/types/SessionConfigV1ProxyItem.d.ts +0 -12
- package/dist/api/types/CustomProxy.d.ts +0 -14
- package/dist/api/types/SessionConfigV1ProxyItem.d.ts +0 -12
- package/dist/serialization/types/CustomProxy.d.ts +0 -11
- package/dist/serialization/types/SessionConfigV1ProxyItem.d.ts +0 -14
- package/serialization/types/CustomProxy.d.ts +0 -11
- package/serialization/types/SessionConfigV1ProxyItem.d.ts +0 -14
- /package/api/types/{CustomProxy.js → AirtopProxyConfiguration.js} +0 -0
- /package/api/types/{SessionConfigV1ProxyItem.js → ProxyConfigurationKind.js} +0 -0
- /package/{dist/api/types/CustomProxy.js → api/types/ProxyCredentials.js} +0 -0
- /package/{dist/api/types/SessionConfigV1ProxyItem.js → api/types/ScrapeConfig.js} +0 -0
@@ -84,8 +84,8 @@ class Profiles {
|
|
84
84
|
Authorization: yield this._getAuthorizationHeader(),
|
85
85
|
"X-Fern-Language": "JavaScript",
|
86
86
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
87
|
-
"X-Fern-SDK-Version": "0.1.
|
88
|
-
"User-Agent": "@airtop/sdk/0.1.
|
87
|
+
"X-Fern-SDK-Version": "0.1.26",
|
88
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
91
91
|
},
|
@@ -94,8 +94,8 @@ class Sessions {
|
|
94
94
|
Authorization: yield this._getAuthorizationHeader(),
|
95
95
|
"X-Fern-Language": "JavaScript",
|
96
96
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
97
|
-
"X-Fern-SDK-Version": "0.1.
|
98
|
-
"User-Agent": "@airtop/sdk/0.1.
|
97
|
+
"X-Fern-SDK-Version": "0.1.26",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
99
99
|
"X-Fern-Runtime": core.RUNTIME.type,
|
100
100
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
101
101
|
},
|
@@ -180,8 +180,8 @@ class Sessions {
|
|
180
180
|
Authorization: yield this._getAuthorizationHeader(),
|
181
181
|
"X-Fern-Language": "JavaScript",
|
182
182
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
183
|
-
"X-Fern-SDK-Version": "0.1.
|
184
|
-
"User-Agent": "@airtop/sdk/0.1.
|
183
|
+
"X-Fern-SDK-Version": "0.1.26",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
185
185
|
"X-Fern-Runtime": core.RUNTIME.type,
|
186
186
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
187
187
|
},
|
@@ -245,8 +245,8 @@ class Sessions {
|
|
245
245
|
Authorization: yield this._getAuthorizationHeader(),
|
246
246
|
"X-Fern-Language": "JavaScript",
|
247
247
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
248
|
-
"X-Fern-SDK-Version": "0.1.
|
249
|
-
"User-Agent": "@airtop/sdk/0.1.
|
248
|
+
"X-Fern-SDK-Version": "0.1.26",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
250
250
|
"X-Fern-Runtime": core.RUNTIME.type,
|
251
251
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
252
252
|
},
|
@@ -332,8 +332,8 @@ class Sessions {
|
|
332
332
|
Authorization: yield this._getAuthorizationHeader(),
|
333
333
|
"X-Fern-Language": "JavaScript",
|
334
334
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
335
|
-
"X-Fern-SDK-Version": "0.1.
|
336
|
-
"User-Agent": "@airtop/sdk/0.1.
|
335
|
+
"X-Fern-SDK-Version": "0.1.26",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
337
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
338
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
339
339
|
},
|
@@ -388,8 +388,8 @@ class Sessions {
|
|
388
388
|
Authorization: yield this._getAuthorizationHeader(),
|
389
389
|
"X-Fern-Language": "JavaScript",
|
390
390
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
391
|
-
"X-Fern-SDK-Version": "0.1.
|
392
|
-
"User-Agent": "@airtop/sdk/0.1.
|
391
|
+
"X-Fern-SDK-Version": "0.1.26",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
393
393
|
"X-Fern-Runtime": core.RUNTIME.type,
|
394
394
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
395
395
|
},
|
@@ -486,8 +486,8 @@ class Sessions {
|
|
486
486
|
Authorization: yield this._getAuthorizationHeader(),
|
487
487
|
"X-Fern-Language": "JavaScript",
|
488
488
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
489
|
-
"X-Fern-SDK-Version": "0.1.
|
490
|
-
"User-Agent": "@airtop/sdk/0.1.
|
489
|
+
"X-Fern-SDK-Version": "0.1.26",
|
490
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
491
491
|
"X-Fern-Runtime": core.RUNTIME.type,
|
492
492
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
493
493
|
},
|
@@ -539,8 +539,8 @@ class Sessions {
|
|
539
539
|
Authorization: yield this._getAuthorizationHeader(),
|
540
540
|
"X-Fern-Language": "JavaScript",
|
541
541
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
542
|
-
"X-Fern-SDK-Version": "0.1.
|
543
|
-
"User-Agent": "@airtop/sdk/0.1.
|
542
|
+
"X-Fern-SDK-Version": "0.1.26",
|
543
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
544
544
|
"X-Fern-Runtime": core.RUNTIME.type,
|
545
545
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
546
546
|
},
|
@@ -5,11 +5,8 @@ import * as Airtop from "../../../index";
|
|
5
5
|
/**
|
6
6
|
* Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
|
7
7
|
*/
|
8
|
-
export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.
|
8
|
+
export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status;
|
9
9
|
export declare namespace SessionsEventsResponse {
|
10
|
-
interface Status extends Airtop.SessionsEventsResponseStatus {
|
11
|
-
event: "status";
|
12
|
-
}
|
13
10
|
interface Error_ extends Airtop.SessionsEventsResponseError {
|
14
11
|
event: "error";
|
15
12
|
}
|
@@ -19,4 +16,7 @@ export declare namespace SessionsEventsResponse {
|
|
19
16
|
interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
|
20
17
|
event: "sessionEvent";
|
21
18
|
}
|
19
|
+
interface Status extends Airtop.SessionsEventsResponseStatus {
|
20
|
+
event: "status";
|
21
|
+
}
|
22
22
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export * from "./SessionsListRequestStatus";
|
2
|
-
export * from "./SessionsEventsResponseStatus";
|
3
2
|
export * from "./SessionsEventsResponseError";
|
4
3
|
export * from "./SessionsEventsResponseWindowEvent";
|
5
4
|
export * from "./SessionsEventsResponseSessionEvent";
|
5
|
+
export * from "./SessionsEventsResponseStatus";
|
6
6
|
export * from "./SessionsEventsResponse";
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./SessionsListRequestStatus"), exports);
|
18
|
-
__exportStar(require("./SessionsEventsResponseStatus"), exports);
|
19
18
|
__exportStar(require("./SessionsEventsResponseError"), exports);
|
20
19
|
__exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
|
21
20
|
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
21
|
+
__exportStar(require("./SessionsEventsResponseStatus"), exports);
|
22
22
|
__exportStar(require("./SessionsEventsResponse"), exports);
|
@@ -68,8 +68,8 @@ class Windows {
|
|
68
68
|
Authorization: yield this._getAuthorizationHeader(),
|
69
69
|
"X-Fern-Language": "JavaScript",
|
70
70
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
71
|
-
"X-Fern-SDK-Version": "0.1.
|
72
|
-
"User-Agent": "@airtop/sdk/0.1.
|
71
|
+
"X-Fern-SDK-Version": "0.1.26",
|
72
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
75
75
|
},
|
@@ -144,8 +144,8 @@ class Windows {
|
|
144
144
|
Authorization: yield this._getAuthorizationHeader(),
|
145
145
|
"X-Fern-Language": "JavaScript",
|
146
146
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
147
|
-
"X-Fern-SDK-Version": "0.1.
|
148
|
-
"User-Agent": "@airtop/sdk/0.1.
|
147
|
+
"X-Fern-SDK-Version": "0.1.26",
|
148
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
151
151
|
},
|
@@ -209,8 +209,8 @@ class Windows {
|
|
209
209
|
Authorization: yield this._getAuthorizationHeader(),
|
210
210
|
"X-Fern-Language": "JavaScript",
|
211
211
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
212
|
-
"X-Fern-SDK-Version": "0.1.
|
213
|
-
"User-Agent": "@airtop/sdk/0.1.
|
212
|
+
"X-Fern-SDK-Version": "0.1.26",
|
213
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
214
214
|
"X-Fern-Runtime": core.RUNTIME.type,
|
215
215
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
216
216
|
},
|
@@ -271,8 +271,8 @@ class Windows {
|
|
271
271
|
Authorization: yield this._getAuthorizationHeader(),
|
272
272
|
"X-Fern-Language": "JavaScript",
|
273
273
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
274
|
-
"X-Fern-SDK-Version": "0.1.
|
275
|
-
"User-Agent": "@airtop/sdk/0.1.
|
274
|
+
"X-Fern-SDK-Version": "0.1.26",
|
275
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
276
276
|
"X-Fern-Runtime": core.RUNTIME.type,
|
277
277
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
278
278
|
},
|
@@ -335,8 +335,8 @@ class Windows {
|
|
335
335
|
Authorization: yield this._getAuthorizationHeader(),
|
336
336
|
"X-Fern-Language": "JavaScript",
|
337
337
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
338
|
-
"X-Fern-SDK-Version": "0.1.
|
339
|
-
"User-Agent": "@airtop/sdk/0.1.
|
338
|
+
"X-Fern-SDK-Version": "0.1.26",
|
339
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
340
340
|
"X-Fern-Runtime": core.RUNTIME.type,
|
341
341
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
342
342
|
},
|
@@ -398,8 +398,8 @@ class Windows {
|
|
398
398
|
Authorization: yield this._getAuthorizationHeader(),
|
399
399
|
"X-Fern-Language": "JavaScript",
|
400
400
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
401
|
-
"X-Fern-SDK-Version": "0.1.
|
402
|
-
"User-Agent": "@airtop/sdk/0.1.
|
401
|
+
"X-Fern-SDK-Version": "0.1.26",
|
402
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
403
403
|
"X-Fern-Runtime": core.RUNTIME.type,
|
404
404
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
405
405
|
},
|
@@ -463,8 +463,8 @@ class Windows {
|
|
463
463
|
Authorization: yield this._getAuthorizationHeader(),
|
464
464
|
"X-Fern-Language": "JavaScript",
|
465
465
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
466
|
-
"X-Fern-SDK-Version": "0.1.
|
467
|
-
"User-Agent": "@airtop/sdk/0.1.
|
466
|
+
"X-Fern-SDK-Version": "0.1.26",
|
467
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
468
468
|
"X-Fern-Runtime": core.RUNTIME.type,
|
469
469
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
470
470
|
},
|
@@ -528,8 +528,8 @@ class Windows {
|
|
528
528
|
Authorization: yield this._getAuthorizationHeader(),
|
529
529
|
"X-Fern-Language": "JavaScript",
|
530
530
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
531
|
-
"X-Fern-SDK-Version": "0.1.
|
532
|
-
"User-Agent": "@airtop/sdk/0.1.
|
531
|
+
"X-Fern-SDK-Version": "0.1.26",
|
532
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
533
533
|
"X-Fern-Runtime": core.RUNTIME.type,
|
534
534
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
535
535
|
},
|
@@ -595,8 +595,8 @@ class Windows {
|
|
595
595
|
Authorization: yield this._getAuthorizationHeader(),
|
596
596
|
"X-Fern-Language": "JavaScript",
|
597
597
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
598
|
-
"X-Fern-SDK-Version": "0.1.
|
599
|
-
"User-Agent": "@airtop/sdk/0.1.
|
598
|
+
"X-Fern-SDK-Version": "0.1.26",
|
599
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
600
600
|
"X-Fern-Runtime": core.RUNTIME.type,
|
601
601
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
602
602
|
},
|
@@ -660,8 +660,8 @@ class Windows {
|
|
660
660
|
Authorization: yield this._getAuthorizationHeader(),
|
661
661
|
"X-Fern-Language": "JavaScript",
|
662
662
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
663
|
-
"X-Fern-SDK-Version": "0.1.
|
664
|
-
"User-Agent": "@airtop/sdk/0.1.
|
663
|
+
"X-Fern-SDK-Version": "0.1.26",
|
664
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
665
665
|
"X-Fern-Runtime": core.RUNTIME.type,
|
666
666
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
667
667
|
},
|
@@ -723,8 +723,8 @@ class Windows {
|
|
723
723
|
Authorization: yield this._getAuthorizationHeader(),
|
724
724
|
"X-Fern-Language": "JavaScript",
|
725
725
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
726
|
-
"X-Fern-SDK-Version": "0.1.
|
727
|
-
"User-Agent": "@airtop/sdk/0.1.
|
726
|
+
"X-Fern-SDK-Version": "0.1.26",
|
727
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
728
728
|
"X-Fern-Runtime": core.RUNTIME.type,
|
729
729
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
730
730
|
},
|
@@ -788,8 +788,8 @@ class Windows {
|
|
788
788
|
Authorization: yield this._getAuthorizationHeader(),
|
789
789
|
"X-Fern-Language": "JavaScript",
|
790
790
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
791
|
-
"X-Fern-SDK-Version": "0.1.
|
792
|
-
"User-Agent": "@airtop/sdk/0.1.
|
791
|
+
"X-Fern-SDK-Version": "0.1.26",
|
792
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
793
793
|
"X-Fern-Runtime": core.RUNTIME.type,
|
794
794
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
795
795
|
},
|
@@ -855,8 +855,8 @@ class Windows {
|
|
855
855
|
Authorization: yield this._getAuthorizationHeader(),
|
856
856
|
"X-Fern-Language": "JavaScript",
|
857
857
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
858
|
-
"X-Fern-SDK-Version": "0.1.
|
859
|
-
"User-Agent": "@airtop/sdk/0.1.
|
858
|
+
"X-Fern-SDK-Version": "0.1.26",
|
859
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
860
860
|
"X-Fern-Runtime": core.RUNTIME.type,
|
861
861
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
862
862
|
},
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface AirtopProxyConfiguration {
|
5
|
+
/** Country to exit from, in [ISO 3166-1 alpha-2 format](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Or `global` to get IP addresses from random countries. We do not guarantee an available proxy in all countries. */
|
6
|
+
country?: string;
|
7
|
+
/** Try to maintain the same IP address for the duration for up to a maximum of 30 minutes. `true` by default. <Note>Stickiness is on a best-effort basis; we cannot guarantee that the same IP address will be available for 30 minutes at a time.</Note> */
|
8
|
+
sticky?: boolean;
|
9
|
+
}
|
@@ -9,7 +9,7 @@ export interface ExternalSessionWithConnectionInfo {
|
|
9
9
|
cdpWsUrl?: string;
|
10
10
|
/** Websocket url to connect to the Airtop browser for webdriver-based automation frameworks (e.g. Selenium). Include the header 'Authorization: Bearer <airtop-api-key>.' */
|
11
11
|
chromedriverUrl?: string;
|
12
|
-
/** Session configuration details. */
|
12
|
+
/** Session configuration details. DEPRECATED */
|
13
13
|
configuration: Airtop.ExternalSessionConfig;
|
14
14
|
/** Current usage in minutes. */
|
15
15
|
currentUsage?: number;
|
@@ -7,4 +7,6 @@ export interface PageQueryConfig {
|
|
7
7
|
experimental?: Airtop.PageQueryExperimentalConfig;
|
8
8
|
/** JSON schema defining the structure of the output. If not provided, the format of the output might vary. */
|
9
9
|
outputSchema?: string;
|
10
|
+
/** Optional configuration to customize and tweak how the web page is scraped. */
|
11
|
+
scrape?: Airtop.ScrapeConfig;
|
10
12
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
import * as Airtop from "../index";
|
4
5
|
export interface PaginatedExtractionConfig {
|
5
6
|
/** The mode to use for interaction. If set to 'auto', Airtop AI will automatically choose the most cost-effective interaction mode. If set to 'accurate', the request might be slower, but more likely to be accurate. Whereas, 'cost-efficient' will be cheaper and speed things up, but may reduce accuracy. */
|
6
7
|
interactionMode?: string;
|
@@ -8,4 +9,6 @@ export interface PaginatedExtractionConfig {
|
|
8
9
|
outputSchema?: string;
|
9
10
|
/** The mode to use for pagination. If set to 'auto', Airtop AI will automatically look for pagination links first and then attempt infinite scrolling to load more content. If set to 'paginated', Airtop AI will follow pagination links to load more content. If set to 'infinite-scroll', Airtop AI will scroll the page to load more content. */
|
10
11
|
paginationMode?: string;
|
12
|
+
/** Optional configuration to customize and tweak how the web page is scraped. */
|
13
|
+
scrape?: Airtop.ScrapeConfig;
|
11
14
|
}
|
package/api/types/Proxy.d.ts
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
import * as Airtop from "../index";
|
4
5
|
/**
|
5
|
-
*
|
6
|
+
* Configuration for a single custom proxy.
|
6
7
|
*/
|
7
|
-
export
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
export declare type Proxy =
|
9
|
+
/**
|
10
|
+
* Url of the proxy. Or `default` to use Airtop-provided proxy. */
|
11
|
+
string | Airtop.AirtopProxyConfiguration
|
12
|
+
/**
|
13
|
+
* Proxy object with url of the proxy as a parameter. Takes optional username and password. */
|
14
|
+
| Airtop.ProxyCredentials;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Proxy object with url of the proxy as a parameter. Takes optional username and password.
|
6
|
+
*/
|
7
|
+
export interface ProxyCredentials {
|
8
|
+
password?: string;
|
9
|
+
url: string;
|
10
|
+
username?: string;
|
11
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface ScrapeConfig {
|
5
|
+
/** URL optimization helps improve performance during model analysis, but limits the model's ability to analyze internal details of URLs (such as individual URL parameters). This setting does not affect the ability to extract URLs or links from web pages -- those will work regardless of how this option is set. However, if you need to analyze URLs themselves and are not getting satisfactory results, try setting this option to 'disabled'. If set to 'auto', Airtop AI will automatically determine whether to apply URL optimization. If 'enabled', URLs will always be optimized to improve performance. If 'disabled', URLs will not be optimized. */
|
6
|
+
optimizeUrls?: string;
|
7
|
+
}
|
@@ -11,6 +11,6 @@ export interface SessionConfigV1 {
|
|
11
11
|
profileName?: string;
|
12
12
|
/** Proxy configuration. */
|
13
13
|
proxy?: Airtop.SessionConfigV1Proxy;
|
14
|
-
/**
|
14
|
+
/** Number of minutes of inactivity (idle timeout) after which the session will terminate. The idle timeout is reset when a user makes an incoming HTTP request, AI request, or new WebSocket connection to the session. Thus, when using drivers like Puppeteer, Selenium or Playwright, the timeout reset depends on the nature of the driver request. If not specified, defaults to 10 minutes. */
|
15
15
|
timeoutMinutes?: number;
|
16
16
|
}
|
@@ -7,11 +7,11 @@ import * as Airtop from "../index";
|
|
7
7
|
*/
|
8
8
|
export declare type SessionConfigV1Proxy =
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* Use Airtop-provided proxy. */
|
11
11
|
boolean
|
12
12
|
/**
|
13
13
|
* Configuration for a single custom proxy. */
|
14
|
-
| Airtop.
|
14
|
+
| Airtop.Proxy
|
15
15
|
/**
|
16
|
-
*
|
17
|
-
| Airtop.
|
16
|
+
* You can set multiple proxies. You associate each proxy with a domain pattern. If the domain matches the pattern, the proxy is used. Pattern can contain `?` to match any single character and / or `*` to match any sequence of characters. For example, `*.example.com` will match `www.example.com` and `sub.example.com`. */
|
17
|
+
| Airtop.ProxyConfigurationKind[];
|
@@ -9,7 +9,7 @@ export interface VisualAnalysisConfig {
|
|
9
9
|
overlapPercentage?: number;
|
10
10
|
/** The direction to partition the screenshot into chunks: 'vertical', 'horizontal', or 'bidirectional'. Defaults to 'vertical', which is recommended for most web pages. For optimal results when partitioning in a single direction, ensure the perpendicular dimension does not exceed 1920 pixels. */
|
11
11
|
partitionDirection?: Airtop.VisualAnalysisConfigPartitionDirection;
|
12
|
-
/** [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'first' or bestMatch'. Defaults to '
|
12
|
+
/** [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'auto', 'first' or 'bestMatch'. Defaults to 'auto'. Use 'auto' to let the system decide the best strategy. Use 'first' to select the first visual element that matches the element description. This will favor results that appear higher on the page in the event of multiple matches. Use 'bestMatch' to analyze the complete page and apply judgement to select the best candidate from all potential matches. */
|
13
13
|
resultSelectionStrategy?: Airtop.VisualAnalysisConfigResultSelectionStrategy;
|
14
14
|
/** Scan mode only: The delay between scrolls in milliseconds. Defaults to 1000 (milliseconds). */
|
15
15
|
scanScrollDelay?: number;
|
@@ -2,10 +2,11 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
/**
|
5
|
-
* [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'first' or bestMatch'. Defaults to '
|
5
|
+
* [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'auto', 'first' or 'bestMatch'. Defaults to 'auto'. Use 'auto' to let the system decide the best strategy. Use 'first' to select the first visual element that matches the element description. This will favor results that appear higher on the page in the event of multiple matches. Use 'bestMatch' to analyze the complete page and apply judgement to select the best candidate from all potential matches.
|
6
6
|
*/
|
7
|
-
export declare type VisualAnalysisConfigResultSelectionStrategy = "first" | "bestMatch";
|
7
|
+
export declare type VisualAnalysisConfigResultSelectionStrategy = "first" | "bestMatch" | "auto";
|
8
8
|
export declare const VisualAnalysisConfigResultSelectionStrategy: {
|
9
9
|
readonly First: "first";
|
10
10
|
readonly BestMatch: "bestMatch";
|
11
|
+
readonly Auto: "auto";
|
11
12
|
};
|
package/api/types/Window.d.ts
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
export interface Window {
|
5
5
|
/** Url for loading a browser window live view that is configured according to the request options like screenResolution, disableResize, etc. */
|
6
6
|
liveViewUrl: string;
|
7
|
+
/** CDP target ID of the browser window */
|
8
|
+
targetId: string;
|
7
9
|
/** Airtop window ID of the browser window */
|
8
10
|
windowId: string;
|
9
11
|
}
|
package/api/types/index.d.ts
CHANGED
@@ -23,6 +23,7 @@ export * from "./PageQueryConfig";
|
|
23
23
|
export * from "./PageQueryExperimentalConfig";
|
24
24
|
export * from "./PaginatedExtractionConfig";
|
25
25
|
export * from "./Pagination";
|
26
|
+
export * from "./ScrapeConfig";
|
26
27
|
export * from "./ScrapeResponse";
|
27
28
|
export * from "./ScrapeResponseContent";
|
28
29
|
export * from "./ScrapeResponseEnvelope";
|
@@ -30,9 +31,10 @@ export * from "./ScrapeResponseOutput";
|
|
30
31
|
export * from "./ScreenshotConfig";
|
31
32
|
export * from "./ScreenshotMetadata";
|
32
33
|
export * from "./ScreenshotRequestConfig";
|
34
|
+
export * from "./AirtopProxyConfiguration";
|
35
|
+
export * from "./ProxyCredentials";
|
33
36
|
export * from "./Proxy";
|
34
|
-
export * from "./
|
35
|
-
export * from "./SessionConfigV1ProxyItem";
|
37
|
+
export * from "./ProxyConfigurationKind";
|
36
38
|
export * from "./SessionConfigV1Proxy";
|
37
39
|
export * from "./SessionConfigV1";
|
38
40
|
export * from "./SessionEventMessage";
|
package/api/types/index.js
CHANGED
@@ -39,6 +39,7 @@ __exportStar(require("./PageQueryConfig"), exports);
|
|
39
39
|
__exportStar(require("./PageQueryExperimentalConfig"), exports);
|
40
40
|
__exportStar(require("./PaginatedExtractionConfig"), exports);
|
41
41
|
__exportStar(require("./Pagination"), exports);
|
42
|
+
__exportStar(require("./ScrapeConfig"), exports);
|
42
43
|
__exportStar(require("./ScrapeResponse"), exports);
|
43
44
|
__exportStar(require("./ScrapeResponseContent"), exports);
|
44
45
|
__exportStar(require("./ScrapeResponseEnvelope"), exports);
|
@@ -46,9 +47,10 @@ __exportStar(require("./ScrapeResponseOutput"), exports);
|
|
46
47
|
__exportStar(require("./ScreenshotConfig"), exports);
|
47
48
|
__exportStar(require("./ScreenshotMetadata"), exports);
|
48
49
|
__exportStar(require("./ScreenshotRequestConfig"), exports);
|
50
|
+
__exportStar(require("./AirtopProxyConfiguration"), exports);
|
51
|
+
__exportStar(require("./ProxyCredentials"), exports);
|
49
52
|
__exportStar(require("./Proxy"), exports);
|
50
|
-
__exportStar(require("./
|
51
|
-
__exportStar(require("./SessionConfigV1ProxyItem"), exports);
|
53
|
+
__exportStar(require("./ProxyConfigurationKind"), exports);
|
52
54
|
__exportStar(require("./SessionConfigV1Proxy"), exports);
|
53
55
|
__exportStar(require("./SessionConfigV1"), exports);
|
54
56
|
__exportStar(require("./SessionEventMessage"), exports);
|
package/biome.json
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
3
|
+
"organizeImports": {
|
4
|
+
"enabled": true
|
5
|
+
},
|
6
|
+
"javascript": {
|
7
|
+
"formatter": {
|
8
|
+
"enabled": true,
|
9
|
+
"quoteStyle": "single"
|
10
|
+
}
|
11
|
+
},
|
12
|
+
"formatter": {
|
13
|
+
"enabled": true,
|
14
|
+
"indentStyle": "space",
|
15
|
+
"lineWidth": 120,
|
16
|
+
"ignore": [
|
17
|
+
"node_modules/**",
|
18
|
+
".idea/**",
|
19
|
+
"dist/**",
|
20
|
+
"src/api/**",
|
21
|
+
"src/core/**",
|
22
|
+
"src/errors/**",
|
23
|
+
"src/serialization/**",
|
24
|
+
"src/Client.ts",
|
25
|
+
"src/environments.ts",
|
26
|
+
"src/index.ts",
|
27
|
+
"tests/**"
|
28
|
+
],
|
29
|
+
"include": ["src/wrapper/**", "src/utils/**", "src/live-view/**"]
|
30
|
+
},
|
31
|
+
"linter": {
|
32
|
+
"ignore": [
|
33
|
+
"node_modules/**",
|
34
|
+
".idea/**",
|
35
|
+
"dist/**",
|
36
|
+
"src/api/**",
|
37
|
+
"src/core/**",
|
38
|
+
"src/errors/**",
|
39
|
+
"src/serialization/**",
|
40
|
+
"src/Client.ts",
|
41
|
+
"src/environments.ts",
|
42
|
+
"src/index.ts",
|
43
|
+
"tests/**"
|
44
|
+
],
|
45
|
+
"include": ["src/wrapper/**", "src/utils/**", "src/live-view/**"],
|
46
|
+
"rules": {
|
47
|
+
"recommended": true,
|
48
|
+
"correctness": {
|
49
|
+
"noUnusedImports": "error",
|
50
|
+
"useExhaustiveDependencies": "error"
|
51
|
+
},
|
52
|
+
"suspicious": {
|
53
|
+
"noImplicitAnyLet": "off",
|
54
|
+
"noExplicitAny": "off",
|
55
|
+
"noDebugger": {
|
56
|
+
"level": "warn",
|
57
|
+
"fix": "none"
|
58
|
+
},
|
59
|
+
"noAssignInExpressions": "warn"
|
60
|
+
},
|
61
|
+
"nursery": {
|
62
|
+
"useSortedClasses": "warn"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"strict": true,
|
4
|
+
"target": "ES6",
|
5
|
+
"module": "CommonJS",
|
6
|
+
"moduleResolution": "node",
|
7
|
+
"esModuleInterop": true,
|
8
|
+
"skipLibCheck": true,
|
9
|
+
"declaration": true,
|
10
|
+
"outDir": "../dist",
|
11
|
+
"rootDir": "../src",
|
12
|
+
"noEmit": true
|
13
|
+
},
|
14
|
+
"include": ["../src"],
|
15
|
+
"exclude": []
|
16
|
+
}
|
@@ -84,8 +84,8 @@ class Profiles {
|
|
84
84
|
Authorization: yield this._getAuthorizationHeader(),
|
85
85
|
"X-Fern-Language": "JavaScript",
|
86
86
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
87
|
-
"X-Fern-SDK-Version": "0.1.
|
88
|
-
"User-Agent": "@airtop/sdk/0.1.
|
87
|
+
"X-Fern-SDK-Version": "0.1.26",
|
88
|
+
"User-Agent": "@airtop/sdk/0.1.26",
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
91
91
|
},
|