@airtop/sdk 0.0.15 → 0.0.17
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 +4 -4
- package/api/resources/sessions/client/Client.js +10 -10
- package/api/resources/windows/client/Client.js +8 -8
- package/dist/api/resources/profiles/client/Client.js +4 -4
- package/dist/api/resources/sessions/client/Client.js +10 -10
- package/dist/api/resources/windows/client/Client.js +8 -8
- package/dist/wrapper/AirtopWindows.js +2 -2
- package/package.json +4 -4
- package/wrapper/AirtopWindows.js +2 -2
@@ -77,8 +77,8 @@ class Profiles {
|
|
77
77
|
Authorization: yield this._getAuthorizationHeader(),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
80
|
-
"X-Fern-SDK-Version": "0.0.
|
81
|
-
"User-Agent": "@airtop/sdk/0.0.
|
80
|
+
"X-Fern-SDK-Version": "0.0.17",
|
81
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
82
82
|
"X-Fern-Runtime": core.RUNTIME.type,
|
83
83
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
84
84
|
},
|
@@ -148,8 +148,8 @@ class Profiles {
|
|
148
148
|
Authorization: yield this._getAuthorizationHeader(),
|
149
149
|
"X-Fern-Language": "JavaScript",
|
150
150
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
151
|
-
"X-Fern-SDK-Version": "0.0.
|
152
|
-
"User-Agent": "@airtop/sdk/0.0.
|
151
|
+
"X-Fern-SDK-Version": "0.0.17",
|
152
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
153
153
|
"X-Fern-Runtime": core.RUNTIME.type,
|
154
154
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
155
155
|
},
|
@@ -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.0.
|
98
|
-
"User-Agent": "@airtop/sdk/0.0.
|
97
|
+
"X-Fern-SDK-Version": "0.0.17",
|
98
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
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.0.
|
184
|
-
"User-Agent": "@airtop/sdk/0.0.
|
183
|
+
"X-Fern-SDK-Version": "0.0.17",
|
184
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
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.0.
|
249
|
-
"User-Agent": "@airtop/sdk/0.0.
|
248
|
+
"X-Fern-SDK-Version": "0.0.17",
|
249
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
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.0.
|
336
|
-
"User-Agent": "@airtop/sdk/0.0.
|
335
|
+
"X-Fern-SDK-Version": "0.0.17",
|
336
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
337
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
338
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
339
339
|
},
|
@@ -380,8 +380,8 @@ class Sessions {
|
|
380
380
|
Authorization: yield this._getAuthorizationHeader(),
|
381
381
|
"X-Fern-Language": "JavaScript",
|
382
382
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
383
|
-
"X-Fern-SDK-Version": "0.0.
|
384
|
-
"User-Agent": "@airtop/sdk/0.0.
|
383
|
+
"X-Fern-SDK-Version": "0.0.17",
|
384
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
385
385
|
"X-Fern-Runtime": core.RUNTIME.type,
|
386
386
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
387
387
|
},
|
@@ -80,8 +80,8 @@ class Windows {
|
|
80
80
|
Authorization: yield this._getAuthorizationHeader(),
|
81
81
|
"X-Fern-Language": "JavaScript",
|
82
82
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
83
|
-
"X-Fern-SDK-Version": "0.0.
|
84
|
-
"User-Agent": "@airtop/sdk/0.0.
|
83
|
+
"X-Fern-SDK-Version": "0.0.17",
|
84
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
85
85
|
"X-Fern-Runtime": core.RUNTIME.type,
|
86
86
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
87
87
|
},
|
@@ -143,8 +143,8 @@ class Windows {
|
|
143
143
|
Authorization: yield this._getAuthorizationHeader(),
|
144
144
|
"X-Fern-Language": "JavaScript",
|
145
145
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
146
|
-
"X-Fern-SDK-Version": "0.0.
|
147
|
-
"User-Agent": "@airtop/sdk/0.0.
|
146
|
+
"X-Fern-SDK-Version": "0.0.17",
|
147
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
148
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
149
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
150
150
|
},
|
@@ -204,8 +204,8 @@ class Windows {
|
|
204
204
|
Authorization: yield this._getAuthorizationHeader(),
|
205
205
|
"X-Fern-Language": "JavaScript",
|
206
206
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
207
|
-
"X-Fern-SDK-Version": "0.0.
|
208
|
-
"User-Agent": "@airtop/sdk/0.0.
|
207
|
+
"X-Fern-SDK-Version": "0.0.17",
|
208
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
209
209
|
"X-Fern-Runtime": core.RUNTIME.type,
|
210
210
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
211
211
|
},
|
@@ -265,8 +265,8 @@ class Windows {
|
|
265
265
|
Authorization: yield this._getAuthorizationHeader(),
|
266
266
|
"X-Fern-Language": "JavaScript",
|
267
267
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
268
|
-
"X-Fern-SDK-Version": "0.0.
|
269
|
-
"User-Agent": "@airtop/sdk/0.0.
|
268
|
+
"X-Fern-SDK-Version": "0.0.17",
|
269
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
270
270
|
"X-Fern-Runtime": core.RUNTIME.type,
|
271
271
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
272
272
|
},
|
@@ -77,8 +77,8 @@ class Profiles {
|
|
77
77
|
Authorization: yield this._getAuthorizationHeader(),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
80
|
-
"X-Fern-SDK-Version": "0.0.
|
81
|
-
"User-Agent": "@airtop/sdk/0.0.
|
80
|
+
"X-Fern-SDK-Version": "0.0.17",
|
81
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
82
82
|
"X-Fern-Runtime": core.RUNTIME.type,
|
83
83
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
84
84
|
},
|
@@ -148,8 +148,8 @@ class Profiles {
|
|
148
148
|
Authorization: yield this._getAuthorizationHeader(),
|
149
149
|
"X-Fern-Language": "JavaScript",
|
150
150
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
151
|
-
"X-Fern-SDK-Version": "0.0.
|
152
|
-
"User-Agent": "@airtop/sdk/0.0.
|
151
|
+
"X-Fern-SDK-Version": "0.0.17",
|
152
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
153
153
|
"X-Fern-Runtime": core.RUNTIME.type,
|
154
154
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
155
155
|
},
|
@@ -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.0.
|
98
|
-
"User-Agent": "@airtop/sdk/0.0.
|
97
|
+
"X-Fern-SDK-Version": "0.0.17",
|
98
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
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.0.
|
184
|
-
"User-Agent": "@airtop/sdk/0.0.
|
183
|
+
"X-Fern-SDK-Version": "0.0.17",
|
184
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
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.0.
|
249
|
-
"User-Agent": "@airtop/sdk/0.0.
|
248
|
+
"X-Fern-SDK-Version": "0.0.17",
|
249
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
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.0.
|
336
|
-
"User-Agent": "@airtop/sdk/0.0.
|
335
|
+
"X-Fern-SDK-Version": "0.0.17",
|
336
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
337
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
338
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
339
339
|
},
|
@@ -380,8 +380,8 @@ class Sessions {
|
|
380
380
|
Authorization: yield this._getAuthorizationHeader(),
|
381
381
|
"X-Fern-Language": "JavaScript",
|
382
382
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
383
|
-
"X-Fern-SDK-Version": "0.0.
|
384
|
-
"User-Agent": "@airtop/sdk/0.0.
|
383
|
+
"X-Fern-SDK-Version": "0.0.17",
|
384
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
385
385
|
"X-Fern-Runtime": core.RUNTIME.type,
|
386
386
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
387
387
|
},
|
@@ -80,8 +80,8 @@ class Windows {
|
|
80
80
|
Authorization: yield this._getAuthorizationHeader(),
|
81
81
|
"X-Fern-Language": "JavaScript",
|
82
82
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
83
|
-
"X-Fern-SDK-Version": "0.0.
|
84
|
-
"User-Agent": "@airtop/sdk/0.0.
|
83
|
+
"X-Fern-SDK-Version": "0.0.17",
|
84
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
85
85
|
"X-Fern-Runtime": core.RUNTIME.type,
|
86
86
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
87
87
|
},
|
@@ -143,8 +143,8 @@ class Windows {
|
|
143
143
|
Authorization: yield this._getAuthorizationHeader(),
|
144
144
|
"X-Fern-Language": "JavaScript",
|
145
145
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
146
|
-
"X-Fern-SDK-Version": "0.0.
|
147
|
-
"User-Agent": "@airtop/sdk/0.0.
|
146
|
+
"X-Fern-SDK-Version": "0.0.17",
|
147
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
148
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
149
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
150
150
|
},
|
@@ -204,8 +204,8 @@ class Windows {
|
|
204
204
|
Authorization: yield this._getAuthorizationHeader(),
|
205
205
|
"X-Fern-Language": "JavaScript",
|
206
206
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
207
|
-
"X-Fern-SDK-Version": "0.0.
|
208
|
-
"User-Agent": "@airtop/sdk/0.0.
|
207
|
+
"X-Fern-SDK-Version": "0.0.17",
|
208
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
209
209
|
"X-Fern-Runtime": core.RUNTIME.type,
|
210
210
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
211
211
|
},
|
@@ -265,8 +265,8 @@ class Windows {
|
|
265
265
|
Authorization: yield this._getAuthorizationHeader(),
|
266
266
|
"X-Fern-Language": "JavaScript",
|
267
267
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
268
|
-
"X-Fern-SDK-Version": "0.0.
|
269
|
-
"User-Agent": "@airtop/sdk/0.0.
|
268
|
+
"X-Fern-SDK-Version": "0.0.17",
|
269
|
+
"User-Agent": "@airtop/sdk/0.0.17",
|
270
270
|
"X-Fern-Runtime": core.RUNTIME.type,
|
271
271
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
272
272
|
},
|
@@ -51,14 +51,14 @@ class AirtopWindows {
|
|
51
51
|
}
|
52
52
|
promptContent(sessionId, windowId, request, requestOptions) {
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
54
|
-
return this._windows.promptContent(sessionId, windowId, request, Object.assign({ timeoutInSeconds: 600 }, requestOptions));
|
54
|
+
return this._windows.promptContent(sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
55
55
|
});
|
56
56
|
}
|
57
57
|
scrapeContent(sessionId, windowId, request, requestOptions) {
|
58
58
|
return this._windows.scrapeContent(sessionId, windowId, request, Object.assign({ timeoutInSeconds: 600 }, requestOptions));
|
59
59
|
}
|
60
60
|
summarizeContent(sessionId, windowId, request, requestOptions) {
|
61
|
-
return this._windows.summarizeContent(sessionId, windowId, request, Object.assign({ timeoutInSeconds: 600 }, requestOptions));
|
61
|
+
return this._windows.summarizeContent(sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
62
62
|
}
|
63
63
|
getWindowInfoForPuppeteerPage(session, page, request, requestOptions) {
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@airtop/sdk",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.17",
|
4
4
|
"private": false,
|
5
5
|
"repository": "https://github.com/airtop-ai/airtop-node-sdk",
|
6
6
|
"main": "./index.js",
|
@@ -55,8 +55,8 @@
|
|
55
55
|
],
|
56
56
|
"license": "MIT",
|
57
57
|
"peerDependencies": {
|
58
|
-
"playwright": "1.47.2",
|
59
|
-
"puppeteer": "22.14.0",
|
60
|
-
"selenium-webdriver": "4.25.0"
|
58
|
+
"playwright": ">=1.47.2",
|
59
|
+
"puppeteer": ">=22.14.0",
|
60
|
+
"selenium-webdriver": ">=4.25.0"
|
61
61
|
}
|
62
62
|
}
|
package/wrapper/AirtopWindows.js
CHANGED
@@ -51,14 +51,14 @@ class AirtopWindows {
|
|
51
51
|
}
|
52
52
|
promptContent(sessionId, windowId, request, requestOptions) {
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
54
|
-
return this._windows.promptContent(sessionId, windowId, request, Object.assign({ timeoutInSeconds: 600 }, requestOptions));
|
54
|
+
return this._windows.promptContent(sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
55
55
|
});
|
56
56
|
}
|
57
57
|
scrapeContent(sessionId, windowId, request, requestOptions) {
|
58
58
|
return this._windows.scrapeContent(sessionId, windowId, request, Object.assign({ timeoutInSeconds: 600 }, requestOptions));
|
59
59
|
}
|
60
60
|
summarizeContent(sessionId, windowId, request, requestOptions) {
|
61
|
-
return this._windows.summarizeContent(sessionId, windowId, request, Object.assign({ timeoutInSeconds: 600 }, requestOptions));
|
61
|
+
return this._windows.summarizeContent(sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
62
62
|
}
|
63
63
|
getWindowInfoForPuppeteerPage(session, page, request, requestOptions) {
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|