@airtop/sdk 0.1.31-beta0 → 0.1.31-beta2
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/automations/client/Client.js +8 -8
- package/api/resources/extensionConfigurations/client/Client.js +2 -2
- package/api/resources/profiles/client/Client.js +2 -2
- package/api/resources/requests/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.d.ts +8 -4
- package/api/resources/windows/client/Client.js +60 -56
- package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +5 -5
- package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +5 -5
- package/api/types/IntervalMonitorConfig.d.ts +1 -1
- package/api/types/MonitorConfig.d.ts +1 -5
- package/api/types/index.d.ts +0 -2
- package/api/types/index.js +0 -2
- package/dist/api/resources/automations/client/Client.js +8 -8
- package/dist/api/resources/extensionConfigurations/client/Client.js +2 -2
- package/dist/api/resources/profiles/client/Client.js +2 -2
- package/dist/api/resources/requests/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.d.ts +8 -4
- package/dist/api/resources/windows/client/Client.js +60 -56
- package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +5 -5
- package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +5 -5
- package/dist/api/types/IntervalMonitorConfig.d.ts +1 -1
- package/dist/api/types/MonitorConfig.d.ts +1 -5
- package/dist/api/types/index.d.ts +0 -2
- package/dist/api/types/index.js +0 -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/resources/windows/client/requests/AsyncMonitorRequest.d.ts +1 -2
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +1 -2
- package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +1 -2
- package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +1 -2
- package/dist/serialization/types/MonitorConfig.d.ts +0 -4
- package/dist/serialization/types/MonitorConfig.js +0 -4
- package/dist/serialization/types/index.d.ts +0 -2
- package/dist/serialization/types/index.js +0 -2
- package/dist/wrapper/AirtopClient.d.ts +3 -0
- package/dist/wrapper/AirtopClient.js +5 -0
- package/dist/wrapper/AirtopRequests.d.ts +18 -0
- package/dist/wrapper/AirtopRequests.js +48 -0
- package/dist/wrapper/AirtopWindows.d.ts +10 -10
- package/dist/wrapper/AirtopWindows.js +17 -17
- package/package.json +3 -2
- package/reference.md +6 -2
- 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/resources/windows/client/requests/AsyncMonitorRequest.d.ts +1 -2
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +1 -2
- package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +1 -2
- package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +1 -2
- package/serialization/types/MonitorConfig.d.ts +0 -4
- package/serialization/types/MonitorConfig.js +0 -4
- package/serialization/types/index.d.ts +0 -2
- package/serialization/types/index.js +0 -2
- package/wrapper/AirtopClient.d.ts +3 -0
- package/wrapper/AirtopClient.js +5 -0
- package/wrapper/AirtopRequests.d.ts +18 -0
- package/wrapper/AirtopRequests.js +48 -0
- package/wrapper/AirtopWindows.d.ts +10 -10
- package/wrapper/AirtopWindows.js +17 -17
- package/api/types/BrowserWaitSelectorConfig.d.ts +0 -11
- package/api/types/BrowserWaitSelectorConfig.js +0 -5
- package/api/types/MonitorConfigMonitorType.d.ts +0 -11
- package/api/types/MonitorConfigMonitorType.js +0 -10
- package/dist/api/types/BrowserWaitSelectorConfig.d.ts +0 -11
- package/dist/api/types/BrowserWaitSelectorConfig.js +0 -5
- package/dist/api/types/MonitorConfigMonitorType.d.ts +0 -11
- package/dist/api/types/MonitorConfigMonitorType.js +0 -10
- package/dist/serialization/types/BrowserWaitSelectorConfig.d.ts +0 -14
- package/dist/serialization/types/BrowserWaitSelectorConfig.js +0 -35
- package/dist/serialization/types/MonitorConfigMonitorType.d.ts +0 -10
- package/dist/serialization/types/MonitorConfigMonitorType.js +0 -31
- package/serialization/types/BrowserWaitSelectorConfig.d.ts +0 -14
- package/serialization/types/BrowserWaitSelectorConfig.js +0 -35
- package/serialization/types/MonitorConfigMonitorType.d.ts +0 -10
- package/serialization/types/MonitorConfigMonitorType.js +0 -31
package/api/types/index.js
CHANGED
@@ -21,7 +21,6 @@ __exportStar(require("./AsyncSessionAiResponseEnvelope"), exports);
|
|
21
21
|
__exportStar(require("./AutomationOutput"), exports);
|
22
22
|
__exportStar(require("./BrowserWaitNavigationConfigWaitUntil"), exports);
|
23
23
|
__exportStar(require("./BrowserWaitNavigationConfig"), exports);
|
24
|
-
__exportStar(require("./BrowserWaitSelectorConfig"), exports);
|
25
24
|
__exportStar(require("./ClickConfigClickType"), exports);
|
26
25
|
__exportStar(require("./ClickConfig"), exports);
|
27
26
|
__exportStar(require("./ClientProvidedResponseMetadata"), exports);
|
@@ -43,7 +42,6 @@ __exportStar(require("./Issue"), exports);
|
|
43
42
|
__exportStar(require("./ListAutomationsOutput"), exports);
|
44
43
|
__exportStar(require("./MicroInteractionConfig"), exports);
|
45
44
|
__exportStar(require("./MonitorConfigIncludeVisualAnalysis"), exports);
|
46
|
-
__exportStar(require("./MonitorConfigMonitorType"), exports);
|
47
45
|
__exportStar(require("./MonitorConfig"), exports);
|
48
46
|
__exportStar(require("./OperationOutcome"), exports);
|
49
47
|
__exportStar(require("./OperationOutcomeResponse"), exports);
|
@@ -67,8 +67,8 @@ class Automations {
|
|
67
67
|
Authorization: yield this._getAuthorizationHeader(),
|
68
68
|
"X-Fern-Language": "JavaScript",
|
69
69
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
70
|
-
"X-Fern-SDK-Version": "0.1.31-
|
71
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
70
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
71
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
74
74
|
},
|
@@ -137,8 +137,8 @@ class Automations {
|
|
137
137
|
Authorization: yield this._getAuthorizationHeader(),
|
138
138
|
"X-Fern-Language": "JavaScript",
|
139
139
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
140
|
-
"X-Fern-SDK-Version": "0.1.31-
|
141
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
140
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
141
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
142
142
|
"X-Fern-Runtime": core.RUNTIME.type,
|
143
143
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
144
144
|
},
|
@@ -249,8 +249,8 @@ class Automations {
|
|
249
249
|
Authorization: yield this._getAuthorizationHeader(),
|
250
250
|
"X-Fern-Language": "JavaScript",
|
251
251
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
252
|
-
"X-Fern-SDK-Version": "0.1.31-
|
253
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
252
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
253
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
254
254
|
"X-Fern-Runtime": core.RUNTIME.type,
|
255
255
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
256
256
|
},
|
@@ -358,8 +358,8 @@ class Automations {
|
|
358
358
|
Authorization: yield this._getAuthorizationHeader(),
|
359
359
|
"X-Fern-Language": "JavaScript",
|
360
360
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
361
|
-
"X-Fern-SDK-Version": "0.1.31-
|
362
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
361
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
362
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
363
363
|
"X-Fern-Runtime": core.RUNTIME.type,
|
364
364
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
365
365
|
},
|
@@ -72,8 +72,8 @@ class ExtensionConfigurations {
|
|
72
72
|
Authorization: yield this._getAuthorizationHeader(),
|
73
73
|
"X-Fern-Language": "JavaScript",
|
74
74
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
75
|
-
"X-Fern-SDK-Version": "0.1.31-
|
76
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
75
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
76
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
77
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
78
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
79
79
|
},
|
@@ -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.31-
|
88
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
87
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
88
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
91
91
|
},
|
@@ -65,8 +65,8 @@ class Requests {
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
66
66
|
"X-Fern-Language": "JavaScript",
|
67
67
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
68
|
-
"X-Fern-SDK-Version": "0.1.31-
|
69
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
68
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
69
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
72
72
|
},
|
@@ -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.31-
|
98
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
97
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
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.31-
|
184
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
183
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
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.31-
|
249
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
248
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
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.31-
|
336
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
335
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
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.31-
|
392
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
391
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
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.31-
|
490
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
489
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
490
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
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.31-
|
543
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
542
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
543
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
544
544
|
"X-Fern-Runtime": core.RUNTIME.type,
|
545
545
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
546
546
|
},
|
@@ -5,8 +5,11 @@ 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.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent;
|
9
9
|
export declare namespace SessionsEventsResponse {
|
10
|
+
interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
|
11
|
+
event: "sessionEvent";
|
12
|
+
}
|
10
13
|
interface Status extends Airtop.SessionsEventsResponseStatus {
|
11
14
|
event: "status";
|
12
15
|
}
|
@@ -16,7 +19,4 @@ export declare namespace SessionsEventsResponse {
|
|
16
19
|
interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
|
17
20
|
event: "windowEvent";
|
18
21
|
}
|
19
|
-
interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
|
20
|
-
event: "sessionEvent";
|
21
|
-
}
|
22
22
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export * from "./SessionsListRequestStatus";
|
2
|
+
export * from "./SessionsEventsResponseSessionEvent";
|
2
3
|
export * from "./SessionsEventsResponseStatus";
|
3
4
|
export * from "./SessionsEventsResponseError";
|
4
5
|
export * from "./SessionsEventsResponseWindowEvent";
|
5
|
-
export * from "./SessionsEventsResponseSessionEvent";
|
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("./SessionsEventsResponseSessionEvent"), exports);
|
18
19
|
__exportStar(require("./SessionsEventsResponseStatus"), exports);
|
19
20
|
__exportStar(require("./SessionsEventsResponseError"), exports);
|
20
21
|
__exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
|
21
|
-
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
22
22
|
__exportStar(require("./SessionsEventsResponse"), exports);
|
@@ -81,9 +81,11 @@ export declare class Windows {
|
|
81
81
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
82
82
|
*
|
83
83
|
* @example
|
84
|
-
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430"
|
84
|
+
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
85
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
86
|
+
* })
|
85
87
|
*/
|
86
|
-
asyncMonitor(sessionId: string, windowId: string, request
|
88
|
+
asyncMonitor(sessionId: string, windowId: string, request: Airtop.AsyncMonitorRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
87
89
|
/**
|
88
90
|
* @param {string} sessionId - The session id for the window.
|
89
91
|
* @param {string} windowId - The Airtop window id of the browser window.
|
@@ -243,9 +245,11 @@ export declare class Windows {
|
|
243
245
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
244
246
|
*
|
245
247
|
* @example
|
246
|
-
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430"
|
248
|
+
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
249
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
250
|
+
* })
|
247
251
|
*/
|
248
|
-
monitor(sessionId: string, windowId: string, request
|
252
|
+
monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
249
253
|
/**
|
250
254
|
* Submit a prompt that queries the content of a specific browser window. You may extract content from the page, or ask a question about the page and allow the AI to answer it (ex. Is the user logged in?).
|
251
255
|
*
|
@@ -71,8 +71,8 @@ class Windows {
|
|
71
71
|
Authorization: yield this._getAuthorizationHeader(),
|
72
72
|
"X-Fern-Language": "JavaScript",
|
73
73
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
74
|
-
"X-Fern-SDK-Version": "0.1.31-
|
75
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
74
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
75
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
78
78
|
},
|
@@ -134,8 +134,8 @@ class Windows {
|
|
134
134
|
Authorization: yield this._getAuthorizationHeader(),
|
135
135
|
"X-Fern-Language": "JavaScript",
|
136
136
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
137
|
-
"X-Fern-SDK-Version": "0.1.31-
|
138
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
137
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
138
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
139
139
|
"X-Fern-Runtime": core.RUNTIME.type,
|
140
140
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
141
141
|
},
|
@@ -199,8 +199,8 @@ class Windows {
|
|
199
199
|
Authorization: yield this._getAuthorizationHeader(),
|
200
200
|
"X-Fern-Language": "JavaScript",
|
201
201
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
202
|
-
"X-Fern-SDK-Version": "0.1.31-
|
203
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
202
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
203
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
204
204
|
"X-Fern-Runtime": core.RUNTIME.type,
|
205
205
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
206
206
|
},
|
@@ -262,8 +262,8 @@ class Windows {
|
|
262
262
|
Authorization: yield this._getAuthorizationHeader(),
|
263
263
|
"X-Fern-Language": "JavaScript",
|
264
264
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
265
|
-
"X-Fern-SDK-Version": "0.1.31-
|
266
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
265
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
266
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
267
267
|
"X-Fern-Runtime": core.RUNTIME.type,
|
268
268
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
269
269
|
},
|
@@ -311,9 +311,11 @@ class Windows {
|
|
311
311
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
312
312
|
*
|
313
313
|
* @example
|
314
|
-
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430"
|
314
|
+
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
315
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
316
|
+
* })
|
315
317
|
*/
|
316
|
-
asyncMonitor(sessionId, windowId, request
|
318
|
+
asyncMonitor(sessionId, windowId, request, requestOptions) {
|
317
319
|
var _a, _b;
|
318
320
|
return __awaiter(this, void 0, void 0, function* () {
|
319
321
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
@@ -323,8 +325,8 @@ class Windows {
|
|
323
325
|
Authorization: yield this._getAuthorizationHeader(),
|
324
326
|
"X-Fern-Language": "JavaScript",
|
325
327
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
326
|
-
"X-Fern-SDK-Version": "0.1.31-
|
327
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
328
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
329
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
328
330
|
"X-Fern-Runtime": core.RUNTIME.type,
|
329
331
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
330
332
|
},
|
@@ -386,8 +388,8 @@ class Windows {
|
|
386
388
|
Authorization: yield this._getAuthorizationHeader(),
|
387
389
|
"X-Fern-Language": "JavaScript",
|
388
390
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
389
|
-
"X-Fern-SDK-Version": "0.1.31-
|
390
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
391
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
391
393
|
"X-Fern-Runtime": core.RUNTIME.type,
|
392
394
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
393
395
|
},
|
@@ -449,8 +451,8 @@ class Windows {
|
|
449
451
|
Authorization: yield this._getAuthorizationHeader(),
|
450
452
|
"X-Fern-Language": "JavaScript",
|
451
453
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
452
|
-
"X-Fern-SDK-Version": "0.1.31-
|
453
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
454
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
455
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
454
456
|
"X-Fern-Runtime": core.RUNTIME.type,
|
455
457
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
456
458
|
},
|
@@ -514,8 +516,8 @@ class Windows {
|
|
514
516
|
Authorization: yield this._getAuthorizationHeader(),
|
515
517
|
"X-Fern-Language": "JavaScript",
|
516
518
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
517
|
-
"X-Fern-SDK-Version": "0.1.31-
|
518
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
519
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
520
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
519
521
|
"X-Fern-Runtime": core.RUNTIME.type,
|
520
522
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
521
523
|
},
|
@@ -577,8 +579,8 @@ class Windows {
|
|
577
579
|
Authorization: yield this._getAuthorizationHeader(),
|
578
580
|
"X-Fern-Language": "JavaScript",
|
579
581
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
580
|
-
"X-Fern-SDK-Version": "0.1.31-
|
581
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
582
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
583
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
582
584
|
"X-Fern-Runtime": core.RUNTIME.type,
|
583
585
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
584
586
|
},
|
@@ -640,8 +642,8 @@ class Windows {
|
|
640
642
|
Authorization: yield this._getAuthorizationHeader(),
|
641
643
|
"X-Fern-Language": "JavaScript",
|
642
644
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
643
|
-
"X-Fern-SDK-Version": "0.1.31-
|
644
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
645
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
646
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
645
647
|
"X-Fern-Runtime": core.RUNTIME.type,
|
646
648
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
647
649
|
},
|
@@ -703,8 +705,8 @@ class Windows {
|
|
703
705
|
Authorization: yield this._getAuthorizationHeader(),
|
704
706
|
"X-Fern-Language": "JavaScript",
|
705
707
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
706
|
-
"X-Fern-SDK-Version": "0.1.31-
|
707
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
708
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
709
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
708
710
|
"X-Fern-Runtime": core.RUNTIME.type,
|
709
711
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
710
712
|
},
|
@@ -765,8 +767,8 @@ class Windows {
|
|
765
767
|
Authorization: yield this._getAuthorizationHeader(),
|
766
768
|
"X-Fern-Language": "JavaScript",
|
767
769
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
768
|
-
"X-Fern-SDK-Version": "0.1.31-
|
769
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
770
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
771
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
770
772
|
"X-Fern-Runtime": core.RUNTIME.type,
|
771
773
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
772
774
|
},
|
@@ -841,8 +843,8 @@ class Windows {
|
|
841
843
|
Authorization: yield this._getAuthorizationHeader(),
|
842
844
|
"X-Fern-Language": "JavaScript",
|
843
845
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
844
|
-
"X-Fern-SDK-Version": "0.1.31-
|
845
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
846
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
847
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
846
848
|
"X-Fern-Runtime": core.RUNTIME.type,
|
847
849
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
848
850
|
},
|
@@ -906,8 +908,8 @@ class Windows {
|
|
906
908
|
Authorization: yield this._getAuthorizationHeader(),
|
907
909
|
"X-Fern-Language": "JavaScript",
|
908
910
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
909
|
-
"X-Fern-SDK-Version": "0.1.31-
|
910
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
911
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
912
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
911
913
|
"X-Fern-Runtime": core.RUNTIME.type,
|
912
914
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
913
915
|
},
|
@@ -968,8 +970,8 @@ class Windows {
|
|
968
970
|
Authorization: yield this._getAuthorizationHeader(),
|
969
971
|
"X-Fern-Language": "JavaScript",
|
970
972
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
971
|
-
"X-Fern-SDK-Version": "0.1.31-
|
972
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
973
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
974
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
973
975
|
"X-Fern-Runtime": core.RUNTIME.type,
|
974
976
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
975
977
|
},
|
@@ -1032,8 +1034,8 @@ class Windows {
|
|
1032
1034
|
Authorization: yield this._getAuthorizationHeader(),
|
1033
1035
|
"X-Fern-Language": "JavaScript",
|
1034
1036
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1035
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1036
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1037
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1038
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1037
1039
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1038
1040
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1039
1041
|
},
|
@@ -1097,8 +1099,8 @@ class Windows {
|
|
1097
1099
|
Authorization: yield this._getAuthorizationHeader(),
|
1098
1100
|
"X-Fern-Language": "JavaScript",
|
1099
1101
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1100
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1101
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1102
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1103
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1102
1104
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1103
1105
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1104
1106
|
},
|
@@ -1146,9 +1148,11 @@ class Windows {
|
|
1146
1148
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
1147
1149
|
*
|
1148
1150
|
* @example
|
1149
|
-
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430"
|
1151
|
+
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
1152
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
1153
|
+
* })
|
1150
1154
|
*/
|
1151
|
-
monitor(sessionId, windowId, request
|
1155
|
+
monitor(sessionId, windowId, request, requestOptions) {
|
1152
1156
|
var _a, _b;
|
1153
1157
|
return __awaiter(this, void 0, void 0, function* () {
|
1154
1158
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
@@ -1158,8 +1162,8 @@ class Windows {
|
|
1158
1162
|
Authorization: yield this._getAuthorizationHeader(),
|
1159
1163
|
"X-Fern-Language": "JavaScript",
|
1160
1164
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1161
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1162
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1165
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1166
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1163
1167
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1164
1168
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1165
1169
|
},
|
@@ -1225,8 +1229,8 @@ class Windows {
|
|
1225
1229
|
Authorization: yield this._getAuthorizationHeader(),
|
1226
1230
|
"X-Fern-Language": "JavaScript",
|
1227
1231
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1228
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1229
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1232
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1233
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1230
1234
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1231
1235
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1232
1236
|
},
|
@@ -1292,8 +1296,8 @@ class Windows {
|
|
1292
1296
|
Authorization: yield this._getAuthorizationHeader(),
|
1293
1297
|
"X-Fern-Language": "JavaScript",
|
1294
1298
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1295
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1296
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1299
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1300
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1297
1301
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1298
1302
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1299
1303
|
},
|
@@ -1359,8 +1363,8 @@ class Windows {
|
|
1359
1363
|
Authorization: yield this._getAuthorizationHeader(),
|
1360
1364
|
"X-Fern-Language": "JavaScript",
|
1361
1365
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1362
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1363
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1366
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1367
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1364
1368
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1365
1369
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1366
1370
|
},
|
@@ -1424,8 +1428,8 @@ class Windows {
|
|
1424
1428
|
Authorization: yield this._getAuthorizationHeader(),
|
1425
1429
|
"X-Fern-Language": "JavaScript",
|
1426
1430
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1427
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1428
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1431
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1432
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1429
1433
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1430
1434
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1431
1435
|
},
|
@@ -1487,8 +1491,8 @@ class Windows {
|
|
1487
1491
|
Authorization: yield this._getAuthorizationHeader(),
|
1488
1492
|
"X-Fern-Language": "JavaScript",
|
1489
1493
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1490
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1491
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1494
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1495
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1492
1496
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1493
1497
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1494
1498
|
},
|
@@ -1552,8 +1556,8 @@ class Windows {
|
|
1552
1556
|
Authorization: yield this._getAuthorizationHeader(),
|
1553
1557
|
"X-Fern-Language": "JavaScript",
|
1554
1558
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1555
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1556
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1559
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1560
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1557
1561
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1558
1562
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1559
1563
|
},
|
@@ -1615,8 +1619,8 @@ class Windows {
|
|
1615
1619
|
Authorization: yield this._getAuthorizationHeader(),
|
1616
1620
|
"X-Fern-Language": "JavaScript",
|
1617
1621
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1618
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1619
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1622
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1623
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1620
1624
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1621
1625
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1622
1626
|
},
|
@@ -1682,8 +1686,8 @@ class Windows {
|
|
1682
1686
|
Authorization: yield this._getAuthorizationHeader(),
|
1683
1687
|
"X-Fern-Language": "JavaScript",
|
1684
1688
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
1685
|
-
"X-Fern-SDK-Version": "0.1.31-
|
1686
|
-
"User-Agent": "@airtop/sdk/0.1.31-
|
1689
|
+
"X-Fern-SDK-Version": "0.1.31-beta2",
|
1690
|
+
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
1687
1691
|
"X-Fern-Runtime": core.RUNTIME.type,
|
1688
1692
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1689
1693
|
},
|
@@ -4,20 +4,20 @@
|
|
4
4
|
import * as Airtop from "../../../../index";
|
5
5
|
/**
|
6
6
|
* @example
|
7
|
-
* {
|
7
|
+
* {
|
8
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
9
|
+
* }
|
8
10
|
*/
|
9
11
|
export interface AsyncMonitorRequest {
|
10
12
|
/** Async configuration options. */
|
11
13
|
async?: Airtop.AsyncConfig;
|
12
14
|
clientRequestId?: string;
|
13
|
-
/** A natural language description of the condition to monitor for in the browser window.
|
14
|
-
condition
|
15
|
+
/** A natural language description of the condition to monitor for in the browser window. */
|
16
|
+
condition: string;
|
15
17
|
/** Monitor configuration. If not specified, defaults to an interval monitor with a 5 second interval. */
|
16
18
|
configuration?: Airtop.MonitorConfig;
|
17
19
|
/** A credit threshold 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). */
|
18
20
|
costThresholdCredits?: number;
|
19
|
-
/** The selector to wait for. Required when monitorType is 'selector'. */
|
20
|
-
selector?: string;
|
21
21
|
/**
|
22
22
|
* 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
23
|
*
|
@@ -4,18 +4,18 @@
|
|
4
4
|
import * as Airtop from "../../../../index";
|
5
5
|
/**
|
6
6
|
* @example
|
7
|
-
* {
|
7
|
+
* {
|
8
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
9
|
+
* }
|
8
10
|
*/
|
9
11
|
export interface SessionMonitorHandlerRequestBody {
|
10
12
|
clientRequestId?: string;
|
11
|
-
/** A natural language description of the condition to monitor for in the browser window.
|
12
|
-
condition
|
13
|
+
/** A natural language description of the condition to monitor for in the browser window. */
|
14
|
+
condition: string;
|
13
15
|
/** Monitor configuration. If not specified, defaults to an interval monitor with a 5 second interval. */
|
14
16
|
configuration?: Airtop.MonitorConfig;
|
15
17
|
/** A credit threshold 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). */
|
16
18
|
costThresholdCredits?: number;
|
17
|
-
/** The selector to wait for. Required when monitorType is 'selector'. */
|
18
|
-
selector?: string;
|
19
19
|
/**
|
20
20
|
* 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).
|
21
21
|
*
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
export interface IntervalMonitorConfig {
|
5
|
-
/** The interval in seconds between condition checks.
|
5
|
+
/** The interval in seconds between condition checks. */
|
6
6
|
intervalSeconds?: number;
|
7
7
|
/** The timeout in seconds after which the monitor will stop checking the condition. */
|
8
8
|
timeoutSeconds?: number;
|
@@ -5,10 +5,6 @@ import * as Airtop from "../index";
|
|
5
5
|
export interface MonitorConfig {
|
6
6
|
/** If set to 'enabled', Airtop AI will also analyze the web page visually when executing the condition check. If set to 'disabled', no visual analysis will be conducted. */
|
7
7
|
includeVisualAnalysis?: Airtop.MonitorConfigIncludeVisualAnalysis;
|
8
|
-
/** Configuration for the interval monitor.
|
8
|
+
/** Configuration for the interval monitor. */
|
9
9
|
interval?: Airtop.IntervalMonitorConfig;
|
10
|
-
/** Configuration for the browser wait selector. */
|
11
|
-
monitorSelectorOptions?: Airtop.BrowserWaitSelectorConfig;
|
12
|
-
/** The type of monitoring to perform. Interval executes the condition check at a regular, specified interval. Selector waits for a selector to be present before completing. */
|
13
|
-
monitorType: Airtop.MonitorConfigMonitorType;
|
14
10
|
}
|