@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
@@ -2,6 +2,7 @@ import { AirtopClient as FernClient } from '../Client';
|
|
2
2
|
import { type BatchOperateConfig, type BatchOperationInput, type BatchOperationResponse, type BatchOperationUrl } from '../utils';
|
3
3
|
import { AirtopSessions } from './AirtopSessions';
|
4
4
|
import { AirtopWindows } from './AirtopWindows';
|
5
|
+
import { AirtopRequests } from './AirtopRequests';
|
5
6
|
declare type AugmentedOptions = FernClient.Options & {
|
6
7
|
debug?: boolean;
|
7
8
|
};
|
@@ -11,11 +12,13 @@ export declare class AirtopClient {
|
|
11
12
|
private _client;
|
12
13
|
private _windows;
|
13
14
|
private _sessions;
|
15
|
+
private _requests;
|
14
16
|
constructor(_options: AugmentedOptions);
|
15
17
|
setApiKey(apiKey: string): void;
|
16
18
|
setEnvironment(environment: string): void;
|
17
19
|
get sessions(): AirtopSessions;
|
18
20
|
get windows(): AirtopWindows;
|
21
|
+
get requests(): AirtopRequests;
|
19
22
|
get profiles(): import("../api/resources/profiles/client/Client").Profiles;
|
20
23
|
get extensionConfigurations(): import("../api/resources/extensionConfigurations/client/Client").ExtensionConfigurations;
|
21
24
|
log(message: string): void;
|
package/wrapper/AirtopClient.js
CHANGED
@@ -38,6 +38,7 @@ const core = __importStar(require("../core"));
|
|
38
38
|
const utils_1 = require("../utils");
|
39
39
|
const AirtopSessions_1 = require("./AirtopSessions");
|
40
40
|
const AirtopWindows_1 = require("./AirtopWindows");
|
41
|
+
const AirtopRequests_1 = require("./AirtopRequests");
|
41
42
|
class AirtopClient {
|
42
43
|
constructor(_options) {
|
43
44
|
this._options = _options;
|
@@ -67,6 +68,10 @@ class AirtopClient {
|
|
67
68
|
var _a;
|
68
69
|
return ((_a = this._windows) !== null && _a !== void 0 ? _a : (this._windows = new AirtopWindows_1.AirtopWindows(this._options, this._options.apiKey)));
|
69
70
|
}
|
71
|
+
get requests() {
|
72
|
+
var _a;
|
73
|
+
return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new AirtopRequests_1.AirtopRequests(this._options)));
|
74
|
+
}
|
70
75
|
get profiles() {
|
71
76
|
return this._client.profiles;
|
72
77
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type * as Airtop from '../api';
|
2
|
+
import { Requests as RequestsClass, type Requests as RequestsNamespace } from '../api/resources/requests/client/Client';
|
3
|
+
export declare class AirtopRequests extends RequestsClass {
|
4
|
+
readonly _options: RequestsNamespace.Options;
|
5
|
+
constructor(_options: RequestsNamespace.Options);
|
6
|
+
/**
|
7
|
+
* Waits until a request is complete or times out
|
8
|
+
*
|
9
|
+
* @param requestId - The ID of the request to wait for.
|
10
|
+
* @param timeoutSeconds - Maximum time to wait in seconds.
|
11
|
+
* @param intervalSeconds - Polling interval in seconds.
|
12
|
+
* @param requestOptions - Request-specific configuration.
|
13
|
+
*
|
14
|
+
* @example
|
15
|
+
* const result = await client.requests.waitForRequestCompletion("123e4567-e89b-12d3-a456-426614174000", 300)
|
16
|
+
*/
|
17
|
+
waitForRequestCompletion(requestId: string, timeoutSeconds?: number, intervalSeconds?: number, requestOptions?: RequestsNamespace.RequestOptions): Promise<Airtop.RequestStatusResponse>;
|
18
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.AirtopRequests = void 0;
|
13
|
+
const Client_1 = require("../api/resources/requests/client/Client");
|
14
|
+
class AirtopRequests extends Client_1.Requests {
|
15
|
+
constructor(_options) {
|
16
|
+
super(_options);
|
17
|
+
this._options = _options;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Waits until a request is complete or times out
|
21
|
+
*
|
22
|
+
* @param requestId - The ID of the request to wait for.
|
23
|
+
* @param timeoutSeconds - Maximum time to wait in seconds.
|
24
|
+
* @param intervalSeconds - Polling interval in seconds.
|
25
|
+
* @param requestOptions - Request-specific configuration.
|
26
|
+
*
|
27
|
+
* @example
|
28
|
+
* const result = await client.requests.waitForRequestCompletion("123e4567-e89b-12d3-a456-426614174000", 300)
|
29
|
+
*/
|
30
|
+
waitForRequestCompletion(requestId, timeoutSeconds = 300, intervalSeconds = 2, requestOptions) {
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
32
|
+
if (timeoutSeconds <= 0 || intervalSeconds <= 0) {
|
33
|
+
throw new Error('Timeout and interval must be positive values in seconds');
|
34
|
+
}
|
35
|
+
const startTime = Date.now();
|
36
|
+
const timeoutMs = timeoutSeconds * 1000;
|
37
|
+
while (Date.now() - startTime < timeoutMs) {
|
38
|
+
const response = yield this.getRequestStatus(requestId, requestOptions);
|
39
|
+
if (response.status === 'completed' || response.status === 'failed') {
|
40
|
+
return response;
|
41
|
+
}
|
42
|
+
yield new Promise((resolve) => setTimeout(resolve, intervalSeconds * 1000));
|
43
|
+
}
|
44
|
+
throw new Error(`Waiting for request timed out: ${requestId}`);
|
45
|
+
});
|
46
|
+
}
|
47
|
+
}
|
48
|
+
exports.AirtopRequests = AirtopRequests;
|
@@ -114,16 +114,6 @@ export declare class AirtopWindows extends WindowsClass {
|
|
114
114
|
* })
|
115
115
|
*/
|
116
116
|
type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
117
|
-
/**
|
118
|
-
* @param {string} sessionId - The session id for the window.
|
119
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
120
|
-
* @param {Airtop.SessionMonitorHandlerRequestBody} request
|
121
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
122
|
-
*
|
123
|
-
* @example
|
124
|
-
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
125
|
-
*/
|
126
|
-
monitor(sessionId: string, windowId: string, request?: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
127
117
|
/**
|
128
118
|
* Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
|
129
119
|
*
|
@@ -148,6 +138,16 @@ export declare class AirtopWindows extends WindowsClass {
|
|
148
138
|
* await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
149
139
|
*/
|
150
140
|
scroll(sessionId: string, windowId: string, request?: Airtop.SessionScrollHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
141
|
+
/**
|
142
|
+
* @param {string} sessionId - The session id for the window.
|
143
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
144
|
+
* @param {Airtop.SessionMonitorHandlerRequestBody} request
|
145
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
146
|
+
*
|
147
|
+
* @example
|
148
|
+
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
149
|
+
*/
|
150
|
+
monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
151
151
|
private executeSeleniumCDPCommand;
|
152
152
|
getWindowInfoForSeleniumDriver(session: Airtop.ExternalSessionWithConnectionInfo, driver: seleniumWebdriver.WebDriver, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
|
153
153
|
}
|
package/wrapper/AirtopWindows.js
CHANGED
@@ -190,23 +190,6 @@ class AirtopWindows extends Client_1.Windows {
|
|
190
190
|
return _super.type.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
191
191
|
});
|
192
192
|
}
|
193
|
-
/**
|
194
|
-
* @param {string} sessionId - The session id for the window.
|
195
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
196
|
-
* @param {Airtop.SessionMonitorHandlerRequestBody} request
|
197
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
198
|
-
*
|
199
|
-
* @example
|
200
|
-
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
201
|
-
*/
|
202
|
-
monitor(sessionId, windowId, request = {}, requestOptions) {
|
203
|
-
const _super = Object.create(null, {
|
204
|
-
monitor: { get: () => super.monitor }
|
205
|
-
});
|
206
|
-
return __awaiter(this, void 0, void 0, function* () {
|
207
|
-
return _super.monitor.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
208
|
-
});
|
209
|
-
}
|
210
193
|
/**
|
211
194
|
* Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
|
212
195
|
*
|
@@ -245,6 +228,23 @@ class AirtopWindows extends Client_1.Windows {
|
|
245
228
|
return _super.scroll.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
246
229
|
});
|
247
230
|
}
|
231
|
+
/**
|
232
|
+
* @param {string} sessionId - The session id for the window.
|
233
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
234
|
+
* @param {Airtop.SessionMonitorHandlerRequestBody} request
|
235
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
236
|
+
*
|
237
|
+
* @example
|
238
|
+
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
239
|
+
*/
|
240
|
+
monitor(sessionId, windowId, request, requestOptions) {
|
241
|
+
const _super = Object.create(null, {
|
242
|
+
monitor: { get: () => super.monitor }
|
243
|
+
});
|
244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
245
|
+
return _super.monitor.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
246
|
+
});
|
247
|
+
}
|
248
248
|
executeSeleniumCDPCommand(driver, session, apiKey) {
|
249
249
|
return __awaiter(this, void 0, void 0, function* () {
|
250
250
|
// Get the current WebDriver session ID
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
export interface BrowserWaitSelectorConfig {
|
5
|
-
/** If true, Airtop AI will wait for the element to not be in the DOM or to be hidden. */
|
6
|
-
hidden?: boolean;
|
7
|
-
/** The maximum time to wait for the selector to be present, in seconds. Defaults to 30 (30 seconds). */
|
8
|
-
timeoutSeconds?: number;
|
9
|
-
/** If true, Airtop AI will wait for the element to be visible and present in the DOM. */
|
10
|
-
visible?: boolean;
|
11
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
/**
|
5
|
-
* 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.
|
6
|
-
*/
|
7
|
-
export declare type MonitorConfigMonitorType = "interval" | "selector";
|
8
|
-
export declare const MonitorConfigMonitorType: {
|
9
|
-
readonly Interval: "interval";
|
10
|
-
readonly Selector: "selector";
|
11
|
-
};
|
@@ -1,10 +0,0 @@
|
|
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.MonitorConfigMonitorType = void 0;
|
7
|
-
exports.MonitorConfigMonitorType = {
|
8
|
-
Interval: "interval",
|
9
|
-
Selector: "selector",
|
10
|
-
};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
export interface BrowserWaitSelectorConfig {
|
5
|
-
/** If true, Airtop AI will wait for the element to not be in the DOM or to be hidden. */
|
6
|
-
hidden?: boolean;
|
7
|
-
/** The maximum time to wait for the selector to be present, in seconds. Defaults to 30 (30 seconds). */
|
8
|
-
timeoutSeconds?: number;
|
9
|
-
/** If true, Airtop AI will wait for the element to be visible and present in the DOM. */
|
10
|
-
visible?: boolean;
|
11
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
/**
|
5
|
-
* 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.
|
6
|
-
*/
|
7
|
-
export declare type MonitorConfigMonitorType = "interval" | "selector";
|
8
|
-
export declare const MonitorConfigMonitorType: {
|
9
|
-
readonly Interval: "interval";
|
10
|
-
readonly Selector: "selector";
|
11
|
-
};
|
@@ -1,10 +0,0 @@
|
|
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.MonitorConfigMonitorType = void 0;
|
7
|
-
exports.MonitorConfigMonitorType = {
|
8
|
-
Interval: "interval",
|
9
|
-
Selector: "selector",
|
10
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as serializers from "../index";
|
5
|
-
import * as Airtop from "../../api/index";
|
6
|
-
import * as core from "../../core";
|
7
|
-
export declare const BrowserWaitSelectorConfig: core.serialization.ObjectSchema<serializers.BrowserWaitSelectorConfig.Raw, Airtop.BrowserWaitSelectorConfig>;
|
8
|
-
export declare namespace BrowserWaitSelectorConfig {
|
9
|
-
interface Raw {
|
10
|
-
hidden?: boolean | null;
|
11
|
-
timeoutSeconds?: number | null;
|
12
|
-
visible?: boolean | null;
|
13
|
-
}
|
14
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
4
|
-
*/
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
-
}
|
11
|
-
Object.defineProperty(o, k2, desc);
|
12
|
-
}) : (function(o, m, k, k2) {
|
13
|
-
if (k2 === undefined) k2 = k;
|
14
|
-
o[k2] = m[k];
|
15
|
-
}));
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
-
}) : function(o, v) {
|
19
|
-
o["default"] = v;
|
20
|
-
});
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
-
if (mod && mod.__esModule) return mod;
|
23
|
-
var result = {};
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
-
__setModuleDefault(result, mod);
|
26
|
-
return result;
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.BrowserWaitSelectorConfig = void 0;
|
30
|
-
const core = __importStar(require("../../core"));
|
31
|
-
exports.BrowserWaitSelectorConfig = core.serialization.object({
|
32
|
-
hidden: core.serialization.boolean().optional(),
|
33
|
-
timeoutSeconds: core.serialization.number().optional(),
|
34
|
-
visible: core.serialization.boolean().optional(),
|
35
|
-
});
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as serializers from "../index";
|
5
|
-
import * as Airtop from "../../api/index";
|
6
|
-
import * as core from "../../core";
|
7
|
-
export declare const MonitorConfigMonitorType: core.serialization.Schema<serializers.MonitorConfigMonitorType.Raw, Airtop.MonitorConfigMonitorType>;
|
8
|
-
export declare namespace MonitorConfigMonitorType {
|
9
|
-
type Raw = "interval" | "selector";
|
10
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
4
|
-
*/
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
-
}
|
11
|
-
Object.defineProperty(o, k2, desc);
|
12
|
-
}) : (function(o, m, k, k2) {
|
13
|
-
if (k2 === undefined) k2 = k;
|
14
|
-
o[k2] = m[k];
|
15
|
-
}));
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
-
}) : function(o, v) {
|
19
|
-
o["default"] = v;
|
20
|
-
});
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
-
if (mod && mod.__esModule) return mod;
|
23
|
-
var result = {};
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
-
__setModuleDefault(result, mod);
|
26
|
-
return result;
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.MonitorConfigMonitorType = void 0;
|
30
|
-
const core = __importStar(require("../../core"));
|
31
|
-
exports.MonitorConfigMonitorType = core.serialization.enum_(["interval", "selector"]);
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as serializers from "../index";
|
5
|
-
import * as Airtop from "../../api/index";
|
6
|
-
import * as core from "../../core";
|
7
|
-
export declare const BrowserWaitSelectorConfig: core.serialization.ObjectSchema<serializers.BrowserWaitSelectorConfig.Raw, Airtop.BrowserWaitSelectorConfig>;
|
8
|
-
export declare namespace BrowserWaitSelectorConfig {
|
9
|
-
interface Raw {
|
10
|
-
hidden?: boolean | null;
|
11
|
-
timeoutSeconds?: number | null;
|
12
|
-
visible?: boolean | null;
|
13
|
-
}
|
14
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
4
|
-
*/
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
-
}
|
11
|
-
Object.defineProperty(o, k2, desc);
|
12
|
-
}) : (function(o, m, k, k2) {
|
13
|
-
if (k2 === undefined) k2 = k;
|
14
|
-
o[k2] = m[k];
|
15
|
-
}));
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
-
}) : function(o, v) {
|
19
|
-
o["default"] = v;
|
20
|
-
});
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
-
if (mod && mod.__esModule) return mod;
|
23
|
-
var result = {};
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
-
__setModuleDefault(result, mod);
|
26
|
-
return result;
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.BrowserWaitSelectorConfig = void 0;
|
30
|
-
const core = __importStar(require("../../core"));
|
31
|
-
exports.BrowserWaitSelectorConfig = core.serialization.object({
|
32
|
-
hidden: core.serialization.boolean().optional(),
|
33
|
-
timeoutSeconds: core.serialization.number().optional(),
|
34
|
-
visible: core.serialization.boolean().optional(),
|
35
|
-
});
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as serializers from "../index";
|
5
|
-
import * as Airtop from "../../api/index";
|
6
|
-
import * as core from "../../core";
|
7
|
-
export declare const MonitorConfigMonitorType: core.serialization.Schema<serializers.MonitorConfigMonitorType.Raw, Airtop.MonitorConfigMonitorType>;
|
8
|
-
export declare namespace MonitorConfigMonitorType {
|
9
|
-
type Raw = "interval" | "selector";
|
10
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
4
|
-
*/
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
-
}
|
11
|
-
Object.defineProperty(o, k2, desc);
|
12
|
-
}) : (function(o, m, k, k2) {
|
13
|
-
if (k2 === undefined) k2 = k;
|
14
|
-
o[k2] = m[k];
|
15
|
-
}));
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
-
}) : function(o, v) {
|
19
|
-
o["default"] = v;
|
20
|
-
});
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
-
if (mod && mod.__esModule) return mod;
|
23
|
-
var result = {};
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
-
__setModuleDefault(result, mod);
|
26
|
-
return result;
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.MonitorConfigMonitorType = void 0;
|
30
|
-
const core = __importStar(require("../../core"));
|
31
|
-
exports.MonitorConfigMonitorType = core.serialization.enum_(["interval", "selector"]);
|