@airtop/sdk 0.1.28 → 0.1.30
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.d.ts +0 -9
- package/api/resources/sessions/client/Client.js +12 -65
- package/api/resources/windows/client/Client.js +28 -28
- package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +2 -0
- package/dist/api/resources/profiles/client/Client.js +2 -2
- package/dist/api/resources/sessions/client/Client.d.ts +0 -9
- package/dist/api/resources/sessions/client/Client.js +12 -65
- package/dist/api/resources/windows/client/Client.js +28 -28
- package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +2 -0
- package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +1 -0
- package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +1 -0
- package/dist/wrapper/AirtopWindows.d.ts +2 -2
- package/package.json +1 -1
- package/reference.md +0 -59
- package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +1 -0
- package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +1 -0
- package/wrapper/AirtopWindows.d.ts +2 -2
@@ -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.30",
|
88
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
91
91
|
},
|
@@ -75,15 +75,6 @@ export declare class Sessions {
|
|
75
75
|
* Get a session event stream for a given session ID
|
76
76
|
*/
|
77
77
|
events(id: string, request?: Airtop.SessionsEventsRequest, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
|
78
|
-
/**
|
79
|
-
* @param {string} sessionId - ID of the session.
|
80
|
-
* @param {string} extensionConfigurationName - Name under which to save the extension configuration.
|
81
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
82
|
-
*
|
83
|
-
* @example
|
84
|
-
* await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
|
85
|
-
*/
|
86
|
-
saveExtensionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
|
87
78
|
/**
|
88
79
|
* @param {string} sessionId - ID of the session.
|
89
80
|
* @param {string} profileName - Name under which to save the profile.
|
@@ -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.30",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
393
393
|
"X-Fern-Runtime": core.RUNTIME.type,
|
394
394
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
395
395
|
},
|
@@ -468,59 +468,6 @@ class Sessions {
|
|
468
468
|
}
|
469
469
|
});
|
470
470
|
}
|
471
|
-
/**
|
472
|
-
* @param {string} sessionId - ID of the session.
|
473
|
-
* @param {string} extensionConfigurationName - Name under which to save the extension configuration.
|
474
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
475
|
-
*
|
476
|
-
* @example
|
477
|
-
* await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
|
478
|
-
*/
|
479
|
-
saveExtensionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
|
480
|
-
var _a, _b;
|
481
|
-
return __awaiter(this, void 0, void 0, function* () {
|
482
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
483
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extension-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
|
484
|
-
method: "PUT",
|
485
|
-
headers: {
|
486
|
-
Authorization: yield this._getAuthorizationHeader(),
|
487
|
-
"X-Fern-Language": "JavaScript",
|
488
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
489
|
-
"X-Fern-SDK-Version": "0.1.28",
|
490
|
-
"User-Agent": "@airtop/sdk/0.1.28",
|
491
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
492
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
493
|
-
},
|
494
|
-
contentType: "application/json",
|
495
|
-
requestType: "json",
|
496
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
497
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
498
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
499
|
-
});
|
500
|
-
if (_response.ok) {
|
501
|
-
return;
|
502
|
-
}
|
503
|
-
if (_response.error.reason === "status-code") {
|
504
|
-
throw new errors.AirtopError({
|
505
|
-
statusCode: _response.error.statusCode,
|
506
|
-
body: _response.error.body,
|
507
|
-
});
|
508
|
-
}
|
509
|
-
switch (_response.error.reason) {
|
510
|
-
case "non-json":
|
511
|
-
throw new errors.AirtopError({
|
512
|
-
statusCode: _response.error.statusCode,
|
513
|
-
body: _response.error.rawBody,
|
514
|
-
});
|
515
|
-
case "timeout":
|
516
|
-
throw new errors.AirtopTimeoutError();
|
517
|
-
case "unknown":
|
518
|
-
throw new errors.AirtopError({
|
519
|
-
message: _response.error.errorMessage,
|
520
|
-
});
|
521
|
-
}
|
522
|
-
});
|
523
|
-
}
|
524
471
|
/**
|
525
472
|
* @param {string} sessionId - ID of the session.
|
526
473
|
* @param {string} profileName - Name under which to save the profile.
|
@@ -539,8 +486,8 @@ class Sessions {
|
|
539
486
|
Authorization: yield this._getAuthorizationHeader(),
|
540
487
|
"X-Fern-Language": "JavaScript",
|
541
488
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
542
|
-
"X-Fern-SDK-Version": "0.1.
|
543
|
-
"User-Agent": "@airtop/sdk/0.1.
|
489
|
+
"X-Fern-SDK-Version": "0.1.30",
|
490
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
544
491
|
"X-Fern-Runtime": core.RUNTIME.type,
|
545
492
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
546
493
|
},
|
@@ -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.30",
|
72
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
148
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
213
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
275
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
339
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
340
340
|
"X-Fern-Runtime": core.RUNTIME.type,
|
341
341
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
342
342
|
},
|
@@ -400,8 +400,8 @@ class Windows {
|
|
400
400
|
Authorization: yield this._getAuthorizationHeader(),
|
401
401
|
"X-Fern-Language": "JavaScript",
|
402
402
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
403
|
-
"X-Fern-SDK-Version": "0.1.
|
404
|
-
"User-Agent": "@airtop/sdk/0.1.
|
403
|
+
"X-Fern-SDK-Version": "0.1.30",
|
404
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
405
405
|
"X-Fern-Runtime": core.RUNTIME.type,
|
406
406
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
407
407
|
},
|
@@ -465,8 +465,8 @@ class Windows {
|
|
465
465
|
Authorization: yield this._getAuthorizationHeader(),
|
466
466
|
"X-Fern-Language": "JavaScript",
|
467
467
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
468
|
-
"X-Fern-SDK-Version": "0.1.
|
469
|
-
"User-Agent": "@airtop/sdk/0.1.
|
468
|
+
"X-Fern-SDK-Version": "0.1.30",
|
469
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
470
470
|
"X-Fern-Runtime": core.RUNTIME.type,
|
471
471
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
472
472
|
},
|
@@ -532,8 +532,8 @@ class Windows {
|
|
532
532
|
Authorization: yield this._getAuthorizationHeader(),
|
533
533
|
"X-Fern-Language": "JavaScript",
|
534
534
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
535
|
-
"X-Fern-SDK-Version": "0.1.
|
536
|
-
"User-Agent": "@airtop/sdk/0.1.
|
535
|
+
"X-Fern-SDK-Version": "0.1.30",
|
536
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
537
537
|
"X-Fern-Runtime": core.RUNTIME.type,
|
538
538
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
539
539
|
},
|
@@ -599,8 +599,8 @@ class Windows {
|
|
599
599
|
Authorization: yield this._getAuthorizationHeader(),
|
600
600
|
"X-Fern-Language": "JavaScript",
|
601
601
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
602
|
-
"X-Fern-SDK-Version": "0.1.
|
603
|
-
"User-Agent": "@airtop/sdk/0.1.
|
602
|
+
"X-Fern-SDK-Version": "0.1.30",
|
603
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
604
604
|
"X-Fern-Runtime": core.RUNTIME.type,
|
605
605
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
606
606
|
},
|
@@ -664,8 +664,8 @@ class Windows {
|
|
664
664
|
Authorization: yield this._getAuthorizationHeader(),
|
665
665
|
"X-Fern-Language": "JavaScript",
|
666
666
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
667
|
-
"X-Fern-SDK-Version": "0.1.
|
668
|
-
"User-Agent": "@airtop/sdk/0.1.
|
667
|
+
"X-Fern-SDK-Version": "0.1.30",
|
668
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
669
669
|
"X-Fern-Runtime": core.RUNTIME.type,
|
670
670
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
671
671
|
},
|
@@ -727,8 +727,8 @@ class Windows {
|
|
727
727
|
Authorization: yield this._getAuthorizationHeader(),
|
728
728
|
"X-Fern-Language": "JavaScript",
|
729
729
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
730
|
-
"X-Fern-SDK-Version": "0.1.
|
731
|
-
"User-Agent": "@airtop/sdk/0.1.
|
730
|
+
"X-Fern-SDK-Version": "0.1.30",
|
731
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
732
732
|
"X-Fern-Runtime": core.RUNTIME.type,
|
733
733
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
734
734
|
},
|
@@ -792,8 +792,8 @@ class Windows {
|
|
792
792
|
Authorization: yield this._getAuthorizationHeader(),
|
793
793
|
"X-Fern-Language": "JavaScript",
|
794
794
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
795
|
-
"X-Fern-SDK-Version": "0.1.
|
796
|
-
"User-Agent": "@airtop/sdk/0.1.
|
795
|
+
"X-Fern-SDK-Version": "0.1.30",
|
796
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
797
797
|
"X-Fern-Runtime": core.RUNTIME.type,
|
798
798
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
799
799
|
},
|
@@ -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.30",
|
859
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
860
860
|
"X-Fern-Runtime": core.RUNTIME.type,
|
861
861
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
862
862
|
},
|
@@ -922,8 +922,8 @@ class Windows {
|
|
922
922
|
Authorization: yield this._getAuthorizationHeader(),
|
923
923
|
"X-Fern-Language": "JavaScript",
|
924
924
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
925
|
-
"X-Fern-SDK-Version": "0.1.
|
926
|
-
"User-Agent": "@airtop/sdk/0.1.
|
925
|
+
"X-Fern-SDK-Version": "0.1.30",
|
926
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
927
927
|
"X-Fern-Runtime": core.RUNTIME.type,
|
928
928
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
929
929
|
},
|
@@ -18,6 +18,8 @@ export interface SessionScrollHandlerRequestBody {
|
|
18
18
|
scrollToEdge?: Airtop.ScrollToEdgeConfig;
|
19
19
|
/** A natural language description of where to scroll (e.g. 'the search box', 'username field'). The interaction will be aborted if the target element cannot be found. If provided, scrollToEdge/scrollBy values will be ignored. */
|
20
20
|
scrollToElement?: string;
|
21
|
+
/** A natural language description of the scrollable area on the web page. This identifies the container or region that should be scrolled. If missing, the entire page will be scrolled. You can also describe a visible reference point inside the container. Note: This is different from scrollToElement, which specifies the target element to scroll to. The target may be located inside the scrollable area defined by scrollWithin. */
|
22
|
+
scrollWithin?: string;
|
21
23
|
/**
|
22
24
|
* A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
|
23
25
|
*
|
@@ -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.30",
|
88
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
91
91
|
},
|
@@ -75,15 +75,6 @@ export declare class Sessions {
|
|
75
75
|
* Get a session event stream for a given session ID
|
76
76
|
*/
|
77
77
|
events(id: string, request?: Airtop.SessionsEventsRequest, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
|
78
|
-
/**
|
79
|
-
* @param {string} sessionId - ID of the session.
|
80
|
-
* @param {string} extensionConfigurationName - Name under which to save the extension configuration.
|
81
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
82
|
-
*
|
83
|
-
* @example
|
84
|
-
* await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
|
85
|
-
*/
|
86
|
-
saveExtensionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
|
87
78
|
/**
|
88
79
|
* @param {string} sessionId - ID of the session.
|
89
80
|
* @param {string} profileName - Name under which to save the profile.
|
@@ -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.30",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
393
393
|
"X-Fern-Runtime": core.RUNTIME.type,
|
394
394
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
395
395
|
},
|
@@ -468,59 +468,6 @@ class Sessions {
|
|
468
468
|
}
|
469
469
|
});
|
470
470
|
}
|
471
|
-
/**
|
472
|
-
* @param {string} sessionId - ID of the session.
|
473
|
-
* @param {string} extensionConfigurationName - Name under which to save the extension configuration.
|
474
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
475
|
-
*
|
476
|
-
* @example
|
477
|
-
* await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
|
478
|
-
*/
|
479
|
-
saveExtensionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
|
480
|
-
var _a, _b;
|
481
|
-
return __awaiter(this, void 0, void 0, function* () {
|
482
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
483
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extension-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
|
484
|
-
method: "PUT",
|
485
|
-
headers: {
|
486
|
-
Authorization: yield this._getAuthorizationHeader(),
|
487
|
-
"X-Fern-Language": "JavaScript",
|
488
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
489
|
-
"X-Fern-SDK-Version": "0.1.28",
|
490
|
-
"User-Agent": "@airtop/sdk/0.1.28",
|
491
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
492
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
493
|
-
},
|
494
|
-
contentType: "application/json",
|
495
|
-
requestType: "json",
|
496
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
497
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
498
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
499
|
-
});
|
500
|
-
if (_response.ok) {
|
501
|
-
return;
|
502
|
-
}
|
503
|
-
if (_response.error.reason === "status-code") {
|
504
|
-
throw new errors.AirtopError({
|
505
|
-
statusCode: _response.error.statusCode,
|
506
|
-
body: _response.error.body,
|
507
|
-
});
|
508
|
-
}
|
509
|
-
switch (_response.error.reason) {
|
510
|
-
case "non-json":
|
511
|
-
throw new errors.AirtopError({
|
512
|
-
statusCode: _response.error.statusCode,
|
513
|
-
body: _response.error.rawBody,
|
514
|
-
});
|
515
|
-
case "timeout":
|
516
|
-
throw new errors.AirtopTimeoutError();
|
517
|
-
case "unknown":
|
518
|
-
throw new errors.AirtopError({
|
519
|
-
message: _response.error.errorMessage,
|
520
|
-
});
|
521
|
-
}
|
522
|
-
});
|
523
|
-
}
|
524
471
|
/**
|
525
472
|
* @param {string} sessionId - ID of the session.
|
526
473
|
* @param {string} profileName - Name under which to save the profile.
|
@@ -539,8 +486,8 @@ class Sessions {
|
|
539
486
|
Authorization: yield this._getAuthorizationHeader(),
|
540
487
|
"X-Fern-Language": "JavaScript",
|
541
488
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
542
|
-
"X-Fern-SDK-Version": "0.1.
|
543
|
-
"User-Agent": "@airtop/sdk/0.1.
|
489
|
+
"X-Fern-SDK-Version": "0.1.30",
|
490
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
544
491
|
"X-Fern-Runtime": core.RUNTIME.type,
|
545
492
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
546
493
|
},
|
@@ -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.30",
|
72
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
148
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
213
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
275
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
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.30",
|
339
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
340
340
|
"X-Fern-Runtime": core.RUNTIME.type,
|
341
341
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
342
342
|
},
|
@@ -400,8 +400,8 @@ class Windows {
|
|
400
400
|
Authorization: yield this._getAuthorizationHeader(),
|
401
401
|
"X-Fern-Language": "JavaScript",
|
402
402
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
403
|
-
"X-Fern-SDK-Version": "0.1.
|
404
|
-
"User-Agent": "@airtop/sdk/0.1.
|
403
|
+
"X-Fern-SDK-Version": "0.1.30",
|
404
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
405
405
|
"X-Fern-Runtime": core.RUNTIME.type,
|
406
406
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
407
407
|
},
|
@@ -465,8 +465,8 @@ class Windows {
|
|
465
465
|
Authorization: yield this._getAuthorizationHeader(),
|
466
466
|
"X-Fern-Language": "JavaScript",
|
467
467
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
468
|
-
"X-Fern-SDK-Version": "0.1.
|
469
|
-
"User-Agent": "@airtop/sdk/0.1.
|
468
|
+
"X-Fern-SDK-Version": "0.1.30",
|
469
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
470
470
|
"X-Fern-Runtime": core.RUNTIME.type,
|
471
471
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
472
472
|
},
|
@@ -532,8 +532,8 @@ class Windows {
|
|
532
532
|
Authorization: yield this._getAuthorizationHeader(),
|
533
533
|
"X-Fern-Language": "JavaScript",
|
534
534
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
535
|
-
"X-Fern-SDK-Version": "0.1.
|
536
|
-
"User-Agent": "@airtop/sdk/0.1.
|
535
|
+
"X-Fern-SDK-Version": "0.1.30",
|
536
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
537
537
|
"X-Fern-Runtime": core.RUNTIME.type,
|
538
538
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
539
539
|
},
|
@@ -599,8 +599,8 @@ class Windows {
|
|
599
599
|
Authorization: yield this._getAuthorizationHeader(),
|
600
600
|
"X-Fern-Language": "JavaScript",
|
601
601
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
602
|
-
"X-Fern-SDK-Version": "0.1.
|
603
|
-
"User-Agent": "@airtop/sdk/0.1.
|
602
|
+
"X-Fern-SDK-Version": "0.1.30",
|
603
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
604
604
|
"X-Fern-Runtime": core.RUNTIME.type,
|
605
605
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
606
606
|
},
|
@@ -664,8 +664,8 @@ class Windows {
|
|
664
664
|
Authorization: yield this._getAuthorizationHeader(),
|
665
665
|
"X-Fern-Language": "JavaScript",
|
666
666
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
667
|
-
"X-Fern-SDK-Version": "0.1.
|
668
|
-
"User-Agent": "@airtop/sdk/0.1.
|
667
|
+
"X-Fern-SDK-Version": "0.1.30",
|
668
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
669
669
|
"X-Fern-Runtime": core.RUNTIME.type,
|
670
670
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
671
671
|
},
|
@@ -727,8 +727,8 @@ class Windows {
|
|
727
727
|
Authorization: yield this._getAuthorizationHeader(),
|
728
728
|
"X-Fern-Language": "JavaScript",
|
729
729
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
730
|
-
"X-Fern-SDK-Version": "0.1.
|
731
|
-
"User-Agent": "@airtop/sdk/0.1.
|
730
|
+
"X-Fern-SDK-Version": "0.1.30",
|
731
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
732
732
|
"X-Fern-Runtime": core.RUNTIME.type,
|
733
733
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
734
734
|
},
|
@@ -792,8 +792,8 @@ class Windows {
|
|
792
792
|
Authorization: yield this._getAuthorizationHeader(),
|
793
793
|
"X-Fern-Language": "JavaScript",
|
794
794
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
795
|
-
"X-Fern-SDK-Version": "0.1.
|
796
|
-
"User-Agent": "@airtop/sdk/0.1.
|
795
|
+
"X-Fern-SDK-Version": "0.1.30",
|
796
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
797
797
|
"X-Fern-Runtime": core.RUNTIME.type,
|
798
798
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
799
799
|
},
|
@@ -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.30",
|
859
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
860
860
|
"X-Fern-Runtime": core.RUNTIME.type,
|
861
861
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
862
862
|
},
|
@@ -922,8 +922,8 @@ class Windows {
|
|
922
922
|
Authorization: yield this._getAuthorizationHeader(),
|
923
923
|
"X-Fern-Language": "JavaScript",
|
924
924
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
925
|
-
"X-Fern-SDK-Version": "0.1.
|
926
|
-
"User-Agent": "@airtop/sdk/0.1.
|
925
|
+
"X-Fern-SDK-Version": "0.1.30",
|
926
|
+
"User-Agent": "@airtop/sdk/0.1.30",
|
927
927
|
"X-Fern-Runtime": core.RUNTIME.type,
|
928
928
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
929
929
|
},
|
@@ -18,6 +18,8 @@ export interface SessionScrollHandlerRequestBody {
|
|
18
18
|
scrollToEdge?: Airtop.ScrollToEdgeConfig;
|
19
19
|
/** A natural language description of where to scroll (e.g. 'the search box', 'username field'). The interaction will be aborted if the target element cannot be found. If provided, scrollToEdge/scrollBy values will be ignored. */
|
20
20
|
scrollToElement?: string;
|
21
|
+
/** A natural language description of the scrollable area on the web page. This identifies the container or region that should be scrolled. If missing, the entire page will be scrolled. You can also describe a visible reference point inside the container. Note: This is different from scrollToElement, which specifies the target element to scroll to. The target may be located inside the scrollable area defined by scrollWithin. */
|
22
|
+
scrollWithin?: string;
|
21
23
|
/**
|
22
24
|
* A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
|
23
25
|
*
|
package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts
CHANGED
@@ -16,6 +16,7 @@ export declare namespace SessionScrollHandlerRequestBody {
|
|
16
16
|
scrollBy?: ScrollByConfig.Raw | null;
|
17
17
|
scrollToEdge?: ScrollToEdgeConfig.Raw | null;
|
18
18
|
scrollToElement?: string | null;
|
19
|
+
scrollWithin?: string | null;
|
19
20
|
timeThresholdSeconds?: number | null;
|
20
21
|
}
|
21
22
|
}
|
package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js
CHANGED
@@ -38,5 +38,6 @@ exports.SessionScrollHandlerRequestBody = core.serialization.object({
|
|
38
38
|
scrollBy: ScrollByConfig_1.ScrollByConfig.optional(),
|
39
39
|
scrollToEdge: ScrollToEdgeConfig_1.ScrollToEdgeConfig.optional(),
|
40
40
|
scrollToElement: core.serialization.string().optional(),
|
41
|
+
scrollWithin: core.serialization.string().optional(),
|
41
42
|
timeThresholdSeconds: core.serialization.number().optional(),
|
42
43
|
});
|
@@ -34,7 +34,7 @@ export declare class AirtopWindows extends WindowsClass {
|
|
34
34
|
* })
|
35
35
|
*/
|
36
36
|
promptContent(sessionId: string, windowId: string, request: Omit<Airtop.SessionPageQueryHandlerRequestBody, 'configuration'> & {
|
37
|
-
configuration?:
|
37
|
+
configuration?: Omit<Airtop.PageQueryConfig, 'outputSchema'> & {
|
38
38
|
outputSchema?: string | object;
|
39
39
|
};
|
40
40
|
}, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
@@ -50,7 +50,7 @@ export declare class AirtopWindows extends WindowsClass {
|
|
50
50
|
* })
|
51
51
|
*/
|
52
52
|
pageQuery(sessionId: string, windowId: string, request: Omit<Airtop.SessionPageQueryHandlerRequestBody, 'configuration'> & {
|
53
|
-
configuration?:
|
53
|
+
configuration?: Omit<Airtop.PageQueryConfig, 'outputSchema'> & {
|
54
54
|
outputSchema?: string | object;
|
55
55
|
};
|
56
56
|
}, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -1419,65 +1419,6 @@ await client.sessions.terminate("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
|
|
1419
1419
|
</dl>
|
1420
1420
|
</details>
|
1421
1421
|
|
1422
|
-
<details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">saveExtensionConfigurationOnTermination</a>(sessionId, extensionConfigurationName) -> void</code></summary>
|
1423
|
-
<dl>
|
1424
|
-
<dd>
|
1425
|
-
|
1426
|
-
#### 🔌 Usage
|
1427
|
-
|
1428
|
-
<dl>
|
1429
|
-
<dd>
|
1430
|
-
|
1431
|
-
<dl>
|
1432
|
-
<dd>
|
1433
|
-
|
1434
|
-
```typescript
|
1435
|
-
await client.sessions.saveExtensionConfigurationOnTermination(
|
1436
|
-
"6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
|
1437
|
-
"myExtensionConfiguration"
|
1438
|
-
);
|
1439
|
-
```
|
1440
|
-
|
1441
|
-
</dd>
|
1442
|
-
</dl>
|
1443
|
-
</dd>
|
1444
|
-
</dl>
|
1445
|
-
|
1446
|
-
#### ⚙️ Parameters
|
1447
|
-
|
1448
|
-
<dl>
|
1449
|
-
<dd>
|
1450
|
-
|
1451
|
-
<dl>
|
1452
|
-
<dd>
|
1453
|
-
|
1454
|
-
**sessionId:** `string` — ID of the session.
|
1455
|
-
|
1456
|
-
</dd>
|
1457
|
-
</dl>
|
1458
|
-
|
1459
|
-
<dl>
|
1460
|
-
<dd>
|
1461
|
-
|
1462
|
-
**extensionConfigurationName:** `string` — Name under which to save the extension configuration.
|
1463
|
-
|
1464
|
-
</dd>
|
1465
|
-
</dl>
|
1466
|
-
|
1467
|
-
<dl>
|
1468
|
-
<dd>
|
1469
|
-
|
1470
|
-
**requestOptions:** `Sessions.RequestOptions`
|
1471
|
-
|
1472
|
-
</dd>
|
1473
|
-
</dl>
|
1474
|
-
</dd>
|
1475
|
-
</dl>
|
1476
|
-
|
1477
|
-
</dd>
|
1478
|
-
</dl>
|
1479
|
-
</details>
|
1480
|
-
|
1481
1422
|
<details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">saveProfileOnTermination</a>(sessionId, profileName) -> void</code></summary>
|
1482
1423
|
<dl>
|
1483
1424
|
<dd>
|
package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts
CHANGED
@@ -16,6 +16,7 @@ export declare namespace SessionScrollHandlerRequestBody {
|
|
16
16
|
scrollBy?: ScrollByConfig.Raw | null;
|
17
17
|
scrollToEdge?: ScrollToEdgeConfig.Raw | null;
|
18
18
|
scrollToElement?: string | null;
|
19
|
+
scrollWithin?: string | null;
|
19
20
|
timeThresholdSeconds?: number | null;
|
20
21
|
}
|
21
22
|
}
|
@@ -38,5 +38,6 @@ exports.SessionScrollHandlerRequestBody = core.serialization.object({
|
|
38
38
|
scrollBy: ScrollByConfig_1.ScrollByConfig.optional(),
|
39
39
|
scrollToEdge: ScrollToEdgeConfig_1.ScrollToEdgeConfig.optional(),
|
40
40
|
scrollToElement: core.serialization.string().optional(),
|
41
|
+
scrollWithin: core.serialization.string().optional(),
|
41
42
|
timeThresholdSeconds: core.serialization.number().optional(),
|
42
43
|
});
|
@@ -34,7 +34,7 @@ export declare class AirtopWindows extends WindowsClass {
|
|
34
34
|
* })
|
35
35
|
*/
|
36
36
|
promptContent(sessionId: string, windowId: string, request: Omit<Airtop.SessionPageQueryHandlerRequestBody, 'configuration'> & {
|
37
|
-
configuration?:
|
37
|
+
configuration?: Omit<Airtop.PageQueryConfig, 'outputSchema'> & {
|
38
38
|
outputSchema?: string | object;
|
39
39
|
};
|
40
40
|
}, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
@@ -50,7 +50,7 @@ export declare class AirtopWindows extends WindowsClass {
|
|
50
50
|
* })
|
51
51
|
*/
|
52
52
|
pageQuery(sessionId: string, windowId: string, request: Omit<Airtop.SessionPageQueryHandlerRequestBody, 'configuration'> & {
|
53
|
-
configuration?:
|
53
|
+
configuration?: Omit<Airtop.PageQueryConfig, 'outputSchema'> & {
|
54
54
|
outputSchema?: string | object;
|
55
55
|
};
|
56
56
|
}, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
|