@airtop/sdk 0.1.9 → 0.1.12
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 +22 -6
- package/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +5 -1
- package/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +5 -1
- package/api/resources/sessions/client/Client.d.ts +2 -2
- package/api/resources/sessions/client/Client.js +23 -14
- package/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +13 -0
- package/api/resources/sessions/client/requests/SessionsEventsRequest.js +5 -0
- package/api/resources/sessions/client/requests/index.d.ts +1 -0
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -1
- package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +11 -0
- package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +5 -0
- package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +11 -0
- package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +5 -0
- package/api/resources/sessions/types/index.d.ts +2 -0
- package/api/resources/sessions/types/index.js +2 -0
- package/api/resources/windows/client/Client.js +24 -24
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +2 -0
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +2 -0
- package/api/types/BrowserWaitNavigationConfig.d.ts +10 -0
- package/api/types/BrowserWaitNavigationConfig.js +5 -0
- package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +13 -0
- package/api/types/BrowserWaitNavigationConfigWaitUntil.js +12 -0
- package/api/types/ClickConfig.d.ts +2 -0
- package/api/types/ErrorBody.d.ts +9 -0
- package/api/types/ErrorBody.js +5 -0
- package/api/types/ExternalProfileV1.d.ts +3 -1
- package/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
- package/api/types/SessionConfigV1.d.ts +4 -2
- package/api/types/SessionEventMessage.d.ts +17 -0
- package/api/types/SessionEventMessage.js +5 -0
- package/api/types/StatusMessage.d.ts +2 -0
- package/api/types/WindowEventMessage.d.ts +19 -0
- package/api/types/WindowEventMessage.js +5 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/api/resources/profiles/client/Client.js +22 -6
- package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +5 -1
- package/dist/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +5 -1
- package/dist/api/resources/sessions/client/Client.d.ts +2 -2
- package/dist/api/resources/sessions/client/Client.js +23 -14
- package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +13 -0
- package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.js +5 -0
- package/dist/api/resources/sessions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -1
- package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +11 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +5 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +11 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +5 -0
- package/dist/api/resources/sessions/types/index.d.ts +2 -0
- package/dist/api/resources/sessions/types/index.js +2 -0
- package/dist/api/resources/windows/client/Client.js +24 -24
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +2 -0
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +2 -0
- package/dist/api/types/BrowserWaitNavigationConfig.d.ts +10 -0
- package/dist/api/types/BrowserWaitNavigationConfig.js +5 -0
- package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +13 -0
- package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.js +12 -0
- package/dist/api/types/ClickConfig.d.ts +2 -0
- package/dist/api/types/ErrorBody.d.ts +9 -0
- package/dist/api/types/ErrorBody.js +5 -0
- package/dist/api/types/ExternalProfileV1.d.ts +3 -1
- package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
- package/dist/api/types/SessionConfigV1.d.ts +4 -2
- package/dist/api/types/SessionEventMessage.d.ts +17 -0
- package/dist/api/types/SessionEventMessage.js +5 -0
- package/dist/api/types/StatusMessage.d.ts +2 -0
- package/dist/api/types/WindowEventMessage.d.ts +19 -0
- package/dist/api/types/WindowEventMessage.js +5 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -1
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +15 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +36 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +15 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +36 -0
- package/dist/serialization/resources/sessions/types/index.d.ts +2 -0
- package/dist/serialization/resources/sessions/types/index.js +2 -0
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +1 -0
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +1 -0
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +1 -0
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +1 -0
- package/dist/serialization/types/BrowserWaitNavigationConfig.d.ts +14 -0
- package/dist/serialization/types/BrowserWaitNavigationConfig.js +35 -0
- package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +10 -0
- package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +31 -0
- package/dist/serialization/types/ClickConfig.d.ts +2 -0
- package/dist/serialization/types/ClickConfig.js +2 -0
- package/dist/serialization/types/ErrorBody.d.ts +13 -0
- package/dist/serialization/types/ErrorBody.js +34 -0
- package/dist/serialization/types/ExternalProfileV1.d.ts +1 -0
- package/dist/serialization/types/ExternalProfileV1.js +1 -0
- package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
- package/dist/serialization/types/SessionConfigV1.js +1 -0
- package/dist/serialization/types/SessionEventMessage.d.ts +18 -0
- package/dist/serialization/types/SessionEventMessage.js +39 -0
- package/dist/serialization/types/StatusMessage.d.ts +1 -0
- package/dist/serialization/types/StatusMessage.js +1 -0
- package/dist/serialization/types/WindowEventMessage.d.ts +19 -0
- package/dist/serialization/types/WindowEventMessage.js +40 -0
- package/dist/serialization/types/index.d.ts +5 -0
- package/dist/serialization/types/index.js +5 -0
- package/dist/utils/batch-operate/SessionQueue.d.ts +1 -1
- package/dist/utils/batch-operate/WindowQueue.d.ts +1 -1
- package/dist/utils/batch-operate/batch-util.d.ts +1 -1
- package/dist/utils/batch-operate/types.d.ts +1 -1
- package/dist/wrapper/AirtopSessions.js +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -1
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +15 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +36 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +15 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +36 -0
- package/serialization/resources/sessions/types/index.d.ts +2 -0
- package/serialization/resources/sessions/types/index.js +2 -0
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +1 -0
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +1 -0
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +1 -0
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +1 -0
- package/serialization/types/BrowserWaitNavigationConfig.d.ts +14 -0
- package/serialization/types/BrowserWaitNavigationConfig.js +35 -0
- package/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +10 -0
- package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +31 -0
- package/serialization/types/ClickConfig.d.ts +2 -0
- package/serialization/types/ClickConfig.js +2 -0
- package/serialization/types/ErrorBody.d.ts +13 -0
- package/serialization/types/ErrorBody.js +34 -0
- package/serialization/types/ExternalProfileV1.d.ts +1 -0
- package/serialization/types/ExternalProfileV1.js +1 -0
- package/serialization/types/SessionConfigV1.d.ts +1 -0
- package/serialization/types/SessionConfigV1.js +1 -0
- package/serialization/types/SessionEventMessage.d.ts +18 -0
- package/serialization/types/SessionEventMessage.js +39 -0
- package/serialization/types/StatusMessage.d.ts +1 -0
- package/serialization/types/StatusMessage.js +1 -0
- package/serialization/types/WindowEventMessage.d.ts +19 -0
- package/serialization/types/WindowEventMessage.js +40 -0
- package/serialization/types/index.d.ts +5 -0
- package/serialization/types/index.js +5 -0
- package/utils/batch-operate/SessionQueue.d.ts +1 -1
- package/utils/batch-operate/WindowQueue.d.ts +1 -1
- package/utils/batch-operate/batch-util.d.ts +1 -1
- package/utils/batch-operate/types.d.ts +1 -1
- package/wrapper/AirtopSessions.js +1 -1
@@ -60,7 +60,7 @@ class Profiles {
|
|
60
60
|
get(request = {}, requestOptions) {
|
61
61
|
var _a, _b;
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
63
|
-
const { profileIds } = request;
|
63
|
+
const { profileIds, profileNames } = request;
|
64
64
|
const _queryParams = {};
|
65
65
|
if (profileIds != null) {
|
66
66
|
if (Array.isArray(profileIds)) {
|
@@ -70,6 +70,14 @@ class Profiles {
|
|
70
70
|
_queryParams["profileIds"] = profileIds;
|
71
71
|
}
|
72
72
|
}
|
73
|
+
if (profileNames != null) {
|
74
|
+
if (Array.isArray(profileNames)) {
|
75
|
+
_queryParams["profileNames"] = profileNames.map((item) => item);
|
76
|
+
}
|
77
|
+
else {
|
78
|
+
_queryParams["profileNames"] = profileNames;
|
79
|
+
}
|
80
|
+
}
|
73
81
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
74
82
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, "profiles"),
|
75
83
|
method: "GET",
|
@@ -77,8 +85,8 @@ class Profiles {
|
|
77
85
|
Authorization: yield this._getAuthorizationHeader(),
|
78
86
|
"X-Fern-Language": "JavaScript",
|
79
87
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
80
|
-
"X-Fern-SDK-Version": "0.1.
|
81
|
-
"User-Agent": "@airtop/sdk/0.1.
|
88
|
+
"X-Fern-SDK-Version": "0.1.12",
|
89
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
82
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
83
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
84
92
|
},
|
@@ -131,7 +139,7 @@ class Profiles {
|
|
131
139
|
delete(request = {}, requestOptions) {
|
132
140
|
var _a, _b;
|
133
141
|
return __awaiter(this, void 0, void 0, function* () {
|
134
|
-
const { profileIds } = request;
|
142
|
+
const { profileIds, profileNames } = request;
|
135
143
|
const _queryParams = {};
|
136
144
|
if (profileIds != null) {
|
137
145
|
if (Array.isArray(profileIds)) {
|
@@ -141,6 +149,14 @@ class Profiles {
|
|
141
149
|
_queryParams["profileIds"] = profileIds;
|
142
150
|
}
|
143
151
|
}
|
152
|
+
if (profileNames != null) {
|
153
|
+
if (Array.isArray(profileNames)) {
|
154
|
+
_queryParams["profileNames"] = profileNames.map((item) => item);
|
155
|
+
}
|
156
|
+
else {
|
157
|
+
_queryParams["profileNames"] = profileNames;
|
158
|
+
}
|
159
|
+
}
|
144
160
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
145
161
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, "profiles"),
|
146
162
|
method: "DELETE",
|
@@ -148,8 +164,8 @@ class Profiles {
|
|
148
164
|
Authorization: yield this._getAuthorizationHeader(),
|
149
165
|
"X-Fern-Language": "JavaScript",
|
150
166
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
151
|
-
"X-Fern-SDK-Version": "0.1.
|
152
|
-
"User-Agent": "@airtop/sdk/0.1.
|
167
|
+
"X-Fern-SDK-Version": "0.1.12",
|
168
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
153
169
|
"X-Fern-Runtime": core.RUNTIME.type,
|
154
170
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
155
171
|
},
|
@@ -7,7 +7,11 @@
|
|
7
7
|
*/
|
8
8
|
export interface ProfilesDeleteRequest {
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* DEPRECATED. Use profileNames.
|
11
11
|
*/
|
12
12
|
profileIds?: string | string[];
|
13
|
+
/**
|
14
|
+
* A comma-separated list of profile names.
|
15
|
+
*/
|
16
|
+
profileNames?: string | string[];
|
13
17
|
}
|
@@ -7,7 +7,11 @@
|
|
7
7
|
*/
|
8
8
|
export interface ProfilesGetRequest {
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* DEPRECATED. Use profileNames.
|
11
11
|
*/
|
12
12
|
profileIds?: string | string[];
|
13
|
+
/**
|
14
|
+
* A comma-separated list of profile names.
|
15
|
+
*/
|
16
|
+
profileNames?: string | string[];
|
13
17
|
}
|
@@ -74,9 +74,9 @@ export declare class Sessions {
|
|
74
74
|
/**
|
75
75
|
* Get a session event stream for a given session ID
|
76
76
|
*/
|
77
|
-
events(id: string, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
|
77
|
+
events(id: string, request?: Airtop.SessionsEventsRequest, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
|
78
78
|
/**
|
79
|
-
* @param {string} sessionId - ID of the session
|
79
|
+
* @param {string} sessionId - ID of the session.
|
80
80
|
* @param {string} profileName - Name under which to save the profile.
|
81
81
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
82
82
|
*
|
@@ -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.12",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
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.12",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
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.12",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
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.12",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
337
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
338
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
339
339
|
},
|
@@ -370,9 +370,17 @@ class Sessions {
|
|
370
370
|
/**
|
371
371
|
* Get a session event stream for a given session ID
|
372
372
|
*/
|
373
|
-
events(id, requestOptions) {
|
373
|
+
events(id, request = {}, requestOptions) {
|
374
374
|
var _a, _b;
|
375
375
|
return __awaiter(this, void 0, void 0, function* () {
|
376
|
+
const { lastEventId, all } = request;
|
377
|
+
const _queryParams = {};
|
378
|
+
if (lastEventId != null) {
|
379
|
+
_queryParams["lastEventId"] = lastEventId.toString();
|
380
|
+
}
|
381
|
+
if (all != null) {
|
382
|
+
_queryParams["all"] = all.toString();
|
383
|
+
}
|
376
384
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
377
385
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(id)}/events`),
|
378
386
|
method: "GET",
|
@@ -380,12 +388,13 @@ class Sessions {
|
|
380
388
|
Authorization: yield this._getAuthorizationHeader(),
|
381
389
|
"X-Fern-Language": "JavaScript",
|
382
390
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
383
|
-
"X-Fern-SDK-Version": "0.1.
|
384
|
-
"User-Agent": "@airtop/sdk/0.1.
|
391
|
+
"X-Fern-SDK-Version": "0.1.12",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
385
393
|
"X-Fern-Runtime": core.RUNTIME.type,
|
386
394
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
387
395
|
},
|
388
396
|
contentType: "application/json",
|
397
|
+
queryParameters: _queryParams,
|
389
398
|
requestType: "json",
|
390
399
|
responseType: "sse",
|
391
400
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -460,7 +469,7 @@ class Sessions {
|
|
460
469
|
});
|
461
470
|
}
|
462
471
|
/**
|
463
|
-
* @param {string} sessionId - ID of the session
|
472
|
+
* @param {string} sessionId - ID of the session.
|
464
473
|
* @param {string} profileName - Name under which to save the profile.
|
465
474
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
466
475
|
*
|
@@ -477,8 +486,8 @@ class Sessions {
|
|
477
486
|
Authorization: yield this._getAuthorizationHeader(),
|
478
487
|
"X-Fern-Language": "JavaScript",
|
479
488
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
480
|
-
"X-Fern-SDK-Version": "0.1.
|
481
|
-
"User-Agent": "@airtop/sdk/0.1.
|
489
|
+
"X-Fern-SDK-Version": "0.1.12",
|
490
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
482
491
|
"X-Fern-Runtime": core.RUNTIME.type,
|
483
492
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
484
493
|
},
|
@@ -5,7 +5,7 @@ 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.Status | Airtop.SessionsEventsResponse.Error_;
|
8
|
+
export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
|
9
9
|
export declare namespace SessionsEventsResponse {
|
10
10
|
interface Status extends Airtop.SessionsEventsResponseStatus {
|
11
11
|
event: "status";
|
@@ -13,4 +13,10 @@ export declare namespace SessionsEventsResponse {
|
|
13
13
|
interface Error_ extends Airtop.SessionsEventsResponseError {
|
14
14
|
event: "error";
|
15
15
|
}
|
16
|
+
interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
|
17
|
+
event: "windowEvent";
|
18
|
+
}
|
19
|
+
interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
|
20
|
+
event: "sessionEvent";
|
21
|
+
}
|
16
22
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../../../index";
|
5
|
+
export interface SessionsEventsResponseSessionEvent {
|
6
|
+
data: Airtop.SessionEventMessage;
|
7
|
+
/** The event ID. */
|
8
|
+
id?: number;
|
9
|
+
/** The retry time in milliseconds. */
|
10
|
+
retry?: number;
|
11
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../../../index";
|
5
|
+
export interface SessionsEventsResponseWindowEvent {
|
6
|
+
data: Airtop.WindowEventMessage;
|
7
|
+
/** The event ID. */
|
8
|
+
id?: number;
|
9
|
+
/** The retry time in milliseconds. */
|
10
|
+
retry?: number;
|
11
|
+
}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export * from "./SessionsListRequestStatus";
|
2
2
|
export * from "./SessionsEventsResponseStatus";
|
3
3
|
export * from "./SessionsEventsResponseError";
|
4
|
+
export * from "./SessionsEventsResponseWindowEvent";
|
5
|
+
export * from "./SessionsEventsResponseSessionEvent";
|
4
6
|
export * from "./SessionsEventsResponse";
|
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./SessionsListRequestStatus"), exports);
|
18
18
|
__exportStar(require("./SessionsEventsResponseStatus"), exports);
|
19
19
|
__exportStar(require("./SessionsEventsResponseError"), exports);
|
20
|
+
__exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
|
21
|
+
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
20
22
|
__exportStar(require("./SessionsEventsResponse"), exports);
|
@@ -66,8 +66,8 @@ class Windows {
|
|
66
66
|
Authorization: yield this._getAuthorizationHeader(),
|
67
67
|
"X-Fern-Language": "JavaScript",
|
68
68
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
69
|
-
"X-Fern-SDK-Version": "0.1.
|
70
|
-
"User-Agent": "@airtop/sdk/0.1.
|
69
|
+
"X-Fern-SDK-Version": "0.1.12",
|
70
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
71
71
|
"X-Fern-Runtime": core.RUNTIME.type,
|
72
72
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
73
73
|
},
|
@@ -140,8 +140,8 @@ class Windows {
|
|
140
140
|
Authorization: yield this._getAuthorizationHeader(),
|
141
141
|
"X-Fern-Language": "JavaScript",
|
142
142
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
143
|
-
"X-Fern-SDK-Version": "0.1.
|
144
|
-
"User-Agent": "@airtop/sdk/0.1.
|
143
|
+
"X-Fern-SDK-Version": "0.1.12",
|
144
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
145
145
|
"X-Fern-Runtime": core.RUNTIME.type,
|
146
146
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
147
147
|
},
|
@@ -203,8 +203,8 @@ class Windows {
|
|
203
203
|
Authorization: yield this._getAuthorizationHeader(),
|
204
204
|
"X-Fern-Language": "JavaScript",
|
205
205
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
206
|
-
"X-Fern-SDK-Version": "0.1.
|
207
|
-
"User-Agent": "@airtop/sdk/0.1.
|
206
|
+
"X-Fern-SDK-Version": "0.1.12",
|
207
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
208
208
|
"X-Fern-Runtime": core.RUNTIME.type,
|
209
209
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
210
210
|
},
|
@@ -263,8 +263,8 @@ class Windows {
|
|
263
263
|
Authorization: yield this._getAuthorizationHeader(),
|
264
264
|
"X-Fern-Language": "JavaScript",
|
265
265
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
266
|
-
"X-Fern-SDK-Version": "0.1.
|
267
|
-
"User-Agent": "@airtop/sdk/0.1.
|
266
|
+
"X-Fern-SDK-Version": "0.1.12",
|
267
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
268
268
|
"X-Fern-Runtime": core.RUNTIME.type,
|
269
269
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
270
270
|
},
|
@@ -325,8 +325,8 @@ class Windows {
|
|
325
325
|
Authorization: yield this._getAuthorizationHeader(),
|
326
326
|
"X-Fern-Language": "JavaScript",
|
327
327
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
328
|
-
"X-Fern-SDK-Version": "0.1.
|
329
|
-
"User-Agent": "@airtop/sdk/0.1.
|
328
|
+
"X-Fern-SDK-Version": "0.1.12",
|
329
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
330
330
|
"X-Fern-Runtime": core.RUNTIME.type,
|
331
331
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
332
332
|
},
|
@@ -386,8 +386,8 @@ class Windows {
|
|
386
386
|
Authorization: yield this._getAuthorizationHeader(),
|
387
387
|
"X-Fern-Language": "JavaScript",
|
388
388
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
389
|
-
"X-Fern-SDK-Version": "0.1.
|
390
|
-
"User-Agent": "@airtop/sdk/0.1.
|
389
|
+
"X-Fern-SDK-Version": "0.1.12",
|
390
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
391
391
|
"X-Fern-Runtime": core.RUNTIME.type,
|
392
392
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
393
393
|
},
|
@@ -449,8 +449,8 @@ class Windows {
|
|
449
449
|
Authorization: yield this._getAuthorizationHeader(),
|
450
450
|
"X-Fern-Language": "JavaScript",
|
451
451
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
452
|
-
"X-Fern-SDK-Version": "0.1.
|
453
|
-
"User-Agent": "@airtop/sdk/0.1.
|
452
|
+
"X-Fern-SDK-Version": "0.1.12",
|
453
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
454
454
|
"X-Fern-Runtime": core.RUNTIME.type,
|
455
455
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
456
456
|
},
|
@@ -512,8 +512,8 @@ class Windows {
|
|
512
512
|
Authorization: yield this._getAuthorizationHeader(),
|
513
513
|
"X-Fern-Language": "JavaScript",
|
514
514
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
515
|
-
"X-Fern-SDK-Version": "0.1.
|
516
|
-
"User-Agent": "@airtop/sdk/0.1.
|
515
|
+
"X-Fern-SDK-Version": "0.1.12",
|
516
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
517
517
|
"X-Fern-Runtime": core.RUNTIME.type,
|
518
518
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
519
519
|
},
|
@@ -579,8 +579,8 @@ class Windows {
|
|
579
579
|
Authorization: yield this._getAuthorizationHeader(),
|
580
580
|
"X-Fern-Language": "JavaScript",
|
581
581
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
582
|
-
"X-Fern-SDK-Version": "0.1.
|
583
|
-
"User-Agent": "@airtop/sdk/0.1.
|
582
|
+
"X-Fern-SDK-Version": "0.1.12",
|
583
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
584
584
|
"X-Fern-Runtime": core.RUNTIME.type,
|
585
585
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
586
586
|
},
|
@@ -642,8 +642,8 @@ class Windows {
|
|
642
642
|
Authorization: yield this._getAuthorizationHeader(),
|
643
643
|
"X-Fern-Language": "JavaScript",
|
644
644
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
645
|
-
"X-Fern-SDK-Version": "0.1.
|
646
|
-
"User-Agent": "@airtop/sdk/0.1.
|
645
|
+
"X-Fern-SDK-Version": "0.1.12",
|
646
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
647
647
|
"X-Fern-Runtime": core.RUNTIME.type,
|
648
648
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
649
649
|
},
|
@@ -705,8 +705,8 @@ class Windows {
|
|
705
705
|
Authorization: yield this._getAuthorizationHeader(),
|
706
706
|
"X-Fern-Language": "JavaScript",
|
707
707
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
708
|
-
"X-Fern-SDK-Version": "0.1.
|
709
|
-
"User-Agent": "@airtop/sdk/0.1.
|
708
|
+
"X-Fern-SDK-Version": "0.1.12",
|
709
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
710
710
|
"X-Fern-Runtime": core.RUNTIME.type,
|
711
711
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
712
712
|
},
|
@@ -770,8 +770,8 @@ class Windows {
|
|
770
770
|
Authorization: yield this._getAuthorizationHeader(),
|
771
771
|
"X-Fern-Language": "JavaScript",
|
772
772
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
773
|
-
"X-Fern-SDK-Version": "0.1.
|
774
|
-
"User-Agent": "@airtop/sdk/0.1.
|
773
|
+
"X-Fern-SDK-Version": "0.1.12",
|
774
|
+
"User-Agent": "@airtop/sdk/0.1.12",
|
775
775
|
"X-Fern-Runtime": core.RUNTIME.type,
|
776
776
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
777
777
|
},
|
@@ -22,4 +22,6 @@ export interface SessionClickHandlerRequestBody {
|
|
22
22
|
* This setting does not extend the maximum session duration provided at the time of session creation.
|
23
23
|
*/
|
24
24
|
timeThresholdSeconds?: number;
|
25
|
+
/** If true, Airtop AI will wait for the navigation to complete after clicking the element. */
|
26
|
+
waitForNavigation?: boolean;
|
25
27
|
}
|
@@ -26,4 +26,6 @@ export interface SessionTypeHandlerRequestBody {
|
|
26
26
|
* This setting does not extend the maximum session duration provided at the time of session creation.
|
27
27
|
*/
|
28
28
|
timeThresholdSeconds?: number;
|
29
|
+
/** If true, Airtop AI will wait for the navigation to complete after clicking the element. */
|
30
|
+
waitForNavigation?: boolean;
|
29
31
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface BrowserWaitNavigationConfig {
|
6
|
+
/** The maximum time to wait for the navigation to complete, in seconds. Defaults to 30 (30 seconds). */
|
7
|
+
timeoutSeconds?: number;
|
8
|
+
/** The condition to wait for the navigation to complete. Defaults to 'load'. */
|
9
|
+
waitUntil?: Airtop.BrowserWaitNavigationConfigWaitUntil;
|
10
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* The condition to wait for the navigation to complete. Defaults to 'load'.
|
6
|
+
*/
|
7
|
+
export declare type BrowserWaitNavigationConfigWaitUntil = "load" | "domcontentloaded" | "networkidle0" | "networkidle2";
|
8
|
+
export declare const BrowserWaitNavigationConfigWaitUntil: {
|
9
|
+
readonly Load: "load";
|
10
|
+
readonly Domcontentloaded: "domcontentloaded";
|
11
|
+
readonly Networkidle0: "networkidle0";
|
12
|
+
readonly Networkidle2: "networkidle2";
|
13
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.BrowserWaitNavigationConfigWaitUntil = void 0;
|
7
|
+
exports.BrowserWaitNavigationConfigWaitUntil = {
|
8
|
+
Load: "load",
|
9
|
+
Domcontentloaded: "domcontentloaded",
|
10
|
+
Networkidle0: "networkidle0",
|
11
|
+
Networkidle2: "networkidle2",
|
12
|
+
};
|
@@ -5,4 +5,6 @@ import * as Airtop from "../index";
|
|
5
5
|
export interface ClickConfig {
|
6
6
|
/** Optional configuration for visual analysis when locating specified content. */
|
7
7
|
visualAnalysis?: Airtop.VisualAnalysisConfig;
|
8
|
+
/** Optional configuration for waiting for navigation to complete after clicking the element. */
|
9
|
+
waitForNavigationConfig?: Airtop.BrowserWaitNavigationConfig;
|
8
10
|
}
|
@@ -2,8 +2,10 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
export interface ExternalProfileV1 {
|
5
|
-
/**
|
5
|
+
/** DEPRECATED. Use profileName. */
|
6
6
|
profileId: string;
|
7
|
+
/** Name of the profile. */
|
8
|
+
profileName: string;
|
7
9
|
/** DEPRECATED. */
|
8
10
|
status?: string;
|
9
11
|
}
|
@@ -19,7 +19,7 @@ export interface ExternalSessionWithConnectionInfo {
|
|
19
19
|
id: string;
|
20
20
|
/** Date of the last activity. */
|
21
21
|
lastActivity?: Date;
|
22
|
-
/** Id of a newly persisted profile. */
|
22
|
+
/** Id of a newly persisted profile. DEPRECATED: Use profileName. */
|
23
23
|
profileId?: string;
|
24
24
|
/** Session status. */
|
25
25
|
status: string;
|
@@ -3,12 +3,14 @@
|
|
3
3
|
*/
|
4
4
|
import * as Airtop from "../index";
|
5
5
|
export interface SessionConfigV1 {
|
6
|
-
/**
|
6
|
+
/** Deprecated: Use profileName instead. */
|
7
7
|
baseProfileId?: string;
|
8
8
|
/** - */
|
9
9
|
extensionIds?: string[];
|
10
|
-
/**
|
10
|
+
/** Deprecated: use Save Profile On Termination API instead. */
|
11
11
|
persistProfile?: boolean;
|
12
|
+
/** Name of a profile to load into the session. */
|
13
|
+
profileName?: string;
|
12
14
|
/** Proxy configuration. */
|
13
15
|
proxy?: Airtop.SessionConfigV1Proxy;
|
14
16
|
/** Max length of session in minutes, after which it will terminate if not already deleted. */
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface SessionEventMessage {
|
6
|
+
/** Error message */
|
7
|
+
error?: Airtop.ErrorBody;
|
8
|
+
/** Event name */
|
9
|
+
event: string;
|
10
|
+
eventData?: unknown;
|
11
|
+
/** Event ID */
|
12
|
+
eventId?: number;
|
13
|
+
/** Date and Time of the event */
|
14
|
+
eventTime: Date;
|
15
|
+
/** ID of the session */
|
16
|
+
id: string;
|
17
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface WindowEventMessage {
|
6
|
+
/** Error message */
|
7
|
+
error?: Airtop.ErrorBody;
|
8
|
+
/** Event name */
|
9
|
+
event: string;
|
10
|
+
eventData?: unknown;
|
11
|
+
/** Event ID */
|
12
|
+
eventId?: number;
|
13
|
+
/** Date and Time of the event */
|
14
|
+
eventTime: Date;
|
15
|
+
/** ID of the session */
|
16
|
+
id: string;
|
17
|
+
/** Window ID */
|
18
|
+
windowId: string;
|
19
|
+
}
|